From 6fcbe4f2873be467ae7542af203106e4837294fa Mon Sep 17 00:00:00 2001 From: lazarusA <19525261+lazarusA@users.noreply.github.com> Date: Sat, 15 Nov 2025 06:10:19 +0000 Subject: [PATCH] AWS API Definitions Updated --- src/AWSServices.jl | 9 +- src/services/accessanalyzer.jl | 421 +- src/services/account.jl | 188 +- src/services/acm.jl | 254 +- src/services/acm_pca.jl | 382 +- src/services/amp.jl | 356 +- src/services/amplify.jl | 393 +- src/services/amplifybackend.jl | 454 +- src/services/amplifyuibuilder.jl | 354 +- src/services/api_gateway.jl | 1353 ++- src/services/apigatewaymanagementapi.jl | 17 +- src/services/apigatewayv2.jl | 721 +- src/services/app_mesh.jl | 548 +- src/services/appconfig.jl | 626 +- src/services/appconfigdata.jl | 40 +- src/services/appfabric.jl | 361 +- src/services/appflow.jl | 364 +- src/services/appintegrations.jl | 334 +- src/services/application_auto_scaling.jl | 541 +- src/services/application_discovery_service.jl | 246 +- src/services/application_insights.jl | 461 +- src/services/application_signals.jl | 276 +- src/services/applicationcostprofiler.jl | 87 +- src/services/apprunner.jl | 432 +- src/services/appstream.jl | 1125 ++- src/services/appsync.jl | 763 +- src/services/apptest.jl | 250 +- src/services/arc_zonal_shift.jl | 281 +- src/services/artifact.jl | 51 +- src/services/athena.jl | 802 +- src/services/auditmanager.jl | 776 +- src/services/auto_scaling.jl | 912 +- src/services/auto_scaling_plans.jl | 113 +- src/services/b2bi.jl | 372 +- src/services/backup.jl | 1586 ++- src/services/backup_gateway.jl | 280 +- src/services/batch.jl | 380 +- src/services/bcm_data_exports.jl | 99 +- src/services/bedrock.jl | 1088 +- src/services/bedrock_agent.jl | 1544 ++- src/services/bedrock_agent_runtime.jl | 209 +- src/services/bedrock_runtime.jl | 165 +- src/services/billingconductor.jl | 315 +- src/services/braket.jl | 187 +- src/services/budgets.jl | 445 +- src/services/chatbot.jl | 639 +- src/services/chime.jl | 2678 +++-- src/services/chime_sdk_identity.jl | 422 +- src/services/chime_sdk_media_pipelines.jl | 496 +- src/services/chime_sdk_meetings.jl | 187 +- src/services/chime_sdk_messaging.jl | 918 +- src/services/chime_sdk_voice.jl | 1221 +-- src/services/cleanrooms.jl | 1652 ++- src/services/cleanroomsml.jl | 323 +- src/services/cloud9.jl | 142 +- src/services/cloudcontrol.jl | 103 +- src/services/clouddirectory.jl | 1272 ++- src/services/cloudformation.jl | 815 +- src/services/cloudfront.jl | 1518 ++- src/services/cloudhsm.jl | 225 +- src/services/cloudhsm_v2.jl | 366 +- src/services/cloudsearch.jl | 312 +- src/services/cloudsearch_domain.jl | 43 +- src/services/cloudtrail.jl | 521 +- src/services/cloudtrail_data.jl | 16 +- src/services/cloudwatch.jl | 425 +- src/services/cloudwatch_events.jl | 440 +- src/services/cloudwatch_logs.jl | 958 +- src/services/codeartifact.jl | 853 +- src/services/codebuild.jl | 596 +- src/services/codecatalyst.jl | 447 +- src/services/codecommit.jl | 1187 +-- src/services/codeconnections.jl | 351 +- src/services/codedeploy.jl | 530 +- src/services/codeguru_reviewer.jl | 158 +- src/services/codeguru_security.jl | 101 +- src/services/codeguruprofiler.jl | 292 +- src/services/codepipeline.jl | 654 +- src/services/codestar.jl | 707 -- src/services/codestar_connections.jl | 322 +- src/services/codestar_notifications.jl | 95 +- src/services/cognito_identity.jl | 296 +- src/services/cognito_identity_provider.jl | 1533 ++- src/services/cognito_sync.jl | 219 +- src/services/comprehend.jl | 1023 +- src/services/comprehendmedical.jl | 280 +- src/services/compute_optimizer.jl | 330 +- src/services/config_service.jl | 1130 +-- src/services/connect.jl | 4185 ++++---- src/services/connect_contact_lens.jl | 18 +- src/services/connectcampaigns.jl | 253 +- src/services/connectcases.jl | 343 +- src/services/connectparticipant.jl | 142 +- src/services/controlcatalog.jl | 96 +- src/services/controltower.jl | 452 +- src/services/cost_and_usage_report_service.jl | 61 +- src/services/cost_explorer.jl | 517 +- src/services/cost_optimization_hub.jl | 57 +- src/services/customer_profiles.jl | 617 +- src/services/data_pipeline.jl | 167 +- src/services/database_migration_service.jl | 1362 ++- src/services/databrew.jl | 478 +- src/services/dataexchange.jl | 298 +- src/services/datasync.jl | 821 +- src/services/datazone.jl | 2911 ++++-- src/services/dax.jl | 258 +- src/services/deadline.jl | 1569 ++- src/services/detective.jl | 352 +- src/services/device_farm.jl | 823 +- src/services/devops_guru.jl | 304 +- src/services/direct_connect.jl | 886 +- src/services/directory_service.jl | 749 +- src/services/dlm.jl | 101 +- src/services/docdb.jl | 813 +- src/services/docdb_elastic.jl | 160 +- src/services/drs.jl | 783 +- src/services/dynamodb.jl | 721 +- src/services/dynamodb_streams.jl | 39 +- src/services/ebs.jl | 105 +- src/services/ec2.jl | 8824 +++++++---------- src/services/ec2_instance_connect.jl | 36 +- src/services/ecr.jl | 825 +- src/services/ecr_public.jl | 242 +- src/services/ecs.jl | 861 +- src/services/efs.jl | 405 +- src/services/eks.jl | 822 +- src/services/eks_auth.jl | 16 +- src/services/elastic_beanstalk.jl | 435 +- src/services/elastic_inference.jl | 45 +- src/services/elastic_load_balancing.jl | 414 +- src/services/elastic_load_balancing_v2.jl | 623 +- src/services/elastic_transcoder.jl | 189 +- src/services/elasticache.jl | 1621 ++- src/services/elasticsearch_service.jl | 629 +- src/services/emr.jl | 738 +- src/services/emr_containers.jl | 306 +- src/services/emr_serverless.jl | 159 +- src/services/entityresolution.jl | 434 +- src/services/eventbridge.jl | 577 +- src/services/evidently.jl | 382 +- src/services/finspace.jl | 665 +- src/services/finspace_data.jl | 430 +- src/services/firehose.jl | 166 +- src/services/fis.jl | 349 +- src/services/fms.jl | 511 +- src/services/forecast.jl | 773 +- src/services/forecastquery.jl | 21 +- src/services/frauddetector.jl | 991 +- src/services/freetier.jl | 7 +- src/services/fsx.jl | 710 +- src/services/gamelift.jl | 1282 +-- src/services/glacier.jl | 383 +- src/services/global_accelerator.jl | 702 +- src/services/glue.jl | 3040 +++--- src/services/grafana.jl | 332 +- src/services/greengrass.jl | 1155 +-- src/services/greengrassv2.jl | 301 +- src/services/groundstation.jl | 354 +- src/services/guardduty.jl | 925 +- src/services/health.jl | 147 +- src/services/healthlake.jl | 150 +- src/services/iam.jl | 2090 ++-- src/services/identitystore.jl | 265 +- src/services/imagebuilder.jl | 1137 +-- src/services/importexport.jl | 80 +- src/services/inspector.jl | 455 +- src/services/inspector2.jl | 721 +- src/services/inspector_scan.jl | 16 +- src/services/internetmonitor.jl | 128 +- src/services/iot.jl | 3321 +++---- src/services/iot_1click_devices_service.jl | 84 +- src/services/iot_1click_projects.jl | 154 +- src/services/iot_data_plane.jl | 58 +- src/services/iot_events.jl | 321 +- src/services/iot_events_data.jl | 114 +- src/services/iot_jobs_data_plane.jl | 51 +- src/services/iot_wireless.jl | 1363 ++- src/services/iotanalytics.jl | 270 +- src/services/iotdeviceadvisor.jl | 158 +- src/services/iotfleethub.jl | 72 +- src/services/iotfleetwise.jl | 483 +- src/services/iotsecuretunneling.jl | 58 +- src/services/iotsitewise.jl | 1268 ++- src/services/iotthingsgraph.jl | 258 +- src/services/iottwinmaker.jl | 408 +- src/services/ivs.jl | 466 +- src/services/ivs_realtime.jl | 415 +- src/services/ivschat.jl | 196 +- src/services/kafka.jl | 727 +- src/services/kafkaconnect.jl | 187 +- src/services/kendra.jl | 869 +- src/services/kendra_ranking.jl | 74 +- src/services/keyspaces.jl | 145 +- src/services/kinesis.jl | 338 +- src/services/kinesis_analytics.jl | 313 +- src/services/kinesis_analytics_v2.jl | 589 +- src/services/kinesis_video.jl | 300 +- src/services/kinesis_video_archived_media.jl | 53 +- src/services/kinesis_video_media.jl | 5 +- src/services/kinesis_video_signaling.jl | 31 +- src/services/kinesis_video_webrtc_storage.jl | 93 +- src/services/kms.jl | 715 +- src/services/lakeformation.jl | 668 +- src/services/lambda.jl | 1168 ++- src/services/launch_wizard.jl | 119 +- src/services/lex_model_building_service.jl | 346 +- src/services/lex_models_v2.jl | 1429 ++- src/services/lex_runtime_service.jl | 66 +- src/services/lex_runtime_v2.jl | 76 +- src/services/license_manager.jl | 641 +- .../license_manager_linux_subscriptions.jl | 341 +- .../license_manager_user_subscriptions.jl | 196 +- src/services/lightsail.jl | 1984 ++-- src/services/location.jl | 756 +- src/services/lookoutequipment.jl | 551 +- src/services/lookoutmetrics.jl | 449 +- src/services/lookoutvision.jl | 277 +- src/services/m2.jl | 476 +- src/services/machine_learning.jl | 344 +- src/services/macie2.jl | 925 +- src/services/mailmanager.jl | 479 +- src/services/managedblockchain.jl | 269 +- src/services/managedblockchain_query.jl | 85 +- src/services/marketplace_agreement.jl | 17 +- src/services/marketplace_catalog.jl | 123 +- .../marketplace_commerce_analytics.jl | 52 +- src/services/marketplace_deployment.jl | 43 +- .../marketplace_entitlement_service.jl | 5 +- src/services/marketplace_metering.jl | 59 +- src/services/mediaconnect.jl | 605 +- src/services/mediaconvert.jl | 312 +- src/services/medialive.jl | 1061 +- src/services/mediapackage.jl | 175 +- src/services/mediapackage_vod.jl | 145 +- src/services/mediapackagev2.jl | 292 +- src/services/mediastore.jl | 171 +- src/services/mediastore_data.jl | 36 +- src/services/mediatailor.jl | 519 +- src/services/medical_imaging.jl | 208 +- src/services/memorydb.jl | 436 +- src/services/mgn.jl | 1023 +- src/services/migration_hub.jl | 290 +- src/services/migration_hub_refactor_spaces.jl | 323 +- src/services/migrationhub_config.jl | 34 +- src/services/migrationhuborchestrator.jl | 346 +- src/services/migrationhubstrategy.jl | 164 +- src/services/mobile.jl | 299 - src/services/mobile_analytics.jl | 22 +- src/services/mq.jl | 386 +- src/services/mturk.jl | 553 +- src/services/mwaa.jl | 137 +- src/services/neptune.jl | 974 +- src/services/neptunedata.jl | 363 +- src/services/network_firewall.jl | 377 +- src/services/networkmanager.jl | 983 +- src/services/networkmonitor.jl | 84 +- src/services/nimble.jl | 744 +- src/services/oam.jl | 190 +- src/services/omics.jl | 1045 +- src/services/opensearch.jl | 767 +- src/services/opensearchserverless.jl | 361 +- src/services/opsworks.jl | 799 +- src/services/opsworkscm.jl | 225 +- src/services/organizations.jl | 567 +- src/services/osis.jl | 209 +- src/services/outposts.jl | 359 +- src/services/panorama.jl | 421 +- src/services/payment_cryptography.jl | 163 +- src/services/payment_cryptography_data.jl | 339 +- src/services/pca_connector_ad.jl | 298 +- src/services/pca_connector_scep.jl | 90 +- src/services/pcs.jl | 952 ++ src/services/personalize.jl | 846 +- src/services/personalize_events.jl | 57 +- src/services/personalize_runtime.jl | 30 +- src/services/pi.jl | 267 +- src/services/pinpoint.jl | 1514 ++- src/services/pinpoint_email.jl | 495 +- src/services/pinpoint_sms_voice.jl | 85 +- src/services/pinpoint_sms_voice_v2.jl | 1237 +-- src/services/pipes.jl | 117 +- src/services/polly.jl | 108 +- src/services/pricing.jl | 71 +- src/services/privatenetworks.jl | 254 +- src/services/proton.jl | 1285 +-- src/services/qapps.jl | 1192 +++ src/services/qbusiness.jl | 689 +- src/services/qconnect.jl | 740 +- src/services/qldb.jl | 257 +- src/services/qldb_session.jl | 7 +- src/services/quicksight.jl | 2571 +++-- src/services/ram.jl | 524 +- src/services/rbin.jl | 136 +- src/services/rds.jl | 2366 ++--- src/services/rds_data.jl | 124 +- src/services/redshift.jl | 1645 ++- src/services/redshift_data.jl | 147 +- src/services/redshift_serverless.jl | 618 +- src/services/rekognition.jl | 748 +- src/services/repostspace.jl | 93 +- src/services/resiliencehub.jl | 966 +- src/services/resource_explorer_2.jl | 174 +- src/services/resource_groups.jl | 153 +- src/services/resource_groups_tagging_api.jl | 51 +- src/services/robomaker.jl | 726 +- src/services/rolesanywhere.jl | 297 +- src/services/route53_recovery_cluster.jl | 57 +- .../route53_recovery_control_config.jl | 242 +- src/services/route53_recovery_readiness.jl | 337 +- src/services/route53profiles.jl | 171 +- src/services/route53resolver.jl | 880 +- src/services/route_53.jl | 871 +- src/services/route_53_domains.jl | 388 +- src/services/rum.jl | 248 +- src/services/s3.jl | 2848 +++--- src/services/s3_control.jl | 1792 ++-- src/services/s3outposts.jl | 66 +- src/services/sagemaker.jl | 4484 ++++----- src/services/sagemaker_a2i_runtime.jl | 50 +- src/services/sagemaker_edge.jl | 56 +- .../sagemaker_featurestore_runtime.jl | 50 +- src/services/sagemaker_geospatial.jl | 217 +- src/services/sagemaker_metrics.jl | 20 +- src/services/sagemaker_runtime.jl | 47 +- src/services/savingsplans.jl | 117 +- src/services/scheduler.jl | 156 +- src/services/schemas.jl | 339 +- src/services/secrets_manager.jl | 219 +- src/services/securityhub.jl | 976 +- src/services/securitylake.jl | 357 +- .../serverlessapplicationrepository.jl | 165 +- src/services/service_catalog.jl | 1156 +-- src/services/service_catalog_appregistry.jl | 216 +- src/services/service_quotas.jl | 235 +- src/services/servicediscovery.jl | 296 +- src/services/ses.jl | 970 +- src/services/sesv2.jl | 1285 +-- src/services/sfn.jl | 526 +- src/services/shield.jl | 358 +- src/services/signer.jl | 243 +- src/services/simpledb.jl | 121 +- src/services/simspaceweaver.jl | 128 +- src/services/sms.jl | 280 +- src/services/snow_device_management.jl | 99 +- src/services/snowball.jl | 309 +- src/services/sns.jl | 520 +- src/services/sqs.jl | 289 +- src/services/ssm.jl | 1859 ++-- src/services/ssm_contacts.jl | 457 +- src/services/ssm_incidents.jl | 375 +- src/services/ssm_quicksetup.jl | 400 + src/services/ssm_sap.jl | 224 +- src/services/sso.jl | 79 +- src/services/sso_admin.jl | 1165 +-- src/services/sso_oidc.jl | 72 +- src/services/storage_gateway.jl | 1093 +- src/services/sts.jl | 103 +- src/services/supplychain.jl | 64 +- src/services/support.jl | 181 +- src/services/support_app.jl | 137 +- src/services/swf.jl | 548 +- src/services/synthetics.jl | 220 +- src/services/taxsettings.jl | 116 +- src/services/textract.jl | 310 +- src/services/timestream_influxdb.jl | 87 +- src/services/timestream_query.jl | 164 +- src/services/timestream_write.jl | 167 +- src/services/tnb.jl | 479 +- src/services/transcribe.jl | 541 +- src/services/transfer.jl | 676 +- src/services/translate.jl | 253 +- src/services/trustedadvisor.jl | 145 +- src/services/verifiedpermissions.jl | 349 +- src/services/voice_id.jl | 395 +- src/services/vpc_lattice.jl | 683 +- src/services/waf.jl | 1009 +- src/services/waf_regional.jl | 998 +- src/services/wafv2.jl | 801 +- src/services/wellarchitected.jl | 929 +- src/services/wisdom.jl | 553 +- src/services/workdocs.jl | 542 +- src/services/worklink.jl | 473 +- src/services/workmail.jl | 1313 ++- src/services/workmailmessageflow.jl | 23 +- src/services/workspaces.jl | 1342 +-- src/services/workspaces_thin_client.jl | 101 +- src/services/workspaces_web.jl | 707 +- src/services/xray.jl | 370 +- 388 files changed, 94743 insertions(+), 117349 deletions(-) delete mode 100644 src/services/codestar.jl delete mode 100644 src/services/mobile.jl create mode 100644 src/services/pcs.jl create mode 100644 src/services/qapps.jl create mode 100644 src/services/ssm_quicksetup.jl diff --git a/src/AWSServices.jl b/src/AWSServices.jl index 259e8f806..148641b3f 100644 --- a/src/AWSServices.jl +++ b/src/AWSServices.jl @@ -178,9 +178,6 @@ const codeguruprofiler = AWS.RestJSONService( const codepipeline = AWS.JSONService( "codepipeline", "codepipeline", "2015-07-09", "1.1", "CodePipeline_20150709" ) -const codestar = AWS.JSONService( - "codestar", "codestar", "2017-04-19", "1.1", "CodeStar_20170419" -) const codestar_connections = AWS.JSONService( "codestar-connections", "codestar-connections", @@ -558,7 +555,6 @@ const migrationhuborchestrator = AWS.RestJSONService( const migrationhubstrategy = AWS.RestJSONService( "migrationhub-strategy", "migrationhub-strategy", "2020-02-19" ) -const mobile = AWS.RestJSONService("AWSMobileHubService", "mobile", "2017-07-01") const mobile_analytics = AWS.RestJSONService( "mobileanalytics", "mobileanalytics", "2014-06-05" ) @@ -613,6 +609,9 @@ const pca_connector_ad = AWS.RestJSONService( const pca_connector_scep = AWS.RestJSONService( "pca-connector-scep", "pca-connector-scep", "2018-05-10" ) +const pcs = AWS.JSONService( + "pcs", "pcs", "2023-02-10", "1.0", "AWSParallelComputingService" +) const personalize = AWS.JSONService( "personalize", "personalize", "2018-05-22", "1.1", "AmazonPersonalize" ) @@ -640,6 +639,7 @@ const privatenetworks = AWS.RestJSONService( "private-networks", "private-networks", "2021-12-03" ) const proton = AWS.JSONService("proton", "proton", "2020-07-20", "1.0", "AwsProton20200720") +const qapps = AWS.RestJSONService("qapps", "data.qapps", "2023-11-27") const qbusiness = AWS.RestJSONService("qbusiness", "qbusiness", "2023-11-27") const qconnect = AWS.RestJSONService("wisdom", "wisdom", "2020-10-19") const qldb = AWS.RestJSONService("qldb", "qldb", "2019-01-02") @@ -772,6 +772,7 @@ const ssm_contacts = AWS.JSONService( "ssm-contacts", "ssm-contacts", "2021-05-03", "1.1", "SSMContacts" ) const ssm_incidents = AWS.RestJSONService("ssm-incidents", "ssm-incidents", "2018-05-10") +const ssm_quicksetup = AWS.RestJSONService("ssm-quicksetup", "ssm-quicksetup", "2018-05-10") const ssm_sap = AWS.RestJSONService("ssm-sap", "ssm-sap", "2018-05-10") const sso = AWS.RestJSONService("awsssoportal", "portal.sso", "2019-06-10") const sso_admin = AWS.JSONService("sso", "sso", "2020-07-20", "1.1", "SWBExternalService") diff --git a/src/services/accessanalyzer.jl b/src/services/accessanalyzer.jl index 051245ad6..6d700886d 100644 --- a/src/services/accessanalyzer.jl +++ b/src/services/accessanalyzer.jl @@ -19,21 +19,19 @@ criteria. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A client token. """ -function apply_archive_rule( +apply_archive_rule( analyzerArn, ruleName; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "PUT", + "/archive-rule", + Dict{String,Any}( + "analyzerArn" => analyzerArn, + "ruleName" => ruleName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "PUT", - "/archive-rule", - Dict{String,Any}( - "analyzerArn" => analyzerArn, - "ruleName" => ruleName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_archive_rule( analyzerArn, ruleName, @@ -71,14 +69,13 @@ Cancels the requested policy generation. CancelPolicyGeneration to cancel the policy generation request. """ -function cancel_policy_generation(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +cancel_policy_generation(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "PUT", "/policy/generation/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_policy_generation( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -113,21 +110,19 @@ Checks whether the specified access isn't allowed by a policy. as managed policy or Amazon S3 bucket policy. """ -function check_access_not_granted( +check_access_not_granted( access, policyDocument, policyType; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "POST", + "/policy/check-access-not-granted", + Dict{String,Any}( + "access" => access, + "policyDocument" => policyDocument, + "policyType" => policyType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "POST", - "/policy/check-access-not-granted", - Dict{String,Any}( - "access" => access, - "policyDocument" => policyDocument, - "policyType" => policyType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function check_access_not_granted( access, policyDocument, @@ -177,24 +172,22 @@ the existingPolicyDocument request parameter. input such as managed policy or Amazon S3 bucket policy. """ -function check_no_new_access( +check_no_new_access( existingPolicyDocument, newPolicyDocument, policyType; aws_config::AbstractAWSConfig=current_aws_config(), +) = accessanalyzer( + "POST", + "/policy/check-no-new-access", + Dict{String,Any}( + "existingPolicyDocument" => existingPolicyDocument, + "newPolicyDocument" => newPolicyDocument, + "policyType" => policyType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "POST", - "/policy/check-no-new-access", - Dict{String,Any}( - "existingPolicyDocument" => existingPolicyDocument, - "newPolicyDocument" => newPolicyDocument, - "policyType" => policyType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function check_no_new_access( existingPolicyDocument, newPolicyDocument, @@ -235,19 +228,15 @@ Checks whether a resource policy can grant public access to the specified resour return an error. """ -function check_no_public_access( +check_no_public_access( policyDocument, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "POST", + "/policy/check-no-public-access", + Dict{String,Any}("policyDocument" => policyDocument, "resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "POST", - "/policy/check-no-public-access", - Dict{String,Any}( - "policyDocument" => policyDocument, "resourceType" => resourceType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function check_no_public_access( policyDocument, resourceType, @@ -290,21 +279,19 @@ resource before deploying resource permissions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A client token. """ -function create_access_preview( +create_access_preview( analyzerArn, configurations; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "PUT", + "/access-preview", + Dict{String,Any}( + "analyzerArn" => analyzerArn, + "configurations" => configurations, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "PUT", - "/access-preview", - Dict{String,Any}( - "analyzerArn" => analyzerArn, - "configurations" => configurations, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_preview( analyzerArn, configurations, @@ -353,10 +340,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If the analyzer is an external access analyzer, this field is not used. - `"tags"`: An array of key-value pairs to apply to the analyzer. """ -function create_analyzer( - analyzerName, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return accessanalyzer( +create_analyzer(analyzerName, type; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "PUT", "/analyzer", Dict{String,Any}( @@ -365,7 +350,6 @@ function create_analyzer( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_analyzer( analyzerName, type, @@ -409,19 +393,17 @@ IAM User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A client token. """ -function create_archive_rule( +create_archive_rule( analyzerName, filter, ruleName; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "PUT", + "/analyzer/$(analyzerName)/archive-rule", + Dict{String,Any}( + "filter" => filter, "ruleName" => ruleName, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "PUT", - "/analyzer/$(analyzerName)/archive-rule", - Dict{String,Any}( - "filter" => filter, "ruleName" => ruleName, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_archive_rule( analyzerName, filter, @@ -463,15 +445,14 @@ that were generated by the analyzer are deleted. You cannot undo this action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A client token. """ -function delete_analyzer(analyzerName; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +delete_analyzer(analyzerName; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "DELETE", "/analyzer/$(analyzerName)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_analyzer( analyzerName, params::AbstractDict{String}; @@ -502,17 +483,15 @@ Deletes the specified archive rule. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A client token. """ -function delete_archive_rule( +delete_archive_rule( analyzerName, ruleName; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "DELETE", + "/analyzer/$(analyzerName)/archive-rule/$(ruleName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "DELETE", - "/analyzer/$(analyzerName)/archive-rule/$(ruleName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_archive_rule( analyzerName, ruleName, @@ -541,17 +520,15 @@ Creates a recommendation for an unused permissions finding. - `id`: The unique ID for the finding recommendation. """ -function generate_finding_recommendation( +generate_finding_recommendation( analyzerArn, id; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "POST", + "/recommendation/$(id)", + Dict{String,Any}("analyzerArn" => analyzerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "POST", - "/recommendation/$(id)", - Dict{String,Any}("analyzerArn" => analyzerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_finding_recommendation( analyzerArn, id, @@ -580,17 +557,15 @@ Retrieves information about an access preview for the specified analyzer. - `analyzer_arn`: The ARN of the analyzer used to generate the access preview. """ -function get_access_preview( +get_access_preview( accessPreviewId, analyzerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "GET", + "/access-preview/$(accessPreviewId)", + Dict{String,Any}("analyzerArn" => analyzerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "GET", - "/access-preview/$(accessPreviewId)", - Dict{String,Any}("analyzerArn" => analyzerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_preview( accessPreviewId, analyzerArn, @@ -619,17 +594,15 @@ Retrieves information about a resource that was analyzed. - `resource_arn`: The ARN of the resource to retrieve information about. """ -function get_analyzed_resource( +get_analyzed_resource( analyzerArn, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "GET", + "/analyzed-resource", + Dict{String,Any}("analyzerArn" => analyzerArn, "resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "GET", - "/analyzed-resource", - Dict{String,Any}("analyzerArn" => analyzerArn, "resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_analyzed_resource( analyzerArn, resourceArn, @@ -663,14 +636,13 @@ Retrieves information about the specified analyzer. - `analyzer_name`: The name of the analyzer retrieved. """ -function get_analyzer(analyzerName; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +get_analyzer(analyzerName; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "GET", "/analyzer/$(analyzerName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_analyzer( analyzerName, params::AbstractDict{String}; @@ -697,16 +669,14 @@ create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guid - `rule_name`: The name of the rule to retrieve. """ -function get_archive_rule( +get_archive_rule( analyzerName, ruleName; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "GET", + "/analyzer/$(analyzerName)/archive-rule/$(ruleName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "GET", - "/analyzer/$(analyzerName)/archive-rule/$(ruleName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_archive_rule( analyzerName, ruleName, @@ -735,15 +705,14 @@ permission to perform the access-analyzer:GetFinding action. - `id`: The ID of the finding to retrieve. """ -function get_finding(analyzerArn, id; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +get_finding(analyzerArn, id; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "GET", "/finding/$(id)", Dict{String,Any}("analyzerArn" => analyzerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_finding( analyzerArn, id, @@ -776,17 +745,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in the response. - `"nextToken"`: A token used for pagination of results returned. """ -function get_finding_recommendation( +get_finding_recommendation( analyzerArn, id; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "GET", + "/recommendation/$(id)", + Dict{String,Any}("analyzerArn" => analyzerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "GET", - "/recommendation/$(id)", - Dict{String,Any}("analyzerArn" => analyzerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_finding_recommendation( analyzerArn, id, @@ -821,15 +788,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in the response. - `"nextToken"`: A token used for pagination of results returned. """ -function get_finding_v2(analyzerArn, id; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +get_finding_v2(analyzerArn, id; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "GET", "/findingv2/$(id)", Dict{String,Any}("analyzerArn" => analyzerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_finding_v2( analyzerArn, id, @@ -870,14 +836,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys iam:servicelastaccessed to identify services that have been used recently to create this service-level template. """ -function get_generated_policy(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +get_generated_policy(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "GET", "/policy/generation/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_generated_policy( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -906,17 +871,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in the response. - `"nextToken"`: A token used for pagination of results returned. """ -function list_access_preview_findings( +list_access_preview_findings( accessPreviewId, analyzerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "POST", + "/access-preview/$(accessPreviewId)", + Dict{String,Any}("analyzerArn" => analyzerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "POST", - "/access-preview/$(accessPreviewId)", - Dict{String,Any}("analyzerArn" => analyzerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_access_preview_findings( accessPreviewId, analyzerArn, @@ -948,17 +911,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in the response. - `"nextToken"`: A token used for pagination of results returned. """ -function list_access_previews( - analyzerArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return accessanalyzer( +list_access_previews(analyzerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "GET", "/access-preview", Dict{String,Any}("analyzerArn" => analyzerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_access_previews( analyzerArn, params::AbstractDict{String}; @@ -992,17 +952,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used for pagination of results returned. - `"resourceType"`: The type of resource. """ -function list_analyzed_resources( - analyzerArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return accessanalyzer( +list_analyzed_resources(analyzerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "POST", "/analyzed-resource", Dict{String,Any}("analyzerArn" => analyzerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_analyzed_resources( analyzerArn, params::AbstractDict{String}; @@ -1031,11 +988,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used for pagination of results returned. - `"type"`: The type of analyzer. """ -function list_analyzers(; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( - "GET", "/analyzer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_analyzers(; aws_config::AbstractAWSConfig=current_aws_config()) = accessanalyzer( + "GET", "/analyzer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_analyzers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1058,16 +1013,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in the request. - `"nextToken"`: A token used for pagination of results returned. """ -function list_archive_rules( - analyzerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return accessanalyzer( +list_archive_rules(analyzerName; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "GET", "/analyzer/$(analyzerName)/archive-rule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_archive_rules( analyzerName, params::AbstractDict{String}; @@ -1102,15 +1054,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used for pagination of results returned. - `"sort"`: The sort order for the findings returned. """ -function list_findings(analyzerArn; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +list_findings(analyzerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "POST", "/finding", Dict{String,Any}("analyzerArn" => analyzerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_findings( analyzerArn, params::AbstractDict{String}; @@ -1147,15 +1098,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used for pagination of results returned. - `"sort"`: """ -function list_findings_v2(analyzerArn; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +list_findings_v2(analyzerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "POST", "/findingv2", Dict{String,Any}("analyzerArn" => analyzerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_findings_v2( analyzerArn, params::AbstractDict{String}; @@ -1186,11 +1136,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys policy. Use this with ListGeneratedPolicies to filter the results to only include results for a specific principal. """ -function list_policy_generations(; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +list_policy_generations(; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "GET", "/policy/generation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_policy_generations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1213,16 +1162,13 @@ Retrieves a list of tags applied to the specified resource. - `resource_arn`: The ARN of the resource to retrieve tags from. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return accessanalyzer( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1258,20 +1204,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"cloudTrailDetails"`: A CloudTrailDetails object that contains details about a Trail that you want to analyze to generate policies. """ -function start_policy_generation( +start_policy_generation( policyGenerationDetails; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "PUT", + "/policy/generation", + Dict{String,Any}( + "policyGenerationDetails" => policyGenerationDetails, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "PUT", - "/policy/generation", - Dict{String,Any}( - "policyGenerationDetails" => policyGenerationDetails, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_policy_generation( policyGenerationDetails, params::AbstractDict{String}; @@ -1312,17 +1256,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys most Amazon Web Services resources, the owning account is the account in which the resource was created. """ -function start_resource_scan( +start_resource_scan( analyzerArn, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "POST", + "/resource/scan", + Dict{String,Any}("analyzerArn" => analyzerArn, "resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "POST", - "/resource/scan", - Dict{String,Any}("analyzerArn" => analyzerArn, "resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_resource_scan( analyzerArn, resourceArn, @@ -1357,15 +1299,14 @@ Adds a tag to the specified resource. - `tags`: The tags to add to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return accessanalyzer( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1392,17 +1333,14 @@ Removes a tag from the specified resource. - `tag_keys`: The key for the tag to add. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return accessanalyzer( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1434,17 +1372,15 @@ Updates the criteria and values for the specified archive rule. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A client token. """ -function update_archive_rule( +update_archive_rule( analyzerName, filter, ruleName; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "PUT", + "/analyzer/$(analyzerName)/archive-rule/$(ruleName)", + Dict{String,Any}("filter" => filter, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "PUT", - "/analyzer/$(analyzerName)/archive-rule/$(ruleName)", - Dict{String,Any}("filter" => filter, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_archive_rule( analyzerName, filter, @@ -1485,10 +1421,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ids"`: The IDs of the findings to update. - `"resourceArn"`: The ARN of the resource identified in the finding. """ -function update_findings( - analyzerArn, status; aws_config::AbstractAWSConfig=current_aws_config() -) - return accessanalyzer( +update_findings(analyzerArn, status; aws_config::AbstractAWSConfig=current_aws_config()) = + accessanalyzer( "PUT", "/finding", Dict{String,Any}( @@ -1499,7 +1433,6 @@ function update_findings( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_findings( analyzerArn, status, @@ -1558,17 +1491,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies. """ -function validate_policy( +validate_policy( policyDocument, policyType; aws_config::AbstractAWSConfig=current_aws_config() +) = accessanalyzer( + "POST", + "/policy/validation", + Dict{String,Any}("policyDocument" => policyDocument, "policyType" => policyType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return accessanalyzer( - "POST", - "/policy/validation", - Dict{String,Any}("policyDocument" => policyDocument, "policyType" => policyType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_policy( policyDocument, policyType, diff --git a/src/services/account.jl b/src/services/account.jl index bc1ed2dcd..4219241de 100644 --- a/src/services/account.jl +++ b/src/services/account.jl @@ -27,19 +27,17 @@ email address (also known as the root user email address) for the specified acco must match the PrimaryEmail from the StartPrimaryEmailUpdate API call. """ -function accept_primary_email_update( +accept_primary_email_update( AccountId, Otp, PrimaryEmail; aws_config::AbstractAWSConfig=current_aws_config() +) = account( + "POST", + "/acceptPrimaryEmailUpdate", + Dict{String,Any}( + "AccountId" => AccountId, "Otp" => Otp, "PrimaryEmail" => PrimaryEmail + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return account( - "POST", - "/acceptPrimaryEmailUpdate", - Dict{String,Any}( - "AccountId" => AccountId, "Otp" => Otp, "PrimaryEmail" => PrimaryEmail - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_primary_email_update( AccountId, Otp, @@ -93,17 +91,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify. """ -function delete_alternate_contact( +delete_alternate_contact( AlternateContactType; aws_config::AbstractAWSConfig=current_aws_config() +) = account( + "POST", + "/deleteAlternateContact", + Dict{String,Any}("AlternateContactType" => AlternateContactType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return account( - "POST", - "/deleteAlternateContact", - Dict{String,Any}("AlternateContactType" => AlternateContactType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_alternate_contact( AlternateContactType, params::AbstractDict{String}; @@ -153,15 +149,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organization, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify. """ -function disable_region(RegionName; aws_config::AbstractAWSConfig=current_aws_config()) - return account( - "POST", - "/disableRegion", - Dict{String,Any}("RegionName" => RegionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_region(RegionName; aws_config::AbstractAWSConfig=current_aws_config()) = account( + "POST", + "/disableRegion", + Dict{String,Any}("RegionName" => RegionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_region( RegionName, params::AbstractDict{String}; @@ -207,15 +201,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organization, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify. """ -function enable_region(RegionName; aws_config::AbstractAWSConfig=current_aws_config()) - return account( - "POST", - "/enableRegion", - Dict{String,Any}("RegionName" => RegionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_region(RegionName; aws_config::AbstractAWSConfig=current_aws_config()) = account( + "POST", + "/enableRegion", + Dict{String,Any}("RegionName" => RegionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_region( RegionName, params::AbstractDict{String}; @@ -261,17 +253,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify. """ -function get_alternate_contact( +get_alternate_contact( AlternateContactType; aws_config::AbstractAWSConfig=current_aws_config() +) = account( + "POST", + "/getAlternateContact", + Dict{String,Any}("AlternateContactType" => AlternateContactType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return account( - "POST", - "/getAlternateContact", - Dict{String,Any}("AlternateContactType" => AlternateContactType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_alternate_contact( AlternateContactType, params::AbstractDict{String}; @@ -315,14 +305,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organization, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify. """ -function get_contact_information(; aws_config::AbstractAWSConfig=current_aws_config()) - return account( - "POST", - "/getContactInformation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_contact_information(; aws_config::AbstractAWSConfig=current_aws_config()) = account( + "POST", + "/getContactInformation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_contact_information( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -353,15 +341,13 @@ Retrieves the primary email address for the specified account. can't specify its own AccountId. """ -function get_primary_email(AccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return account( - "POST", - "/getPrimaryEmail", - Dict{String,Any}("AccountId" => AccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_primary_email(AccountId; aws_config::AbstractAWSConfig=current_aws_config()) = account( + "POST", + "/getPrimaryEmail", + Dict{String,Any}("AccountId" => AccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_primary_email( AccountId, params::AbstractDict{String}; @@ -404,17 +390,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organization, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify. """ -function get_region_opt_status( - RegionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return account( +get_region_opt_status(RegionName; aws_config::AbstractAWSConfig=current_aws_config()) = + account( "POST", "/getRegionOptStatus", Dict{String,Any}("RegionName" => RegionName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_region_opt_status( RegionName, params::AbstractDict{String}; @@ -466,11 +449,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys example, passing in a value of ENABLING will only return a list of Regions with a Region status of ENABLING. """ -function list_regions(; aws_config::AbstractAWSConfig=current_aws_config()) - return account( - "POST", "/listRegions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_regions(; aws_config::AbstractAWSConfig=current_aws_config()) = + account("POST", "/listRegions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_regions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -516,28 +496,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify. """ -function put_alternate_contact( +put_alternate_contact( AlternateContactType, EmailAddress, Name, PhoneNumber, Title; aws_config::AbstractAWSConfig=current_aws_config(), +) = account( + "POST", + "/putAlternateContact", + Dict{String,Any}( + "AlternateContactType" => AlternateContactType, + "EmailAddress" => EmailAddress, + "Name" => Name, + "PhoneNumber" => PhoneNumber, + "Title" => Title, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return account( - "POST", - "/putAlternateContact", - Dict{String,Any}( - "AlternateContactType" => AlternateContactType, - "EmailAddress" => EmailAddress, - "Name" => Name, - "PhoneNumber" => PhoneNumber, - "Title" => Title, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_alternate_contact( AlternateContactType, EmailAddress, @@ -595,17 +573,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organization, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify. """ -function put_contact_information( +put_contact_information( ContactInformation; aws_config::AbstractAWSConfig=current_aws_config() +) = account( + "POST", + "/putContactInformation", + Dict{String,Any}("ContactInformation" => ContactInformation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return account( - "POST", - "/putContactInformation", - Dict{String,Any}("ContactInformation" => ContactInformation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_contact_information( ContactInformation, params::AbstractDict{String}; @@ -644,17 +620,15 @@ Starts the process to update the primary email address for the specified account address) to use in the specified account. """ -function start_primary_email_update( +start_primary_email_update( AccountId, PrimaryEmail; aws_config::AbstractAWSConfig=current_aws_config() +) = account( + "POST", + "/startPrimaryEmailUpdate", + Dict{String,Any}("AccountId" => AccountId, "PrimaryEmail" => PrimaryEmail); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return account( - "POST", - "/startPrimaryEmailUpdate", - Dict{String,Any}("AccountId" => AccountId, "PrimaryEmail" => PrimaryEmail); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_primary_email_update( AccountId, PrimaryEmail, diff --git a/src/services/acm.jl b/src/services/acm.jl index f2df5a338..587452091 100644 --- a/src/services/acm.jl +++ b/src/services/acm.jl @@ -29,16 +29,14 @@ have been applied to the certificate, use the ListTagsForCertificate action. - `tags`: The key-value pair that defines the tag. The tag value is optional. """ -function add_tags_to_certificate( +add_tags_to_certificate( CertificateArn, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = acm( + "AddTagsToCertificate", + Dict{String,Any}("CertificateArn" => CertificateArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "AddTagsToCertificate", - Dict{String,Any}("CertificateArn" => CertificateArn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_certificate( CertificateArn, Tags, @@ -78,16 +76,13 @@ first be removed. information about ARNs, see Amazon Resource Names (ARNs). """ -function delete_certificate( - CertificateArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return acm( +delete_certificate(CertificateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + acm( "DeleteCertificate", Dict{String,Any}("CertificateArn" => CertificateArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_certificate( CertificateArn, params::AbstractDict{String}; @@ -118,16 +113,13 @@ you can retrieve information about it. information about ARNs, see Amazon Resource Names (ARNs). """ -function describe_certificate( - CertificateArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return acm( +describe_certificate(CertificateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + acm( "DescribeCertificate", Dict{String,Any}("CertificateArn" => CertificateArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_certificate( CertificateArn, params::AbstractDict{String}; @@ -164,16 +156,14 @@ CLI, see Export a Private Certificate. the passphrase. openssl rsa -in encrypted_key.pem -out decrypted_key.pem """ -function export_certificate( +export_certificate( CertificateArn, Passphrase; aws_config::AbstractAWSConfig=current_aws_config() +) = acm( + "ExportCertificate", + Dict{String,Any}("CertificateArn" => CertificateArn, "Passphrase" => Passphrase); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "ExportCertificate", - Dict{String,Any}("CertificateArn" => CertificateArn, "Passphrase" => Passphrase); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_certificate( CertificateArn, Passphrase, @@ -203,11 +193,8 @@ end Returns the account configuration options associated with an Amazon Web Services account. """ -function get_account_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return acm( - "GetAccountConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + acm("GetAccountConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_account_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -223,10 +210,12 @@ end get_certificate(certificate_arn) get_certificate(certificate_arn, params::Dict{String,<:Any}) -Retrieves an Amazon-issued certificate and its certificate chain. The chain consists of the -certificate of the issuing CA and the intermediate certificates of any other subordinate -CAs. All of the certificates are base64 encoded. You can use OpenSSL to decode the -certificates and inspect individual fields. +Retrieves a certificate and its certificate chain. The certificate may be either a public +or private certificate issued using the ACM RequestCertificate action, or a certificate +imported into ACM using the ImportCertificate action. The chain consists of the certificate +of the issuing CA and the intermediate certificates of any other subordinate CAs. All of +the certificates are base64 encoded. You can use OpenSSL to decode the certificates and +inspect individual fields. # Arguments - `certificate_arn`: String that contains a certificate ARN in the following format: @@ -234,14 +223,12 @@ certificates and inspect individual fields. information about ARNs, see Amazon Resource Names (ARNs). """ -function get_certificate(CertificateArn; aws_config::AbstractAWSConfig=current_aws_config()) - return acm( - "GetCertificate", - Dict{String,Any}("CertificateArn" => CertificateArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_certificate(CertificateArn; aws_config::AbstractAWSConfig=current_aws_config()) = acm( + "GetCertificate", + Dict{String,Any}("CertificateArn" => CertificateArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_certificate( CertificateArn, params::AbstractDict{String}; @@ -271,23 +258,21 @@ ACM does not provide managed renewal for certificates that you import. Note the guidelines when importing third party certificates: You must enter the private key that matches the certificate you are importing. The private key must be unencrypted. You cannot import a private key that is protected by a password or a passphrase. The private -key must be no larger than 5 KB (5,120 bytes). If the certificate you are importing is -not self-signed, you must enter its certificate chain. If a certificate chain is -included, the issuer must be the subject of one of the certificates in the chain. The -certificate, private key, and certificate chain must be PEM-encoded. The current time -must be between the Not Before and Not After certificate fields. The Issuer field must -not be empty. The OCSP authority URL, if present, must not exceed 1000 characters. To -import a new certificate, omit the CertificateArn argument. Include this argument only when -you want to replace a previously imported certificate. When you import a certificate by -using the CLI, you must specify the certificate, the certificate chain, and the private key -by their file names preceded by fileb://. For example, you can specify a certificate saved -in the C:temp folder as fileb://C:tempcertificate_to_import.pem. If you are making an HTTP -or HTTPS Query request, include these arguments as BLOBs. When you import a certificate -by using an SDK, you must specify the certificate, the certificate chain, and the private -key files in the manner required by the programming language you're using. The -cryptographic algorithm of an imported certificate must match the algorithm of the signing -CA. For example, if the signing CA key type is RSA, then the certificate key type must also -be RSA. This operation returns the Amazon Resource Name (ARN) of the imported certificate. +key must be no larger than 5 KB (5,120 bytes). The certificate, private key, and +certificate chain must be PEM-encoded. The current time must be between the Not Before +and Not After certificate fields. The Issuer field must not be empty. The OCSP +authority URL, if present, must not exceed 1000 characters. To import a new certificate, +omit the CertificateArn argument. Include this argument only when you want to replace a +previously imported certificate. When you import a certificate by using the CLI, you must +specify the certificate, the certificate chain, and the private key by their file names +preceded by fileb://. For example, you can specify a certificate saved in the C:temp folder +as fileb://C:tempcertificate_to_import.pem. If you are making an HTTP or HTTPS Query +request, include these arguments as BLOBs. When you import a certificate by using an +SDK, you must specify the certificate, the certificate chain, and the private key files in +the manner required by the programming language you're using. The cryptographic +algorithm of an imported certificate must match the algorithm of the signing CA. For +example, if the signing CA key type is RSA, then the certificate key type must also be RSA. + This operation returns the Amazon Resource Name (ARN) of the imported certificate. # Arguments - `certificate`: The certificate to import. @@ -301,16 +286,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: One or more resource tags to associate with the imported certificate. Note: You cannot apply tags when reimporting a certificate. """ -function import_certificate( +import_certificate( Certificate, PrivateKey; aws_config::AbstractAWSConfig=current_aws_config() +) = acm( + "ImportCertificate", + Dict{String,Any}("Certificate" => Certificate, "PrivateKey" => PrivateKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "ImportCertificate", - Dict{String,Any}("Certificate" => Certificate, "PrivateKey" => PrivateKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_certificate( Certificate, PrivateKey, @@ -335,10 +318,12 @@ end list_certificates() list_certificates(params::Dict{String,<:Any}) -Retrieves a list of certificate ARNs and domain names. You can request that only -certificates that match a specific status be listed. You can also filter by specific -attributes of the certificate. Default filtering returns only RSA_2048 certificates. For -more information, see Filters. +Retrieves a list of certificate ARNs and domain names. By default, the API returns RSA_2048 +certificates. To return all certificates in the account, include the keyType filter with +the values [RSA_1024, RSA_2048, RSA_3072, RSA_4096, EC_prime256v1, EC_secp384r1, +EC_secp521r1]. In addition to keyType, you can also filter by the CertificateStatuses, +keyUsage, and extendedKeyUsage attributes on the certificate. For more information, see +Filters. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -357,9 +342,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: Specifies the order of sorted results. If you specify SortOrder, you must also specify SortBy. """ -function list_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return acm("ListCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + acm("ListCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -383,16 +367,14 @@ AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate information about ARNs, see Amazon Resource Names (ARNs). """ -function list_tags_for_certificate( +list_tags_for_certificate( CertificateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm( + "ListTagsForCertificate", + Dict{String,Any}("CertificateArn" => CertificateArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "ListTagsForCertificate", - Dict{String,Any}("CertificateArn" => CertificateArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_certificate( CertificateArn, params::AbstractDict{String}; @@ -429,16 +411,14 @@ days before certificate expiration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ExpiryEvents"`: Specifies expiration events associated with an account. """ -function put_account_configuration( +put_account_configuration( IdempotencyToken; aws_config::AbstractAWSConfig=current_aws_config() +) = acm( + "PutAccountConfiguration", + Dict{String,Any}("IdempotencyToken" => IdempotencyToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "PutAccountConfiguration", - Dict{String,Any}("IdempotencyToken" => IdempotencyToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_configuration( IdempotencyToken, params::AbstractDict{String}; @@ -475,16 +455,14 @@ ACM certificate, use the ListTagsForCertificate action. - `tags`: The key-value pair that defines the tag to remove. """ -function remove_tags_from_certificate( +remove_tags_from_certificate( CertificateArn, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = acm( + "RemoveTagsFromCertificate", + Dict{String,Any}("CertificateArn" => CertificateArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "RemoveTagsFromCertificate", - Dict{String,Any}("CertificateArn" => CertificateArn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_certificate( CertificateArn, Tags, @@ -521,16 +499,12 @@ For more information, see Testing Managed Renewal in the ACM User Guide. information about ARNs, see Amazon Resource Names (ARNs). """ -function renew_certificate( - CertificateArn; aws_config::AbstractAWSConfig=current_aws_config() +renew_certificate(CertificateArn; aws_config::AbstractAWSConfig=current_aws_config()) = acm( + "RenewCertificate", + Dict{String,Any}("CertificateArn" => CertificateArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "RenewCertificate", - Dict{String,Any}("CertificateArn" => CertificateArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function renew_certificate( CertificateArn, params::AbstractDict{String}; @@ -592,10 +566,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not - supported by all network clients. Some AWS services may require RSA keys, or only support - ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to - ensure that compatibility is not broken. Check the requirements for the AWS service where - you plan to deploy your certificate. Default: RSA_2048 + supported by all network clients. Some Amazon Web Services services may require RSA keys, + or only support ECDSA keys of a particular size, while others allow the use of either RSA + and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the + Amazon Web Services service where you plan to deploy your certificate. For more information + about selecting an algorithm, see Key algorithms. Algorithms supported for an ACM + certificate request include: RSA_2048 EC_prime256v1 EC_secp384r1 Other + listed algorithms are for imported certificates only. When you request a private PKI + certificate signed by a CA from Amazon Web Services Private CA, the specified signing + algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key. + Default: RSA_2048 - `"Options"`: Currently, you can use this parameter to specify whether to add the certificate to a certificate transparency log. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. @@ -620,14 +600,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys certificate to validate that you own or control domain. You can validate with DNS or validate with email. We recommend that you use DNS validation. """ -function request_certificate(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return acm( - "RequestCertificate", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +request_certificate(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = acm( + "RequestCertificate", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function request_certificate( DomainName, params::AbstractDict{String}; @@ -675,23 +653,21 @@ your contact email addresses, see Configure Email for your Domain. postmaster@subdomain.example.com webmaster@subdomain.example.com """ -function resend_validation_email( +resend_validation_email( CertificateArn, Domain, ValidationDomain; aws_config::AbstractAWSConfig=current_aws_config(), +) = acm( + "ResendValidationEmail", + Dict{String,Any}( + "CertificateArn" => CertificateArn, + "Domain" => Domain, + "ValidationDomain" => ValidationDomain, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "ResendValidationEmail", - Dict{String,Any}( - "CertificateArn" => CertificateArn, - "Domain" => Domain, - "ValidationDomain" => ValidationDomain, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function resend_validation_email( CertificateArn, Domain, @@ -734,16 +710,14 @@ information, see Opting Out of Certificate Transparency Logging. Certificates that have not been logged typically produce an error message in a browser. """ -function update_certificate_options( +update_certificate_options( CertificateArn, Options; aws_config::AbstractAWSConfig=current_aws_config() +) = acm( + "UpdateCertificateOptions", + Dict{String,Any}("CertificateArn" => CertificateArn, "Options" => Options); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm( - "UpdateCertificateOptions", - Dict{String,Any}("CertificateArn" => CertificateArn, "Options" => Options); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_certificate_options( CertificateArn, Options, diff --git a/src/services/acm_pca.jl b/src/services/acm_pca.jl index bf057bb19..a877bb6ce 100644 --- a/src/services/acm_pca.jl +++ b/src/services/acm_pca.jl @@ -67,21 +67,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys omit revocation because they expire quickly. Short-lived certificate validity is limited to seven days. The default value is GENERAL_PURPOSE. """ -function create_certificate_authority( +create_certificate_authority( CertificateAuthorityConfiguration, CertificateAuthorityType; aws_config::AbstractAWSConfig=current_aws_config(), +) = acm_pca( + "CreateCertificateAuthority", + Dict{String,Any}( + "CertificateAuthorityConfiguration" => CertificateAuthorityConfiguration, + "CertificateAuthorityType" => CertificateAuthorityType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "CreateCertificateAuthority", - Dict{String,Any}( - "CertificateAuthorityConfiguration" => CertificateAuthorityConfiguration, - "CertificateAuthorityType" => CertificateAuthorityType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_certificate_authority( CertificateAuthorityConfiguration, CertificateAuthorityType, @@ -129,23 +127,21 @@ maximum of one report every 30 minutes. - `s3_bucket_name`: The name of the S3 bucket that will contain the audit report. """ -function create_certificate_authority_audit_report( +create_certificate_authority_audit_report( AuditReportResponseFormat, CertificateAuthorityArn, S3BucketName; aws_config::AbstractAWSConfig=current_aws_config(), +) = acm_pca( + "CreateCertificateAuthorityAuditReport", + Dict{String,Any}( + "AuditReportResponseFormat" => AuditReportResponseFormat, + "CertificateAuthorityArn" => CertificateAuthorityArn, + "S3BucketName" => S3BucketName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "CreateCertificateAuthorityAuditReport", - Dict{String,Any}( - "AuditReportResponseFormat" => AuditReportResponseFormat, - "CertificateAuthorityArn" => CertificateAuthorityArn, - "S3BucketName" => S3BucketName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_certificate_authority_audit_report( AuditReportResponseFormat, CertificateAuthorityArn, @@ -203,23 +199,21 @@ CA. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SourceAccount"`: The ID of the calling account. """ -function create_permission( +create_permission( Actions, CertificateAuthorityArn, Principal; aws_config::AbstractAWSConfig=current_aws_config(), +) = acm_pca( + "CreatePermission", + Dict{String,Any}( + "Actions" => Actions, + "CertificateAuthorityArn" => CertificateAuthorityArn, + "Principal" => Principal, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "CreatePermission", - Dict{String,Any}( - "Actions" => Actions, - "CertificateAuthorityArn" => CertificateAuthorityArn, - "Principal" => Principal, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_permission( Actions, CertificateAuthorityArn, @@ -276,16 +270,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PermanentDeletionTimeInDays"`: The number of days to make a CA restorable after it has been deleted. This can be anywhere from 7 to 30 days, with 30 being the default. """ -function delete_certificate_authority( +delete_certificate_authority( CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "DeleteCertificateAuthority", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "DeleteCertificateAuthority", - Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_certificate_authority( CertificateAuthorityArn, params::AbstractDict{String}; @@ -336,18 +328,16 @@ CA. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SourceAccount"`: The Amazon Web Services account that calls this action. """ -function delete_permission( +delete_permission( CertificateAuthorityArn, Principal; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "DeletePermission", + Dict{String,Any}( + "CertificateAuthorityArn" => CertificateAuthorityArn, "Principal" => Principal + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "DeletePermission", - Dict{String,Any}( - "CertificateAuthorityArn" => CertificateAuthorityArn, "Principal" => Principal - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_permission( CertificateAuthorityArn, Principal, @@ -400,14 +390,12 @@ information, see Attach a Policy for Cross-Account Access. arn:aws:acm-pca:region:account:certificate-authority/01234567-89ab-cdef-0123-0123456789ab. """ -function delete_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return acm_pca( - "DeletePolicy", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = acm_pca( + "DeletePolicy", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_policy( ResourceArn, params::AbstractDict{String}; @@ -447,16 +435,14 @@ remaining in the CA's restoration period is also included in this action's outpu arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 . """ -function describe_certificate_authority( +describe_certificate_authority( CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "DescribeCertificateAuthority", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "DescribeCertificateAuthority", - Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_certificate_authority( CertificateAuthorityArn, params::AbstractDict{String}; @@ -493,21 +479,19 @@ IssueCertificate action or the RevokeCertificate action. arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 . """ -function describe_certificate_authority_audit_report( +describe_certificate_authority_audit_report( AuditReportId, CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = acm_pca( + "DescribeCertificateAuthorityAuditReport", + Dict{String,Any}( + "AuditReportId" => AuditReportId, + "CertificateAuthorityArn" => CertificateAuthorityArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "DescribeCertificateAuthorityAuditReport", - Dict{String,Any}( - "AuditReportId" => AuditReportId, - "CertificateAuthorityArn" => CertificateAuthorityArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_certificate_authority_audit_report( AuditReportId, CertificateAuthorityArn, @@ -552,21 +536,19 @@ information about all of the certificates issued and revoked by your private CA. arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 . """ -function get_certificate( +get_certificate( CertificateArn, CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = acm_pca( + "GetCertificate", + Dict{String,Any}( + "CertificateArn" => CertificateArn, + "CertificateAuthorityArn" => CertificateAuthorityArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "GetCertificate", - Dict{String,Any}( - "CertificateArn" => CertificateArn, - "CertificateAuthorityArn" => CertificateAuthorityArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_certificate( CertificateArn, CertificateAuthorityArn, @@ -605,16 +587,14 @@ signs the one before it. arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 . """ -function get_certificate_authority_certificate( +get_certificate_authority_certificate( CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "GetCertificateAuthorityCertificate", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "GetCertificateAuthorityCertificate", - Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_certificate_authority_certificate( CertificateAuthorityArn, params::AbstractDict{String}; @@ -651,16 +631,14 @@ string. arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 """ -function get_certificate_authority_csr( +get_certificate_authority_csr( CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "GetCertificateAuthorityCsr", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "GetCertificateAuthorityCsr", - Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_certificate_authority_csr( CertificateAuthorityArn, params::AbstractDict{String}; @@ -702,17 +680,15 @@ a Policy for Cross-Account Access. # Arguments - `resource_arn`: The Amazon Resource Number (ARN) of the private CA that will have its policy retrieved. You can find the CA's ARN by calling the ListCertificateAuthorities - action. + action. </p> """ -function get_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return acm_pca( - "GetPolicy", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = acm_pca( + "GetPolicy", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_policy( ResourceArn, params::AbstractDict{String}; @@ -754,15 +730,14 @@ certificate signed by the preceding subordinate CA must come next, and so on unt chain is built. The chain must be PEM-encoded. The maximum allowed size of a certificate is 32 KB. The maximum allowed size of a certificate chain is 2 MB. Enforcement of Critical Constraints Amazon Web Services Private CA allows the following -extensions to be marked critical in the imported CA certificate or chain. Authority key -identifier Basic constraints (must be marked critical) Certificate policies Extended -key usage Inhibit anyPolicy Issuer alternative name Key usage Name constraints -Policy mappings Subject alternative name Subject directory attributes Subject key -identifier Subject information access Amazon Web Services Private CA rejects the -following extensions when they are marked critical in an imported CA certificate or chain. - Authority information access CRL distribution points Freshest CRL Policy constraints - Amazon Web Services Private Certificate Authority will also reject any other extension -marked as critical not contained on the preceding list of allowed extensions. +extensions to be marked critical in the imported CA certificate or chain. Basic +constraints (must be marked critical) Subject alternative names Key usage Extended +key usage Authority key identifier Subject key identifier Issuer alternative name +Subject directory attributes Subject information access Certificate policies Policy +mappings Inhibit anyPolicy Amazon Web Services Private CA rejects the following +extensions when they are marked critical in an imported CA certificate or chain. Name +constraints Policy constraints CRL distribution points Authority information access +Freshest CRL Any other extension # Arguments - `certificate`: The PEM-encoded certificate for a private CA. This may be a self-signed @@ -779,19 +754,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys each certificate in the chain signs the one preceding. This parameter must be supplied when you import a subordinate CA. When you import a root CA, there is no chain. """ -function import_certificate_authority_certificate( +import_certificate_authority_certificate( Certificate, CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "ImportCertificateAuthorityCertificate", + Dict{String,Any}( + "Certificate" => Certificate, + "CertificateAuthorityArn" => CertificateAuthorityArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "ImportCertificateAuthorityCertificate", - Dict{String,Any}( - "Certificate" => Certificate, - "CertificateAuthorityArn" => CertificateAuthorityArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_certificate_authority_certificate( Certificate, CertificateAuthorityArn, @@ -885,25 +858,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Validity type value ABSOLUTE. For more information, see Validity in this API reference and Validity in RFC 5280. """ -function issue_certificate( +issue_certificate( CertificateAuthorityArn, Csr, SigningAlgorithm, Validity; aws_config::AbstractAWSConfig=current_aws_config(), +) = acm_pca( + "IssueCertificate", + Dict{String,Any}( + "CertificateAuthorityArn" => CertificateAuthorityArn, + "Csr" => Csr, + "SigningAlgorithm" => SigningAlgorithm, + "Validity" => Validity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "IssueCertificate", - Dict{String,Any}( - "CertificateAuthorityArn" => CertificateAuthorityArn, - "Csr" => Csr, - "SigningAlgorithm" => SigningAlgorithm, - "Validity" => Validity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function issue_certificate( CertificateAuthorityArn, Csr, @@ -951,11 +922,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceOwner"`: Use this parameter to filter the returned set of certificate authorities based on their owner. The default is SELF. """ -function list_certificate_authorities(; aws_config::AbstractAWSConfig=current_aws_config()) - return acm_pca( +list_certificate_authorities(; aws_config::AbstractAWSConfig=current_aws_config()) = + acm_pca( "ListCertificateAuthorities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_certificate_authorities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1001,16 +971,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive a response with truncated results. Set it to the value of NextToken from the response you just received. """ -function list_permissions( +list_permissions( CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "ListPermissions", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "ListPermissions", - Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_permissions( CertificateAuthorityArn, params::AbstractDict{String}; @@ -1054,16 +1022,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive a response with truncated results. Set it to the value of NextToken from the response you just received. """ -function list_tags( - CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return acm_pca( +list_tags(CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config()) = + acm_pca( "ListTags", Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags( CertificateAuthorityArn, params::AbstractDict{String}; @@ -1113,14 +1078,13 @@ Access. policy. The ARN of the CA can be found by calling the ListCertificateAuthorities action. """ -function put_policy(Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return acm_pca( +put_policy(Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + acm_pca( "PutPolicy", Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_policy( Policy, ResourceArn, @@ -1165,16 +1129,14 @@ has ended. arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 """ -function restore_certificate_authority( +restore_certificate_authority( CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "RestoreCertificateAuthority", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "RestoreCertificateAuthority", - Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_certificate_authority( CertificateAuthorityArn, params::AbstractDict{String}; @@ -1228,23 +1190,21 @@ self-signed certificate. - `revocation_reason`: Specifies why you revoked the certificate. """ -function revoke_certificate( +revoke_certificate( CertificateAuthorityArn, CertificateSerial, RevocationReason; aws_config::AbstractAWSConfig=current_aws_config(), +) = acm_pca( + "RevokeCertificate", + Dict{String,Any}( + "CertificateAuthorityArn" => CertificateAuthorityArn, + "CertificateSerial" => CertificateSerial, + "RevocationReason" => RevocationReason, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "RevokeCertificate", - Dict{String,Any}( - "CertificateAuthorityArn" => CertificateAuthorityArn, - "CertificateSerial" => CertificateSerial, - "RevocationReason" => RevocationReason, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_certificate( CertificateAuthorityArn, CertificateSerial, @@ -1293,18 +1253,14 @@ Attaching tags to a CA at the time of creation. - `tags`: List of tags to be associated with the CA. """ -function tag_certificate_authority( +tag_certificate_authority( CertificateAuthorityArn, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "TagCertificateAuthority", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "TagCertificateAuthority", - Dict{String,Any}( - "CertificateAuthorityArn" => CertificateAuthorityArn, "Tags" => Tags - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_certificate_authority( CertificateAuthorityArn, Tags, @@ -1344,18 +1300,14 @@ Call the ListTags action to see what tags are associated with your CA. - `tags`: List of tags to be removed from the CA. """ -function untag_certificate_authority( +untag_certificate_authority( CertificateAuthorityArn, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "UntagCertificateAuthority", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "UntagCertificateAuthority", - Dict{String,Any}( - "CertificateAuthorityArn" => CertificateAuthorityArn, "Tags" => Tags - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_certificate_authority( CertificateAuthorityArn, Tags, @@ -1411,16 +1363,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"http://\" or \"https://\". - `"Status"`: Status of your private CA. """ -function update_certificate_authority( +update_certificate_authority( CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = acm_pca( + "UpdateCertificateAuthority", + Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return acm_pca( - "UpdateCertificateAuthority", - Dict{String,Any}("CertificateAuthorityArn" => CertificateAuthorityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_certificate_authority( CertificateAuthorityArn, params::AbstractDict{String}; diff --git a/src/services/amp.jl b/src/services/amp.jl index 261d9862d..65b767fea 100644 --- a/src/services/amp.jl +++ b/src/services/amp.jl @@ -23,17 +23,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function create_alert_manager_definition( +create_alert_manager_definition( data, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "POST", + "/workspaces/$(workspaceId)/alertmanager/definition", + Dict{String,Any}("data" => data, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "POST", - "/workspaces/$(workspaceId)/alertmanager/definition", - Dict{String,Any}("data" => data, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_alert_manager_definition( data, workspaceId, @@ -72,17 +70,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function create_logging_configuration( +create_logging_configuration( logGroupArn, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "POST", + "/workspaces/$(workspaceId)/logging", + Dict{String,Any}("logGroupArn" => logGroupArn, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "POST", - "/workspaces/$(workspaceId)/logging", - Dict{String,Any}("logGroupArn" => logGroupArn, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_logging_configuration( logGroupArn, workspaceId, @@ -128,17 +124,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the request. Case-sensitive. - `"tags"`: The list of tag keys and values to associate with the rule groups namespace. """ -function create_rule_groups_namespace( +create_rule_groups_namespace( data, name, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "POST", + "/workspaces/$(workspaceId)/rulegroupsnamespaces", + Dict{String,Any}("data" => data, "name" => name, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "POST", - "/workspaces/$(workspaceId)/rulegroupsnamespaces", - Dict{String,Any}("data" => data, "name" => name, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule_groups_namespace( data, name, @@ -196,25 +190,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ensure the idempotency of the request. - `"tags"`: (Optional) The list of tag keys and values to associate with the scraper. """ -function create_scraper( +create_scraper( destination, scrapeConfiguration, source; aws_config::AbstractAWSConfig=current_aws_config(), +) = amp( + "POST", + "/scrapers", + Dict{String,Any}( + "destination" => destination, + "scrapeConfiguration" => scrapeConfiguration, + "source" => source, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "POST", - "/scrapers", - Dict{String,Any}( - "destination" => destination, - "scrapeConfiguration" => scrapeConfiguration, - "source" => source, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_scraper( destination, scrapeConfiguration, @@ -262,15 +254,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide. - `"tags"`: The list of tag keys and values to associate with the workspace. """ -function create_workspace(; aws_config::AbstractAWSConfig=current_aws_config()) - return amp( - "POST", - "/workspaces", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_workspace(; aws_config::AbstractAWSConfig=current_aws_config()) = amp( + "POST", + "/workspaces", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_workspace( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -299,17 +289,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function delete_alert_manager_definition( +delete_alert_manager_definition( workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "DELETE", + "/workspaces/$(workspaceId)/alertmanager/definition", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "DELETE", - "/workspaces/$(workspaceId)/alertmanager/definition", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_alert_manager_definition( workspaceId, params::AbstractDict{String}; @@ -340,17 +328,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function delete_logging_configuration( +delete_logging_configuration( workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "DELETE", + "/workspaces/$(workspaceId)/logging", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "DELETE", - "/workspaces/$(workspaceId)/logging", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_logging_configuration( workspaceId, params::AbstractDict{String}; @@ -383,17 +369,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function delete_rule_groups_namespace( +delete_rule_groups_namespace( name, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "DELETE", + "/workspaces/$(workspaceId)/rulegroupsnamespaces/$(name)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "DELETE", - "/workspaces/$(workspaceId)/rulegroupsnamespaces/$(name)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rule_groups_namespace( name, workspaceId, @@ -426,15 +410,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request. """ -function delete_scraper(scraperId; aws_config::AbstractAWSConfig=current_aws_config()) - return amp( - "DELETE", - "/scrapers/$(scraperId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_scraper(scraperId; aws_config::AbstractAWSConfig=current_aws_config()) = amp( + "DELETE", + "/scrapers/$(scraperId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_scraper( scraperId, params::AbstractDict{String}; @@ -467,15 +449,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function delete_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return amp( - "DELETE", - "/workspaces/$(workspaceId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = amp( + "DELETE", + "/workspaces/$(workspaceId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_workspace( workspaceId, params::AbstractDict{String}; @@ -502,16 +482,14 @@ Retrieves the full information about the alert manager definition for a workspac - `workspace_id`: The ID of the workspace to retrieve the alert manager definition from. """ -function describe_alert_manager_definition( +describe_alert_manager_definition( workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "GET", + "/workspaces/$(workspaceId)/alertmanager/definition"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "GET", - "/workspaces/$(workspaceId)/alertmanager/definition"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_alert_manager_definition( workspaceId, params::AbstractDict{String}; @@ -536,16 +514,14 @@ Returns complete information about the current logging configuration of the work - `workspace_id`: The ID of the workspace to describe the logging configuration for. """ -function describe_logging_configuration( +describe_logging_configuration( workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "GET", + "/workspaces/$(workspaceId)/logging"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "GET", - "/workspaces/$(workspaceId)/logging"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_logging_configuration( workspaceId, params::AbstractDict{String}; @@ -572,16 +548,14 @@ groups namespaces, use ListRuleGroupsNamespaces. - `workspace_id`: The ID of the workspace containing the rule groups namespace. """ -function describe_rule_groups_namespace( +describe_rule_groups_namespace( name, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "GET", + "/workspaces/$(workspaceId)/rulegroupsnamespaces/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "GET", - "/workspaces/$(workspaceId)/rulegroupsnamespaces/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_rule_groups_namespace( name, workspaceId, @@ -607,14 +581,12 @@ The DescribeScraper operation displays information about an existing scraper. - `scraper_id`: The ID of the scraper to describe. """ -function describe_scraper(scraperId; aws_config::AbstractAWSConfig=current_aws_config()) - return amp( - "GET", - "/scrapers/$(scraperId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_scraper(scraperId; aws_config::AbstractAWSConfig=current_aws_config()) = amp( + "GET", + "/scrapers/$(scraperId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_scraper( scraperId, params::AbstractDict{String}; @@ -639,14 +611,12 @@ Returns information about an existing workspace. - `workspace_id`: The ID of the workspace to describe. """ -function describe_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return amp( - "GET", - "/workspaces/$(workspaceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = amp( + "GET", + "/workspaces/$(workspaceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_workspace( workspaceId, params::AbstractDict{String}; @@ -669,16 +639,13 @@ The GetDefaultScraperConfiguration operation returns the default scraper configu when Amazon EKS creates a scraper for you. """ -function get_default_scraper_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return amp( +get_default_scraper_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + amp( "GET", "/scraperconfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_default_scraper_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -712,16 +679,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and a nextToken. Using the next token in a subsequent call will return the remaining 2 namespaces. """ -function list_rule_groups_namespaces( +list_rule_groups_namespaces( workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "GET", + "/workspaces/$(workspaceId)/rulegroupsnamespaces"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "GET", - "/workspaces/$(workspaceId)/rulegroupsnamespaces"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_rule_groups_namespaces( workspaceId, params::AbstractDict{String}; @@ -760,9 +725,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: (Optional) The token for the next set of items to return. (You received this token from a previous call.) """ -function list_scrapers(; aws_config::AbstractAWSConfig=current_aws_config()) - return amp("GET", "/scrapers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_scrapers(; aws_config::AbstractAWSConfig=current_aws_config()) = + amp("GET", "/scrapers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_scrapers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -784,16 +748,13 @@ are workspaces and rule groups namespaces. groups namespace resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return amp( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + amp( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -829,9 +790,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and there are 12 workspaces to return, then your initial request will return 10 and a nextToken. Using the next token in a subsequent call will return the remaining 2 workspaces. """ -function list_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return amp("GET", "/workspaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) = + amp("GET", "/workspaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_workspaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -859,17 +819,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function put_alert_manager_definition( +put_alert_manager_definition( data, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "PUT", + "/workspaces/$(workspaceId)/alertmanager/definition", + Dict{String,Any}("data" => data, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "PUT", - "/workspaces/$(workspaceId)/alertmanager/definition", - Dict{String,Any}("data" => data, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_alert_manager_definition( data, workspaceId, @@ -913,17 +871,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function put_rule_groups_namespace( +put_rule_groups_namespace( data, name, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "PUT", + "/workspaces/$(workspaceId)/rulegroupsnamespaces/$(name)", + Dict{String,Any}("data" => data, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "PUT", - "/workspaces/$(workspaceId)/rulegroupsnamespaces/$(name)", - Dict{String,Any}("data" => data, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_rule_groups_namespace( data, name, @@ -962,15 +918,13 @@ resource, the new tag value that you specify replaces the previous value for tha begin with aws:. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return amp( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = amp( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -998,17 +952,14 @@ resources that can be tagged are workspaces and rule groups namespaces. - `tag_keys`: The keys of the tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return amp( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + amp( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1040,17 +991,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function update_logging_configuration( +update_logging_configuration( logGroupArn, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = amp( + "PUT", + "/workspaces/$(workspaceId)/logging", + Dict{String,Any}("logGroupArn" => logGroupArn, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amp( - "PUT", - "/workspaces/$(workspaceId)/logging", - Dict{String,Any}("logGroupArn" => logGroupArn, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_logging_configuration( logGroupArn, workspaceId, @@ -1091,17 +1040,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive. """ -function update_workspace_alias( - workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return amp( +update_workspace_alias(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + amp( "POST", "/workspaces/$(workspaceId)/alias", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_workspace_alias( workspaceId, params::AbstractDict{String}; diff --git a/src/services/amplify.jl b/src/services/amplify.jl index 035c239e3..dde99bc44 100644 --- a/src/services/amplify.jl +++ b/src/services/amplify.jl @@ -32,6 +32,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must base64-encode the authorization credentials and provide them in the format user:password. - `"buildSpec"`: The build specification (build spec) for an Amplify app. +- `"cacheConfig"`: The cache configuration for the Amplify app. - `"customHeaders"`: The custom HTTP headers for an Amplify app. - `"customRules"`: The custom rewrite and redirect rules for an Amplify app. - `"description"`: The description of the Amplify app. @@ -62,15 +63,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"repository"`: The Git repository for the Amplify app. - `"tags"`: The tag for an Amplify app. """ -function create_app(name; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "POST", - "/apps", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_app(name; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "POST", + "/apps", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_app( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -102,17 +101,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deploymentArtifacts"`: The name of deployment artifacts. - `"stackName"`: The AWS CloudFormation stack name of a backend environment. """ -function create_backend_environment( +create_backend_environment( appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "POST", + "/apps/$(appId)/backendenvironments", + Dict{String,Any}("environmentName" => environmentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "POST", - "/apps/$(appId)/backendenvironments", - Dict{String,Any}("environmentName" => environmentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_backend_environment( appId, environmentName, @@ -172,17 +169,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag for the branch. - `"ttl"`: The content Time To Live (TTL) for the website in seconds. """ -function create_branch( - appId, branchName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +create_branch(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "POST", "/apps/$(appId)/branches", Dict{String,Any}("branchName" => branchName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_branch( appId, branchName, @@ -220,16 +214,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys unique upload URL per file. Otherwise, the service will only generate a single upload URL for the zipped files. """ -function create_deployment( - appId, branchName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +create_deployment(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "POST", "/apps/$(appId)/branches/$(branchName)/deployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_deployment( appId, branchName, @@ -268,19 +259,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provisions and manages for you. - `"enableAutoSubDomain"`: Enables the automated creation of subdomains for branches. """ -function create_domain_association( +create_domain_association( appId, domainName, subDomainSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "POST", + "/apps/$(appId)/domains", + Dict{String,Any}("domainName" => domainName, "subDomainSettings" => subDomainSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "POST", - "/apps/$(appId)/domains", - Dict{String,Any}( - "domainName" => domainName, "subDomainSettings" => subDomainSettings - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_domain_association( appId, domainName, @@ -319,17 +306,14 @@ Creates a new webhook on an Amplify app. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description for a webhook. """ -function create_webhook( - appId, branchName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +create_webhook(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "POST", "/apps/$(appId)/webhooks", Dict{String,Any}("branchName" => branchName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_webhook( appId, branchName, @@ -357,11 +341,9 @@ Deletes an existing Amplify app specified by an app ID. - `app_id`: The unique ID for an Amplify app. """ -function delete_app(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "DELETE", "/apps/$(appId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_app(appId; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "DELETE", "/apps/$(appId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_app( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -389,16 +371,14 @@ using Typescript code. - `environment_name`: The name of a backend environment of an Amplify app. """ -function delete_backend_environment( +delete_backend_environment( appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "DELETE", + "/apps/$(appId)/backendenvironments/$(environmentName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "DELETE", - "/apps/$(appId)/backendenvironments/$(environmentName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backend_environment( appId, environmentName, @@ -425,16 +405,13 @@ end - `branch_name`: The name of the branch. """ -function delete_branch( - appId, branchName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +delete_branch(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "DELETE", "/apps/$(appId)/branches/$(branchName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_branch( appId, branchName, @@ -461,16 +438,14 @@ Deletes a domain association for an Amplify app. - `domain_name`: The name of the domain. """ -function delete_domain_association( +delete_domain_association( appId, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "DELETE", + "/apps/$(appId)/domains/$(domainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "DELETE", - "/apps/$(appId)/domains/$(domainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_domain_association( appId, domainName, @@ -498,16 +473,13 @@ end - `job_id`: The unique ID for the job. """ -function delete_job( - appId, branchName, jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +delete_job(appId, branchName, jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "DELETE", "/apps/$(appId)/branches/$(branchName)/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_job( appId, branchName, @@ -534,14 +506,12 @@ Deletes a webhook. - `webhook_id`: The unique ID for a webhook. """ -function delete_webhook(webhookId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "DELETE", - "/webhooks/$(webhookId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_webhook(webhookId; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "DELETE", + "/webhooks/$(webhookId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_webhook( webhookId, params::AbstractDict{String}; @@ -573,17 +543,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startTime"`: The time at which the logs should start. The time range specified is inclusive of the start time. """ -function generate_access_logs( +generate_access_logs( appId, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "POST", + "/apps/$(appId)/accesslogs", + Dict{String,Any}("domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "POST", - "/apps/$(appId)/accesslogs", - Dict{String,Any}("domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_access_logs( appId, domainName, @@ -611,11 +579,8 @@ Returns an existing Amplify app specified by an app ID. - `app_id`: The unique ID for an Amplify app. """ -function get_app(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "GET", "/apps/$(appId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_app(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify("GET", "/apps/$(appId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_app( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -638,14 +603,12 @@ Returns the artifact info that corresponds to an artifact id. - `artifact_id`: The unique ID for an artifact. """ -function get_artifact_url(artifactId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "GET", - "/artifacts/$(artifactId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_artifact_url(artifactId; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "GET", + "/artifacts/$(artifactId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_artifact_url( artifactId, params::AbstractDict{String}; @@ -675,16 +638,14 @@ using Typescript code. - `environment_name`: The name for the backend environment. """ -function get_backend_environment( +get_backend_environment( appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "GET", + "/apps/$(appId)/backendenvironments/$(environmentName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "GET", - "/apps/$(appId)/backendenvironments/$(environmentName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backend_environment( appId, environmentName, @@ -711,14 +672,12 @@ end - `branch_name`: The name of the branch. """ -function get_branch(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "GET", - "/apps/$(appId)/branches/$(branchName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_branch(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "GET", + "/apps/$(appId)/branches/$(branchName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_branch( appId, branchName, @@ -745,16 +704,14 @@ Returns the domain information for an Amplify app. - `domain_name`: The name of the domain. """ -function get_domain_association( +get_domain_association( appId, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "GET", + "/apps/$(appId)/domains/$(domainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "GET", - "/apps/$(appId)/domains/$(domainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_domain_association( appId, domainName, @@ -782,16 +739,13 @@ end - `job_id`: The unique ID for the job. """ -function get_job( - appId, branchName, jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +get_job(appId, branchName, jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "GET", "/apps/$(appId)/branches/$(branchName)/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_job( appId, branchName, @@ -818,14 +772,12 @@ Returns the webhook information that corresponds to a specified webhook ID. - `webhook_id`: The unique ID for a webhook. """ -function get_webhook(webhookId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "GET", - "/webhooks/$(webhookId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_webhook(webhookId; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "GET", + "/webhooks/$(webhookId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_webhook( webhookId, params::AbstractDict{String}; @@ -852,9 +804,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A pagination token. If non-null, the pagination token is returned in a result. Pass its value in another request to retrieve more entries. """ -function list_apps(; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify("GET", "/apps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_apps(; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify("GET", "/apps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_apps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -881,16 +832,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a non-null pagination token is returned in a result, pass its value in here to list more artifacts. """ -function list_artifacts( +list_artifacts( appId, branchName, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "GET", + "/apps/$(appId)/branches/$(branchName)/jobs/$(jobId)/artifacts"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "GET", - "/apps/$(appId)/branches/$(branchName)/jobs/$(jobId)/artifacts"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_artifacts( appId, branchName, @@ -928,16 +877,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the start. If a non-null pagination token is returned in a result, pass its value in here to list more backend environments. """ -function list_backend_environments( - appId; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +list_backend_environments(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "GET", "/apps/$(appId)/backendenvironments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_backend_environments( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -966,14 +912,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If a non-null pagination token is returned in a result, pass its value in here to list more branches. """ -function list_branches(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "GET", - "/apps/$(appId)/branches"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_branches(appId; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "GET", + "/apps/$(appId)/branches"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_branches( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1002,14 +946,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys non-null, a pagination token is returned in a result. Pass its value in here to list more projects. """ -function list_domain_associations(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( +list_domain_associations(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "GET", "/apps/$(appId)/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_domain_associations( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1039,14 +982,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a non-null pagination token is returned in a result, pass its value in here to list more steps. """ -function list_jobs(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "GET", - "/apps/$(appId)/branches/$(branchName)/jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_jobs(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "GET", + "/apps/$(appId)/branches/$(branchName)/jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_jobs( appId, branchName, @@ -1072,16 +1013,13 @@ Returns a list of tags for a specified Amazon Resource Name (ARN). - `resource_arn`: The Amazon Resource Name (ARN) to use to list tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1112,14 +1050,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If non-null,the pagination token is returned in a result. Pass its value in here to list more webhooks. """ -function list_webhooks(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "GET", - "/apps/$(appId)/webhooks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_webhooks(appId; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "GET", + "/apps/$(appId)/webhooks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_webhooks( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1152,16 +1088,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys without create deployment. The source URL can be any HTTP GET URL that is publicly accessible and downloads a single .zip file. """ -function start_deployment( - appId, branchName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +start_deployment(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "POST", "/apps/$(appId)/branches/$(branchName)/deployments/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_deployment( appId, branchName, @@ -1201,17 +1134,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys RETRY. - `"jobReason"`: A descriptive reason for starting the job. """ -function start_job( - appId, branchName, jobType; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +start_job(appId, branchName, jobType; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "POST", "/apps/$(appId)/branches/$(branchName)/jobs", Dict{String,Any}("jobType" => jobType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_job( appId, branchName, @@ -1240,16 +1170,13 @@ end - `job_id`: The unique id for the job. """ -function stop_job( - appId, branchName, jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +stop_job(appId, branchName, jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "DELETE", "/apps/$(appId)/branches/$(branchName)/jobs/$(jobId)/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_job( appId, branchName, @@ -1277,15 +1204,14 @@ Tags the resource with a tag key and value. - `tags`: The tags used to tag the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1312,17 +1238,14 @@ Untags a resource with a specified Amazon Resource Name (ARN). - `tag_keys`: The tag keys to use to untag a resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1366,6 +1289,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must base64-encode the authorization credentials and provide them in the format user:password. - `"buildSpec"`: The build specification (build spec) for an Amplify app. +- `"cacheConfig"`: The cache configuration for the Amplify app. - `"customHeaders"`: The custom HTTP headers for an Amplify app. - `"customRules"`: The custom redirect and rewrite rules for an Amplify app. - `"description"`: The description for an Amplify app. @@ -1393,11 +1317,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys WEB_DYNAMIC. - `"repository"`: The name of the Git repository for an Amplify app. """ -function update_app(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "POST", "/apps/$(appId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_app(appId; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "POST", "/apps/$(appId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_app( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1449,16 +1371,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"stage"`: Describes the current stage for the branch. - `"ttl"`: The content Time to Live (TTL) for the website in seconds. """ -function update_branch( - appId, branchName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplify( +update_branch(appId, branchName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplify( "POST", "/apps/$(appId)/branches/$(branchName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_branch( appId, branchName, @@ -1494,16 +1413,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"enableAutoSubDomain"`: Enables the automated creation of subdomains for branches. - `"subDomainSettings"`: Describes the settings for the subdomain. """ -function update_domain_association( +update_domain_association( appId, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplify( + "POST", + "/apps/$(appId)/domains/$(domainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplify( - "POST", - "/apps/$(appId)/domains/$(domainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_domain_association( appId, domainName, @@ -1533,14 +1450,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"branchName"`: The name for a branch that is part of an Amplify app. - `"description"`: The description for a webhook. """ -function update_webhook(webhookId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplify( - "POST", - "/webhooks/$(webhookId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_webhook(webhookId; aws_config::AbstractAWSConfig=current_aws_config()) = amplify( + "POST", + "/webhooks/$(webhookId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_webhook( webhookId, params::AbstractDict{String}; diff --git a/src/services/amplifybackend.jl b/src/services/amplifybackend.jl index 31bc80e9b..17c719202 100644 --- a/src/services/amplifybackend.jl +++ b/src/services/amplifybackend.jl @@ -16,20 +16,18 @@ This operation clones an existing backend. - `target_environment_name`: The name of the destination backend environment to be created. """ -function clone_backend( +clone_backend( appId, backendEnvironmentName, targetEnvironmentName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/environments/$(backendEnvironmentName)/clone", + Dict{String,Any}("targetEnvironmentName" => targetEnvironmentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/environments/$(backendEnvironmentName)/clone", - Dict{String,Any}("targetEnvironmentName" => targetEnvironmentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function clone_backend( appId, backendEnvironmentName, @@ -69,24 +67,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceConfig"`: The resource configuration for creating a backend. - `"resourceName"`: The name of the resource. """ -function create_backend( +create_backend( appId, appName, backendEnvironmentName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend", + Dict{String,Any}( + "appId" => appId, + "appName" => appName, + "backendEnvironmentName" => backendEnvironmentName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend", - Dict{String,Any}( - "appId" => appId, - "appName" => appName, - "backendEnvironmentName" => backendEnvironmentName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_backend( appId, appName, @@ -126,25 +122,23 @@ Creates a new backend API resource. - `resource_name`: The name of this resource. """ -function create_backend_api( +create_backend_api( appId, backendEnvironmentName, resourceConfig, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/api", + Dict{String,Any}( + "backendEnvironmentName" => backendEnvironmentName, + "resourceConfig" => resourceConfig, + "resourceName" => resourceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/api", - Dict{String,Any}( - "backendEnvironmentName" => backendEnvironmentName, - "resourceConfig" => resourceConfig, - "resourceName" => resourceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_backend_api( appId, backendEnvironmentName, @@ -185,25 +179,23 @@ Creates a new backend authentication resource. - `resource_name`: The name of this resource. """ -function create_backend_auth( +create_backend_auth( appId, backendEnvironmentName, resourceConfig, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/auth", + Dict{String,Any}( + "backendEnvironmentName" => backendEnvironmentName, + "resourceConfig" => resourceConfig, + "resourceName" => resourceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/auth", - Dict{String,Any}( - "backendEnvironmentName" => backendEnvironmentName, - "resourceConfig" => resourceConfig, - "resourceName" => resourceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_backend_auth( appId, backendEnvironmentName, @@ -244,14 +236,13 @@ Creates a config object for a backend. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"backendManagerAppId"`: The app ID for the backend manager. """ -function create_backend_config(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( +create_backend_config(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifybackend( "POST", "/backend/$(appId)/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_backend_config( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -277,25 +268,23 @@ Creates a backend storage resource. - `resource_name`: The name of the storage resource. """ -function create_backend_storage( +create_backend_storage( appId, backendEnvironmentName, resourceConfig, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/storage", + Dict{String,Any}( + "backendEnvironmentName" => backendEnvironmentName, + "resourceConfig" => resourceConfig, + "resourceName" => resourceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/storage", - Dict{String,Any}( - "backendEnvironmentName" => backendEnvironmentName, - "resourceConfig" => resourceConfig, - "resourceName" => resourceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_backend_storage( appId, backendEnvironmentName, @@ -333,14 +322,12 @@ Generates a one-time challenge code to authenticate a user into your Amplify Adm - `app_id`: The app ID. """ -function create_token(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( - "POST", - "/backend/$(appId)/challenge"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_token(appId; aws_config::AbstractAWSConfig=current_aws_config()) = amplifybackend( + "POST", + "/backend/$(appId)/challenge"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_token( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -364,16 +351,14 @@ Removes an existing environment from your Amplify project. - `backend_environment_name`: The name of the backend environment. """ -function delete_backend( +delete_backend( appId, backendEnvironmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifybackend( + "POST", + "/backend/$(appId)/environments/$(backendEnvironmentName)/remove"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/environments/$(backendEnvironmentName)/remove"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backend( appId, backendEnvironmentName, @@ -405,20 +390,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceConfig"`: Defines the resource configuration for the data model in your Amplify project. """ -function delete_backend_api( +delete_backend_api( appId, backendEnvironmentName, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/api/$(backendEnvironmentName)/remove", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/api/$(backendEnvironmentName)/remove", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backend_api( appId, backendEnvironmentName, @@ -449,20 +432,18 @@ Deletes an existing backend authentication resource. - `resource_name`: The name of this resource. """ -function delete_backend_auth( +delete_backend_auth( appId, backendEnvironmentName, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/auth/$(backendEnvironmentName)/remove", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/auth/$(backendEnvironmentName)/remove", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backend_auth( appId, backendEnvironmentName, @@ -494,21 +475,19 @@ Removes the specified backend storage resource. - `service_name`: The name of the storage service. """ -function delete_backend_storage( +delete_backend_storage( appId, backendEnvironmentName, resourceName, serviceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/storage/$(backendEnvironmentName)/remove", + Dict{String,Any}("resourceName" => resourceName, "serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/storage/$(backendEnvironmentName)/remove", - Dict{String,Any}("resourceName" => resourceName, "serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backend_storage( appId, backendEnvironmentName, @@ -545,14 +524,13 @@ Deletes the challenge token based on the given appId and sessionId. - `session_id`: The session ID. """ -function delete_token(appId, sessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( +delete_token(appId, sessionId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifybackend( "POST", "/backend/$(appId)/challenge/$(sessionId)/remove"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_token( appId, sessionId, @@ -580,20 +558,18 @@ Generates a model schema for an existing backend API resource. - `resource_name`: The name of this resource. """ -function generate_backend_apimodels( +generate_backend_apimodels( appId, backendEnvironmentName, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/api/$(backendEnvironmentName)/generateModels", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/api/$(backendEnvironmentName)/generateModels", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_backend_apimodels( appId, backendEnvironmentName, @@ -625,14 +601,12 @@ Provides project-level details for your Amplify UI project. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"backendEnvironmentName"`: The name of the backend environment. """ -function get_backend(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( - "POST", - "/backend/$(appId)/details"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_backend(appId; aws_config::AbstractAWSConfig=current_aws_config()) = amplifybackend( + "POST", + "/backend/$(appId)/details"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_backend( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -661,20 +635,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceConfig"`: Defines the resource configuration for the data model in your Amplify project. """ -function get_backend_api( +get_backend_api( appId, backendEnvironmentName, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/api/$(backendEnvironmentName)/details", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/api/$(backendEnvironmentName)/details", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backend_api( appId, backendEnvironmentName, @@ -705,20 +677,18 @@ Gets a model introspection schema for an existing backend API resource. - `resource_name`: The name of this resource. """ -function get_backend_apimodels( +get_backend_apimodels( appId, backendEnvironmentName, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/api/$(backendEnvironmentName)/getModels", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/api/$(backendEnvironmentName)/getModels", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backend_apimodels( appId, backendEnvironmentName, @@ -749,20 +719,18 @@ Gets a backend auth details. - `resource_name`: The name of this resource. """ -function get_backend_auth( +get_backend_auth( appId, backendEnvironmentName, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/auth/$(backendEnvironmentName)/details", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/auth/$(backendEnvironmentName)/details", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backend_auth( appId, backendEnvironmentName, @@ -793,16 +761,14 @@ Returns information about a specific job. - `job_id`: The ID for the job. """ -function get_backend_job( +get_backend_job( appId, backendEnvironmentName, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifybackend( + "GET", + "/backend/$(appId)/job/$(backendEnvironmentName)/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "GET", - "/backend/$(appId)/job/$(backendEnvironmentName)/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backend_job( appId, backendEnvironmentName, @@ -831,20 +797,18 @@ Gets details for a backend storage resource. - `resource_name`: The name of the storage resource. """ -function get_backend_storage( +get_backend_storage( appId, backendEnvironmentName, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/storage/$(backendEnvironmentName)/details", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/storage/$(backendEnvironmentName)/details", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backend_storage( appId, backendEnvironmentName, @@ -874,14 +838,13 @@ Gets the challenge token based on the given appId and sessionId. - `session_id`: The session ID. """ -function get_token(appId, sessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( +get_token(appId, sessionId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifybackend( "GET", "/backend/$(appId)/challenge/$(sessionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_token( appId, sessionId, @@ -914,26 +877,24 @@ Imports an existing backend authentication resource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"identityPoolId"`: The ID of the Amazon Cognito identity pool. """ -function import_backend_auth( +import_backend_auth( appId, backendEnvironmentName, nativeClientId, userPoolId, webClientId; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/auth/$(backendEnvironmentName)/import", + Dict{String,Any}( + "nativeClientId" => nativeClientId, + "userPoolId" => userPoolId, + "webClientId" => webClientId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/auth/$(backendEnvironmentName)/import", - Dict{String,Any}( - "nativeClientId" => nativeClientId, - "userPoolId" => userPoolId, - "webClientId" => webClientId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_backend_auth( appId, backendEnvironmentName, @@ -977,20 +938,18 @@ Imports an existing backend storage resource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"bucketName"`: The name of the S3 bucket. """ -function import_backend_storage( +import_backend_storage( appId, backendEnvironmentName, serviceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/storage/$(backendEnvironmentName)/import", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/storage/$(backendEnvironmentName)/import", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_backend_storage( appId, backendEnvironmentName, @@ -1029,16 +988,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Filters the list of response objects to include only those with the specified status. """ -function list_backend_jobs( +list_backend_jobs( appId, backendEnvironmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifybackend( + "POST", + "/backend/$(appId)/job/$(backendEnvironmentName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/job/$(backendEnvironmentName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_backend_jobs( appId, backendEnvironmentName, @@ -1064,11 +1021,9 @@ The list of S3 buckets in your account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: Reserved for future use. """ -function list_s3_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( - "POST", "/s3Buckets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_s3_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) = amplifybackend( + "POST", "/s3Buckets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_s3_buckets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1090,14 +1045,13 @@ Removes all backend environments from your Amplify project. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"cleanAmplifyApp"`: Cleans up the Amplify Console app if this value is set to true. """ -function remove_all_backends(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( +remove_all_backends(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifybackend( "POST", "/backend/$(appId)/remove"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_all_backends( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1120,14 +1074,13 @@ Removes the AWS resources required to access the Amplify Admin UI. - `app_id`: The app ID. """ -function remove_backend_config(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( +remove_backend_config(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifybackend( "POST", "/backend/$(appId)/config/remove"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_backend_config( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1156,20 +1109,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceConfig"`: Defines the resource configuration for the data model in your Amplify project. """ -function update_backend_api( +update_backend_api( appId, backendEnvironmentName, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/api/$(backendEnvironmentName)", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/api/$(backendEnvironmentName)", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_backend_api( appId, backendEnvironmentName, @@ -1201,23 +1152,19 @@ Updates an existing backend authentication resource. - `resource_name`: The name of this resource. """ -function update_backend_auth( +update_backend_auth( appId, backendEnvironmentName, resourceConfig, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/auth/$(backendEnvironmentName)", + Dict{String,Any}("resourceConfig" => resourceConfig, "resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/auth/$(backendEnvironmentName)", - Dict{String,Any}( - "resourceConfig" => resourceConfig, "resourceName" => resourceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_backend_auth( appId, backendEnvironmentName, @@ -1256,14 +1203,13 @@ Updates the AWS resources required to access the Amplify Admin UI. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"loginAuthConfig"`: Describes the Amazon Cognito configuration for Admin UI access. """ -function update_backend_config(appId; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifybackend( +update_backend_config(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifybackend( "POST", "/backend/$(appId)/config/update"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_backend_config( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1294,16 +1240,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Filters the list of response objects to include only those with the specified status. """ -function update_backend_job( +update_backend_job( appId, backendEnvironmentName, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifybackend( + "POST", + "/backend/$(appId)/job/$(backendEnvironmentName)/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/job/$(backendEnvironmentName)/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_backend_job( appId, backendEnvironmentName, @@ -1333,23 +1277,19 @@ Updates an existing backend storage resource. - `resource_name`: The name of the storage resource. """ -function update_backend_storage( +update_backend_storage( appId, backendEnvironmentName, resourceConfig, resourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifybackend( + "POST", + "/backend/$(appId)/storage/$(backendEnvironmentName)", + Dict{String,Any}("resourceConfig" => resourceConfig, "resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifybackend( - "POST", - "/backend/$(appId)/storage/$(backendEnvironmentName)", - Dict{String,Any}( - "resourceConfig" => resourceConfig, "resourceName" => resourceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_backend_storage( appId, backendEnvironmentName, diff --git a/src/services/amplifyuibuilder.jl b/src/services/amplifyuibuilder.jl index 594372277..ee49bc923 100644 --- a/src/services/amplifyuibuilder.jl +++ b/src/services/amplifyuibuilder.jl @@ -19,22 +19,20 @@ Creates a new component for an Amplify app. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: The unique client token. """ -function create_component( +create_component( appId, componentToCreate, environmentName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifyuibuilder( + "POST", + "/app/$(appId)/environment/$(environmentName)/components", + Dict{String,Any}( + "componentToCreate" => componentToCreate, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "POST", - "/app/$(appId)/environment/$(environmentName)/components", - Dict{String,Any}( - "componentToCreate" => componentToCreate, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_component( appId, componentToCreate, @@ -75,17 +73,15 @@ Creates a new form for an Amplify app. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: The unique client token. """ -function create_form( +create_form( appId, environmentName, formToCreate; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "POST", + "/app/$(appId)/environment/$(environmentName)/forms", + Dict{String,Any}("formToCreate" => formToCreate, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "POST", - "/app/$(appId)/environment/$(environmentName)/forms", - Dict{String,Any}("formToCreate" => formToCreate, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_form( appId, environmentName, @@ -125,22 +121,18 @@ Creates a theme to apply to the components in an Amplify app. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: The unique client token. """ -function create_theme( +create_theme( appId, environmentName, themeToCreate; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifyuibuilder( + "POST", + "/app/$(appId)/environment/$(environmentName)/themes", + Dict{String,Any}("themeToCreate" => themeToCreate, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "POST", - "/app/$(appId)/environment/$(environmentName)/themes", - Dict{String,Any}( - "themeToCreate" => themeToCreate, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_theme( appId, environmentName, @@ -177,16 +169,14 @@ Deletes a component from an Amplify app. - `id`: The unique ID of the component to delete. """ -function delete_component( +delete_component( appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "DELETE", + "/app/$(appId)/environment/$(environmentName)/components/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "DELETE", - "/app/$(appId)/environment/$(environmentName)/components/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_component( appId, environmentName, @@ -215,16 +205,14 @@ Deletes a form from an Amplify app. - `id`: The unique ID of the form to delete. """ -function delete_form( +delete_form( appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "DELETE", + "/app/$(appId)/environment/$(environmentName)/forms/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "DELETE", - "/app/$(appId)/environment/$(environmentName)/forms/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_form( appId, environmentName, @@ -253,16 +241,14 @@ Deletes a theme from an Amplify app. - `id`: The unique ID of the theme to delete. """ -function delete_theme( +delete_theme( appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "DELETE", + "/app/$(appId)/environment/$(environmentName)/themes/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "DELETE", - "/app/$(appId)/environment/$(environmentName)/themes/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_theme( appId, environmentName, @@ -290,17 +276,15 @@ end - `request`: Describes the configuration of the request. """ -function exchange_code_for_token( +exchange_code_for_token( provider, request; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "POST", + "/tokens/$(provider)", + Dict{String,Any}("request" => request); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "POST", - "/tokens/$(provider)", - Dict{String,Any}("request" => request); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function exchange_code_for_token( provider, request, @@ -330,16 +314,14 @@ Exports component configurations to code that is ready to integrate into an Ampl Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: The token to request the next page of results. """ -function export_components( +export_components( appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "GET", + "/export/app/$(appId)/environment/$(environmentName)/components"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "GET", - "/export/app/$(appId)/environment/$(environmentName)/components"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_components( appId, environmentName, @@ -369,16 +351,13 @@ Exports form configurations to code that is ready to integrate into an Amplify a Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: The token to request the next page of results. """ -function export_forms( - appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +export_forms(appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "GET", "/export/app/$(appId)/environment/$(environmentName)/forms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function export_forms( appId, environmentName, @@ -408,16 +387,13 @@ Exports theme configurations to code that is ready to integrate into an Amplify Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: The token to request the next page of results. """ -function export_themes( - appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +export_themes(appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "GET", "/export/app/$(appId)/environment/$(environmentName)/themes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function export_themes( appId, environmentName, @@ -446,16 +422,14 @@ Returns an existing code generation job. - `id`: The unique ID of the code generation job. """ -function get_codegen_job( +get_codegen_job( appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "GET", + "/app/$(appId)/environment/$(environmentName)/codegen-jobs/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "GET", - "/app/$(appId)/environment/$(environmentName)/codegen-jobs/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_codegen_job( appId, environmentName, @@ -484,16 +458,14 @@ Returns an existing component for an Amplify app. - `id`: The unique ID of the component. """ -function get_component( +get_component( appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "GET", + "/app/$(appId)/environment/$(environmentName)/components/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "GET", - "/app/$(appId)/environment/$(environmentName)/components/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_component( appId, environmentName, @@ -522,16 +494,13 @@ Returns an existing form for an Amplify app. - `id`: The unique ID of the form. """ -function get_form( - appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +get_form(appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "GET", "/app/$(appId)/environment/$(environmentName)/forms/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_form( appId, environmentName, @@ -559,16 +528,13 @@ Returns existing metadata for an Amplify app. - `environment_name`: The name of the backend environment that is part of the Amplify app. """ -function get_metadata( - appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +get_metadata(appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "GET", "/app/$(appId)/environment/$(environmentName)/metadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_metadata( appId, environmentName, @@ -596,16 +562,13 @@ Returns an existing theme for an Amplify app. - `id`: The unique ID for the theme. """ -function get_theme( - appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +get_theme(appId, environmentName, id; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "GET", "/app/$(appId)/environment/$(environmentName)/themes/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_theme( appId, environmentName, @@ -638,16 +601,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of jobs to retrieve. - `"nextToken"`: The token to request the next page of results. """ -function list_codegen_jobs( +list_codegen_jobs( appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "GET", + "/app/$(appId)/environment/$(environmentName)/codegen-jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "GET", - "/app/$(appId)/environment/$(environmentName)/codegen-jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_codegen_jobs( appId, environmentName, @@ -678,16 +639,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of components to retrieve. - `"nextToken"`: The token to request the next page of results. """ -function list_components( +list_components( appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "GET", + "/app/$(appId)/environment/$(environmentName)/components"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "GET", - "/app/$(appId)/environment/$(environmentName)/components"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_components( appId, environmentName, @@ -718,16 +677,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of forms to retrieve. - `"nextToken"`: The token to request the next page of results. """ -function list_forms( - appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +list_forms(appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "GET", "/app/$(appId)/environment/$(environmentName)/forms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_forms( appId, environmentName, @@ -753,16 +709,13 @@ Returns a list of tags for a specified Amazon Resource Name (ARN). - `resource_arn`: The Amazon Resource Name (ARN) to use to list tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -792,16 +745,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of theme results to return in the response. - `"nextToken"`: The token to request the next page of results. """ -function list_themes( - appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +list_themes(appId, environmentName; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "GET", "/app/$(appId)/environment/$(environmentName)/themes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_themes( appId, environmentName, @@ -830,21 +780,19 @@ Stores the metadata information about a feature on a form. - `feature_name`: The name of the feature associated with the metadata. """ -function put_metadata_flag( +put_metadata_flag( appId, body, environmentName, featureName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifyuibuilder( + "PUT", + "/app/$(appId)/environment/$(environmentName)/metadata/features/$(featureName)", + Dict{String,Any}("body" => body); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "PUT", - "/app/$(appId)/environment/$(environmentName)/metadata/features/$(featureName)", - Dict{String,Any}("body" => body); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_metadata_flag( appId, body, @@ -874,17 +822,15 @@ token that might have expired. - `refresh_token_body`: Information about the refresh token request. """ -function refresh_token( +refresh_token( provider, refreshTokenBody; aws_config::AbstractAWSConfig=current_aws_config() +) = amplifyuibuilder( + "POST", + "/tokens/$(provider)/refresh", + Dict{String,Any}("refreshTokenBody" => refreshTokenBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "POST", - "/tokens/$(provider)/refresh", - Dict{String,Any}("refreshTokenBody" => refreshTokenBody); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function refresh_token( provider, refreshTokenBody, @@ -920,22 +866,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: The idempotency token used to ensure that the code generation job request completes only once. """ -function start_codegen_job( +start_codegen_job( appId, codegenJobToCreate, environmentName; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifyuibuilder( + "POST", + "/app/$(appId)/environment/$(environmentName)/codegen-jobs", + Dict{String,Any}( + "codegenJobToCreate" => codegenJobToCreate, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "POST", - "/app/$(appId)/environment/$(environmentName)/codegen-jobs", - Dict{String,Any}( - "codegenJobToCreate" => codegenJobToCreate, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_codegen_job( appId, codegenJobToCreate, @@ -972,15 +916,14 @@ Tags the resource with a tag key and value. - `tags`: A list of tag key value pairs for a specified Amazon Resource Name (ARN). """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return amplifyuibuilder( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1007,17 +950,14 @@ Untags a resource with a specified Amazon Resource Name (ARN). - `tag_keys`: The tag keys to use to untag a resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return amplifyuibuilder( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + amplifyuibuilder( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1049,23 +989,21 @@ Updates an existing component. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: The unique client token. """ -function update_component( +update_component( appId, environmentName, id, updatedComponent; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifyuibuilder( + "PATCH", + "/app/$(appId)/environment/$(environmentName)/components/$(id)", + Dict{String,Any}( + "updatedComponent" => updatedComponent, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "PATCH", - "/app/$(appId)/environment/$(environmentName)/components/$(id)", - Dict{String,Any}( - "updatedComponent" => updatedComponent, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_component( appId, environmentName, @@ -1107,21 +1045,19 @@ Updates an existing form. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: The unique client token. """ -function update_form( +update_form( appId, environmentName, id, updatedForm; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifyuibuilder( + "PATCH", + "/app/$(appId)/environment/$(environmentName)/forms/$(id)", + Dict{String,Any}("updatedForm" => updatedForm, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "PATCH", - "/app/$(appId)/environment/$(environmentName)/forms/$(id)", - Dict{String,Any}("updatedForm" => updatedForm, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_form( appId, environmentName, @@ -1163,21 +1099,19 @@ Updates an existing theme. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: The unique client token. """ -function update_theme( +update_theme( appId, environmentName, id, updatedTheme; aws_config::AbstractAWSConfig=current_aws_config(), +) = amplifyuibuilder( + "PATCH", + "/app/$(appId)/environment/$(environmentName)/themes/$(id)", + Dict{String,Any}("updatedTheme" => updatedTheme, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return amplifyuibuilder( - "PATCH", - "/app/$(appId)/environment/$(environmentName)/themes/$(id)", - Dict{String,Any}("updatedTheme" => updatedTheme, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_theme( appId, environmentName, diff --git a/src/services/api_gateway.jl b/src/services/api_gateway.jl index 4f3178f02..ca2a77fc0 100644 --- a/src/services/api_gateway.jl +++ b/src/services/api_gateway.jl @@ -26,11 +26,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to 256 characters. - `"value"`: Specifies a value of the API key. """ -function create_api_key(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "POST", "/apikeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_api_key(; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway("POST", "/apikeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_api_key( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -100,17 +97,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined. """ -function create_authorizer( +create_authorizer( name, restapi_id, type; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/restapis/$(restapi_id)/authorizers", + Dict{String,Any}("name" => name, "type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/restapis/$(restapi_id)/authorizers", - Dict{String,Any}("name" => name, "type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_authorizer( name, restapi_id, @@ -148,17 +143,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"stage"`: The name of the API's stage that you want to use for this mapping. Specify '(none)' if you want callers to explicitly specify the stage name after any base path name. """ -function create_base_path_mapping( +create_base_path_mapping( domain_name, restApiId; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/domainnames/$(domain_name)/basepathmappings", + Dict{String,Any}("restApiId" => restApiId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/domainnames/$(domain_name)/basepathmappings", - Dict{String,Any}("restApiId" => restApiId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_base_path_mapping( domain_name, restApiId, @@ -202,14 +195,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+. """ -function create_deployment(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +create_deployment(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "POST", "/restapis/$(restapi_id)/deployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_deployment( restapi_id, params::AbstractDict{String}; @@ -239,17 +231,15 @@ Creates a documentation part. - `restapi_id`: The string identifier of the associated RestApi. """ -function create_documentation_part( +create_documentation_part( location, properties, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/restapis/$(restapi_id)/documentation/parts", + Dict{String,Any}("location" => location, "properties" => properties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/restapis/$(restapi_id)/documentation/parts", - Dict{String,Any}("location" => location, "properties" => properties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_documentation_part( location, properties, @@ -287,17 +277,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description about the new documentation snapshot. - `"stageName"`: The stage name to be associated with the new documentation snapshot. """ -function create_documentation_version( +create_documentation_version( documentationVersion, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/restapis/$(restapi_id)/documentation/versions", + Dict{String,Any}("documentationVersion" => documentationVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/restapis/$(restapi_id)/documentation/versions", - Dict{String,Any}("documentationVersion" => documentationVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_documentation_version( documentationVersion, restapi_id, @@ -362,15 +350,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters. """ -function create_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +create_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "POST", "/domainnames", Dict{String,Any}("domainName" => domainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_domain_name( domainName, params::AbstractDict{String}; @@ -404,17 +391,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"schema"`: The schema for the model. For application/json models, this should be JSON schema draft 4 model. The maximum size of the model is 400 KB. """ -function create_model( +create_model( contentType, name, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/restapis/$(restapi_id)/models", + Dict{String,Any}("contentType" => contentType, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/restapis/$(restapi_id)/models", - Dict{String,Any}("contentType" => contentType, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model( contentType, name, @@ -454,16 +439,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"validateRequestParameters"`: A Boolean flag to indicate whether to validate request parameters, true, or not false. """ -function create_request_validator( - restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +create_request_validator(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "POST", "/restapis/$(restapi_id)/requestvalidators"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_request_validator( restapi_id, params::AbstractDict{String}; @@ -490,17 +472,15 @@ Creates a Resource resource. - `restapi_id`: The string identifier of the associated RestApi. """ -function create_resource( +create_resource( parent_id, pathPart, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/restapis/$(restapi_id)/resources/$(parent_id)", + Dict{String,Any}("pathPart" => pathPart); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/restapis/$(restapi_id)/resources/$(parent_id)", - Dict{String,Any}("pathPart" => pathPart); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource( parent_id, pathPart, @@ -555,15 +535,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to 256 characters. - `"version"`: A version identifier for the API. """ -function create_rest_api(name; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "POST", - "/restapis", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_rest_api(name; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "POST", + "/restapis", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_rest_api( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -604,17 +582,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+. """ -function create_stage( +create_stage( deploymentId, restapi_id, stageName; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/restapis/$(restapi_id)/stages", + Dict{String,Any}("deploymentId" => deploymentId, "stageName" => stageName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/restapis/$(restapi_id)/stages", - Dict{String,Any}("deploymentId" => deploymentId, "stageName" => stageName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_stage( deploymentId, restapi_id, @@ -657,15 +633,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to 256 characters. - `"throttle"`: The throttling limits of the usage plan. """ -function create_usage_plan(name; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "POST", - "/usageplans", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_usage_plan(name; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "POST", + "/usageplans", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_usage_plan( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -691,17 +665,15 @@ Creates a usage plan key for adding an existing API key to a usage plan. the to-be-created UsagePlanKey resource representing a plan customer. """ -function create_usage_plan_key( +create_usage_plan_key( keyId, keyType, usageplanId; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/usageplans/$(usageplanId)/keys", + Dict{String,Any}("keyId" => keyId, "keyType" => keyType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/usageplans/$(usageplanId)/keys", - Dict{String,Any}("keyId" => keyId, "keyType" => keyType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_usage_plan_key( keyId, keyType, @@ -743,17 +715,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters. """ -function create_vpc_link( - name, targetArns; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +create_vpc_link(name, targetArns; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "POST", "/vpclinks", Dict{String,Any}("name" => name, "targetArns" => targetArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_vpc_link( name, targetArns, @@ -783,14 +752,12 @@ Deletes the ApiKey resource. - `api__key`: The identifier of the ApiKey resource to be deleted. """ -function delete_api_key(api_Key; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "DELETE", - "/apikeys/$(api_Key)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_api_key(api_Key; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "DELETE", + "/apikeys/$(api_Key)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_api_key( api_Key, params::AbstractDict{String}; @@ -816,16 +783,14 @@ Deletes an existing Authorizer resource. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_authorizer( +delete_authorizer( authorizer_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/authorizers/$(authorizer_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/authorizers/$(authorizer_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_authorizer( authorizer_id, restapi_id, @@ -853,16 +818,14 @@ Deletes the BasePathMapping resource. - `domain_name`: The domain name of the BasePathMapping resource to delete. """ -function delete_base_path_mapping( +delete_base_path_mapping( base_path, domain_name; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/domainnames/$(domain_name)/basepathmappings/$(base_path)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/domainnames/$(domain_name)/basepathmappings/$(base_path)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_base_path_mapping( base_path, domain_name, @@ -888,16 +851,14 @@ Deletes the ClientCertificate resource. - `clientcertificate_id`: The identifier of the ClientCertificate resource to be deleted. """ -function delete_client_certificate( +delete_client_certificate( clientcertificate_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/clientcertificates/$(clientcertificate_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/clientcertificates/$(clientcertificate_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_client_certificate( clientcertificate_id, params::AbstractDict{String}; @@ -924,16 +885,14 @@ Stage resources associated with it. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_deployment( +delete_deployment( deployment_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/deployments/$(deployment_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/deployments/$(deployment_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_deployment( deployment_id, restapi_id, @@ -960,16 +919,14 @@ Deletes a documentation part - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_documentation_part( +delete_documentation_part( part_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/documentation/parts/$(part_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/documentation/parts/$(part_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_documentation_part( part_id, restapi_id, @@ -996,16 +953,14 @@ Deletes a documentation version. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_documentation_version( +delete_documentation_version( doc_version, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/documentation/versions/$(doc_version)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/documentation/versions/$(doc_version)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_documentation_version( doc_version, restapi_id, @@ -1031,14 +986,13 @@ Deletes the DomainName resource. - `domain_name`: The name of the DomainName resource to be deleted. """ -function delete_domain_name(domain_name; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +delete_domain_name(domain_name; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "DELETE", "/domainnames/$(domain_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_domain_name( domain_name, params::AbstractDict{String}; @@ -1065,16 +1019,14 @@ RestApi and resets it with the default settings. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_gateway_response( +delete_gateway_response( response_type, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/gatewayresponses/$(response_type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/gatewayresponses/$(response_type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_gateway_response( response_type, restapi_id, @@ -1102,16 +1054,14 @@ Represents a delete integration. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_integration( +delete_integration( http_method, resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_integration( http_method, resource_id, @@ -1141,20 +1091,18 @@ Represents a delete integration response. - `status_code`: Specifies a delete integration response request's status code. """ -function delete_integration_response( +delete_integration_response( http_method, resource_id, restapi_id, status_code; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration/responses/$(status_code)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration/responses/$(status_code)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_integration_response( http_method, resource_id, @@ -1184,16 +1132,14 @@ Deletes an existing Method resource. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_method( +delete_method( http_method, resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_method( http_method, resource_id, @@ -1223,20 +1169,18 @@ Deletes an existing MethodResponse resource. - `status_code`: The status code identifier for the MethodResponse resource. """ -function delete_method_response( +delete_method_response( http_method, resource_id, restapi_id, status_code; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/responses/$(status_code)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/responses/$(status_code)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_method_response( http_method, resource_id, @@ -1265,16 +1209,13 @@ Deletes a model. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_model( - model_name, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +delete_model(model_name, restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "DELETE", "/restapis/$(restapi_id)/models/$(model_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_model( model_name, restapi_id, @@ -1301,16 +1242,14 @@ Deletes a RequestValidator of a given RestApi. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_request_validator( +delete_request_validator( requestvalidator_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/requestvalidators/$(requestvalidator_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/requestvalidators/$(requestvalidator_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_request_validator( requestvalidator_id, restapi_id, @@ -1337,16 +1276,14 @@ Deletes a Resource resource. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_resource( +delete_resource( resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/resources/$(resource_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/resources/$(resource_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource( resource_id, restapi_id, @@ -1372,14 +1309,13 @@ Deletes the specified API. - `restapi_id`: The string identifier of the associated RestApi. """ -function delete_rest_api(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +delete_rest_api(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "DELETE", "/restapis/$(restapi_id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_rest_api( restapi_id, params::AbstractDict{String}; @@ -1405,16 +1341,13 @@ Deletes a Stage resource. - `stage_name`: The name of the Stage resource to delete. """ -function delete_stage( - restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +delete_stage(restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "DELETE", "/restapis/$(restapi_id)/stages/$(stage_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_stage( restapi_id, stage_name, @@ -1440,14 +1373,13 @@ Deletes a usage plan of a given plan Id. - `usageplan_id`: The Id of the to-be-deleted usage plan. """ -function delete_usage_plan(usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +delete_usage_plan(usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "DELETE", "/usageplans/$(usageplanId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_usage_plan( usageplanId, params::AbstractDict{String}; @@ -1474,16 +1406,14 @@ Deletes a usage plan key and remove the underlying API key from the associated u the to-be-deleted UsagePlanKey resource representing a plan customer. """ -function delete_usage_plan_key( +delete_usage_plan_key( keyId, usageplanId; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/usageplans/$(usageplanId)/keys/$(keyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/usageplans/$(usageplanId)/keys/$(keyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_usage_plan_key( keyId, usageplanId, @@ -1510,14 +1440,13 @@ Deletes an existing VpcLink of a specified identifier. this VpcLink. """ -function delete_vpc_link(vpclink_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +delete_vpc_link(vpclink_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "DELETE", "/vpclinks/$(vpclink_id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpc_link( vpclink_id, params::AbstractDict{String}; @@ -1543,16 +1472,14 @@ Flushes all authorizer cache entries on a stage. - `stage_name`: The name of the stage to flush. """ -function flush_stage_authorizers_cache( +flush_stage_authorizers_cache( restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/stages/$(stage_name)/cache/authorizers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/stages/$(stage_name)/cache/authorizers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function flush_stage_authorizers_cache( restapi_id, stage_name, @@ -1579,16 +1506,14 @@ Flushes a stage's cache. - `stage_name`: The name of the stage to flush its cache. """ -function flush_stage_cache( +flush_stage_cache( restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "DELETE", + "/restapis/$(restapi_id)/stages/$(stage_name)/cache/data"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "DELETE", - "/restapis/$(restapi_id)/stages/$(stage_name)/cache/data"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function flush_stage_cache( restapi_id, stage_name, @@ -1617,14 +1542,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters. """ -function generate_client_certificate(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +generate_client_certificate(; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "POST", "/clientcertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function generate_client_certificate( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1644,11 +1568,8 @@ end Gets information about the current Account resource. """ -function get_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/account"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway("GET", "/account"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1671,11 +1592,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includeValue"`: A boolean flag to specify whether (true) or not (false) the result contains the key value. """ -function get_api_key(api_Key; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/apikeys/$(api_Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_api_key(api_Key; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", "/apikeys/$(api_Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_api_key( api_Key, params::AbstractDict{String}; @@ -1707,11 +1626,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of queried API keys. - `"position"`: The current pagination position in the paged result set. """ -function get_api_keys(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/apikeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_api_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway("GET", "/apikeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_api_keys( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1731,16 +1647,14 @@ Describe an existing Authorizer resource. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_authorizer( +get_authorizer( authorizer_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/authorizers/$(authorizer_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/authorizers/$(authorizer_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_authorizer( authorizer_id, restapi_id, @@ -1771,14 +1685,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_authorizers(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +get_authorizers(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/authorizers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_authorizers( restapi_id, params::AbstractDict{String}; @@ -1807,16 +1720,14 @@ Describe a BasePathMapping resource. - `domain_name`: The domain name of the BasePathMapping resource to be described. """ -function get_base_path_mapping( +get_base_path_mapping( base_path, domain_name; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/domainnames/$(domain_name)/basepathmappings/$(base_path)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/domainnames/$(domain_name)/basepathmappings/$(base_path)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_base_path_mapping( base_path, domain_name, @@ -1847,16 +1758,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_base_path_mappings( - domain_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_base_path_mappings(domain_name; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/domainnames/$(domain_name)/basepathmappings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_base_path_mappings( domain_name, params::AbstractDict{String}; @@ -1881,16 +1789,14 @@ Gets information about the current ClientCertificate resource. - `clientcertificate_id`: The identifier of the ClientCertificate resource to be described. """ -function get_client_certificate( +get_client_certificate( clientcertificate_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/clientcertificates/$(clientcertificate_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/clientcertificates/$(clientcertificate_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_client_certificate( clientcertificate_id, params::AbstractDict{String}; @@ -1917,11 +1823,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_client_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/clientcertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_client_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", "/clientcertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_client_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1955,16 +1859,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value must be a single-valued list containing only the \"apisummary\" string. For example, GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary. """ -function get_deployment( +get_deployment( deployment_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/deployments/$(deployment_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/deployments/$(deployment_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment( deployment_id, restapi_id, @@ -1995,14 +1897,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_deployments(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +get_deployments(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/deployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_deployments( restapi_id, params::AbstractDict{String}; @@ -2028,16 +1929,14 @@ Gets a documentation part. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_documentation_part( +get_documentation_part( part_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/documentation/parts/$(part_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/documentation/parts/$(part_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_documentation_part( part_id, restapi_id, @@ -2074,16 +1973,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"position"`: The current pagination position in the paged result set. - `"type"`: The type of API entities of the to-be-retrieved documentation parts. """ -function get_documentation_parts( - restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_documentation_parts(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/documentation/parts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_documentation_parts( restapi_id, params::AbstractDict{String}; @@ -2109,16 +2005,14 @@ Gets a documentation version. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_documentation_version( +get_documentation_version( doc_version, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/documentation/versions/$(doc_version)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/documentation/versions/$(doc_version)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_documentation_version( doc_version, restapi_id, @@ -2149,16 +2043,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_documentation_versions( - restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_documentation_versions(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/documentation/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_documentation_versions( restapi_id, params::AbstractDict{String}; @@ -2184,14 +2075,13 @@ called. - `domain_name`: The name of the DomainName resource. """ -function get_domain_name(domain_name; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +get_domain_name(domain_name; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/domainnames/$(domain_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_domain_name( domain_name, params::AbstractDict{String}; @@ -2218,11 +2108,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/domainnames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", "/domainnames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_domain_names( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2260,16 +2148,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys x-amazon-apigateway-authorizer extensions. postman will export the API with Postman extensions, allowing for import to the Postman tool """ -function get_export( +get_export( export_type, restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/stages/$(stage_name)/exports/$(export_type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/stages/$(stage_name)/exports/$(export_type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_export( export_type, restapi_id, @@ -2297,16 +2183,14 @@ Gets a GatewayResponse of a specified response type on the given RestApi. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_gateway_response( +get_gateway_response( response_type, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/gatewayresponses/$(response_type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/gatewayresponses/$(response_type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_gateway_response( response_type, restapi_id, @@ -2341,16 +2225,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"position"`: The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here. """ -function get_gateway_responses( - restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_gateway_responses(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/gatewayresponses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_gateway_responses( restapi_id, params::AbstractDict{String}; @@ -2377,16 +2258,14 @@ Get the integration settings. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_integration( +get_integration( http_method, resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_integration( http_method, resource_id, @@ -2416,20 +2295,18 @@ Represents a get integration response. - `status_code`: Specifies a get integration response request's status code. """ -function get_integration_response( +get_integration_response( http_method, resource_id, restapi_id, status_code; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration/responses/$(status_code)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration/responses/$(status_code)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_integration_response( http_method, resource_id, @@ -2459,16 +2336,14 @@ Describe an existing Method resource. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_method( +get_method( http_method, resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_method( http_method, resource_id, @@ -2498,20 +2373,18 @@ Describes a MethodResponse resource. - `status_code`: The status code for the MethodResponse resource. """ -function get_method_response( +get_method_response( http_method, resource_id, restapi_id, status_code; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/responses/$(status_code)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/responses/$(status_code)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_method_response( http_method, resource_id, @@ -2544,16 +2417,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"flatten"`: A query parameter of a Boolean value to resolve (true) all external model references and returns a flattened model schema or not (false) The default is false. """ -function get_model( - model_name, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_model(model_name, restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/models/$(model_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_model( model_name, restapi_id, @@ -2581,16 +2451,14 @@ structure of a model. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_model_template( +get_model_template( model_name, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/models/$(model_name)/default_template"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/models/$(model_name)/default_template"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_model_template( model_name, restapi_id, @@ -2621,14 +2489,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_models(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/models"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_models(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", + "/restapis/$(restapi_id)/models"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_models( restapi_id, params::AbstractDict{String}; @@ -2654,16 +2520,14 @@ Gets a RequestValidator of a given RestApi. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_request_validator( +get_request_validator( requestvalidator_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/requestvalidators/$(requestvalidator_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/requestvalidators/$(requestvalidator_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_request_validator( requestvalidator_id, restapi_id, @@ -2694,16 +2558,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_request_validators( - restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_request_validators(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/requestvalidators"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_request_validators( restapi_id, params::AbstractDict{String}; @@ -2737,16 +2598,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contain the \"methods\" string. For example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods. """ -function get_resource( - resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_resource(resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/resources/$(resource_id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource( resource_id, restapi_id, @@ -2783,14 +2641,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_resources(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/resources"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_resources(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", + "/restapis/$(restapi_id)/resources"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_resources( restapi_id, params::AbstractDict{String}; @@ -2815,14 +2671,12 @@ Lists the RestApi resource in the collection. - `restapi_id`: The string identifier of the associated RestApi. """ -function get_rest_api(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", - "/restapis/$(restapi_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rest_api(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", + "/restapis/$(restapi_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rest_api( restapi_id, params::AbstractDict{String}; @@ -2849,11 +2703,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_rest_apis(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/restapis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_rest_apis(; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway("GET", "/restapis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_rest_apis( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2882,16 +2733,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and invokerPackage are required. For sdkType of java, parameters named serviceName and javaPackageName are required. """ -function get_sdk( +get_sdk( restapi_id, sdk_type, stage_name; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/restapis/$(restapi_id)/stages/$(stage_name)/sdks/$(sdk_type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/stages/$(stage_name)/sdks/$(sdk_type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sdk( restapi_id, sdk_type, @@ -2918,14 +2767,12 @@ Gets an SDK type. - `sdktype_id`: The identifier of the queried SdkType instance. """ -function get_sdk_type(sdktype_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", - "/sdktypes/$(sdktype_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_sdk_type(sdktype_id; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", + "/sdktypes/$(sdktype_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_sdk_type( sdktype_id, params::AbstractDict{String}; @@ -2952,11 +2799,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_sdk_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/sdktypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_sdk_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway("GET", "/sdktypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_sdk_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2975,17 +2819,14 @@ Gets information about a Stage resource. - `restapi_id`: The string identifier of the associated RestApi. - `stage_name`: The name of the Stage resource to get information about. -""" -function get_stage( - restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +""" +get_stage(restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/restapis/$(restapi_id)/stages/$(stage_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_stage( restapi_id, stage_name, @@ -3014,14 +2855,12 @@ Gets information about one or more Stage resources. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"deploymentId"`: The stages' deployment identifiers. """ -function get_stages(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", - "/restapis/$(restapi_id)/stages"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_stages(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", + "/restapis/$(restapi_id)/stages"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_stages( restapi_id, params::AbstractDict{String}; @@ -3052,14 +2891,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"position"`: (Not currently supported) The current pagination position in the paged result set. """ -function get_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", - "/tags/$(resource_arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", + "/tags/$(resource_arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_tags( resource_arn, params::AbstractDict{String}; @@ -3092,17 +2929,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_usage( +get_usage( endDate, startDate, usageplanId; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "GET", + "/usageplans/$(usageplanId)/usage", + Dict{String,Any}("endDate" => endDate, "startDate" => startDate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "GET", - "/usageplans/$(usageplanId)/usage", - Dict{String,Any}("endDate" => endDate, "startDate" => startDate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_usage( endDate, startDate, @@ -3135,14 +2970,13 @@ Gets a usage plan of a given plan identifier. - `usageplan_id`: The identifier of the UsagePlan resource to be retrieved. """ -function get_usage_plan(usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +get_usage_plan(usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/usageplans/$(usageplanId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_usage_plan( usageplanId, params::AbstractDict{String}; @@ -3170,16 +3004,13 @@ Gets a usage plan key of a given key identifier. the to-be-retrieved UsagePlanKey resource representing a plan customer. """ -function get_usage_plan_key( - keyId, usageplanId; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_usage_plan_key(keyId, usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/usageplans/$(usageplanId)/keys/$(keyId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_usage_plan_key( keyId, usageplanId, @@ -3212,16 +3043,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: A query parameter specifying the name of the to-be-returned usage plan keys. - `"position"`: The current pagination position in the paged result set. """ -function get_usage_plan_keys( - usageplanId; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +get_usage_plan_keys(usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "GET", "/usageplans/$(usageplanId)/keys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_usage_plan_keys( usageplanId, params::AbstractDict{String}; @@ -3249,11 +3077,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_usage_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/usageplans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_usage_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", "/usageplans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_usage_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3273,14 +3099,12 @@ Gets a specified VPC link under the caller's account in a region. this VpcLink. """ -function get_vpc_link(vpclink_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", - "/vpclinks/$(vpclink_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_vpc_link(vpclink_id; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "GET", + "/vpclinks/$(vpclink_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_vpc_link( vpclink_id, params::AbstractDict{String}; @@ -3307,11 +3131,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the maximum value is 500. - `"position"`: The current pagination position in the paged result set. """ -function get_vpc_links(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "GET", "/vpclinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_vpc_links(; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway("GET", "/vpclinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_vpc_links( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3337,15 +3158,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"failonwarnings"`: A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error is encountered. """ -function import_api_keys(body, format; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +import_api_keys(body, format; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "POST", "/apikeys?mode=import", Dict{String,Any}("body" => body, "format" => format); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function import_api_keys( body, format, @@ -3382,17 +3202,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value is merge. """ -function import_documentation_parts( +import_documentation_parts( body, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PUT", + "/restapis/$(restapi_id)/documentation/parts", + Dict{String,Any}("body" => body); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PUT", - "/restapis/$(restapi_id)/documentation/parts", - Dict{String,Any}("body" => body); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_documentation_parts( body, restapi_id, @@ -3432,15 +3250,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys endpointConfigurationTypes=PRIVATE. The default endpoint type is EDGE. To handle imported basepath, set parameters as basepath=ignore, basepath=prepend or basepath=split. """ -function import_rest_api(body; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "POST", - "/restapis?mode=import", - Dict{String,Any}("body" => body); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +import_rest_api(body; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "POST", + "/restapis?mode=import", + Dict{String,Any}("body" => body); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function import_rest_api( body, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3472,16 +3288,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys map of key-value pairs. - `"statusCode"`: The HTTP status code of the GatewayResponse. """ -function put_gateway_response( +put_gateway_response( response_type, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PUT", + "/restapis/$(restapi_id)/gatewayresponses/$(response_type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PUT", - "/restapis/$(restapi_id)/gatewayresponses/$(response_type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_gateway_response( response_type, restapi_id, @@ -3567,21 +3381,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}. """ -function put_integration( +put_integration( http_method, resource_id, restapi_id, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "PUT", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration", + Dict{String,Any}("type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PUT", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration", - Dict{String,Any}("type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_integration( http_method, resource_id, @@ -3630,20 +3442,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"responseTemplates"`: Specifies a put integration response's templates. - `"selectionPattern"`: Specifies the selection pattern of a put integration response. """ -function put_integration_response( +put_integration_response( http_method, resource_id, restapi_id, status_code; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "PUT", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration/responses/$(status_code)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PUT", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration/responses/$(status_code)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_integration_response( http_method, resource_id, @@ -3703,21 +3513,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"requestValidatorId"`: The identifier of a RequestValidator for validating the method request. """ -function put_method( +put_method( authorizationType, http_method, resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "PUT", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)", + Dict{String,Any}("authorizationType" => authorizationType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PUT", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)", - Dict{String,Any}("authorizationType" => authorizationType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_method( authorizationType, http_method, @@ -3768,20 +3576,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the prefix.) """ -function put_method_response( +put_method_response( http_method, resource_id, restapi_id, status_code; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "PUT", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/responses/$(status_code)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PUT", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/responses/$(status_code)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_method_response( http_method, resource_id, @@ -3824,15 +3630,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the AWS CLI command of aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'. """ -function put_rest_api(body, restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +put_rest_api(body, restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PUT", "/restapis/$(restapi_id)", Dict{String,Any}("body" => body); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_rest_api( body, restapi_id, @@ -3861,17 +3666,14 @@ Adds or updates a tag on a given resource. 256 characters. """ -function tag_resource( - resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +tag_resource(resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PUT", "/tags/$(resource_arn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resource_arn, tags, @@ -3912,16 +3714,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"stageVariables"`: A key-value map of stage variables to simulate an invocation on a deployed Stage. """ -function test_invoke_authorizer( +test_invoke_authorizer( authorizer_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/restapis/$(restapi_id)/authorizers/$(authorizer_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/restapis/$(restapi_id)/authorizers/$(authorizer_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_invoke_authorizer( authorizer_id, restapi_id, @@ -3963,16 +3763,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"stageVariables"`: A key-value map of stage variables to simulate an invocation on a deployed Stage. """ -function test_invoke_method( +test_invoke_method( http_method, resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "POST", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "POST", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_invoke_method( http_method, resource_id, @@ -4000,17 +3798,14 @@ Removes a tag from a given resource. - `tag_keys`: The Tag keys to delete. """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "DELETE", "/tags/$(resource_arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -4037,11 +3832,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "PATCH", "/account"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway("PATCH", "/account"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4064,14 +3856,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_api_key(api_Key; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( - "PATCH", - "/apikeys/$(api_Key)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_api_key(api_Key; aws_config::AbstractAWSConfig=current_aws_config()) = api_gateway( + "PATCH", + "/apikeys/$(api_Key)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_api_key( api_Key, params::AbstractDict{String}; @@ -4101,16 +3891,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_authorizer( +update_authorizer( authorizer_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/authorizers/$(authorizer_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/authorizers/$(authorizer_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_authorizer( authorizer_id, restapi_id, @@ -4142,16 +3930,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_base_path_mapping( +update_base_path_mapping( base_path, domain_name; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/domainnames/$(domain_name)/basepathmappings/$(base_path)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/domainnames/$(domain_name)/basepathmappings/$(base_path)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_base_path_mapping( base_path, domain_name, @@ -4181,16 +3967,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_client_certificate( +update_client_certificate( clientcertificate_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/clientcertificates/$(clientcertificate_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/clientcertificates/$(clientcertificate_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_client_certificate( clientcertificate_id, params::AbstractDict{String}; @@ -4221,16 +4005,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_deployment( +update_deployment( deployment_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/deployments/$(deployment_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/deployments/$(deployment_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_deployment( deployment_id, restapi_id, @@ -4261,16 +4043,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_documentation_part( +update_documentation_part( part_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/documentation/parts/$(part_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/documentation/parts/$(part_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_documentation_part( part_id, restapi_id, @@ -4301,16 +4081,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_documentation_version( +update_documentation_version( doc_version, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/documentation/versions/$(doc_version)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/documentation/versions/$(doc_version)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_documentation_version( doc_version, restapi_id, @@ -4340,14 +4118,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_domain_name(domain_name; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +update_domain_name(domain_name; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PATCH", "/domainnames/$(domain_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_domain_name( domain_name, params::AbstractDict{String}; @@ -4377,16 +4154,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_gateway_response( +update_gateway_response( response_type, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/gatewayresponses/$(response_type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/gatewayresponses/$(response_type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_gateway_response( response_type, restapi_id, @@ -4418,16 +4193,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_integration( +update_integration( http_method, resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_integration( http_method, resource_id, @@ -4461,20 +4234,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_integration_response( +update_integration_response( http_method, resource_id, restapi_id, status_code; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration/responses/$(status_code)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/integration/responses/$(status_code)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_integration_response( http_method, resource_id, @@ -4508,16 +4279,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_method( +update_method( http_method, resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_method( http_method, resource_id, @@ -4551,20 +4320,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_method_response( +update_method_response( http_method, resource_id, restapi_id, status_code; aws_config::AbstractAWSConfig=current_aws_config(), +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/responses/$(status_code)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/resources/$(resource_id)/methods/$(http_method)/responses/$(status_code)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_method_response( http_method, resource_id, @@ -4597,16 +4364,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_model( - model_name, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +update_model(model_name, restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PATCH", "/restapis/$(restapi_id)/models/$(model_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_model( model_name, restapi_id, @@ -4637,16 +4401,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_request_validator( +update_request_validator( requestvalidator_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/requestvalidators/$(requestvalidator_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/requestvalidators/$(requestvalidator_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_request_validator( requestvalidator_id, restapi_id, @@ -4677,16 +4439,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_resource( +update_resource( resource_id, restapi_id; aws_config::AbstractAWSConfig=current_aws_config() +) = api_gateway( + "PATCH", + "/restapis/$(restapi_id)/resources/$(resource_id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return api_gateway( - "PATCH", - "/restapis/$(restapi_id)/resources/$(resource_id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource( resource_id, restapi_id, @@ -4716,14 +4476,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_rest_api(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +update_rest_api(restapi_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PATCH", "/restapis/$(restapi_id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_rest_api( restapi_id, params::AbstractDict{String}; @@ -4753,16 +4512,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_stage( - restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +update_stage(restapi_id, stage_name; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PATCH", "/restapis/$(restapi_id)/stages/$(stage_name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_stage( restapi_id, stage_name, @@ -4795,16 +4551,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_usage( - keyId, usageplanId; aws_config::AbstractAWSConfig=current_aws_config() -) - return api_gateway( +update_usage(keyId, usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PATCH", "/usageplans/$(usageplanId)/keys/$(keyId)/usage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_usage( keyId, usageplanId, @@ -4834,14 +4587,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_usage_plan(usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +update_usage_plan(usageplanId; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PATCH", "/usageplans/$(usageplanId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_usage_plan( usageplanId, params::AbstractDict{String}; @@ -4871,14 +4623,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"patchOperations"`: For more information about supported patch operations, see Patch Operations. """ -function update_vpc_link(vpclink_id; aws_config::AbstractAWSConfig=current_aws_config()) - return api_gateway( +update_vpc_link(vpclink_id; aws_config::AbstractAWSConfig=current_aws_config()) = + api_gateway( "PATCH", "/vpclinks/$(vpclink_id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_vpc_link( vpclink_id, params::AbstractDict{String}; diff --git a/src/services/apigatewaymanagementapi.jl b/src/services/apigatewaymanagementapi.jl index 693a01224..77052dfc1 100644 --- a/src/services/apigatewaymanagementapi.jl +++ b/src/services/apigatewaymanagementapi.jl @@ -14,14 +14,13 @@ Delete the connection with the provided id. - `connection_id`: """ -function delete_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewaymanagementapi( +delete_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewaymanagementapi( "DELETE", "/@connections/$(connectionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connection( connectionId, params::AbstractDict{String}; @@ -46,14 +45,13 @@ Get information about the connection with the provided id. - `connection_id`: """ -function get_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewaymanagementapi( +get_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewaymanagementapi( "GET", "/@connections/$(connectionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connection( connectionId, params::AbstractDict{String}; @@ -79,17 +77,14 @@ Sends the provided data to the specified connection. - `connection_id`: The identifier of the connection that a specific client is using. """ -function post_to_connection( - Data, connectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewaymanagementapi( +post_to_connection(Data, connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewaymanagementapi( "POST", "/@connections/$(connectionId)", Dict{String,Any}("Data" => Data); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function post_to_connection( Data, connectionId, diff --git a/src/services/apigatewayv2.jl b/src/services/apigatewayv2.jl index 7524bbe65..2e1ecd1b4 100644 --- a/src/services/apigatewayv2.jl +++ b/src/services/apigatewayv2.jl @@ -50,15 +50,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys or AWS_PROXY, respectively. Supported only for HTTP APIs. - `"version"`: A version identifier for the API. """ -function create_api(name, protocolType; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +create_api(name, protocolType; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "POST", "/v2/apis", Dict{String,Any}("name" => name, "protocolType" => protocolType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_api( name, protocolType, @@ -95,17 +94,15 @@ Creates an API mapping. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"apiMappingKey"`: The API mapping key. """ -function create_api_mapping( +create_api_mapping( apiId, domainName, stage; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "POST", + "/v2/domainnames/$(domainName)/apimappings", + Dict{String,Any}("apiId" => apiId, "stage" => stage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "POST", - "/v2/domainnames/$(domainName)/apimappings", - Dict{String,Any}("apiId" => apiId, "stage" => stage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_api_mapping( apiId, domainName, @@ -184,25 +181,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"jwtConfiguration"`: Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs. """ -function create_authorizer( +create_authorizer( apiId, authorizerType, identitySource, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = apigatewayv2( + "POST", + "/v2/apis/$(apiId)/authorizers", + Dict{String,Any}( + "authorizerType" => authorizerType, + "identitySource" => identitySource, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "POST", - "/v2/apis/$(apiId)/authorizers", - Dict{String,Any}( - "authorizerType" => authorizerType, - "identitySource" => identitySource, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_authorizer( apiId, authorizerType, @@ -244,14 +239,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description for the deployment resource. - `"stageName"`: The name of the Stage resource for the Deployment resource to create. """ -function create_deployment(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "POST", - "/v2/apis/$(apiId)/deployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_deployment(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "POST", + "/v2/apis/$(apiId)/deployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_deployment( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -280,15 +273,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys domain name. - `"tags"`: The collection of tags associated with a domain name. """ -function create_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +create_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "POST", "/v2/domainnames", Dict{String,Any}("domainName" => domainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_domain_name( domainName, params::AbstractDict{String}; @@ -412,17 +404,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs. """ -function create_integration( +create_integration( apiId, integrationType; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "POST", + "/v2/apis/$(apiId)/integrations", + Dict{String,Any}("integrationType" => integrationType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "POST", - "/v2/apis/$(apiId)/integrations", - Dict{String,Any}("integrationType" => integrationType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_integration( apiId, integrationType, @@ -477,20 +467,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateSelectionExpression"`: The template selection expression for the integration response. Supported only for WebSocket APIs. """ -function create_integration_response( +create_integration_response( apiId, integrationId, integrationResponseKey; aws_config::AbstractAWSConfig=current_aws_config(), +) = apigatewayv2( + "POST", + "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses", + Dict{String,Any}("integrationResponseKey" => integrationResponseKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "POST", - "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses", - Dict{String,Any}("integrationResponseKey" => integrationResponseKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_integration_response( apiId, integrationId, @@ -530,17 +518,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"contentType"`: The content-type for the model, for example, \"application/json\". - `"description"`: The description of the model. """ -function create_model( - apiId, name, schema; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +create_model(apiId, name, schema; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "POST", "/v2/apis/$(apiId)/models", Dict{String,Any}("name" => name, "schema" => schema); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_model( apiId, name, @@ -592,15 +577,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys route. Supported only for WebSocket APIs. - `"target"`: The target for the route. """ -function create_route(apiId, routeKey; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +create_route(apiId, routeKey; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "POST", "/v2/apis/$(apiId)/routes", Dict{String,Any}("routeKey" => routeKey); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_route( apiId, routeKey, @@ -636,17 +620,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"responseModels"`: The response models for the route response. - `"responseParameters"`: The route response parameters. """ -function create_route_response( +create_route_response( apiId, routeId, routeResponseKey; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "POST", + "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses", + Dict{String,Any}("routeResponseKey" => routeResponseKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "POST", - "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses", - Dict{String,Any}("routeResponseKey" => routeResponseKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_route_response( apiId, routeId, @@ -693,15 +675,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys [A-Za-z0-9-._~:/?#&=,]+. - `"tags"`: The collection of tags. Each tag element is associated with a given resource. """ -function create_stage(apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +create_stage(apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "POST", "/v2/apis/$(apiId)/stages", Dict{String,Any}("stageName" => stageName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_stage( apiId, stageName, @@ -734,17 +715,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"securityGroupIds"`: A list of security group IDs for the VPC link. - `"tags"`: A list of tags. """ -function create_vpc_link( - name, subnetIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +create_vpc_link(name, subnetIds; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "POST", "/v2/vpclinks", Dict{String,Any}("name" => name, "subnetIds" => subnetIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_vpc_link( name, subnetIds, @@ -777,16 +755,14 @@ its AccessLogSettings. hyphens, and underscores. Maximum length is 128 characters. """ -function delete_access_log_settings( +delete_access_log_settings( apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "DELETE", + "/v2/apis/$(apiId)/stages/$(stageName)/accesslogsettings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "DELETE", - "/v2/apis/$(apiId)/stages/$(stageName)/accesslogsettings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_log_settings( apiId, stageName, @@ -812,14 +788,12 @@ Deletes an Api resource. - `api_id`: The API identifier. """ -function delete_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "DELETE", - "/v2/apis/$(apiId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "DELETE", + "/v2/apis/$(apiId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_api( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -843,16 +817,14 @@ Deletes an API mapping. - `domain_name`: The domain name. """ -function delete_api_mapping( +delete_api_mapping( apiMappingId, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "DELETE", + "/v2/domainnames/$(domainName)/apimappings/$(apiMappingId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "DELETE", - "/v2/domainnames/$(domainName)/apimappings/$(apiMappingId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_api_mapping( apiMappingId, domainName, @@ -879,16 +851,13 @@ Deletes an Authorizer. - `authorizer_id`: The authorizer identifier. """ -function delete_authorizer( - apiId, authorizerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +delete_authorizer(apiId, authorizerId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/apis/$(apiId)/authorizers/$(authorizerId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_authorizer( apiId, authorizerId, @@ -914,16 +883,13 @@ Deletes a CORS configuration. - `api_id`: The API identifier. """ -function delete_cors_configuration( - apiId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +delete_cors_configuration(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/apis/$(apiId)/cors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cors_configuration( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -947,16 +913,13 @@ Deletes a Deployment. - `deployment_id`: The deployment ID. """ -function delete_deployment( - apiId, deploymentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +delete_deployment(apiId, deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/apis/$(apiId)/deployments/$(deploymentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_deployment( apiId, deploymentId, @@ -982,14 +945,13 @@ Deletes a domain name. - `domain_name`: The domain name. """ -function delete_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +delete_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/domainnames/$(domainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_domain_name( domainName, params::AbstractDict{String}; @@ -1015,16 +977,14 @@ Deletes an Integration. - `integration_id`: The integration ID. """ -function delete_integration( +delete_integration( apiId, integrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "DELETE", + "/v2/apis/$(apiId)/integrations/$(integrationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "DELETE", - "/v2/apis/$(apiId)/integrations/$(integrationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_integration( apiId, integrationId, @@ -1052,19 +1012,17 @@ Deletes an IntegrationResponses. - `integration_response_id`: The integration response ID. """ -function delete_integration_response( +delete_integration_response( apiId, integrationId, integrationResponseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = apigatewayv2( + "DELETE", + "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses/$(integrationResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "DELETE", - "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses/$(integrationResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_integration_response( apiId, integrationId, @@ -1092,14 +1050,13 @@ Deletes a Model. - `model_id`: The model ID. """ -function delete_model(apiId, modelId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +delete_model(apiId, modelId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/apis/$(apiId)/models/$(modelId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_model( apiId, modelId, @@ -1126,14 +1083,13 @@ Deletes a Route. - `route_id`: The route ID. """ -function delete_route(apiId, routeId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +delete_route(apiId, routeId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/apis/$(apiId)/routes/$(routeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_route( apiId, routeId, @@ -1161,16 +1117,14 @@ Deletes a route request parameter. Supported only for WebSocket APIs. - `route_id`: The route ID. """ -function delete_route_request_parameter( +delete_route_request_parameter( apiId, requestParameterKey, routeId; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "DELETE", + "/v2/apis/$(apiId)/routes/$(routeId)/requestparameters/$(requestParameterKey)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "DELETE", - "/v2/apis/$(apiId)/routes/$(routeId)/requestparameters/$(requestParameterKey)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_route_request_parameter( apiId, requestParameterKey, @@ -1199,16 +1153,14 @@ Deletes a RouteResponse. - `route_response_id`: The route response ID. """ -function delete_route_response( +delete_route_response( apiId, routeId, routeResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "DELETE", + "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses/$(routeResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "DELETE", - "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses/$(routeResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_route_response( apiId, routeId, @@ -1238,16 +1190,14 @@ Deletes the RouteSettings for a stage. hyphens, and underscores. Maximum length is 128 characters. """ -function delete_route_settings( +delete_route_settings( apiId, routeKey, stageName; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "DELETE", + "/v2/apis/$(apiId)/stages/$(stageName)/routesettings/$(routeKey)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "DELETE", - "/v2/apis/$(apiId)/stages/$(stageName)/routesettings/$(routeKey)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_route_settings( apiId, routeKey, @@ -1276,14 +1226,13 @@ Deletes a Stage. hyphens, and underscores. Maximum length is 128 characters. """ -function delete_stage(apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +delete_stage(apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/apis/$(apiId)/stages/$(stageName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_stage( apiId, stageName, @@ -1309,14 +1258,13 @@ Deletes a VPC link. - `vpc_link_id`: The ID of the VPC link. """ -function delete_vpc_link(vpcLinkId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +delete_vpc_link(vpcLinkId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/vpclinks/$(vpcLinkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpc_link( vpcLinkId, params::AbstractDict{String}; @@ -1353,17 +1301,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"stageName"`: The name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported. """ -function export_api( +export_api( apiId, outputType, specification; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/exports/$(specification)", + Dict{String,Any}("outputType" => outputType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/exports/$(specification)", - Dict{String,Any}("outputType" => outputType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_api( apiId, outputType, @@ -1392,11 +1338,9 @@ Gets an Api resource. - `api_id`: The API identifier. """ -function get_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", "/v2/apis/$(apiId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", "/v2/apis/$(apiId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_api( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1420,16 +1364,14 @@ Gets an API mapping. - `domain_name`: The domain name. """ -function get_api_mapping( +get_api_mapping( apiMappingId, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "GET", + "/v2/domainnames/$(domainName)/apimappings/$(apiMappingId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "GET", - "/v2/domainnames/$(domainName)/apimappings/$(apiMappingId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_api_mapping( apiMappingId, domainName, @@ -1460,14 +1402,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_api_mappings(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +get_api_mappings(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/domainnames/$(domainName)/apimappings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_api_mappings( domainName, params::AbstractDict{String}; @@ -1494,11 +1435,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_apis(; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", "/v2/apis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_apis(; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2("GET", "/v2/apis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_apis( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1518,16 +1456,13 @@ Gets an Authorizer. - `authorizer_id`: The authorizer identifier. """ -function get_authorizer( - apiId, authorizerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +get_authorizer(apiId, authorizerId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/apis/$(apiId)/authorizers/$(authorizerId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_authorizer( apiId, authorizerId, @@ -1558,14 +1493,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_authorizers(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/authorizers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_authorizers(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/authorizers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_authorizers( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1589,16 +1522,13 @@ Gets a Deployment. - `deployment_id`: The deployment ID. """ -function get_deployment( - apiId, deploymentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +get_deployment(apiId, deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/apis/$(apiId)/deployments/$(deploymentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_deployment( apiId, deploymentId, @@ -1629,14 +1559,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_deployments(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/deployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_deployments(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/deployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_deployments( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1659,14 +1587,13 @@ Gets a domain name. - `domain_name`: The domain name. """ -function get_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +get_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/domainnames/$(domainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_domain_name( domainName, params::AbstractDict{String}; @@ -1693,11 +1620,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", "/v2/domainnames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", "/v2/domainnames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_domain_names( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1721,16 +1646,13 @@ Gets an Integration. - `integration_id`: The integration ID. """ -function get_integration( - apiId, integrationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +get_integration(apiId, integrationId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/apis/$(apiId)/integrations/$(integrationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_integration( apiId, integrationId, @@ -1758,19 +1680,17 @@ Gets an IntegrationResponses. - `integration_response_id`: The integration response ID. """ -function get_integration_response( +get_integration_response( apiId, integrationId, integrationResponseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses/$(integrationResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses/$(integrationResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_integration_response( apiId, integrationId, @@ -1803,16 +1723,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_integration_responses( +get_integration_responses( apiId, integrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_integration_responses( apiId, integrationId, @@ -1843,14 +1761,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_integrations(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/integrations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_integrations(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/integrations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_integrations( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1874,14 +1790,13 @@ Gets a Model. - `model_id`: The model ID. """ -function get_model(apiId, modelId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +get_model(apiId, modelId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/apis/$(apiId)/models/$(modelId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_model( apiId, modelId, @@ -1908,16 +1823,13 @@ Gets a model template. - `model_id`: The model ID. """ -function get_model_template( - apiId, modelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +get_model_template(apiId, modelId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/apis/$(apiId)/models/$(modelId)/template"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_model_template( apiId, modelId, @@ -1948,14 +1860,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_models(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/models"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_models(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/models"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_models( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1979,14 +1889,13 @@ Gets a Route. - `route_id`: The route ID. """ -function get_route(apiId, routeId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +get_route(apiId, routeId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/apis/$(apiId)/routes/$(routeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_route( apiId, routeId, @@ -2014,16 +1923,14 @@ Gets a RouteResponse. - `route_response_id`: The route response ID. """ -function get_route_response( +get_route_response( apiId, routeId, routeResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses/$(routeResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses/$(routeResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_route_response( apiId, routeId, @@ -2056,16 +1963,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_route_responses( - apiId, routeId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +get_route_responses(apiId, routeId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_route_responses( apiId, routeId, @@ -2096,14 +2000,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_routes(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/routes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_routes(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/routes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_routes( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2128,14 +2030,13 @@ Gets a Stage. hyphens, and underscores. Maximum length is 128 characters. """ -function get_stage(apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +get_stage(apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "GET", "/v2/apis/$(apiId)/stages/$(stageName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_stage( apiId, stageName, @@ -2166,14 +2067,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_stages(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", - "/v2/apis/$(apiId)/stages"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_stages(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", + "/v2/apis/$(apiId)/stages"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_stages( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2196,14 +2095,12 @@ Gets a collection of Tag resources. - `resource-arn`: The resource ARN for the tag. """ -function get_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", - "/v2/tags/$(resource-arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", + "/v2/tags/$(resource-arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_tags( resource_arn, params::AbstractDict{String}; @@ -2228,14 +2125,12 @@ Gets a VPC link. - `vpc_link_id`: The ID of the VPC link. """ -function get_vpc_link(vpcLinkId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", - "/v2/vpclinks/$(vpcLinkId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_vpc_link(vpcLinkId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", + "/v2/vpclinks/$(vpcLinkId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_vpc_link( vpcLinkId, params::AbstractDict{String}; @@ -2262,11 +2157,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next page of elements from this collection. Not valid for the last element of the collection. """ -function get_vpc_links(; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "GET", "/v2/vpclinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_vpc_links(; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "GET", "/v2/vpclinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_vpc_links( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2296,15 +2189,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"failOnWarnings"`: Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered. """ -function import_api(body; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "PUT", - "/v2/apis", - Dict{String,Any}("body" => body); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +import_api(body; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "PUT", + "/v2/apis", + Dict{String,Any}("body" => body); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function import_api( body, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2335,15 +2226,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"failOnWarnings"`: Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered. """ -function reimport_api(apiId, body; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +reimport_api(apiId, body; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "PUT", "/v2/apis/$(apiId)", Dict{String,Any}("body" => body); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reimport_api( apiId, body, @@ -2371,16 +2261,14 @@ Resets all authorizer cache entries on a stage. Supported only for HTTP APIs. hyphens, and underscores, or be default. Maximum length is 128 characters. """ -function reset_authorizers_cache( +reset_authorizers_cache( apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "DELETE", + "/v2/apis/$(apiId)/stages/$(stageName)/cache/authorizers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "DELETE", - "/v2/apis/$(apiId)/stages/$(stageName)/cache/authorizers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_authorizers_cache( apiId, stageName, @@ -2409,14 +2297,13 @@ Creates a new Tag resource to represent a tag. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The collection of tags. Each tag element is associated with a given resource. """ -function tag_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +tag_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "POST", "/v2/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resource_arn, params::AbstractDict{String}; @@ -2442,17 +2329,14 @@ Deletes a Tag. - `tag_keys`: The Tag keys to delete """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "DELETE", "/v2/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -2512,11 +2396,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from an API. Supported only for HTTP APIs. - `"version"`: A version identifier for the API. """ -function update_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( - "PATCH", "/v2/apis/$(apiId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = apigatewayv2( + "PATCH", "/v2/apis/$(apiId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_api( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2545,17 +2427,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"apiMappingKey"`: The API mapping key. - `"stage"`: The API stage. """ -function update_api_mapping( +update_api_mapping( apiId, apiMappingId, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "PATCH", + "/v2/domainnames/$(domainName)/apimappings/$(apiMappingId)", + Dict{String,Any}("apiId" => apiId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "PATCH", - "/v2/domainnames/$(domainName)/apimappings/$(apiMappingId)", - Dict{String,Any}("apiId" => apiId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_api_mapping( apiId, apiMappingId, @@ -2633,16 +2513,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys JWT authorizer type. Supported only for HTTP APIs. - `"name"`: The name of the authorizer. """ -function update_authorizer( - apiId, authorizerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +update_authorizer(apiId, authorizerId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "PATCH", "/v2/apis/$(apiId)/authorizers/$(authorizerId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_authorizer( apiId, authorizerId, @@ -2672,16 +2549,13 @@ Updates a Deployment. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description for the deployment resource. """ -function update_deployment( - apiId, deploymentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apigatewayv2( +update_deployment(apiId, deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "PATCH", "/v2/apis/$(apiId)/deployments/$(deploymentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_deployment( apiId, deploymentId, @@ -2712,14 +2586,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"mutualTlsAuthentication"`: The mutual TLS authentication configuration for a custom domain name. """ -function update_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +update_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "PATCH", "/v2/domainnames/$(domainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_domain_name( domainName, params::AbstractDict{String}; @@ -2841,16 +2714,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs. """ -function update_integration( +update_integration( apiId, integrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "PATCH", + "/v2/apis/$(apiId)/integrations/$(integrationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "PATCH", - "/v2/apis/$(apiId)/integrations/$(integrationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_integration( apiId, integrationId, @@ -2908,19 +2779,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateSelectionExpression"`: The template selection expression for the integration response. Supported only for WebSocket APIs. """ -function update_integration_response( +update_integration_response( apiId, integrationId, integrationResponseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = apigatewayv2( + "PATCH", + "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses/$(integrationResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "PATCH", - "/v2/apis/$(apiId)/integrations/$(integrationId)/integrationresponses/$(integrationResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_integration_response( apiId, integrationId, @@ -2955,14 +2824,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"schema"`: The schema for the model. For application/json models, this should be JSON schema draft 4 model. """ -function update_model(apiId, modelId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +update_model(apiId, modelId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "PATCH", "/v2/apis/$(apiId)/models/$(modelId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_model( apiId, modelId, @@ -3012,14 +2880,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys route. Supported only for WebSocket APIs. - `"target"`: The target for the route. """ -function update_route(apiId, routeId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +update_route(apiId, routeId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "PATCH", "/v2/apis/$(apiId)/routes/$(routeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_route( apiId, routeId, @@ -3054,16 +2921,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"responseParameters"`: The route response parameters. - `"routeResponseKey"`: The route response key. """ -function update_route_response( +update_route_response( apiId, routeId, routeResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = apigatewayv2( + "PATCH", + "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses/$(routeResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apigatewayv2( - "PATCH", - "/v2/apis/$(apiId)/routes/$(routeId)/routeresponses/$(routeResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_route_response( apiId, routeId, @@ -3106,14 +2971,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+. """ -function update_stage(apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +update_stage(apiId, stageName; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "PATCH", "/v2/apis/$(apiId)/stages/$(stageName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_stage( apiId, stageName, @@ -3142,14 +3006,13 @@ Updates a VPC link. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"name"`: The name of the VPC link. """ -function update_vpc_link(vpcLinkId; aws_config::AbstractAWSConfig=current_aws_config()) - return apigatewayv2( +update_vpc_link(vpcLinkId; aws_config::AbstractAWSConfig=current_aws_config()) = + apigatewayv2( "PATCH", "/v2/vpclinks/$(vpcLinkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_vpc_link( vpcLinkId, params::AbstractDict{String}; diff --git a/src/services/app_mesh.jl b/src/services/app_mesh.jl index 109de1dde..2d70845ce 100644 --- a/src/services/app_mesh.jl +++ b/src/services/app_mesh.jl @@ -34,25 +34,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ -function create_gateway_route( +create_gateway_route( gatewayRouteName, meshName, spec, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config(), +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes", + Dict{String,Any}( + "gatewayRouteName" => gatewayRouteName, + "spec" => spec, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes", - Dict{String,Any}( - "gatewayRouteName" => gatewayRouteName, - "spec" => spec, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_gateway_route( gatewayRouteName, meshName, @@ -103,15 +101,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ -function create_mesh(meshName; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( - "PUT", - "/v20190125/meshes", - Dict{String,Any}("meshName" => meshName, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_mesh(meshName; aws_config::AbstractAWSConfig=current_aws_config()) = app_mesh( + "PUT", + "/v20190125/meshes", + Dict{String,Any}("meshName" => meshName, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_mesh( meshName, params::AbstractDict{String}; @@ -161,23 +157,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ -function create_route( +create_route( meshName, routeName, spec, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config(), +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes", + Dict{String,Any}( + "routeName" => routeName, "spec" => spec, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes", - Dict{String,Any}( - "routeName" => routeName, "spec" => spec, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_route( meshName, routeName, @@ -234,21 +228,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ -function create_virtual_gateway( +create_virtual_gateway( meshName, spec, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualGateways", + Dict{String,Any}( + "spec" => spec, + "virtualGatewayName" => virtualGatewayName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualGateways", - Dict{String,Any}( - "spec" => spec, - "virtualGatewayName" => virtualGatewayName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_virtual_gateway( meshName, spec, @@ -315,21 +307,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ -function create_virtual_node( +create_virtual_node( meshName, spec, virtualNodeName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualNodes", + Dict{String,Any}( + "spec" => spec, + "virtualNodeName" => virtualNodeName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualNodes", - Dict{String,Any}( - "spec" => spec, - "virtualNodeName" => virtualNodeName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_virtual_node( meshName, spec, @@ -385,21 +375,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ -function create_virtual_router( +create_virtual_router( meshName, spec, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualRouters", + Dict{String,Any}( + "spec" => spec, + "virtualRouterName" => virtualRouterName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualRouters", - Dict{String,Any}( - "spec" => spec, - "virtualRouterName" => virtualRouterName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_virtual_router( meshName, spec, @@ -455,21 +443,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ -function create_virtual_service( +create_virtual_service( meshName, spec, virtualServiceName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualServices", + Dict{String,Any}( + "spec" => spec, + "virtualServiceName" => virtualServiceName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualServices", - Dict{String,Any}( - "spec" => spec, - "virtualServiceName" => virtualServiceName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_virtual_service( meshName, spec, @@ -513,19 +499,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function delete_gateway_route( +delete_gateway_route( gatewayRouteName, meshName, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config(), +) = app_mesh( + "DELETE", + "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes/$(gatewayRouteName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "DELETE", - "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes/$(gatewayRouteName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_gateway_route( gatewayRouteName, meshName, @@ -554,14 +538,12 @@ itself. - `mesh_name`: The name of the service mesh to delete. """ -function delete_mesh(meshName; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( - "DELETE", - "/v20190125/meshes/$(meshName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_mesh(meshName; aws_config::AbstractAWSConfig=current_aws_config()) = app_mesh( + "DELETE", + "/v20190125/meshes/$(meshName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_mesh( meshName, params::AbstractDict{String}; @@ -593,19 +575,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function delete_route( +delete_route( meshName, routeName, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config(), +) = app_mesh( + "DELETE", + "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes/$(routeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "DELETE", - "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes/$(routeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_route( meshName, routeName, @@ -639,16 +619,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function delete_virtual_gateway( +delete_virtual_gateway( meshName, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "DELETE", + "/v20190125/meshes/$(meshName)/virtualGateways/$(virtualGatewayName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "DELETE", - "/v20190125/meshes/$(meshName)/virtualGateways/$(virtualGatewayName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_virtual_gateway( meshName, virtualGatewayName, @@ -681,16 +659,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function delete_virtual_node( +delete_virtual_node( meshName, virtualNodeName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "DELETE", + "/v20190125/meshes/$(meshName)/virtualNodes/$(virtualNodeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "DELETE", - "/v20190125/meshes/$(meshName)/virtualNodes/$(virtualNodeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_virtual_node( meshName, virtualNodeName, @@ -723,16 +699,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function delete_virtual_router( +delete_virtual_router( meshName, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "DELETE", + "/v20190125/meshes/$(meshName)/virtualRouters/$(virtualRouterName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "DELETE", - "/v20190125/meshes/$(meshName)/virtualRouters/$(virtualRouterName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_virtual_router( meshName, virtualRouterName, @@ -764,16 +738,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function delete_virtual_service( +delete_virtual_service( meshName, virtualServiceName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "DELETE", + "/v20190125/meshes/$(meshName)/virtualServices/$(virtualServiceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "DELETE", - "/v20190125/meshes/$(meshName)/virtualServices/$(virtualServiceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_virtual_service( meshName, virtualServiceName, @@ -807,19 +779,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function describe_gateway_route( +describe_gateway_route( gatewayRouteName, meshName, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config(), +) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes/$(gatewayRouteName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes/$(gatewayRouteName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_gateway_route( gatewayRouteName, meshName, @@ -851,14 +821,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function describe_mesh(meshName; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_mesh(meshName; aws_config::AbstractAWSConfig=current_aws_config()) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_mesh( meshName, params::AbstractDict{String}; @@ -890,19 +858,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function describe_route( +describe_route( meshName, routeName, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config(), +) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes/$(routeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes/$(routeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_route( meshName, routeName, @@ -935,16 +901,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function describe_virtual_gateway( +describe_virtual_gateway( meshName, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualGateways/$(virtualGatewayName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualGateways/$(virtualGatewayName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_virtual_gateway( meshName, virtualGatewayName, @@ -976,16 +940,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function describe_virtual_node( +describe_virtual_node( meshName, virtualNodeName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualNodes/$(virtualNodeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualNodes/$(virtualNodeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_virtual_node( meshName, virtualNodeName, @@ -1017,16 +979,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function describe_virtual_router( +describe_virtual_router( meshName, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualRouters/$(virtualRouterName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualRouters/$(virtualRouterName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_virtual_router( meshName, virtualRouterName, @@ -1058,16 +1018,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function describe_virtual_service( +describe_virtual_service( meshName, virtualServiceName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualServices/$(virtualServiceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualServices/$(virtualServiceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_virtual_service( meshName, virtualServiceName, @@ -1108,16 +1066,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. """ -function list_gateway_routes( +list_gateway_routes( meshName, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_gateway_routes( meshName, virtualGatewayName, @@ -1153,11 +1109,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_meshes(; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( - "GET", "/v20190125/meshes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_meshes(; aws_config::AbstractAWSConfig=current_aws_config()) = app_mesh( + "GET", "/v20190125/meshes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_meshes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1195,16 +1149,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. """ -function list_routes( +list_routes( meshName, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_routes( meshName, virtualRouterName, @@ -1242,17 +1194,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return app_mesh( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + app_mesh( "GET", "/v20190125/tags", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1293,14 +1242,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. """ -function list_virtual_gateways(meshName; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( +list_virtual_gateways(meshName; aws_config::AbstractAWSConfig=current_aws_config()) = + app_mesh( "GET", "/v20190125/meshes/$(meshName)/virtualGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_virtual_gateways( meshName, params::AbstractDict{String}; @@ -1339,14 +1287,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. """ -function list_virtual_nodes(meshName; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( - "GET", - "/v20190125/meshes/$(meshName)/virtualNodes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_virtual_nodes(meshName; aws_config::AbstractAWSConfig=current_aws_config()) = app_mesh( + "GET", + "/v20190125/meshes/$(meshName)/virtualNodes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_virtual_nodes( meshName, params::AbstractDict{String}; @@ -1385,14 +1331,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. """ -function list_virtual_routers(meshName; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( +list_virtual_routers(meshName; aws_config::AbstractAWSConfig=current_aws_config()) = + app_mesh( "GET", "/v20190125/meshes/$(meshName)/virtualRouters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_virtual_routers( meshName, params::AbstractDict{String}; @@ -1431,14 +1376,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. """ -function list_virtual_services(meshName; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( +list_virtual_services(meshName; aws_config::AbstractAWSConfig=current_aws_config()) = + app_mesh( "GET", "/v20190125/meshes/$(meshName)/virtualServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_virtual_services( meshName, params::AbstractDict{String}; @@ -1468,15 +1412,14 @@ resource is deleted, the tags associated with that resource are also deleted. length of 256 characters. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + app_mesh( "PUT", "/v20190125/tag", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1509,17 +1452,14 @@ Deletes specified tags from a resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return app_mesh( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + app_mesh( "PUT", "/v20190125/untag", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1563,21 +1503,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function update_gateway_route( +update_gateway_route( gatewayRouteName, meshName, spec, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config(), +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes/$(gatewayRouteName)", + Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualGateway/$(virtualGatewayName)/gatewayRoutes/$(gatewayRouteName)", - Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_gateway_route( gatewayRouteName, meshName, @@ -1616,15 +1554,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed. - `"spec"`: The service mesh specification to apply. """ -function update_mesh(meshName; aws_config::AbstractAWSConfig=current_aws_config()) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_mesh(meshName; aws_config::AbstractAWSConfig=current_aws_config()) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_mesh( meshName, params::AbstractDict{String}; @@ -1661,21 +1597,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function update_route( +update_route( meshName, routeName, spec, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config(), +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes/$(routeName)", + Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualRouter/$(virtualRouterName)/routes/$(routeName)", - Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_route( meshName, routeName, @@ -1718,17 +1652,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function update_virtual_gateway( +update_virtual_gateway( meshName, spec, virtualGatewayName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualGateways/$(virtualGatewayName)", + Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualGateways/$(virtualGatewayName)", - Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_virtual_gateway( meshName, spec, @@ -1770,17 +1702,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function update_virtual_node( +update_virtual_node( meshName, spec, virtualNodeName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualNodes/$(virtualNodeName)", + Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualNodes/$(virtualNodeName)", - Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_virtual_node( meshName, spec, @@ -1822,17 +1752,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function update_virtual_router( +update_virtual_router( meshName, spec, virtualRouterName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualRouters/$(virtualRouterName)", + Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualRouters/$(virtualRouterName)", - Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_virtual_router( meshName, spec, @@ -1874,17 +1802,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes. """ -function update_virtual_service( +update_virtual_service( meshName, spec, virtualServiceName; aws_config::AbstractAWSConfig=current_aws_config() +) = app_mesh( + "PUT", + "/v20190125/meshes/$(meshName)/virtualServices/$(virtualServiceName)", + Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return app_mesh( - "PUT", - "/v20190125/meshes/$(meshName)/virtualServices/$(virtualServiceName)", - Dict{String,Any}("spec" => spec, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_virtual_service( meshName, spec, diff --git a/src/services/appconfig.jl b/src/services/appconfig.jl index 9e2968679..edc95bb49 100644 --- a/src/services/appconfig.jl +++ b/src/services/appconfig.jl @@ -23,15 +23,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AppConfig resources. Each tag consists of a key and an optional value, both of which you define. """ -function create_application(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appconfig( - "POST", - "/applications", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_application(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appconfig( + "POST", + "/applications", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_application( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -100,17 +98,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AWS.AppConfig.FeatureFlags AWS.Freeform - `"Validators"`: A list of methods for validating the configuration. """ -function create_configuration_profile( +create_configuration_profile( ApplicationId, LocationUri, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "POST", + "/applications/$(ApplicationId)/configurationprofiles", + Dict{String,Any}("LocationUri" => LocationUri, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "POST", - "/applications/$(ApplicationId)/configurationprofiles", - Dict{String,Any}("LocationUri" => LocationUri, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_profile( ApplicationId, LocationUri, @@ -176,24 +172,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define. """ -function create_deployment_strategy( +create_deployment_strategy( DeploymentDurationInMinutes, GrowthFactor, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "POST", + "/deploymentstrategies", + Dict{String,Any}( + "DeploymentDurationInMinutes" => DeploymentDurationInMinutes, + "GrowthFactor" => GrowthFactor, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "POST", - "/deploymentstrategies", - Dict{String,Any}( - "DeploymentDurationInMinutes" => DeploymentDurationInMinutes, - "GrowthFactor" => GrowthFactor, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deployment_strategy( DeploymentDurationInMinutes, GrowthFactor, @@ -243,17 +237,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AppConfig resources. Each tag consists of a key and an optional value, both of which you define. """ -function create_environment( +create_environment( ApplicationId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "POST", + "/applications/$(ApplicationId)/environments", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "POST", - "/applications/$(ApplicationId)/environments", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment( ApplicationId, Name, @@ -306,15 +298,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you categorize resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. """ -function create_extension(Actions, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appconfig( +create_extension(Actions, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "POST", "/extensions", Dict{String,Any}("Actions" => Actions, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_extension( Actions, Name, @@ -364,22 +355,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys owner, or environment. Each tag consists of a key and an optional value, both of which you define. """ -function create_extension_association( +create_extension_association( ExtensionIdentifier, ResourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "POST", + "/extensionassociations", + Dict{String,Any}( + "ExtensionIdentifier" => ExtensionIdentifier, + "ResourceIdentifier" => ResourceIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "POST", - "/extensionassociations", - Dict{String,Any}( - "ExtensionIdentifier" => ExtensionIdentifier, - "ResourceIdentifier" => ResourceIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_extension_association( ExtensionIdentifier, ResourceIdentifier, @@ -408,12 +397,17 @@ end create_hosted_configuration_version(application_id, configuration_profile_id, content, content-_type) create_hosted_configuration_version(application_id, configuration_profile_id, content, content-_type, params::Dict{String,<:Any}) -Creates a new configuration in the AppConfig hosted configuration store. +Creates a new configuration in the AppConfig hosted configuration store. If you're creating +a feature flag, we recommend you familiarize yourself with the JSON schema for feature flag +data. For more information, see Type reference for AWS.AppConfig.FeatureFlags in the +AppConfig User Guide. # Arguments - `application_id`: The application ID. - `configuration_profile_id`: The configuration profile ID. -- `content`: The content of the configuration or the configuration data. +- `content`: The configuration data, as bytes. AppConfig accepts any type of data, + including text formats like JSON or TOML, or binary formats like protocol buffers or + compressed data. - `content-_type`: A standard MIME type describing the format of the configuration content. For more information, see Content-Type. @@ -428,24 +422,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version. This value must contain at least one non-numeric character. For example, \"v2.2.0\". """ -function create_hosted_configuration_version( +create_hosted_configuration_version( ApplicationId, ConfigurationProfileId, Content, Content_Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "POST", + "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/hostedconfigurationversions", + Dict{String,Any}( + "Content" => Content, + "headers" => Dict{String,Any}("Content-Type" => Content_Type), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "POST", - "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/hostedconfigurationversions", - Dict{String,Any}( - "Content" => Content, - "headers" => Dict{String,Any}("Content-Type" => Content_Type), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hosted_configuration_version( ApplicationId, ConfigurationProfileId, @@ -476,22 +468,19 @@ end delete_application(application_id) delete_application(application_id, params::Dict{String,<:Any}) -Deletes an application. Deleting an application does not delete a configuration from a host. +Deletes an application. # Arguments - `application_id`: The ID of the application to delete. """ -function delete_application( - ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return appconfig( +delete_application(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "DELETE", "/applications/$(ApplicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( ApplicationId, params::AbstractDict{String}; @@ -510,27 +499,38 @@ end delete_configuration_profile(application_id, configuration_profile_id) delete_configuration_profile(application_id, configuration_profile_id, params::Dict{String,<:Any}) -Deletes a configuration profile. Deleting a configuration profile does not delete a -configuration from a host. +Deletes a configuration profile. To prevent users from unintentionally deleting +actively-used configuration profiles, enable deletion protection. # Arguments - `application_id`: The application ID that includes the configuration profile you want to delete. - `configuration_profile_id`: The ID of the configuration profile you want to delete. -""" -function delete_configuration_profile( +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"x-amzn-deletion-protection-check"`: A parameter to configure deletion protection. If + enabled, deletion protection prevents a user from deleting a configuration profile if your + application has called either GetLatestConfiguration or for the configuration profile + during the specified interval. This parameter supports the following values: BYPASS: + Instructs AppConfig to bypass the deletion protection check and delete a configuration + profile even if deletion protection would have otherwise prevented it. APPLY: Instructs + the deletion protection check to run, even if deletion protection is disabled at the + account level. APPLY also forces the deletion protection check to run against resources + created in the past hour, which are normally excluded from deletion protection checks. + ACCOUNT_DEFAULT: The default setting, which instructs AppConfig to implement the deletion + protection value specified in the UpdateAccountSettings API. +""" +delete_configuration_profile( ApplicationId, ConfigurationProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "DELETE", + "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "DELETE", - "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_profile( ApplicationId, ConfigurationProfileId, @@ -550,23 +550,20 @@ end delete_deployment_strategy(deployment_strategy_id) delete_deployment_strategy(deployment_strategy_id, params::Dict{String,<:Any}) -Deletes a deployment strategy. Deleting a deployment strategy does not delete a -configuration from a host. +Deletes a deployment strategy. # Arguments - `deployment_strategy_id`: The ID of the deployment strategy you want to delete. """ -function delete_deployment_strategy( +delete_deployment_strategy( DeploymentStrategyId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "DELETE", + "/deployementstrategies/$(DeploymentStrategyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "DELETE", - "/deployementstrategies/$(DeploymentStrategyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_deployment_strategy( DeploymentStrategyId, params::AbstractDict{String}; @@ -585,24 +582,36 @@ end delete_environment(application_id, environment_id) delete_environment(application_id, environment_id, params::Dict{String,<:Any}) -Deletes an environment. Deleting an environment does not delete a configuration from a host. +Deletes an environment. To prevent users from unintentionally deleting actively-used +environments, enable deletion protection. # Arguments - `application_id`: The application ID that includes the environment that you want to delete. - `environment_id`: The ID of the environment that you want to delete. -""" -function delete_environment( +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"x-amzn-deletion-protection-check"`: A parameter to configure deletion protection. If + enabled, deletion protection prevents a user from deleting an environment if your + application called either GetLatestConfiguration or in the environment during the specified + interval. This parameter supports the following values: BYPASS: Instructs AppConfig to + bypass the deletion protection check and delete a configuration profile even if deletion + protection would have otherwise prevented it. APPLY: Instructs the deletion protection + check to run, even if deletion protection is disabled at the account level. APPLY also + forces the deletion protection check to run against resources created in the past hour, + which are normally excluded from deletion protection checks. ACCOUNT_DEFAULT: The + default setting, which instructs AppConfig to implement the deletion protection value + specified in the UpdateAccountSettings API. +""" +delete_environment( ApplicationId, EnvironmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "DELETE", + "/applications/$(ApplicationId)/environments/$(EnvironmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "DELETE", - "/applications/$(ApplicationId)/environments/$(EnvironmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment( ApplicationId, EnvironmentId, @@ -634,16 +643,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version"`: A specific version of an extension to delete. If omitted, the highest version is deleted. """ -function delete_extension( - ExtensionIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appconfig( +delete_extension(ExtensionIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "DELETE", "/extensions/$(ExtensionIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_extension( ExtensionIdentifier, params::AbstractDict{String}; @@ -669,16 +675,14 @@ association. - `extension_association_id`: The ID of the extension association to delete. """ -function delete_extension_association( +delete_extension_association( ExtensionAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "DELETE", + "/extensionassociations/$(ExtensionAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "DELETE", - "/extensionassociations/$(ExtensionAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_extension_association( ExtensionAssociationId, params::AbstractDict{String}; @@ -705,19 +709,17 @@ Deletes a version of a configuration from the AppConfig hosted configuration sto - `version_number`: The versions number to delete. """ -function delete_hosted_configuration_version( +delete_hosted_configuration_version( ApplicationId, ConfigurationProfileId, VersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "DELETE", + "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/hostedconfigurationversions/$(VersionNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "DELETE", - "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/hostedconfigurationversions/$(VersionNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_hosted_configuration_version( ApplicationId, ConfigurationProfileId, @@ -734,6 +736,23 @@ function delete_hosted_configuration_version( ) end +""" + get_account_settings() + get_account_settings(params::Dict{String,<:Any}) + +Returns information about the status of the DeletionProtection parameter. + +""" +get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig("GET", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function get_account_settings( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return appconfig( + "GET", "/settings", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + ) +end + """ get_application(application_id) get_application(application_id, params::Dict{String,<:Any}) @@ -744,14 +763,13 @@ Retrieves information about an application. - `application_id`: The ID of the application you want to get. """ -function get_application(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return appconfig( +get_application(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "GET", "/applications/$(ApplicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_application( ApplicationId, params::AbstractDict{String}; @@ -802,21 +820,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys calls to GetConfiguration. For more information about working with configurations, see Retrieving the Configuration in the AppConfig User Guide. """ -function get_configuration( +get_configuration( Application, Configuration, Environment, client_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "GET", + "/applications/$(Application)/environments/$(Environment)/configurations/$(Configuration)", + Dict{String,Any}("client_id" => client_id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/applications/$(Application)/environments/$(Environment)/configurations/$(Configuration)", - Dict{String,Any}("client_id" => client_id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configuration( Application, Configuration, @@ -848,18 +864,16 @@ Retrieves information about a configuration profile. - `configuration_profile_id`: The ID of the configuration profile that you want to get. """ -function get_configuration_profile( +get_configuration_profile( ApplicationId, ConfigurationProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "GET", + "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configuration_profile( ApplicationId, ConfigurationProfileId, @@ -887,19 +901,17 @@ Retrieves information about a configuration deployment. - `environment_id`: The ID of the environment that includes the deployment you want to get. """ -function get_deployment( +get_deployment( ApplicationId, DeploymentNumber, EnvironmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "GET", + "/applications/$(ApplicationId)/environments/$(EnvironmentId)/deployments/$(DeploymentNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/applications/$(ApplicationId)/environments/$(EnvironmentId)/deployments/$(DeploymentNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment( ApplicationId, DeploymentNumber, @@ -930,16 +942,14 @@ time. - `deployment_strategy_id`: The ID of the deployment strategy to get. """ -function get_deployment_strategy( +get_deployment_strategy( DeploymentStrategyId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "GET", + "/deploymentstrategies/$(DeploymentStrategyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/deploymentstrategies/$(DeploymentStrategyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment_strategy( DeploymentStrategyId, params::AbstractDict{String}; @@ -969,16 +979,14 @@ deployment, AppConfig roles back the configuration. - `environment_id`: The ID of the environment that you want to get. """ -function get_environment( +get_environment( ApplicationId, EnvironmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "GET", + "/applications/$(ApplicationId)/environments/$(EnvironmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/applications/$(ApplicationId)/environments/$(EnvironmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_environment( ApplicationId, EnvironmentId, @@ -1009,16 +1017,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version_number"`: The extension version number. If no version number was defined, AppConfig uses the highest version. """ -function get_extension( - ExtensionIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appconfig( +get_extension(ExtensionIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "GET", "/extensions/$(ExtensionIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_extension( ExtensionIdentifier, params::AbstractDict{String}; @@ -1044,16 +1049,14 @@ extensions and associations, see Extending workflows in the AppConfig User Guide - `extension_association_id`: The extension association ID to get. """ -function get_extension_association( +get_extension_association( ExtensionAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "GET", + "/extensionassociations/$(ExtensionAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/extensionassociations/$(ExtensionAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_extension_association( ExtensionAssociationId, params::AbstractDict{String}; @@ -1080,19 +1083,17 @@ Retrieves information about a specific configuration version. - `version_number`: The version. """ -function get_hosted_configuration_version( +get_hosted_configuration_version( ApplicationId, ConfigurationProfileId, VersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "GET", + "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/hostedconfigurationversions/$(VersionNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/hostedconfigurationversions/$(VersionNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_hosted_configuration_version( ApplicationId, ConfigurationProfileId, @@ -1125,11 +1126,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys should be set to the previous responses nextToken value. Use this token to get the next set of results. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return appconfig( - "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = appconfig( + "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1159,16 +1158,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"type"`: A filter based on the type of configurations that the configuration profile contains. A configuration can be a feature flag or a freeform configuration. """ -function list_configuration_profiles( +list_configuration_profiles( ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "GET", + "/applications/$(ApplicationId)/configurationprofiles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/applications/$(ApplicationId)/configurationprofiles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_configuration_profiles( ApplicationId, params::AbstractDict{String}; @@ -1195,14 +1192,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"next_token"`: A token to start the list. Use this token to get the next set of results. """ -function list_deployment_strategies(; aws_config::AbstractAWSConfig=current_aws_config()) - return appconfig( +list_deployment_strategies(; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "GET", "/deploymentstrategies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_deployment_strategies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1234,16 +1230,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set of results to be returned. If not specified, the operation will return the first set of results. """ -function list_deployments( +list_deployments( ApplicationId, EnvironmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "GET", + "/applications/$(ApplicationId)/environments/$(EnvironmentId)/deployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/applications/$(ApplicationId)/environments/$(EnvironmentId)/deployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_deployments( ApplicationId, EnvironmentId, @@ -1274,16 +1268,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"next_token"`: A token to start the list. Use this token to get the next set of results. """ -function list_environments( - ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return appconfig( +list_environments(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "GET", "/applications/$(ApplicationId)/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_environments( ApplicationId, params::AbstractDict{String}; @@ -1317,14 +1308,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys or pass null to get the first set of results. - `"resource_identifier"`: The ARN of an application, configuration profile, or environment. """ -function list_extension_associations(; aws_config::AbstractAWSConfig=current_aws_config()) - return appconfig( +list_extension_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "GET", "/extensionassociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_extension_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1351,11 +1341,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The extension name. - `"next_token"`: A token to start the list. Use this token to get the next set of results. """ -function list_extensions(; aws_config::AbstractAWSConfig=current_aws_config()) - return appconfig( - "GET", "/extensions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_extensions(; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig("GET", "/extensions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_extensions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1384,18 +1371,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys wildcard, for example \"v2*\". If you don't specify an asterisk at the end of the value, only an exact match is returned. """ -function list_hosted_configuration_versions( +list_hosted_configuration_versions( ApplicationId, ConfigurationProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "GET", + "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/hostedconfigurationversions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "GET", - "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/hostedconfigurationversions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_hosted_configuration_versions( ApplicationId, ConfigurationProfileId, @@ -1421,16 +1406,13 @@ Retrieves the list of key-value tags assigned to the resource. - `resource_arn`: The resource ARN. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return appconfig( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1471,26 +1453,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AppConfig resources. Each tag consists of a key and an optional value, both of which you define. """ -function start_deployment( +start_deployment( ApplicationId, ConfigurationProfileId, ConfigurationVersion, DeploymentStrategyId, EnvironmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "POST", + "/applications/$(ApplicationId)/environments/$(EnvironmentId)/deployments", + Dict{String,Any}( + "ConfigurationProfileId" => ConfigurationProfileId, + "ConfigurationVersion" => ConfigurationVersion, + "DeploymentStrategyId" => DeploymentStrategyId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "POST", - "/applications/$(ApplicationId)/environments/$(EnvironmentId)/deployments", - Dict{String,Any}( - "ConfigurationProfileId" => ConfigurationProfileId, - "ConfigurationVersion" => ConfigurationVersion, - "DeploymentStrategyId" => DeploymentStrategyId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_deployment( ApplicationId, ConfigurationProfileId, @@ -1532,19 +1512,17 @@ DEPLOYING. This action moves the deployment to a status of ROLLED_BACK. - `environment_id`: The environment ID. """ -function stop_deployment( +stop_deployment( ApplicationId, DeploymentNumber, EnvironmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "DELETE", + "/applications/$(ApplicationId)/environments/$(EnvironmentId)/deployments/$(DeploymentNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "DELETE", - "/applications/$(ApplicationId)/environments/$(EnvironmentId)/deployments/$(DeploymentNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_deployment( ApplicationId, DeploymentNumber, @@ -1576,15 +1554,14 @@ can specify a maximum of 50 tags for a resource. characters. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return appconfig( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1611,17 +1588,14 @@ Deletes a tag key and value from an AppConfig resource. - `tag_keys`: The tag keys to delete. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return appconfig( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1637,6 +1611,30 @@ function untag_resource( ) end +""" + update_account_settings() + update_account_settings(params::Dict{String,<:Any}) + +Updates the value of the DeletionProtection parameter. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"DeletionProtection"`: A parameter to configure deletion protection. If enabled, + deletion protection prevents a user from deleting a configuration profile or an environment + if AppConfig has called either GetLatestConfiguration or for the configuration profile or + from the environment during the specified interval. Deletion protection is disabled by + default. The default interval for ProtectionPeriodInMinutes is 60. +""" +update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig("PATCH", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function update_account_settings( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return appconfig( + "PATCH", "/settings", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + ) +end + """ update_application(application_id) update_application(application_id, params::Dict{String,<:Any}) @@ -1651,16 +1649,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the application. - `"Name"`: The name of the application. """ -function update_application( - ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return appconfig( +update_application(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "PATCH", "/applications/$(ApplicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( ApplicationId, params::AbstractDict{String}; @@ -1699,18 +1694,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys at the specified LocationUri. - `"Validators"`: A list of methods for validating the configuration. """ -function update_configuration_profile( +update_configuration_profile( ApplicationId, ConfigurationProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "PATCH", + "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "PATCH", - "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_profile( ApplicationId, ConfigurationProfileId, @@ -1758,16 +1751,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets. """ -function update_deployment_strategy( +update_deployment_strategy( DeploymentStrategyId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "PATCH", + "/deploymentstrategies/$(DeploymentStrategyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "PATCH", - "/deploymentstrategies/$(DeploymentStrategyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_deployment_strategy( DeploymentStrategyId, params::AbstractDict{String}; @@ -1798,16 +1789,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Monitors"`: Amazon CloudWatch alarms to monitor during the deployment process. - `"Name"`: The name of the environment. """ -function update_environment( +update_environment( ApplicationId, EnvironmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "PATCH", + "/applications/$(ApplicationId)/environments/$(EnvironmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "PATCH", - "/applications/$(ApplicationId)/environments/$(EnvironmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment( ApplicationId, EnvironmentId, @@ -1841,16 +1830,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Parameters"`: One or more parameters for the actions called by the extension. - `"VersionNumber"`: The extension version number. """ -function update_extension( - ExtensionIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appconfig( +update_extension(ExtensionIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appconfig( "PATCH", "/extensions/$(ExtensionIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_extension( ExtensionIdentifier, params::AbstractDict{String}; @@ -1879,16 +1865,14 @@ Extending workflows in the AppConfig User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Parameters"`: The parameter names and values defined in the extension. """ -function update_extension_association( +update_extension_association( ExtensionAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfig( + "PATCH", + "/extensionassociations/$(ExtensionAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "PATCH", - "/extensionassociations/$(ExtensionAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_extension_association( ExtensionAssociationId, params::AbstractDict{String}; @@ -1915,20 +1899,18 @@ Uses the validators in a configuration profile to validate a configuration. - `configuration_version`: The version of the configuration to validate. """ -function validate_configuration( +validate_configuration( ApplicationId, ConfigurationProfileId, configuration_version; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfig( + "POST", + "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/validators", + Dict{String,Any}("configuration_version" => configuration_version); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfig( - "POST", - "/applications/$(ApplicationId)/configurationprofiles/$(ConfigurationProfileId)/validators", - Dict{String,Any}("configuration_version" => configuration_version); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_configuration( ApplicationId, ConfigurationProfileId, diff --git a/src/services/appconfigdata.jl b/src/services/appconfigdata.jl index 1befad110..0fad318b5 100644 --- a/src/services/appconfigdata.jl +++ b/src/services/appconfigdata.jl @@ -28,17 +28,15 @@ information, see Pricing. BadRequestException. """ -function get_latest_configuration( +get_latest_configuration( configuration_token; aws_config::AbstractAWSConfig=current_aws_config() +) = appconfigdata( + "GET", + "/configuration", + Dict{String,Any}("configuration_token" => configuration_token); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfigdata( - "GET", - "/configuration", - Dict{String,Any}("configuration_token" => configuration_token); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_latest_configuration( configuration_token, params::AbstractDict{String}; @@ -80,24 +78,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a value of, for example, 60 seconds, then the client that established the session can't call GetLatestConfiguration more frequently than every 60 seconds. """ -function start_configuration_session( +start_configuration_session( ApplicationIdentifier, ConfigurationProfileIdentifier, EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appconfigdata( + "POST", + "/configurationsessions", + Dict{String,Any}( + "ApplicationIdentifier" => ApplicationIdentifier, + "ConfigurationProfileIdentifier" => ConfigurationProfileIdentifier, + "EnvironmentIdentifier" => EnvironmentIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appconfigdata( - "POST", - "/configurationsessions", - Dict{String,Any}( - "ApplicationIdentifier" => ApplicationIdentifier, - "ConfigurationProfileIdentifier" => ConfigurationProfileIdentifier, - "EnvironmentIdentifier" => EnvironmentIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_configuration_session( ApplicationIdentifier, ConfigurationProfileIdentifier, diff --git a/src/services/appfabric.jl b/src/services/appfabric.jl index 7c35998fd..1a79b4958 100644 --- a/src/services/appfabric.jl +++ b/src/services/appfabric.jl @@ -17,19 +17,17 @@ kicked off by the StartUserAccessTasks action. - `task_id_list`: The tasks IDs to use for the request. """ -function batch_get_user_access_tasks( +batch_get_user_access_tasks( appBundleIdentifier, taskIdList; aws_config::AbstractAWSConfig=current_aws_config() +) = appfabric( + "POST", + "/useraccess/batchget", + Dict{String,Any}( + "appBundleIdentifier" => appBundleIdentifier, "taskIdList" => taskIdList + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "POST", - "/useraccess/batchget", - Dict{String,Any}( - "appBundleIdentifier" => appBundleIdentifier, "taskIdList" => taskIdList - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_user_access_tasks( appBundleIdentifier, taskIdList, @@ -71,18 +69,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"authRequest"`: Contains OAuth2 authorization information. This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type. """ -function connect_app_authorization( +connect_app_authorization( appAuthorizationIdentifier, appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "POST", + "/appbundles/$(appBundleIdentifier)/appauthorizations/$(appAuthorizationIdentifier)/connect"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "POST", - "/appbundles/$(appBundleIdentifier)/appauthorizations/$(appAuthorizationIdentifier)/connect"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function connect_app_authorization( appAuthorizationIdentifier, appBundleIdentifier, @@ -131,28 +127,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IdempotentParameterMismatch error. - `"tags"`: A map of the key-value pairs of the tag or tags to assign to the resource. """ -function create_app_authorization( +create_app_authorization( app, appBundleIdentifier, authType, credential, tenant; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "POST", + "/appbundles/$(appBundleIdentifier)/appauthorizations", + Dict{String,Any}( + "app" => app, + "authType" => authType, + "credential" => credential, + "tenant" => tenant, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "POST", - "/appbundles/$(appBundleIdentifier)/appauthorizations", - Dict{String,Any}( - "app" => app, - "authType" => authType, - "credential" => credential, - "tenant" => tenant, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_authorization( app, appBundleIdentifier, @@ -204,15 +198,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Web Services owned key is used for encryption. - `"tags"`: A map of the key-value pairs of the tag or tags to assign to the resource. """ -function create_app_bundle(; aws_config::AbstractAWSConfig=current_aws_config()) - return appfabric( - "POST", - "/appbundles", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_app_bundle(; aws_config::AbstractAWSConfig=current_aws_config()) = appfabric( + "POST", + "/appbundles", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_app_bundle( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -254,26 +246,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IdempotentParameterMismatch error. - `"tags"`: A map of the key-value pairs of the tag or tags to assign to the resource. """ -function create_ingestion( +create_ingestion( app, appBundleIdentifier, ingestionType, tenantId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "POST", + "/appbundles/$(appBundleIdentifier)/ingestions", + Dict{String,Any}( + "app" => app, + "ingestionType" => ingestionType, + "tenantId" => tenantId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "POST", - "/appbundles/$(appBundleIdentifier)/ingestions", - Dict{String,Any}( - "app" => app, - "ingestionType" => ingestionType, - "tenantId" => tenantId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ingestion( app, appBundleIdentifier, @@ -329,25 +319,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IdempotentParameterMismatch error. - `"tags"`: A map of the key-value pairs of the tag or tags to assign to the resource. """ -function create_ingestion_destination( +create_ingestion_destination( appBundleIdentifier, destinationConfiguration, ingestionIdentifier, processingConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "POST", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations", + Dict{String,Any}( + "destinationConfiguration" => destinationConfiguration, + "processingConfiguration" => processingConfiguration, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "POST", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations", - Dict{String,Any}( - "destinationConfiguration" => destinationConfiguration, - "processingConfiguration" => processingConfiguration, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ingestion_destination( appBundleIdentifier, destinationConfiguration, @@ -389,18 +377,16 @@ delete an app authorization. (UUID) of the app bundle to use for the request. """ -function delete_app_authorization( +delete_app_authorization( appAuthorizationIdentifier, appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "DELETE", + "/appbundles/$(appBundleIdentifier)/appauthorizations/$(appAuthorizationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "DELETE", - "/appbundles/$(appBundleIdentifier)/appauthorizations/$(appAuthorizationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_authorization( appAuthorizationIdentifier, appBundleIdentifier, @@ -428,16 +414,13 @@ delete an app bundle. needs to be deleted. """ -function delete_app_bundle( - appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appfabric( +delete_app_bundle(appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appfabric( "DELETE", "/appbundles/$(appBundleIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app_bundle( appBundleIdentifier, params::AbstractDict{String}; @@ -466,18 +449,16 @@ associated ingestion destinations before you can delete an app ingestion. (UUID) of the ingestion to use for the request. """ -function delete_ingestion( +delete_ingestion( appBundleIdentifier, ingestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "DELETE", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "DELETE", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_ingestion( appBundleIdentifier, ingestionIdentifier, @@ -512,19 +493,17 @@ eventually disabled. (UUID) of the ingestion to use for the request. """ -function delete_ingestion_destination( +delete_ingestion_destination( appBundleIdentifier, ingestionDestinationIdentifier, ingestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "DELETE", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations/$(ingestionDestinationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "DELETE", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations/$(ingestionDestinationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_ingestion_destination( appBundleIdentifier, ingestionDestinationIdentifier, @@ -554,18 +533,16 @@ Returns information about an app authorization. (UUID) of the app bundle to use for the request. """ -function get_app_authorization( +get_app_authorization( appAuthorizationIdentifier, appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "GET", + "/appbundles/$(appBundleIdentifier)/appauthorizations/$(appAuthorizationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "GET", - "/appbundles/$(appBundleIdentifier)/appauthorizations/$(appAuthorizationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_app_authorization( appAuthorizationIdentifier, appBundleIdentifier, @@ -592,16 +569,13 @@ Returns information about an app bundle. (UUID) of the app bundle to use for the request. """ -function get_app_bundle( - appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appfabric( +get_app_bundle(appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appfabric( "GET", "/appbundles/$(appBundleIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_app_bundle( appBundleIdentifier, params::AbstractDict{String}; @@ -629,18 +603,16 @@ Returns information about an ingestion. (UUID) of the ingestion to use for the request. """ -function get_ingestion( +get_ingestion( appBundleIdentifier, ingestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "GET", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "GET", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ingestion( appBundleIdentifier, ingestionIdentifier, @@ -671,19 +643,17 @@ Returns information about an ingestion destination. (UUID) of the ingestion to use for the request. """ -function get_ingestion_destination( +get_ingestion_destination( appBundleIdentifier, ingestionDestinationIdentifier, ingestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "GET", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations/$(ingestionDestinationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "GET", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations/$(ingestionDestinationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ingestion_destination( appBundleIdentifier, ingestionDestinationIdentifier, @@ -721,16 +691,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_app_authorizations( +list_app_authorizations( appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appfabric( + "GET", + "/appbundles/$(appBundleIdentifier)/appauthorizations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "GET", - "/appbundles/$(appBundleIdentifier)/appauthorizations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_authorizations( appBundleIdentifier, params::AbstractDict{String}; @@ -762,11 +730,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_app_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) - return appfabric( - "GET", "/appbundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_app_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) = + appfabric("GET", "/appbundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_app_bundles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -798,18 +763,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_ingestion_destinations( +list_ingestion_destinations( appBundleIdentifier, ingestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "GET", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "GET", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_ingestion_destinations( appBundleIdentifier, ingestionIdentifier, @@ -846,16 +809,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_ingestions( - appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appfabric( +list_ingestions(appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appfabric( "GET", "/appbundles/$(appBundleIdentifier)/ingestions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_ingestions( appBundleIdentifier, params::AbstractDict{String}; @@ -881,16 +841,13 @@ Returns a list of tags for a resource. retrieve tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return appfabric( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + appfabric( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -918,18 +875,16 @@ Starts (enables) an ingestion, which collects data from an application. (UUID) of the ingestion to use for the request. """ -function start_ingestion( +start_ingestion( appBundleIdentifier, ingestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "POST", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/start"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "POST", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/start"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_ingestion( appBundleIdentifier, ingestionIdentifier, @@ -959,17 +914,15 @@ calls to the application time out. - `email`: The email address of the target user. """ -function start_user_access_tasks( +start_user_access_tasks( appBundleIdentifier, email; aws_config::AbstractAWSConfig=current_aws_config() +) = appfabric( + "POST", + "/useraccess/start", + Dict{String,Any}("appBundleIdentifier" => appBundleIdentifier, "email" => email); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "POST", - "/useraccess/start", - Dict{String,Any}("appBundleIdentifier" => appBundleIdentifier, "email" => email); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_user_access_tasks( appBundleIdentifier, email, @@ -1006,18 +959,16 @@ Stops (disables) an ingestion. (UUID) of the ingestion to use for the request. """ -function stop_ingestion( +stop_ingestion( appBundleIdentifier, ingestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "POST", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "POST", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_ingestion( appBundleIdentifier, ingestionIdentifier, @@ -1044,15 +995,14 @@ Assigns one or more tags (key-value pairs) to the specified resource. - `tags`: A map of the key-value pairs of the tag or tags to assign to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return appfabric( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + appfabric( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1080,17 +1030,14 @@ Removes a tag or tags from a resource. the specified resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return appfabric( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + appfabric( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1129,18 +1076,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tenant"`: Contains information about an application tenant, such as the application display name and identifier. """ -function update_app_authorization( +update_app_authorization( appAuthorizationIdentifier, appBundleIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "PATCH", + "/appbundles/$(appBundleIdentifier)/appauthorizations/$(appAuthorizationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "PATCH", - "/appbundles/$(appBundleIdentifier)/appauthorizations/$(appAuthorizationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_authorization( appAuthorizationIdentifier, appBundleIdentifier, @@ -1173,21 +1118,19 @@ processed by Amazon Web Services AppFabric and where it's delivered. (UUID) of the ingestion to use for the request. """ -function update_ingestion_destination( +update_ingestion_destination( appBundleIdentifier, destinationConfiguration, ingestionDestinationIdentifier, ingestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appfabric( + "PATCH", + "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations/$(ingestionDestinationIdentifier)", + Dict{String,Any}("destinationConfiguration" => destinationConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appfabric( - "PATCH", - "/appbundles/$(appBundleIdentifier)/ingestions/$(ingestionIdentifier)/ingestiondestinations/$(ingestionDestinationIdentifier)", - Dict{String,Any}("destinationConfiguration" => destinationConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_ingestion_destination( appBundleIdentifier, destinationConfiguration, diff --git a/src/services/appflow.jl b/src/services/appflow.jl index 9ba563275..77bf623d6 100644 --- a/src/services/appflow.jl +++ b/src/services/appflow.jl @@ -31,17 +31,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you specify in your request. If you omit this parameter, your request ends all active runs that belong to the flow. """ -function cancel_flow_executions( - flowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appflow( +cancel_flow_executions(flowName; aws_config::AbstractAWSConfig=current_aws_config()) = + appflow( "POST", "/cancel-flow-executions", Dict{String,Any}("flowName" => flowName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_flow_executions( flowName, params::AbstractDict{String}; @@ -97,27 +94,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key. """ -function create_connector_profile( +create_connector_profile( connectionMode, connectorProfileConfig, connectorProfileName, connectorType; aws_config::AbstractAWSConfig=current_aws_config(), +) = appflow( + "POST", + "/create-connector-profile", + Dict{String,Any}( + "connectionMode" => connectionMode, + "connectorProfileConfig" => connectorProfileConfig, + "connectorProfileName" => connectorProfileName, + "connectorType" => connectorType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appflow( - "POST", - "/create-connector-profile", - Dict{String,Any}( - "connectionMode" => connectionMode, - "connectorProfileConfig" => connectorProfileConfig, - "connectorProfileName" => connectorProfileName, - "connectorType" => connectorType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connector_profile( connectionMode, connectorProfileConfig, @@ -189,29 +184,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the data from a flow, it stores metadata in a data catalog. - `"tags"`: The tags used to organize, track, or control access for your flow. """ -function create_flow( +create_flow( destinationFlowConfigList, flowName, sourceFlowConfig, tasks, triggerConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = appflow( + "POST", + "/create-flow", + Dict{String,Any}( + "destinationFlowConfigList" => destinationFlowConfigList, + "flowName" => flowName, + "sourceFlowConfig" => sourceFlowConfig, + "tasks" => tasks, + "triggerConfig" => triggerConfig, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appflow( - "POST", - "/create-flow", - Dict{String,Any}( - "destinationFlowConfigList" => destinationFlowConfigList, - "flowName" => flowName, - "sourceFlowConfig" => sourceFlowConfig, - "tasks" => tasks, - "triggerConfig" => triggerConfig, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_flow( destinationFlowConfigList, flowName, @@ -258,17 +251,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"forceDelete"`: Indicates whether Amazon AppFlow should delete the profile, even if it is currently in use in one or more flows. """ -function delete_connector_profile( +delete_connector_profile( connectorProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = appflow( + "POST", + "/delete-connector-profile", + Dict{String,Any}("connectorProfileName" => connectorProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appflow( - "POST", - "/delete-connector-profile", - Dict{String,Any}("connectorProfileName" => connectorProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_connector_profile( connectorProfileName, params::AbstractDict{String}; @@ -306,15 +297,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"forceDelete"`: Indicates whether Amazon AppFlow should delete the flow, even if it is currently in use. """ -function delete_flow(flowName; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", - "/delete-flow", - Dict{String,Any}("flowName" => flowName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_flow(flowName; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", + "/delete-flow", + Dict{String,Any}("flowName" => flowName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_flow( flowName, params::AbstractDict{String}; @@ -349,17 +338,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ConnectorRegistration in your Amazon Web Services account. Only needed if calling for CUSTOMCONNECTOR connector type/. """ -function describe_connector( - connectorType; aws_config::AbstractAWSConfig=current_aws_config() -) - return appflow( +describe_connector(connectorType; aws_config::AbstractAWSConfig=current_aws_config()) = + appflow( "POST", "/describe-connector", Dict{String,Any}("connectorType" => connectorType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_connector( connectorType, params::AbstractDict{String}; @@ -394,17 +380,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"connectorType"`: The type of connector application, such as Salesforce, Amplitude, and so on. """ -function describe_connector_entity( +describe_connector_entity( connectorEntityName; aws_config::AbstractAWSConfig=current_aws_config() +) = appflow( + "POST", + "/describe-connector-entity", + Dict{String,Any}("connectorEntityName" => connectorEntityName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appflow( - "POST", - "/describe-connector-entity", - Dict{String,Any}("connectorEntityName" => connectorEntityName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_connector_entity( connectorEntityName, params::AbstractDict{String}; @@ -446,14 +430,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys result set. The default for maxResults is 20 (for all paginated API operations). - `"nextToken"`: The pagination token for the next page of data. """ -function describe_connector_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", - "/describe-connector-profiles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_connector_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", + "/describe-connector-profiles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_connector_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -483,14 +465,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The default is 20. - `"nextToken"`: The pagination token for the next page of data. """ -function describe_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", - "/describe-connectors"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", + "/describe-connectors"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -514,15 +494,13 @@ end or hyphens (-) only. """ -function describe_flow(flowName; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", - "/describe-flow", - Dict{String,Any}("flowName" => flowName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_flow(flowName; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", + "/describe-flow", + Dict{String,Any}("flowName" => flowName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_flow( flowName, params::AbstractDict{String}; @@ -555,17 +533,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys result set. The default for maxResults is 20 (for all paginated API operations). - `"nextToken"`: The pagination token for the next page of data. """ -function describe_flow_execution_records( +describe_flow_execution_records( flowName; aws_config::AbstractAWSConfig=current_aws_config() +) = appflow( + "POST", + "/describe-flow-execution-records", + Dict{String,Any}("flowName" => flowName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appflow( - "POST", - "/describe-flow-execution-records", - Dict{String,Any}("flowName" => flowName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_flow_execution_records( flowName, params::AbstractDict{String}; @@ -607,14 +583,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response was too big for the page size. You specify this token to get the next page of results in paginated response. """ -function list_connector_entities(; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", - "/list-connector-entities"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_connector_entities(; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", + "/list-connector-entities"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_connector_entities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -641,11 +615,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys result set. The default for maxResults is 20 (for all paginated API operations). - `"nextToken"`: The pagination token for the next page of data. """ -function list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", "/list-connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", "/list-connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -670,11 +642,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys result set. - `"nextToken"`: The pagination token for next page of data. """ -function list_flows(; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", "/list-flows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_flows(; aws_config::AbstractAWSConfig=current_aws_config()) = + appflow("POST", "/list-flows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_flows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -697,16 +666,13 @@ end - `resource_arn`: The Amazon Resource Name (ARN) of the specified flow. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return appflow( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + appflow( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -747,15 +713,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys supported value is LAMBDA. - `"description"`: A description about the connector that's being registered. """ -function register_connector(; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", - "/register-connector", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +register_connector(; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", + "/register-connector", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function register_connector( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -815,16 +779,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parent entity name for the entitiesPath parameter. Amazon AppFlow will return a list of the child entities for that parent. """ -function reset_connector_metadata_cache(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return appflow( +reset_connector_metadata_cache(; aws_config::AbstractAWSConfig=current_aws_config()) = + appflow( "POST", "/reset-connector-metadata-cache"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reset_connector_metadata_cache( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -862,15 +823,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys triggerConfig parameter. If you use a different value for clientToken, Amazon AppFlow considers it a new call to StartFlow. The token is active for 8 hours. """ -function start_flow(flowName; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", - "/start-flow", - Dict{String,Any}("flowName" => flowName, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_flow(flowName; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", + "/start-flow", + Dict{String,Any}("flowName" => flowName, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_flow( flowName, params::AbstractDict{String}; @@ -904,15 +863,13 @@ operation deactivates the flow. or hyphens (-) only. """ -function stop_flow(flowName; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( - "POST", - "/stop-flow", - Dict{String,Any}("flowName" => flowName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_flow(flowName; aws_config::AbstractAWSConfig=current_aws_config()) = appflow( + "POST", + "/stop-flow", + Dict{String,Any}("flowName" => flowName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_flow( flowName, params::AbstractDict{String}; @@ -940,15 +897,14 @@ end - `tags`: The tags used to organize, track, or control access for your flow. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return appflow( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + appflow( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -980,17 +936,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"forceDelete"`: Indicates whether Amazon AppFlow should unregister the connector, even if it is currently in use in one or more connector profiles. The default value is false. """ -function unregister_connector( - connectorLabel; aws_config::AbstractAWSConfig=current_aws_config() -) - return appflow( +unregister_connector(connectorLabel; aws_config::AbstractAWSConfig=current_aws_config()) = + appflow( "POST", "/unregister-connector", Dict{String,Any}("connectorLabel" => connectorLabel); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function unregister_connector( connectorLabel, params::AbstractDict{String}; @@ -1018,17 +971,14 @@ end - `tag_keys`: The tag keys associated with the tag that you want to remove from your flow. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return appflow( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + appflow( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1069,25 +1019,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys an error occurs. If you use a different value for clientToken, Amazon AppFlow considers it a new call to UpdateConnectorProfile. The token is active for 8 hours. """ -function update_connector_profile( +update_connector_profile( connectionMode, connectorProfileConfig, connectorProfileName; aws_config::AbstractAWSConfig=current_aws_config(), +) = appflow( + "POST", + "/update-connector-profile", + Dict{String,Any}( + "connectionMode" => connectionMode, + "connectorProfileConfig" => connectorProfileConfig, + "connectorProfileName" => connectorProfileName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appflow( - "POST", - "/update-connector-profile", - Dict{String,Any}( - "connectionMode" => connectionMode, - "connectorProfileConfig" => connectorProfileConfig, - "connectorProfileName" => connectorProfileName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connector_profile( connectionMode, connectorProfileConfig, @@ -1141,19 +1089,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"connectorProvisioningConfig"`: - `"description"`: A description about the update that you're applying to the connector. """ -function update_connector_registration( +update_connector_registration( connectorLabel; aws_config::AbstractAWSConfig=current_aws_config() +) = appflow( + "POST", + "/update-connector-registration", + Dict{String,Any}("connectorLabel" => connectorLabel, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appflow( - "POST", - "/update-connector-registration", - Dict{String,Any}( - "connectorLabel" => connectorLabel, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connector_registration( connectorLabel, params::AbstractDict{String}; @@ -1208,29 +1152,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys catalogs the data that's transferred by the associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog. """ -function update_flow( +update_flow( destinationFlowConfigList, flowName, sourceFlowConfig, tasks, triggerConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = appflow( + "POST", + "/update-flow", + Dict{String,Any}( + "destinationFlowConfigList" => destinationFlowConfigList, + "flowName" => flowName, + "sourceFlowConfig" => sourceFlowConfig, + "tasks" => tasks, + "triggerConfig" => triggerConfig, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appflow( - "POST", - "/update-flow", - Dict{String,Any}( - "destinationFlowConfigList" => destinationFlowConfigList, - "flowName" => flowName, - "sourceFlowConfig" => sourceFlowConfig, - "tasks" => tasks, - "triggerConfig" => triggerConfig, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_flow( destinationFlowConfigList, flowName, diff --git a/src/services/appintegrations.jl b/src/services/appintegrations.jl index 508e9396b..bf7763657 100644 --- a/src/services/appintegrations.jl +++ b/src/services/appintegrations.jl @@ -8,8 +8,7 @@ using AWS.UUIDs create_application(application_source_config, name, namespace) create_application(application_source_config, name, namespace, params::Dict{String,<:Any}) -This API is in preview release and subject to change. Creates and persists an Application -resource. +Creates and persists an Application resource. # Arguments - `application_source_config`: The configuration for where the application should be loaded @@ -30,25 +29,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_application( +create_application( ApplicationSourceConfig, Name, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = appintegrations( + "POST", + "/applications", + Dict{String,Any}( + "ApplicationSourceConfig" => ApplicationSourceConfig, + "Name" => Name, + "Namespace" => Namespace, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appintegrations( - "POST", - "/applications", - Dict{String,Any}( - "ApplicationSourceConfig" => ApplicationSourceConfig, - "Name" => Name, - "Namespace" => Namespace, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( ApplicationSourceConfig, Name, @@ -77,17 +74,16 @@ function create_application( end """ - create_data_integration(kms_key, name, source_uri) - create_data_integration(kms_key, name, source_uri, params::Dict{String,<:Any}) + create_data_integration(kms_key, name) + create_data_integration(kms_key, name, params::Dict{String,<:Any}) Creates and persists a DataIntegration resource. You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API. # Arguments -- `kms_key`: The KMS key for the DataIntegration. +- `kms_key`: The KMS key ARN for the DataIntegration. - `name`: The name of the DataIntegration. -- `source_uri`: The URI of the data source. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -99,29 +95,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ObjectConfiguration"`: The configuration for what data should be pulled from the source. - `"ScheduleConfig"`: The name of the data and how often it should be pulled from the source. +- `"SourceURI"`: The URI of the data source. - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_data_integration( - KmsKey, Name, SourceURI; aws_config::AbstractAWSConfig=current_aws_config() -) - return appintegrations( +create_data_integration(KmsKey, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "POST", "/dataIntegrations", Dict{String,Any}( - "KmsKey" => KmsKey, - "Name" => Name, - "SourceURI" => SourceURI, - "ClientToken" => string(uuid4()), + "KmsKey" => KmsKey, "Name" => Name, "ClientToken" => string(uuid4()) ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_data_integration( KmsKey, Name, - SourceURI, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) @@ -132,10 +122,7 @@ function create_data_integration( mergewith( _merge, Dict{String,Any}( - "KmsKey" => KmsKey, - "Name" => Name, - "SourceURI" => SourceURI, - "ClientToken" => string(uuid4()), + "KmsKey" => KmsKey, "Name" => Name, "ClientToken" => string(uuid4()) ), params, ), @@ -145,6 +132,53 @@ function create_data_integration( ) end +""" + create_data_integration_association(identifier) + create_data_integration_association(identifier, params::Dict{String,<:Any}) + +Creates and persists a DataIntegrationAssociation resource. + +# Arguments +- `identifier`: A unique identifier for the DataIntegration. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ClientAssociationMetadata"`: The mapping of metadata to be extracted from the data. +- `"ClientId"`: The identifier for the client that is associated with the DataIntegration + association. +- `"ClientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. If not provided, the Amazon Web Services SDK populates this + field. For more information about idempotency, see Making retries safe with idempotent APIs. +- `"DestinationURI"`: The URI of the data destination. +- `"ExecutionConfiguration"`: The configuration for how the files should be pulled from the + source. +- `"ObjectConfiguration"`: +""" +create_data_integration_association( + Identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appintegrations( + "POST", + "/dataIntegrations/$(Identifier)/associations", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_data_integration_association( + Identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return appintegrations( + "POST", + "/dataIntegrations/$(Identifier)/associations", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("ClientToken" => string(uuid4())), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ create_event_integration(event_bridge_bus, event_filter, name) create_event_integration(event_bridge_bus, event_filter, name, params::Dict{String,<:Any}) @@ -168,22 +202,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_event_integration( +create_event_integration( EventBridgeBus, EventFilter, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = appintegrations( + "POST", + "/eventIntegrations", + Dict{String,Any}( + "EventBridgeBus" => EventBridgeBus, + "EventFilter" => EventFilter, + "Name" => Name, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appintegrations( - "POST", - "/eventIntegrations", - Dict{String,Any}( - "EventBridgeBus" => EventBridgeBus, - "EventFilter" => EventFilter, - "Name" => Name, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_integration( EventBridgeBus, EventFilter, @@ -222,16 +254,14 @@ be deleted. - `application_identifier`: The Amazon Resource Name (ARN) of the Application. """ -function delete_application( +delete_application( ApplicationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appintegrations( + "DELETE", + "/applications/$(ApplicationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appintegrations( - "DELETE", - "/applications/$(ApplicationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application( ApplicationIdentifier, params::AbstractDict{String}; @@ -261,16 +291,13 @@ CreateDataIntegration API. - `identifier`: A unique identifier for the DataIntegration. """ -function delete_data_integration( - Identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appintegrations( +delete_data_integration(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "DELETE", "/dataIntegrations/$(Identifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_data_integration( Identifier, params::AbstractDict{String}; @@ -296,14 +323,13 @@ with clients, the request is rejected. - `name`: The name of the event integration. """ -function delete_event_integration(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appintegrations( +delete_event_integration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "DELETE", "/eventIntegrations/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_event_integration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -320,22 +346,19 @@ end get_application(application_identifier) get_application(application_identifier, params::Dict{String,<:Any}) -This API is in preview release and subject to change. Get an Application resource. +Get an Application resource. # Arguments - `application_identifier`: The Amazon Resource Name (ARN) of the Application. """ -function get_application( - ApplicationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appintegrations( +get_application(ApplicationIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "GET", "/applications/$(ApplicationIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_application( ApplicationIdentifier, params::AbstractDict{String}; @@ -362,16 +385,13 @@ DataIntegration, or recreate the DataIntegration using the CreateDataIntegration - `identifier`: A unique identifier. """ -function get_data_integration( - Identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appintegrations( +get_data_integration(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "GET", "/dataIntegrations/$(Identifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_integration( Identifier, params::AbstractDict{String}; @@ -396,14 +416,13 @@ Returns information about the event integration. - `name`: The name of the event integration. """ -function get_event_integration(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appintegrations( +get_event_integration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "GET", "/eventIntegrations/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_event_integration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -431,16 +450,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_application_associations( +list_application_associations( ApplicationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appintegrations( + "GET", + "/applications/$(ApplicationIdentifier)/associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appintegrations( - "GET", - "/applications/$(ApplicationIdentifier)/associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_associations( ApplicationIdentifier, params::AbstractDict{String}; @@ -459,7 +476,7 @@ end list_applications() list_applications(params::Dict{String,<:Any}) -This API is in preview release and subject to change. Lists applications in the account. +Lists applications in the account. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -467,11 +484,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return appintegrations( - "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = appintegrations( + "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -502,16 +517,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_data_integration_associations( +list_data_integration_associations( Identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appintegrations( + "GET", + "/dataIntegrations/$(Identifier)/associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appintegrations( - "GET", - "/dataIntegrations/$(Identifier)/associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_integration_associations( Identifier, params::AbstractDict{String}; @@ -541,11 +554,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_data_integrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return appintegrations( +list_data_integrations(; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "GET", "/dataIntegrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_data_integrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -573,16 +585,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_event_integration_associations( +list_event_integration_associations( Name; aws_config::AbstractAWSConfig=current_aws_config() +) = appintegrations( + "GET", + "/eventIntegrations/$(Name)/associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appintegrations( - "GET", - "/eventIntegrations/$(Name)/associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_event_integration_associations( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -607,11 +617,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_event_integrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return appintegrations( +list_event_integrations(; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "GET", "/eventIntegrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_event_integrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -634,16 +643,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return appintegrations( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -670,15 +676,14 @@ Adds the specified tags to the specified resource. example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return appintegrations( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -705,17 +710,14 @@ Removes the specified tags from the specified resource. - `tag_keys`: The tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return appintegrations( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -735,8 +737,7 @@ end update_application(application_identifier) update_application(application_identifier, params::Dict{String,<:Any}) -This API is in preview release and subject to change. Updates and persists an Application -resource. +Updates and persists an Application resource. # Arguments - `application_identifier`: The Amazon Resource Name (ARN) of the Application. @@ -752,16 +753,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Publications"`: The events that the application publishes. - `"Subscriptions"`: The events that the application subscribes. """ -function update_application( +update_application( ApplicationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appintegrations( + "PATCH", + "/applications/$(ApplicationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appintegrations( - "PATCH", - "/applications/$(ApplicationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application( ApplicationIdentifier, params::AbstractDict{String}; @@ -792,16 +791,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the DataIntegration. - `"Name"`: The name of the DataIntegration. """ -function update_data_integration( - Identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return appintegrations( +update_data_integration(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "PATCH", "/dataIntegrations/$(Identifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_data_integration( Identifier, params::AbstractDict{String}; @@ -816,6 +812,55 @@ function update_data_integration( ) end +""" + update_data_integration_association(data_integration_association_identifier, execution_configuration, identifier) + update_data_integration_association(data_integration_association_identifier, execution_configuration, identifier, params::Dict{String,<:Any}) + +Updates and persists a DataIntegrationAssociation resource. Updating a +DataIntegrationAssociation with ExecutionConfiguration will rerun the on-demand job. + +# Arguments +- `data_integration_association_identifier`: A unique identifier. of the + DataIntegrationAssociation resource +- `execution_configuration`: The configuration for how the files should be pulled from the + source. +- `identifier`: A unique identifier for the DataIntegration. + +""" +update_data_integration_association( + DataIntegrationAssociationIdentifier, + ExecutionConfiguration, + Identifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = appintegrations( + "PATCH", + "/dataIntegrations/$(Identifier)/associations/$(DataIntegrationAssociationIdentifier)", + Dict{String,Any}("ExecutionConfiguration" => ExecutionConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_data_integration_association( + DataIntegrationAssociationIdentifier, + ExecutionConfiguration, + Identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return appintegrations( + "PATCH", + "/dataIntegrations/$(Identifier)/associations/$(DataIntegrationAssociationIdentifier)", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("ExecutionConfiguration" => ExecutionConfiguration), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ update_event_integration(name) update_event_integration(name, params::Dict{String,<:Any}) @@ -829,14 +874,13 @@ Updates the description of an event integration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The description of the event integration. """ -function update_event_integration(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appintegrations( +update_event_integration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appintegrations( "PATCH", "/eventIntegrations/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_event_integration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/application_auto_scaling.jl b/src/services/application_auto_scaling.jl index c02d84cce..47e87ea45 100644 --- a/src/services/application_auto_scaling.jl +++ b/src/services/application_auto_scaling.jl @@ -19,7 +19,7 @@ scaling policy in the Application Auto Scaling User Guide. - `resource_id`: The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -51,26 +51,28 @@ scaling policy in the Application Auto Scaling User Guide. 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `scalable_dimension`: The scalable dimension. This string consists of the service - namespace, resource type, and scaling property. ecs:service:DesiredCount - The desired - task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The - instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The - target capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The desired capacity - of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read - capacity for a DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write - capacity for a DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read - capacity for a DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The - provisioned write capacity for a DynamoDB global secondary index. - rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. - Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible edition. - sagemaker:variant:DesiredInstanceCount - The number of EC2 instances for a SageMaker model - endpoint variant. custom-resource:ResourceType:Property - The scalable dimension for a - custom resource provided by your own application or service. + namespace, resource type, and scaling property. ecs:service:DesiredCount - The task + count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance + count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target + capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream + 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a + DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a + DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a + DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The provisioned + write capacity for a DynamoDB global secondary index. rds:cluster:ReadReplicaCount - The + count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible + edition and Aurora PostgreSQL-compatible edition. sagemaker:variant:DesiredInstanceCount + - The number of EC2 instances for a SageMaker model endpoint variant. + custom-resource:ResourceType:Property - The scalable dimension for a custom resource + provided by your own application or service. comprehend:document-classifier-endpoint:DesiredInferenceUnits - The number of inference units for an Amazon Comprehend document classification endpoint. comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number of inference units @@ -85,32 +87,32 @@ scaling policy in the Application Auto Scaling User Guide. Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. - `service_namespace`: The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own application or service, use custom-resource instead. """ -function delete_scaling_policy( +delete_scaling_policy( PolicyName, ResourceId, ScalableDimension, ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_auto_scaling( + "DeleteScalingPolicy", + Dict{String,Any}( + "PolicyName" => PolicyName, + "ResourceId" => ResourceId, + "ScalableDimension" => ScalableDimension, + "ServiceNamespace" => ServiceNamespace, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "DeleteScalingPolicy", - Dict{String,Any}( - "PolicyName" => PolicyName, - "ResourceId" => ResourceId, - "ScalableDimension" => ScalableDimension, - "ServiceNamespace" => ServiceNamespace, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_scaling_policy( PolicyName, ResourceId, @@ -149,7 +151,7 @@ more information, see Delete a scheduled action in the Application Auto Scaling - `resource_id`: The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -181,26 +183,28 @@ more information, see Delete a scheduled action in the Application Auto Scaling 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `scalable_dimension`: The scalable dimension. This string consists of the service - namespace, resource type, and scaling property. ecs:service:DesiredCount - The desired - task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The - instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The - target capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The desired capacity - of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read - capacity for a DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write - capacity for a DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read - capacity for a DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The - provisioned write capacity for a DynamoDB global secondary index. - rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. - Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible edition. - sagemaker:variant:DesiredInstanceCount - The number of EC2 instances for a SageMaker model - endpoint variant. custom-resource:ResourceType:Property - The scalable dimension for a - custom resource provided by your own application or service. + namespace, resource type, and scaling property. ecs:service:DesiredCount - The task + count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance + count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target + capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream + 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a + DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a + DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a + DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The provisioned + write capacity for a DynamoDB global secondary index. rds:cluster:ReadReplicaCount - The + count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible + edition and Aurora PostgreSQL-compatible edition. sagemaker:variant:DesiredInstanceCount + - The number of EC2 instances for a SageMaker model endpoint variant. + custom-resource:ResourceType:Property - The scalable dimension for a custom resource + provided by your own application or service. comprehend:document-classifier-endpoint:DesiredInferenceUnits - The number of inference units for an Amazon Comprehend document classification endpoint. comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number of inference units @@ -215,33 +219,33 @@ more information, see Delete a scheduled action in the Application Auto Scaling Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. - `scheduled_action_name`: The name of the scheduled action. - `service_namespace`: The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own application or service, use custom-resource instead. """ -function delete_scheduled_action( +delete_scheduled_action( ResourceId, ScalableDimension, ScheduledActionName, ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_auto_scaling( + "DeleteScheduledAction", + Dict{String,Any}( + "ResourceId" => ResourceId, + "ScalableDimension" => ScalableDimension, + "ScheduledActionName" => ScheduledActionName, + "ServiceNamespace" => ServiceNamespace, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "DeleteScheduledAction", - Dict{String,Any}( - "ResourceId" => ResourceId, - "ScalableDimension" => ScalableDimension, - "ScheduledActionName" => ScheduledActionName, - "ServiceNamespace" => ServiceNamespace, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_scheduled_action( ResourceId, ScalableDimension, @@ -282,7 +286,7 @@ with it. - `resource_id`: The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -314,17 +318,19 @@ with it. 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `scalable_dimension`: The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. - ecs:service:DesiredCount - The desired task count of an ECS service. + ecs:service:DesiredCount - The task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot Fleet. - appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet. + appstream:fleet:DesiredCapacity - The capacity of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global @@ -349,30 +355,30 @@ with it. Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. - `service_namespace`: The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own application or service, use custom-resource instead. """ -function deregister_scalable_target( +deregister_scalable_target( ResourceId, ScalableDimension, ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_auto_scaling( + "DeregisterScalableTarget", + Dict{String,Any}( + "ResourceId" => ResourceId, + "ScalableDimension" => ScalableDimension, + "ServiceNamespace" => ServiceNamespace, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "DeregisterScalableTarget", - Dict{String,Any}( - "ResourceId" => ResourceId, - "ScalableDimension" => ScalableDimension, - "ServiceNamespace" => ServiceNamespace, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_scalable_target( ResourceId, ScalableDimension, @@ -421,7 +427,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceIds"`: The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -453,18 +459,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `"ScalableDimension"`: The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID. - ecs:service:DesiredCount - The desired task count of an ECS service. + ecs:service:DesiredCount - The task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot Fleet. - appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet. + appstream:fleet:DesiredCapacity - The capacity of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global @@ -489,19 +497,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. """ -function describe_scalable_targets( +describe_scalable_targets( ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config() +) = application_auto_scaling( + "DescribeScalableTargets", + Dict{String,Any}("ServiceNamespace" => ServiceNamespace); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "DescribeScalableTargets", - Dict{String,Any}("ServiceNamespace" => ServiceNamespace); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scalable_targets( ServiceNamespace, params::AbstractDict{String}; @@ -549,7 +557,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceId"`: The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -581,20 +589,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `"ScalableDimension"`: The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you - must also specify a resource ID. ecs:service:DesiredCount - The desired task count of an - ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR + must also specify a resource ID. ecs:service:DesiredCount - The task count of an ECS + service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot - Fleet. appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet. - dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. - dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. - dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global + Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream 2.0 fleet. + dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. + dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. + dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary index. rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition and Aurora @@ -616,19 +626,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. """ -function describe_scaling_activities( +describe_scaling_activities( ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config() +) = application_auto_scaling( + "DescribeScalingActivities", + Dict{String,Any}("ServiceNamespace" => ServiceNamespace); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "DescribeScalingActivities", - Dict{String,Any}("ServiceNamespace" => ServiceNamespace); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scaling_activities( ServiceNamespace, params::AbstractDict{String}; @@ -672,7 +682,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceId"`: The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -704,20 +714,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `"ScalableDimension"`: The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you - must also specify a resource ID. ecs:service:DesiredCount - The desired task count of an - ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR + must also specify a resource ID. ecs:service:DesiredCount - The task count of an ECS + service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot - Fleet. appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet. - dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. - dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. - dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global + Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream 2.0 fleet. + dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. + dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. + dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary index. rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition and Aurora @@ -739,19 +751,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. """ -function describe_scaling_policies( +describe_scaling_policies( ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config() +) = application_auto_scaling( + "DescribeScalingPolicies", + Dict{String,Any}("ServiceNamespace" => ServiceNamespace); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "DescribeScalingPolicies", - Dict{String,Any}("ServiceNamespace" => ServiceNamespace); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scaling_policies( ServiceNamespace, params::AbstractDict{String}; @@ -775,8 +787,8 @@ end Describes the Application Auto Scaling scheduled actions for the specified service namespace. You can filter the results using the ResourceId, ScalableDimension, and -ScheduledActionNames parameters. For more information, see Scheduled scaling and Managing -scheduled scaling in the Application Auto Scaling User Guide. +ScheduledActionNames parameters. For more information, see Scheduled scaling in the +Application Auto Scaling User Guide. # Arguments - `service_namespace`: The namespace of the Amazon Web Services service that provides the @@ -794,7 +806,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceId"`: The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -826,20 +838,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `"ScalableDimension"`: The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you - must also specify a resource ID. ecs:service:DesiredCount - The desired task count of an - ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR + must also specify a resource ID. ecs:service:DesiredCount - The task count of an ECS + service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot - Fleet. appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet. - dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. - dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. - dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global + Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream 2.0 fleet. + dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. + dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. + dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary index. rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition and Aurora @@ -861,20 +875,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. - `"ScheduledActionNames"`: The names of the scheduled actions to describe. """ -function describe_scheduled_actions( +describe_scheduled_actions( ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config() +) = application_auto_scaling( + "DescribeScheduledActions", + Dict{String,Any}("ServiceNamespace" => ServiceNamespace); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "DescribeScheduledActions", - Dict{String,Any}("ServiceNamespace" => ServiceNamespace); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scheduled_actions( ServiceNamespace, params::AbstractDict{String}; @@ -897,8 +911,8 @@ end list_tags_for_resource(resource_arn, params::Dict{String,<:Any}) Returns all the tags on the specified Application Auto Scaling scalable target. For general -information about tags, including the format and syntax, see Tagging Amazon Web Services -resources in the Amazon Web Services General Reference. +information about tags, including the format and syntax, see Tagging your Amazon Web +Services resources in the Amazon Web Services General Reference. # Arguments - `resource_arn`: Specify the ARN of the scalable target. For example: @@ -906,16 +920,13 @@ resources in the Amazon Web Services General Reference. 1234567890ab123 To get the ARN for a scalable target, use DescribeScalableTargets. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_auto_scaling( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + application_auto_scaling( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -964,7 +975,7 @@ scaling policies that were specified for the scalable target are deleted. - `resource_id`: The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -996,26 +1007,28 @@ scaling policies that were specified for the scalable target are deleted. 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `scalable_dimension`: The scalable dimension. This string consists of the service - namespace, resource type, and scaling property. ecs:service:DesiredCount - The desired - task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The - instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The - target capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The desired capacity - of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read - capacity for a DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write - capacity for a DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read - capacity for a DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The - provisioned write capacity for a DynamoDB global secondary index. - rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. - Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible edition. - sagemaker:variant:DesiredInstanceCount - The number of EC2 instances for a SageMaker model - endpoint variant. custom-resource:ResourceType:Property - The scalable dimension for a - custom resource provided by your own application or service. + namespace, resource type, and scaling property. ecs:service:DesiredCount - The task + count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance + count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target + capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream + 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a + DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a + DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a + DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The provisioned + write capacity for a DynamoDB global secondary index. rds:cluster:ReadReplicaCount - The + count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible + edition and Aurora PostgreSQL-compatible edition. sagemaker:variant:DesiredInstanceCount + - The number of EC2 instances for a SageMaker model endpoint variant. + custom-resource:ResourceType:Property - The scalable dimension for a custom resource + provided by your own application or service. comprehend:document-classifier-endpoint:DesiredInferenceUnits - The number of inference units for an Amazon Comprehend document classification endpoint. comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number of inference units @@ -1030,8 +1043,10 @@ scaling policies that were specified for the scalable target are deleted. Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. - `service_namespace`: The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own application or service, use custom-resource instead. @@ -1050,25 +1065,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys support for predefined or customized metrics. This parameter is required if you are creating a policy and the policy type is TargetTrackingScaling. """ -function put_scaling_policy( +put_scaling_policy( PolicyName, ResourceId, ScalableDimension, ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_auto_scaling( + "PutScalingPolicy", + Dict{String,Any}( + "PolicyName" => PolicyName, + "ResourceId" => ResourceId, + "ScalableDimension" => ScalableDimension, + "ServiceNamespace" => ServiceNamespace, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "PutScalingPolicy", - Dict{String,Any}( - "PolicyName" => PolicyName, - "ResourceId" => ResourceId, - "ScalableDimension" => ScalableDimension, - "ServiceNamespace" => ServiceNamespace, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_scaling_policy( PolicyName, ResourceId, @@ -1116,7 +1129,7 @@ scheduled actions that were specified for the scalable target are deleted. - `resource_id`: The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: - service/default/sample-webapp. Spot Fleet - The resource type is spot-fleet-request and + service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -1148,26 +1161,28 @@ scheduled actions that were specified for the scalable target are deleted. 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `scalable_dimension`: The scalable dimension. This string consists of the service - namespace, resource type, and scaling property. ecs:service:DesiredCount - The desired - task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The - instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The - target capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The desired capacity - of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read - capacity for a DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write - capacity for a DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read - capacity for a DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The - provisioned write capacity for a DynamoDB global secondary index. - rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. - Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible edition. - sagemaker:variant:DesiredInstanceCount - The number of EC2 instances for a SageMaker model - endpoint variant. custom-resource:ResourceType:Property - The scalable dimension for a - custom resource provided by your own application or service. + namespace, resource type, and scaling property. ecs:service:DesiredCount - The task + count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance + count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target + capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream + 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a + DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a + DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a + DynamoDB global secondary index. dynamodb:index:WriteCapacityUnits - The provisioned + write capacity for a DynamoDB global secondary index. rds:cluster:ReadReplicaCount - The + count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible + edition and Aurora PostgreSQL-compatible edition. sagemaker:variant:DesiredInstanceCount + - The number of EC2 instances for a SageMaker model endpoint variant. + custom-resource:ResourceType:Property - The scalable dimension for a custom resource + provided by your own application or service. comprehend:document-classifier-endpoint:DesiredInferenceUnits - The number of inference units for an Amazon Comprehend document classification endpoint. comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number of inference units @@ -1182,8 +1197,10 @@ scheduled actions that were specified for the scalable target are deleted. Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. - `scheduled_action_name`: The name of the scheduled action. This name must be unique among all other scheduled actions on the specified scalable target. - `service_namespace`: The namespace of the Amazon Web Services service that provides the @@ -1205,33 +1222,31 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys At and cron expressions use Universal Coordinated Time (UTC) by default. The cron format consists of six fields separated by white spaces: [Minutes] [Hours] [Day_of_Month] [Month] [Day_of_Week] [Year]. For rate expressions, value is a positive integer and unit is minute - | minutes | hour | hours | day | days. For more information and examples, see Example - scheduled actions for Application Auto Scaling in the Application Auto Scaling User Guide. + | minutes | hour | hours | day | days. For more information, see Schedule recurring scaling + actions using cron expressions in the Application Auto Scaling User Guide. - `"StartTime"`: The date and time for this scheduled action to start, in UTC. - `"Timezone"`: Specifies the time zone used when setting a scheduled action by using an at or cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones supported by Joda-Time (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://www.joda.org/joda-time/timezones.html. """ -function put_scheduled_action( +put_scheduled_action( ResourceId, ScalableDimension, ScheduledActionName, ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_auto_scaling( + "PutScheduledAction", + Dict{String,Any}( + "ResourceId" => ResourceId, + "ScalableDimension" => ScalableDimension, + "ScheduledActionName" => ScheduledActionName, + "ServiceNamespace" => ServiceNamespace, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "PutScheduledAction", - Dict{String,Any}( - "ResourceId" => ResourceId, - "ScalableDimension" => ScalableDimension, - "ScheduledActionName" => ScheduledActionName, - "ServiceNamespace" => ServiceNamespace, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_scheduled_action( ResourceId, ScalableDimension, @@ -1294,7 +1309,7 @@ even if you don't include the MinCapacity or MaxCapacity request parameters. - `resource_id`: The identifier of the resource that is associated with the scalable target. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service - name. Example: service/default/sample-webapp. Spot Fleet - The resource type is + name. Example: service/my-cluster/my-service. Spot Fleet - The resource type is spot-fleet-request and the unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. @@ -1326,17 +1341,19 @@ even if you don't include the MinCapacity or MaxCapacity request parameters. 2e31-5. Amazon ElastiCache replication group - The resource type is replication-group and the unique identifier is the replication group name. Example: replication-group/mycluster. Neptune cluster - The resource type is cluster and the unique identifier is the cluster - name. Example: cluster:mycluster. SageMaker Serverless endpoint - The resource type is + name. Example: cluster:mycluster. SageMaker serverless endpoint - The resource type is variant and the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering. SageMaker inference component - The resource type is inference-component and the unique identifier is the resource ID. Example: - inference-component/my-inference-component. + inference-component/my-inference-component. Pool of WorkSpaces - The resource type is + workspacespool and the unique identifier is the pool ID. Example: + workspacespool/wspool-123456. - `scalable_dimension`: The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. - ecs:service:DesiredCount - The desired task count of an ECS service. + ecs:service:DesiredCount - The task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot Fleet. - appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet. + appstream:fleet:DesiredCapacity - The capacity of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table. dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global @@ -1361,8 +1378,10 @@ even if you don't include the MinCapacity or MaxCapacity request parameters. Amazon ElastiCache replication group. neptune:cluster:ReadReplicaCount - The count of read replicas in an Amazon Neptune DB cluster. sagemaker:variant:DesiredProvisionedConcurrency - The provisioned concurrency for a - SageMaker Serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The + SageMaker serverless endpoint. sagemaker:inference-component:DesiredCopyCount - The number of copies across an endpoint for a SageMaker inference component. + workspaces:workspacespool:DesiredUserSessions - The number of user sessions for the + WorkSpaces in the pool. - `service_namespace`: The namespace of the Amazon Web Services service that provides the resource. For a resource provided by your own application or service, use custom-resource instead. @@ -1383,20 +1402,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys capacity limit in response to changing demand. This property is required when registering a new scalable target. For the following resources, the minimum value allowed is 0. AppStream 2.0 fleets Aurora DB clusters ECS services EMR clusters Lambda - provisioned concurrency SageMaker endpoint variants SageMaker Serverless endpoint - provisioned concurrency Spot Fleets custom resources It's strongly recommended that - you specify a value greater than 0. A value greater than 0 means that data points are - continuously reported to CloudWatch that scaling policies can use to scale on a metric like - average CPU utilization. For all other resources, the minimum allowed value depends on the - type of resource that you are using. If you provide a value that is lower than what a - resource can accept, an error occurs. In which case, the error message will provide the - minimum value that the resource can accept. + provisioned concurrency SageMaker endpoint variants SageMaker inference components + SageMaker serverless endpoint provisioned concurrency Spot Fleets custom resources + It's strongly recommended that you specify a value greater than 0. A value greater than 0 + means that data points are continuously reported to CloudWatch that scaling policies can + use to scale on a metric like average CPU utilization. For all other resources, the minimum + allowed value depends on the type of resource that you are using. If you provide a value + that is lower than what a resource can accept, an error occurs. In which case, the error + message will provide the minimum value that the resource can accept. - `"RoleARN"`: This parameter is required for services that do not support service-linked roles (such as Amazon EMR), and it must specify the ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. If the service supports service-linked roles, Application Auto Scaling uses a service-linked role, which - it creates if it does not yet exist. For more information, see Application Auto Scaling IAM - roles. + it creates if it does not yet exist. For more information, see How Application Auto Scaling + works with IAM. - `"SuspendedState"`: An embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to true suspends the specified scaling activities. Setting it to false (default) resumes the @@ -1405,8 +1424,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are suspended. For DynamicScalingOutSuspended, while a suspension is in effect, all scale-out activities that are triggered by a scaling policy are suspended. For ScheduledScalingSuspended, while a suspension is in effect, all scaling activities that - involve scheduled actions are suspended. For more information, see Suspending and - resuming scaling in the Application Auto Scaling User Guide. + involve scheduled actions are suspended. For more information, see Suspend and resume + scaling in the Application Auto Scaling User Guide. - `"Tags"`: Assigns one or more tags to the scalable target. Use this parameter to tag the scalable target when it is created. To tag an existing scalable target, use the TagResource operation. Each tag consists of a tag key and a tag value. Both the tag key and the tag @@ -1414,23 +1433,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tag key. Use tags to control access to a scalable target. For more information, see Tagging support for Application Auto Scaling in the Application Auto Scaling User Guide. """ -function register_scalable_target( +register_scalable_target( ResourceId, ScalableDimension, ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_auto_scaling( + "RegisterScalableTarget", + Dict{String,Any}( + "ResourceId" => ResourceId, + "ScalableDimension" => ScalableDimension, + "ServiceNamespace" => ServiceNamespace, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_auto_scaling( - "RegisterScalableTarget", - Dict{String,Any}( - "ResourceId" => ResourceId, - "ScalableDimension" => ScalableDimension, - "ServiceNamespace" => ServiceNamespace, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_scalable_target( ResourceId, ScalableDimension, @@ -1466,10 +1483,10 @@ tag key and a tag value. To edit a tag, specify an existing tag key and a new ta You can use this operation to tag an Application Auto Scaling scalable target, but you cannot tag a scaling policy or scheduled action. You can also add tags to an Application Auto Scaling scalable target while creating it (RegisterScalableTarget). For general -information about tags, including the format and syntax, see Tagging Amazon Web Services -resources in the Amazon Web Services General Reference. Use tags to control access to a -scalable target. For more information, see Tagging support for Application Auto Scaling in -the Application Auto Scaling User Guide. +information about tags, including the format and syntax, see Tagging your Amazon Web +Services resources in the Amazon Web Services General Reference. Use tags to control access +to a scalable target. For more information, see Tagging support for Application Auto +Scaling in the Application Auto Scaling User Guide. # Arguments - `resource_arn`: Identifies the Application Auto Scaling scalable target that you want to @@ -1482,17 +1499,16 @@ the Application Auto Scaling User Guide. specify an existing tag key with a different tag value, Application Auto Scaling replaces the current tag value with the specified one. For information about the rules that apply to tag keys and tag values, see User-defined tag restrictions in the Amazon Web Services - Billing and Cost Management User Guide. + Billing User Guide. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return application_auto_scaling( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + application_auto_scaling( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1528,16 +1544,13 @@ tag key and the Application Auto Scaling scalable target. - `tag_keys`: One or more tag keys. Specify only the tag keys, not the tag values. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_auto_scaling( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + application_auto_scaling( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, diff --git a/src/services/application_discovery_service.jl b/src/services/application_discovery_service.jl index ec0d98159..a52321b52 100644 --- a/src/services/application_discovery_service.jl +++ b/src/services/application_discovery_service.jl @@ -17,21 +17,19 @@ Associates one or more configuration items with an application. application. """ -function associate_configuration_items_to_application( +associate_configuration_items_to_application( applicationConfigurationId, configurationIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_discovery_service( + "AssociateConfigurationItemsToApplication", + Dict{String,Any}( + "applicationConfigurationId" => applicationConfigurationId, + "configurationIds" => configurationIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_discovery_service( - "AssociateConfigurationItemsToApplication", - Dict{String,Any}( - "applicationConfigurationId" => applicationConfigurationId, - "configurationIds" => configurationIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_configuration_items_to_application( applicationConfigurationId, configurationIds, @@ -67,16 +65,13 @@ StartBatchDeleteConfigurationTask. - `delete_agents`: The list of agents to delete. """ -function batch_delete_agents( - deleteAgents; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +batch_delete_agents(deleteAgents; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "BatchDeleteAgents", Dict{String,Any}("deleteAgents" => deleteAgents); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_delete_agents( deleteAgents, params::AbstractDict{String}; @@ -112,16 +107,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deleteHistory"`: Set to true to remove the deleted import task from DescribeImportTasks. """ -function batch_delete_import_data( +batch_delete_import_data( importTaskIds; aws_config::AbstractAWSConfig=current_aws_config() +) = application_discovery_service( + "BatchDeleteImportData", + Dict{String,Any}("importTaskIds" => importTaskIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_discovery_service( - "BatchDeleteImportData", - Dict{String,Any}("importTaskIds" => importTaskIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_import_data( importTaskIds, params::AbstractDict{String}; @@ -150,14 +143,13 @@ Creates an application with the given name and description. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: Description of the application to be created. """ -function create_application(name; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +create_application(name; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "CreateApplication", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_application( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -184,16 +176,13 @@ store sensitive information (like personal data) in tags. \"value\": \"webServer\"} """ -function create_tags( - configurationIds, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +create_tags(configurationIds, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "CreateTags", Dict{String,Any}("configurationIds" => configurationIds, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_tags( configurationIds, tags, @@ -224,16 +213,13 @@ Deletes a list of applications and their associations with configuration items. - `configuration_ids`: Configuration ID of an application to be deleted. """ -function delete_applications( - configurationIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +delete_applications(configurationIds; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "DeleteApplications", Dict{String,Any}("configurationIds" => configurationIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_applications( configurationIds, params::AbstractDict{String}; @@ -267,14 +253,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags that you want to delete in a key-value format. For example: {\"key\": \"serverType\", \"value\": \"webServer\"} """ -function delete_tags(configurationIds; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +delete_tags(configurationIds; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "DeleteTags", Dict{String,Any}("configurationIds" => configurationIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tags( configurationIds, params::AbstractDict{String}; @@ -314,11 +299,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10. """ -function describe_agents(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +describe_agents(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "DescribeAgents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_agents( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -338,16 +322,14 @@ configuration deletion task. - `task_id`: The ID of the task to delete. """ -function describe_batch_delete_configuration_task( +describe_batch_delete_configuration_task( taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = application_discovery_service( + "DescribeBatchDeleteConfigurationTask", + Dict{String,Any}("taskId" => taskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_discovery_service( - "DescribeBatchDeleteConfigurationTask", - Dict{String,Any}("taskId" => taskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_batch_delete_configuration_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -375,16 +357,14 @@ Services Application Discovery Service User Guide. - `configuration_ids`: One or more configuration IDs. """ -function describe_configurations( +describe_configurations( configurationIds; aws_config::AbstractAWSConfig=current_aws_config() +) = application_discovery_service( + "DescribeConfigurations", + Dict{String,Any}("configurationIds" => configurationIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_discovery_service( - "DescribeConfigurations", - Dict{String,Any}("configurationIds" => configurationIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_configurations( configurationIds, params::AbstractDict{String}; @@ -416,11 +396,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys export descriptions returned. - `"nextToken"`: The token from the previous call to DescribeExportTasks. """ -function describe_continuous_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +describe_continuous_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "DescribeContinuousExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_continuous_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -445,15 +424,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys export descriptions returned. - `"nextToken"`: The token from the previous call to describe-export-tasks. """ -function describe_export_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +describe_export_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "DescribeExportConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_export_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -486,11 +462,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. """ -function describe_export_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +describe_export_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "DescribeExportTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_export_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -518,11 +493,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 100. - `"nextToken"`: The token to request a specific page of results. """ -function describe_import_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +describe_import_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "DescribeImportTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_import_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -553,11 +527,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maximum value is 100. - `"nextToken"`: A token to start the list. Use this token to get the next set of results. """ -function describe_tags(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +describe_tags(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "DescribeTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_tags( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -579,21 +552,19 @@ Disassociates one or more configuration items from an application. application. """ -function disassociate_configuration_items_from_application( +disassociate_configuration_items_from_application( applicationConfigurationId, configurationIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_discovery_service( + "DisassociateConfigurationItemsFromApplication", + Dict{String,Any}( + "applicationConfigurationId" => applicationConfigurationId, + "configurationIds" => configurationIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_discovery_service( - "DisassociateConfigurationItemsFromApplication", - Dict{String,Any}( - "applicationConfigurationId" => applicationConfigurationId, - "configurationIds" => configurationIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_configuration_items_from_application( applicationConfigurationId, configurationIds, @@ -629,11 +600,10 @@ DescribeExportConfigurations API. The system imposes a limit of two configuratio in six hours. """ -function export_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +export_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "ExportConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function export_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -653,11 +623,10 @@ Retrieves a short summary of discovered assets. This API operation takes no requ parameters and is called as is at the command prompt as shown in the example. """ -function get_discovery_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +get_discovery_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "GetDiscoverySummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_discovery_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -696,16 +665,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListConfigurations Action in the Amazon Web Services Application Discovery Service User Guide. """ -function list_configurations( - configurationType; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +list_configurations(configurationType; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "ListConfigurations", Dict{String,Any}("configurationType" => configurationType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_configurations( configurationType, params::AbstractDict{String}; @@ -743,16 +709,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"portInformationNeeded"`: Flag to indicate if port and protocol information is needed as part of the response. """ -function list_server_neighbors( - configurationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +list_server_neighbors(configurationId; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "ListServerNeighbors", Dict{String,Any}("configurationId" => configurationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_server_neighbors( configurationId, params::AbstractDict{String}; @@ -783,18 +746,16 @@ remove the configurationItems. Returns a unique deletion task identifier. SERVER. """ -function start_batch_delete_configuration_task( +start_batch_delete_configuration_task( configurationIds, configurationType; aws_config::AbstractAWSConfig=current_aws_config() +) = application_discovery_service( + "StartBatchDeleteConfigurationTask", + Dict{String,Any}( + "configurationIds" => configurationIds, "configurationType" => configurationType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_discovery_service( - "StartBatchDeleteConfigurationTask", - Dict{String,Any}( - "configurationIds" => configurationIds, "configurationType" => configurationType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_batch_delete_configuration_task( configurationIds, configurationType, @@ -825,11 +786,10 @@ end Start the continuous flow of agent's discovered data into Amazon Athena. """ -function start_continuous_export(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +start_continuous_export(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "StartContinuousExport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function start_continuous_export( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -856,16 +816,14 @@ Instructs the specified agents to start collecting data. Instead, the system shows Failed in the Description field. """ -function start_data_collection_by_agent_ids( +start_data_collection_by_agent_ids( agentIds; aws_config::AbstractAWSConfig=current_aws_config() +) = application_discovery_service( + "StartDataCollectionByAgentIds", + Dict{String,Any}("agentIds" => agentIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_discovery_service( - "StartDataCollectionByAgentIds", - Dict{String,Any}("agentIds" => agentIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_data_collection_by_agent_ids( agentIds, params::AbstractDict{String}; @@ -920,11 +878,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Discovery Agent selected in the filters. If no value is specified, data is exported starting from the first data collected by the agent. """ -function start_export_task(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_discovery_service( +start_export_task(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "StartExportTask"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function start_export_task( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -974,10 +931,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request token will return information about the original import task with that client request token. """ -function start_import_task( - importUrl, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +start_import_task(importUrl, name; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "StartImportTask", Dict{String,Any}( "importUrl" => importUrl, @@ -987,7 +942,6 @@ function start_import_task( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_import_task( importUrl, name, @@ -1022,16 +976,13 @@ Stop the continuous flow of agent's discovered data into Amazon Athena. - `export_id`: The unique ID assigned to this export. """ -function stop_continuous_export( - exportId; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +stop_continuous_export(exportId; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "StopContinuousExport", Dict{String,Any}("exportId" => exportId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_continuous_export( exportId, params::AbstractDict{String}; @@ -1057,16 +1008,14 @@ Instructs the specified agents to stop collecting data. - `agent_ids`: The IDs of the agents from which to stop collecting data. """ -function stop_data_collection_by_agent_ids( +stop_data_collection_by_agent_ids( agentIds; aws_config::AbstractAWSConfig=current_aws_config() +) = application_discovery_service( + "StopDataCollectionByAgentIds", + Dict{String,Any}("agentIds" => agentIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_discovery_service( - "StopDataCollectionByAgentIds", - Dict{String,Any}("agentIds" => agentIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_data_collection_by_agent_ids( agentIds, params::AbstractDict{String}; @@ -1096,16 +1045,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: New description of the application to be updated. - `"name"`: New name of the application to be updated. """ -function update_application( - configurationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_discovery_service( +update_application(configurationId; aws_config::AbstractAWSConfig=current_aws_config()) = + application_discovery_service( "UpdateApplication", Dict{String,Any}("configurationId" => configurationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( configurationId, params::AbstractDict{String}; diff --git a/src/services/application_insights.jl b/src/services/application_insights.jl index 96f5e2841..2daf9f65f 100644 --- a/src/services/application_insights.jl +++ b/src/services/application_insights.jl @@ -17,23 +17,21 @@ Adds a workload to a component. Each component can have at most five workloads. escaped JSON of the configuration. """ -function add_workload( +add_workload( ComponentName, ResourceGroupName, WorkloadConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "AddWorkload", + Dict{String,Any}( + "ComponentName" => ComponentName, + "ResourceGroupName" => ResourceGroupName, + "WorkloadConfiguration" => WorkloadConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "AddWorkload", - Dict{String,Any}( - "ComponentName" => ComponentName, - "ResourceGroupName" => ResourceGroupName, - "WorkloadConfiguration" => WorkloadConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_workload( ComponentName, ResourceGroupName, @@ -89,11 +87,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value (Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters. """ -function create_application(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_insights( +create_application(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "CreateApplication"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function create_application( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -114,23 +111,21 @@ Creates a custom component by grouping similar standalone instances to monitor. - `resource_list`: The list of resource ARNs that belong to the component. """ -function create_component( +create_component( ComponentName, ResourceGroupName, ResourceList; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "CreateComponent", + Dict{String,Any}( + "ComponentName" => ComponentName, + "ResourceGroupName" => ResourceGroupName, + "ResourceList" => ResourceList, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "CreateComponent", - Dict{String,Any}( - "ComponentName" => ComponentName, - "ResourceGroupName" => ResourceGroupName, - "ResourceList" => ResourceList, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_component( ComponentName, ResourceGroupName, @@ -177,27 +172,25 @@ Adds an log pattern to a LogPatternSet. - `resource_group_name`: The name of the resource group. """ -function create_log_pattern( +create_log_pattern( Pattern, PatternName, PatternSetName, Rank, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "CreateLogPattern", + Dict{String,Any}( + "Pattern" => Pattern, + "PatternName" => PatternName, + "PatternSetName" => PatternSetName, + "Rank" => Rank, + "ResourceGroupName" => ResourceGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "CreateLogPattern", - Dict{String,Any}( - "Pattern" => Pattern, - "PatternName" => PatternName, - "PatternSetName" => PatternSetName, - "Rank" => Rank, - "ResourceGroupName" => ResourceGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_log_pattern( Pattern, PatternName, @@ -237,16 +230,13 @@ Removes the specified application from monitoring. Does not delete the applicati - `resource_group_name`: The name of the resource group. """ -function delete_application( - ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_insights( +delete_application(ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "DeleteApplication", Dict{String,Any}("ResourceGroupName" => ResourceGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( ResourceGroupName, params::AbstractDict{String}; @@ -277,18 +267,16 @@ status. - `resource_group_name`: The name of the resource group. """ -function delete_component( +delete_component( ComponentName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "DeleteComponent", + Dict{String,Any}( + "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DeleteComponent", - Dict{String,Any}( - "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_component( ComponentName, ResourceGroupName, @@ -324,23 +312,21 @@ Removes the specified log pattern from a LogPatternSet. - `resource_group_name`: The name of the resource group. """ -function delete_log_pattern( +delete_log_pattern( PatternName, PatternSetName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "DeleteLogPattern", + Dict{String,Any}( + "PatternName" => PatternName, + "PatternSetName" => PatternSetName, + "ResourceGroupName" => ResourceGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DeleteLogPattern", - Dict{String,Any}( - "PatternName" => PatternName, - "PatternSetName" => PatternSetName, - "ResourceGroupName" => ResourceGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_log_pattern( PatternName, PatternSetName, @@ -379,16 +365,14 @@ Describes the application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The AWS account ID for the resource group owner. """ -function describe_application( +describe_application( ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "DescribeApplication", + Dict{String,Any}("ResourceGroupName" => ResourceGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DescribeApplication", - Dict{String,Any}("ResourceGroupName" => ResourceGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application( ResourceGroupName, params::AbstractDict{String}; @@ -420,18 +404,16 @@ Describes a component and lists the resources that are grouped together in a com Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The AWS account ID for the resource group owner. """ -function describe_component( +describe_component( ComponentName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "DescribeComponent", + Dict{String,Any}( + "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DescribeComponent", - Dict{String,Any}( - "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_component( ComponentName, ResourceGroupName, @@ -469,18 +451,16 @@ Describes the monitoring configuration of the component. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The AWS account ID for the resource group owner. """ -function describe_component_configuration( +describe_component_configuration( ComponentName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "DescribeComponentConfiguration", + Dict{String,Any}( + "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DescribeComponentConfiguration", - Dict{String,Any}( - "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_component_configuration( ComponentName, ResourceGroupName, @@ -520,23 +500,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RecommendationType"`: The recommended configuration type. - `"WorkloadName"`: The name of the workload. """ -function describe_component_configuration_recommendation( +describe_component_configuration_recommendation( ComponentName, ResourceGroupName, Tier; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "DescribeComponentConfigurationRecommendation", + Dict{String,Any}( + "ComponentName" => ComponentName, + "ResourceGroupName" => ResourceGroupName, + "Tier" => Tier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DescribeComponentConfigurationRecommendation", - Dict{String,Any}( - "ComponentName" => ComponentName, - "ResourceGroupName" => ResourceGroupName, - "Tier" => Tier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_component_configuration_recommendation( ComponentName, ResourceGroupName, @@ -577,23 +555,21 @@ Describe a specific log pattern from a LogPatternSet. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The AWS account ID for the resource group owner. """ -function describe_log_pattern( +describe_log_pattern( PatternName, PatternSetName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "DescribeLogPattern", + Dict{String,Any}( + "PatternName" => PatternName, + "PatternSetName" => PatternSetName, + "ResourceGroupName" => ResourceGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DescribeLogPattern", - Dict{String,Any}( - "PatternName" => PatternName, - "PatternSetName" => PatternSetName, - "ResourceGroupName" => ResourceGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_log_pattern( PatternName, PatternSetName, @@ -632,16 +608,13 @@ Describes an anomaly or error with the application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The AWS account ID for the resource group owner. """ -function describe_observation( - ObservationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_insights( +describe_observation(ObservationId; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "DescribeObservation", Dict{String,Any}("ObservationId" => ObservationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_observation( ObservationId, params::AbstractDict{String}; @@ -671,14 +644,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AccountId"`: The AWS account ID for the owner of the resource group affected by the problem. """ -function describe_problem(ProblemId; aws_config::AbstractAWSConfig=current_aws_config()) - return application_insights( +describe_problem(ProblemId; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "DescribeProblem", Dict{String,Any}("ProblemId" => ProblemId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_problem( ProblemId, params::AbstractDict{String}; @@ -707,16 +679,14 @@ Describes the anomalies or errors associated with the problem. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The AWS account ID for the resource group owner. """ -function describe_problem_observations( +describe_problem_observations( ProblemId; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "DescribeProblemObservations", + Dict{String,Any}("ProblemId" => ProblemId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DescribeProblemObservations", - Dict{String,Any}("ProblemId" => ProblemId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_problem_observations( ProblemId, params::AbstractDict{String}; @@ -747,23 +717,21 @@ Describes a workload and its configuration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The AWS account ID for the workload owner. """ -function describe_workload( +describe_workload( ComponentName, ResourceGroupName, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "DescribeWorkload", + Dict{String,Any}( + "ComponentName" => ComponentName, + "ResourceGroupName" => ResourceGroupName, + "WorkloadId" => WorkloadId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "DescribeWorkload", - Dict{String,Any}( - "ComponentName" => ComponentName, - "ResourceGroupName" => ResourceGroupName, - "WorkloadId" => WorkloadId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_workload( ComponentName, ResourceGroupName, @@ -802,11 +770,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results, make another call with the returned NextToken value. - `"NextToken"`: The token to request the next page of results. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_insights( +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "ListApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -831,16 +798,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results, make another call with the returned NextToken value. - `"NextToken"`: The token to request the next page of results. """ -function list_components( - ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_insights( +list_components(ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "ListComponents", Dict{String,Any}("ResourceGroupName" => ResourceGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_components( ResourceGroupName, params::AbstractDict{String}; @@ -887,11 +851,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceGroupName"`: Resource group to which the application belongs. - `"StartTime"`: The start time of the event. """ -function list_configuration_history(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_insights( +list_configuration_history(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "ListConfigurationHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_configuration_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -919,16 +882,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results, make another call with the returned NextToken value. - `"NextToken"`: The token to request the next page of results. """ -function list_log_pattern_sets( +list_log_pattern_sets( ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "ListLogPatternSets", + Dict{String,Any}("ResourceGroupName" => ResourceGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "ListLogPatternSets", - Dict{String,Any}("ResourceGroupName" => ResourceGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_log_pattern_sets( ResourceGroupName, params::AbstractDict{String}; @@ -963,16 +924,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to request the next page of results. - `"PatternSetName"`: The name of the log pattern set. """ -function list_log_patterns( - ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_insights( +list_log_patterns(ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "ListLogPatterns", Dict{String,Any}("ResourceGroupName" => ResourceGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_log_patterns( ResourceGroupName, params::AbstractDict{String}; @@ -1011,11 +969,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Visibility"`: Specifies whether or not you can view the problem. If not specified, visible and ignored problems are returned. """ -function list_problems(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_insights( - "ListProblems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_problems(; aws_config::AbstractAWSConfig=current_aws_config()) = application_insights( + "ListProblems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_problems( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1039,16 +995,13 @@ descriptor within a tag key. retrieve tag information for. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_insights( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1081,18 +1034,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results, make another call with the returned NextToken value. - `"NextToken"`: The token to request the next page of results. """ -function list_workloads( +list_workloads( ComponentName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "ListWorkloads", + Dict{String,Any}( + "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "ListWorkloads", - Dict{String,Any}( - "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workloads( ComponentName, ResourceGroupName, @@ -1128,23 +1079,21 @@ Remove workload from a component. - `workload_id`: The ID of the workload. """ -function remove_workload( +remove_workload( ComponentName, ResourceGroupName, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "RemoveWorkload", + Dict{String,Any}( + "ComponentName" => ComponentName, + "ResourceGroupName" => ResourceGroupName, + "WorkloadId" => WorkloadId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "RemoveWorkload", - Dict{String,Any}( - "ComponentName" => ComponentName, - "ResourceGroupName" => ResourceGroupName, - "WorkloadId" => WorkloadId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_workload( ComponentName, ResourceGroupName, @@ -1189,14 +1138,13 @@ tag values. A tag value acts as a descriptor within a tag key. characters. The maximum length of a tag value is 256 characters. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return application_insights( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1232,16 +1180,13 @@ Remove one or more tags (keys and values) from a specified application. additional tag to remove, separated by an ampersand. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_insights( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1287,16 +1232,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RemoveSNSTopic"`: Disassociates the SNS topic from the opsItem created for detected problems. """ -function update_application( - ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_insights( +update_application(ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "UpdateApplication", Dict{String,Any}("ResourceGroupName" => ResourceGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( ResourceGroupName, params::AbstractDict{String}; @@ -1329,18 +1271,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NewComponentName"`: The new name of the component. - `"ResourceList"`: The list of resource ARNs that belong to the component. """ -function update_component( +update_component( ComponentName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "UpdateComponent", + Dict{String,Any}( + "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "UpdateComponent", - Dict{String,Any}( - "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_component( ComponentName, ResourceGroupName, @@ -1388,18 +1328,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Monitor"`: Indicates whether the application component is monitored. - `"Tier"`: The tier of the application component. """ -function update_component_configuration( +update_component_configuration( ComponentName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = application_insights( + "UpdateComponentConfiguration", + Dict{String,Any}( + "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "UpdateComponentConfiguration", - Dict{String,Any}( - "ComponentName" => ComponentName, "ResourceGroupName" => ResourceGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_component_configuration( ComponentName, ResourceGroupName, @@ -1446,23 +1384,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys translates to a 500,000 rank. And a High severity pattern translates to a 250,000 rank. Rank values less than 1 or greater than 1,000,000 are reserved for AWS-provided patterns. """ -function update_log_pattern( +update_log_pattern( PatternName, PatternSetName, ResourceGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "UpdateLogPattern", + Dict{String,Any}( + "PatternName" => PatternName, + "PatternSetName" => PatternSetName, + "ResourceGroupName" => ResourceGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "UpdateLogPattern", - Dict{String,Any}( - "PatternName" => PatternName, - "PatternSetName" => PatternSetName, - "ResourceGroupName" => ResourceGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_log_pattern( PatternName, PatternSetName, @@ -1505,14 +1441,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys problem is removed from the default view, and all notifications for the problem are suspended. When VISIBLE is passed, the IGNORED action is reversed. """ -function update_problem(ProblemId; aws_config::AbstractAWSConfig=current_aws_config()) - return application_insights( +update_problem(ProblemId; aws_config::AbstractAWSConfig=current_aws_config()) = + application_insights( "UpdateProblem", Dict{String,Any}("ProblemId" => ProblemId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_problem( ProblemId, params::AbstractDict{String}; @@ -1544,23 +1479,21 @@ Adds a workload to a component. Each component can have at most five workloads. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"WorkloadId"`: The ID of the workload. """ -function update_workload( +update_workload( ComponentName, ResourceGroupName, WorkloadConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = application_insights( + "UpdateWorkload", + Dict{String,Any}( + "ComponentName" => ComponentName, + "ResourceGroupName" => ResourceGroupName, + "WorkloadConfiguration" => WorkloadConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_insights( - "UpdateWorkload", - Dict{String,Any}( - "ComponentName" => ComponentName, - "ResourceGroupName" => ResourceGroupName, - "WorkloadConfiguration" => WorkloadConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_workload( ComponentName, ResourceGroupName, diff --git a/src/services/application_signals.jl b/src/services/application_signals.jl index d7905fd32..1d98b48d1 100644 --- a/src/services/application_signals.jl +++ b/src/services/application_signals.jl @@ -9,9 +9,9 @@ using AWS.UUIDs batch_get_service_level_objective_budget_report(slo_ids, timestamp, params::Dict{String,<:Any}) Use this operation to retrieve one or more service level objective (SLO) budget reports. An -error budget is the amount of time in unhealthy periods that your service can accumulate -during an interval before your overall SLO budget health is breached and the SLO is -considered to be unmet. For example, an SLO with a threshold of 99.95% and a monthly +error budget is the amount of time or requests in an unhealthy state that your service can +accumulate during an interval before your overall SLO budget health is breached and the SLO +is considered to be unmet. For example, an SLO with a threshold of 99.95% and a monthly interval translates to an error budget of 21.9 minutes of downtime in a 30-day month. Budget reports include a health indicator, the attainment value, and remaining budget. For more information about SLO error budgets, see SLO concepts. @@ -23,17 +23,15 @@ more information about SLO error budgets, see SLO concepts. number of milliseconds since Jan 1, 1970 00:00:00 UTC. """ -function batch_get_service_level_objective_budget_report( +batch_get_service_level_objective_budget_report( SloIds, Timestamp; aws_config::AbstractAWSConfig=current_aws_config() +) = application_signals( + "POST", + "/budget-report", + Dict{String,Any}("SloIds" => SloIds, "Timestamp" => Timestamp); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_signals( - "POST", - "/budget-report", - Dict{String,Any}("SloIds" => SloIds, "Timestamp" => Timestamp); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_service_level_objective_budget_report( SloIds, Timestamp, @@ -56,8 +54,8 @@ function batch_get_service_level_objective_budget_report( end """ - create_service_level_objective(name, sli_config) - create_service_level_objective(name, sli_config, params::Dict{String,<:Any}) + create_service_level_objective(name) + create_service_level_objective(name, params::Dict{String,<:Any}) Creates a service level objective (SLO), which can help you ensure that your critical business operations are meeting customer expectations. Use SLOs to set and track specific @@ -65,67 +63,73 @@ target levels for the reliability and availability of your applications and serv use service level indicators (SLIs) to calculate whether the application is performing at the level that you want. Create an SLO to set a target for a service or operation’s availability or latency. CloudWatch measures this target frequently you can find whether it -has been breached. When you create an SLO, you set an attainment goal for it. An -attainment goal is the ratio of good periods that meet the threshold requirements to the -total periods within the interval. For example, an attainment goal of 99.9% means that -within your interval, you are targeting 99.9% of the periods to be in healthy state. After -you have created an SLO, you can retrieve error budget reports for it. An error budget is -the number of periods or amount of time that your service can accumulate during an interval -before your overall SLO budget health is breached and the SLO is considered to be unmet. -for example, an SLO with a threshold that 99.95% of requests must be completed under 2000ms -every month translates to an error budget of 21.9 minutes of downtime per month. When you -call this operation, Application Signals creates the -AWSServiceRoleForCloudWatchApplicationSignals service-linked role, if it doesn't already -exist in your account. This service- linked role has the following permissions: -xray:GetServiceGraph logs:StartQuery logs:GetQueryResults -cloudwatch:GetMetricData cloudwatch:ListMetrics tag:GetResources -autoscaling:DescribeAutoScalingGroups You can easily set SLO targets for your -applications that are discovered by Application Signals, using critical metrics such as -latency and availability. You can also set SLOs against any CloudWatch metric or math -expression that produces a time series. For more information about SLOs, see Service level -objectives (SLOs). +has been breached. The target performance quality that is defined for an SLO is the +attainment goal. You can set SLO targets for your applications that are discovered by +Application Signals, using critical metrics such as latency and availability. You can also +set SLOs against any CloudWatch metric or math expression that produces a time series. When +you create an SLO, you specify whether it is a period-based SLO or a request-based SLO. +Each type of SLO has a different way of evaluating your application's performance against +its attainment goal. A period-based SLO uses defined periods of time within a specified +total time interval. For each period of time, Application Signals determines whether the +application met its goal. The attainment rate is calculated as the number of good +periods/number of total periods. For example, for a period-based SLO, meeting an attainment +goal of 99.9% means that within your interval, your application must meet its performance +goal during at least 99.9% of the time periods. A request-based SLO doesn't use +pre-defined periods of time. Instead, the SLO measures number of good requests/number of +total requests during the interval. At any time, you can find the ratio of good requests to +total requests for the interval up to the time stamp that you specify, and measure that +ratio against the goal set in your SLO. After you have created an SLO, you can retrieve +error budget reports for it. An error budget is the amount of time or amount of requests +that your application can be non-compliant with the SLO's goal, and still have your +application meet the goal. For a period-based SLO, the error budget starts at a number +defined by the highest number of periods that can fail to meet the threshold, while still +meeting the overall goal. The remaining error budget decreases with every failed period +that is recorded. The error budget within one interval can never increase. For example, an +SLO with a threshold that 99.95% of requests must be completed under 2000ms every month +translates to an error budget of 21.9 minutes of downtime per month. For a request-based +SLO, the remaining error budget is dynamic and can increase or decrease, depending on the +ratio of good requests to total requests. For more information about SLOs, see Service +level objectives (SLOs). When you perform a CreateServiceLevelObjective operation, +Application Signals creates the AWSServiceRoleForCloudWatchApplicationSignals +service-linked role, if it doesn't already exist in your account. This service- linked role +has the following permissions: xray:GetServiceGraph logs:StartQuery +logs:GetQueryResults cloudwatch:GetMetricData cloudwatch:ListMetrics +tag:GetResources autoscaling:DescribeAutoScalingGroups # Arguments - `name`: A name for this SLO. -- `sli_config`: A structure that contains information about what service and what - performance metric that this SLO will monitor. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: An optional description for this SLO. -- `"Goal"`: A structure that contains the attributes that determine the goal of the SLO. - This includes the time period for evaluation and the attainment threshold. +- `"Goal"`: This structure contains the attributes that determine the goal of the SLO. +- `"RequestBasedSliConfig"`: If this SLO is a request-based SLO, this structure defines the + information about what performance metric this SLO will monitor. You can't specify both + RequestBasedSliConfig and SliConfig in the same operation. +- `"SliConfig"`: If this SLO is a period-based SLO, this structure defines the information + about what performance metric this SLO will monitor. You can't specify both + RequestBasedSliConfig and SliConfig in the same operation. - `"Tags"`: A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the cloudwatch:TagResource permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. """ -function create_service_level_objective( - Name, SliConfig; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_signals( +create_service_level_objective(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "POST", "/slo", - Dict{String,Any}("Name" => Name, "SliConfig" => SliConfig); + Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_service_level_objective( - Name, - SliConfig, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), + Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return application_signals( "POST", "/slo", - Dict{String,Any}( - mergewith( - _merge, Dict{String,Any}("Name" => Name, "SliConfig" => SliConfig), params - ), - ); + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Name" => Name), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -141,13 +145,10 @@ Deletes the specified service level objective. - `id`: The ARN or name of the service level objective to delete. """ -function delete_service_level_objective( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_signals( +delete_service_level_objective(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "DELETE", "/slo/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_service_level_objective( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -168,7 +169,8 @@ Returns information about a service discovered by Application Signals. # Arguments - `end_time`: The end of the time period to retrieve information about. When used in a raw - HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your + requested start time will be rounded to the nearest hour. - `key_attributes`: Use this field to specify which service you want to retrieve information for. You must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type @@ -180,21 +182,20 @@ Returns information about a service discovered by Application Signals. Environment specifies the location where this object is hosted, or what it belongs to. - `start_time`: The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + Your requested start time will be rounded to the nearest hour. """ -function get_service( +get_service( EndTime, KeyAttributes, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = application_signals( + "POST", + "/service", + Dict{String,Any}( + "EndTime" => EndTime, "KeyAttributes" => KeyAttributes, "StartTime" => StartTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_signals( - "POST", - "/service", - Dict{String,Any}( - "EndTime" => EndTime, "KeyAttributes" => KeyAttributes, "StartTime" => StartTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service( EndTime, KeyAttributes, @@ -232,11 +233,10 @@ Returns information about one SLO created in the account. find the ARNs of SLOs by using the ListServiceLevelObjectives operation. """ -function get_service_level_objective(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return application_signals( +get_service_level_objective(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "GET", "/slo/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_service_level_objective( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -256,7 +256,8 @@ services. # Arguments - `end_time`: The end of the time period to retrieve information about. When used in a raw - HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your + requested end time will be rounded to the nearest hour. - `key_attributes`: Use this field to specify which service you want to retrieve information for. You must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type @@ -268,6 +269,7 @@ services. Environment specifies the location where this object is hosted, or what it belongs to. - `start_time`: The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + Your requested start time will be rounded to the nearest hour. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -276,19 +278,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Include this value, if it was returned by the previous operation, to get the next set of service dependencies. """ -function list_service_dependencies( +list_service_dependencies( EndTime, KeyAttributes, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = application_signals( + "POST", + "/service-dependencies", + Dict{String,Any}( + "EndTime" => EndTime, "KeyAttributes" => KeyAttributes, "StartTime" => StartTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_signals( - "POST", - "/service-dependencies", - Dict{String,Any}( - "EndTime" => EndTime, "KeyAttributes" => KeyAttributes, "StartTime" => StartTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_dependencies( EndTime, KeyAttributes, @@ -325,7 +325,8 @@ are instrumented with CloudWatch RUM app monitors. # Arguments - `end_time`: The end of the time period to retrieve information about. When used in a raw - HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your + requested start time will be rounded to the nearest hour. - `key_attributes`: Use this field to specify which service you want to retrieve information for. You must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type @@ -337,6 +338,7 @@ are instrumented with CloudWatch RUM app monitors. Environment specifies the location where this object is hosted, or what it belongs to. - `start_time`: The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + Your requested start time will be rounded to the nearest hour. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -345,19 +347,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Include this value, if it was returned by the previous operation, to get the next set of service dependents. """ -function list_service_dependents( +list_service_dependents( EndTime, KeyAttributes, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = application_signals( + "POST", + "/service-dependents", + Dict{String,Any}( + "EndTime" => EndTime, "KeyAttributes" => KeyAttributes, "StartTime" => StartTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_signals( - "POST", - "/service-dependents", - Dict{String,Any}( - "EndTime" => EndTime, "KeyAttributes" => KeyAttributes, "StartTime" => StartTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_dependents( EndTime, KeyAttributes, @@ -407,11 +407,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the next set of service level objectives. - `"OperationName"`: The name of the operation that this SLO is associated with. """ -function list_service_level_objectives(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_signals( +list_service_level_objectives(; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "POST", "/slos"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_service_level_objectives( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -429,7 +428,8 @@ Signals. Only the operations that were invoked during the specified time range a # Arguments - `end_time`: The end of the time period to retrieve information about. When used in a raw - HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your + requested end time will be rounded to the nearest hour. - `key_attributes`: Use this field to specify which service you want to retrieve information for. You must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type @@ -441,6 +441,7 @@ Signals. Only the operations that were invoked during the specified time range a Environment specifies the location where this object is hosted, or what it belongs to. - `start_time`: The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + Your requested start time will be rounded to the nearest hour. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -449,19 +450,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Include this value, if it was returned by the previous operation, to get the next set of service operations. """ -function list_service_operations( +list_service_operations( EndTime, KeyAttributes, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = application_signals( + "POST", + "/service-operations", + Dict{String,Any}( + "EndTime" => EndTime, "KeyAttributes" => KeyAttributes, "StartTime" => StartTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return application_signals( - "POST", - "/service-operations", - Dict{String,Any}( - "EndTime" => EndTime, "KeyAttributes" => KeyAttributes, "StartTime" => StartTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_operations( EndTime, KeyAttributes, @@ -498,9 +497,11 @@ Services are discovered through Application Signals instrumentation. # Arguments - `end_time`: The end of the time period to retrieve information about. When used in a raw - HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your + requested start time will be rounded to the nearest hour. - `start_time`: The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 + Your requested start time will be rounded to the nearest hour. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -509,17 +510,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Include this value, if it was returned by the previous operation, to get the next set of services. """ -function list_services( - EndTime, StartTime; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_signals( +list_services(EndTime, StartTime; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "GET", "/services", Dict{String,Any}("EndTime" => EndTime, "StartTime" => StartTime); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_services( EndTime, StartTime, @@ -556,17 +554,14 @@ level objectives. Reference. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_signals( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "GET", "/tags", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -597,11 +592,9 @@ to send data to Application Signals. For more information, see Enabling Applica Signals. """ -function start_discovery(; aws_config::AbstractAWSConfig=current_aws_config()) - return application_signals( - "POST", "/start-discovery"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +start_discovery(; aws_config::AbstractAWSConfig=current_aws_config()) = application_signals( + "POST", "/start-discovery"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function start_discovery( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -638,15 +631,14 @@ resource. - `tags`: The list of key-value pairs to associate with the alarm. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return application_signals( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "POST", "/tag-resource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -683,17 +675,14 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_signals( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "POST", "/untag-resource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -720,7 +709,8 @@ end update_service_level_objective(id, params::Dict{String,<:Any}) Updates an existing service level objective (SLO). If you omit parameters, the previous -values of those parameters are retained. +values of those parameters are retained. You cannot change from a period-based SLO to a +request-based SLO, or change from a request-based SLO to a period-based SLO. # Arguments - `id`: The Amazon Resource Name (ARN) or name of the service level objective that you want @@ -731,16 +721,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: An optional description for the SLO. - `"Goal"`: A structure that contains the attributes that determine the goal of the SLO. This includes the time period for evaluation and the attainment threshold. -- `"SliConfig"`: A structure that contains information about what performance metric this - SLO will monitor. +- `"RequestBasedSliConfig"`: If this SLO is a request-based SLO, this structure defines the + information about what performance metric this SLO will monitor. You can't specify both + SliConfig and RequestBasedSliConfig in the same operation. +- `"SliConfig"`: If this SLO is a period-based SLO, this structure defines the information + about what performance metric this SLO will monitor. """ -function update_service_level_objective( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return application_signals( +update_service_level_objective(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + application_signals( "PATCH", "/slo/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_service_level_objective( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/applicationcostprofiler.jl b/src/services/applicationcostprofiler.jl index bd236af29..74daae18c 100644 --- a/src/services/applicationcostprofiler.jl +++ b/src/services/applicationcostprofiler.jl @@ -15,16 +15,13 @@ report from being generated. - `report_id`: Required. ID of the report to delete. """ -function delete_report_definition( - reportId; aws_config::AbstractAWSConfig=current_aws_config() -) - return applicationcostprofiler( +delete_report_definition(reportId; aws_config::AbstractAWSConfig=current_aws_config()) = + applicationcostprofiler( "DELETE", "/reportDefinition/$(reportId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_report_definition( reportId, params::AbstractDict{String}; @@ -49,14 +46,13 @@ Retrieves the definition of a report already configured in AWS Application Cost - `report_id`: ID of the report to retrieve. """ -function get_report_definition(reportId; aws_config::AbstractAWSConfig=current_aws_config()) - return applicationcostprofiler( +get_report_definition(reportId; aws_config::AbstractAWSConfig=current_aws_config()) = + applicationcostprofiler( "GET", "/reportDefinition/$(reportId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_report_definition( reportId, params::AbstractDict{String}; @@ -84,17 +80,15 @@ asynchronously. - `source_s3_location`: Amazon S3 location to import application usage data from. """ -function import_application_usage( +import_application_usage( sourceS3Location; aws_config::AbstractAWSConfig=current_aws_config() +) = applicationcostprofiler( + "POST", + "/importApplicationUsage", + Dict{String,Any}("sourceS3Location" => sourceS3Location); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return applicationcostprofiler( - "POST", - "/importApplicationUsage", - Dict{String,Any}("sourceS3Location" => sourceS3Location); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_application_usage( sourceS3Location, params::AbstractDict{String}; @@ -125,11 +119,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token value from a previous call to access the next page of results. """ -function list_report_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return applicationcostprofiler( +list_report_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + applicationcostprofiler( "GET", "/reportDefinition"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_report_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -158,28 +151,26 @@ Creates the report definition for a report in Application Cost Profiler. pattern for the ID. """ -function put_report_definition( +put_report_definition( destinationS3Location, format, reportDescription, reportFrequency, reportId; aws_config::AbstractAWSConfig=current_aws_config(), +) = applicationcostprofiler( + "POST", + "/reportDefinition", + Dict{String,Any}( + "destinationS3Location" => destinationS3Location, + "format" => format, + "reportDescription" => reportDescription, + "reportFrequency" => reportFrequency, + "reportId" => reportId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return applicationcostprofiler( - "POST", - "/reportDefinition", - Dict{String,Any}( - "destinationS3Location" => destinationS3Location, - "format" => format, - "reportDescription" => reportDescription, - "reportFrequency" => reportFrequency, - "reportId" => reportId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_report_definition( destinationS3Location, format, @@ -225,27 +216,25 @@ Updates existing report in AWS Application Cost Profiler. - `report_id`: Required. ID of the report to update. """ -function update_report_definition( +update_report_definition( destinationS3Location, format, reportDescription, reportFrequency, reportId; aws_config::AbstractAWSConfig=current_aws_config(), +) = applicationcostprofiler( + "PUT", + "/reportDefinition/$(reportId)", + Dict{String,Any}( + "destinationS3Location" => destinationS3Location, + "format" => format, + "reportDescription" => reportDescription, + "reportFrequency" => reportFrequency, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return applicationcostprofiler( - "PUT", - "/reportDefinition/$(reportId)", - Dict{String,Any}( - "destinationS3Location" => destinationS3Location, - "format" => format, - "reportDescription" => reportDescription, - "reportFrequency" => reportFrequency, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_report_definition( destinationS3Location, format, diff --git a/src/services/apprunner.jl b/src/services/apprunner.jl index 89366a3c4..120747c56 100644 --- a/src/services/apprunner.jl +++ b/src/services/apprunner.jl @@ -28,16 +28,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnableWWWSubdomain"`: Set to true to associate the subdomain www.DomainName with the App Runner service in addition to the base domain. Default: true """ -function associate_custom_domain( +associate_custom_domain( DomainName, ServiceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "AssociateCustomDomain", + Dict{String,Any}("DomainName" => DomainName, "ServiceArn" => ServiceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "AssociateCustomDomain", - Dict{String,Any}("DomainName" => DomainName, "ServiceArn" => ServiceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_custom_domain( DomainName, ServiceArn, @@ -107,16 +105,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair. """ -function create_auto_scaling_configuration( +create_auto_scaling_configuration( AutoScalingConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "CreateAutoScalingConfiguration", + Dict{String,Any}("AutoScalingConfigurationName" => AutoScalingConfigurationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "CreateAutoScalingConfiguration", - Dict{String,Any}("AutoScalingConfigurationName" => AutoScalingConfigurationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_auto_scaling_configuration( AutoScalingConfigurationName, params::AbstractDict{String}; @@ -158,18 +154,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of metadata items that you can associate with your connection resource. A tag is a key-value pair. """ -function create_connection( +create_connection( ConnectionName, ProviderType; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "CreateConnection", + Dict{String,Any}("ConnectionName" => ConnectionName, "ProviderType" => ProviderType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "CreateConnection", - Dict{String,Any}( - "ConnectionName" => ConnectionName, "ProviderType" => ProviderType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connection( ConnectionName, ProviderType, @@ -227,18 +219,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TraceConfiguration"`: The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing. """ -function create_observability_configuration( +create_observability_configuration( ObservabilityConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "CreateObservabilityConfiguration", + Dict{String,Any}("ObservabilityConfigurationName" => ObservabilityConfigurationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "CreateObservabilityConfiguration", - Dict{String,Any}( - "ObservabilityConfigurationName" => ObservabilityConfigurationName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_observability_configuration( ObservabilityConfigurationName, params::AbstractDict{String}; @@ -298,18 +286,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An optional list of metadata items that you can associate with the App Runner service resource. A tag is a key-value pair. """ -function create_service( +create_service( ServiceName, SourceConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "CreateService", + Dict{String,Any}( + "ServiceName" => ServiceName, "SourceConfiguration" => SourceConfiguration + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "CreateService", - Dict{String,Any}( - "ServiceName" => ServiceName, "SourceConfiguration" => SourceConfiguration - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service( ServiceName, SourceConfiguration, @@ -357,16 +343,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair. """ -function create_vpc_connector( +create_vpc_connector( Subnets, VpcConnectorName; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "CreateVpcConnector", + Dict{String,Any}("Subnets" => Subnets, "VpcConnectorName" => VpcConnectorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "CreateVpcConnector", - Dict{String,Any}("Subnets" => Subnets, "VpcConnectorName" => VpcConnectorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_connector( Subnets, VpcConnectorName, @@ -411,23 +395,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair. """ -function create_vpc_ingress_connection( +create_vpc_ingress_connection( IngressVpcConfiguration, ServiceArn, VpcIngressConnectionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = apprunner( + "CreateVpcIngressConnection", + Dict{String,Any}( + "IngressVpcConfiguration" => IngressVpcConfiguration, + "ServiceArn" => ServiceArn, + "VpcIngressConnectionName" => VpcIngressConnectionName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "CreateVpcIngressConnection", - Dict{String,Any}( - "IngressVpcConfiguration" => IngressVpcConfiguration, - "ServiceArn" => ServiceArn, - "VpcIngressConnectionName" => VpcIngressConnectionName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_ingress_connection( IngressVpcConfiguration, ServiceArn, @@ -474,16 +456,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AutoScalingConfigurationArn parameter value. When DeleteAllRevisions is set to true, the only valid value for the Amazon Resource Name (ARN) is a partial ARN ending with: .../name. """ -function delete_auto_scaling_configuration( +delete_auto_scaling_configuration( AutoScalingConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "DeleteAutoScalingConfiguration", + Dict{String,Any}("AutoScalingConfigurationArn" => AutoScalingConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "DeleteAutoScalingConfiguration", - Dict{String,Any}("AutoScalingConfigurationArn" => AutoScalingConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_auto_scaling_configuration( AutoScalingConfigurationArn, params::AbstractDict{String}; @@ -517,16 +497,13 @@ services that use this connection. If there are any, the DeleteConnection action want to delete. """ -function delete_connection( - ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return apprunner( +delete_connection(ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "DeleteConnection", Dict{String,Any}("ConnectionArn" => ConnectionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connection( ConnectionArn, params::AbstractDict{String}; @@ -557,16 +534,14 @@ or more App Runner services. a revision isn't specified, the latest active revision is deleted. """ -function delete_observability_configuration( +delete_observability_configuration( ObservabilityConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "DeleteObservabilityConfiguration", + Dict{String,Any}("ObservabilityConfigurationArn" => ObservabilityConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "DeleteObservabilityConfiguration", - Dict{String,Any}("ObservabilityConfigurationArn" => ObservabilityConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_observability_configuration( ObservabilityConfigurationArn, params::AbstractDict{String}; @@ -602,14 +577,12 @@ the service you want to delete. delete. """ -function delete_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( - "DeleteService", - Dict{String,Any}("ServiceArn" => ServiceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) = apprunner( + "DeleteService", + Dict{String,Any}("ServiceArn" => ServiceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_service( ServiceArn, params::AbstractDict{String}; @@ -637,16 +610,13 @@ one or more App Runner services. you want to delete. The ARN must be a full VPC connector ARN. """ -function delete_vpc_connector( - VpcConnectorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return apprunner( +delete_vpc_connector(VpcConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "DeleteVpcConnector", Dict{String,Any}("VpcConnectorArn" => VpcConnectorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpc_connector( VpcConnectorArn, params::AbstractDict{String}; @@ -677,16 +647,14 @@ service. The VPC Ingress Connection must be in one of the following states to be Ingress Connection that you want to delete. """ -function delete_vpc_ingress_connection( +delete_vpc_ingress_connection( VpcIngressConnectionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "DeleteVpcIngressConnection", + Dict{String,Any}("VpcIngressConnectionArn" => VpcIngressConnectionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "DeleteVpcIngressConnection", - Dict{String,Any}("VpcIngressConnectionArn" => VpcIngressConnectionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpc_ingress_connection( VpcIngressConnectionArn, params::AbstractDict{String}; @@ -719,16 +687,14 @@ Return a full description of an App Runner automatic scaling configuration resou a revision isn't specified, the latest active revision is described. """ -function describe_auto_scaling_configuration( +describe_auto_scaling_configuration( AutoScalingConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "DescribeAutoScalingConfiguration", + Dict{String,Any}("AutoScalingConfigurationArn" => AutoScalingConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "DescribeAutoScalingConfiguration", - Dict{String,Any}("AutoScalingConfigurationArn" => AutoScalingConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_auto_scaling_configuration( AutoScalingConfigurationArn, params::AbstractDict{String}; @@ -770,16 +736,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the ones that are specified in the initial request. If you don't specify NextToken, the request retrieves the first result page. """ -function describe_custom_domains( - ServiceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return apprunner( +describe_custom_domains(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "DescribeCustomDomains", Dict{String,Any}("ServiceArn" => ServiceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_custom_domains( ServiceArn, params::AbstractDict{String}; @@ -808,16 +771,14 @@ Return a full description of an App Runner observability configuration resource. .../name/revision . If a revision isn't specified, the latest active revision is described. """ -function describe_observability_configuration( +describe_observability_configuration( ObservabilityConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "DescribeObservabilityConfiguration", + Dict{String,Any}("ObservabilityConfigurationArn" => ObservabilityConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "DescribeObservabilityConfiguration", - Dict{String,Any}("ObservabilityConfigurationArn" => ObservabilityConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_observability_configuration( ObservabilityConfigurationArn, params::AbstractDict{String}; @@ -850,14 +811,13 @@ Return a full description of an App Runner service. description for. """ -function describe_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( +describe_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "DescribeService", Dict{String,Any}("ServiceArn" => ServiceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_service( ServiceArn, params::AbstractDict{String}; @@ -884,16 +844,14 @@ Return a description of an App Runner VPC connector resource. you want a description for. The ARN must be a full VPC connector ARN. """ -function describe_vpc_connector( +describe_vpc_connector( VpcConnectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "DescribeVpcConnector", + Dict{String,Any}("VpcConnectorArn" => VpcConnectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "DescribeVpcConnector", - Dict{String,Any}("VpcConnectorArn" => VpcConnectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpc_connector( VpcConnectorArn, params::AbstractDict{String}; @@ -922,16 +880,14 @@ Return a full description of an App Runner VPC Ingress Connection resource. Ingress Connection that you want a description for. """ -function describe_vpc_ingress_connection( +describe_vpc_ingress_connection( VpcIngressConnectionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "DescribeVpcIngressConnection", + Dict{String,Any}("VpcIngressConnectionArn" => VpcIngressConnectionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "DescribeVpcIngressConnection", - Dict{String,Any}("VpcIngressConnectionArn" => VpcIngressConnectionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpc_ingress_connection( VpcIngressConnectionArn, params::AbstractDict{String}; @@ -966,16 +922,14 @@ certificate deletion for 30 days after a domain is disassociated from your servi disassociate a custom domain name from. """ -function disassociate_custom_domain( +disassociate_custom_domain( DomainName, ServiceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "DisassociateCustomDomain", + Dict{String,Any}("DomainName" => DomainName, "ServiceArn" => ServiceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "DisassociateCustomDomain", - Dict{String,Any}("DomainName" => DomainName, "ServiceArn" => ServiceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_custom_domain( DomainName, ServiceArn, @@ -1023,15 +977,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the ones that are specified in the initial request. If you don't specify NextToken, the request retrieves the first result page. """ -function list_auto_scaling_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return apprunner( +list_auto_scaling_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "ListAutoScalingConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_auto_scaling_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1062,11 +1013,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ones specified in the initial request. If you don't specify NextToken, the request retrieves the first result page. """ -function list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( - "ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner("ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1102,15 +1050,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration that you want to list. If specified, App Runner lists revisions that share this name. If not specified, App Runner returns revisions of all active configurations. """ -function list_observability_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return apprunner( +list_observability_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "ListObservabilityConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_observability_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1144,14 +1089,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the ones specified in the initial request. If you don't specify NextToken, the request retrieves the first result page. """ -function list_operations(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( - "ListOperations", - Dict{String,Any}("ServiceArn" => ServiceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_operations(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) = apprunner( + "ListOperations", + Dict{String,Any}("ServiceArn" => ServiceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_operations( ServiceArn, params::AbstractDict{String}; @@ -1183,9 +1126,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ones specified in the initial request. If you don't specify NextToken, the request retrieves the first result page. """ -function list_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner("ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner("ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1216,16 +1158,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the ones specified in the initial request. If you don't specify NextToken, the request retrieves the first result page. """ -function list_services_for_auto_scaling_configuration( +list_services_for_auto_scaling_configuration( AutoScalingConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "ListServicesForAutoScalingConfiguration", + Dict{String,Any}("AutoScalingConfigurationArn" => AutoScalingConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "ListServicesForAutoScalingConfiguration", - Dict{String,Any}("AutoScalingConfigurationArn" => AutoScalingConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_services_for_auto_scaling_configuration( AutoScalingConfigurationArn, params::AbstractDict{String}; @@ -1259,16 +1199,13 @@ of tag key-value pairs. requested for. It must be the ARN of an App Runner resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return apprunner( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1300,11 +1237,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the ones that are specified in the initial request. If you don't specify NextToken, the request retrieves the first result page. """ -function list_vpc_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( - "ListVpcConnectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_vpc_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner("ListVpcConnectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_vpc_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1331,11 +1265,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the ones that are specified in the initial request. If you don't specify NextToken, the request retrieves the first result page. """ -function list_vpc_ingress_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( +list_vpc_ingress_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "ListVpcIngressConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_vpc_ingress_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1361,14 +1294,12 @@ ListOperations call to track the operation's progress. pause. """ -function pause_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( - "PauseService", - Dict{String,Any}("ServiceArn" => ServiceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +pause_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) = apprunner( + "PauseService", + Dict{String,Any}("ServiceArn" => ServiceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function pause_service( ServiceArn, params::AbstractDict{String}; @@ -1397,14 +1328,12 @@ OperationId and the ListOperations call to track the operation's progress. resume. """ -function resume_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( - "ResumeService", - Dict{String,Any}("ServiceArn" => ServiceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +resume_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) = apprunner( + "ResumeService", + Dict{String,Any}("ServiceArn" => ServiceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function resume_service( ServiceArn, params::AbstractDict{String}; @@ -1437,14 +1366,13 @@ ListOperations call to track the operation's progress. manually deploy to. """ -function start_deployment(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( +start_deployment(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "StartDeployment", Dict{String,Any}("ServiceArn" => ServiceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_deployment( ServiceArn, params::AbstractDict{String}; @@ -1474,14 +1402,13 @@ Add tags to, or update the tag values of, an App Runner resource. A tag is a key the value of the tag is updated. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1514,16 +1441,13 @@ Remove tags from an App Runner resource. - `tag_keys`: A list of tag keys that you want to remove. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return apprunner( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + apprunner( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1559,16 +1483,14 @@ configuration will be set to non-default automatically. default. """ -function update_default_auto_scaling_configuration( +update_default_auto_scaling_configuration( AutoScalingConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = apprunner( + "UpdateDefaultAutoScalingConfiguration", + Dict{String,Any}("AutoScalingConfigurationArn" => AutoScalingConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "UpdateDefaultAutoScalingConfiguration", - Dict{String,Any}("AutoScalingConfigurationArn" => AutoScalingConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_default_auto_scaling_configuration( AutoScalingConfigurationArn, params::AbstractDict{String}; @@ -1626,14 +1548,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ImageRepository. To update the source configuration, set the values to members of the structure that you include. """ -function update_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return apprunner( - "UpdateService", - Dict{String,Any}("ServiceArn" => ServiceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_service(ServiceArn; aws_config::AbstractAWSConfig=current_aws_config()) = apprunner( + "UpdateService", + Dict{String,Any}("ServiceArn" => ServiceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_service( ServiceArn, params::AbstractDict{String}; @@ -1665,21 +1585,19 @@ FAILED_UPDATE Ingress Connection resource that you want to update. """ -function update_vpc_ingress_connection( +update_vpc_ingress_connection( IngressVpcConfiguration, VpcIngressConnectionArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = apprunner( + "UpdateVpcIngressConnection", + Dict{String,Any}( + "IngressVpcConfiguration" => IngressVpcConfiguration, + "VpcIngressConnectionArn" => VpcIngressConnectionArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apprunner( - "UpdateVpcIngressConnection", - Dict{String,Any}( - "IngressVpcConfiguration" => IngressVpcConfiguration, - "VpcIngressConnectionArn" => VpcIngressConnectionArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_vpc_ingress_connection( IngressVpcConfiguration, VpcIngressConnectionArn, diff --git a/src/services/appstream.jl b/src/services/appstream.jl index 956fd2570..bc405558c 100644 --- a/src/services/appstream.jl +++ b/src/services/appstream.jl @@ -15,18 +15,16 @@ Associates the specified app block builder with the specified app block. - `app_block_builder_name`: The name of the app block builder. """ -function associate_app_block_builder_app_block( +associate_app_block_builder_app_block( AppBlockArn, AppBlockBuilderName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "AssociateAppBlockBuilderAppBlock", + Dict{String,Any}( + "AppBlockArn" => AppBlockArn, "AppBlockBuilderName" => AppBlockBuilderName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "AssociateAppBlockBuilderAppBlock", - Dict{String,Any}( - "AppBlockArn" => AppBlockArn, "AppBlockBuilderName" => AppBlockBuilderName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_app_block_builder_app_block( AppBlockArn, AppBlockBuilderName, @@ -62,16 +60,14 @@ Elastic fleets. - `fleet_name`: The name of the fleet. """ -function associate_application_fleet( +associate_application_fleet( ApplicationArn, FleetName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "AssociateApplicationFleet", + Dict{String,Any}("ApplicationArn" => ApplicationArn, "FleetName" => FleetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "AssociateApplicationFleet", - Dict{String,Any}("ApplicationArn" => ApplicationArn, "FleetName" => FleetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_application_fleet( ApplicationArn, FleetName, @@ -106,23 +102,21 @@ Associates an application to entitle. - `stack_name`: The name of the stack. """ -function associate_application_to_entitlement( +associate_application_to_entitlement( ApplicationIdentifier, EntitlementName, StackName; aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "AssociateApplicationToEntitlement", + Dict{String,Any}( + "ApplicationIdentifier" => ApplicationIdentifier, + "EntitlementName" => EntitlementName, + "StackName" => StackName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "AssociateApplicationToEntitlement", - Dict{String,Any}( - "ApplicationIdentifier" => ApplicationIdentifier, - "EntitlementName" => EntitlementName, - "StackName" => StackName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_application_to_entitlement( ApplicationIdentifier, EntitlementName, @@ -159,16 +153,13 @@ Associates the specified fleet with the specified stack. - `stack_name`: The name of the stack. """ -function associate_fleet( - FleetName, StackName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +associate_fleet(FleetName, StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "AssociateFleet", Dict{String,Any}("FleetName" => FleetName, "StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_fleet( FleetName, StackName, @@ -200,16 +191,14 @@ assigned to stacks with fleets that are joined to an Active Directory domain. - `user_stack_associations`: The list of UserStackAssociation objects. """ -function batch_associate_user_stack( +batch_associate_user_stack( UserStackAssociations; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "BatchAssociateUserStack", + Dict{String,Any}("UserStackAssociations" => UserStackAssociations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "BatchAssociateUserStack", - Dict{String,Any}("UserStackAssociations" => UserStackAssociations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_user_stack( UserStackAssociations, params::AbstractDict{String}; @@ -239,16 +228,14 @@ Disassociates the specified users from the specified stacks. - `user_stack_associations`: The list of UserStackAssociation objects. """ -function batch_disassociate_user_stack( +batch_disassociate_user_stack( UserStackAssociations; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "BatchDisassociateUserStack", + Dict{String,Any}("UserStackAssociations" => UserStackAssociations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "BatchDisassociateUserStack", - Dict{String,Any}("UserStackAssociations" => UserStackAssociations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_user_stack( UserStackAssociations, params::AbstractDict{String}; @@ -287,23 +274,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DestinationImageDescription"`: The description that the image will have when it is copied to the destination. """ -function copy_image( +copy_image( DestinationImageName, DestinationRegion, SourceImageName; aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "CopyImage", + Dict{String,Any}( + "DestinationImageName" => DestinationImageName, + "DestinationRegion" => DestinationRegion, + "SourceImageName" => SourceImageName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CopyImage", - Dict{String,Any}( - "DestinationImageName" => DestinationImageName, - "DestinationRegion" => DestinationRegion, - "SourceImageName" => SourceImageName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_image( DestinationImageName, DestinationRegion, @@ -355,16 +340,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for the CUSTOM PackagingType. - `"Tags"`: The tags assigned to the app block. """ -function create_app_block( +create_app_block( Name, SourceS3Location; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "CreateAppBlock", + Dict{String,Any}("Name" => Name, "SourceS3Location" => SourceS3Location); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateAppBlock", - Dict{String,Any}("Name" => Name, "SourceS3Location" => SourceS3Location); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_block( Name, SourceS3Location, @@ -423,25 +406,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the following special characters: _ . : / = + - @ For more information, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide. """ -function create_app_block_builder( +create_app_block_builder( InstanceType, Name, Platform, VpcConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "CreateAppBlockBuilder", + Dict{String,Any}( + "InstanceType" => InstanceType, + "Name" => Name, + "Platform" => Platform, + "VpcConfig" => VpcConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateAppBlockBuilder", - Dict{String,Any}( - "InstanceType" => InstanceType, - "Name" => Name, - "Platform" => Platform, - "VpcConfig" => VpcConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_block_builder( InstanceType, Name, @@ -483,16 +464,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Validity"`: The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 3600 seconds. """ -function create_app_block_builder_streaming_url( +create_app_block_builder_streaming_url( AppBlockBuilderName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "CreateAppBlockBuilderStreamingURL", + Dict{String,Any}("AppBlockBuilderName" => AppBlockBuilderName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateAppBlockBuilderStreamingURL", - Dict{String,Any}("AppBlockBuilderName" => AppBlockBuilderName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_block_builder_streaming_url( AppBlockBuilderName, params::AbstractDict{String}; @@ -543,7 +522,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags assigned to the application. - `"WorkingDirectory"`: The working directory of the application. """ -function create_application( +create_application( AppBlockArn, IconS3Location, InstanceFamilies, @@ -551,21 +530,19 @@ function create_application( Name, Platforms; aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "CreateApplication", + Dict{String,Any}( + "AppBlockArn" => AppBlockArn, + "IconS3Location" => IconS3Location, + "InstanceFamilies" => InstanceFamilies, + "LaunchPath" => LaunchPath, + "Name" => Name, + "Platforms" => Platforms, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateApplication", - Dict{String,Any}( - "AppBlockArn" => AppBlockArn, - "IconS3Location" => IconS3Location, - "InstanceFamilies" => InstanceFamilies, - "LaunchPath" => LaunchPath, - "Name" => Name, - "Platforms" => Platforms, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( AppBlockArn, IconS3Location, @@ -624,21 +601,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServiceAccountCredentials"`: The credentials for the service account used by the fleet or image builder to connect to the directory. """ -function create_directory_config( +create_directory_config( DirectoryName, OrganizationalUnitDistinguishedNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "CreateDirectoryConfig", + Dict{String,Any}( + "DirectoryName" => DirectoryName, + "OrganizationalUnitDistinguishedNames" => OrganizationalUnitDistinguishedNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateDirectoryConfig", - Dict{String,Any}( - "DirectoryName" => DirectoryName, - "OrganizationalUnitDistinguishedNames" => OrganizationalUnitDistinguishedNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_directory_config( DirectoryName, OrganizationalUnitDistinguishedNames, @@ -683,25 +658,23 @@ applications managed by a dynamic app provider using the Dynamic Application Fra Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The description of the entitlement. """ -function create_entitlement( +create_entitlement( AppVisibility, Attributes, Name, StackName; aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "CreateEntitlement", + Dict{String,Any}( + "AppVisibility" => AppVisibility, + "Attributes" => Attributes, + "Name" => Name, + "StackName" => StackName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateEntitlement", - Dict{String,Any}( - "AppVisibility" => AppVisibility, - "Attributes" => Attributes, - "Name" => Name, - "StackName" => StackName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_entitlement( AppVisibility, Attributes, @@ -749,7 +722,9 @@ applications and desktops. stream.graphics-design.2xlarge stream.graphics-design.4xlarge stream.graphics-desktop.2xlarge stream.graphics.g4dn.xlarge stream.graphics.g4dn.2xlarge stream.graphics.g4dn.4xlarge stream.graphics.g4dn.8xlarge - stream.graphics.g4dn.12xlarge stream.graphics.g4dn.16xlarge + stream.graphics.g4dn.12xlarge stream.graphics.g4dn.16xlarge stream.graphics.g5.xlarge + stream.graphics.g5.2xlarge stream.graphics.g5.4xlarge stream.graphics.g5.8xlarge + stream.graphics.g5.12xlarge stream.graphics.g5.16xlarge stream.graphics.g5.24xlarge stream.graphics-pro.4xlarge stream.graphics-pro.8xlarge stream.graphics-pro.16xlarge The following instance types are available for Elastic fleets: stream.standard.small stream.standard.medium stream.standard.large stream.standard.xlarge @@ -765,7 +740,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming - instance. Specify a value between 60 and 360000. + instance. Specify a value between 60 and 36000. - `"DisplayName"`: The fleet name to display. - `"DomainJoinInfo"`: The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. This is not allowed for Elastic fleets. @@ -793,13 +768,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in IdleDisconnectTimeoutInSeconds elapses, they are disconnected. To prevent users from being disconnected due to inactivity, specify a value of 0. - Otherwise, specify a value between 60 and 3600. The default value is 0. If you enable this - feature, we recommend that you specify a value that corresponds exactly to a whole number - of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to - the nearest minute. For example, if you specify a value of 70, users are disconnected after - 1 minute of inactivity. If you specify a value that is at the midpoint between two - different minutes, the value is rounded up. For example, if you specify a value of 90, - users are disconnected after 2 minutes of inactivity. + Otherwise, specify a value between 60 and 36000. The default value is 0. If you enable + this feature, we recommend that you specify a value that corresponds exactly to a whole + number of minutes (for example, 60, 120, and 180). If you don't do this, the value is + rounded to the nearest minute. For example, if you specify a value of 70, users are + disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint + between two different minutes, the value is rounded up. For example, if you specify a value + of 90, users are disconnected after 2 minutes of inactivity. - `"ImageArn"`: The ARN of the public, private, or shared image to use. - `"ImageName"`: The name of the image used to create the fleet. - `"MaxConcurrentSessions"`: The maximum concurrent sessions of the Elastic fleet. This is @@ -832,16 +807,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones. """ -function create_fleet( - InstanceType, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +create_fleet(InstanceType, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "CreateFleet", Dict{String,Any}("InstanceType" => InstanceType, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_fleet( InstanceType, Name, @@ -915,16 +887,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcConfig"`: The VPC configuration for the image builder. You can specify only one subnet. """ -function create_image_builder( +create_image_builder( InstanceType, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "CreateImageBuilder", + Dict{String,Any}("InstanceType" => InstanceType, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateImageBuilder", - Dict{String,Any}("InstanceType" => InstanceType, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_image_builder( InstanceType, Name, @@ -959,16 +929,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Validity"`: The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 3600 seconds. """ -function create_image_builder_streaming_url( +create_image_builder_streaming_url( Name; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "CreateImageBuilderStreamingURL", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateImageBuilderStreamingURL", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_image_builder_streaming_url( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1017,14 +985,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserSettings"`: The actions that are enabled or disabled for users during their streaming sessions. By default, these actions are enabled. """ -function create_stack(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "CreateStack", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_stack(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "CreateStack", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_stack( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1059,32 +1025,105 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Validity"`: The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 60 seconds. """ -function create_streaming_url( +create_streaming_url( FleetName, StackName, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "CreateStreamingURL", + Dict{String,Any}( + "FleetName" => FleetName, "StackName" => StackName, "UserId" => UserId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_streaming_url( + FleetName, + StackName, + UserId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return appstream( "CreateStreamingURL", Dict{String,Any}( - "FleetName" => FleetName, "StackName" => StackName, "UserId" => UserId + mergewith( + _merge, + Dict{String,Any}( + "FleetName" => FleetName, "StackName" => StackName, "UserId" => UserId + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_streaming_url( - FleetName, + +""" + create_theme_for_stack(favicon_s3_location, organization_logo_s3_location, stack_name, theme_styling, title_text) + create_theme_for_stack(favicon_s3_location, organization_logo_s3_location, stack_name, theme_styling, title_text, params::Dict{String,<:Any}) + +Creates custom branding that customizes the appearance of the streaming application catalog +page. + +# Arguments +- `favicon_s3_location`: The S3 location of the favicon. The favicon enables users to + recognize their application streaming site in a browser full of tabs or bookmarks. It is + displayed at the top of the browser tab for the application streaming site during users' + streaming sessions. +- `organization_logo_s3_location`: The organization logo that appears on the streaming + application catalog page. +- `stack_name`: The name of the stack for the theme. +- `theme_styling`: The color theme that is applied to website links, text, and buttons. + These colors are also applied as accents in the background for the streaming application + catalog page. +- `title_text`: The title that is displayed at the top of the browser tab during users' + application streaming sessions. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"FooterLinks"`: The links that are displayed in the footer of the streaming application + catalog page. These links are helpful resources for users, such as the organization's IT + support and product marketing sites. +""" +create_theme_for_stack( + FaviconS3Location, + OrganizationLogoS3Location, StackName, - UserId, + ThemeStyling, + TitleText; + aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "CreateThemeForStack", + Dict{String,Any}( + "FaviconS3Location" => FaviconS3Location, + "OrganizationLogoS3Location" => OrganizationLogoS3Location, + "StackName" => StackName, + "ThemeStyling" => ThemeStyling, + "TitleText" => TitleText, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_theme_for_stack( + FaviconS3Location, + OrganizationLogoS3Location, + StackName, + ThemeStyling, + TitleText, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return appstream( - "CreateStreamingURL", + "CreateThemeForStack", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "FleetName" => FleetName, "StackName" => StackName, "UserId" => UserId + "FaviconS3Location" => FaviconS3Location, + "OrganizationLogoS3Location" => OrganizationLogoS3Location, + "StackName" => StackName, + "ThemeStyling" => ThemeStyling, + "TitleText" => TitleText, ), params, ), @@ -1124,18 +1163,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value, the value is set to an empty string. For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide. """ -function create_updated_image( +create_updated_image( existingImageName, newImageName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "CreateUpdatedImage", + Dict{String,Any}( + "existingImageName" => existingImageName, "newImageName" => newImageName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateUpdatedImage", - Dict{String,Any}( - "existingImageName" => existingImageName, "newImageName" => newImageName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_updated_image( existingImageName, newImageName, @@ -1165,15 +1202,12 @@ end Creates a usage report subscription. Usage reports are generated daily. """ -function create_usage_report_subscription(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +create_usage_report_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "CreateUsageReportSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_usage_report_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1209,18 +1243,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys days. If users don’t set their passwords within 7 days, you must send them a new welcome email. """ -function create_user( +create_user( AuthenticationType, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "CreateUser", + Dict{String,Any}("AuthenticationType" => AuthenticationType, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "CreateUser", - Dict{String,Any}( - "AuthenticationType" => AuthenticationType, "UserName" => UserName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user( AuthenticationType, UserName, @@ -1253,14 +1283,12 @@ Deletes an app block. - `name`: The name of the app block. """ -function delete_app_block(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DeleteAppBlock", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_app_block(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "DeleteAppBlock", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_app_block( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1283,14 +1311,13 @@ association with an app block. - `name`: The name of the app block builder. """ -function delete_app_block_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( +delete_app_block_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DeleteAppBlockBuilder", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app_block_builder( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1312,14 +1339,12 @@ Deletes an application. - `name`: The name of the application. """ -function delete_application(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DeleteApplication", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_application(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "DeleteApplication", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_application( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1342,16 +1367,13 @@ information required to join streaming instances to an Active Directory domain. - `directory_name`: The name of the directory configuration. """ -function delete_directory_config( - DirectoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +delete_directory_config(DirectoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DeleteDirectoryConfig", Dict{String,Any}("DirectoryName" => DirectoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_directory_config( DirectoryName, params::AbstractDict{String}; @@ -1378,16 +1400,13 @@ Deletes the specified entitlement. - `stack_name`: The name of the stack with which the entitlement is associated. """ -function delete_entitlement( - Name, StackName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +delete_entitlement(Name, StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DeleteEntitlement", Dict{String,Any}("Name" => Name, "StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_entitlement( Name, StackName, @@ -1416,14 +1435,12 @@ Deletes the specified fleet. - `name`: The name of the fleet. """ -function delete_fleet(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DeleteFleet", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fleet(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "DeleteFleet", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fleet( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1446,14 +1463,12 @@ an image, you cannot provision new capacity using the image. - `name`: The name of the image. """ -function delete_image(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DeleteImage", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_image(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "DeleteImage", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_image( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1475,14 +1490,12 @@ Deletes the specified image builder and releases the capacity. - `name`: The name of the image builder. """ -function delete_image_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DeleteImageBuilder", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_image_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "DeleteImageBuilder", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_image_builder( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1508,16 +1521,14 @@ image. permissions. """ -function delete_image_permissions( +delete_image_permissions( Name, SharedAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DeleteImagePermissions", + Dict{String,Any}("Name" => Name, "SharedAccountId" => SharedAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DeleteImagePermissions", - Dict{String,Any}("Name" => Name, "SharedAccountId" => SharedAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_image_permissions( Name, SharedAccountId, @@ -1550,20 +1561,51 @@ made for application streaming sessions for the stack are released. - `name`: The name of the stack. """ -function delete_stack(Name; aws_config::AbstractAWSConfig=current_aws_config()) +delete_stack(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "DeleteStack", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_stack( + Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return appstream( "DeleteStack", - Dict{String,Any}("Name" => Name); + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Name" => Name), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function delete_stack( - Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() + +""" + delete_theme_for_stack(stack_name) + delete_theme_for_stack(stack_name, params::Dict{String,<:Any}) + +Deletes custom branding that customizes the appearance of the streaming application catalog +page. + +# Arguments +- `stack_name`: The name of the stack for the theme. + +""" +delete_theme_for_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( + "DeleteThemeForStack", + Dict{String,Any}("StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function delete_theme_for_stack( + StackName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return appstream( - "DeleteStack", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Name" => Name), params)); + "DeleteThemeForStack", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("StackName" => StackName), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -1576,15 +1618,12 @@ end Disables usage report generation. """ -function delete_usage_report_subscription(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +delete_usage_report_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DeleteUsageReportSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_usage_report_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1607,18 +1646,14 @@ Deletes a user from the user pool. - `user_name`: The email address of the user. Users' email addresses are case-sensitive. """ -function delete_user( +delete_user( AuthenticationType, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DeleteUser", + Dict{String,Any}("AuthenticationType" => AuthenticationType, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DeleteUser", - Dict{String,Any}( - "AuthenticationType" => AuthenticationType, "UserName" => UserName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user( AuthenticationType, UserName, @@ -1655,15 +1690,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function describe_app_block_builder_app_block_associations(; +describe_app_block_builder_app_block_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DescribeAppBlockBuilderAppBlockAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DescribeAppBlockBuilderAppBlockAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_block_builder_app_block_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1688,11 +1721,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function describe_app_block_builders(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( +describe_app_block_builders(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DescribeAppBlockBuilders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_app_block_builders( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1717,11 +1749,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function describe_app_blocks(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DescribeAppBlocks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_app_blocks(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream("DescribeAppBlocks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_app_blocks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1745,15 +1774,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function describe_application_fleet_associations(; +describe_application_fleet_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DescribeApplicationFleetAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DescribeApplicationFleetAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application_fleet_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1778,11 +1805,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function describe_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DescribeApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "DescribeApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1812,11 +1837,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function describe_directory_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( +describe_directory_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DescribeDirectoryConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_directory_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1844,16 +1868,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function describe_entitlements( - StackName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +describe_entitlements(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DescribeEntitlements", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_entitlements( StackName, params::AbstractDict{String}; @@ -1882,11 +1903,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function describe_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DescribeFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream("DescribeFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1909,11 +1927,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function describe_image_builders(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DescribeImageBuilders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_image_builders(; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "DescribeImageBuilders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_image_builders( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1944,16 +1960,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SharedAwsAccountIds"`: The 12-digit identifier of one or more AWS accounts with which the image is shared. """ -function describe_image_permissions( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +describe_image_permissions(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DescribeImagePermissions", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_image_permissions( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1981,11 +1994,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If this value is null, it retrieves the first page. - `"Type"`: The type of image (public, private, or shared) to describe. """ -function describe_images(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DescribeImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_images(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream("DescribeImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2020,16 +2030,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserId"`: The user identifier (ID). If you specify a user ID, you must also specify the authentication type. """ -function describe_sessions( +describe_sessions( FleetName, StackName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DescribeSessions", + Dict{String,Any}("FleetName" => FleetName, "StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DescribeSessions", - Dict{String,Any}("FleetName" => FleetName, "StackName" => StackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_sessions( FleetName, StackName, @@ -2063,11 +2071,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function describe_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "DescribeStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream("DescribeStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_stacks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2076,6 +2081,39 @@ function describe_stacks( ) end +""" + describe_theme_for_stack(stack_name) + describe_theme_for_stack(stack_name, params::Dict{String,<:Any}) + +Retrieves a list that describes the theme for a specified stack. A theme is custom branding +that customizes the appearance of the streaming application catalog page. + +# Arguments +- `stack_name`: The name of the stack for the theme. + +""" +describe_theme_for_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( + "DescribeThemeForStack", + Dict{String,Any}("StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function describe_theme_for_stack( + StackName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return appstream( + "DescribeThemeForStack", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("StackName" => StackName), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ describe_usage_report_subscriptions() describe_usage_report_subscriptions(params::Dict{String,<:Any}) @@ -2088,15 +2126,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function describe_usage_report_subscriptions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +describe_usage_report_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DescribeUsageReportSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_usage_report_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2127,15 +2162,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserName"`: The email address of the user who is associated with the stack. Users' email addresses are case-sensitive. """ -function describe_user_stack_associations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +describe_user_stack_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DescribeUserStackAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_user_stack_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2163,16 +2195,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function describe_users( - AuthenticationType; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +describe_users(AuthenticationType; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "DescribeUsers", Dict{String,Any}("AuthenticationType" => AuthenticationType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_users( AuthenticationType, params::AbstractDict{String}; @@ -2202,18 +2231,14 @@ they are re-enabled. This action does not delete the user. - `user_name`: The email address of the user. Users' email addresses are case-sensitive. """ -function disable_user( +disable_user( AuthenticationType, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DisableUser", + Dict{String,Any}("AuthenticationType" => AuthenticationType, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DisableUser", - Dict{String,Any}( - "AuthenticationType" => AuthenticationType, "UserName" => UserName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_user( AuthenticationType, UserName, @@ -2247,18 +2272,16 @@ Disassociates a specified app block builder from a specified app block. - `app_block_builder_name`: The name of the app block builder. """ -function disassociate_app_block_builder_app_block( +disassociate_app_block_builder_app_block( AppBlockArn, AppBlockBuilderName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DisassociateAppBlockBuilderAppBlock", + Dict{String,Any}( + "AppBlockArn" => AppBlockArn, "AppBlockBuilderName" => AppBlockBuilderName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DisassociateAppBlockBuilderAppBlock", - Dict{String,Any}( - "AppBlockArn" => AppBlockArn, "AppBlockBuilderName" => AppBlockBuilderName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_app_block_builder_app_block( AppBlockArn, AppBlockBuilderName, @@ -2293,16 +2316,14 @@ Disassociates the specified application from the fleet. - `fleet_name`: The name of the fleet. """ -function disassociate_application_fleet( +disassociate_application_fleet( ApplicationArn, FleetName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DisassociateApplicationFleet", + Dict{String,Any}("ApplicationArn" => ApplicationArn, "FleetName" => FleetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DisassociateApplicationFleet", - Dict{String,Any}("ApplicationArn" => ApplicationArn, "FleetName" => FleetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_application_fleet( ApplicationArn, FleetName, @@ -2338,23 +2359,21 @@ Deletes the specified application from the specified entitlement. - `stack_name`: The name of the stack with which the entitlement is associated. """ -function disassociate_application_from_entitlement( +disassociate_application_from_entitlement( ApplicationIdentifier, EntitlementName, StackName; aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "DisassociateApplicationFromEntitlement", + Dict{String,Any}( + "ApplicationIdentifier" => ApplicationIdentifier, + "EntitlementName" => EntitlementName, + "StackName" => StackName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DisassociateApplicationFromEntitlement", - Dict{String,Any}( - "ApplicationIdentifier" => ApplicationIdentifier, - "EntitlementName" => EntitlementName, - "StackName" => StackName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_application_from_entitlement( ApplicationIdentifier, EntitlementName, @@ -2391,16 +2410,14 @@ Disassociates the specified fleet from the specified stack. - `stack_name`: The name of the stack. """ -function disassociate_fleet( +disassociate_fleet( FleetName, StackName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "DisassociateFleet", + Dict{String,Any}("FleetName" => FleetName, "StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "DisassociateFleet", - Dict{String,Any}("FleetName" => FleetName, "StackName" => StackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_fleet( FleetName, StackName, @@ -2436,18 +2453,14 @@ and open applications from the stacks to which they are assigned. exist\" error message displays. """ -function enable_user( +enable_user( AuthenticationType, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "EnableUser", + Dict{String,Any}("AuthenticationType" => AuthenticationType, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "EnableUser", - Dict{String,Any}( - "AuthenticationType" => AuthenticationType, "UserName" => UserName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_user( AuthenticationType, UserName, @@ -2480,14 +2493,12 @@ Immediately stops the specified streaming session. - `session_id`: The identifier of the streaming session. """ -function expire_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "ExpireSession", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +expire_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "ExpireSession", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function expire_session( SessionId, params::AbstractDict{String}; @@ -2517,16 +2528,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_associated_fleets( - StackName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +list_associated_fleets(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "ListAssociatedFleets", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_associated_fleets( StackName, params::AbstractDict{String}; @@ -2556,16 +2564,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_associated_stacks( - FleetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +list_associated_stacks(FleetName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "ListAssociatedStacks", Dict{String,Any}("FleetName" => FleetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_associated_stacks( FleetName, params::AbstractDict{String}; @@ -2597,16 +2602,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_entitled_applications( +list_entitled_applications( EntitlementName, StackName; aws_config::AbstractAWSConfig=current_aws_config() +) = appstream( + "ListEntitledApplications", + Dict{String,Any}("EntitlementName" => EntitlementName, "StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "ListEntitledApplications", - Dict{String,Any}("EntitlementName" => EntitlementName, "StackName" => StackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_entitled_applications( EntitlementName, StackName, @@ -2641,16 +2644,13 @@ see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2678,14 +2678,13 @@ to an elastic fleet instance with application builder assistance functionality. - `name`: The name of the app block builder. """ -function start_app_block_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( +start_app_block_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "StartAppBlockBuilder", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_app_block_builder( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2707,14 +2706,12 @@ Starts the specified fleet. - `name`: The name of the fleet. """ -function start_fleet(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "StartFleet", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_fleet(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "StartFleet", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_fleet( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2740,14 +2737,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AppstreamAgentVersion"`: The version of the AppStream 2.0 agent to use for this image builder. To use the latest version of the AppStream 2.0 agent, specify [LATEST]. """ -function start_image_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "StartImageBuilder", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_image_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "StartImageBuilder", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_image_builder( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2770,14 +2765,13 @@ instance state is not persisted. - `name`: The name of the app block builder. """ -function stop_app_block_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( +stop_app_block_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "StopAppBlockBuilder", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_app_block_builder( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2799,14 +2793,12 @@ Stops the specified fleet. - `name`: The name of the fleet. """ -function stop_fleet(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "StopFleet", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_fleet(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "StopFleet", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_fleet( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2828,14 +2820,12 @@ Stops the specified image builder. - `name`: The name of the image builder. """ -function stop_image_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "StopImageBuilder", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_image_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "StopImageBuilder", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_image_builder( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2867,14 +2857,13 @@ see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide. _ . : / = + - @ """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2908,16 +2897,13 @@ tags, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guid - `tag_keys`: The tag keys for the tags to disassociate. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2974,14 +2960,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcConfig"`: The VPC configuration for the app block builder. App block builders require that you specify at least two subnets in different availability zones. """ -function update_app_block_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( +update_app_block_builder(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "UpdateAppBlockBuilder", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_app_block_builder( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3015,14 +3000,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LaunchPath"`: The launch path of the application. - `"WorkingDirectory"`: The working directory of the application. """ -function update_application(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream( - "UpdateApplication", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_application(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "UpdateApplication", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_application( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3060,16 +3043,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServiceAccountCredentials"`: The credentials for the service account used by the fleet or image builder to connect to the directory. """ -function update_directory_config( - DirectoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +update_directory_config(DirectoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "UpdateDirectoryConfig", Dict{String,Any}("DirectoryName" => DirectoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_directory_config( DirectoryName, params::AbstractDict{String}; @@ -3101,16 +3081,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Attributes"`: The attributes of the entitlement. - `"Description"`: The description of the entitlement. """ -function update_entitlement( - Name, StackName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appstream( +update_entitlement(Name, StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( "UpdateEntitlement", Dict{String,Any}("Name" => Name, "StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_entitlement( Name, StackName, @@ -3153,7 +3130,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming - instance. Specify a value between 60 and 360000. + instance. Specify a value between 60 and 36000. - `"DisplayName"`: The fleet name to display. - `"DomainJoinInfo"`: The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. @@ -3176,13 +3153,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in IdleDisconnectTimeoutInSeconds elapses, they are disconnected. To prevent users from being disconnected due to inactivity, specify a value of 0. - Otherwise, specify a value between 60 and 3600. The default value is 0. If you enable this - feature, we recommend that you specify a value that corresponds exactly to a whole number - of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to - the nearest minute. For example, if you specify a value of 70, users are disconnected after - 1 minute of inactivity. If you specify a value that is at the midpoint between two - different minutes, the value is rounded up. For example, if you specify a value of 90, - users are disconnected after 2 minutes of inactivity. + Otherwise, specify a value between 60 and 36000. The default value is 0. If you enable + this feature, we recommend that you specify a value that corresponds exactly to a whole + number of minutes (for example, 60, 120, and 180). If you don't do this, the value is + rounded to the nearest minute. For example, if you specify a value of 70, users are + disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint + between two different minutes, the value is rounded up. For example, if you specify a value + of 90, users are disconnected after 2 minutes of inactivity. - `"ImageArn"`: The ARN of the public, private, or shared image to use. - `"ImageName"`: The name of the image used to create the fleet. - `"InstanceType"`: The instance type to use when launching fleet instances. The following @@ -3226,9 +3203,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones. """ -function update_fleet(; aws_config::AbstractAWSConfig=current_aws_config()) - return appstream("UpdateFleet"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +update_fleet(; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream("UpdateFleet"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_fleet( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3250,23 +3226,21 @@ Adds or updates permissions for the specified private image. update image permissions. """ -function update_image_permissions( +update_image_permissions( ImagePermissions, Name, SharedAccountId; aws_config::AbstractAWSConfig=current_aws_config(), +) = appstream( + "UpdateImagePermissions", + Dict{String,Any}( + "ImagePermissions" => ImagePermissions, + "Name" => Name, + "SharedAccountId" => SharedAccountId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appstream( - "UpdateImagePermissions", - Dict{String,Any}( - "ImagePermissions" => ImagePermissions, - "Name" => Name, - "SharedAccountId" => SharedAccountId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_image_permissions( ImagePermissions, Name, @@ -3325,20 +3299,69 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserSettings"`: The actions that are enabled or disabled for users during their streaming sessions. By default, these actions are enabled. """ -function update_stack(Name; aws_config::AbstractAWSConfig=current_aws_config()) +update_stack(Name; aws_config::AbstractAWSConfig=current_aws_config()) = appstream( + "UpdateStack", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_stack( + Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return appstream( "UpdateStack", - Dict{String,Any}("Name" => Name); + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Name" => Name), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function update_stack( - Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() + +""" + update_theme_for_stack(stack_name) + update_theme_for_stack(stack_name, params::Dict{String,<:Any}) + +Updates custom branding that customizes the appearance of the streaming application catalog +page. + +# Arguments +- `stack_name`: The name of the stack for the theme. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AttributesToDelete"`: The attributes to delete. +- `"FaviconS3Location"`: The S3 location of the favicon. The favicon enables users to + recognize their application streaming site in a browser full of tabs or bookmarks. It is + displayed at the top of the browser tab for the application streaming site during users' + streaming sessions. +- `"FooterLinks"`: The links that are displayed in the footer of the streaming application + catalog page. These links are helpful resources for users, such as the organization's IT + support and product marketing sites. +- `"OrganizationLogoS3Location"`: The organization logo that appears on the streaming + application catalog page. +- `"State"`: Specifies whether custom branding should be applied to catalog page or not. +- `"ThemeStyling"`: The color theme that is applied to website links, text, and buttons. + These colors are also applied as accents in the background for the streaming application + catalog page. +- `"TitleText"`: The title that is displayed at the top of the browser tab during users' + application streaming sessions. +""" +update_theme_for_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + appstream( + "UpdateThemeForStack", + Dict{String,Any}("StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function update_theme_for_stack( + StackName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return appstream( - "UpdateStack", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Name" => Name), params)); + "UpdateThemeForStack", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("StackName" => StackName), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) diff --git a/src/services/appsync.jl b/src/services/appsync.jl index ed2335de8..c88a738e1 100644 --- a/src/services/appsync.jl +++ b/src/services/appsync.jl @@ -15,17 +15,14 @@ Maps an endpoint to your custom domain. - `domain_name`: The domain name. """ -function associate_api( - apiId, domainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +associate_api(apiId, domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/domainnames/$(domainName)/apiassociation", Dict{String,Any}("apiId" => apiId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_api( apiId, domainName, @@ -63,19 +60,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description field. - `"sourceApiAssociationConfig"`: The SourceApiAssociationConfig object data. """ -function associate_merged_graphql_api( +associate_merged_graphql_api( mergedApiIdentifier, sourceApiIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appsync( + "POST", + "/v1/sourceApis/$(sourceApiIdentifier)/mergedApiAssociations", + Dict{String,Any}("mergedApiIdentifier" => mergedApiIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/sourceApis/$(sourceApiIdentifier)/mergedApiAssociations", - Dict{String,Any}("mergedApiIdentifier" => mergedApiIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_merged_graphql_api( mergedApiIdentifier, sourceApiIdentifier, @@ -119,19 +114,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description field. - `"sourceApiAssociationConfig"`: The SourceApiAssociationConfig object data. """ -function associate_source_graphql_api( +associate_source_graphql_api( mergedApiIdentifier, sourceApiIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appsync( + "POST", + "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations", + Dict{String,Any}("sourceApiIdentifier" => sourceApiIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations", - Dict{String,Any}("sourceApiIdentifier" => sourceApiIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_source_graphql_api( mergedApiIdentifier, sourceApiIdentifier, @@ -187,19 +180,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"transitEncryptionEnabled"`: Transit encryption flag when connecting to cache. You cannot update this setting after creation. """ -function create_api_cache( +create_api_cache( apiCachingBehavior, apiId, ttl, type; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/apis/$(apiId)/ApiCaches", + Dict{String,Any}( + "apiCachingBehavior" => apiCachingBehavior, "ttl" => ttl, "type" => type + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis/$(apiId)/ApiCaches", - Dict{String,Any}( - "apiCachingBehavior" => apiCachingBehavior, "ttl" => ttl, "type" => type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_api_cache( apiCachingBehavior, apiId, @@ -241,14 +232,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see . """ -function create_api_key(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "POST", - "/v1/apis/$(apiId)/apikeys"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_api_key(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "POST", + "/v1/apis/$(apiId)/apikeys"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_api_key( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -293,17 +282,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceRoleArn"`: The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source. """ -function create_data_source( - apiId, name, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +create_data_source(apiId, name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/apis/$(apiId)/datasources", Dict{String,Any}("name" => name, "type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_data_source( apiId, name, @@ -338,17 +324,15 @@ Creates a custom DomainName object. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A description of the DomainName. """ -function create_domain_name( +create_domain_name( certificateArn, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/domainnames", + Dict{String,Any}("certificateArn" => certificateArn, "domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/domainnames", - Dict{String,Any}("certificateArn" => certificateArn, "domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_domain_name( certificateArn, domainName, @@ -399,17 +383,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"runtime"`: - `"syncConfig"`: """ -function create_function( +create_function( apiId, dataSourceName, name; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/apis/$(apiId)/functions", + Dict{String,Any}("dataSourceName" => dataSourceName, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis/$(apiId)/functions", - Dict{String,Any}("dataSourceName" => dataSourceName, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_function( apiId, dataSourceName, @@ -482,17 +464,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value cannot be changed once the API has been created. - `"xrayEnabled"`: A flag indicating whether to use X-Ray tracing for the GraphqlApi. """ -function create_graphql_api( +create_graphql_api( authenticationType, name; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/apis", + Dict{String,Any}("authenticationType" => authenticationType, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis", - Dict{String,Any}("authenticationType" => authenticationType, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_graphql_api( authenticationType, name, @@ -556,17 +536,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"runtime"`: - `"syncConfig"`: The SyncConfig for a resolver attached to a versioned data source. """ -function create_resolver( +create_resolver( apiId, fieldName, typeName; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/apis/$(apiId)/types/$(typeName)/resolvers", + Dict{String,Any}("fieldName" => fieldName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis/$(apiId)/types/$(typeName)/resolvers", - Dict{String,Any}("fieldName" => fieldName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resolver( apiId, fieldName, @@ -598,17 +576,14 @@ Creates a Type object. - `format`: The type format: SDL or JSON. """ -function create_type( - apiId, definition, format; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +create_type(apiId, definition, format; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/apis/$(apiId)/types", Dict{String,Any}("definition" => definition, "format" => format); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_type( apiId, definition, @@ -641,14 +616,12 @@ Deletes an ApiCache object. - `api_id`: The API ID. """ -function delete_api_cache(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "DELETE", - "/v1/apis/$(apiId)/ApiCaches"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_api_cache(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "DELETE", + "/v1/apis/$(apiId)/ApiCaches"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_api_cache( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -672,14 +645,12 @@ Deletes an API key. - `id`: The ID for the API key. """ -function delete_api_key(apiId, id; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "DELETE", - "/v1/apis/$(apiId)/apikeys/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_api_key(apiId, id; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "DELETE", + "/v1/apis/$(apiId)/apikeys/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_api_key( apiId, id, @@ -706,14 +677,13 @@ Deletes a DataSource object. - `name`: The name of the data source. """ -function delete_data_source(apiId, name; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( +delete_data_source(apiId, name; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "DELETE", "/v1/apis/$(apiId)/datasources/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_data_source( apiId, name, @@ -739,14 +709,13 @@ Deletes a custom DomainName object. - `domain_name`: The domain name. """ -function delete_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( +delete_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "DELETE", "/v1/domainnames/$(domainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_domain_name( domainName, params::AbstractDict{String}; @@ -772,16 +741,13 @@ Deletes a Function. - `function_id`: The Function ID. """ -function delete_function( - apiId, functionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +delete_function(apiId, functionId; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "DELETE", "/v1/apis/$(apiId)/functions/$(functionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_function( apiId, functionId, @@ -807,14 +773,12 @@ Deletes a GraphqlApi object. - `api_id`: The API ID. """ -function delete_graphql_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "DELETE", - "/v1/apis/$(apiId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_graphql_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "DELETE", + "/v1/apis/$(apiId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_graphql_api( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -839,16 +803,14 @@ Deletes a Resolver object. - `type_name`: The name of the resolver type. """ -function delete_resolver( +delete_resolver( apiId, fieldName, typeName; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "DELETE", + "/v1/apis/$(apiId)/types/$(typeName)/resolvers/$(fieldName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "DELETE", - "/v1/apis/$(apiId)/types/$(typeName)/resolvers/$(fieldName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resolver( apiId, fieldName, @@ -876,14 +838,12 @@ Deletes a Type object. - `type_name`: The type name. """ -function delete_type(apiId, typeName; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "DELETE", - "/v1/apis/$(apiId)/types/$(typeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_type(apiId, typeName; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "DELETE", + "/v1/apis/$(apiId)/types/$(typeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_type( apiId, typeName, @@ -909,14 +869,12 @@ Removes an ApiAssociation object from a custom domain. - `domain_name`: The domain name. """ -function disassociate_api(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "DELETE", - "/v1/domainnames/$(domainName)/apiassociation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disassociate_api(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "DELETE", + "/v1/domainnames/$(domainName)/apiassociation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disassociate_api( domainName, params::AbstractDict{String}; @@ -946,16 +904,14 @@ identifier and the association ID. (cross-account use cases) strictly require the full resource ARN of the source API. """ -function disassociate_merged_graphql_api( +disassociate_merged_graphql_api( associationId, sourceApiIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "DELETE", + "/v1/sourceApis/$(sourceApiIdentifier)/mergedApiAssociations/$(associationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "DELETE", - "/v1/sourceApis/$(sourceApiIdentifier)/mergedApiAssociations/$(associationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_merged_graphql_api( associationId, sourceApiIdentifier, @@ -986,16 +942,14 @@ identifier and the association ID. (cross-account use cases) strictly require the full resource ARN of the merged API. """ -function disassociate_source_graphql_api( +disassociate_source_graphql_api( associationId, mergedApiIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "DELETE", + "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "DELETE", - "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_source_graphql_api( associationId, mergedApiIdentifier, @@ -1035,17 +989,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"function"`: The function within the code to be evaluated. If provided, the valid values are request and response. """ -function evaluate_code( - code, context, runtime; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +evaluate_code(code, context, runtime; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/dataplane-evaluatecode", Dict{String,Any}("code" => code, "context" => context, "runtime" => runtime); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function evaluate_code( code, context, @@ -1088,17 +1039,15 @@ Velocity Template Language (VTL). is required for this action. """ -function evaluate_mapping_template( +evaluate_mapping_template( context, template; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/dataplane-evaluatetemplate", + Dict{String,Any}("context" => context, "template" => template); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/dataplane-evaluatetemplate", - Dict{String,Any}("context" => context, "template" => template); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function evaluate_mapping_template( context, template, @@ -1130,14 +1079,12 @@ Flushes an ApiCache object. - `api_id`: The API ID. """ -function flush_api_cache(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "DELETE", - "/v1/apis/$(apiId)/FlushCache"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +flush_api_cache(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "DELETE", + "/v1/apis/$(apiId)/FlushCache"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function flush_api_cache( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1160,14 +1107,13 @@ Retrieves an ApiAssociation object. - `domain_name`: The domain name. """ -function get_api_association(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( +get_api_association(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "GET", "/v1/domainnames/$(domainName)/apiassociation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_api_association( domainName, params::AbstractDict{String}; @@ -1192,14 +1138,12 @@ Retrieves an ApiCache object. - `api_id`: The API ID. """ -function get_api_cache(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", - "/v1/apis/$(apiId)/ApiCaches"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_api_cache(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", + "/v1/apis/$(apiId)/ApiCaches"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_api_cache( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1223,14 +1167,12 @@ Retrieves a DataSource object. - `name`: The name of the data source. """ -function get_data_source(apiId, name; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", - "/v1/apis/$(apiId)/datasources/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_data_source(apiId, name; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", + "/v1/apis/$(apiId)/datasources/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_data_source( apiId, name, @@ -1269,16 +1211,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Determines the number of types to be returned in a single response before paginating. This value is typically taken from nextToken value from the previous response. """ -function get_data_source_introspection( +get_data_source_introspection( introspectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "GET", + "/v1/datasources/introspections/$(introspectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "GET", - "/v1/datasources/introspections/$(introspectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_source_introspection( introspectionId, params::AbstractDict{String}; @@ -1303,14 +1243,12 @@ Retrieves a custom DomainName object. - `domain_name`: The domain name. """ -function get_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", - "/v1/domainnames/$(domainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", + "/v1/domainnames/$(domainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_domain_name( domainName, params::AbstractDict{String}; @@ -1336,14 +1274,13 @@ Get a Function. - `function_id`: The Function ID. """ -function get_function(apiId, functionId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( +get_function(apiId, functionId; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "GET", "/v1/apis/$(apiId)/functions/$(functionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_function( apiId, functionId, @@ -1369,11 +1306,9 @@ Retrieves a GraphqlApi object. - `api_id`: The API ID for the GraphQL API. """ -function get_graphql_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", "/v1/apis/$(apiId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_graphql_api(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", "/v1/apis/$(apiId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_graphql_api( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1397,16 +1332,14 @@ ID value. - `api_id`: The ID of the API from which the environmental variable list will be retrieved. """ -function get_graphql_api_environment_variables( +get_graphql_api_environment_variables( apiId; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "GET", + "/v1/apis/$(apiId)/environmentVariables"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "GET", - "/v1/apis/$(apiId)/environmentVariables"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_graphql_api_environment_variables( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1434,17 +1367,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includeDirectives"`: A flag that specifies whether the schema introspection should contain directives. """ -function get_introspection_schema( +get_introspection_schema( apiId, format; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "GET", + "/v1/apis/$(apiId)/schema", + Dict{String,Any}("format" => format); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "GET", - "/v1/apis/$(apiId)/schema", - Dict{String,Any}("format" => format); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_introspection_schema( apiId, format, @@ -1472,16 +1403,14 @@ Retrieves a Resolver object. - `type_name`: The resolver type name. """ -function get_resolver( +get_resolver( apiId, fieldName, typeName; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "GET", + "/v1/apis/$(apiId)/types/$(typeName)/resolvers/$(fieldName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "GET", - "/v1/apis/$(apiId)/types/$(typeName)/resolvers/$(fieldName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resolver( apiId, fieldName, @@ -1508,16 +1437,13 @@ Retrieves the current status of a schema creation operation. - `api_id`: The API ID. """ -function get_schema_creation_status( - apiId; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +get_schema_creation_status(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "GET", "/v1/apis/$(apiId)/schemacreation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_schema_creation_status( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1544,16 +1470,14 @@ Retrieves a SourceApiAssociation object. (cross-account use cases) strictly require the full resource ARN of the merged API. """ -function get_source_api_association( +get_source_api_association( associationId, mergedApiIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "GET", + "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "GET", - "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_source_api_association( associationId, mergedApiIdentifier, @@ -1581,17 +1505,14 @@ Retrieves a Type object. - `type_name`: The type name. """ -function get_type( - apiId, format, typeName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +get_type(apiId, format, typeName; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "GET", "/v1/apis/$(apiId)/types/$(typeName)", Dict{String,Any}("format" => format); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_type( apiId, format, @@ -1626,14 +1547,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_api_keys(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", - "/v1/apis/$(apiId)/apikeys"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_api_keys(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", + "/v1/apis/$(apiId)/apikeys"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_api_keys( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1661,14 +1580,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_data_sources(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", - "/v1/apis/$(apiId)/datasources"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_data_sources(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", + "/v1/apis/$(apiId)/datasources"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_data_sources( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1693,11 +1610,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", "/v1/domainnames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", "/v1/domainnames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_domain_names( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1725,14 +1640,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_functions(apiId; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", - "/v1/apis/$(apiId)/functions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_functions(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", + "/v1/apis/$(apiId)/functions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_functions( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1760,11 +1673,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you can use to return the next set of items in the list. - `"owner"`: The account owner of the GraphQL API. """ -function list_graphql_apis(; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", "/v1/apis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_graphql_apis(; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync("GET", "/v1/apis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_graphql_apis( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1789,14 +1699,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_resolvers(apiId, typeName; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( +list_resolvers(apiId, typeName; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "GET", "/v1/apis/$(apiId)/types/$(typeName)/resolvers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resolvers( apiId, typeName, @@ -1828,16 +1737,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_resolvers_by_function( +list_resolvers_by_function( apiId, functionId; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "GET", + "/v1/apis/$(apiId)/functions/$(functionId)/resolvers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "GET", - "/v1/apis/$(apiId)/functions/$(functionId)/resolvers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resolvers_by_function( apiId, functionId, @@ -1868,16 +1775,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_source_api_associations( - apiId; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +list_source_api_associations(apiId; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "GET", "/v1/apis/$(apiId)/sourceApiAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_source_api_associations( apiId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1900,16 +1804,13 @@ Lists the tags for a resource. - `resource_arn`: The GraphqlApi Amazon Resource Name (ARN). """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "GET", "/v1/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1940,15 +1841,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_types(apiId, format; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "GET", - "/v1/apis/$(apiId)/types", - Dict{String,Any}("format" => format); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_types(apiId, format; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "GET", + "/v1/apis/$(apiId)/types", + Dict{String,Any}("format" => format); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_types( apiId, format, @@ -1984,20 +1883,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list. """ -function list_types_by_association( +list_types_by_association( associationId, format, mergedApiIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = appsync( + "GET", + "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)/types", + Dict{String,Any}("format" => format); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "GET", - "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)/types", - Dict{String,Any}("format" => format); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_types_by_association( associationId, format, @@ -2051,17 +1948,15 @@ variables in the list each time you call this action. in the list each time you call this action. """ -function put_graphql_api_environment_variables( +put_graphql_api_environment_variables( apiId, environmentVariables; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "PUT", + "/v1/apis/$(apiId)/environmentVariables", + Dict{String,Any}("environmentVariables" => environmentVariables); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "PUT", - "/v1/apis/$(apiId)/environmentVariables", - Dict{String,Any}("environmentVariables" => environmentVariables); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_graphql_api_environment_variables( apiId, environmentVariables, @@ -2094,16 +1989,13 @@ creation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"rdsDataApiConfig"`: The rdsDataApiConfig object data. """ -function start_data_source_introspection(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +start_data_source_introspection(; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/datasources/introspections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_data_source_introspection( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2128,17 +2020,15 @@ when it has completed. - `definition`: The schema definition, in GraphQL schema language format. """ -function start_schema_creation( +start_schema_creation( apiId, definition; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/apis/$(apiId)/schemacreation", + Dict{String,Any}("definition" => definition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis/$(apiId)/schemacreation", - Dict{String,Any}("definition" => definition); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_schema_creation( apiId, definition, @@ -2170,16 +2060,14 @@ Initiates a merge operation. Returns a status that shows the result of the merge (cross-account use cases) strictly require the full resource ARN of the merged API. """ -function start_schema_merge( +start_schema_merge( associationId, mergedApiIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)/merge"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)/merge"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_schema_merge( associationId, mergedApiIdentifier, @@ -2206,15 +2094,14 @@ Tags a resource with user-supplied tags. - `tags`: A TagMap object. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2241,17 +2128,14 @@ Untags a resource. - `tag_keys`: A list of TagKey objects. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "DELETE", "/v1/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2297,19 +2181,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys bottlenecks in a cache configuration. Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED. """ -function update_api_cache( +update_api_cache( apiCachingBehavior, apiId, ttl, type; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/apis/$(apiId)/ApiCaches/update", + Dict{String,Any}( + "apiCachingBehavior" => apiCachingBehavior, "ttl" => ttl, "type" => type + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis/$(apiId)/ApiCaches/update", - Dict{String,Any}( - "apiCachingBehavior" => apiCachingBehavior, "ttl" => ttl, "type" => type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_api_cache( apiCachingBehavior, apiId, @@ -2351,14 +2233,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"expires"`: From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see . """ -function update_api_key(apiId, id; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( - "POST", - "/v1/apis/$(apiId)/apikeys/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_api_key(apiId, id; aws_config::AbstractAWSConfig=current_aws_config()) = appsync( + "POST", + "/v1/apis/$(apiId)/apikeys/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_api_key( apiId, id, @@ -2405,17 +2285,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"relationalDatabaseConfig"`: The new relational database configuration. - `"serviceRoleArn"`: The new service role Amazon Resource Name (ARN) for the data source. """ -function update_data_source( - apiId, name, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +update_data_source(apiId, name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/apis/$(apiId)/datasources/$(name)", Dict{String,Any}("type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_data_source( apiId, name, @@ -2445,14 +2322,13 @@ Updates a custom DomainName object. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A description of the DomainName. """ -function update_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return appsync( +update_domain_name(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/domainnames/$(domainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_domain_name( domainName, params::AbstractDict{String}; @@ -2494,21 +2370,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"runtime"`: - `"syncConfig"`: """ -function update_function( +update_function( apiId, dataSourceName, functionId, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = appsync( + "POST", + "/v1/apis/$(apiId)/functions/$(functionId)", + Dict{String,Any}("dataSourceName" => dataSourceName, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis/$(apiId)/functions/$(functionId)", - Dict{String,Any}("dataSourceName" => dataSourceName, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_function( apiId, dataSourceName, @@ -2577,17 +2451,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object. - `"xrayEnabled"`: A flag indicating whether to use X-Ray tracing for the GraphqlApi. """ -function update_graphql_api( +update_graphql_api( apiId, authenticationType, name; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/apis/$(apiId)", + Dict{String,Any}("authenticationType" => authenticationType, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis/$(apiId)", - Dict{String,Any}("authenticationType" => authenticationType, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_graphql_api( apiId, authenticationType, @@ -2650,16 +2522,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"runtime"`: - `"syncConfig"`: The SyncConfig for a resolver attached to a versioned data source. """ -function update_resolver( +update_resolver( apiId, fieldName, typeName; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/apis/$(apiId)/types/$(typeName)/resolvers/$(fieldName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/apis/$(apiId)/types/$(typeName)/resolvers/$(fieldName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resolver( apiId, fieldName, @@ -2694,16 +2564,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description field. - `"sourceApiAssociationConfig"`: The SourceApiAssociationConfig object data. """ -function update_source_api_association( +update_source_api_association( associationId, mergedApiIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = appsync( + "POST", + "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return appsync( - "POST", - "/v1/mergedApis/$(mergedApiIdentifier)/sourceApiAssociations/$(associationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_source_api_association( associationId, mergedApiIdentifier, @@ -2734,17 +2602,14 @@ Updates a Type object. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"definition"`: The new definition. """ -function update_type( - apiId, format, typeName; aws_config::AbstractAWSConfig=current_aws_config() -) - return appsync( +update_type(apiId, format, typeName; aws_config::AbstractAWSConfig=current_aws_config()) = + appsync( "POST", "/v1/apis/$(apiId)/types/$(typeName)", Dict{String,Any}("format" => format); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_type( apiId, format, diff --git a/src/services/apptest.jl b/src/services/apptest.jl index 0c451a7ee..c8507f805 100644 --- a/src/services/apptest.jl +++ b/src/services/apptest.jl @@ -20,17 +20,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the test case. - `"tags"`: The specified tags of the test case. """ -function create_test_case(name, steps; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "POST", - "/testcase", - Dict{String,Any}( - "name" => name, "steps" => steps, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_test_case(name, steps; aws_config::AbstractAWSConfig=current_aws_config()) = apptest( + "POST", + "/testcase", + Dict{String,Any}("name" => name, "steps" => steps, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_test_case( name, steps, @@ -72,19 +68,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceSettings"`: The service settings of the test configuration. - `"tags"`: The tags of the test configuration. """ -function create_test_configuration( +create_test_configuration( name, resources; aws_config::AbstractAWSConfig=current_aws_config() +) = apptest( + "POST", + "/testconfiguration", + Dict{String,Any}( + "name" => name, "resources" => resources, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apptest( - "POST", - "/testconfiguration", - Dict{String,Any}( - "name" => name, "resources" => resources, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_test_configuration( name, resources, @@ -128,10 +122,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the test suite. - `"tags"`: The tags of the test suite. """ -function create_test_suite( - name, testCases; aws_config::AbstractAWSConfig=current_aws_config() -) - return apptest( +create_test_suite(name, testCases; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "POST", "/testsuite", Dict{String,Any}( @@ -140,7 +132,6 @@ function create_test_suite( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_test_suite( name, testCases, @@ -176,14 +167,12 @@ Deletes a test case. - `test_case_id`: The test case ID of the test case. """ -function delete_test_case(testCaseId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "DELETE", - "/testcases/$(testCaseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_test_case(testCaseId; aws_config::AbstractAWSConfig=current_aws_config()) = apptest( + "DELETE", + "/testcases/$(testCaseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_test_case( testCaseId, params::AbstractDict{String}; @@ -208,16 +197,14 @@ Deletes a test configuration. - `test_configuration_id`: The test ID of the test configuration. """ -function delete_test_configuration( +delete_test_configuration( testConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = apptest( + "DELETE", + "/testconfigurations/$(testConfigurationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apptest( - "DELETE", - "/testconfigurations/$(testConfigurationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_test_configuration( testConfigurationId, params::AbstractDict{String}; @@ -242,14 +229,12 @@ Deletes a test run. - `test_run_id`: The run ID of the test run. """ -function delete_test_run(testRunId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "DELETE", - "/testruns/$(testRunId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_test_run(testRunId; aws_config::AbstractAWSConfig=current_aws_config()) = apptest( + "DELETE", + "/testruns/$(testRunId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_test_run( testRunId, params::AbstractDict{String}; @@ -274,14 +259,13 @@ Deletes a test suite. - `test_suite_id`: The test ID of the test suite. """ -function delete_test_suite(testSuiteId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( +delete_test_suite(testSuiteId; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "DELETE", "/testsuites/$(testSuiteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_test_suite( testSuiteId, params::AbstractDict{String}; @@ -309,14 +293,12 @@ Gets a test case. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"testCaseVersion"`: The test case version of the test case. """ -function get_test_case(testCaseId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "GET", - "/testcases/$(testCaseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_test_case(testCaseId; aws_config::AbstractAWSConfig=current_aws_config()) = apptest( + "GET", + "/testcases/$(testCaseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_test_case( testCaseId, params::AbstractDict{String}; @@ -344,16 +326,14 @@ Gets a test configuration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"testConfigurationVersion"`: The test configuration version. """ -function get_test_configuration( +get_test_configuration( testConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = apptest( + "GET", + "/testconfigurations/$(testConfigurationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apptest( - "GET", - "/testconfigurations/$(testConfigurationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_test_configuration( testConfigurationId, params::AbstractDict{String}; @@ -383,16 +363,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"testCaseId"`: The test case ID of a test run step. - `"testSuiteId"`: The test suite ID of a test run step. """ -function get_test_run_step( - stepName, testRunId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apptest( +get_test_run_step(stepName, testRunId; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "GET", "/testruns/$(testRunId)/steps/$(stepName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_test_run_step( stepName, testRunId, @@ -421,14 +398,12 @@ Gets a test suite. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"testSuiteVersion"`: The version of the test suite. """ -function get_test_suite(testSuiteId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "GET", - "/testsuites/$(testSuiteId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_test_suite(testSuiteId; aws_config::AbstractAWSConfig=current_aws_config()) = apptest( + "GET", + "/testsuites/$(testSuiteId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_test_suite( testSuiteId, params::AbstractDict{String}; @@ -453,16 +428,13 @@ Lists tags for a resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return apptest( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -489,11 +461,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next token of the test cases. - `"testCaseIds"`: The IDs of the test cases. """ -function list_test_cases(; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "GET", "/testcases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_test_cases(; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest("GET", "/testcases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_test_cases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -514,11 +483,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next token for the test configurations. - `"testConfigurationIds"`: The configuration IDs of the test configurations. """ -function list_test_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "GET", "/testconfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_test_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = apptest( + "GET", "/testconfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_test_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -547,14 +514,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"testCaseId"`: The test case ID of the test run steps. - `"testSuiteId"`: The test suite ID of the test run steps. """ -function list_test_run_steps(testRunId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( +list_test_run_steps(testRunId; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "GET", "/testruns/$(testRunId)/steps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_test_run_steps( testRunId, params::AbstractDict{String}; @@ -584,16 +550,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"nextToken"`: The token from a previous request to retrieve the next page of results. """ -function list_test_run_test_cases( - testRunId; aws_config::AbstractAWSConfig=current_aws_config() -) - return apptest( +list_test_run_test_cases(testRunId; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "GET", "/testruns/$(testRunId)/testcases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_test_run_test_cases( testRunId, params::AbstractDict{String}; @@ -622,11 +585,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"testSuiteId"`: The test suite ID of the test runs. - `"testrunIds"`: The test run IDs of the test runs. """ -function list_test_runs(; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "GET", "/testruns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_test_runs(; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest("GET", "/testruns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_test_runs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -647,11 +607,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token from a previous request to retrieve the next page of results. - `"testSuiteIds"`: The suite ID of the test suites. """ -function list_test_suites(; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "GET", "/testsuites"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_test_suites(; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest("GET", "/testsuites"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_test_suites( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -675,15 +632,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags of the test run. - `"testConfigurationId"`: The configuration ID of the test run. """ -function start_test_run(testSuiteId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "POST", - "/testrun", - Dict{String,Any}("testSuiteId" => testSuiteId, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_test_run(testSuiteId; aws_config::AbstractAWSConfig=current_aws_config()) = apptest( + "POST", + "/testrun", + Dict{String,Any}("testSuiteId" => testSuiteId, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_test_run( testSuiteId, params::AbstractDict{String}; @@ -717,15 +672,14 @@ Specifies tags of a resource. - `tags`: The tags of the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -752,17 +706,14 @@ Untags a resource. - `tag_keys`: The tag keys of the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return apptest( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -792,14 +743,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the test case. - `"steps"`: The steps of the test case. """ -function update_test_case(testCaseId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( - "PATCH", - "/testcases/$(testCaseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_test_case(testCaseId; aws_config::AbstractAWSConfig=current_aws_config()) = apptest( + "PATCH", + "/testcases/$(testCaseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_test_case( testCaseId, params::AbstractDict{String}; @@ -830,16 +779,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resources"`: The resources of the test configuration. - `"serviceSettings"`: The service settings of the test configuration. """ -function update_test_configuration( +update_test_configuration( testConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = apptest( + "PATCH", + "/testconfigurations/$(testConfigurationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return apptest( - "PATCH", - "/testconfigurations/$(testConfigurationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_test_configuration( testConfigurationId, params::AbstractDict{String}; @@ -870,14 +817,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the test suite. - `"testCases"`: The test cases in the test suite. """ -function update_test_suite(testSuiteId; aws_config::AbstractAWSConfig=current_aws_config()) - return apptest( +update_test_suite(testSuiteId; aws_config::AbstractAWSConfig=current_aws_config()) = + apptest( "PATCH", "/testsuites/$(testSuiteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_test_suite( testSuiteId, params::AbstractDict{String}; diff --git a/src/services/arc_zonal_shift.jl b/src/services/arc_zonal_shift.jl index 6b17fa364..24a186195 100644 --- a/src/services/arc_zonal_shift.jl +++ b/src/services/arc_zonal_shift.jl @@ -17,16 +17,13 @@ a zonal shift started by a practice run with zonal autoshift. - `zonal_shift_id`: The internally-generated identifier of a zonal shift. """ -function cancel_zonal_shift( - zonalShiftId; aws_config::AbstractAWSConfig=current_aws_config() -) - return arc_zonal_shift( +cancel_zonal_shift(zonalShiftId; aws_config::AbstractAWSConfig=current_aws_config()) = + arc_zonal_shift( "DELETE", "/zonalshifts/$(zonalShiftId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_zonal_shift( zonalShiftId, params::AbstractDict{String}; @@ -50,8 +47,11 @@ autoshift. A practice run configuration includes specifications for blocked date blocked time windows, and for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from -starting. For more information, see Considerations when you configure zonal autoshift in -the Amazon Route 53 Application Recovery Controller Developer Guide. +starting. When a resource has a practice run configuration, Route 53 ARC starts zonal +shifts for the resource weekly, to shift traffic for practice runs. Practice runs help you +to ensure that shifting away traffic from an Availability Zone during an autoshift is safe +for your application. For more information, see Considerations when you configure zonal +autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide. # Arguments - `outcome_alarms`: The outcome alarm for practice runs is a required Amazon CloudWatch @@ -60,10 +60,10 @@ the Amazon Route 53 Application Recovery Controller Developer Guide. from an Availability Zone during each weekly practice run. You should configure the alarm to go into an ALARM state if your application is impacted by the zonal shift, and you want to stop the zonal shift, to let traffic for the resource return to the Availability Zone. -- `resource_identifier`: The identifier of the resource to shift away traffic for when a - practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the - resource. At this time, supported resources are Network Load Balancers and Application Load - Balancers with cross-zone load balancing turned off. +- `resource_identifier`: The identifier of the resource that Amazon Web Services shifts + traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name + (ARN) for the resource. At this time, supported resources are Network Load Balancers and + Application Load Balancers with cross-zone load balancing turned off. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -85,19 +85,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys practice runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, and ends a practice run that's in progress, when the alarm is in an ALARM state. """ -function create_practice_run_configuration( +create_practice_run_configuration( outcomeAlarms, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = arc_zonal_shift( + "POST", + "/configuration", + Dict{String,Any}( + "outcomeAlarms" => outcomeAlarms, "resourceIdentifier" => resourceIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return arc_zonal_shift( - "POST", - "/configuration", - Dict{String,Any}( - "outcomeAlarms" => outcomeAlarms, "resourceIdentifier" => resourceIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_practice_run_configuration( outcomeAlarms, resourceIdentifier, @@ -136,16 +134,14 @@ runs must be configured for zonal autoshift to be enabled. resource. """ -function delete_practice_run_configuration( +delete_practice_run_configuration( resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = arc_zonal_shift( + "DELETE", + "/configuration/$(resourceIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return arc_zonal_shift( - "DELETE", - "/configuration/$(resourceIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_practice_run_configuration( resourceIdentifier, params::AbstractDict{String}; @@ -160,6 +156,40 @@ function delete_practice_run_configuration( ) end +""" + get_autoshift_observer_notification_status() + get_autoshift_observer_notification_status(params::Dict{String,<:Any}) + +Returns the status of autoshift observer notification. Autoshift observer notification +enables you to be notified, through Amazon EventBridge, when there is an autoshift event +for zonal autoshift. If the status is ENABLED, Route 53 ARC includes all autoshift events +when you use the EventBridge pattern Autoshift In Progress. When the status is DISABLED, +Route 53 ARC includes only autoshift events for autoshifts when one or more of your +resources is included in the autoshift. For more information, see Notifications for +practice runs and autoshifts in the Amazon Route 53 Application Recovery Controller +Developer Guide. + +""" +get_autoshift_observer_notification_status(; + aws_config::AbstractAWSConfig=current_aws_config() +) = arc_zonal_shift( + "GET", + "/autoshift-observer-notification"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_autoshift_observer_notification_status( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return arc_zonal_shift( + "GET", + "/autoshift-observer-notification", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ get_managed_resource(resource_identifier) get_managed_resource(resource_identifier, params::Dict{String,<:Any}) @@ -172,22 +202,20 @@ start a zonal shift or configure zonal autoshift for Network Load Balancers and Load Balancers with cross-zone load balancing turned off. # Arguments -- `resource_identifier`: The identifier for the resource to shift away traffic for. The - identifier is the Amazon Resource Name (ARN) for the resource. At this time, supported - resources are Network Load Balancers and Application Load Balancers with cross-zone load - balancing turned off. +- `resource_identifier`: The identifier for the resource that Amazon Web Services shifts + traffic for. The identifier is the Amazon Resource Name (ARN) for the resource. At this + time, supported resources are Network Load Balancers and Application Load Balancers with + cross-zone load balancing turned off. """ -function get_managed_resource( +get_managed_resource( resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = arc_zonal_shift( + "GET", + "/managedresources/$(resourceIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return arc_zonal_shift( - "GET", - "/managedresources/$(resourceIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_managed_resource( resourceIdentifier, params::AbstractDict{String}; @@ -206,7 +234,9 @@ end list_autoshifts() list_autoshifts(params::Dict{String,<:Any}) -Returns the active autoshifts for a specified resource. +Returns a list of autoshifts for an Amazon Web Services Region. By default, the call +returns only ACTIVE autoshifts. Optionally, you can specify the status parameter to return +COMPLETED autoshifts. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -217,11 +247,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken response to request the next page of results. - `"status"`: The status of the autoshift. """ -function list_autoshifts(; aws_config::AbstractAWSConfig=current_aws_config()) - return arc_zonal_shift( - "GET", "/autoshifts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_autoshifts(; aws_config::AbstractAWSConfig=current_aws_config()) = arc_zonal_shift( + "GET", "/autoshifts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_autoshifts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -248,11 +276,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_managed_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return arc_zonal_shift( +list_managed_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = + arc_zonal_shift( "GET", "/managedresources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_managed_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -271,9 +298,9 @@ end Lists all active and completed zonal shifts in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account in this Amazon Web Services Region. -ListZonalShifts returns customer-started zonal shifts, as well as practice run zonal shifts -that Route 53 ARC started on your behalf for zonal autoshift. The ListZonalShifts operation -does not list autoshifts. For more information about listing autoshifts, see +ListZonalShifts returns customer-initiated zonal shifts, as well as practice run zonal +shifts that Route 53 ARC started on your behalf for zonal autoshift. The ListZonalShifts +operation does not list autoshifts. For more information about listing autoshifts, see \">ListAutoshifts. # Optional Parameters @@ -290,11 +317,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys zonal shift has expired (the expiry time was exceeded). CANCELED: The zonal shift was canceled. """ -function list_zonal_shifts(; aws_config::AbstractAWSConfig=current_aws_config()) - return arc_zonal_shift( - "GET", "/zonalshifts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_zonal_shifts(; aws_config::AbstractAWSConfig=current_aws_config()) = arc_zonal_shift( + "GET", "/zonalshifts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_zonal_shifts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -326,9 +351,10 @@ Availability Zone to complete. For more information, see Zonal shift in the Amaz Application Recovery Controller Developer Guide. # Arguments -- `away_from`: The Availability Zone that traffic is moved away from for a resource when - you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the - resource is instead moved to other Availability Zones in the Amazon Web Services Region. +- `away_from`: The Availability Zone (for example, use1-az1) that traffic is moved away + from for a resource when you start a zonal shift. Until the zonal shift expires or you + cancel it, traffic for the resource is instead moved to other Availability Zones in the + Amazon Web Services Region. - `comment`: A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string. @@ -342,32 +368,30 @@ Application Recovery Controller Developer Guide. A lowercase letter m: To specify that the value is in minutes. A lowercase letter h: To specify that the value is in hours. For example: 20h means the zonal shift expires in 20 hours. 120m means the zonal shift expires in 120 minutes (2 hours). -- `resource_identifier`: The identifier for the resource to shift away traffic for. The - identifier is the Amazon Resource Name (ARN) for the resource. At this time, supported - resources are Network Load Balancers and Application Load Balancers with cross-zone load - balancing turned off. +- `resource_identifier`: The identifier for the resource that Amazon Web Services shifts + traffic for. The identifier is the Amazon Resource Name (ARN) for the resource. At this + time, supported resources are Network Load Balancers and Application Load Balancers with + cross-zone load balancing turned off. """ -function start_zonal_shift( +start_zonal_shift( awayFrom, comment, expiresIn, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = arc_zonal_shift( + "POST", + "/zonalshifts", + Dict{String,Any}( + "awayFrom" => awayFrom, + "comment" => comment, + "expiresIn" => expiresIn, + "resourceIdentifier" => resourceIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return arc_zonal_shift( - "POST", - "/zonalshifts", - Dict{String,Any}( - "awayFrom" => awayFrom, - "comment" => comment, - "expiresIn" => expiresIn, - "resourceIdentifier" => resourceIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_zonal_shift( awayFrom, comment, @@ -396,6 +420,48 @@ function start_zonal_shift( ) end +""" + update_autoshift_observer_notification_status(status) + update_autoshift_observer_notification_status(status, params::Dict{String,<:Any}) + +Update the status of autoshift observer notification. Autoshift observer notification +enables you to be notified, through Amazon EventBridge, when there is an autoshift event +for zonal autoshift. If the status is ENABLED, Route 53 ARC includes all autoshift events +when you use the EventBridge pattern Autoshift In Progress. When the status is DISABLED, +Route 53 ARC includes only autoshift events for autoshifts when one or more of your +resources is included in the autoshift. For more information, see Notifications for +practice runs and autoshifts in the Amazon Route 53 Application Recovery Controller +Developer Guide. + +# Arguments +- `status`: The status to set for autoshift observer notification. If the status is + ENABLED, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge + pattern Autoshift In Progress. When the status is DISABLED, Route 53 ARC includes only + autoshift events for autoshifts when one or more of your resources is included in the + autoshift. + +""" +update_autoshift_observer_notification_status( + status; aws_config::AbstractAWSConfig=current_aws_config() +) = arc_zonal_shift( + "PUT", + "/autoshift-observer-notification", + Dict{String,Any}("status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_autoshift_observer_notification_status( + status, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return arc_zonal_shift( + "PUT", + "/autoshift-observer-notification", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("status" => status), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ update_practice_run_configuration(resource_identifier) update_practice_run_configuration(resource_identifier, params::Dict{String,<:Any}) @@ -431,16 +497,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"outcomeAlarms"`: Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice runs. """ -function update_practice_run_configuration( +update_practice_run_configuration( resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = arc_zonal_shift( + "PATCH", + "/configuration/$(resourceIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return arc_zonal_shift( - "PATCH", - "/configuration/$(resourceIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_practice_run_configuration( resourceIdentifier, params::AbstractDict{String}; @@ -459,32 +523,38 @@ end update_zonal_autoshift_configuration(resource_identifier, zonal_autoshift_status) update_zonal_autoshift_configuration(resource_identifier, zonal_autoshift_status, params::Dict{String,<:Any}) -You can update the zonal autoshift status for a resource, to enable or disable zonal -autoshift. When zonal autoshift is ENABLED, Amazon Web Services shifts away resource -traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that -there's an issue in the Availability Zone that could potentially affect customers. +The zonal autoshift configuration for a resource includes the practice run configuration +and the status for running autoshifts, zonal autoshift status. When a resource has a +practice run configuation, Route 53 ARC starts weekly zonal shifts for the resource, to +shift traffic away from an Availability Zone. Weekly practice runs help you to make sure +that your application can continue to operate normally with the loss of one Availability +Zone. You can update the zonal autoshift autoshift status to enable or disable zonal +autoshift. When zonal autoshift is ENABLED, you authorize Amazon Web Services to shift away +resource traffic for an application from an Availability Zone during events, on your +behalf, to help reduce time to recovery. Traffic is also shifted away for the required +weekly practice runs. # Arguments - `resource_identifier`: The identifier for the resource that you want to update the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource. - `zonal_autoshift_status`: The zonal autoshift status for the resource that you want to - update the zonal autoshift configuration for. + update the zonal autoshift configuration for. Choose ENABLED to authorize Amazon Web + Services to shift away resource traffic for an application from an Availability Zone during + events, on your behalf, to help reduce time to recovery. """ -function update_zonal_autoshift_configuration( +update_zonal_autoshift_configuration( resourceIdentifier, zonalAutoshiftStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = arc_zonal_shift( + "PUT", + "/managedresources/$(resourceIdentifier)", + Dict{String,Any}("zonalAutoshiftStatus" => zonalAutoshiftStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return arc_zonal_shift( - "PUT", - "/managedresources/$(resourceIdentifier)", - Dict{String,Any}("zonalAutoshiftStatus" => zonalAutoshiftStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_zonal_autoshift_configuration( resourceIdentifier, zonalAutoshiftStatus, @@ -533,16 +603,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys letter h: To specify that the value is in hours. For example: 20h means the zonal shift expires in 20 hours. 120m means the zonal shift expires in 120 minutes (2 hours). """ -function update_zonal_shift( - zonalShiftId; aws_config::AbstractAWSConfig=current_aws_config() -) - return arc_zonal_shift( +update_zonal_shift(zonalShiftId; aws_config::AbstractAWSConfig=current_aws_config()) = + arc_zonal_shift( "PATCH", "/zonalshifts/$(zonalShiftId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_zonal_shift( zonalShiftId, params::AbstractDict{String}; diff --git a/src/services/artifact.jl b/src/services/artifact.jl index a9057d48f..bc91fa631 100644 --- a/src/services/artifact.jl +++ b/src/services/artifact.jl @@ -11,14 +11,12 @@ using AWS.UUIDs Get the account settings for Artifact. """ -function get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return artifact( - "GET", - "/v1/account-settings/get"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = artifact( + "GET", + "/v1/account-settings/get"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -45,15 +43,14 @@ Get the content for a single report. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"reportVersion"`: Version for the report resource. """ -function get_report(reportId, termToken; aws_config::AbstractAWSConfig=current_aws_config()) - return artifact( +get_report(reportId, termToken; aws_config::AbstractAWSConfig=current_aws_config()) = + artifact( "GET", "/v1/report/get", Dict{String,Any}("reportId" => reportId, "termToken" => termToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_report( reportId, termToken, @@ -88,15 +85,14 @@ Get the metadata for a single report. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"reportVersion"`: Version for the report resource. """ -function get_report_metadata(reportId; aws_config::AbstractAWSConfig=current_aws_config()) - return artifact( +get_report_metadata(reportId; aws_config::AbstractAWSConfig=current_aws_config()) = + artifact( "GET", "/v1/report/getMetadata", Dict{String,Any}("reportId" => reportId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_report_metadata( reportId, params::AbstractDict{String}; @@ -126,15 +122,14 @@ Get the Term content associated with a single report. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"reportVersion"`: Version for the report resource. """ -function get_term_for_report(reportId; aws_config::AbstractAWSConfig=current_aws_config()) - return artifact( +get_term_for_report(reportId; aws_config::AbstractAWSConfig=current_aws_config()) = + artifact( "GET", "/v1/report/getTermForReport", Dict{String,Any}("reportId" => reportId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_term_for_report( reportId, params::AbstractDict{String}; @@ -162,11 +157,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum number of resources to return in the paginated response. - `"nextToken"`: Pagination token to request the next page of resources. """ -function list_reports(; aws_config::AbstractAWSConfig=current_aws_config()) - return artifact( - "GET", "/v1/report/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_reports(; aws_config::AbstractAWSConfig=current_aws_config()) = artifact( + "GET", "/v1/report/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_reports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -189,14 +182,12 @@ Put the account settings for Artifact. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"notificationSubscriptionStatus"`: Desired notification subscription status. """ -function put_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return artifact( - "PUT", - "/v1/account-settings/put"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = artifact( + "PUT", + "/v1/account-settings/put"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/athena.jl b/src/services/athena.jl index a7e27a2a2..788b07b90 100644 --- a/src/services/athena.jl +++ b/src/services/athena.jl @@ -21,16 +21,13 @@ IDs. - `named_query_ids`: An array of query IDs. """ -function batch_get_named_query( - NamedQueryIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +batch_get_named_query(NamedQueryIds; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "BatchGetNamedQuery", Dict{String,Any}("NamedQueryIds" => NamedQueryIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_named_query( NamedQueryIds, params::AbstractDict{String}; @@ -61,18 +58,16 @@ UnprocessedPreparedStatementNames. - `work_group`: The name of the workgroup to which the prepared statements belong. """ -function batch_get_prepared_statement( +batch_get_prepared_statement( PreparedStatementNames, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "BatchGetPreparedStatement", + Dict{String,Any}( + "PreparedStatementNames" => PreparedStatementNames, "WorkGroup" => WorkGroup + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "BatchGetPreparedStatement", - Dict{String,Any}( - "PreparedStatementNames" => PreparedStatementNames, "WorkGroup" => WorkGroup - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_prepared_statement( PreparedStatementNames, WorkGroup, @@ -110,16 +105,14 @@ BatchGetNamedQueryInput to get details about named queries. - `query_execution_ids`: An array of query execution IDs. """ -function batch_get_query_execution( +batch_get_query_execution( QueryExecutionIds; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "BatchGetQueryExecution", + Dict{String,Any}("QueryExecutionIds" => QueryExecutionIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "BatchGetQueryExecution", - Dict{String,Any}("QueryExecutionIds" => QueryExecutionIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_query_execution( QueryExecutionIds, params::AbstractDict{String}; @@ -150,16 +143,13 @@ and view it for historical reference. - `name`: The name of the capacity reservation to cancel. """ -function cancel_capacity_reservation( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +cancel_capacity_reservation(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "CancelCapacityReservation", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_capacity_reservation( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -186,16 +176,14 @@ processing units. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags for the capacity reservation. """ -function create_capacity_reservation( +create_capacity_reservation( Name, TargetDpus; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "CreateCapacityReservation", + Dict{String,Any}("Name" => Name, "TargetDpus" => TargetDpus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "CreateCapacityReservation", - Dict{String,Any}("Name" => Name, "TargetDpus" => TargetDpus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_capacity_reservation( Name, TargetDpus, @@ -249,14 +237,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and cannot modify. - `"Tags"`: A list of comma separated tags to add to the data catalog that is created. """ -function create_data_catalog(Name, Type; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( +create_data_catalog(Name, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "CreateDataCatalog", Dict{String,Any}("Name" => Name, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_data_catalog( Name, Type, @@ -297,21 +284,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The query description. - `"WorkGroup"`: The name of the workgroup in which the named query is being created. """ -function create_named_query( +create_named_query( Database, Name, QueryString; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "CreateNamedQuery", + Dict{String,Any}( + "Database" => Database, + "Name" => Name, + "QueryString" => QueryString, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "CreateNamedQuery", - Dict{String,Any}( - "Database" => Database, - "Name" => Name, - "QueryString" => QueryString, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_named_query( Database, Name, @@ -359,16 +344,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail. """ -function create_notebook( - Name, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +create_notebook(Name, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "CreateNotebook", Dict{String,Any}("Name" => Name, "WorkGroup" => WorkGroup); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_notebook( Name, WorkGroup, @@ -402,23 +384,21 @@ Creates a prepared statement for use with SQL queries in Athena. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The description of the prepared statement. """ -function create_prepared_statement( +create_prepared_statement( QueryStatement, StatementName, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config(), +) = athena( + "CreatePreparedStatement", + Dict{String,Any}( + "QueryStatement" => QueryStatement, + "StatementName" => StatementName, + "WorkGroup" => WorkGroup, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "CreatePreparedStatement", - Dict{String,Any}( - "QueryStatement" => QueryStatement, - "StatementName" => StatementName, - "WorkGroup" => WorkGroup, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_prepared_statement( QueryStatement, StatementName, @@ -457,16 +437,14 @@ programmatic access. - `session_id`: The session ID. """ -function create_presigned_notebook_url( +create_presigned_notebook_url( SessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "CreatePresignedNotebookUrl", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "CreatePresignedNotebookUrl", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_presigned_notebook_url( SessionId, params::AbstractDict{String}; @@ -505,14 +483,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The workgroup description. - `"Tags"`: A list of comma separated tags to add to the workgroup that is created. """ -function create_work_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "CreateWorkGroup", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_work_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "CreateWorkGroup", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_work_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -538,16 +514,13 @@ ListCapacityReservations. - `name`: The name of the capacity reservation to delete. """ -function delete_capacity_reservation( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +delete_capacity_reservation(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "DeleteCapacityReservation", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_capacity_reservation( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -569,14 +542,12 @@ Deletes a data catalog. - `name`: The name of the data catalog to delete. """ -function delete_data_catalog(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "DeleteDataCatalog", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_data_catalog(Name; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "DeleteDataCatalog", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_data_catalog( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -598,16 +569,13 @@ Deletes the named query if you have access to the workgroup in which the query w - `named_query_id`: The unique ID of the query to delete. """ -function delete_named_query( - NamedQueryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +delete_named_query(NamedQueryId; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "DeleteNamedQuery", Dict{String,Any}("NamedQueryId" => NamedQueryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_named_query( NamedQueryId, params::AbstractDict{String}; @@ -633,14 +601,12 @@ Deletes the specified notebook. - `notebook_id`: The ID of the notebook to delete. """ -function delete_notebook(NotebookId; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "DeleteNotebook", - Dict{String,Any}("NotebookId" => NotebookId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_notebook(NotebookId; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "DeleteNotebook", + Dict{String,Any}("NotebookId" => NotebookId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_notebook( NotebookId, params::AbstractDict{String}; @@ -667,16 +633,14 @@ Deletes the prepared statement with the specified name from the specified workgr - `work_group`: The workgroup to which the statement to be deleted belongs. """ -function delete_prepared_statement( +delete_prepared_statement( StatementName, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "DeletePreparedStatement", + Dict{String,Any}("StatementName" => StatementName, "WorkGroup" => WorkGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "DeletePreparedStatement", - Dict{String,Any}("StatementName" => StatementName, "WorkGroup" => WorkGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_prepared_statement( StatementName, WorkGroup, @@ -713,14 +677,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RecursiveDeleteOption"`: The option to delete the workgroup and its contents even if the workgroup contains any named queries, query executions, or notebooks. """ -function delete_work_group(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "DeleteWorkGroup", - Dict{String,Any}("WorkGroup" => WorkGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_work_group(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "DeleteWorkGroup", + Dict{String,Any}("WorkGroup" => WorkGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_work_group( WorkGroup, params::AbstractDict{String}; @@ -746,14 +708,12 @@ Exports the specified notebook and its metadata. - `notebook_id`: The ID of the notebook to export. """ -function export_notebook(NotebookId; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ExportNotebook", - Dict{String,Any}("NotebookId" => NotebookId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +export_notebook(NotebookId; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "ExportNotebook", + Dict{String,Any}("NotebookId" => NotebookId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function export_notebook( NotebookId, params::AbstractDict{String}; @@ -779,16 +739,14 @@ Describes a previously submitted calculation execution. - `calculation_execution_id`: The calculation execution UUID. """ -function get_calculation_execution( +get_calculation_execution( CalculationExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "GetCalculationExecution", + Dict{String,Any}("CalculationExecutionId" => CalculationExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "GetCalculationExecution", - Dict{String,Any}("CalculationExecutionId" => CalculationExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_calculation_execution( CalculationExecutionId, params::AbstractDict{String}; @@ -818,16 +776,14 @@ Retrieves the unencrypted code that was executed for the calculation. - `calculation_execution_id`: The calculation execution UUID. """ -function get_calculation_execution_code( +get_calculation_execution_code( CalculationExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "GetCalculationExecutionCode", + Dict{String,Any}("CalculationExecutionId" => CalculationExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "GetCalculationExecutionCode", - Dict{String,Any}("CalculationExecutionId" => CalculationExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_calculation_execution_code( CalculationExecutionId, params::AbstractDict{String}; @@ -857,16 +813,14 @@ Gets the status of a current calculation. - `calculation_execution_id`: The calculation execution UUID. """ -function get_calculation_execution_status( +get_calculation_execution_status( CalculationExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "GetCalculationExecutionStatus", + Dict{String,Any}("CalculationExecutionId" => CalculationExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "GetCalculationExecutionStatus", - Dict{String,Any}("CalculationExecutionId" => CalculationExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_calculation_execution_status( CalculationExecutionId, params::AbstractDict{String}; @@ -897,16 +851,14 @@ Gets the capacity assignment configuration for a capacity reservation, if one ex capacity assignment configuration for. """ -function get_capacity_assignment_configuration( +get_capacity_assignment_configuration( CapacityReservationName; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "GetCapacityAssignmentConfiguration", + Dict{String,Any}("CapacityReservationName" => CapacityReservationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "GetCapacityAssignmentConfiguration", - Dict{String,Any}("CapacityReservationName" => CapacityReservationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_capacity_assignment_configuration( CapacityReservationName, params::AbstractDict{String}; @@ -936,14 +888,12 @@ Returns information about the capacity reservation with the specified name. - `name`: The name of the capacity reservation. """ -function get_capacity_reservation(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "GetCapacityReservation", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_capacity_reservation(Name; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "GetCapacityReservation", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_capacity_reservation( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -969,14 +919,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WorkGroup"`: The name of the workgroup. Required if making an IAM Identity Center request. """ -function get_data_catalog(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "GetDataCatalog", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_data_catalog(Name; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "GetDataCatalog", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_data_catalog( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1003,16 +951,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WorkGroup"`: The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog. """ -function get_database( +get_database( CatalogName, DatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "GetDatabase", + Dict{String,Any}("CatalogName" => CatalogName, "DatabaseName" => DatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "GetDatabase", - Dict{String,Any}("CatalogName" => CatalogName, "DatabaseName" => DatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_database( CatalogName, DatabaseName, @@ -1046,14 +992,12 @@ which the query was saved. - `named_query_id`: The unique ID of the query. Use ListNamedQueries to get query IDs. """ -function get_named_query(NamedQueryId; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "GetNamedQuery", - Dict{String,Any}("NamedQueryId" => NamedQueryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_named_query(NamedQueryId; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "GetNamedQuery", + Dict{String,Any}("NamedQueryId" => NamedQueryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_named_query( NamedQueryId, params::AbstractDict{String}; @@ -1079,16 +1023,13 @@ Retrieves notebook metadata for the specified notebook ID. - `notebook_id`: The ID of the notebook whose metadata is to be retrieved. """ -function get_notebook_metadata( - NotebookId; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +get_notebook_metadata(NotebookId; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "GetNotebookMetadata", Dict{String,Any}("NotebookId" => NotebookId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_notebook_metadata( NotebookId, params::AbstractDict{String}; @@ -1115,16 +1056,14 @@ Retrieves the prepared statement with the specified name from the specified work - `work_group`: The workgroup to which the statement to be retrieved belongs. """ -function get_prepared_statement( +get_prepared_statement( StatementName, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "GetPreparedStatement", + Dict{String,Any}("StatementName" => StatementName, "WorkGroup" => WorkGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "GetPreparedStatement", - Dict{String,Any}("StatementName" => StatementName, "WorkGroup" => WorkGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_prepared_statement( StatementName, WorkGroup, @@ -1159,16 +1098,13 @@ is saved with a unique ID. - `query_execution_id`: The unique ID of the query execution. """ -function get_query_execution( - QueryExecutionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +get_query_execution(QueryExecutionId; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "GetQueryExecution", Dict{String,Any}("QueryExecutionId" => QueryExecutionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_query_execution( QueryExecutionId, params::AbstractDict{String}; @@ -1211,16 +1147,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call. """ -function get_query_results( - QueryExecutionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +get_query_results(QueryExecutionId; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "GetQueryResults", Dict{String,Any}("QueryExecutionId" => QueryExecutionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_query_results( QueryExecutionId, params::AbstractDict{String}; @@ -1254,16 +1187,14 @@ included when a query has row-level filters defined in Lake Formation. - `query_execution_id`: The unique ID of the query execution. """ -function get_query_runtime_statistics( +get_query_runtime_statistics( QueryExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "GetQueryRuntimeStatistics", + Dict{String,Any}("QueryExecutionId" => QueryExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "GetQueryRuntimeStatistics", - Dict{String,Any}("QueryExecutionId" => QueryExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_query_runtime_statistics( QueryExecutionId, params::AbstractDict{String}; @@ -1292,14 +1223,12 @@ configuration. - `session_id`: The session ID. """ -function get_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "GetSession", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "GetSession", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_session( SessionId, params::AbstractDict{String}; @@ -1325,14 +1254,12 @@ Gets the current status of a session. - `session_id`: The session ID. """ -function get_session_status(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "GetSessionStatus", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_session_status(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "GetSessionStatus", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_session_status( SessionId, params::AbstractDict{String}; @@ -1365,20 +1292,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WorkGroup"`: The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog. """ -function get_table_metadata( +get_table_metadata( CatalogName, DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "GetTableMetadata", + Dict{String,Any}( + "CatalogName" => CatalogName, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "GetTableMetadata", - Dict{String,Any}( - "CatalogName" => CatalogName, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_table_metadata( CatalogName, DatabaseName, @@ -1414,14 +1339,12 @@ Returns information about the workgroup with the specified name. - `work_group`: The name of the workgroup. """ -function get_work_group(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "GetWorkGroup", - Dict{String,Any}("WorkGroup" => WorkGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_work_group(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "GetWorkGroup", + Dict{String,Any}("WorkGroup" => WorkGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_work_group( WorkGroup, params::AbstractDict{String}; @@ -1463,16 +1386,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in ipynb format. - `"Payload"`: The notebook content to be imported. The payload must be in ipynb format. """ -function import_notebook( - Name, Type, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +import_notebook(Name, Type, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "ImportNotebook", Dict{String,Any}("Name" => Name, "Type" => Type, "WorkGroup" => WorkGroup); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function import_notebook( Name, Type, @@ -1507,11 +1427,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. """ -function list_application_dpusizes(; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListApplicationDPUSizes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_application_dpusizes(; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "ListApplicationDPUSizes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_application_dpusizes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1548,16 +1466,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys COMPLETED - The calculation has completed without error. FAILED - The calculation failed and is no longer running. """ -function list_calculation_executions( - SessionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +list_calculation_executions(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "ListCalculationExecutions", Dict{String,Any}("SessionId" => SessionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_calculation_executions( SessionId, params::AbstractDict{String}; @@ -1585,11 +1500,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. """ -function list_capacity_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListCapacityReservations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_capacity_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "ListCapacityReservations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_capacity_reservations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1618,11 +1531,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WorkGroup"`: The name of the workgroup. Required if making an IAM Identity Center request. """ -function list_data_catalogs(; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListDataCatalogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_data_catalogs(; aws_config::AbstractAWSConfig=current_aws_config()) = + athena("ListDataCatalogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_data_catalogs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1649,14 +1559,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WorkGroup"`: The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog. """ -function list_databases(CatalogName; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListDatabases", - Dict{String,Any}("CatalogName" => CatalogName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_databases(CatalogName; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "ListDatabases", + Dict{String,Any}("CatalogName" => CatalogName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_databases( CatalogName, params::AbstractDict{String}; @@ -1686,11 +1594,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call. """ -function list_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + athena("ListEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_engine_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1721,14 +1626,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call. """ -function list_executors(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListExecutors", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_executors(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "ListExecutors", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_executors( SessionId, params::AbstractDict{String}; @@ -1761,11 +1664,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WorkGroup"`: The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned. """ -function list_named_queries(; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListNamedQueries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_named_queries(; aws_config::AbstractAWSConfig=current_aws_config()) = + athena("ListNamedQueries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_named_queries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1790,16 +1690,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. """ -function list_notebook_metadata( - WorkGroup; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +list_notebook_metadata(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "ListNotebookMetadata", Dict{String,Any}("WorkGroup" => WorkGroup); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_notebook_metadata( WorkGroup, params::AbstractDict{String}; @@ -1833,16 +1730,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call. """ -function list_notebook_sessions( - NotebookId; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +list_notebook_sessions(NotebookId; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "ListNotebookSessions", Dict{String,Any}("NotebookId" => NotebookId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_notebook_sessions( NotebookId, params::AbstractDict{String}; @@ -1874,16 +1768,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call. """ -function list_prepared_statements( - WorkGroup; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +list_prepared_statements(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "ListPreparedStatements", Dict{String,Any}("WorkGroup" => WorkGroup); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_prepared_statements( WorkGroup, params::AbstractDict{String}; @@ -1918,11 +1809,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys workgroup is not specified, a list of available query execution IDs for the queries in the primary workgroup is returned. """ -function list_query_executions(; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListQueryExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_query_executions(; aws_config::AbstractAWSConfig=current_aws_config()) = + athena("ListQueryExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_query_executions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1958,14 +1846,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys its resources are no longer running. DEGRADED - The session has no healthy coordinators. FAILED - Due to a failure, the session and its resources are no longer running. """ -function list_sessions(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "ListSessions", - Dict{String,Any}("WorkGroup" => WorkGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_sessions(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "ListSessions", + Dict{String,Any}("WorkGroup" => WorkGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_sessions( WorkGroup, params::AbstractDict{String}; @@ -2002,16 +1888,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WorkGroup"`: The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog. """ -function list_table_metadata( +list_table_metadata( CatalogName, DatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "ListTableMetadata", + Dict{String,Any}("CatalogName" => CatalogName, "DatabaseName" => DatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "ListTableMetadata", - Dict{String,Any}("CatalogName" => CatalogName, "DatabaseName" => DatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_table_metadata( CatalogName, DatabaseName, @@ -2051,16 +1935,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results for this request, where the request lists the tags for the resource with the specified ARN. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -2089,9 +1970,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call. """ -function list_work_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return athena("ListWorkGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_work_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + athena("ListWorkGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_work_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2114,21 +1994,19 @@ existing capacity assignment configuration. assignment configuration for. """ -function put_capacity_assignment_configuration( +put_capacity_assignment_configuration( CapacityAssignments, CapacityReservationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = athena( + "PutCapacityAssignmentConfiguration", + Dict{String,Any}( + "CapacityAssignments" => CapacityAssignments, + "CapacityReservationName" => CapacityReservationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "PutCapacityAssignmentConfiguration", - Dict{String,Any}( - "CapacityAssignments" => CapacityAssignments, - "CapacityReservationName" => CapacityReservationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_capacity_assignment_configuration( CapacityAssignments, CapacityReservationName, @@ -2181,16 +2059,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instead of CalculationConfigurationCodeBlock, which is deprecated. - `"Description"`: A description of the calculation. """ -function start_calculation_execution( - SessionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +start_calculation_execution(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "StartCalculationExecution", Dict{String,Any}("SessionId" => SessionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_calculation_execution( SessionId, params::AbstractDict{String}; @@ -2242,10 +2117,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResultReuseConfiguration"`: Specifies the query result reuse behavior for the query. - `"WorkGroup"`: The name of the workgroup in which the query is being started. """ -function start_query_execution( - QueryString; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +start_query_execution(QueryString; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "StartQueryExecution", Dict{String,Any}( "QueryString" => QueryString, "ClientRequestToken" => string(uuid4()) @@ -2253,7 +2126,6 @@ function start_query_execution( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_query_execution( QueryString, params::AbstractDict{String}; @@ -2304,18 +2176,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys EngineConfigurationAdditionalConfigs. - `"SessionIdleTimeoutInMinutes"`: The idle timeout in minutes for the session. """ -function start_session( +start_session( EngineConfiguration, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "StartSession", + Dict{String,Any}( + "EngineConfiguration" => EngineConfiguration, "WorkGroup" => WorkGroup + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "StartSession", - Dict{String,Any}( - "EngineConfiguration" => EngineConfiguration, "WorkGroup" => WorkGroup - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_session( EngineConfiguration, WorkGroup, @@ -2353,16 +2223,14 @@ terminating the session in which the calculation is running. - `calculation_execution_id`: The calculation execution UUID. """ -function stop_calculation_execution( +stop_calculation_execution( CalculationExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "StopCalculationExecution", + Dict{String,Any}("CalculationExecutionId" => CalculationExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "StopCalculationExecution", - Dict{String,Any}("CalculationExecutionId" => CalculationExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_calculation_execution( CalculationExecutionId, params::AbstractDict{String}; @@ -2393,16 +2261,13 @@ ran. - `query_execution_id`: The unique ID of the query execution to stop. """ -function stop_query_execution( - QueryExecutionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +stop_query_execution(QueryExecutionId; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "StopQueryExecution", Dict{String,Any}("QueryExecutionId" => QueryExecutionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_query_execution( QueryExecutionId, params::AbstractDict{String}; @@ -2441,14 +2306,13 @@ separate them by commas. resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -2482,14 +2346,12 @@ but may display as FAILED instead of STOPPED. - `session_id`: The session ID. """ -function terminate_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "TerminateSession", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +terminate_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "TerminateSession", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function terminate_session( SessionId, params::AbstractDict{String}; @@ -2517,16 +2379,13 @@ Removes one or more tags from an Athena resource. from the specified resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return athena( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -2559,16 +2418,14 @@ specified name. - `target_dpus`: The new number of requested data processing units. """ -function update_capacity_reservation( +update_capacity_reservation( Name, TargetDpus; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "UpdateCapacityReservation", + Dict{String,Any}("Name" => Name, "TargetDpus" => TargetDpus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "UpdateCapacityReservation", - Dict{String,Any}("Name" => Name, "TargetDpus" => TargetDpus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_capacity_reservation( Name, TargetDpus, @@ -2616,14 +2473,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys metadata and data, use the following syntax to specify your Lambda function. function=lambda_arn """ -function update_data_catalog(Name, Type; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( +update_data_catalog(Name, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + athena( "UpdateDataCatalog", Dict{String,Any}("Name" => Name, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_data_catalog( Name, Type, @@ -2655,18 +2511,16 @@ Updates a NamedQuery object. The database or workgroup cannot be updated. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The query description. """ -function update_named_query( +update_named_query( Name, NamedQueryId, QueryString; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "UpdateNamedQuery", + Dict{String,Any}( + "Name" => Name, "NamedQueryId" => NamedQueryId, "QueryString" => QueryString + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "UpdateNamedQuery", - Dict{String,Any}( - "Name" => Name, "NamedQueryId" => NamedQueryId, "QueryString" => QueryString - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_named_query( Name, NamedQueryId, @@ -2713,16 +2567,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SessionId"`: The active notebook session ID. Required if the notebook has an active session. """ -function update_notebook( +update_notebook( NotebookId, Payload, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "UpdateNotebook", + Dict{String,Any}("NotebookId" => NotebookId, "Payload" => Payload, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "UpdateNotebook", - Dict{String,Any}("NotebookId" => NotebookId, "Payload" => Payload, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_notebook( NotebookId, Payload, @@ -2764,16 +2616,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail. """ -function update_notebook_metadata( +update_notebook_metadata( Name, NotebookId; aws_config::AbstractAWSConfig=current_aws_config() +) = athena( + "UpdateNotebookMetadata", + Dict{String,Any}("Name" => Name, "NotebookId" => NotebookId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "UpdateNotebookMetadata", - Dict{String,Any}("Name" => Name, "NotebookId" => NotebookId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_notebook_metadata( Name, NotebookId, @@ -2807,23 +2657,21 @@ Updates a prepared statement. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The description of the prepared statement. """ -function update_prepared_statement( +update_prepared_statement( QueryStatement, StatementName, WorkGroup; aws_config::AbstractAWSConfig=current_aws_config(), +) = athena( + "UpdatePreparedStatement", + Dict{String,Any}( + "QueryStatement" => QueryStatement, + "StatementName" => StatementName, + "WorkGroup" => WorkGroup, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return athena( - "UpdatePreparedStatement", - Dict{String,Any}( - "QueryStatement" => QueryStatement, - "StatementName" => StatementName, - "WorkGroup" => WorkGroup, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_prepared_statement( QueryStatement, StatementName, @@ -2865,14 +2713,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The workgroup description. - `"State"`: The workgroup state that will be updated for the given workgroup. """ -function update_work_group(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) - return athena( - "UpdateWorkGroup", - Dict{String,Any}("WorkGroup" => WorkGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_work_group(WorkGroup; aws_config::AbstractAWSConfig=current_aws_config()) = athena( + "UpdateWorkGroup", + Dict{String,Any}("WorkGroup" => WorkGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_work_group( WorkGroup, params::AbstractDict{String}; diff --git a/src/services/auditmanager.jl b/src/services/auditmanager.jl index 06072aecf..40635edb8 100644 --- a/src/services/auditmanager.jl +++ b/src/services/auditmanager.jl @@ -15,17 +15,15 @@ using AWS.UUIDs - `evidence_folder_id`: The identifier for the folder that the evidence is stored in. """ -function associate_assessment_report_evidence_folder( +associate_assessment_report_evidence_folder( assessmentId, evidenceFolderId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "PUT", + "/assessments/$(assessmentId)/associateToAssessmentReport", + Dict{String,Any}("evidenceFolderId" => evidenceFolderId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessments/$(assessmentId)/associateToAssessmentReport", - Dict{String,Any}("evidenceFolderId" => evidenceFolderId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_assessment_report_evidence_folder( assessmentId, evidenceFolderId, @@ -57,22 +55,18 @@ end - `evidence_ids`: The list of evidence identifiers. """ -function batch_associate_assessment_report_evidence( +batch_associate_assessment_report_evidence( assessmentId, evidenceFolderId, evidenceIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "PUT", + "/assessments/$(assessmentId)/batchAssociateToAssessmentReport", + Dict{String,Any}("evidenceFolderId" => evidenceFolderId, "evidenceIds" => evidenceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessments/$(assessmentId)/batchAssociateToAssessmentReport", - Dict{String,Any}( - "evidenceFolderId" => evidenceFolderId, "evidenceIds" => evidenceIds - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_assessment_report_evidence( assessmentId, evidenceFolderId, @@ -109,19 +103,17 @@ end Manager. """ -function batch_create_delegation_by_assessment( +batch_create_delegation_by_assessment( assessmentId, createDelegationRequests; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "POST", + "/assessments/$(assessmentId)/delegations", + Dict{String,Any}("createDelegationRequests" => createDelegationRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/assessments/$(assessmentId)/delegations", - Dict{String,Any}("createDelegationRequests" => createDelegationRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_delegation_by_assessment( assessmentId, createDelegationRequests, @@ -154,17 +146,15 @@ end - `delegation_ids`: The identifiers for the delegations. """ -function batch_delete_delegation_by_assessment( +batch_delete_delegation_by_assessment( assessmentId, delegationIds; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "PUT", + "/assessments/$(assessmentId)/delegations", + Dict{String,Any}("delegationIds" => delegationIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessments/$(assessmentId)/delegations", - Dict{String,Any}("delegationIds" => delegationIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_delegation_by_assessment( assessmentId, delegationIds, @@ -194,22 +184,18 @@ end - `evidence_ids`: The list of evidence identifiers. """ -function batch_disassociate_assessment_report_evidence( +batch_disassociate_assessment_report_evidence( assessmentId, evidenceFolderId, evidenceIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "PUT", + "/assessments/$(assessmentId)/batchDisassociateFromAssessmentReport", + Dict{String,Any}("evidenceFolderId" => evidenceFolderId, "evidenceIds" => evidenceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessments/$(assessmentId)/batchDisassociateFromAssessmentReport", - Dict{String,Any}( - "evidenceFolderId" => evidenceFolderId, "evidenceIds" => evidenceIds - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_assessment_report_evidence( assessmentId, evidenceFolderId, @@ -255,21 +241,19 @@ Quotas and restrictions for Audit Manager. - `manual_evidence`: The list of manual evidence objects. """ -function batch_import_evidence_to_assessment_control( +batch_import_evidence_to_assessment_control( assessmentId, controlId, controlSetId, manualEvidence; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "POST", + "/assessments/$(assessmentId)/controlSets/$(controlSetId)/controls/$(controlId)/evidence", + Dict{String,Any}("manualEvidence" => manualEvidence); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/assessments/$(assessmentId)/controlSets/$(controlSetId)/controls/$(controlId)/evidence", - Dict{String,Any}("manualEvidence" => manualEvidence); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_import_evidence_to_assessment_control( assessmentId, controlId, @@ -309,28 +293,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The optional description of the assessment to be created. - `"tags"`: The tags that are associated with the assessment. """ -function create_assessment( +create_assessment( assessmentReportsDestination, frameworkId, name, roles, scope; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "POST", + "/assessments", + Dict{String,Any}( + "assessmentReportsDestination" => assessmentReportsDestination, + "frameworkId" => frameworkId, + "name" => name, + "roles" => roles, + "scope" => scope, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/assessments", - Dict{String,Any}( - "assessmentReportsDestination" => assessmentReportsDestination, - "frameworkId" => frameworkId, - "name" => name, - "roles" => roles, - "scope" => scope, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_assessment( assessmentReportsDestination, frameworkId, @@ -378,17 +360,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: An optional description for the new custom framework. - `"tags"`: The tags that are associated with the framework. """ -function create_assessment_framework( +create_assessment_framework( controlSets, name; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "POST", + "/assessmentFrameworks", + Dict{String,Any}("controlSets" => controlSets, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/assessmentFrameworks", - Dict{String,Any}("controlSets" => controlSets, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_assessment_framework( controlSets, name, @@ -433,17 +413,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys validation exceptions, see Troubleshooting evidence finder issues in the Audit Manager User Guide. """ -function create_assessment_report( +create_assessment_report( assessmentId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "POST", + "/assessments/$(assessmentId)/reports", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/assessments/$(assessmentId)/reports", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_assessment_report( assessmentId, name, @@ -478,17 +456,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags that are associated with the control. - `"testingInformation"`: The steps to follow to determine if the control is satisfied. """ -function create_control( +create_control( controlMappingSources, name; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "POST", + "/controls", + Dict{String,Any}("controlMappingSources" => controlMappingSources, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/controls", - Dict{String,Any}("controlMappingSources" => controlMappingSources, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_control( controlMappingSources, name, @@ -522,14 +498,13 @@ end - `assessment_id`: The identifier for the assessment. """ -function delete_assessment(assessmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( +delete_assessment(assessmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "DELETE", "/assessments/$(assessmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_assessment( assessmentId, params::AbstractDict{String}; @@ -554,16 +529,14 @@ end - `framework_id`: The identifier for the custom framework. """ -function delete_assessment_framework( +delete_assessment_framework( frameworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "DELETE", + "/assessmentFrameworks/$(frameworkId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "DELETE", - "/assessmentFrameworks/$(frameworkId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_assessment_framework( frameworkId, params::AbstractDict{String}; @@ -590,17 +563,15 @@ end request. """ -function delete_assessment_framework_share( +delete_assessment_framework_share( requestId, requestType; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "DELETE", + "/assessmentFrameworkShareRequests/$(requestId)", + Dict{String,Any}("requestType" => requestType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "DELETE", - "/assessmentFrameworkShareRequests/$(requestId)", - Dict{String,Any}("requestType" => requestType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_assessment_framework_share( requestId, requestType, @@ -642,16 +613,14 @@ Reference. - `assessment_report_id`: The unique identifier for the assessment report. """ -function delete_assessment_report( +delete_assessment_report( assessmentId, assessmentReportId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "DELETE", + "/assessments/$(assessmentId)/reports/$(assessmentReportId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "DELETE", - "/assessments/$(assessmentId)/reports/$(assessmentReportId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_assessment_report( assessmentId, assessmentReportId, @@ -681,14 +650,13 @@ custom control. - `control_id`: The unique identifier for the control. """ -function delete_control(controlId; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( +delete_control(controlId; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "DELETE", "/controls/$(controlId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_control( controlId, params::AbstractDict{String}; @@ -714,14 +682,12 @@ DeregistrationPolicy attribute to request the deletion of your data. For more i about data retention, see Data Protection in the Audit Manager User Guide. """ -function deregister_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "POST", - "/account/deregisterAccount"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +deregister_account(; aws_config::AbstractAWSConfig=current_aws_config()) = auditmanager( + "POST", + "/account/deregisterAccount"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function deregister_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -774,16 +740,14 @@ account at the time of deregistration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"adminAccountId"`: The identifier for the administrator account. """ -function deregister_organization_admin_account(; +deregister_organization_admin_account(; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "POST", + "/account/deregisterOrganizationAdminAccount"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/account/deregisterOrganizationAdminAccount"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_organization_admin_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -808,17 +772,15 @@ end in. """ -function disassociate_assessment_report_evidence_folder( +disassociate_assessment_report_evidence_folder( assessmentId, evidenceFolderId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "PUT", + "/assessments/$(assessmentId)/disassociateFromAssessmentReport", + Dict{String,Any}("evidenceFolderId" => evidenceFolderId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessments/$(assessmentId)/disassociateFromAssessmentReport", - Dict{String,Any}("evidenceFolderId" => evidenceFolderId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_assessment_report_evidence_folder( assessmentId, evidenceFolderId, @@ -845,11 +807,9 @@ end Gets the registration status of an account in Audit Manager. """ -function get_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "GET", "/account/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) = auditmanager( + "GET", "/account/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_account_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -872,14 +832,13 @@ Gets information about a specified assessment. - `assessment_id`: The unique identifier for the assessment. """ -function get_assessment(assessmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( +get_assessment(assessmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/assessments/$(assessmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_assessment( assessmentId, params::AbstractDict{String}; @@ -904,16 +863,13 @@ Gets information about a specified framework. - `framework_id`: The identifier for the framework. """ -function get_assessment_framework( - frameworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return auditmanager( +get_assessment_framework(frameworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/assessmentFrameworks/$(frameworkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_assessment_framework( frameworkId, params::AbstractDict{String}; @@ -939,16 +895,14 @@ end - `assessment_report_id`: The unique identifier for the assessment report. """ -function get_assessment_report_url( +get_assessment_report_url( assessmentId, assessmentReportId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "GET", + "/assessments/$(assessmentId)/reports/$(assessmentReportId)/url"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/assessments/$(assessmentId)/reports/$(assessmentReportId)/url"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_assessment_report_url( assessmentId, assessmentReportId, @@ -981,14 +935,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function get_change_logs(assessmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( +get_change_logs(assessmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/assessments/$(assessmentId)/changelogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_change_logs( assessmentId, params::AbstractDict{String}; @@ -1013,14 +966,12 @@ end - `control_id`: The identifier for the control. """ -function get_control(controlId; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "GET", - "/controls/$(controlId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_control(controlId; aws_config::AbstractAWSConfig=current_aws_config()) = auditmanager( + "GET", + "/controls/$(controlId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_control( controlId, params::AbstractDict{String}; @@ -1047,11 +998,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function get_delegations(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "GET", "/delegations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_delegations(; aws_config::AbstractAWSConfig=current_aws_config()) = auditmanager( + "GET", "/delegations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_delegations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1078,20 +1027,18 @@ end - `evidence_id`: The unique identifier for the evidence. """ -function get_evidence( +get_evidence( assessmentId, controlSetId, evidenceFolderId, evidenceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "GET", + "/assessments/$(assessmentId)/controlSets/$(controlSetId)/evidenceFolders/$(evidenceFolderId)/evidence/$(evidenceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/assessments/$(assessmentId)/controlSets/$(controlSetId)/evidenceFolders/$(evidenceFolderId)/evidence/$(evidenceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_evidence( assessmentId, controlSetId, @@ -1127,19 +1074,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function get_evidence_by_evidence_folder( +get_evidence_by_evidence_folder( assessmentId, controlSetId, evidenceFolderId; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "GET", + "/assessments/$(assessmentId)/controlSets/$(controlSetId)/evidenceFolders/$(evidenceFolderId)/evidence"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/assessments/$(assessmentId)/controlSets/$(controlSetId)/evidenceFolders/$(evidenceFolderId)/evidence"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_evidence_by_evidence_folder( assessmentId, controlSetId, @@ -1173,17 +1118,14 @@ see Quotas and restrictions for Audit Manager. Supported file types for manual evidence in the Audit Manager User Guide. """ -function get_evidence_file_upload_url( - fileName; aws_config::AbstractAWSConfig=current_aws_config() -) - return auditmanager( +get_evidence_file_upload_url(fileName; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/evidenceFileUploadUrl", Dict{String,Any}("fileName" => fileName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_evidence_file_upload_url( fileName, params::AbstractDict{String}; @@ -1213,19 +1155,17 @@ end in. """ -function get_evidence_folder( +get_evidence_folder( assessmentId, controlSetId, evidenceFolderId; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "GET", + "/assessments/$(assessmentId)/controlSets/$(controlSetId)/evidenceFolders/$(evidenceFolderId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/assessments/$(assessmentId)/controlSets/$(controlSetId)/evidenceFolders/$(evidenceFolderId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_evidence_folder( assessmentId, controlSetId, @@ -1257,16 +1197,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function get_evidence_folders_by_assessment( +get_evidence_folders_by_assessment( assessmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "GET", + "/assessments/$(assessmentId)/evidenceFolders"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/assessments/$(assessmentId)/evidenceFolders"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_evidence_folders_by_assessment( assessmentId, params::AbstractDict{String}; @@ -1299,19 +1237,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function get_evidence_folders_by_assessment_control( +get_evidence_folders_by_assessment_control( assessmentId, controlId, controlSetId; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "GET", + "/assessments/$(assessmentId)/evidenceFolders-by-assessment-control/$(controlSetId)/$(controlId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/assessments/$(assessmentId)/evidenceFolders-by-assessment-control/$(controlSetId)/$(controlId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_evidence_folders_by_assessment_control( assessmentId, controlId, @@ -1335,11 +1271,8 @@ end Gets the latest analytics data for all your current active assessments. """ -function get_insights(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "GET", "/insights"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_insights(; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager("GET", "/insights"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_insights( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1358,16 +1291,14 @@ Gets the latest analytics data for a specific active assessment. - `assessment_id`: The unique identifier for the assessment. """ -function get_insights_by_assessment( +get_insights_by_assessment( assessmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "GET", + "/insights/assessments/$(assessmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/insights/assessments/$(assessmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_insights_by_assessment( assessmentId, params::AbstractDict{String}; @@ -1390,16 +1321,13 @@ end organization. """ -function get_organization_admin_account(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return auditmanager( +get_organization_admin_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/account/organizationAdminAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_organization_admin_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1425,11 +1353,8 @@ services in scope manually, see I can't edit the services in scope for my assess Troubleshooting section of the Audit Manager user guide. """ -function get_services_in_scope(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "GET", "/services"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_services_in_scope(; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager("GET", "/services"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_services_in_scope( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1448,14 +1373,12 @@ end - `attribute`: The list of setting attribute enum values. """ -function get_settings(attribute; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "GET", - "/settings/$(attribute)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_settings(attribute; aws_config::AbstractAWSConfig=current_aws_config()) = auditmanager( + "GET", + "/settings/$(attribute)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_settings( attribute, params::AbstractDict{String}; @@ -1493,19 +1416,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_assessment_control_insights_by_control_domain( +list_assessment_control_insights_by_control_domain( assessmentId, controlDomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "GET", + "/insights/controls-by-assessment", + Dict{String,Any}("assessmentId" => assessmentId, "controlDomainId" => controlDomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/insights/controls-by-assessment", - Dict{String,Any}( - "assessmentId" => assessmentId, "controlDomainId" => controlDomainId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_assessment_control_insights_by_control_domain( assessmentId, controlDomainId, @@ -1545,17 +1464,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_assessment_framework_share_requests( +list_assessment_framework_share_requests( requestType; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "GET", + "/assessmentFrameworkShareRequests", + Dict{String,Any}("requestType" => requestType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/assessmentFrameworkShareRequests", - Dict{String,Any}("requestType" => requestType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_assessment_framework_share_requests( requestType, params::AbstractDict{String}; @@ -1589,17 +1506,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_assessment_frameworks( +list_assessment_frameworks( frameworkType; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "GET", + "/assessmentFrameworks", + Dict{String,Any}("frameworkType" => frameworkType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/assessmentFrameworks", - Dict{String,Any}("frameworkType" => frameworkType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_assessment_frameworks( frameworkType, params::AbstractDict{String}; @@ -1628,11 +1543,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_assessment_reports(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( +list_assessment_reports(; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/assessmentReports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_assessment_reports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1658,11 +1572,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token that's used to fetch the next set of results. - `"status"`: The current status of the assessment. """ -function list_assessments(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "GET", "/assessments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_assessments(; aws_config::AbstractAWSConfig=current_aws_config()) = auditmanager( + "GET", "/assessments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_assessments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1693,14 +1605,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_control_domain_insights(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( +list_control_domain_insights(; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/insights/control-domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_control_domain_insights( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1734,17 +1645,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_control_domain_insights_by_assessment( +list_control_domain_insights_by_assessment( assessmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "GET", + "/insights/control-domains-by-assessment", + Dict{String,Any}("assessmentId" => assessmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/insights/control-domains-by-assessment", - Dict{String,Any}("assessmentId" => assessmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_control_domain_insights_by_assessment( assessmentId, params::AbstractDict{String}; @@ -1783,17 +1692,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_control_insights_by_control_domain( +list_control_insights_by_control_domain( controlDomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "GET", + "/insights/controls", + Dict{String,Any}("controlDomainId" => controlDomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "GET", - "/insights/controls", - Dict{String,Any}("controlDomainId" => controlDomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_control_insights_by_control_domain( controlDomainId, params::AbstractDict{String}; @@ -1837,15 +1744,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results on a page or for an API request call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_controls(controlType; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( +list_controls(controlType; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/controls", Dict{String,Any}("controlType" => controlType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_controls( controlType, params::AbstractDict{String}; @@ -1877,17 +1783,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_keywords_for_data_source( - source; aws_config::AbstractAWSConfig=current_aws_config() -) - return auditmanager( +list_keywords_for_data_source(source; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/dataSourceKeywords", Dict{String,Any}("source" => source); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_keywords_for_data_source( source, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1912,11 +1815,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_notifications(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "GET", "/notifications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_notifications(; aws_config::AbstractAWSConfig=current_aws_config()) = auditmanager( + "GET", "/notifications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_notifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1939,16 +1840,13 @@ end - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return auditmanager( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1974,14 +1872,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"delegatedAdminAccount"`: The delegated administrator account for Audit Manager. - `"kmsKey"`: The KMS key details. """ -function register_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "POST", - "/account/registerAccount"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +register_account(; aws_config::AbstractAWSConfig=current_aws_config()) = auditmanager( + "POST", + "/account/registerAccount"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function register_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2005,17 +1901,15 @@ administrator for Audit Manager. - `admin_account_id`: The identifier for the delegated administrator account. """ -function register_organization_admin_account( +register_organization_admin_account( adminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "POST", + "/account/registerOrganizationAdminAccount", + Dict{String,Any}("adminAccountId" => adminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/account/registerOrganizationAdminAccount", - Dict{String,Any}("adminAccountId" => adminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_organization_admin_account( adminAccountId, params::AbstractDict{String}; @@ -2066,23 +1960,21 @@ see Framework sharing eligibility in the Audit Manager User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"comment"`: An optional comment from the sender about the share request. """ -function start_assessment_framework_share( +start_assessment_framework_share( destinationAccount, destinationRegion, frameworkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "POST", + "/assessmentFrameworks/$(frameworkId)/shareRequests", + Dict{String,Any}( + "destinationAccount" => destinationAccount, + "destinationRegion" => destinationRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/assessmentFrameworks/$(frameworkId)/shareRequests", - Dict{String,Any}( - "destinationAccount" => destinationAccount, - "destinationRegion" => destinationRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_assessment_framework_share( destinationAccount, destinationRegion, @@ -2119,15 +2011,14 @@ end - `tags`: The tags that are associated with the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2154,17 +2045,14 @@ end - `tag_keys`: The name or key of the tag. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return auditmanager( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2198,17 +2086,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys assessment that's being updated. - `"roles"`: The list of roles for the assessment. """ -function update_assessment( - assessmentId, scope; aws_config::AbstractAWSConfig=current_aws_config() -) - return auditmanager( +update_assessment(assessmentId, scope; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager( "PUT", "/assessments/$(assessmentId)", Dict{String,Any}("scope" => scope); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_assessment( assessmentId, scope, @@ -2240,19 +2125,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"commentBody"`: The comment body text for the control. - `"controlStatus"`: The status of the control. """ -function update_assessment_control( +update_assessment_control( assessmentId, controlId, controlSetId; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "PUT", + "/assessments/$(assessmentId)/controlSets/$(controlSetId)/controls/$(controlId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessments/$(assessmentId)/controlSets/$(controlSetId)/controls/$(controlId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_assessment_control( assessmentId, controlId, @@ -2282,21 +2165,19 @@ end - `status`: The status of the control set that's being updated. """ -function update_assessment_control_set_status( +update_assessment_control_set_status( assessmentId, comment, controlSetId, status; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "PUT", + "/assessments/$(assessmentId)/controlSets/$(controlSetId)/status", + Dict{String,Any}("comment" => comment, "status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessments/$(assessmentId)/controlSets/$(controlSetId)/status", - Dict{String,Any}("comment" => comment, "status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_assessment_control_set_status( assessmentId, comment, @@ -2335,17 +2216,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CIS or HIPAA. - `"description"`: The description of the updated framework. """ -function update_assessment_framework( +update_assessment_framework( controlSets, frameworkId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "PUT", + "/assessmentFrameworks/$(frameworkId)", + Dict{String,Any}("controlSets" => controlSets, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessmentFrameworks/$(frameworkId)", - Dict{String,Any}("controlSets" => controlSets, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_assessment_framework( controlSets, frameworkId, @@ -2381,17 +2260,15 @@ end request. """ -function update_assessment_framework_share( +update_assessment_framework_share( action, requestId, requestType; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "PUT", + "/assessmentFrameworkShareRequests/$(requestId)", + Dict{String,Any}("action" => action, "requestType" => requestType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessmentFrameworkShareRequests/$(requestId)", - Dict{String,Any}("action" => action, "requestType" => requestType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_assessment_framework_share( action, requestId, @@ -2425,17 +2302,15 @@ end - `status`: The current status of the assessment. """ -function update_assessment_status( +update_assessment_status( assessmentId, status; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "PUT", + "/assessments/$(assessmentId)/status", + Dict{String,Any}("status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/assessments/$(assessmentId)/status", - Dict{String,Any}("status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_assessment_status( assessmentId, status, @@ -2471,20 +2346,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"testingInformation"`: The steps that you should follow to determine if the control is met. """ -function update_control( +update_control( controlId, controlMappingSources, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = auditmanager( + "PUT", + "/controls/$(controlId)", + Dict{String,Any}("controlMappingSources" => controlMappingSources, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "PUT", - "/controls/$(controlId)", - Dict{String,Any}("controlMappingSources" => controlMappingSources, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_control( controlId, controlMappingSources, @@ -2533,11 +2406,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"snsTopic"`: The Amazon Simple Notification Service (Amazon SNS) topic that Audit Manager sends notifications to. """ -function update_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return auditmanager( - "PUT", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + auditmanager("PUT", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2557,17 +2427,15 @@ end is stored in. """ -function validate_assessment_report_integrity( +validate_assessment_report_integrity( s3RelativePath; aws_config::AbstractAWSConfig=current_aws_config() +) = auditmanager( + "POST", + "/assessmentReports/integrity", + Dict{String,Any}("s3RelativePath" => s3RelativePath); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auditmanager( - "POST", - "/assessmentReports/integrity", - Dict{String,Any}("s3RelativePath" => s3RelativePath); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_assessment_report_integrity( s3RelativePath, params::AbstractDict{String}; diff --git a/src/services/auto_scaling.jl b/src/services/auto_scaling.jl index 5fb2f4fbc..4df3d7b07 100644 --- a/src/services/auto_scaling.jl +++ b/src/services/auto_scaling.jl @@ -24,16 +24,13 @@ information, see Detach or attach instances in the Amazon EC2 Auto Scaling User Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InstanceIds"`: The IDs of the instances. You can specify up to 20 instances. """ -function attach_instances( - AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +attach_instances(AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "AttachInstances", Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function attach_instances( AutoScalingGroupName, params::AbstractDict{String}; @@ -80,21 +77,19 @@ in your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. Balancing DescribeTargetGroups API operation. """ -function attach_load_balancer_target_groups( +attach_load_balancer_target_groups( AutoScalingGroupName, TargetGroupARNs; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "AttachLoadBalancerTargetGroups", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "TargetGroupARNs" => TargetGroupARNs, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "AttachLoadBalancerTargetGroups", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "TargetGroupARNs" => TargetGroupARNs, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_load_balancer_target_groups( AutoScalingGroupName, TargetGroupARNs, @@ -141,21 +136,19 @@ group in the Amazon EC2 Auto Scaling User Guide. balancers. """ -function attach_load_balancers( +attach_load_balancers( AutoScalingGroupName, LoadBalancerNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "AttachLoadBalancers", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "LoadBalancerNames" => LoadBalancerNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "AttachLoadBalancers", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "LoadBalancerNames" => LoadBalancerNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_load_balancers( AutoScalingGroupName, LoadBalancerNames, @@ -197,19 +190,17 @@ detach a traffic source from the Auto Scaling group, call the DetachTrafficSourc up to 10 traffic sources. """ -function attach_traffic_sources( +attach_traffic_sources( AutoScalingGroupName, TrafficSources; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "AttachTrafficSources", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "TrafficSources" => TrafficSources, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "AttachTrafficSources", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "TrafficSources" => TrafficSources, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_traffic_sources( AutoScalingGroupName, TrafficSources, @@ -245,21 +236,19 @@ Deletes one or more scheduled actions for the specified Auto Scaling group. number allowed is 50. """ -function batch_delete_scheduled_action( +batch_delete_scheduled_action( AutoScalingGroupName, ScheduledActionNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "BatchDeleteScheduledAction", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "ScheduledActionNames" => ScheduledActionNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "BatchDeleteScheduledAction", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "ScheduledActionNames" => ScheduledActionNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_scheduled_action( AutoScalingGroupName, ScheduledActionNames, @@ -295,21 +284,19 @@ Creates or updates one or more scheduled scaling actions for an Auto Scaling gro allowed is 50. """ -function batch_put_scheduled_update_group_action( +batch_put_scheduled_update_group_action( AutoScalingGroupName, ScheduledUpdateGroupActions; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "BatchPutScheduledUpdateGroupAction", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "ScheduledUpdateGroupActions" => ScheduledUpdateGroupActions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "BatchPutScheduledUpdateGroupAction", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "ScheduledUpdateGroupActions" => ScheduledUpdateGroupActions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_scheduled_update_group_action( AutoScalingGroupName, ScheduledUpdateGroupActions, @@ -348,16 +335,14 @@ RollbackInstanceRefresh API to roll back instead. - `auto_scaling_group_name`: The name of the Auto Scaling group. """ -function cancel_instance_refresh( +cancel_instance_refresh( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "CancelInstanceRefresh", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "CancelInstanceRefresh", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_instance_refresh( AutoScalingGroupName, params::AbstractDict{String}; @@ -408,23 +393,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specific lifecycle action associated with an instance. Amazon EC2 Auto Scaling sends this token to the notification target you specified when you created the lifecycle hook. """ -function complete_lifecycle_action( +complete_lifecycle_action( AutoScalingGroupName, LifecycleActionResult, LifecycleHookName; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "CompleteLifecycleAction", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "LifecycleActionResult" => LifecycleActionResult, + "LifecycleHookName" => LifecycleHookName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "CompleteLifecycleAction", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "LifecycleActionResult" => LifecycleActionResult, - "LifecycleHookName" => LifecycleHookName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_lifecycle_action( AutoScalingGroupName, LifecycleActionResult, @@ -527,10 +510,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. Default: 0 seconds - `"HealthCheckType"`: A comma-separated value string of one or more health check types. - The valid values are EC2, ELB, and VPC_LATTICE. EC2 is the default health check and cannot - be disabled. For more information, see Health checks for instances in an Auto Scaling group - in the Amazon EC2 Auto Scaling User Guide. Only specify EC2 if you must clear a value that - was previously set. + The valid values are EC2, EBS, ELB, and VPC_LATTICE. EC2 is the default health check and + cannot be disabled. For more information, see Health checks for instances in an Auto + Scaling group in the Amazon EC2 Auto Scaling User Guide. Only specify EC2 if you must clear + a value that was previously set. - `"InstanceId"`: The ID of the instance used to base the launch configuration on. If specified, Amazon EC2 Auto Scaling uses the configuration values from the specified instance to create a new launch configuration. To get the instance ID, use the Amazon EC2 @@ -601,23 +584,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys VPCZoneIdentifier with AvailabilityZones, the subnets that you specify must reside in those Availability Zones. """ -function create_auto_scaling_group( +create_auto_scaling_group( AutoScalingGroupName, MaxSize, MinSize; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "CreateAutoScalingGroup", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "MaxSize" => MaxSize, + "MinSize" => MinSize, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "CreateAutoScalingGroup", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "MaxSize" => MaxSize, - "MinSize" => MinSize, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_auto_scaling_group( AutoScalingGroupName, MaxSize, @@ -740,16 +721,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB. """ -function create_launch_configuration( +create_launch_configuration( LaunchConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "CreateLaunchConfiguration", + Dict{String,Any}("LaunchConfigurationName" => LaunchConfigurationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "CreateLaunchConfiguration", - Dict{String,Any}("LaunchConfigurationName" => LaunchConfigurationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_launch_configuration( LaunchConfigurationName, params::AbstractDict{String}; @@ -782,14 +761,13 @@ in the Amazon EC2 Auto Scaling User Guide. - `tags`: One or more tags. """ -function create_or_update_tags(Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +create_or_update_tags(Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "CreateOrUpdateTags", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_or_update_tags( Tags, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -827,16 +805,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated with the group, without waiting for all instances to be terminated. This action also deletes any outstanding lifecycle actions associated with the group. """ -function delete_auto_scaling_group( +delete_auto_scaling_group( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DeleteAutoScalingGroup", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DeleteAutoScalingGroup", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_auto_scaling_group( AutoScalingGroupName, params::AbstractDict{String}; @@ -868,16 +844,14 @@ available for use. - `launch_configuration_name`: The name of the launch configuration. """ -function delete_launch_configuration( +delete_launch_configuration( LaunchConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DeleteLaunchConfiguration", + Dict{String,Any}("LaunchConfigurationName" => LaunchConfigurationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DeleteLaunchConfiguration", - Dict{String,Any}("LaunchConfigurationName" => LaunchConfigurationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_launch_configuration( LaunchConfigurationName, params::AbstractDict{String}; @@ -909,21 +883,19 @@ are completed first (ABANDON for launching instances, CONTINUE for terminating i - `lifecycle_hook_name`: The name of the lifecycle hook. """ -function delete_lifecycle_hook( +delete_lifecycle_hook( AutoScalingGroupName, LifecycleHookName; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "DeleteLifecycleHook", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "LifecycleHookName" => LifecycleHookName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DeleteLifecycleHook", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "LifecycleHookName" => LifecycleHookName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_lifecycle_hook( AutoScalingGroupName, LifecycleHookName, @@ -958,18 +930,16 @@ Deletes the specified notification. - `topic_arn`: The Amazon Resource Name (ARN) of the Amazon SNS topic. """ -function delete_notification_configuration( +delete_notification_configuration( AutoScalingGroupName, TopicARN; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DeleteNotificationConfiguration", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, "TopicARN" => TopicARN + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DeleteNotificationConfiguration", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, "TopicARN" => TopicARN - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_notification_configuration( AutoScalingGroupName, TopicARN, @@ -1008,14 +978,13 @@ the Amazon EC2 Auto Scaling User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AutoScalingGroupName"`: The name of the Auto Scaling group. """ -function delete_policy(PolicyName; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +delete_policy(PolicyName; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DeletePolicy", Dict{String,Any}("PolicyName" => PolicyName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_policy( PolicyName, params::AbstractDict{String}; @@ -1042,21 +1011,19 @@ Deletes the specified scheduled action. - `scheduled_action_name`: The name of the action to delete. """ -function delete_scheduled_action( +delete_scheduled_action( AutoScalingGroupName, ScheduledActionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "DeleteScheduledAction", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "ScheduledActionName" => ScheduledActionName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DeleteScheduledAction", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "ScheduledActionName" => ScheduledActionName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_scheduled_action( AutoScalingGroupName, ScheduledActionName, @@ -1090,14 +1057,12 @@ Deletes the specified tags. - `tags`: One or more tags. """ -function delete_tags(Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( - "DeleteTags", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_tags(Tags; aws_config::AbstractAWSConfig=current_aws_config()) = auto_scaling( + "DeleteTags", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_tags( Tags, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1125,16 +1090,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated instances, without waiting for all instances to be terminated. This parameter also deletes any outstanding lifecycle actions associated with the warm pool instances. """ -function delete_warm_pool( - AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +delete_warm_pool(AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DeleteWarmPool", Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_warm_pool( AutoScalingGroupName, params::AbstractDict{String}; @@ -1165,11 +1127,10 @@ Region. For more information, see Quotas for Amazon EC2 Auto Scaling in the Amaz Scaling User Guide. """ -function describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeAccountLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1190,11 +1151,10 @@ following adjustment types are supported: ChangeInCapacity ExactCapacity PercentChangeInCapacity """ -function describe_adjustment_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +describe_adjustment_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeAdjustmentTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_adjustment_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1229,11 +1189,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_auto_scaling_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +describe_auto_scaling_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeAutoScalingGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_auto_scaling_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1261,15 +1220,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_auto_scaling_instances(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +describe_auto_scaling_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeAutoScalingInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_auto_scaling_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1288,15 +1244,13 @@ end Describes the notification types that are supported by Amazon EC2 Auto Scaling. """ -function describe_auto_scaling_notification_types(; +describe_auto_scaling_notification_types(; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DescribeAutoScalingNotificationTypes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DescribeAutoScalingNotificationTypes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_auto_scaling_notification_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1333,16 +1287,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_instance_refreshes( +describe_instance_refreshes( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DescribeInstanceRefreshes", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DescribeInstanceRefreshes", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_refreshes( AutoScalingGroupName, params::AbstractDict{String}; @@ -1377,15 +1329,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_launch_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +describe_launch_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeLaunchConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_launch_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1405,11 +1354,10 @@ Describes the available types of lifecycle hooks. The following hook types are s autoscaling:EC2_INSTANCE_LAUNCHING autoscaling:EC2_INSTANCE_TERMINATING """ -function describe_lifecycle_hook_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +describe_lifecycle_hook_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeLifecycleHookTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_lifecycle_hook_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1435,16 +1383,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LifecycleHookNames"`: The names of one or more lifecycle hooks. If you omit this property, all lifecycle hooks are described. """ -function describe_lifecycle_hooks( +describe_lifecycle_hooks( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DescribeLifecycleHooks", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DescribeLifecycleHooks", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_lifecycle_hooks( AutoScalingGroupName, params::AbstractDict{String}; @@ -1502,16 +1448,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_load_balancer_target_groups( +describe_load_balancer_target_groups( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DescribeLoadBalancerTargetGroups", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DescribeLoadBalancerTargetGroups", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_load_balancer_target_groups( AutoScalingGroupName, params::AbstractDict{String}; @@ -1569,16 +1513,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_load_balancers( +describe_load_balancers( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DescribeLoadBalancers", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DescribeLoadBalancers", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_load_balancers( AutoScalingGroupName, params::AbstractDict{String}; @@ -1605,15 +1547,12 @@ end Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. """ -function describe_metric_collection_types(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +describe_metric_collection_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeMetricCollectionTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_metric_collection_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1640,15 +1579,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_notification_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +describe_notification_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeNotificationConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_notification_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1680,11 +1616,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyTypes"`: One or more policy types. The valid values are SimpleScaling, StepScaling, TargetTrackingScaling, and PredictiveScaling. """ -function describe_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( - "DescribePolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling("DescribePolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1720,11 +1653,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_scaling_activities(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +describe_scaling_activities(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeScalingActivities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_scaling_activities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1744,15 +1676,12 @@ Describes the scaling process types for use with the ResumeProcesses and Suspend APIs. """ -function describe_scaling_process_types(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +describe_scaling_process_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeScalingProcessTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_scaling_process_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1787,11 +1716,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: The earliest scheduled start time to return. If scheduled action names are provided, this property is ignored. """ -function describe_scheduled_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +describe_scheduled_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeScheduledActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_scheduled_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1824,11 +1752,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_tags(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( - "DescribeTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_tags(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling("DescribeTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_tags( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1846,15 +1771,12 @@ information, see Configure termination policies for Amazon EC2 Auto Scaling in t EC2 Auto Scaling User Guide. """ -function describe_termination_policy_types(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +describe_termination_policy_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "DescribeTerminationPolicyTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_termination_policy_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1889,16 +1811,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the traffic source is a Application Load Balancer, Gateway Load Balancer, or Network Load Balancer. vpc-lattice if the traffic source is VPC Lattice. """ -function describe_traffic_sources( +describe_traffic_sources( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DescribeTrafficSources", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DescribeTrafficSources", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_traffic_sources( AutoScalingGroupName, params::AbstractDict{String}; @@ -1935,16 +1855,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of instances to return. (You received this token from a previous call.) """ -function describe_warm_pool( +describe_warm_pool( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DescribeWarmPool", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DescribeWarmPool", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_warm_pool( AutoScalingGroupName, params::AbstractDict{String}; @@ -1986,21 +1904,19 @@ in the Amazon EC2 Auto Scaling User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InstanceIds"`: The IDs of the instances. You can specify up to 20 instances. """ -function detach_instances( +detach_instances( AutoScalingGroupName, ShouldDecrementDesiredCapacity; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "DetachInstances", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "ShouldDecrementDesiredCapacity" => ShouldDecrementDesiredCapacity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DetachInstances", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "ShouldDecrementDesiredCapacity" => ShouldDecrementDesiredCapacity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_instances( AutoScalingGroupName, ShouldDecrementDesiredCapacity, @@ -2046,21 +1962,19 @@ attached by using AttachTrafficSources. specify up to 10 target groups. """ -function detach_load_balancer_target_groups( +detach_load_balancer_target_groups( AutoScalingGroupName, TargetGroupARNs; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "DetachLoadBalancerTargetGroups", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "TargetGroupARNs" => TargetGroupARNs, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DetachLoadBalancerTargetGroups", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "TargetGroupARNs" => TargetGroupARNs, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_load_balancer_target_groups( AutoScalingGroupName, TargetGroupARNs, @@ -2106,21 +2020,19 @@ DescribeLoadBalancers API call. The instances remain running. balancers. """ -function detach_load_balancers( +detach_load_balancers( AutoScalingGroupName, LoadBalancerNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "DetachLoadBalancers", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "LoadBalancerNames" => LoadBalancerNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DetachLoadBalancers", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "LoadBalancerNames" => LoadBalancerNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_load_balancers( AutoScalingGroupName, LoadBalancerNames, @@ -2159,19 +2071,17 @@ source using the DescribeTrafficSources API call. The instances continue to run. up to 10 traffic sources. """ -function detach_traffic_sources( +detach_traffic_sources( AutoScalingGroupName, TrafficSources; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DetachTrafficSources", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "TrafficSources" => TrafficSources, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DetachTrafficSources", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "TrafficSources" => TrafficSources, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_traffic_sources( AutoScalingGroupName, TrafficSources, @@ -2217,16 +2127,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys property, all metrics are disabled. For more information, see Amazon CloudWatch metrics for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. """ -function disable_metrics_collection( +disable_metrics_collection( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "DisableMetricsCollection", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "DisableMetricsCollection", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_metrics_collection( AutoScalingGroupName, params::AbstractDict{String}; @@ -2275,18 +2183,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys see Amazon CloudWatch metrics for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. """ -function enable_metrics_collection( +enable_metrics_collection( AutoScalingGroupName, Granularity; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "EnableMetricsCollection", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, "Granularity" => Granularity + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "EnableMetricsCollection", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, "Granularity" => Granularity - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_metrics_collection( AutoScalingGroupName, Granularity, @@ -2331,21 +2237,19 @@ removing instances from your Auto Scaling group in the Amazon EC2 Auto Scaling U Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InstanceIds"`: The IDs of the instances. You can specify up to 20 instances. """ -function enter_standby( +enter_standby( AutoScalingGroupName, ShouldDecrementDesiredCapacity; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "EnterStandby", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "ShouldDecrementDesiredCapacity" => ShouldDecrementDesiredCapacity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "EnterStandby", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "ShouldDecrementDesiredCapacity" => ShouldDecrementDesiredCapacity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enter_standby( AutoScalingGroupName, ShouldDecrementDesiredCapacity, @@ -2395,14 +2299,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys metric value that doesn't correspond to a step adjustment for the policy, the call returns an error. Required if the policy type is StepScaling and not supported otherwise. """ -function execute_policy(PolicyName; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling( +execute_policy(PolicyName; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "ExecutePolicy", Dict{String,Any}("PolicyName" => PolicyName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function execute_policy( PolicyName, params::AbstractDict{String}; @@ -2433,16 +2336,13 @@ removing instances from your Auto Scaling group in the Amazon EC2 Auto Scaling U Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InstanceIds"`: The IDs of the instances. You can specify up to 20 instances. """ -function exit_standby( - AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +exit_standby(AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "ExitStandby", Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function exit_standby( AutoScalingGroupName, params::AbstractDict{String}; @@ -2486,25 +2386,23 @@ Predictive scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling Us most, the date and time can be one year before the current date and time. """ -function get_predictive_scaling_forecast( +get_predictive_scaling_forecast( AutoScalingGroupName, EndTime, PolicyName, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "GetPredictiveScalingForecast", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "EndTime" => EndTime, + "PolicyName" => PolicyName, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "GetPredictiveScalingForecast", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "EndTime" => EndTime, - "PolicyName" => PolicyName, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_predictive_scaling_forecast( AutoScalingGroupName, EndTime, @@ -2589,21 +2487,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys or an Amazon SQS queue. Required for new lifecycle hooks, but optional when updating existing hooks. """ -function put_lifecycle_hook( +put_lifecycle_hook( AutoScalingGroupName, LifecycleHookName; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "PutLifecycleHook", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "LifecycleHookName" => LifecycleHookName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "PutLifecycleHook", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "LifecycleHookName" => LifecycleHookName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_lifecycle_hook( AutoScalingGroupName, LifecycleHookName, @@ -2646,23 +2542,21 @@ is 10 per Auto Scaling group, the call fails. - `topic_arn`: The Amazon Resource Name (ARN) of the Amazon SNS topic. """ -function put_notification_configuration( +put_notification_configuration( AutoScalingGroupName, NotificationTypes, TopicARN; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "PutNotificationConfiguration", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "NotificationTypes" => NotificationTypes, + "TopicARN" => TopicARN, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "PutNotificationConfiguration", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "NotificationTypes" => NotificationTypes, - "TopicARN" => TopicARN, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_notification_configuration( AutoScalingGroupName, NotificationTypes, @@ -2764,18 +2658,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference. Required if the policy type is TargetTrackingScaling. """ -function put_scaling_policy( +put_scaling_policy( AutoScalingGroupName, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "PutScalingPolicy", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, "PolicyName" => PolicyName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "PutScalingPolicy", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, "PolicyName" => PolicyName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_scaling_policy( AutoScalingGroupName, PolicyName, @@ -2840,21 +2732,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. """ -function put_scheduled_update_group_action( +put_scheduled_update_group_action( AutoScalingGroupName, ScheduledActionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "PutScheduledUpdateGroupAction", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "ScheduledActionName" => ScheduledActionName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "PutScheduledUpdateGroupAction", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "ScheduledActionName" => ScheduledActionName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_scheduled_update_group_action( AutoScalingGroupName, ScheduledActionName, @@ -2918,16 +2808,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PoolState"`: Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped. """ -function put_warm_pool( - AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +put_warm_pool(AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "PutWarmPool", Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_warm_pool( AutoScalingGroupName, params::AbstractDict{String}; @@ -2978,21 +2865,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated with an instance. Amazon EC2 Auto Scaling sends this token to the notification target that you specified when you created the lifecycle hook. """ -function record_lifecycle_action_heartbeat( +record_lifecycle_action_heartbeat( AutoScalingGroupName, LifecycleHookName; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "RecordLifecycleActionHeartbeat", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "LifecycleHookName" => LifecycleHookName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "RecordLifecycleActionHeartbeat", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "LifecycleHookName" => LifecycleHookName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function record_lifecycle_action_heartbeat( AutoScalingGroupName, LifecycleHookName, @@ -3034,16 +2919,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ReplaceUnhealthy ScheduledActions If you omit this property, all processes are specified. """ -function resume_processes( - AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return auto_scaling( +resume_processes(AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling( "ResumeProcesses", Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resume_processes( AutoScalingGroupName, params::AbstractDict{String}; @@ -3084,16 +2966,14 @@ check the status of this operation through the DescribeInstanceRefreshes API ope - `auto_scaling_group_name`: The name of the Auto Scaling group. """ -function rollback_instance_refresh( +rollback_instance_refresh( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "RollbackInstanceRefresh", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "RollbackInstanceRefresh", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rollback_instance_refresh( AutoScalingGroupName, params::AbstractDict{String}; @@ -3134,21 +3014,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys its new capacity. By default, Amazon EC2 Auto Scaling does not honor the cooldown period during manual scaling activities. """ -function set_desired_capacity( +set_desired_capacity( AutoScalingGroupName, DesiredCapacity; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "SetDesiredCapacity", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "DesiredCapacity" => DesiredCapacity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "SetDesiredCapacity", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "DesiredCapacity" => DesiredCapacity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_desired_capacity( AutoScalingGroupName, DesiredCapacity, @@ -3176,8 +3054,8 @@ end set_instance_health(health_status, instance_id) set_instance_health(health_status, instance_id, params::Dict{String,<:Any}) -Sets the health status of the specified instance. For more information, see Health checks -for instances in an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. +Sets the health status of the specified instance. For more information, see Set up a custom +health check for your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. # Arguments - `health_status`: The health status of the instance. Set to Healthy to have the instance @@ -3193,16 +3071,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the group. For more information about the health check grace period, see Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. """ -function set_instance_health( +set_instance_health( HealthStatus, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "SetInstanceHealth", + Dict{String,Any}("HealthStatus" => HealthStatus, "InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "SetInstanceHealth", - Dict{String,Any}("HealthStatus" => HealthStatus, "InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_instance_health( HealthStatus, InstanceId, @@ -3241,23 +3117,21 @@ instance IDs, which is 50 per Auto Scaling group, the call fails. by Amazon EC2 Auto Scaling when scaling in. """ -function set_instance_protection( +set_instance_protection( AutoScalingGroupName, InstanceIds, ProtectedFromScaleIn; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "SetInstanceProtection", + Dict{String,Any}( + "AutoScalingGroupName" => AutoScalingGroupName, + "InstanceIds" => InstanceIds, + "ProtectedFromScaleIn" => ProtectedFromScaleIn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "SetInstanceProtection", - Dict{String,Any}( - "AutoScalingGroupName" => AutoScalingGroupName, - "InstanceIds" => InstanceIds, - "ProtectedFromScaleIn" => ProtectedFromScaleIn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_instance_protection( AutoScalingGroupName, InstanceIds, @@ -3329,16 +3203,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Strategy"`: The strategy to use for the instance refresh. The only valid value is Rolling. """ -function start_instance_refresh( +start_instance_refresh( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "StartInstanceRefresh", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "StartInstanceRefresh", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_instance_refresh( AutoScalingGroupName, params::AbstractDict{String}; @@ -3378,16 +3250,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ReplaceUnhealthy ScheduledActions If you omit this property, all processes are specified. """ -function suspend_processes( +suspend_processes( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "SuspendProcesses", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "SuspendProcesses", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function suspend_processes( AutoScalingGroupName, params::AbstractDict{String}; @@ -3429,21 +3299,19 @@ scaling in the Amazon EC2 Auto Scaling User Guide. decrements the size of the Auto Scaling group. """ -function terminate_instance_in_auto_scaling_group( +terminate_instance_in_auto_scaling_group( InstanceId, ShouldDecrementDesiredCapacity; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling( + "TerminateInstanceInAutoScalingGroup", + Dict{String,Any}( + "InstanceId" => InstanceId, + "ShouldDecrementDesiredCapacity" => ShouldDecrementDesiredCapacity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "TerminateInstanceInAutoScalingGroup", - Dict{String,Any}( - "InstanceId" => InstanceId, - "ShouldDecrementDesiredCapacity" => ShouldDecrementDesiredCapacity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function terminate_instance_in_auto_scaling_group( InstanceId, ShouldDecrementDesiredCapacity, @@ -3543,10 +3411,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. - `"HealthCheckType"`: A comma-separated value string of one or more health check types. - The valid values are EC2, ELB, and VPC_LATTICE. EC2 is the default health check and cannot - be disabled. For more information, see Health checks for instances in an Auto Scaling group - in the Amazon EC2 Auto Scaling User Guide. Only specify EC2 if you must clear a value that - was previously set. + The valid values are EC2, EBS, ELB, and VPC_LATTICE. EC2 is the default health check and + cannot be disabled. For more information, see Health checks for instances in an Auto + Scaling group in the Amazon EC2 Auto Scaling User Guide. Only specify EC2 if you must clear + a value that was previously set. - `"InstanceMaintenancePolicy"`: An instance maintenance policy. For more information, see Set instance maintenance policy in the Amazon EC2 Auto Scaling User Guide. - `"LaunchConfigurationName"`: The name of the launch configuration. If you specify @@ -3591,16 +3459,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC). If you specify VPCZoneIdentifier with AvailabilityZones, the subnets that you specify must reside in those Availability Zones. """ -function update_auto_scaling_group( +update_auto_scaling_group( AutoScalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling( + "UpdateAutoScalingGroup", + Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling( - "UpdateAutoScalingGroup", - Dict{String,Any}("AutoScalingGroupName" => AutoScalingGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_auto_scaling_group( AutoScalingGroupName, params::AbstractDict{String}; diff --git a/src/services/auto_scaling_plans.jl b/src/services/auto_scaling_plans.jl index 64a6a7f42..86e4bfe77 100644 --- a/src/services/auto_scaling_plans.jl +++ b/src/services/auto_scaling_plans.jl @@ -20,23 +20,21 @@ Creates a scaling plan. colons, or forward slashes. """ -function create_scaling_plan( +create_scaling_plan( ApplicationSource, ScalingInstructions, ScalingPlanName; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling_plans( + "CreateScalingPlan", + Dict{String,Any}( + "ApplicationSource" => ApplicationSource, + "ScalingInstructions" => ScalingInstructions, + "ScalingPlanName" => ScalingPlanName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling_plans( - "CreateScalingPlan", - Dict{String,Any}( - "ApplicationSource" => ApplicationSource, - "ScalingInstructions" => ScalingInstructions, - "ScalingPlanName" => ScalingPlanName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_scaling_plan( ApplicationSource, ScalingInstructions, @@ -77,18 +75,16 @@ resources separately. value is 1. """ -function delete_scaling_plan( +delete_scaling_plan( ScalingPlanName, ScalingPlanVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling_plans( + "DeleteScalingPlan", + Dict{String,Any}( + "ScalingPlanName" => ScalingPlanName, "ScalingPlanVersion" => ScalingPlanVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling_plans( - "DeleteScalingPlan", - Dict{String,Any}( - "ScalingPlanName" => ScalingPlanName, "ScalingPlanVersion" => ScalingPlanVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_scaling_plan( ScalingPlanName, ScalingPlanVersion, @@ -129,18 +125,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys between 1 and 50. The default value is 50. - `"NextToken"`: The token for the next set of results. """ -function describe_scaling_plan_resources( +describe_scaling_plan_resources( ScalingPlanName, ScalingPlanVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling_plans( + "DescribeScalingPlanResources", + Dict{String,Any}( + "ScalingPlanName" => ScalingPlanName, "ScalingPlanVersion" => ScalingPlanVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling_plans( - "DescribeScalingPlanResources", - Dict{String,Any}( - "ScalingPlanName" => ScalingPlanName, "ScalingPlanVersion" => ScalingPlanVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scaling_plan_resources( ScalingPlanName, ScalingPlanVersion, @@ -183,11 +177,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value is 1. If you specify a scaling plan version, you must also specify a scaling plan name. """ -function describe_scaling_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return auto_scaling_plans( +describe_scaling_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = + auto_scaling_plans( "DescribeScalingPlans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_scaling_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -234,7 +227,7 @@ specified CloudWatch load metric. Data points are available for up to 56 days. The date and time can be at most 56 days before the current date and time. """ -function get_scaling_plan_resource_forecast_data( +get_scaling_plan_resource_forecast_data( EndTime, ForecastDataType, ResourceId, @@ -244,23 +237,21 @@ function get_scaling_plan_resource_forecast_data( ServiceNamespace, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = auto_scaling_plans( + "GetScalingPlanResourceForecastData", + Dict{String,Any}( + "EndTime" => EndTime, + "ForecastDataType" => ForecastDataType, + "ResourceId" => ResourceId, + "ScalableDimension" => ScalableDimension, + "ScalingPlanName" => ScalingPlanName, + "ScalingPlanVersion" => ScalingPlanVersion, + "ServiceNamespace" => ServiceNamespace, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling_plans( - "GetScalingPlanResourceForecastData", - Dict{String,Any}( - "EndTime" => EndTime, - "ForecastDataType" => ForecastDataType, - "ResourceId" => ResourceId, - "ScalableDimension" => ScalableDimension, - "ScalingPlanName" => ScalingPlanName, - "ScalingPlanVersion" => ScalingPlanVersion, - "ServiceNamespace" => ServiceNamespace, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_scaling_plan_resource_forecast_data( EndTime, ForecastDataType, @@ -315,18 +306,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ScalingInstructions"`: The scaling instructions. For more information, see ScalingInstruction in the AWS Auto Scaling API Reference. """ -function update_scaling_plan( +update_scaling_plan( ScalingPlanName, ScalingPlanVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = auto_scaling_plans( + "UpdateScalingPlan", + Dict{String,Any}( + "ScalingPlanName" => ScalingPlanName, "ScalingPlanVersion" => ScalingPlanVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return auto_scaling_plans( - "UpdateScalingPlan", - Dict{String,Any}( - "ScalingPlanName" => ScalingPlanName, "ScalingPlanVersion" => ScalingPlanVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_scaling_plan( ScalingPlanName, ScalingPlanVersion, diff --git a/src/services/b2bi.jl b/src/services/b2bi.jl index 30960e4ea..bf4f95722 100644 --- a/src/services/b2bi.jl +++ b/src/services/b2bi.jl @@ -26,21 +26,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose. """ -function create_capability( +create_capability( configuration, name, type; aws_config::AbstractAWSConfig=current_aws_config() +) = b2bi( + "CreateCapability", + Dict{String,Any}( + "configuration" => configuration, + "name" => name, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return b2bi( - "CreateCapability", - Dict{String,Any}( - "configuration" => configuration, - "name" => name, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_capability( configuration, name, @@ -90,22 +88,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose. """ -function create_partnership( +create_partnership( capabilities, email, name, profileId; aws_config::AbstractAWSConfig=current_aws_config() +) = b2bi( + "CreatePartnership", + Dict{String,Any}( + "capabilities" => capabilities, + "email" => email, + "name" => name, + "profileId" => profileId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return b2bi( - "CreatePartnership", - Dict{String,Any}( - "capabilities" => capabilities, - "email" => email, - "name" => name, - "profileId" => profileId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_partnership( capabilities, email, @@ -156,22 +152,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose. """ -function create_profile( +create_profile( businessName, logging, name, phone; aws_config::AbstractAWSConfig=current_aws_config() +) = b2bi( + "CreateProfile", + Dict{String,Any}( + "businessName" => businessName, + "logging" => logging, + "name" => name, + "phone" => phone, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return b2bi( - "CreateProfile", - Dict{String,Any}( - "businessName" => businessName, - "logging" => logging, - "name" => name, - "phone" => phone, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_profile( businessName, logging, @@ -226,26 +220,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose. """ -function create_transformer( +create_transformer( ediType, fileFormat, mappingTemplate, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = b2bi( + "CreateTransformer", + Dict{String,Any}( + "ediType" => ediType, + "fileFormat" => fileFormat, + "mappingTemplate" => mappingTemplate, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return b2bi( - "CreateTransformer", - Dict{String,Any}( - "ediType" => ediType, - "fileFormat" => fileFormat, - "mappingTemplate" => mappingTemplate, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transformer( ediType, fileFormat, @@ -285,14 +277,12 @@ transform incoming EDI documents into JSON or XML outputs. - `capability_id`: Specifies a system-assigned unique identifier for the capability. """ -function delete_capability(capabilityId; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "DeleteCapability", - Dict{String,Any}("capabilityId" => capabilityId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_capability(capabilityId; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "DeleteCapability", + Dict{String,Any}("capabilityId" => capabilityId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_capability( capabilityId, params::AbstractDict{String}; @@ -319,16 +309,13 @@ your trading partner. It ties together a profile and one or more trading capabil - `partnership_id`: Specifies the unique, system-generated identifier for a partnership. """ -function delete_partnership( - partnershipId; aws_config::AbstractAWSConfig=current_aws_config() -) - return b2bi( +delete_partnership(partnershipId; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi( "DeletePartnership", Dict{String,Any}("partnershipId" => partnershipId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_partnership( partnershipId, params::AbstractDict{String}; @@ -355,14 +342,12 @@ private network. - `profile_id`: Specifies the unique, system-generated identifier for the profile. """ -function delete_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "DeleteProfile", - Dict{String,Any}("profileId" => profileId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "DeleteProfile", + Dict{String,Any}("profileId" => profileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_profile( profileId, params::AbstractDict{String}; @@ -389,16 +374,13 @@ documents and extract the necessary information to the output file. - `transformer_id`: Specifies the system-assigned unique identifier for the transformer. """ -function delete_transformer( - transformerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return b2bi( +delete_transformer(transformerId; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi( "DeleteTransformer", Dict{String,Any}("transformerId" => transformerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_transformer( transformerId, params::AbstractDict{String}; @@ -425,14 +407,12 @@ information required to transform incoming EDI documents into JSON or XML output - `capability_id`: Specifies a system-assigned unique identifier for the capability. """ -function get_capability(capabilityId; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "GetCapability", - Dict{String,Any}("capabilityId" => capabilityId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_capability(capabilityId; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "GetCapability", + Dict{String,Any}("capabilityId" => capabilityId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_capability( capabilityId, params::AbstractDict{String}; @@ -460,14 +440,12 @@ together a profile and one or more trading capabilities. - `partnership_id`: Specifies the unique, system-generated identifier for a partnership. """ -function get_partnership(partnershipId; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "GetPartnership", - Dict{String,Any}("partnershipId" => partnershipId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_partnership(partnershipId; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "GetPartnership", + Dict{String,Any}("partnershipId" => partnershipId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_partnership( partnershipId, params::AbstractDict{String}; @@ -494,14 +472,12 @@ mechanism used to create the concept of a private network. - `profile_id`: Specifies the unique, system-generated identifier for the profile. """ -function get_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "GetProfile", - Dict{String,Any}("profileId" => profileId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "GetProfile", + Dict{String,Any}("profileId" => profileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_profile( profileId, params::AbstractDict{String}; @@ -529,14 +505,12 @@ to the output file. - `transformer_id`: Specifies the system-assigned unique identifier for the transformer. """ -function get_transformer(transformerId; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "GetTransformer", - Dict{String,Any}("transformerId" => transformerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_transformer(transformerId; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "GetTransformer", + Dict{String,Any}("transformerId" => transformerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_transformer( transformerId, params::AbstractDict{String}; @@ -564,18 +538,16 @@ Returns the details of the transformer run, based on the Transformer job ID. run. """ -function get_transformer_job( +get_transformer_job( transformerId, transformerJobId; aws_config::AbstractAWSConfig=current_aws_config() +) = b2bi( + "GetTransformerJob", + Dict{String,Any}( + "transformerId" => transformerId, "transformerJobId" => transformerJobId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return b2bi( - "GetTransformerJob", - Dict{String,Any}( - "transformerId" => transformerId, "transformerJobId" => transformerJobId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transformer_job( transformerId, transformerJobId, @@ -613,9 +585,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources. """ -function list_capabilities(; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi("ListCapabilities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_capabilities(; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi("ListCapabilities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_capabilities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -641,9 +612,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"profileId"`: Specifies the unique, system-generated identifier for the profile connected to this partnership. """ -function list_partnerships(; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi("ListPartnerships"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_partnerships(; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi("ListPartnerships"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_partnerships( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -667,9 +637,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources. """ -function list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi("ListProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi("ListProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -691,16 +660,13 @@ resource can be a capability, partnership, profile, or transformer. capability, partnership, profile, or transformer. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return b2bi( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -730,9 +696,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional resources. """ -function list_transformers(; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi("ListTransformers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_transformers(; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi("ListTransformers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_transformers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -762,24 +727,22 @@ run the StartTransformerJob API to process your files. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: Reserved for future use. """ -function start_transformer_job( +start_transformer_job( inputFile, outputLocation, transformerId; aws_config::AbstractAWSConfig=current_aws_config(), +) = b2bi( + "StartTransformerJob", + Dict{String,Any}( + "inputFile" => inputFile, + "outputLocation" => outputLocation, + "transformerId" => transformerId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return b2bi( - "StartTransformerJob", - Dict{String,Any}( - "inputFile" => inputFile, - "outputLocation" => outputLocation, - "transformerId" => transformerId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_transformer_job( inputFile, outputLocation, @@ -822,14 +785,12 @@ no response returned from this call. partnerships, and so on) for any purpose. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "TagResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "TagResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceARN, Tags, @@ -867,23 +828,21 @@ inputFileContent parameter. used to map the parsed EDI file using JSONata or XSLT. """ -function test_mapping( +test_mapping( fileFormat, inputFileContent, mappingTemplate; aws_config::AbstractAWSConfig=current_aws_config(), +) = b2bi( + "TestMapping", + Dict{String,Any}( + "fileFormat" => fileFormat, + "inputFileContent" => inputFileContent, + "mappingTemplate" => mappingTemplate, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return b2bi( - "TestMapping", - Dict{String,Any}( - "fileFormat" => fileFormat, - "inputFileContent" => inputFileContent, - "mappingTemplate" => mappingTemplate, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_mapping( fileFormat, inputFileContent, @@ -926,18 +885,16 @@ limit of 250 KB. prefix for the location of the input file. """ -function test_parsing( +test_parsing( ediType, fileFormat, inputFile; aws_config::AbstractAWSConfig=current_aws_config() +) = b2bi( + "TestParsing", + Dict{String,Any}( + "ediType" => ediType, "fileFormat" => fileFormat, "inputFile" => inputFile + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return b2bi( - "TestParsing", - Dict{String,Any}( - "ediType" => ediType, "fileFormat" => fileFormat, "inputFile" => inputFile - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_parsing( ediType, fileFormat, @@ -978,16 +935,13 @@ Name (ARN). Resources are capability, partnership, profile, transformers and oth partnerships, and so on) for any purpose. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return b2bi( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1027,14 +981,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys bucket and the key, to identify the document's location. - `"name"`: Specifies a new name for the capability, to replace the existing name. """ -function update_capability(capabilityId; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "UpdateCapability", - Dict{String,Any}("capabilityId" => capabilityId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_capability(capabilityId; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "UpdateCapability", + Dict{String,Any}("capabilityId" => capabilityId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_capability( capabilityId, params::AbstractDict{String}; @@ -1066,16 +1018,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"capabilities"`: List of the capabilities associated with this partnership. - `"name"`: The name of the partnership, used to identify it. """ -function update_partnership( - partnershipId; aws_config::AbstractAWSConfig=current_aws_config() -) - return b2bi( +update_partnership(partnershipId; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi( "UpdatePartnership", Dict{String,Any}("partnershipId" => partnershipId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_partnership( partnershipId, params::AbstractDict{String}; @@ -1108,14 +1057,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the profile, used to identify it. - `"phone"`: Specifies the phone number associated with the profile. """ -function update_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) - return b2bi( - "UpdateProfile", - Dict{String,Any}("profileId" => profileId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) = b2bi( + "UpdateProfile", + Dict{String,Any}("profileId" => profileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_profile( profileId, params::AbstractDict{String}; @@ -1156,16 +1103,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Specifies the transformer's status. You can update the state of the transformer, from active to inactive, or inactive to active. """ -function update_transformer( - transformerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return b2bi( +update_transformer(transformerId; aws_config::AbstractAWSConfig=current_aws_config()) = + b2bi( "UpdateTransformer", Dict{String,Any}("transformerId" => transformerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_transformer( transformerId, params::AbstractDict{String}; diff --git a/src/services/backup.jl b/src/services/backup.jl index 15b94d37f..544e57882 100644 --- a/src/services/backup.jl +++ b/src/services/backup.jl @@ -8,30 +8,26 @@ using AWS.UUIDs cancel_legal_hold(cancel_description, legal_hold_id) cancel_legal_hold(cancel_description, legal_hold_id, params::Dict{String,<:Any}) -This action removes the specified legal hold on a recovery point. This action can only be -performed by a user with sufficient permissions. +Removes the specified legal hold on a recovery point. This action can only be performed by +a user with sufficient permissions. # Arguments -- `cancel_description`: String describing the reason for removing the legal hold. -- `legal_hold_id`: Legal hold ID required to remove the specified legal hold on a recovery - point. +- `cancel_description`: A string the describes the reason for removing the legal hold. +- `legal_hold_id`: The ID of the legal hold. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"retainRecordInDays"`: The integer amount in days specifying amount of days after this - API operation to remove legal hold. +- `"retainRecordInDays"`: The integer amount, in days, after which to remove legal hold. """ -function cancel_legal_hold( +cancel_legal_hold( cancelDescription, legalHoldId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "DELETE", + "/legal-holds/$(legalHoldId)", + Dict{String,Any}("cancelDescription" => cancelDescription); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/legal-holds/$(legalHoldId)", - Dict{String,Any}("cancelDescription" => cancelDescription); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_legal_hold( cancelDescription, legalHoldId, @@ -61,28 +57,24 @@ points for resources. If you call CreateBackupPlan with a plan that already exis receive an AlreadyExistsException exception. # Arguments -- `backup_plan`: Specifies the body of a backup plan. Includes a BackupPlanName and one or - more sets of Rules. +- `backup_plan`: The body of a backup plan. Includes a BackupPlanName and one or more sets + of Rules. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"BackupPlanTags"`: To help organize your resources, you can assign your own metadata to - the resources that you create. Each tag is a key-value pair. The specified tags are - assigned to all backups created with this plan. +- `"BackupPlanTags"`: The tags to assign to the backup plan. - `"CreatorRequestId"`: Identifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes a CreatorRequestId that matches an existing backup plan, that plan is returned. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. """ -function create_backup_plan(BackupPlan; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "PUT", - "/backup/plans/", - Dict{String,Any}("BackupPlan" => BackupPlan); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_backup_plan(BackupPlan; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "PUT", + "/backup/plans/", + Dict{String,Any}("BackupPlan" => BackupPlan); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_backup_plan( BackupPlan, params::AbstractDict{String}; @@ -107,10 +99,8 @@ Creates a JSON document that specifies a set of resources to assign to a backup examples, see Assigning resources programmatically. # Arguments -- `backup_selection`: Specifies the body of a request to assign a set of resources to a - backup plan. -- `backup_plan_id`: Uniquely identifies the backup plan to be associated with the selection - of resources. +- `backup_selection`: The body of a request to assign a set of resources to a backup plan. +- `backup_plan_id`: The ID of the backup plan. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -118,17 +108,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. """ -function create_backup_selection( +create_backup_selection( BackupSelection, backupPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "PUT", + "/backup/plans/$(backupPlanId)/selections/", + Dict{String,Any}("BackupSelection" => BackupSelection); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/backup/plans/$(backupPlanId)/selections/", - Dict{String,Any}("BackupSelection" => BackupSelection); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_backup_selection( BackupSelection, backupPlanId, @@ -164,8 +152,7 @@ include sensitive data, such as passport numbers, in the name of a backup vault. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"BackupVaultTags"`: Metadata that you can assign to help organize the resources that you - create. Each tag is a key-value pair. +- `"BackupVaultTags"`: The tags to assign to the backup vault. - `"CreatorRequestId"`: A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. @@ -173,16 +160,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. """ -function create_backup_vault( - backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +create_backup_vault(backupVaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "PUT", "/backup-vaults/$(backupVaultName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_backup_vault( backupVaultName, params::AbstractDict{String}; @@ -207,8 +191,8 @@ define your policies, you can evaluate whether your backup practices comply with policies and which resources are not yet in compliance. # Arguments -- `framework_controls`: A list of the controls that make up the framework. Each control in - the list has a name, input parameters, and scope. +- `framework_controls`: The controls that make up the framework. Each control in the list + has a name, input parameters, and scope. - `framework_name`: The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). @@ -217,27 +201,24 @@ policies and which resources are not yet in compliance. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"FrameworkDescription"`: An optional description of the framework with a maximum of 1,024 characters. -- `"FrameworkTags"`: Metadata that you can assign to help organize the frameworks that you - create. Each tag is a key-value pair. +- `"FrameworkTags"`: The tags to assign to the framework. - `"IdempotencyToken"`: A customer-chosen string that you can use to distinguish between otherwise identical calls to CreateFrameworkInput. Retrying a successful request with the same idempotency token results in a success message with no action taken. """ -function create_framework( +create_framework( FrameworkControls, FrameworkName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "POST", + "/audit/frameworks", + Dict{String,Any}( + "FrameworkControls" => FrameworkControls, + "FrameworkName" => FrameworkName, + "IdempotencyToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "POST", - "/audit/frameworks", - Dict{String,Any}( - "FrameworkControls" => FrameworkControls, - "FrameworkName" => FrameworkName, - "IdempotencyToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_framework( FrameworkControls, FrameworkName, @@ -267,37 +248,34 @@ end create_legal_hold(description, title) create_legal_hold(description, title, params::Dict{String,<:Any}) -This action creates a legal hold on a recovery point (backup). A legal hold is a restraint -on altering or deleting a backup until an authorized user cancels the legal hold. Any -actions to delete or disassociate a recovery point will fail with an error if one or more -active legal holds are on the recovery point. +Creates a legal hold on a recovery point (backup). A legal hold is a restraint on altering +or deleting a backup until an authorized user cancels the legal hold. Any actions to delete +or disassociate a recovery point will fail with an error if one or more active legal holds +are on the recovery point. # Arguments -- `description`: This is the string description of the legal hold. -- `title`: This is the string title of the legal hold. +- `description`: The description of the legal hold. +- `title`: The title of the legal hold. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"IdempotencyToken"`: This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken. -- `"RecoveryPointSelection"`: This specifies criteria to assign a set of resources, such as - resource types or backup vaults. +- `"RecoveryPointSelection"`: The criteria to assign a set of resources, such as resource + types or backup vaults. - `"Tags"`: Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /. """ -function create_legal_hold( - Description, Title; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +create_legal_hold(Description, Title; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "POST", "/legal-holds/", Dict{String,Any}("Description" => Description, "Title" => Title); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_legal_hold( Description, Title, @@ -323,51 +301,40 @@ end create_logically_air_gapped_backup_vault(max_retention_days, min_retention_days, backup_vault_name) create_logically_air_gapped_backup_vault(max_retention_days, min_retention_days, backup_vault_name, params::Dict{String,<:Any}) -This request creates a logical container to where backups may be copied. This request -includes a name, the Region, the maximum number of retention days, the minimum number of -retention days, and optionally can include tags and a creator request ID. Do not include -sensitive data, such as passport numbers, in the name of a backup vault. +Creates a logical container to where backups may be copied. This request includes a name, +the Region, the maximum number of retention days, the minimum number of retention days, and +optionally can include tags and a creator request ID. Do not include sensitive data, such +as passport numbers, in the name of a backup vault. # Arguments -- `max_retention_days`: This is the setting that specifies the maximum retention period - that the vault retains its recovery points. If this parameter is not specified, Backup does - not enforce a maximum retention period on the recovery points in the vault (allowing - indefinite storage). If specified, any backup or copy job to the vault must have a - lifecycle policy with a retention period equal to or shorter than the maximum retention - period. If the job retention period is longer than that maximum retention period, then the - vault fails the backup or copy job, and you should either modify your lifecycle settings or - use a different vault. +- `max_retention_days`: The maximum retention period that the vault retains its recovery + points. - `min_retention_days`: This setting specifies the minimum retention period that the vault - retains its recovery points. If this parameter is not specified, no minimum retention - period is enforced. If specified, any backup or copy job to the vault must have a lifecycle - policy with a retention period equal to or longer than the minimum retention period. If a - job retention period is shorter than that minimum retention period, then the vault fails - the backup or copy job, and you should either modify your lifecycle settings or use a - different vault. -- `backup_vault_name`: This is the name of the vault that is being created. + retains its recovery points. The minimum value accepted is 7 days. +- `backup_vault_name`: The name of a logical container where backups are stored. Logically + air-gapped backup vaults are identified by names that are unique to the account used to + create them and the Region where they are created. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"BackupVaultTags"`: These are the tags that will be included in the newly-created vault. -- `"CreatorRequestId"`: This is the ID of the creation request. This parameter is optional. - If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. +- `"BackupVaultTags"`: The tags to assign to the vault. +- `"CreatorRequestId"`: The ID of the creation request. This parameter is optional. If + used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. """ -function create_logically_air_gapped_backup_vault( +create_logically_air_gapped_backup_vault( MaxRetentionDays, MinRetentionDays, backupVaultName; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "PUT", + "/logically-air-gapped-backup-vaults/$(backupVaultName)", + Dict{String,Any}( + "MaxRetentionDays" => MaxRetentionDays, "MinRetentionDays" => MinRetentionDays + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/logically-air-gapped-backup-vaults/$(backupVaultName)", - Dict{String,Any}( - "MaxRetentionDays" => MaxRetentionDays, "MinRetentionDays" => MinRetentionDays - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_logically_air_gapped_backup_vault( MaxRetentionDays, MinRetentionDays, @@ -421,28 +388,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys same idempotency token results in a success message with no action taken. - `"ReportPlanDescription"`: An optional description of the report plan with a maximum of 1,024 characters. -- `"ReportPlanTags"`: Metadata that you can assign to help organize the report plans that - you create. Each tag is a key-value pair. +- `"ReportPlanTags"`: The tags to assign to the report plan. """ -function create_report_plan( +create_report_plan( ReportDeliveryChannel, ReportPlanName, ReportSetting; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "POST", + "/audit/report-plans", + Dict{String,Any}( + "ReportDeliveryChannel" => ReportDeliveryChannel, + "ReportPlanName" => ReportPlanName, + "ReportSetting" => ReportSetting, + "IdempotencyToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "POST", - "/audit/report-plans", - Dict{String,Any}( - "ReportDeliveryChannel" => ReportDeliveryChannel, - "ReportPlanName" => ReportPlanName, - "ReportSetting" => ReportSetting, - "IdempotencyToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_report_plan( ReportDeliveryChannel, ReportPlanName, @@ -474,10 +438,8 @@ end create_restore_testing_plan(restore_testing_plan) create_restore_testing_plan(restore_testing_plan, params::Dict{String,<:Any}) -This is the first of two steps to create a restore testing plan; once this request is -successful, finish the procedure with request CreateRestoreTestingSelection. You must -include the parameter RestoreTestingPlan. You may optionally include CreatorRequestId and -Tags. +Creates a restore testing plan. The first of two steps to create a restore testing plan. +After this request is successful, finish the procedure using CreateRestoreTestingSelection. # Arguments - `restore_testing_plan`: A restore testing plan must contain a unique @@ -493,21 +455,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. -- `"Tags"`: Optional tags to include. A tag is a key-value pair you can use to manage, - filter, and search for your resources. Allowed characters include UTF-8 letters,numbers, - spaces, and the following characters: + - = . _ : /. +- `"Tags"`: The tags to assign to the restore testing plan. """ -function create_restore_testing_plan( +create_restore_testing_plan( RestoreTestingPlan; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "PUT", + "/restore-testing/plans", + Dict{String,Any}("RestoreTestingPlan" => RestoreTestingPlan); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/restore-testing/plans", - Dict{String,Any}("RestoreTestingPlan" => RestoreTestingPlan); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_restore_testing_plan( RestoreTestingPlan, params::AbstractDict{String}; @@ -556,19 +514,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. """ -function create_restore_testing_selection( +create_restore_testing_selection( RestoreTestingPlanName, RestoreTestingSelection; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "PUT", + "/restore-testing/plans/$(RestoreTestingPlanName)/selections", + Dict{String,Any}("RestoreTestingSelection" => RestoreTestingSelection); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/restore-testing/plans/$(RestoreTestingPlanName)/selections", - Dict{String,Any}("RestoreTestingSelection" => RestoreTestingSelection); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_restore_testing_selection( RestoreTestingPlanName, RestoreTestingSelection, @@ -602,16 +558,13 @@ plan. Previous versions, if any, will still exist. - `backup_plan_id`: Uniquely identifies a backup plan. """ -function delete_backup_plan( - backupPlanId; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +delete_backup_plan(backupPlanId; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "DELETE", "/backup/plans/$(backupPlanId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_backup_plan( backupPlanId, params::AbstractDict{String}; @@ -639,16 +592,14 @@ SelectionId. a backup plan. """ -function delete_backup_selection( +delete_backup_selection( backupPlanId, selectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "DELETE", + "/backup/plans/$(backupPlanId)/selections/$(selectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/backup/plans/$(backupPlanId)/selections/$(selectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backup_selection( backupPlanId, selectionId, @@ -673,20 +624,16 @@ Deletes the backup vault identified by its name. A vault can be deleted only if # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. """ -function delete_backup_vault( - backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +delete_backup_vault(backupVaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "DELETE", "/backup-vaults/$(backupVaultName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_backup_vault( backupVaultName, params::AbstractDict{String}; @@ -714,16 +661,14 @@ Deletes the policy document that manages permissions on a backup vault. numbers, and hyphens. """ -function delete_backup_vault_access_policy( +delete_backup_vault_access_policy( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "DELETE", + "/backup-vaults/$(backupVaultName)/access-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/backup-vaults/$(backupVaultName)/access-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backup_vault_access_policy( backupVaultName, params::AbstractDict{String}; @@ -751,16 +696,14 @@ more information, see Vault Lock in the Backup Developer Guide. - `backup_vault_name`: The name of the backup vault from which to delete Backup Vault Lock. """ -function delete_backup_vault_lock_configuration( +delete_backup_vault_lock_configuration( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "DELETE", + "/backup-vaults/$(backupVaultName)/vault-lock"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/backup-vaults/$(backupVaultName)/vault-lock"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backup_vault_lock_configuration( backupVaultName, params::AbstractDict{String}; @@ -784,19 +727,17 @@ Deletes event notifications for the specified backup vault. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Region where they are created. They consist of lowercase letters, numbers, and hyphens. + Region where they are created. """ -function delete_backup_vault_notifications( +delete_backup_vault_notifications( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "DELETE", + "/backup-vaults/$(backupVaultName)/notification-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/backup-vaults/$(backupVaultName)/notification-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_backup_vault_notifications( backupVaultName, params::AbstractDict{String}; @@ -821,14 +762,13 @@ Deletes the framework specified by a framework name. - `framework_name`: The unique name of a framework. """ -function delete_framework(frameworkName; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( +delete_framework(frameworkName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "DELETE", "/audit/frameworks/$(frameworkName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_framework( frameworkName, params::AbstractDict{String}; @@ -860,23 +800,20 @@ be successful and will enter an EXPIRED state. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. - `recovery_point_arn`: An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. """ -function delete_recovery_point( +delete_recovery_point( backupVaultName, recoveryPointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "DELETE", + "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_recovery_point( backupVaultName, recoveryPointArn, @@ -902,16 +839,13 @@ Deletes the report plan specified by a report plan name. - `report_plan_name`: The unique name of a report plan. """ -function delete_report_plan( - reportPlanName; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +delete_report_plan(reportPlanName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "DELETE", "/audit/report-plans/$(reportPlanName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_report_plan( reportPlanName, params::AbstractDict{String}; @@ -938,16 +872,14 @@ occur if all associated restore testing selections are deleted first. delete. """ -function delete_restore_testing_plan( +delete_restore_testing_plan( RestoreTestingPlanName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "DELETE", + "/restore-testing/plans/$(RestoreTestingPlanName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/restore-testing/plans/$(RestoreTestingPlanName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_restore_testing_plan( RestoreTestingPlanName, params::AbstractDict{String}; @@ -977,18 +909,16 @@ testing plan can be deleted. you wish to delete. """ -function delete_restore_testing_selection( +delete_restore_testing_selection( RestoreTestingPlanName, RestoreTestingSelectionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "DELETE", + "/restore-testing/plans/$(RestoreTestingPlanName)/selections/$(RestoreTestingSelectionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/restore-testing/plans/$(RestoreTestingPlanName)/selections/$(RestoreTestingSelectionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_restore_testing_selection( RestoreTestingPlanName, RestoreTestingSelectionName, @@ -1014,16 +944,13 @@ Returns backup job details for the specified BackupJobId. - `backup_job_id`: Uniquely identifies a request to Backup to back up a resource. """ -function describe_backup_job( - backupJobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +describe_backup_job(backupJobId; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "GET", "/backup-jobs/$(backupJobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_backup_job( backupJobId, params::AbstractDict{String}; @@ -1047,23 +974,19 @@ Returns metadata about a backup vault specified by its name. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"backupVaultAccountId"`: This is the account ID of the specified backup vault. +- `"backupVaultAccountId"`: The account ID of the specified backup vault. """ -function describe_backup_vault( - backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +describe_backup_vault(backupVaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "GET", "/backup-vaults/$(backupVaultName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_backup_vault( backupVaultName, params::AbstractDict{String}; @@ -1088,14 +1011,12 @@ Returns metadata associated with creating a copy of a resource. - `copy_job_id`: Uniquely identifies a copy job. """ -function describe_copy_job(copyJobId; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/copy-jobs/$(copyJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_copy_job(copyJobId; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/copy-jobs/$(copyJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_copy_job( copyJobId, params::AbstractDict{String}; @@ -1120,16 +1041,13 @@ Returns the framework details for the specified FrameworkName. - `framework_name`: The unique name of a framework. """ -function describe_framework( - frameworkName; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +describe_framework(frameworkName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "GET", "/audit/frameworks/$(frameworkName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_framework( frameworkName, params::AbstractDict{String}; @@ -1153,11 +1071,9 @@ Returns an error if the account is not a member of an Organizations organization describe-global-settings --region us-west-2 """ -function describe_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/global-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", "/global-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_global_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1182,16 +1098,14 @@ Amazon Resource Name (ARN), and the Amazon Web Services service type of the save format of the ARN depends on the resource type. """ -function describe_protected_resource( +describe_protected_resource( resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/resources/$(resourceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/resources/$(resourceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_protected_resource( resourceArn, params::AbstractDict{String}; @@ -1216,26 +1130,23 @@ lifecycle. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. - `recovery_point_arn`: An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"backupVaultAccountId"`: This is the account ID of the specified backup vault. +- `"backupVaultAccountId"`: The account ID of the specified backup vault. """ -function describe_recovery_point( +describe_recovery_point( backupVaultName, recoveryPointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_recovery_point( backupVaultName, recoveryPointArn, @@ -1261,11 +1172,9 @@ resource is included in an on-demand backup or scheduled backup plan. Otherwise, does not try to protect that service's resources in this Region. """ -function describe_region_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/account-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_region_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", "/account-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_region_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1289,16 +1198,13 @@ Returns the details associated with creating a report as specified by its Report UTF-8 encoded string that is at most 1,024 bytes long. The report job ID cannot be edited. """ -function describe_report_job( - reportJobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +describe_report_job(reportJobId; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "GET", "/audit/report-jobs/$(reportJobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_report_job( reportJobId, params::AbstractDict{String}; @@ -1324,16 +1230,13 @@ Services Region. - `report_plan_name`: The unique name of a report plan. """ -function describe_report_plan( - reportPlanName; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +describe_report_plan(reportPlanName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "GET", "/audit/report-plans/$(reportPlanName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_report_plan( reportPlanName, params::AbstractDict{String}; @@ -1358,16 +1261,13 @@ Returns metadata associated with a restore job that is specified by a job ID. - `restore_job_id`: Uniquely identifies the job that restores a recovery point. """ -function describe_restore_job( - restoreJobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +describe_restore_job(restoreJobId; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "GET", "/restore-jobs/$(restoreJobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_restore_job( restoreJobId, params::AbstractDict{String}; @@ -1397,16 +1297,14 @@ your original backup plan. Does not support snapshot backup recovery points. recovery point. """ -function disassociate_recovery_point( +disassociate_recovery_point( backupVaultName, recoveryPointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "POST", + "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)/disassociate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "POST", - "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)/disassociate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_recovery_point( backupVaultName, recoveryPointArn, @@ -1430,25 +1328,22 @@ This action to a specific child (nested) recovery point removes the relationship the specified recovery point and its parent (composite) recovery point. # Arguments -- `backup_vault_name`: This is the name of a logical container where the child (nested) - recovery point is stored. Backup vaults are identified by names that are unique to the - account used to create them and the Amazon Web Services Region where they are created. They - consist of lowercase letters, numbers, and hyphens. -- `recovery_point_arn`: This is the Amazon Resource Name (ARN) that uniquely identifies the - child (nested) recovery point; for example, +- `backup_vault_name`: The name of a logical container where the child (nested) recovery + point is stored. Backup vaults are identified by names that are unique to the account used + to create them and the Amazon Web Services Region where they are created. +- `recovery_point_arn`: The Amazon Resource Name (ARN) that uniquely identifies the child + (nested) recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. """ -function disassociate_recovery_point_from_parent( +disassociate_recovery_point_from_parent( backupVaultName, recoveryPointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "DELETE", + "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)/parentAssociation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "DELETE", - "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)/parentAssociation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_recovery_point_from_parent( backupVaultName, recoveryPointArn, @@ -1474,16 +1369,14 @@ Returns the backup plan that is specified by the plan ID as a backup template. - `backup_plan_id`: Uniquely identifies a backup plan. """ -function export_backup_plan_template( +export_backup_plan_template( backupPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup/plans/$(backupPlanId)/toTemplate/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup/plans/$(backupPlanId)/toTemplate/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_backup_plan_template( backupPlanId, params::AbstractDict{String}; @@ -1513,14 +1406,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versionId"`: Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited. """ -function get_backup_plan(backupPlanId; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/backup/plans/$(backupPlanId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_backup_plan(backupPlanId; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/backup/plans/$(backupPlanId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_backup_plan( backupPlanId, params::AbstractDict{String}; @@ -1545,17 +1436,15 @@ Returns a valid JSON document specifying a backup plan or an error. - `backup_plan_template_json`: A customer-supplied backup plan document in JSON format. """ -function get_backup_plan_from_json( +get_backup_plan_from_json( BackupPlanTemplateJson; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "POST", + "/backup/template/json/toPlan", + Dict{String,Any}("BackupPlanTemplateJson" => BackupPlanTemplateJson); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "POST", - "/backup/template/json/toPlan", - Dict{String,Any}("BackupPlanTemplateJson" => BackupPlanTemplateJson); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backup_plan_from_json( BackupPlanTemplateJson, params::AbstractDict{String}; @@ -1586,16 +1475,14 @@ Returns the template specified by its templateId as a backup plan. - `template_id`: Uniquely identifies a stored backup plan template. """ -function get_backup_plan_from_template( +get_backup_plan_from_template( templateId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup/template/plans/$(templateId)/toPlan"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup/template/plans/$(templateId)/toPlan"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backup_plan_from_template( templateId, params::AbstractDict{String}; @@ -1623,16 +1510,14 @@ that are associated with a backup plan. a backup plan. """ -function get_backup_selection( +get_backup_selection( backupPlanId, selectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup/plans/$(backupPlanId)/selections/$(selectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup/plans/$(backupPlanId)/selections/$(selectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backup_selection( backupPlanId, selectionId, @@ -1657,20 +1542,17 @@ Returns the access policy document that is associated with the named backup vaul # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. """ -function get_backup_vault_access_policy( +get_backup_vault_access_policy( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup-vaults/$(backupVaultName)/access-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup-vaults/$(backupVaultName)/access-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backup_vault_access_policy( backupVaultName, params::AbstractDict{String}; @@ -1694,20 +1576,17 @@ Returns event notifications for the specified backup vault. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. """ -function get_backup_vault_notifications( +get_backup_vault_notifications( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup-vaults/$(backupVaultName)/notification-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup-vaults/$(backupVaultName)/notification-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_backup_vault_notifications( backupVaultName, params::AbstractDict{String}; @@ -1730,18 +1609,15 @@ This action returns details for a specified legal hold. The details are the body hold in JSON format, in addition to metadata. # Arguments -- `legal_hold_id`: This is the ID required to use GetLegalHold. This unique ID is - associated with a specific legal hold. +- `legal_hold_id`: The ID of the legal hold. """ -function get_legal_hold(legalHoldId; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/legal-holds/$(legalHoldId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_legal_hold(legalHoldId; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/legal-holds/$(legalHoldId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_legal_hold( legalHoldId, params::AbstractDict{String}; @@ -1765,26 +1641,23 @@ Returns a set of metadata key-value pairs that were used to create the backup. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. - `recovery_point_arn`: An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"backupVaultAccountId"`: This is the account ID of the specified backup vault. +- `"backupVaultAccountId"`: The account ID of the specified backup vault. """ -function get_recovery_point_restore_metadata( +get_recovery_point_restore_metadata( backupVaultName, recoveryPointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)/restore-metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)/restore-metadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recovery_point_restore_metadata( backupVaultName, recoveryPointArn, @@ -1810,16 +1683,13 @@ This request returns the metadata for the specified restore job. - `restore_job_id`: This is a unique identifier of a restore job within Backup. """ -function get_restore_job_metadata( - restoreJobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +get_restore_job_metadata(restoreJobId; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "GET", "/restore-jobs/$(restoreJobId)/metadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_restore_job_metadata( restoreJobId, params::AbstractDict{String}; @@ -1853,21 +1723,19 @@ BackupVaultAccountId is an optional parameter. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"BackupVaultAccountId"`: This is the account ID of the specified backup vault. +- `"BackupVaultAccountId"`: The account ID of the specified backup vault. """ -function get_restore_testing_inferred_metadata( +get_restore_testing_inferred_metadata( BackupVaultName, RecoveryPointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/restore-testing/inferred-metadata", + Dict{String,Any}( + "BackupVaultName" => BackupVaultName, "RecoveryPointArn" => RecoveryPointArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/restore-testing/inferred-metadata", - Dict{String,Any}( - "BackupVaultName" => BackupVaultName, "RecoveryPointArn" => RecoveryPointArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_restore_testing_inferred_metadata( BackupVaultName, RecoveryPointArn, @@ -1903,16 +1771,14 @@ are the body of a restore testing plan in JSON format, in addition to plan metad - `restore_testing_plan_name`: Required unique name of the restore testing plan. """ -function get_restore_testing_plan( +get_restore_testing_plan( RestoreTestingPlanName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/restore-testing/plans/$(RestoreTestingPlanName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/restore-testing/plans/$(RestoreTestingPlanName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_restore_testing_plan( RestoreTestingPlanName, params::AbstractDict{String}; @@ -1939,18 +1805,16 @@ testing plan. - `restore_testing_selection_name`: Required unique name of the restore testing selection. """ -function get_restore_testing_selection( +get_restore_testing_selection( RestoreTestingPlanName, RestoreTestingSelectionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "GET", + "/restore-testing/plans/$(RestoreTestingPlanName)/selections/$(RestoreTestingSelectionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/restore-testing/plans/$(RestoreTestingPlanName)/selections/$(RestoreTestingSelectionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_restore_testing_selection( RestoreTestingPlanName, RestoreTestingSelectionName, @@ -1973,14 +1837,12 @@ end Returns the Amazon Web Services resource types supported by Backup. """ -function get_supported_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/supported-resource-types"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_supported_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/supported-resource-types"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_supported_resource_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2011,12 +1873,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys accounts can use the value ANY to return job counts from every account in the organization. AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum. -- `"AggregationPeriod"`: This is the period that sets the boundaries for returned results. - Acceptable values include ONE_DAY for daily job count for the prior 14 days. - SEVEN_DAYS for the aggregated job count for the prior 7 days. FOURTEEN_DAYS for - aggregated job count for prior 14 days. -- `"MaxResults"`: This parameter sets the maximum number of items to be returned. The value - is an integer. Range of accepted values is from 1 to 500. +- `"AggregationPeriod"`: The period for the returned results. ONE_DAY - The daily job + count for the prior 14 days. SEVEN_DAYS - The aggregated job count for the prior 7 days. + FOURTEEN_DAYS - The aggregated job count for prior 14 days. +- `"MaxResults"`: The maximum number of items to be returned. The value is an integer. + Range of accepted values is from 1 to 500. - `"MessageCategory"`: This parameter returns the job count for the specified message category. Example accepted strings include AccessDenied, Success, and InvalidParameters. See Monitoring for a list of accepted MessageCategory strings. The the value ANY returns @@ -2042,14 +1903,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS& ;State=COMPLETED """ -function list_backup_job_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/audit/backup-job-summaries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_backup_job_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/audit/backup-job-summaries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_backup_job_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2076,8 +1935,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns all jobs across the organization. - `"backupVaultName"`: Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create - them and the Amazon Web Services Region where they are created. They consist of lowercase - letters, numbers, and hyphens. + them and the Amazon Web Services Region where they are created. - `"completeAfter"`: Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC). - `"completeBefore"`: Returns only backup jobs completed before a date expressed in Unix @@ -2100,10 +1958,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Aurora CloudFormation for CloudFormation DocumentDB for Amazon DocumentDB (with MongoDB compatibility) DynamoDB for Amazon DynamoDB EBS for Amazon Elastic Block Store EC2 for Amazon Elastic Compute Cloud EFS for Amazon Elastic File System - FSx for Amazon FSx Neptune for Amazon Neptune Redshift for Amazon Redshift RDS - for Amazon Relational Database Service SAP HANA on Amazon EC2 for SAP HANA databases - Storage Gateway for Storage Gateway S3 for Amazon S3 Timestream for Amazon Timestream - VirtualMachine for virtual machines + FSx for Amazon FSx Neptune for Amazon Neptune RDS for Amazon Relational Database + Service Redshift for Amazon Redshift S3 for Amazon Simple Storage Service (Amazon S3) + SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances + Storage Gateway for Storage Gateway Timestream for Amazon Timestream VirtualMachine + for VMware virtual machines - `"state"`: Returns only backup jobs that are in the specified state. Completed with issues is a status found only in the Backup console. For API, this status refers to jobs with a state of COMPLETED and a MessageCategory with a value other than SUCCESS; that is, @@ -2111,11 +1970,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Completed with issues, run two GET requests, and subtract the second, smaller number: GET /backup-jobs/?state=COMPLETED GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED """ -function list_backup_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/backup-jobs/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_backup_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup("GET", "/backup-jobs/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_backup_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2132,24 +1988,21 @@ end list_backup_plan_templates() list_backup_plan_templates(params::Dict{String,<:Any}) -Returns metadata of your saved backup plan templates, including the template ID, name, and -the creation and deletion dates. +Lists the backup plan templates. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: The maximum number of items to be returned. +- `"maxResults"`: The maximum number of items to return. - `"nextToken"`: The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_backup_plan_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/backup/template/plans"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_backup_plan_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/backup/template/plans"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_backup_plan_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2179,16 +2032,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_backup_plan_versions( +list_backup_plan_versions( backupPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup/plans/$(backupPlanId)/versions/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup/plans/$(backupPlanId)/versions/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_backup_plan_versions( backupPlanId, params::AbstractDict{String}; @@ -2207,9 +2058,7 @@ end list_backup_plans() list_backup_plans(params::Dict{String,<:Any}) -Returns a list of all active backup plans for an authenticated account. The list contains -information such as Amazon Resource Names (ARNs), plan IDs, creation and deletion dates, -version IDs, plan names, and creator request IDs. +Lists the active backup plans for the account. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -2220,11 +2069,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_backup_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/backup/plans/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_backup_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup("GET", "/backup/plans/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_backup_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2254,16 +2100,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_backup_selections( - backupPlanId; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +list_backup_selections(backupPlanId; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "GET", "/backup/plans/$(backupPlanId)/selections/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_backup_selections( backupPlanId, params::AbstractDict{String}; @@ -2293,11 +2136,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"shared"`: This parameter will sort the list of vaults by shared vaults. - `"vaultType"`: This parameter will sort the list of vaults by vault type. """ -function list_backup_vaults(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/backup-vaults/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_backup_vaults(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup("GET", "/backup-vaults/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_backup_vaults( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2328,9 +2168,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys accounts can use the value ANY to return job counts from every account in the organization. AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum. -- `"AggregationPeriod"`: This is the period that sets the boundaries for returned results. - ONE_DAY for daily job count for the prior 14 days. SEVEN_DAYS for the aggregated job - count for the prior 7 days. FOURTEEN_DAYS for aggregated job count for prior 14 days. +- `"AggregationPeriod"`: The period for the returned results. ONE_DAY - The daily job + count for the prior 14 days. SEVEN_DAYS - The aggregated job count for the prior 7 days. + FOURTEEN_DAYS - The aggregated job count for prior 14 days. - `"MaxResults"`: This parameter sets the maximum number of items to be returned. The value is an integer. Range of accepted values is from 1 to 500. - `"MessageCategory"`: This parameter returns the job count for the specified message @@ -2351,14 +2191,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value ANY returns count of all states. AGGREGATE_ALL aggregates job counts for all states and returns the sum. """ -function list_copy_job_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/audit/copy-job-summaries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_copy_job_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/audit/copy-job-summaries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_copy_job_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2389,7 +2227,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"createdBefore"`: Returns only copy jobs that were created before the specified date. - `"destinationVaultArn"`: An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example, - arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. - `"maxResults"`: The maximum number of items to be returned. - `"messageCategory"`: This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input. Example strings may include @@ -2406,17 +2244,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Aurora CloudFormation for CloudFormation DocumentDB for Amazon DocumentDB (with MongoDB compatibility) DynamoDB for Amazon DynamoDB EBS for Amazon Elastic Block Store EC2 for Amazon Elastic Compute Cloud EFS for Amazon Elastic File System - FSx for Amazon FSx Neptune for Amazon Neptune Redshift for Amazon Redshift RDS - for Amazon Relational Database Service SAP HANA on Amazon EC2 for SAP HANA databases - Storage Gateway for Storage Gateway S3 for Amazon S3 Timestream for Amazon Timestream - VirtualMachine for virtual machines + FSx for Amazon FSx Neptune for Amazon Neptune RDS for Amazon Relational Database + Service Redshift for Amazon Redshift S3 for Amazon Simple Storage Service (Amazon S3) + SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances + Storage Gateway for Storage Gateway Timestream for Amazon Timestream VirtualMachine + for VMware virtual machines - `"state"`: Returns only copy jobs that are in the specified state. """ -function list_copy_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/copy-jobs/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_copy_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup("GET", "/copy-jobs/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_copy_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2439,11 +2275,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_frameworks(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/audit/frameworks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_frameworks(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", "/audit/frameworks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_frameworks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2469,11 +2303,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_legal_holds(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/legal-holds/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_legal_holds(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup("GET", "/legal-holds/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_legal_holds( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2500,11 +2331,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_protected_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/resources/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_protected_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup("GET", "/resources/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_protected_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2520,28 +2348,26 @@ end This request lists the protected resources corresponding to each backup vault. # Arguments -- `backup_vault_name`: This is the list of protected resources by backup vault within the - vault(s) you specify by name. +- `backup_vault_name`: The list of protected resources by backup vault within the vault(s) + you specify by name. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"backupVaultAccountId"`: This is the list of protected resources by backup vault within - the vault(s) you specify by account ID. +- `"backupVaultAccountId"`: The list of protected resources by backup vault within the + vault(s) you specify by account ID. - `"maxResults"`: The maximum number of items to be returned. - `"nextToken"`: The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_protected_resources_by_backup_vault( +list_protected_resources_by_backup_vault( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup-vaults/$(backupVaultName)/resources/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup-vaults/$(backupVaultName)/resources/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_protected_resources_by_backup_vault( backupVaultName, params::AbstractDict{String}; @@ -2565,9 +2391,8 @@ Returns detailed information about the recovery points stored in a backup vault. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. Backup vault name might not be available when a supported service - creates the backup. + Amazon Web Services Region where they are created. Backup vault name might not be + available when a supported service creates the backup. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -2590,21 +2415,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Aurora for Amazon Aurora CloudFormation for CloudFormation DocumentDB for Amazon DocumentDB (with MongoDB compatibility) DynamoDB for Amazon DynamoDB EBS for Amazon Elastic Block Store EC2 for Amazon Elastic Compute Cloud EFS for Amazon Elastic File - System FSx for Amazon FSx Neptune for Amazon Neptune Redshift for Amazon Redshift - RDS for Amazon Relational Database Service SAP HANA on Amazon EC2 for SAP HANA - databases Storage Gateway for Storage Gateway S3 for Amazon S3 Timestream for - Amazon Timestream VirtualMachine for virtual machines + System FSx for Amazon FSx Neptune for Amazon Neptune RDS for Amazon Relational + Database Service Redshift for Amazon Redshift S3 for Amazon Simple Storage Service + (Amazon S3) SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute + Cloud instances Storage Gateway for Storage Gateway Timestream for Amazon Timestream + VirtualMachine for VMware virtual machines """ -function list_recovery_points_by_backup_vault( +list_recovery_points_by_backup_vault( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/backup-vaults/$(backupVaultName)/recovery-points/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/backup-vaults/$(backupVaultName)/recovery-points/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_recovery_points_by_backup_vault( backupVaultName, params::AbstractDict{String}; @@ -2626,25 +2450,23 @@ end This action returns recovery point ARNs (Amazon Resource Names) of the specified legal hold. # Arguments -- `legal_hold_id`: This is the ID of the legal hold. +- `legal_hold_id`: The ID of the legal hold. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: This is the maximum number of resource list items to be returned. -- `"nextToken"`: This is the next item following a partial list of returned resources. For - example, if a request is made to return MaxResults number of resources, NextToken allows - you to return more items in your list starting at the location pointed to by the next token. +- `"maxResults"`: The maximum number of resource list items to be returned. +- `"nextToken"`: The next item following a partial list of returned resources. For example, + if a request is made to return MaxResults number of resources, NextToken allows you to + return more items in your list starting at the location pointed to by the next token. """ -function list_recovery_points_by_legal_hold( +list_recovery_points_by_legal_hold( legalHoldId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/legal-holds/$(legalHoldId)/recovery-points"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/legal-holds/$(legalHoldId)/recovery-points"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_recovery_points_by_legal_hold( legalHoldId, params::AbstractDict{String}; @@ -2663,9 +2485,9 @@ end list_recovery_points_by_resource(resource_arn) list_recovery_points_by_resource(resource_arn, params::Dict{String,<:Any}) -Returns detailed information about all the recovery points of the type specified by a -resource Amazon Resource Name (ARN). For Amazon EFS and Amazon EC2, this action only lists -recovery points created by Backup. +The information about the recovery points of the type specified by a resource Amazon +Resource Name (ARN). For Amazon EFS and Amazon EC2, this action only lists recovery points +created by Backup. # Arguments - `resource_arn`: An ARN that uniquely identifies a resource. The format of the ARN depends @@ -2683,16 +2505,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_recovery_points_by_resource( +list_recovery_points_by_resource( resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/resources/$(resourceArn)/recovery-points/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/resources/$(resourceArn)/recovery-points/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_recovery_points_by_resource( resourceArn, params::AbstractDict{String}; @@ -2729,11 +2549,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: Returns only report jobs that are in the specified status. The statuses are: CREATED | RUNNING | COMPLETED | FAILED """ -function list_report_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/audit/report-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_report_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", "/audit/report-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_report_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2760,11 +2578,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_report_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/audit/report-plans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_report_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", "/audit/report-plans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_report_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2795,10 +2611,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys accounts can use the value ANY to return job counts from every account in the organization. AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum. -- `"AggregationPeriod"`: This is the period that sets the boundaries for returned results. - Acceptable values include ONE_DAY for daily job count for the prior 14 days. - SEVEN_DAYS for the aggregated job count for the prior 7 days. FOURTEEN_DAYS for - aggregated job count for prior 14 days. +- `"AggregationPeriod"`: The period for the returned results. ONE_DAY - The daily job + count for the prior 14 days. SEVEN_DAYS - The aggregated job count for the prior 7 days. + FOURTEEN_DAYS - The aggregated job count for prior 14 days. - `"MaxResults"`: This parameter sets the maximum number of items to be returned. The value is an integer. Range of accepted values is from 1 to 500. - `"NextToken"`: The next item following a partial list of returned resources. For example, @@ -2814,14 +2629,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value ANY returns count of all states. AGGREGATE_ALL aggregates job counts for all states and returns the sum. """ -function list_restore_job_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/audit/restore-job-summaries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_restore_job_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/audit/restore-job-summaries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_restore_job_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2859,19 +2672,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resources: Aurora for Amazon Aurora CloudFormation for CloudFormation DocumentDB for Amazon DocumentDB (with MongoDB compatibility) DynamoDB for Amazon DynamoDB EBS for Amazon Elastic Block Store EC2 for Amazon Elastic Compute Cloud EFS for Amazon - Elastic File System FSx for Amazon FSx Neptune for Amazon Neptune Redshift for - Amazon Redshift RDS for Amazon Relational Database Service SAP HANA on Amazon EC2 for - SAP HANA databases Storage Gateway for Storage Gateway S3 for Amazon S3 Timestream - for Amazon Timestream VirtualMachine for virtual machines + Elastic File System FSx for Amazon FSx Neptune for Amazon Neptune RDS for Amazon + Relational Database Service Redshift for Amazon Redshift S3 for Amazon Simple Storage + Service (Amazon S3) SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic + Compute Cloud instances Storage Gateway for Storage Gateway Timestream for Amazon + Timestream VirtualMachine for VMware virtual machines - `"restoreTestingPlanArn"`: This returns only restore testing jobs that match the specified resource Amazon Resource Name (ARN). - `"status"`: Returns only restore jobs associated with the specified job status. """ -function list_restore_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", "/restore-jobs/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_restore_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup("GET", "/restore-jobs/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_restore_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2908,16 +2719,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys were created before the specified date. - `"status"`: Returns only restore jobs associated with the specified job status. """ -function list_restore_jobs_by_protected_resource( +list_restore_jobs_by_protected_resource( resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/resources/$(resourceArn)/restore-jobs/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/resources/$(resourceArn)/restore-jobs/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_restore_jobs_by_protected_resource( resourceArn, params::AbstractDict{String}; @@ -2945,14 +2754,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the nexttoken. """ -function list_restore_testing_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/restore-testing/plans"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_restore_testing_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/restore-testing/plans"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_restore_testing_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2983,16 +2790,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the nexttoken. """ -function list_restore_testing_selections( +list_restore_testing_selections( RestoreTestingPlanName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "GET", + "/restore-testing/plans/$(RestoreTestingPlanName)/selections"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "GET", - "/restore-testing/plans/$(RestoreTestingPlanName)/selections"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_restore_testing_selections( RestoreTestingPlanName, params::AbstractDict{String}; @@ -3011,10 +2816,8 @@ end list_tags(resource_arn) list_tags(resource_arn, params::Dict{String,<:Any}) -Returns a list of key-value pairs assigned to a target recovery point, backup plan, or -backup vault. ListTags only works for resource types that support full Backup management -of their backups. Those resource types are listed in the \"Full Backup management\" section -of the Feature availability by resource table. +Returns the tags assigned to the resource, such as a target recovery point, backup plan, or +backup vault. # Arguments - `resource_arn`: An Amazon Resource Name (ARN) that uniquely identifies a resource. The @@ -3028,14 +2831,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_tags(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "GET", - "/tags/$(resourceArn)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "GET", + "/tags/$(resourceArn)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( resourceArn, params::AbstractDict{String}; @@ -3060,23 +2861,20 @@ vault. Requires a backup vault name and an access policy document in JSON format # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Policy"`: The backup vault access policy document in JSON format. """ -function put_backup_vault_access_policy( +put_backup_vault_access_policy( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "PUT", + "/backup-vaults/$(backupVaultName)/access-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/backup-vaults/$(backupVaultName)/access-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_backup_vault_access_policy( backupVaultName, params::AbstractDict{String}; @@ -3102,7 +2900,8 @@ stored in a backup vault. If specified, Vault Lock enforces a minimum and maximu period for future backup and copy jobs that target a backup vault. Backup Vault Lock has been assessed by Cohasset Associates for use in environments that are subject to SEC 17a-4, CFTC, and FINRA regulations. For more information about how Backup Vault Lock relates to -these regulations, see the Cohasset Associates Compliance Assessment. +these regulations, see the Cohasset Associates Compliance Assessment. For more +information, see Backup Vault Lock. # Arguments - `backup_vault_name`: The Backup Vault Lock configuration that specifies the name of the @@ -3137,25 +2936,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MinRetentionDays"`: The Backup Vault Lock configuration that specifies the minimum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization's policies require you to retain certain data for at least - seven years (2555 days). If this parameter is not specified, Vault Lock will not enforce a - minimum retention period. If this parameter is specified, any backup or copy job to the - vault must have a lifecycle policy with a retention period equal to or longer than the - minimum retention period. If the job's retention period is shorter than that minimum - retention period, then the vault fails that backup or copy job, and you should either - modify your lifecycle settings or use a different vault. The shortest minimum retention - period you can specify is 1 day. Recovery points already saved in the vault prior to Vault - Lock are not affected. -""" -function put_backup_vault_lock_configuration( + seven years (2555 days). This parameter is required when a vault lock is created through + CloudFormation; otherwise, this parameter is optional. If this parameter is not specified, + Vault Lock will not enforce a minimum retention period. If this parameter is specified, any + backup or copy job to the vault must have a lifecycle policy with a retention period equal + to or longer than the minimum retention period. If the job's retention period is shorter + than that minimum retention period, then the vault fails that backup or copy job, and you + should either modify your lifecycle settings or use a different vault. The shortest minimum + retention period you can specify is 1 day. Recovery points already saved in the vault prior + to Vault Lock are not affected. +""" +put_backup_vault_lock_configuration( backupVaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "PUT", + "/backup-vaults/$(backupVaultName)/vault-lock"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/backup-vaults/$(backupVaultName)/vault-lock"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_backup_vault_lock_configuration( backupVaultName, params::AbstractDict{String}; @@ -3182,34 +2980,31 @@ Turns on notifications on a backup vault for the specified topic and events. to track Backup events. The following events are supported: BACKUP_JOB_STARTED | BACKUP_JOB_COMPLETED COPY_JOB_STARTED | COPY_JOB_SUCCESSFUL | COPY_JOB_FAILED RESTORE_JOB_STARTED | RESTORE_JOB_COMPLETED | RECOVERY_POINT_MODIFIED - S3_BACKUP_OBJECT_FAILED | S3_RESTORE_OBJECT_FAILED The list below shows items that are - deprecated events (for reference) and are no longer in use. They are no longer supported - and will not return statuses or notifications. Refer to the list above for current + S3_BACKUP_OBJECT_FAILED | S3_RESTORE_OBJECT_FAILED The list below includes both + supported events and deprecated events that are no longer in use (for reference). + Deprecated events do not return statuses or notifications. Refer to the list above for the supported events. - `snstopic_arn`: The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events; for example, arn:aws:sns:us-west-2:111122223333:MyVaultTopic. - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. """ -function put_backup_vault_notifications( +put_backup_vault_notifications( BackupVaultEvents, SNSTopicArn, backupVaultName; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "PUT", + "/backup-vaults/$(backupVaultName)/notification-configuration", + Dict{String,Any}( + "BackupVaultEvents" => BackupVaultEvents, "SNSTopicArn" => SNSTopicArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/backup-vaults/$(backupVaultName)/notification-configuration", - Dict{String,Any}( - "BackupVaultEvents" => BackupVaultEvents, "SNSTopicArn" => SNSTopicArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_backup_vault_notifications( BackupVaultEvents, SNSTopicArn, @@ -3243,7 +3038,7 @@ RestoreJobId and ValidationStatus are required. Optionally, you can input a ValidationStatusMessage. # Arguments -- `validation_status`: This is the status of your restore validation. +- `validation_status`: The status of your restore validation. - `restore_job_id`: This is a unique identifier of a restore job within Backup. # Optional Parameters @@ -3251,17 +3046,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ValidationStatusMessage"`: This is an optional message string you can input to describe the validation status for the restore test validation. """ -function put_restore_validation_result( +put_restore_validation_result( ValidationStatus, restoreJobId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "PUT", + "/restore-jobs/$(restoreJobId)/validations", + Dict{String,Any}("ValidationStatus" => ValidationStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/restore-jobs/$(restoreJobId)/validations", - Dict{String,Any}("ValidationStatus" => ValidationStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_restore_validation_result( ValidationStatus, restoreJobId, @@ -3290,8 +3083,7 @@ Starts an on-demand backup job for the specified resource. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. - `iam_role_arn`: Specifies the IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. - `resource_arn`: An Amazon Resource Name (ARN) that uniquely identifies a resource. The @@ -3299,11 +3091,11 @@ Starts an on-demand backup job for the specified resource. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"BackupOptions"`: Specifies the backup option for a selected resource. This option is - only available for Windows Volume Shadow Copy Service (VSS) backup jobs. Valid values: Set - to \"WindowsVSS\":\"enabled\" to enable the WindowsVSS backup option and create a Windows - VSS backup. Set to \"WindowsVSS\"\"disabled\" to create a regular backup. The WindowsVSS - option is not enabled by default. +- `"BackupOptions"`: The backup option for a selected resource. This option is only + available for Windows Volume Shadow Copy Service (VSS) backup jobs. Valid values: Set to + \"WindowsVSS\":\"enabled\" to enable the WindowsVSS backup option and create a Windows VSS + backup. Set to \"WindowsVSS\"\"disabled\" to create a regular backup. The WindowsVSS option + is not enabled by default. - `"CompleteWindowMinutes"`: A value in minutes during which a successfully started backup must complete, or else Backup will cancel the job. This value is optional. This value begins counting down from when the backup was scheduled. It does not add additional time @@ -3318,12 +3110,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been - transitioned to cold. Resource types that are able to be transitioned to cold storage are - listed in the \"Lifecycle to cold storage\" section of the Feature availability by - resource table. Backup ignores this expression for other resource types. This parameter has - a maximum value of 100 years (36,500 days). -- `"RecoveryPointTags"`: To help organize your resources, you can assign your own metadata - to the resources that you create. Each tag is a key-value pair. + transitioned to cold. Resource types that can transition to cold storage are listed in the + Feature availability by resource table. Backup ignores this expression for other resource + types. This parameter has a maximum value of 100 years (36,500 days). +- `"RecoveryPointTags"`: The tags to assign to the resources. - `"StartWindowMinutes"`: A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional, and the default is 8 hours. If this value is included, it must be at least 60 minutes to avoid errors. This @@ -3335,24 +3125,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys RUNNING) or until the job status changes to EXPIRED (which is expected to occur when the start window time is over). """ -function start_backup_job( +start_backup_job( BackupVaultName, IamRoleArn, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "PUT", + "/backup-jobs", + Dict{String,Any}( + "BackupVaultName" => BackupVaultName, + "IamRoleArn" => IamRoleArn, + "ResourceArn" => ResourceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/backup-jobs", - Dict{String,Any}( - "BackupVaultName" => BackupVaultName, - "IamRoleArn" => IamRoleArn, - "ResourceArn" => ResourceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_backup_job( BackupVaultName, IamRoleArn, @@ -3389,7 +3177,7 @@ continuous backups. # Arguments - `destination_backup_vault_arn`: An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example, - arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. - `iam_role_arn`: Specifies the IAM role ARN used to copy the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. - `recovery_point_arn`: An ARN that uniquely identifies a recovery point to use for the @@ -3397,8 +3185,7 @@ continuous backups. arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. - `source_backup_vault_name`: The name of a logical source container where backups are stored. Backup vaults are identified by names that are unique to the account used to create - them and the Amazon Web Services Region where they are created. They consist of lowercase - letters, numbers, and hyphens. + them and the Amazon Web Services Region where they are created. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -3407,26 +3194,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency token results in a success message with no action taken. - `"Lifecycle"`: """ -function start_copy_job( +start_copy_job( DestinationBackupVaultArn, IamRoleArn, RecoveryPointArn, SourceBackupVaultName; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "PUT", + "/copy-jobs", + Dict{String,Any}( + "DestinationBackupVaultArn" => DestinationBackupVaultArn, + "IamRoleArn" => IamRoleArn, + "RecoveryPointArn" => RecoveryPointArn, + "SourceBackupVaultName" => SourceBackupVaultName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/copy-jobs", - Dict{String,Any}( - "DestinationBackupVaultArn" => DestinationBackupVaultArn, - "IamRoleArn" => IamRoleArn, - "RecoveryPointArn" => RecoveryPointArn, - "SourceBackupVaultName" => SourceBackupVaultName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_copy_job( DestinationBackupVaultArn, IamRoleArn, @@ -3470,17 +3255,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys otherwise identical calls to StartReportJobInput. Retrying a successful request with the same idempotency token results in a success message with no action taken. """ -function start_report_job( - reportPlanName; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +start_report_job(reportPlanName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "POST", "/audit/report-jobs/$(reportPlanName)", Dict{String,Any}("IdempotencyToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_report_job( reportPlanName, params::AbstractDict{String}; @@ -3506,25 +3288,17 @@ end Recovers the saved resource identified by an Amazon Resource Name (ARN). # Arguments -- `metadata`: A set of metadata key-value pairs. Contains information, such as a resource - name, required to restore a recovery point. You can get configuration metadata about a +- `metadata`: A set of metadata key-value pairs. You can get configuration metadata about a resource at the time it was backed up by calling GetRecoveryPointRestoreMetadata. However, values in addition to those provided by GetRecoveryPointRestoreMetadata might be required to restore a resource. For example, you might need to provide a new resource name if the - original already exists. You need to specify specific metadata to restore an Amazon Elastic - File System (Amazon EFS) instance: file-system-id: The ID of the Amazon EFS file system - that is backed up by Backup. Returned in GetRecoveryPointRestoreMetadata. Encrypted: A - Boolean value that, if true, specifies that the file system is encrypted. If KmsKeyId is - specified, Encrypted must be set to true. KmsKeyId: Specifies the Amazon Web Services - KMS key that is used to encrypt the restored file system. You can specify a key from - another Amazon Web Services account provided that key it is properly shared with your - account via Amazon Web Services KMS. PerformanceMode: Specifies the throughput mode of - the file system. CreationToken: A user-supplied value that ensures the uniqueness - (idempotency) of the request. newFileSystem: A Boolean value that, if true, specifies - that the recovery point is restored to a new Amazon EFS file system. ItemsToRestore: An - array of one to five strings where each string is a file path. Use ItemsToRestore to - restore specific files or directories rather than the entire file system. This parameter is - optional. For example, \"itemsToRestore\":\"[\"/my.test\"]\". + original already exists. For more information about the metadata for each resource, see the + following: Metadata for Amazon Aurora Metadata for Amazon DocumentDB Metadata + for CloudFormation Metadata for Amazon DynamoDB Metadata for Amazon EBS + Metadata for Amazon EC2 Metadata for Amazon EFS Metadata for Amazon FSx + Metadata for Amazon Neptune Metadata for Amazon RDS Metadata for Amazon Redshift + Metadata for Storage Gateway Metadata for Amazon S3 Metadata for Amazon Timestream + Metadata for virtual machines - `recovery_point_arn`: An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. @@ -3539,25 +3313,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys otherwise identical calls to StartRestoreJob. Retrying a successful request with the same idempotency token results in a success message with no action taken. - `"ResourceType"`: Starts a job to restore a recovery point for one of the following - resources: Aurora for Amazon Aurora DocumentDB for Amazon DocumentDB (with MongoDB - compatibility) CloudFormation for CloudFormation DynamoDB for Amazon DynamoDB EBS - for Amazon Elastic Block Store EC2 for Amazon Elastic Compute Cloud EFS for Amazon - Elastic File System FSx for Amazon FSx Neptune for Amazon Neptune RDS for Amazon - Relational Database Service Redshift for Amazon Redshift Storage Gateway for Storage - Gateway S3 for Amazon S3 Timestream for Amazon Timestream VirtualMachine for - virtual machines -""" -function start_restore_job( + resources: Aurora - Amazon Aurora DocumentDB - Amazon DocumentDB CloudFormation - + CloudFormation DynamoDB - Amazon DynamoDB EBS - Amazon Elastic Block Store EC2 - + Amazon Elastic Compute Cloud EFS - Amazon Elastic File System FSx - Amazon FSx + Neptune - Amazon Neptune RDS - Amazon Relational Database Service Redshift - Amazon + Redshift Storage Gateway - Storage Gateway S3 - Amazon Simple Storage Service + Timestream - Amazon Timestream VirtualMachine - Virtual machines +""" +start_restore_job( Metadata, RecoveryPointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "PUT", + "/restore-jobs", + Dict{String,Any}("Metadata" => Metadata, "RecoveryPointArn" => RecoveryPointArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/restore-jobs", - Dict{String,Any}("Metadata" => Metadata, "RecoveryPointArn" => RecoveryPointArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_restore_job( Metadata, RecoveryPointArn, @@ -3587,21 +3358,19 @@ end Attempts to cancel a job to create a one-time backup of a resource. This action is not supported for the following services: Amazon FSx for Windows File Server, Amazon FSx for -Lustre, Amazon FSx for NetApp ONTAP , Amazon FSx for OpenZFS, Amazon DocumentDB (with +Lustre, Amazon FSx for NetApp ONTAP, Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora, and Amazon Neptune. # Arguments - `backup_job_id`: Uniquely identifies a request to Backup to back up a resource. """ -function stop_backup_job(backupJobId; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "POST", - "/backup-jobs/$(backupJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_backup_job(backupJobId; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "POST", + "/backup-jobs/$(backupJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_backup_job( backupJobId, params::AbstractDict{String}; @@ -3621,25 +3390,29 @@ end tag_resource(tags, resource_arn, params::Dict{String,<:Any}) Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault -identified by an Amazon Resource Name (ARN). +identified by an Amazon Resource Name (ARN). This API is supported for recovery points for +resource types including Aurora, Amazon DocumentDB. Amazon EBS, Amazon FSx, Neptune, and +Amazon RDS. # Arguments - `tags`: Key-value pairs that are used to help organize your resources. You can assign your own metadata to the resources you create. For clarity, this is the structure to assign tags: [{\"Key\":\"string\",\"Value\":\"string\"}]. - `resource_arn`: An ARN that uniquely identifies a resource. The format of the ARN depends - on the type of the tagged resource. + on the type of the tagged resource. ARNs that do not include backup are incompatible with + tagging. TagResource and UntagResource with invalid ARNs will result in an error. + Acceptable ARN content can include arn:aws:backup:us-east. Invalid ARN content may look + like arn:aws:ec2:us-east. """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "POST", "/tags/$(resourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Tags, resourceArn, @@ -3660,25 +3433,28 @@ end untag_resource(tag_key_list, resource_arn, params::Dict{String,<:Any}) Removes a set of key-value pairs from a recovery point, backup plan, or backup vault -identified by an Amazon Resource Name (ARN) +identified by an Amazon Resource Name (ARN) This API is not supported for recovery points +for resource types including Aurora, Amazon DocumentDB. Amazon EBS, Amazon FSx, Neptune, +and Amazon RDS. # Arguments -- `tag_key_list`: A list of keys to identify which key-value tags to remove from a resource. +- `tag_key_list`: The keys to identify which key-value tags to remove from a resource. - `resource_arn`: An ARN that uniquely identifies a resource. The format of the ARN depends - on the type of the tagged resource. + on the type of the tagged resource. ARNs that do not include backup are incompatible with + tagging. TagResource and UntagResource with invalid ARNs will result in an error. + Acceptable ARN content can include arn:aws:backup:us-east. Invalid ARN content may look + like arn:aws:ec2:us-east. """ -function untag_resource( +untag_resource( TagKeyList, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "POST", + "/untag/$(resourceArn)", + Dict{String,Any}("TagKeyList" => TagKeyList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "POST", - "/untag/$(resourceArn)", - Dict{String,Any}("TagKeyList" => TagKeyList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource( TagKeyList, resourceArn, @@ -3700,26 +3476,23 @@ end update_backup_plan(backup_plan, backup_plan_id) update_backup_plan(backup_plan, backup_plan_id, params::Dict{String,<:Any}) -Updates an existing backup plan identified by its backupPlanId with the input document in -JSON format. The new version is uniquely identified by a VersionId. +Updates the specified backup plan. The new version is uniquely identified by its ID. # Arguments -- `backup_plan`: Specifies the body of a backup plan. Includes a BackupPlanName and one or - more sets of Rules. -- `backup_plan_id`: Uniquely identifies a backup plan. +- `backup_plan`: The body of a backup plan. Includes a BackupPlanName and one or more sets + of Rules. +- `backup_plan_id`: The ID of the backup plan. """ -function update_backup_plan( +update_backup_plan( BackupPlan, backupPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "POST", + "/backup/plans/$(backupPlanId)", + Dict{String,Any}("BackupPlan" => BackupPlan); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "POST", - "/backup/plans/$(backupPlanId)", - Dict{String,Any}("BackupPlan" => BackupPlan); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_backup_plan( BackupPlan, backupPlanId, @@ -3741,8 +3514,7 @@ end update_framework(framework_name) update_framework(framework_name, params::Dict{String,<:Any}) -Updates an existing framework identified by its FrameworkName with the input document in -JSON format. +Updates the specified framework. # Arguments - `framework_name`: The unique name of a framework. This name is between 1 and 256 @@ -3751,23 +3523,22 @@ JSON format. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"FrameworkControls"`: A list of the controls that make up the framework. Each control in - the list has a name, input parameters, and scope. +- `"FrameworkControls"`: The controls that make up the framework. Each control in the list + has a name, input parameters, and scope. - `"FrameworkDescription"`: An optional description of the framework with a maximum 1,024 characters. - `"IdempotencyToken"`: A customer-chosen string that you can use to distinguish between otherwise identical calls to UpdateFrameworkInput. Retrying a successful request with the same idempotency token results in a success message with no action taken. """ -function update_framework(frameworkName; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( +update_framework(frameworkName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "PUT", "/audit/frameworks/$(frameworkName)", Dict{String,Any}("IdempotencyToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_framework( frameworkName, params::AbstractDict{String}; @@ -3800,11 +3571,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys update-global-settings --global-settings isCrossAccountBackupEnabled=false --region us-west-2. """ -function update_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "PUT", "/global-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "PUT", "/global-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_global_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3823,20 +3592,21 @@ end Sets the transition lifecycle of a recovery point. The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and -expires backups automatically according to the lifecycle that you define. Backups -transitioned to cold storage must be stored in cold storage for a minimum of 90 days. -Therefore, the “retention” setting must be 90 days greater than the “transition to -cold after days” setting. The “transition to cold after days” setting cannot be -changed after a backup has been transitioned to cold. Resource types that are able to be -transitioned to cold storage are listed in the \"Lifecycle to cold storage\" section of the - Feature availability by resource table. Backup ignores this expression for other resource -types. This operation does not support continuous backups. +expires backups automatically according to the lifecycle that you define. Resource types +that can transition to cold storage are listed in the Feature availability by resource +table. Backup ignores this expression for other resource types. Backups transitioned to +cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the +“retention” setting must be 90 days greater than the “transition to cold after +days” setting. The “transition to cold after days” setting cannot be changed after a +backup has been transitioned to cold. If your lifecycle currently uses the parameters +DeleteAfterDays and MoveToColdStorageAfterDays, include these parameters and their values +when you call this operation. Not including them may result in your plan updating with null +values. This operation does not support continuous backups. # Arguments - `backup_vault_name`: The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the - Amazon Web Services Region where they are created. They consist of lowercase letters, - numbers, and hyphens. + Amazon Web Services Region where they are created. - `recovery_point_arn`: An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. @@ -3850,16 +3620,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. """ -function update_recovery_point_lifecycle( +update_recovery_point_lifecycle( backupVaultName, recoveryPointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup( + "POST", + "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "POST", - "/backup-vaults/$(backupVaultName)/recovery-points/$(recoveryPointArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_recovery_point_lifecycle( backupVaultName, recoveryPointArn, @@ -3896,11 +3664,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified in a resource assignment, the resource type specified in the backup plan takes priority over the tag condition. Service opt-in settings are disregarded in this situation. """ -function update_region_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup( - "PUT", "/account-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_region_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = backup( + "PUT", "/account-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_region_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3917,8 +3683,7 @@ end update_report_plan(report_plan_name) update_report_plan(report_plan_name, params::Dict{String,<:Any}) -Updates an existing report plan identified by its ReportPlanName with the input document in -JSON format. +Updates the specified report plan. # Arguments - `report_plan_name`: The unique name of the report plan. This name is between 1 and 256 @@ -3930,28 +3695,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IdempotencyToken"`: A customer-chosen string that you can use to distinguish between otherwise identical calls to UpdateReportPlanInput. Retrying a successful request with the same idempotency token results in a success message with no action taken. -- `"ReportDeliveryChannel"`: A structure that contains information about where to deliver - your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of - your reports. +- `"ReportDeliveryChannel"`: The information about where to deliver your reports, + specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports. - `"ReportPlanDescription"`: An optional description of the report plan with a maximum 1,024 characters. -- `"ReportSetting"`: Identifies the report template for the report. Reports are built using - a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | - CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT If - the report template is RESOURCE_COMPLIANCE_REPORT or CONTROL_COMPLIANCE_REPORT, this API - resource also describes the report coverage by Amazon Web Services Regions and frameworks. -""" -function update_report_plan( - reportPlanName; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup( +- `"ReportSetting"`: The report template for the report. Reports are built using a report + template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT + | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT If the report template is + RESOURCE_COMPLIANCE_REPORT or CONTROL_COMPLIANCE_REPORT, this API resource also describes + the report coverage by Amazon Web Services Regions and frameworks. +""" +update_report_plan(reportPlanName; aws_config::AbstractAWSConfig=current_aws_config()) = + backup( "PUT", "/audit/report-plans/$(reportPlanName)", Dict{String,Any}("IdempotencyToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_report_plan( reportPlanName, params::AbstractDict{String}; @@ -3981,22 +3742,20 @@ SelectionWindowDays # Arguments - `restore_testing_plan`: Specifies the body of a restore testing plan. -- `restore_testing_plan_name`: This is the restore testing plan name you wish to update. +- `restore_testing_plan_name`: The name of the restore testing plan name. """ -function update_restore_testing_plan( +update_restore_testing_plan( RestoreTestingPlan, RestoreTestingPlanName; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "PUT", + "/restore-testing/plans/$(RestoreTestingPlanName)", + Dict{String,Any}("RestoreTestingPlan" => RestoreTestingPlan); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/restore-testing/plans/$(RestoreTestingPlanName)", - Dict{String,Any}("RestoreTestingPlan" => RestoreTestingPlan); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_restore_testing_plan( RestoreTestingPlan, RestoreTestingPlanName, @@ -4020,10 +3779,9 @@ end update_restore_testing_selection(restore_testing_plan_name, restore_testing_selection, restore_testing_selection_name) update_restore_testing_selection(restore_testing_plan_name, restore_testing_selection, restore_testing_selection_name, params::Dict{String,<:Any}) -Most elements except the RestoreTestingSelectionName can be updated with this request. -RestoreTestingSelection can use either protected resource ARNs or conditions, but not both. -That is, if your selection has ProtectedResourceArns, requesting an update with the -parameter ProtectedResourceConditions will be unsuccessful. +Updates the specified restore testing selection. Most elements except the +RestoreTestingSelectionName can be updated with this request. You can use either protected +resource ARNs or conditions, but not both. # Arguments - `restore_testing_plan_name`: The restore testing plan name is required to update the @@ -4032,24 +3790,22 @@ parameter ProtectedResourceConditions will be unsuccessful. protected resource ARNs or conditions, but not both. That is, if your selection has ProtectedResourceArns, requesting an update with the parameter ProtectedResourceConditions will be unsuccessful. -- `restore_testing_selection_name`: This is the required restore testing selection name of - the restore testing selection you wish to update. +- `restore_testing_selection_name`: The required restore testing selection name of the + restore testing selection you wish to update. """ -function update_restore_testing_selection( +update_restore_testing_selection( RestoreTestingPlanName, RestoreTestingSelection, RestoreTestingSelectionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup( + "PUT", + "/restore-testing/plans/$(RestoreTestingPlanName)/selections/$(RestoreTestingSelectionName)", + Dict{String,Any}("RestoreTestingSelection" => RestoreTestingSelection); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup( - "PUT", - "/restore-testing/plans/$(RestoreTestingPlanName)/selections/$(RestoreTestingSelectionName)", - Dict{String,Any}("RestoreTestingSelection" => RestoreTestingSelection); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_restore_testing_selection( RestoreTestingPlanName, RestoreTestingSelection, diff --git a/src/services/backup_gateway.jl b/src/services/backup_gateway.jl index da35b3dac..a91449bc3 100644 --- a/src/services/backup_gateway.jl +++ b/src/services/backup_gateway.jl @@ -18,16 +18,14 @@ you can back up and restore your VMs through the gateway. machines. """ -function associate_gateway_to_server( +associate_gateway_to_server( GatewayArn, ServerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "AssociateGatewayToServer", + Dict{String,Any}("GatewayArn" => GatewayArn, "ServerArn" => ServerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "AssociateGatewayToServer", - Dict{String,Any}("GatewayArn" => GatewayArn, "ServerArn" => ServerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_gateway_to_server( GatewayArn, ServerArn, @@ -64,23 +62,21 @@ using the AssociateGatewayToServer operation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. """ -function create_gateway( +create_gateway( ActivationKey, GatewayDisplayName, GatewayType; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup_gateway( + "CreateGateway", + Dict{String,Any}( + "ActivationKey" => ActivationKey, + "GatewayDisplayName" => GatewayDisplayName, + "GatewayType" => GatewayType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "CreateGateway", - Dict{String,Any}( - "ActivationKey" => ActivationKey, - "GatewayDisplayName" => GatewayDisplayName, - "GatewayType" => GatewayType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_gateway( ActivationKey, GatewayDisplayName, @@ -116,14 +112,13 @@ Deletes a backup gateway. - `gateway_arn`: The Amazon Resource Name (ARN) of the gateway to delete. """ -function delete_gateway(GatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) - return backup_gateway( +delete_gateway(GatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "DeleteGateway", Dict{String,Any}("GatewayArn" => GatewayArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_gateway( GatewayArn, params::AbstractDict{String}; @@ -149,16 +144,13 @@ Deletes a hypervisor. - `hypervisor_arn`: The Amazon Resource Name (ARN) of the hypervisor to delete. """ -function delete_hypervisor( - HypervisorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup_gateway( +delete_hypervisor(HypervisorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "DeleteHypervisor", Dict{String,Any}("HypervisorArn" => HypervisorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_hypervisor( HypervisorArn, params::AbstractDict{String}; @@ -185,16 +177,14 @@ finishes, the gateway can no longer access the virtual machines on the server. - `gateway_arn`: The Amazon Resource Name (ARN) of the gateway to disassociate. """ -function disassociate_gateway_from_server( +disassociate_gateway_from_server( GatewayArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "DisassociateGatewayFromServer", + Dict{String,Any}("GatewayArn" => GatewayArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "DisassociateGatewayFromServer", - Dict{String,Any}("GatewayArn" => GatewayArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_gateway_from_server( GatewayArn, params::AbstractDict{String}; @@ -223,16 +213,14 @@ effect. Use this to get a gateway's bandwidth rate limit schedule. operation to return a list of gateways for your account and Amazon Web Services Region. """ -function get_bandwidth_rate_limit_schedule( +get_bandwidth_rate_limit_schedule( GatewayArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "GetBandwidthRateLimitSchedule", + Dict{String,Any}("GatewayArn" => GatewayArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "GetBandwidthRateLimitSchedule", - Dict{String,Any}("GatewayArn" => GatewayArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bandwidth_rate_limit_schedule( GatewayArn, params::AbstractDict{String}; @@ -258,14 +246,13 @@ By providing the ARN (Amazon Resource Name), this API returns the gateway. - `gateway_arn`: The Amazon Resource Name (ARN) of the gateway. """ -function get_gateway(GatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) - return backup_gateway( +get_gateway(GatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "GetGateway", Dict{String,Any}("GatewayArn" => GatewayArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_gateway( GatewayArn, params::AbstractDict{String}; @@ -293,14 +280,13 @@ machines, and allocates resources to them. - `hypervisor_arn`: The Amazon Resource Name (ARN) of the hypervisor. """ -function get_hypervisor(HypervisorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return backup_gateway( +get_hypervisor(HypervisorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "GetHypervisor", Dict{String,Any}("HypervisorArn" => HypervisorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_hypervisor( HypervisorArn, params::AbstractDict{String}; @@ -328,16 +314,14 @@ on-premises hypervisor to the properties available in Amazon Web Services. - `hypervisor_arn`: The Amazon Resource Name (ARN) of the hypervisor. """ -function get_hypervisor_property_mappings( +get_hypervisor_property_mappings( HypervisorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "GetHypervisorPropertyMappings", + Dict{String,Any}("HypervisorArn" => HypervisorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "GetHypervisorPropertyMappings", - Dict{String,Any}("HypervisorArn" => HypervisorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_hypervisor_property_mappings( HypervisorArn, params::AbstractDict{String}; @@ -363,16 +347,13 @@ By providing the ARN (Amazon Resource Name), this API returns the virtual machin - `resource_arn`: The Amazon Resource Name (ARN) of the virtual machine. """ -function get_virtual_machine( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup_gateway( +get_virtual_machine(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "GetVirtualMachine", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_virtual_machine( ResourceArn, params::AbstractDict{String}; @@ -406,16 +387,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags of the hypervisor configuration to import. - `"Username"`: The username for the hypervisor. """ -function import_hypervisor_configuration( +import_hypervisor_configuration( Host, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "ImportHypervisorConfiguration", + Dict{String,Any}("Host" => Host, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "ImportHypervisorConfiguration", - Dict{String,Any}("Host" => Host, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_hypervisor_configuration( Host, Name, @@ -446,11 +425,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup_gateway( - "ListGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway("ListGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -472,11 +448,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_hypervisors(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup_gateway( - "ListHypervisors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_hypervisors(; aws_config::AbstractAWSConfig=current_aws_config()) = backup_gateway( + "ListHypervisors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_hypervisors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -495,16 +469,13 @@ Lists the tags applied to the resource identified by its Amazon Resource Name (A - `resource_arn`: The Amazon Resource Name (ARN) of the resource's tags to list. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup_gateway( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -535,11 +506,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token. """ -function list_virtual_machines(; aws_config::AbstractAWSConfig=current_aws_config()) - return backup_gateway( +list_virtual_machines(; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "ListVirtualMachines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_virtual_machines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -567,21 +537,19 @@ limiting is in effect. Use this to initiate a gateway's bandwidth rate limit sch operation to return a list of gateways for your account and Amazon Web Services Region. """ -function put_bandwidth_rate_limit_schedule( +put_bandwidth_rate_limit_schedule( BandwidthRateLimitIntervals, GatewayArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup_gateway( + "PutBandwidthRateLimitSchedule", + Dict{String,Any}( + "BandwidthRateLimitIntervals" => BandwidthRateLimitIntervals, + "GatewayArn" => GatewayArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "PutBandwidthRateLimitSchedule", - Dict{String,Any}( - "BandwidthRateLimitIntervals" => BandwidthRateLimitIntervals, - "GatewayArn" => GatewayArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bandwidth_rate_limit_schedule( BandwidthRateLimitIntervals, GatewayArn, @@ -620,23 +588,21 @@ hypervisor to the properties available in Amazon Web Services. tags to the Amazon Web Services tags. """ -function put_hypervisor_property_mappings( +put_hypervisor_property_mappings( HypervisorArn, IamRoleArn, VmwareToAwsTagMappings; aws_config::AbstractAWSConfig=current_aws_config(), +) = backup_gateway( + "PutHypervisorPropertyMappings", + Dict{String,Any}( + "HypervisorArn" => HypervisorArn, + "IamRoleArn" => IamRoleArn, + "VmwareToAwsTagMappings" => VmwareToAwsTagMappings, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "PutHypervisorPropertyMappings", - Dict{String,Any}( - "HypervisorArn" => HypervisorArn, - "IamRoleArn" => IamRoleArn, - "VmwareToAwsTagMappings" => VmwareToAwsTagMappings, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_hypervisor_property_mappings( HypervisorArn, IamRoleArn, @@ -680,20 +646,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from Sunday to Saturday. - `"DayOfWeek"`: The day of the week to start maintenance on a gateway. """ -function put_maintenance_start_time( +put_maintenance_start_time( GatewayArn, HourOfDay, MinuteOfHour; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "PutMaintenanceStartTime", + Dict{String,Any}( + "GatewayArn" => GatewayArn, + "HourOfDay" => HourOfDay, + "MinuteOfHour" => MinuteOfHour, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "PutMaintenanceStartTime", - Dict{String,Any}( - "GatewayArn" => GatewayArn, - "HourOfDay" => HourOfDay, - "MinuteOfHour" => MinuteOfHour, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_maintenance_start_time( GatewayArn, HourOfDay, @@ -729,16 +693,14 @@ This action sends a request to sync metadata across the specified virtual machin - `hypervisor_arn`: The Amazon Resource Name (ARN) of the hypervisor. """ -function start_virtual_machines_metadata_sync( +start_virtual_machines_metadata_sync( HypervisorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "StartVirtualMachinesMetadataSync", + Dict{String,Any}("HypervisorArn" => HypervisorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "StartVirtualMachinesMetadataSync", - Dict{String,Any}("HypervisorArn" => HypervisorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_virtual_machines_metadata_sync( HypervisorArn, params::AbstractDict{String}; @@ -765,14 +727,13 @@ Tag the resource. - `tags`: A list of tags to assign to the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return backup_gateway( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -810,16 +771,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Password"`: The password for the hypervisor. - `"Username"`: The username for the hypervisor. """ -function test_hypervisor_configuration( +test_hypervisor_configuration( GatewayArn, Host; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "TestHypervisorConfiguration", + Dict{String,Any}("GatewayArn" => GatewayArn, "Host" => Host); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "TestHypervisorConfiguration", - Dict{String,Any}("GatewayArn" => GatewayArn, "Host" => Host); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_hypervisor_configuration( GatewayArn, Host, @@ -849,16 +808,13 @@ Removes tags from the resource. - `tag_keys`: The list of tag keys specifying which tags to remove. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup_gateway( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -893,16 +849,13 @@ Updates a gateway's name. Specify which gateway to update using the Amazon Resou Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"GatewayDisplayName"`: The updated display name of the gateway. """ -function update_gateway_information( - GatewayArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup_gateway( +update_gateway_information(GatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "UpdateGatewayInformation", Dict{String,Any}("GatewayArn" => GatewayArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_gateway_information( GatewayArn, params::AbstractDict{String}; @@ -930,16 +883,14 @@ immediately. However, it might take some time for the update to complete. - `gateway_arn`: The Amazon Resource Name (ARN) of the gateway to be updated. """ -function update_gateway_software_now( +update_gateway_software_now( GatewayArn; aws_config::AbstractAWSConfig=current_aws_config() +) = backup_gateway( + "UpdateGatewaySoftwareNow", + Dict{String,Any}("GatewayArn" => GatewayArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return backup_gateway( - "UpdateGatewaySoftwareNow", - Dict{String,Any}("GatewayArn" => GatewayArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_gateway_software_now( GatewayArn, params::AbstractDict{String}; @@ -975,16 +926,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Password"`: The updated password for the hypervisor. - `"Username"`: The updated username for the hypervisor. """ -function update_hypervisor( - HypervisorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return backup_gateway( +update_hypervisor(HypervisorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + backup_gateway( "UpdateHypervisor", Dict{String,Any}("HypervisorArn" => HypervisorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_hypervisor( HypervisorArn, params::AbstractDict{String}; diff --git a/src/services/batch.jl b/src/services/batch.jl index 44c45362c..21e7b9be9 100644 --- a/src/services/batch.jl +++ b/src/services/batch.jl @@ -8,15 +8,14 @@ using AWS.UUIDs cancel_job(job_id, reason) cancel_job(job_id, reason, params::Dict{String,<:Any}) -Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED or PENDING are -canceled. A job inRUNNABLE remains in RUNNABLE until it reaches the head of the job queue. -Then the job status is updated to FAILED. A PENDING job is canceled after all dependency -jobs are completed. Therefore, it may take longer than expected to cancel a job in PENDING -status. When you try to cancel an array parent job in PENDING, Batch attempts to cancel all -child jobs. The array parent job is canceled when all child jobs are completed. Jobs that -progressed to the STARTING or RUNNING state aren't canceled. However, the API operation -still succeeds, even if no job is canceled. These jobs must be terminated with the -TerminateJob operation. +Cancels a job in an Batch job queue. Jobs that are in a SUBMITTED, PENDING, or RUNNABLE +state are cancelled and the job status is updated to FAILED. A PENDING job is canceled +after all dependency jobs are completed. Therefore, it may take longer than expected to +cancel a job in PENDING status. When you try to cancel an array parent job in PENDING, +Batch attempts to cancel all child jobs. The array parent job is canceled when all child +jobs are completed. Jobs that progressed to the STARTING or RUNNING state aren't canceled. +However, the API operation still succeeds, even if no job is canceled. These jobs must be +terminated with the TerminateJob operation. # Arguments - `job_id`: The Batch job ID of the job to cancel. @@ -25,15 +24,13 @@ TerminateJob operation. recorded in the Batch activity logs. """ -function cancel_job(jobId, reason; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/canceljob", - Dict{String,Any}("jobId" => jobId, "reason" => reason); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_job(jobId, reason; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/canceljob", + Dict{String,Any}("jobId" => jobId, "reason" => reason); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_job( jobId, reason, @@ -122,6 +119,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"computeResources"`: Details about the compute resources managed by the compute environment. This parameter is required for managed compute environments. For more information, see Compute Environments in the Batch User Guide. +- `"context"`: Reserved. - `"eksConfiguration"`: The details for the Amazon EKS cluster that supports the compute environment. - `"serviceRole"`: The full Amazon Resource Name (ARN) of the IAM role that allows Batch to @@ -163,19 +161,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys capacity is reserved. This parameter is only supported when the type parameter is set to UNMANAGED. """ -function create_compute_environment( +create_compute_environment( computeEnvironmentName, type; aws_config::AbstractAWSConfig=current_aws_config() +) = batch( + "POST", + "/v1/createcomputeenvironment", + Dict{String,Any}("computeEnvironmentName" => computeEnvironmentName, "type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return batch( - "POST", - "/v1/createcomputeenvironment", - Dict{String,Any}( - "computeEnvironmentName" => computeEnvironmentName, "type" => type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_compute_environment( computeEnvironmentName, type, @@ -248,24 +242,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide. """ -function create_job_queue( +create_job_queue( computeEnvironmentOrder, jobQueueName, priority; aws_config::AbstractAWSConfig=current_aws_config(), +) = batch( + "POST", + "/v1/createjobqueue", + Dict{String,Any}( + "computeEnvironmentOrder" => computeEnvironmentOrder, + "jobQueueName" => jobQueueName, + "priority" => priority, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return batch( - "POST", - "/v1/createjobqueue", - Dict{String,Any}( - "computeEnvironmentOrder" => computeEnvironmentOrder, - "jobQueueName" => jobQueueName, - "priority" => priority, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_job_queue( computeEnvironmentOrder, jobQueueName, @@ -311,15 +303,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Reference. These tags can be updated or removed using the TagResource and UntagResource API operations. """ -function create_scheduling_policy(name; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/createschedulingpolicy", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_scheduling_policy(name; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/createschedulingpolicy", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_scheduling_policy( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -348,17 +338,15 @@ invalid state. to delete. """ -function delete_compute_environment( +delete_compute_environment( computeEnvironment; aws_config::AbstractAWSConfig=current_aws_config() +) = batch( + "POST", + "/v1/deletecomputeenvironment", + Dict{String,Any}("computeEnvironment" => computeEnvironment); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return batch( - "POST", - "/v1/deletecomputeenvironment", - Dict{String,Any}("computeEnvironment" => computeEnvironment); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_compute_environment( computeEnvironment, params::AbstractDict{String}; @@ -391,15 +379,13 @@ DeleteJobQueue request. - `job_queue`: The short name or full Amazon Resource Name (ARN) of the queue to delete. """ -function delete_job_queue(jobQueue; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/deletejobqueue", - Dict{String,Any}("jobQueue" => jobQueue); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_job_queue(jobQueue; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/deletejobqueue", + Dict{String,Any}("jobQueue" => jobQueue); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_job_queue( jobQueue, params::AbstractDict{String}; @@ -427,15 +413,13 @@ in any job queues. - `arn`: The Amazon Resource Name (ARN) of the scheduling policy to delete. """ -function delete_scheduling_policy(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/deleteschedulingpolicy", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_scheduling_policy(arn; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/deleteschedulingpolicy", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_scheduling_policy( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -459,17 +443,15 @@ Deregisters an Batch job definition. Job definitions are permanently deleted aft (ARN) of the job definition to deregister. """ -function deregister_job_definition( +deregister_job_definition( jobDefinition; aws_config::AbstractAWSConfig=current_aws_config() +) = batch( + "POST", + "/v1/deregisterjobdefinition", + Dict{String,Any}("jobDefinition" => jobDefinition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return batch( - "POST", - "/v1/deregisterjobdefinition", - Dict{String,Any}("jobDefinition" => jobDefinition); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_job_definition( jobDefinition, params::AbstractDict{String}; @@ -512,14 +494,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes. """ -function describe_compute_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/describecomputeenvironments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_compute_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/describecomputeenvironments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_compute_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -562,14 +542,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and not for other programmatic purposes. - `"status"`: The status used to filter job definitions. """ -function describe_job_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/describejobdefinitions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_job_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/describejobdefinitions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_job_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -605,14 +583,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes. """ -function describe_job_queues(; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/describejobqueues"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_job_queues(; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/describejobqueues"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_job_queues( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -635,15 +611,13 @@ Describes a list of Batch jobs. - `jobs`: A list of up to 100 job IDs. """ -function describe_jobs(jobs; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/describejobs", - Dict{String,Any}("jobs" => jobs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_jobs(jobs; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/describejobs", + Dict{String,Any}("jobs" => jobs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_jobs( jobs, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -666,17 +640,14 @@ Describes one or more of your scheduling policies. - `arns`: A list of up to 100 scheduling policy Amazon Resource Name (ARN) entries. """ -function describe_scheduling_policies( - arns; aws_config::AbstractAWSConfig=current_aws_config() -) - return batch( +describe_scheduling_policies(arns; aws_config::AbstractAWSConfig=current_aws_config()) = + batch( "POST", "/v1/describeschedulingpolicies", Dict{String,Any}("arns" => arns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_scheduling_policies( arns, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -699,17 +670,14 @@ Provides a list of the first 100 RUNNABLE jobs associated to a single job queue. - `job_queue`: The job queue’s name or full queue Amazon Resource Name (ARN). """ -function get_job_queue_snapshot( - jobQueue; aws_config::AbstractAWSConfig=current_aws_config() -) - return batch( +get_job_queue_snapshot(jobQueue; aws_config::AbstractAWSConfig=current_aws_config()) = + batch( "POST", "/v1/getjobqueuesnapshot", Dict{String,Any}("jobQueue" => jobQueue); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_job_queue_snapshot( jobQueue, params::AbstractDict{String}; @@ -788,11 +756,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys identifier that's only used to retrieve the next items in a list and not for other programmatic purposes. """ -function list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", "/v1/listjobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + batch("POST", "/v1/listjobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -827,14 +792,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes. """ -function list_scheduling_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/listschedulingpolicies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_scheduling_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/listschedulingpolicies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_scheduling_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -862,16 +825,13 @@ jobs of array and multi-node parallel (MNP) jobs aren't supported. multi-node parallel (MNP) jobs aren't supported. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return batch( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + batch( "GET", "/v1/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -949,17 +909,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the timeout configuration defined here. For more information, see Job Timeouts in the Batch User Guide. """ -function register_job_definition( +register_job_definition( jobDefinitionName, type; aws_config::AbstractAWSConfig=current_aws_config() +) = batch( + "POST", + "/v1/registerjobdefinition", + Dict{String,Any}("jobDefinitionName" => jobDefinitionName, "type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return batch( - "POST", - "/v1/registerjobdefinition", - Dict{String,Any}("jobDefinitionName" => jobDefinitionName, "type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_job_definition( jobDefinitionName, type, @@ -1065,19 +1023,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys job. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide. """ -function submit_job( +submit_job( jobDefinition, jobName, jobQueue; aws_config::AbstractAWSConfig=current_aws_config() +) = batch( + "POST", + "/v1/submitjob", + Dict{String,Any}( + "jobDefinition" => jobDefinition, "jobName" => jobName, "jobQueue" => jobQueue + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return batch( - "POST", - "/v1/submitjob", - Dict{String,Any}( - "jobDefinition" => jobDefinition, "jobName" => jobName, "jobQueue" => jobQueue - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function submit_job( jobDefinition, jobName, @@ -1125,15 +1081,13 @@ jobs aren't supported. Tagging Amazon Web Services Resources in Amazon Web Services General Reference. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -1164,15 +1118,13 @@ STARTING state are cancelled. recorded in the Batch activity logs. """ -function terminate_job(jobId, reason; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/terminatejob", - Dict{String,Any}("jobId" => jobId, "reason" => reason); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +terminate_job(jobId, reason; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/terminatejob", + Dict{String,Any}("jobId" => jobId, "reason" => reason); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function terminate_job( jobId, reason, @@ -1206,17 +1158,14 @@ Deletes specified tags from an Batch resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return batch( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + batch( "DELETE", "/v1/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1247,6 +1196,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"computeResources"`: Details of the compute resources managed by the compute environment. Required for a managed compute environment. For more information, see Compute Environments in the Batch User Guide. +- `"context"`: Reserved. - `"serviceRole"`: The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. For more information, see Batch service IAM role in the Batch User Guide. If the compute environment has a @@ -1284,17 +1234,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide. """ -function update_compute_environment( +update_compute_environment( computeEnvironment; aws_config::AbstractAWSConfig=current_aws_config() +) = batch( + "POST", + "/v1/updatecomputeenvironment", + Dict{String,Any}("computeEnvironment" => computeEnvironment); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return batch( - "POST", - "/v1/updatecomputeenvironment", - Dict{String,Any}("computeEnvironment" => computeEnvironment); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_compute_environment( computeEnvironment, params::AbstractDict{String}; @@ -1349,15 +1297,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ENABLED, it can accept jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can finish. """ -function update_job_queue(jobQueue; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/updatejobqueue", - Dict{String,Any}("jobQueue" => jobQueue); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_job_queue(jobQueue; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/updatejobqueue", + Dict{String,Any}("jobQueue" => jobQueue); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_job_queue( jobQueue, params::AbstractDict{String}; @@ -1387,15 +1333,13 @@ Updates a scheduling policy. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"fairsharePolicy"`: The fair share policy. """ -function update_scheduling_policy(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return batch( - "POST", - "/v1/updateschedulingpolicy", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_scheduling_policy(arn; aws_config::AbstractAWSConfig=current_aws_config()) = batch( + "POST", + "/v1/updateschedulingpolicy", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_scheduling_policy( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/bcm_data_exports.jl b/src/services/bcm_data_exports.jl index a1baf9969..94c3c341c 100644 --- a/src/services/bcm_data_exports.jl +++ b/src/services/bcm_data_exports.jl @@ -31,14 +31,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceTags"`: An optional list of tags to associate with the specified export. Each tag consists of a key and a value, and each key must be unique for the resource. """ -function create_export(Export; aws_config::AbstractAWSConfig=current_aws_config()) - return bcm_data_exports( +create_export(Export; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports( "CreateExport", Dict{String,Any}("Export" => Export); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_export( Export, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -60,14 +59,13 @@ Deletes an existing data export. - `export_arn`: The Amazon Resource Name (ARN) for this export. """ -function delete_export(ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) - return bcm_data_exports( +delete_export(ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports( "DeleteExport", Dict{String,Any}("ExportArn" => ExportArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_export( ExportArn, params::AbstractDict{String}; @@ -95,16 +93,13 @@ Exports data based on the source data update. specific execution. """ -function get_execution( - ExecutionId, ExportArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return bcm_data_exports( +get_execution(ExecutionId, ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports( "GetExecution", Dict{String,Any}("ExecutionId" => ExecutionId, "ExportArn" => ExportArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_execution( ExecutionId, ExportArn, @@ -135,14 +130,13 @@ Views the definition of an existing data export. - `export_arn`: The Amazon Resource Name (ARN) for this export. """ -function get_export(ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) - return bcm_data_exports( +get_export(ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports( "GetExport", Dict{String,Any}("ExportArn" => ExportArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_export( ExportArn, params::AbstractDict{String}; @@ -175,14 +169,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. """ -function get_table(TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return bcm_data_exports( - "GetTable", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_table(TableName; aws_config::AbstractAWSConfig=current_aws_config()) = bcm_data_exports( + "GetTable", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_table( TableName, params::AbstractDict{String}; @@ -212,14 +204,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of objects that are returned for the request. - `"NextToken"`: The token to retrieve the next set of results. """ -function list_executions(ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) - return bcm_data_exports( +list_executions(ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports( "ListExecutions", Dict{String,Any}("ExportArn" => ExportArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_executions( ExportArn, params::AbstractDict{String}; @@ -246,11 +237,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of objects that are returned for the request. - `"NextToken"`: The token to retrieve the next set of results. """ -function list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return bcm_data_exports( - "ListExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports("ListExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -270,11 +258,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of objects that are returned for the request. - `"NextToken"`: The token to retrieve the next set of results. """ -function list_tables(; aws_config::AbstractAWSConfig=current_aws_config()) - return bcm_data_exports( - "ListTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tables(; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports("ListTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -297,16 +282,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of objects that are returned for the request. - `"NextToken"`: The token to retrieve the next set of results. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return bcm_data_exports( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -334,16 +316,14 @@ Adds tags for an existing data export definition. a value, and each key must be unique for the resource. """ -function tag_resource( +tag_resource( ResourceArn, ResourceTags; aws_config::AbstractAWSConfig=current_aws_config() +) = bcm_data_exports( + "TagResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "ResourceTags" => ResourceTags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bcm_data_exports( - "TagResource", - Dict{String,Any}("ResourceArn" => ResourceArn, "ResourceTags" => ResourceTags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_resource( ResourceArn, ResourceTags, @@ -377,18 +357,14 @@ Deletes tags associated with an existing data export definition. - `resource_tag_keys`: The tag keys that are associated with the resource ARN. """ -function untag_resource( +untag_resource( ResourceArn, ResourceTagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = bcm_data_exports( + "UntagResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "ResourceTagKeys" => ResourceTagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bcm_data_exports( - "UntagResource", - Dict{String,Any}( - "ResourceArn" => ResourceArn, "ResourceTagKeys" => ResourceTagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource( ResourceArn, ResourceTagKeys, @@ -423,16 +399,13 @@ must be provided in the UpdateExport request. - `export_arn`: The Amazon Resource Name (ARN) for this export. """ -function update_export( - Export, ExportArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return bcm_data_exports( +update_export(Export, ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) = + bcm_data_exports( "UpdateExport", Dict{String,Any}("Export" => Export, "ExportArn" => ExportArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_export( Export, ExportArn, diff --git a/src/services/bedrock.jl b/src/services/bedrock.jl index 5b9657dce..8f7e94008 100644 --- a/src/services/bedrock.jl +++ b/src/services/bedrock.jl @@ -4,13 +4,50 @@ using AWS.AWSServices: bedrock using AWS.Compat using AWS.UUIDs +""" + batch_delete_evaluation_job(job_identifiers) + batch_delete_evaluation_job(job_identifiers, params::Dict{String,<:Any}) + +Creates a batch deletion job. A model evaluation job can only be deleted if it has +following status FAILED, COMPLETED, and STOPPED. You can request up to 25 model evaluation +jobs be deleted in a single request. + +# Arguments +- `job_identifiers`: An array of model evaluation job ARNs to be deleted. + +""" +batch_delete_evaluation_job( + jobIdentifiers; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "POST", + "/evaluation-jobs/batch-delete", + Dict{String,Any}("jobIdentifiers" => jobIdentifiers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function batch_delete_evaluation_job( + jobIdentifiers, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock( + "POST", + "/evaluation-jobs/batch-delete", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("jobIdentifiers" => jobIdentifiers), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ create_evaluation_job(evaluation_config, inference_config, job_name, output_data_config, role_arn) create_evaluation_job(evaluation_config, inference_config, job_name, output_data_config, role_arn, params::Dict{String,<:Any}) API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for -creating a model evaluation job see, Model evaluations. +creating a model evaluation job see, Model evaluation. # Arguments - `evaluation_config`: Specifies whether the model evaluation job is automatic or uses @@ -40,29 +77,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"jobDescription"`: A description of the model evaluation job. - `"jobTags"`: Tags to attach to the model evaluation job. """ -function create_evaluation_job( +create_evaluation_job( evaluationConfig, inferenceConfig, jobName, outputDataConfig, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock( + "POST", + "/evaluation-jobs", + Dict{String,Any}( + "evaluationConfig" => evaluationConfig, + "inferenceConfig" => inferenceConfig, + "jobName" => jobName, + "outputDataConfig" => outputDataConfig, + "roleArn" => roleArn, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "POST", - "/evaluation-jobs", - Dict{String,Any}( - "evaluationConfig" => evaluationConfig, - "inferenceConfig" => inferenceConfig, - "jobName" => jobName, - "outputDataConfig" => outputDataConfig, - "roleArn" => roleArn, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_evaluation_job( evaluationConfig, inferenceConfig, @@ -98,22 +133,20 @@ end create_guardrail(blocked_input_messaging, blocked_outputs_messaging, name) create_guardrail(blocked_input_messaging, blocked_outputs_messaging, name, params::Dict{String,<:Any}) -Creates a guardrail to block topics and to filter out harmful content. Specify a name and -optional description. Specify messages for when the guardrail successfully blocks a -prompt or a model response in the blockedInputMessaging and blockedOutputsMessaging fields. - Specify topics for the guardrail to deny in the topicPolicyConfig object. Each -GuardrailTopicConfig object in the topicsConfig list pertains to one topic. Give a name -and description so that the guardrail can properly identify the topic. Specify DENY in -the type field. (Optional) Provide up to five prompts that you would categorize as -belonging to the topic in the examples list. Specify filter strengths for the harmful -categories defined in Amazon Bedrock in the contentPolicyConfig object. Each -GuardrailContentFilterConfig object in the filtersConfig list pertains to a harmful -category. For more information, see Content filters. For more information about the fields -in a content filter, see GuardrailContentFilterConfig. Specify the category in the type -field. Specify the strength of the filter for prompts in the inputStrength field and for -model responses in the strength field of the GuardrailContentFilterConfig. (Optional) -For security, include the ARN of a KMS key in the kmsKeyId field. (Optional) Attach any -tags to the guardrail in the tags object. For more information, see Tag resources. +Creates a guardrail to block topics and to implement safeguards for your generative AI +applications. You can configure the following policies in a guardrail to avoid undesirable +and harmful content, filter out denied topics and words, and remove sensitive information +for privacy protection. Content filters - Adjust filter strengths to block input prompts +or model responses containing harmful content. Denied topics - Define a set of topics +that are undesirable in the context of your application. These topics will be blocked if +detected in user queries or model responses. Word filters - Configure filters to block +undesirable words, phrases, and profanity. Such words can include offensive terms, +competitor names etc. Sensitive information filters - Block or mask sensitive +information such as personally identifiable information (PII) or custom regex in user +inputs and model responses. In addition to the above policies, you can also configure the +messages to be returned to the user if a user input or model response is in violation of +the policies defined in the guardrail. For more information, see Guardrails for Amazon +Bedrock in the Amazon Bedrock User Guide. # Arguments - `blocked_input_messaging`: The message to return when the guardrail blocks a prompt. @@ -128,6 +161,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide. - `"contentPolicyConfig"`: The content filter policies to configure for the guardrail. +- `"contextualGroundingPolicyConfig"`: The contextual grounding policy configuration used + to create a guardrail. - `"description"`: A description of the guardrail. - `"kmsKeyId"`: The ARN of the KMS key that you use to encrypt the guardrail. - `"sensitiveInformationPolicyConfig"`: The sensitive information policy to configure for @@ -136,25 +171,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"topicPolicyConfig"`: The topic policies to configure for the guardrail. - `"wordPolicyConfig"`: The word policy you configure for the guardrail. """ -function create_guardrail( +create_guardrail( blockedInputMessaging, blockedOutputsMessaging, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock( + "POST", + "/guardrails", + Dict{String,Any}( + "blockedInputMessaging" => blockedInputMessaging, + "blockedOutputsMessaging" => blockedOutputsMessaging, + "name" => name, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "POST", - "/guardrails", - Dict{String,Any}( - "blockedInputMessaging" => blockedInputMessaging, - "blockedOutputsMessaging" => blockedOutputsMessaging, - "name" => name, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_guardrail( blockedInputMessaging, blockedOutputsMessaging, @@ -191,7 +224,8 @@ you are satisfied with a configuration, or to compare the configuration with ano version. # Arguments -- `guardrail_identifier`: The unique identifier of the guardrail. +- `guardrail_identifier`: The unique identifier of the guardrail. This can be an ID or the + ARN. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -201,28 +235,85 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Ensuring idempotency in the Amazon S3 User Guide. - `"description"`: A description of the guardrail version. """ -function create_guardrail_version( +create_guardrail_version( guardrailIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "POST", + "/guardrails/$(guardrailIdentifier)", + Dict{String,Any}("clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_guardrail_version( + guardrailIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock( "POST", "/guardrails/$(guardrailIdentifier)", - Dict{String,Any}("clientRequestToken" => string(uuid4())); + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("clientRequestToken" => string(uuid4())), params + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_guardrail_version( - guardrailIdentifier, + +""" + create_model_copy_job(source_model_arn, target_model_name) + create_model_copy_job(source_model_arn, target_model_name, params::Dict{String,<:Any}) + +Copies a model to another region so that it can be used there. For more information, see +Copy models to be used in other regions in the Amazon Bedrock User Guide. + +# Arguments +- `source_model_arn`: The Amazon Resource Name (ARN) of the model to be copied. +- `target_model_name`: A name for the copied model. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientRequestToken"`: A unique, case-sensitive identifier to ensure that the API + request completes no more than one time. If this token matches a previous request, Amazon + Bedrock ignores the request, but does not return an error. For more information, see + Ensuring idempotency. +- `"modelKmsKeyId"`: The ARN of the KMS key that you use to encrypt the model copy. +- `"targetModelTags"`: Tags to associate with the target model. For more information, see + Tag resources in the Amazon Bedrock User Guide. +""" +create_model_copy_job( + sourceModelArn, targetModelName; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "POST", + "/model-copy-jobs", + Dict{String,Any}( + "sourceModelArn" => sourceModelArn, + "targetModelName" => targetModelName, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_model_copy_job( + sourceModelArn, + targetModelName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock( "POST", - "/guardrails/$(guardrailIdentifier)", + "/model-copy-jobs", Dict{String,Any}( mergewith( - _merge, Dict{String,Any}("clientRequestToken" => string(uuid4())), params + _merge, + Dict{String,Any}( + "sourceModelArn" => sourceModelArn, + "targetModelName" => targetModelName, + "clientRequestToken" => string(uuid4()), + ), + params, ), ); aws_config=aws_config, @@ -272,7 +363,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcConfig"`: VPC configuration (optional). Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job. """ -function create_model_customization_job( +create_model_customization_job( baseModelIdentifier, customModelName, hyperParameters, @@ -281,24 +372,22 @@ function create_model_customization_job( roleArn, trainingDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock( + "POST", + "/model-customization-jobs", + Dict{String,Any}( + "baseModelIdentifier" => baseModelIdentifier, + "customModelName" => customModelName, + "hyperParameters" => hyperParameters, + "jobName" => jobName, + "outputDataConfig" => outputDataConfig, + "roleArn" => roleArn, + "trainingDataConfig" => trainingDataConfig, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "POST", - "/model-customization-jobs", - Dict{String,Any}( - "baseModelIdentifier" => baseModelIdentifier, - "customModelName" => customModelName, - "hyperParameters" => hyperParameters, - "jobName" => jobName, - "outputDataConfig" => outputDataConfig, - "roleArn" => roleArn, - "trainingDataConfig" => trainingDataConfig, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_customization_job( baseModelIdentifier, customModelName, @@ -334,6 +423,159 @@ function create_model_customization_job( ) end +""" + create_model_import_job(imported_model_name, job_name, model_data_source, role_arn) + create_model_import_job(imported_model_name, job_name, model_data_source, role_arn, params::Dict{String,<:Any}) + +Creates a model import job to import model that you have customized in other environments, +such as Amazon SageMaker. For more information, see Import a customized model + +# Arguments +- `imported_model_name`: The name of the imported model. +- `job_name`: The name of the import job. +- `model_data_source`: The data source for the imported model. +- `role_arn`: The Amazon Resource Name (ARN) of the model import job. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientRequestToken"`: A unique, case-sensitive identifier to ensure that the API + request completes no more than one time. If this token matches a previous request, Amazon + Bedrock ignores the request, but does not return an error. For more information, see + Ensuring idempotency. +- `"importedModelKmsKeyId"`: The imported model is encrypted at rest using this key. +- `"importedModelTags"`: Tags to attach to the imported model. +- `"jobTags"`: Tags to attach to this import job. +- `"vpcConfig"`: VPC configuration parameters for the private Virtual Private Cloud (VPC) + that contains the resources you are using for the import job. +""" +create_model_import_job( + importedModelName, + jobName, + modelDataSource, + roleArn; + aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock( + "POST", + "/model-import-jobs", + Dict{String,Any}( + "importedModelName" => importedModelName, + "jobName" => jobName, + "modelDataSource" => modelDataSource, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_model_import_job( + importedModelName, + jobName, + modelDataSource, + roleArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock( + "POST", + "/model-import-jobs", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "importedModelName" => importedModelName, + "jobName" => jobName, + "modelDataSource" => modelDataSource, + "roleArn" => roleArn, + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_model_invocation_job(input_data_config, job_name, model_id, output_data_config, role_arn) + create_model_invocation_job(input_data_config, job_name, model_id, output_data_config, role_arn, params::Dict{String,<:Any}) + +Creates a batch inference job to invoke a model on multiple prompts. Format your data +according to Format your inference data and upload it to an Amazon S3 bucket. For more +information, see Process multiple prompts with batch inference. The response returns a +jobArn that you can use to stop or get details about the job. + +# Arguments +- `input_data_config`: Details about the location of the input to the batch inference job. +- `job_name`: A name to give the batch inference job. +- `model_id`: The unique identifier of the foundation model to use for the batch inference + job. +- `output_data_config`: Details about the location of the output of the batch inference job. +- `role_arn`: The Amazon Resource Name (ARN) of the service role with permissions to carry + out and manage batch inference. You can use the console to create a default service role or + follow the steps at Create a service role for batch inference. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientRequestToken"`: A unique, case-sensitive identifier to ensure that the API + request completes no more than one time. If this token matches a previous request, Amazon + Bedrock ignores the request, but does not return an error. For more information, see + Ensuring idempotency. +- `"tags"`: Any tags to associate with the batch inference job. For more information, see + Tagging Amazon Bedrock resources. +- `"timeoutDurationInHours"`: The number of hours after which to force the batch inference + job to time out. +""" +create_model_invocation_job( + inputDataConfig, + jobName, + modelId, + outputDataConfig, + roleArn; + aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock( + "POST", + "/model-invocation-job", + Dict{String,Any}( + "inputDataConfig" => inputDataConfig, + "jobName" => jobName, + "modelId" => modelId, + "outputDataConfig" => outputDataConfig, + "roleArn" => roleArn, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_model_invocation_job( + inputDataConfig, + jobName, + modelId, + outputDataConfig, + roleArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock( + "POST", + "/model-invocation-job", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "inputDataConfig" => inputDataConfig, + "jobName" => jobName, + "modelId" => modelId, + "outputDataConfig" => outputDataConfig, + "roleArn" => roleArn, + "clientRequestToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ create_provisioned_model_throughput(model_id, model_units, provisioned_model_name) create_provisioned_model_throughput(model_id, model_units, provisioned_model_name, params::Dict{String,<:Any}) @@ -370,25 +612,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Provisioned Throughput in the Amazon Bedrock User Guide - `"tags"`: Tags to associate with this Provisioned Throughput. """ -function create_provisioned_model_throughput( +create_provisioned_model_throughput( modelId, modelUnits, provisionedModelName; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock( + "POST", + "/provisioned-model-throughput", + Dict{String,Any}( + "modelId" => modelId, + "modelUnits" => modelUnits, + "provisionedModelName" => provisionedModelName, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "POST", - "/provisioned-model-throughput", - Dict{String,Any}( - "modelId" => modelId, - "modelUnits" => modelUnits, - "provisionedModelName" => provisionedModelName, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_provisioned_model_throughput( modelId, modelUnits, @@ -427,16 +667,13 @@ the Amazon Bedrock User Guide. - `model_identifier`: Name of the model to delete. """ -function delete_custom_model( - modelIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +delete_custom_model(modelIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "DELETE", "/custom-models/$(modelIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_custom_model( modelIdentifier, params::AbstractDict{String}; @@ -461,22 +698,20 @@ guardrailIdentifier field. If you delete a guardrail, all of its versions will b guardrailIdentifier field and the version in the guardrailVersion field. # Arguments -- `guardrail_identifier`: The unique identifier of the guardrail. +- `guardrail_identifier`: The unique identifier of the guardrail. This can be an ID or the + ARN. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"guardrailVersion"`: The version of the guardrail. """ -function delete_guardrail( - guardrailIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +delete_guardrail(guardrailIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "DELETE", "/guardrails/$(guardrailIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_guardrail( guardrailIdentifier, params::AbstractDict{String}; @@ -492,22 +727,52 @@ function delete_guardrail( end """ - delete_model_invocation_logging_configuration() - delete_model_invocation_logging_configuration(params::Dict{String,<:Any}) + delete_imported_model(model_identifier) + delete_imported_model(model_identifier, params::Dict{String,<:Any}) -Delete the invocation logging. +Deletes a custom model that you imported earlier. For more information, see Import a +customized model in the Amazon Bedrock User Guide. + +# Arguments +- `model_identifier`: Name of the imported model to delete. """ -function delete_model_invocation_logging_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() +delete_imported_model(modelIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( + "DELETE", + "/imported-models/$(modelIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function delete_imported_model( + modelIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock( "DELETE", - "/logging/modelinvocations"; + "/imported-models/$(modelIdentifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end + +""" + delete_model_invocation_logging_configuration() + delete_model_invocation_logging_configuration(params::Dict{String,<:Any}) + +Delete the invocation logging. + +""" +delete_model_invocation_logging_configuration(; + aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "DELETE", + "/logging/modelinvocations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_model_invocation_logging_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -533,16 +798,14 @@ Bedrock User Guide. Throughput. """ -function delete_provisioned_model_throughput( +delete_provisioned_model_throughput( provisionedModelId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "DELETE", + "/provisioned-model-throughput/$(provisionedModelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "DELETE", - "/provisioned-model-throughput/$(provisionedModelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_provisioned_model_throughput( provisionedModelId, params::AbstractDict{String}; @@ -568,16 +831,13 @@ more information, see Custom models in the Amazon Bedrock User Guide. - `model_identifier`: Name or Amazon Resource Name (ARN) of the custom model. """ -function get_custom_model( - modelIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +get_custom_model(modelIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "GET", "/custom-models/$(modelIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_custom_model( modelIdentifier, params::AbstractDict{String}; @@ -597,22 +857,19 @@ end get_evaluation_job(job_identifier, params::Dict{String,<:Any}) Retrieves the properties associated with a model evaluation job, including the status of -the job. For more information, see Model evaluations. +the job. For more information, see Model evaluation. # Arguments - `job_identifier`: The Amazon Resource Name (ARN) of the model evaluation job. """ -function get_evaluation_job( - jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +get_evaluation_job(jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "GET", "/evaluation-jobs/$(jobIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_evaluation_job( jobIdentifier, params::AbstractDict{String}; @@ -637,16 +894,13 @@ Get details about a Amazon Bedrock foundation model. - `model_identifier`: The model identifier. """ -function get_foundation_model( - modelIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +get_foundation_model(modelIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "GET", "/foundation-models/$(modelIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_foundation_model( modelIdentifier, params::AbstractDict{String}; @@ -670,22 +924,20 @@ details for the DRAFT version. # Arguments - `guardrail_identifier`: The unique identifier of the guardrail for which to get details. + This can be an ID or the ARN. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"guardrailVersion"`: The version of the guardrail for which to get details. If you don't specify a version, the response returns details for the DRAFT version. """ -function get_guardrail( - guardrailIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +get_guardrail(guardrailIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "GET", "/guardrails/$(guardrailIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_guardrail( guardrailIdentifier, params::AbstractDict{String}; @@ -700,6 +952,99 @@ function get_guardrail( ) end +""" + get_imported_model(model_identifier) + get_imported_model(model_identifier, params::Dict{String,<:Any}) + +Gets properties associated with a customized model you imported. + +# Arguments +- `model_identifier`: Name or Amazon Resource Name (ARN) of the imported model. + +""" +get_imported_model(modelIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( + "GET", + "/imported-models/$(modelIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function get_imported_model( + modelIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock( + "GET", + "/imported-models/$(modelIdentifier)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_inference_profile(inference_profile_identifier) + get_inference_profile(inference_profile_identifier, params::Dict{String,<:Any}) + +Gets information about an inference profile. For more information, see the Amazon Bedrock +User Guide. + +# Arguments +- `inference_profile_identifier`: The unique identifier of the inference profile. + +""" +get_inference_profile( + inferenceProfileIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "GET", + "/inference-profiles/$(inferenceProfileIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_inference_profile( + inferenceProfileIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock( + "GET", + "/inference-profiles/$(inferenceProfileIdentifier)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_model_copy_job(job_arn) + get_model_copy_job(job_arn, params::Dict{String,<:Any}) + +Retrieves information about a model copy job. For more information, see Copy models to be +used in other regions in the Amazon Bedrock User Guide. + +# Arguments +- `job_arn`: The Amazon Resource Name (ARN) of the model copy job. + +""" +get_model_copy_job(jobArn; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock( + "GET", + "/model-copy-jobs/$(jobArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_model_copy_job( + jobArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return bedrock( + "GET", + "/model-copy-jobs/$(jobArn)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ get_model_customization_job(job_identifier) get_model_customization_job(job_identifier, params::Dict{String,<:Any}) @@ -711,24 +1056,54 @@ the job. For more information, see Custom models in the Amazon Bedrock User Guid - `job_identifier`: Identifier for the customization job. """ -function get_model_customization_job( +get_model_customization_job( jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "GET", + "/model-customization-jobs/$(jobIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_model_customization_job( + jobIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock( "GET", - "/model-customization-jobs/$(jobIdentifier)"; + "/model-customization-jobs/$(jobIdentifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_model_customization_job( + +""" + get_model_import_job(job_identifier) + get_model_import_job(job_identifier, params::Dict{String,<:Any}) + +Retrieves the properties associated with import model job, including the status of the job. +For more information, see Import a customized model in the Amazon Bedrock User Guide. + +# Arguments +- `job_identifier`: The identifier of the import job. + +""" +get_model_import_job(jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( + "GET", + "/model-import-jobs/$(jobIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function get_model_import_job( jobIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock( "GET", - "/model-customization-jobs/$(jobIdentifier)", + "/model-import-jobs/$(jobIdentifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -736,22 +1111,53 @@ function get_model_customization_job( end """ - get_model_invocation_logging_configuration() - get_model_invocation_logging_configuration(params::Dict{String,<:Any}) + get_model_invocation_job(job_identifier) + get_model_invocation_job(job_identifier, params::Dict{String,<:Any}) -Get the current configuration values for model invocation logging. +Gets details about a batch inference job. For more information, see View details about a +batch inference job + +# Arguments +- `job_identifier`: The Amazon Resource Name (ARN) of the batch inference job. """ -function get_model_invocation_logging_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() +get_model_invocation_job( + jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "GET", + "/model-invocation-job/$(jobIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_model_invocation_job( + jobIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock( "GET", - "/logging/modelinvocations"; + "/model-invocation-job/$(jobIdentifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end + +""" + get_model_invocation_logging_configuration() + get_model_invocation_logging_configuration(params::Dict{String,<:Any}) + +Get the current configuration values for model invocation logging. + +""" +get_model_invocation_logging_configuration(; + aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "GET", + "/logging/modelinvocations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_model_invocation_logging_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -776,16 +1182,14 @@ Throughput in the Amazon Bedrock User Guide. Throughput. """ -function get_provisioned_model_throughput( +get_provisioned_model_throughput( provisionedModelId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "GET", + "/provisioned-model-throughput/$(provisionedModelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "GET", - "/provisioned-model-throughput/$(provisionedModelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_provisioned_model_throughput( provisionedModelId, params::AbstractDict{String}; @@ -816,18 +1220,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"creationTimeBefore"`: Return custom models created before the specified time. - `"foundationModelArnEquals"`: Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter. -- `"maxResults"`: Maximum number of results to return in the response. +- `"isOwned"`: Return custom models depending on if the current account owns them (true) or + if they were shared with the current account (false). +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. - `"nameContains"`: Return custom models only if the job name contains these characters. -- `"nextToken"`: Continuation token from the previous response, for Amazon Bedrock to list - the next set of results. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. - `"sortBy"`: The field to sort by in the returned list of models. - `"sortOrder"`: The sort order of the results. """ -function list_custom_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock( - "GET", "/custom-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_custom_models(; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock("GET", "/custom-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_custom_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -860,11 +1266,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortOrder"`: How you want the order of jobs sorted. - `"statusEquals"`: Only return jobs where the status condition is met. """ -function list_evaluation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock( - "GET", "/evaluation-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_evaluation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock( + "GET", "/evaluation-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_evaluation_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -894,11 +1298,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"byOutputModality"`: Return models that support the output modality that you specify. - `"byProvider"`: Return models belonging to the model provider that you specify. """ -function list_foundation_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock( - "GET", "/foundation-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_foundation_models(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock( + "GET", "/foundation-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_foundation_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -924,22 +1326,131 @@ another ListGuardrails request to see the next batch of results. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"guardrailIdentifier"`: The unique identifier of the guardrail. +- `"guardrailIdentifier"`: The unique identifier of the guardrail. This can be an ID or the + ARN. - `"maxResults"`: The maximum number of results to return in the response. - `"nextToken"`: If there are more results than were returned in the response, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results. """ -function list_guardrails(; aws_config::AbstractAWSConfig=current_aws_config()) +list_guardrails(; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock("GET", "/guardrails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function list_guardrails( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return bedrock( - "GET", "/guardrails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "GET", "/guardrails", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) end -function list_guardrails( + +""" + list_imported_models() + list_imported_models(params::Dict{String,<:Any}) + +Returns a list of models you've imported. You can filter the results to return based on one +or more criteria. For more information, see Import a customized model in the Amazon Bedrock +User Guide. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"creationTimeAfter"`: Return imported models that were created after the specified time. +- `"creationTimeBefore"`: Return imported models that created before the specified time. +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nameContains"`: Return imported models only if the model name contains these characters. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. +- `"sortBy"`: The field to sort by in the returned list of imported models. +- `"sortOrder"`: Specifies whetehr to sort the results in ascending or descending order. +""" +list_imported_models(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock( + "GET", "/imported-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_imported_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return bedrock( - "GET", "/guardrails", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "GET", + "/imported-models", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_inference_profiles() + list_inference_profiles(params::Dict{String,<:Any}) + +Returns a list of inference profiles that you can use. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. +""" +list_inference_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock( + "GET", "/inference-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_inference_profiles( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return bedrock( + "GET", + "/inference-profiles", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_model_copy_jobs() + list_model_copy_jobs(params::Dict{String,<:Any}) + +Returns a list of model copy jobs that you have submitted. You can filter the jobs to +return based on one or more criteria. For more information, see Copy models to be used in +other regions in the Amazon Bedrock User Guide. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"creationTimeAfter"`: Filters for model copy jobs created after the specified time. +- `"creationTimeBefore"`: Filters for model copy jobs created before the specified time. +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. +- `"outputModelNameContains"`: Filters for model copy jobs in which the name of the copied + model contains the string that you specify. +- `"sortBy"`: The field to sort by in the returned list of model copy jobs. +- `"sortOrder"`: Specifies whether to sort the results in ascending or descending order. +- `"sourceAccountEquals"`: Filters for model copy jobs in which the account that the source + model belongs to is equal to the value that you specify. +- `"sourceModelArnEquals"`: Filters for model copy jobs in which the Amazon Resource Name + (ARN) of the source model to is equal to the value that you specify. +- `"statusEquals"`: Filters for model copy jobs whose status matches the value that you + specify. +""" +list_model_copy_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock( + "GET", "/model-copy-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_model_copy_jobs( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return bedrock( + "GET", + "/model-copy-jobs", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) end @@ -955,23 +1466,25 @@ Amazon Bedrock User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"creationTimeAfter"`: Return customization jobs created after the specified time. - `"creationTimeBefore"`: Return customization jobs created before the specified time. -- `"maxResults"`: Maximum number of results to return in the response. +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. - `"nameContains"`: Return customization jobs only if the job name contains these characters. -- `"nextToken"`: Continuation token from the previous response, for Amazon Bedrock to list - the next set of results. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. - `"sortBy"`: The field to sort by in the returned list of jobs. - `"sortOrder"`: The sort order of the results. - `"statusEquals"`: Return customization jobs with the specified status. """ -function list_model_customization_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock( +list_model_customization_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "GET", "/model-customization-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_model_customization_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -984,6 +1497,89 @@ function list_model_customization_jobs( ) end +""" + list_model_import_jobs() + list_model_import_jobs(params::Dict{String,<:Any}) + +Returns a list of import jobs you've submitted. You can filter the results to return based +on one or more criteria. For more information, see Import a customized model in the Amazon +Bedrock User Guide. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"creationTimeAfter"`: Return import jobs that were created after the specified time. +- `"creationTimeBefore"`: Return import jobs that were created before the specified time. +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nameContains"`: Return imported jobs only if the job name contains these characters. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. +- `"sortBy"`: The field to sort by in the returned list of imported jobs. +- `"sortOrder"`: Specifies whether to sort the results in ascending or descending order. +- `"statusEquals"`: Return imported jobs with the specified status. +""" +list_model_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock( + "GET", "/model-import-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_model_import_jobs( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return bedrock( + "GET", + "/model-import-jobs", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_model_invocation_jobs() + list_model_invocation_jobs(params::Dict{String,<:Any}) + +Lists all batch inference jobs in the account. For more information, see View details about +a batch inference job. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results to return. If there are more results than + the number that you specify, a nextToken value is returned. Use the nextToken in a request + to return the next batch of results. +- `"nameContains"`: Specify a string to filter for batch inference jobs whose names contain + the string. +- `"nextToken"`: If there were more results than the value you specified in the maxResults + field in a previous ListModelInvocationJobs request, the response would have returned a + nextToken value. To see the next batch of results, send the nextToken value in another + request. +- `"sortBy"`: An attribute by which to sort the results. +- `"sortOrder"`: Specifies whether to sort the results by ascending or descending order. +- `"statusEquals"`: Specify a status to filter for batch inference jobs whose statuses + match the string you specify. +- `"submitTimeAfter"`: Specify a time to filter for batch inference jobs that were + submitted after the time you specify. +- `"submitTimeBefore"`: Specify a time to filter for batch inference jobs that were + submitted before the time you specify. +""" +list_model_invocation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock( + "GET", + "/model-invocation-jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_model_invocation_jobs( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return bedrock( + "GET", + "/model-invocation-jobs", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_provisioned_model_throughputs() list_provisioned_model_throughputs(params::Dict{String,<:Any}) @@ -1012,16 +1608,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"statusEquals"`: A filter that returns Provisioned Throughputs if their statuses matches the value that you specify. """ -function list_provisioned_model_throughputs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +list_provisioned_model_throughputs(; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "GET", "/provisioned-model-throughputs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_provisioned_model_throughputs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1045,17 +1638,14 @@ resources in the Amazon Bedrock User Guide. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +list_tags_for_resource(resourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "POST", "/listTagsForResource", Dict{String,Any}("resourceARN" => resourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceARN, params::AbstractDict{String}; @@ -1082,17 +1672,15 @@ Set the configuration values for model invocation logging. - `logging_config`: The logging configuration values to set. """ -function put_model_invocation_logging_configuration( +put_model_invocation_logging_configuration( loggingConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "PUT", + "/logging/modelinvocations", + Dict{String,Any}("loggingConfig" => loggingConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "PUT", - "/logging/modelinvocations", - Dict{String,Any}("loggingConfig" => loggingConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_model_invocation_logging_configuration( loggingConfig, params::AbstractDict{String}; @@ -1119,16 +1707,13 @@ Stops an in progress model evaluation job. - `job_identifier`: The ARN of the model evaluation job you want to stop. """ -function stop_evaluation_job( - jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +stop_evaluation_job(jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "POST", "/evaluation-job/$(jobIdentifier)/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_evaluation_job( jobIdentifier, params::AbstractDict{String}; @@ -1154,24 +1739,55 @@ Amazon Bedrock User Guide. - `job_identifier`: Job identifier of the job to stop. """ -function stop_model_customization_job( +stop_model_customization_job( jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "POST", + "/model-customization-jobs/$(jobIdentifier)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function stop_model_customization_job( + jobIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock( "POST", - "/model-customization-jobs/$(jobIdentifier)/stop"; + "/model-customization-jobs/$(jobIdentifier)/stop", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function stop_model_customization_job( + +""" + stop_model_invocation_job(job_identifier) + stop_model_invocation_job(job_identifier, params::Dict{String,<:Any}) + +Stops a batch inference job. You're only charged for tokens that were already processed. +For more information, see Stop a batch inference job. + +# Arguments +- `job_identifier`: The Amazon Resource Name (ARN) of the batch inference job to stop. + +""" +stop_model_invocation_job( + jobIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "POST", + "/model-invocation-job/$(jobIdentifier)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function stop_model_invocation_job( jobIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock( "POST", - "/model-customization-jobs/$(jobIdentifier)/stop", + "/model-invocation-job/$(jobIdentifier)/stop", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1190,15 +1806,14 @@ Bedrock User Guide. - `tags`: Tags to associate with the resource. """ -function tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock( +tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "POST", "/tagResource", Dict{String,Any}("resourceARN" => resourceARN, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceARN, tags, @@ -1232,17 +1847,14 @@ Amazon Bedrock User Guide. - `tag_keys`: Tag keys of the tags to remove from the resource. """ -function untag_resource( - resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock( +untag_resource(resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock( "POST", "/untagResource", Dict{String,Any}("resourceARN" => resourceARN, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceARN, tagKeys, @@ -1282,19 +1894,21 @@ filters. For more information about the fields in a content filter, see GuardrailContentFilterConfig. Specify the category in the type field. Specify the strength of the filter for prompts in the inputStrength field and for model responses in the strength field of the GuardrailContentFilterConfig. (Optional) For security, -include the ARN of a KMS key in the kmsKeyId field. (Optional) Attach any tags to the -guardrail in the tags object. For more information, see Tag resources. +include the ARN of a KMS key in the kmsKeyId field. # Arguments - `blocked_input_messaging`: The message to return when the guardrail blocks a prompt. - `blocked_outputs_messaging`: The message to return when the guardrail blocks a model response. -- `guardrail_identifier`: The unique identifier of the guardrail +- `guardrail_identifier`: The unique identifier of the guardrail. This can be an ID or the + ARN. - `name`: A name for the guardrail. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"contentPolicyConfig"`: The content policy to configure for the guardrail. +- `"contextualGroundingPolicyConfig"`: The contextual grounding policy configuration used + to update a guardrail. - `"description"`: A description of the guardrail. - `"kmsKeyId"`: The ARN of the KMS key with which to encrypt the guardrail. - `"sensitiveInformationPolicyConfig"`: The sensitive information policy to configure for @@ -1302,25 +1916,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"topicPolicyConfig"`: The topic policy to configure for the guardrail. - `"wordPolicyConfig"`: The word policy to configure for the guardrail. """ -function update_guardrail( +update_guardrail( blockedInputMessaging, blockedOutputsMessaging, guardrailIdentifier, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock( + "PUT", + "/guardrails/$(guardrailIdentifier)", + Dict{String,Any}( + "blockedInputMessaging" => blockedInputMessaging, + "blockedOutputsMessaging" => blockedOutputsMessaging, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "PUT", - "/guardrails/$(guardrailIdentifier)", - Dict{String,Any}( - "blockedInputMessaging" => blockedInputMessaging, - "blockedOutputsMessaging" => blockedOutputsMessaging, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_guardrail( blockedInputMessaging, blockedOutputsMessaging, @@ -1369,16 +1981,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys as the custom model. - `"desiredProvisionedModelName"`: The new name for this Provisioned Throughput. """ -function update_provisioned_model_throughput( +update_provisioned_model_throughput( provisionedModelId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock( + "PATCH", + "/provisioned-model-throughput/$(provisionedModelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock( - "PATCH", - "/provisioned-model-throughput/$(provisionedModelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_provisioned_model_throughput( provisionedModelId, params::AbstractDict{String}; diff --git a/src/services/bedrock_agent.jl b/src/services/bedrock_agent.jl index 0c9d70a2f..27dbbfbe0 100644 --- a/src/services/bedrock_agent.jl +++ b/src/services/bedrock_agent.jl @@ -26,23 +26,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"knowledgeBaseState"`: Specifies whether to use the knowledge base or not when sending an InvokeAgent request. """ -function associate_agent_knowledge_base( +associate_agent_knowledge_base( agentId, agentVersion, description, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/", + Dict{String,Any}("description" => description, "knowledgeBaseId" => knowledgeBaseId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/", - Dict{String,Any}( - "description" => description, "knowledgeBaseId" => knowledgeBaseId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_agent_knowledge_base( agentId, agentVersion, @@ -79,11 +75,15 @@ Resource Name (ARN) of the role with permissions to invoke API operations on an (Optional) customerEncryptionKeyArn – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent. (Optional) idleSessionTTLinSeconds – Specify the number of seconds for which the agent should maintain session information. After this time -expires, the subsequent InvokeAgent request begins a new session. To override the -default prompt behavior for agent orchestration and to use advanced prompts, include a -promptOverrideConfiguration object. For more information, see Advanced prompts. If you +expires, the subsequent InvokeAgent request begins a new session. To enable your agent +to retain conversational context across multiple sessions, include a memoryConfiguration +object. For more information, see Configure memory. To override the default prompt +behavior for agent orchestration and to use advanced prompts, include a +promptOverrideConfiguration object. For more information, see Advanced prompts. If your agent fails to be created, the response returns a list of failureReasons alongside a list -of recommendedActions for you to troubleshoot. +of recommendedActions for you to troubleshoot. The agent instructions will not be honored +if your agent has only one knowledge base, uses default prompts, has no action group, and +user input is disabled. # Arguments - `agent_name`: A name for the agent that you create. @@ -109,19 +109,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys expires and Amazon Bedrock deletes any data provided before the timeout. - `"instruction"`: Instructions that tell the agent what it should do and how it should interact with users. +- `"memoryConfiguration"`: Contains the details of the memory configured for the agent. - `"promptOverrideConfiguration"`: Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts. - `"tags"`: Any tags that you want to attach to the agent. """ -function create_agent(agentName; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent( - "PUT", - "/agents/", - Dict{String,Any}("agentName" => agentName, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_agent(agentName; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock_agent( + "PUT", + "/agents/", + Dict{String,Any}("agentName" => agentName, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_agent( agentName, params::AbstractDict{String}; @@ -152,11 +151,13 @@ Creates an action group for an agent. An action group represents the actions tha can carry out for the customer by defining the APIs that an agent can call and the logic for calling them. To allow your agent to request the user for additional information when trying to complete a task, add an action group with the parentActionGroupSignature field -set to AMAZON.UserInput. You must leave the description, apiSchema, and actionGroupExecutor -fields blank for this action group. During orchestration, if your agent determines that it -needs to invoke an API in an action group, but doesn't have enough information to complete -the API request, it will invoke this action group instead and return an Observation -reprompting the user for more information. +set to AMAZON.UserInput. To allow your agent to generate, run, and troubleshoot code when +trying to complete a task, add an action group with the parentActionGroupSignature field +set to AMAZON.CodeInterpreter. You must leave the description, apiSchema, and +actionGroupExecutor fields blank for this action group. During orchestration, if your agent +determines that it needs to invoke an API in an action group, but doesn't have enough +information to complete the API request, it will invoke this action group instead and +return an Observation reprompting the user for more information. # Arguments - `action_group_name`: The name to give the action group. @@ -183,27 +184,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parentActionGroupSignature"`: To allow your agent to request the user for additional information when trying to complete a task, set this field to AMAZON.UserInput. You must leave the description, apiSchema, and actionGroupExecutor fields blank for this action - group. During orchestration, if your agent determines that it needs to invoke an API in an - action group, but doesn't have enough information to complete the API request, it will - invoke this action group instead and return an Observation reprompting the user for more - information. -""" -function create_agent_action_group( + group. To allow your agent to generate, run, and troubleshoot code when trying to complete + a task, set this field to AMAZON.CodeInterpreter. You must leave the description, + apiSchema, and actionGroupExecutor fields blank for this action group. During + orchestration, if your agent determines that it needs to invoke an API in an action group, + but doesn't have enough information to complete the API request, it will invoke this action + group instead and return an Observation reprompting the user for more information. +""" +create_agent_action_group( actionGroupName, agentId, agentVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/", + Dict{String,Any}( + "actionGroupName" => actionGroupName, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/", - Dict{String,Any}( - "actionGroupName" => actionGroupName, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_agent_action_group( actionGroupName, agentId, @@ -248,19 +249,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"routingConfiguration"`: Contains details about the routing configuration of the alias. - `"tags"`: Any tags that you want to attach to the alias of the agent. """ -function create_agent_alias( +create_agent_alias( agentAliasName, agentId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "PUT", + "/agents/$(agentId)/agentaliases/", + Dict{String,Any}("agentAliasName" => agentAliasName, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/agents/$(agentId)/agentaliases/", - Dict{String,Any}( - "agentAliasName" => agentAliasName, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_agent_alias( agentAliasName, agentId, @@ -288,11 +285,11 @@ end create_data_source(data_source_configuration, knowledge_base_id, name) create_data_source(data_source_configuration, knowledge_base_id, name, params::Dict{String,<:Any}) -Sets up a data source to be added to a knowledge base. You can't change the -chunkingConfiguration after you create the data source. +Creates a data source connector for a knowledge base. You can't change the +chunkingConfiguration after you create the data source connector. # Arguments -- `data_source_configuration`: Contains metadata about where the data source is stored. +- `data_source_configuration`: The connection configuration for the data source. - `knowledge_base_id`: The unique identifier of the knowledge base to which to add the data source. - `name`: The name of the data source. @@ -303,47 +300,181 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency. -- `"dataDeletionPolicy"`: The data deletion policy assigned to the data source. +- `"dataDeletionPolicy"`: The data deletion policy for the data source. You can set the + data deletion policy to: DELETE: Deletes all data from your data source that’s + converted into vector embeddings upon deletion of a knowledge base or data source resource. + Note that the vector store itself is not deleted, only the data. This flag is ignored if an + Amazon Web Services account is deleted. RETAIN: Retains all data from your data source + that’s converted into vector embeddings upon deletion of a knowledge base or data source + resource. Note that the vector store itself is not deleted if you delete a knowledge base + or data source resource. - `"description"`: A description of the data source. - `"serverSideEncryptionConfiguration"`: Contains details about the server-side encryption for the data source. - `"vectorIngestionConfiguration"`: Contains details about how to ingest the documents in the data source. """ -function create_data_source( +create_data_source( dataSourceConfiguration, knowledgeBaseId, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/knowledgebases/$(knowledgeBaseId)/datasources/", + Dict{String,Any}( + "dataSourceConfiguration" => dataSourceConfiguration, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_data_source( + dataSourceConfiguration, + knowledgeBaseId, + name, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( "PUT", "/knowledgebases/$(knowledgeBaseId)/datasources/", Dict{String,Any}( - "dataSourceConfiguration" => dataSourceConfiguration, + mergewith( + _merge, + Dict{String,Any}( + "dataSourceConfiguration" => dataSourceConfiguration, + "name" => name, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_flow(execution_role_arn, name) + create_flow(execution_role_arn, name, params::Dict{String,<:Any}) + +Creates a prompt flow that you can use to send an input through various steps to yield an +output. Configure nodes, each of which corresponds to a step of the flow, and create +connections between the nodes to create paths to different outputs. For more information, +see How it works and Create a flow in Amazon Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `execution_role_arn`: The Amazon Resource Name (ARN) of the service role with permissions + to create and manage a flow. For more information, see Create a service role for flows in + Amazon Bedrock in the Amazon Bedrock User Guide. +- `name`: A name for the flow. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous request, Amazon Bedrock + ignores the request, but does not return an error. For more information, see Ensuring + idempotency. +- `"customerEncryptionKeyArn"`: The Amazon Resource Name (ARN) of the KMS key to encrypt + the flow. +- `"definition"`: A definition of the nodes and connections between nodes in the flow. +- `"description"`: A description for the flow. +- `"tags"`: Any tags that you want to attach to the flow. For more information, see Tagging + resources in Amazon Bedrock. +""" +create_flow(executionRoleArn, name; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "POST", + "/flows/", + Dict{String,Any}( + "executionRoleArn" => executionRoleArn, "name" => name, "clientToken" => string(uuid4()), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) +function create_flow( + executionRoleArn, + name, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "POST", + "/flows/", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "executionRoleArn" => executionRoleArn, + "name" => name, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) end -function create_data_source( - dataSourceConfiguration, - knowledgeBaseId, + +""" + create_flow_alias(flow_identifier, name, routing_configuration) + create_flow_alias(flow_identifier, name, routing_configuration, params::Dict{String,<:Any}) + +Creates an alias of a flow for deployment. For more information, see Deploy a flow in +Amazon Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `flow_identifier`: The unique identifier of the flow for which to create an alias. +- `name`: A name for the alias. +- `routing_configuration`: Contains information about the version to which to map the alias. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous request, Amazon Bedrock + ignores the request, but does not return an error. For more information, see Ensuring + idempotency. +- `"description"`: A description for the alias. +- `"tags"`: Any tags that you want to attach to the alias of the flow. For more + information, see Tagging resources in Amazon Bedrock. +""" +create_flow_alias( + flowIdentifier, + name, + routingConfiguration; + aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "POST", + "/flows/$(flowIdentifier)/aliases", + Dict{String,Any}( + "name" => name, + "routingConfiguration" => routingConfiguration, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_flow_alias( + flowIdentifier, name, + routingConfiguration, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( - "PUT", - "/knowledgebases/$(knowledgeBaseId)/datasources/", + "POST", + "/flows/$(flowIdentifier)/aliases", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "dataSourceConfiguration" => dataSourceConfiguration, "name" => name, + "routingConfiguration" => routingConfiguration, "clientToken" => string(uuid4()), ), params, @@ -354,6 +485,48 @@ function create_data_source( ) end +""" + create_flow_version(flow_identifier) + create_flow_version(flow_identifier, params::Dict{String,<:Any}) + +Creates a version of the flow that you can deploy. For more information, see Deploy a flow +in Amazon Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `flow_identifier`: The unique identifier of the flow that you want to create a version of. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous request, Amazon Bedrock + ignores the request, but does not return an error. For more information, see Ensuring + idempotency. +- `"description"`: A description of the version of the flow. +""" +create_flow_version(flowIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "POST", + "/flows/$(flowIdentifier)/versions", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function create_flow_version( + flowIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "POST", + "/flows/$(flowIdentifier)/versions", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("clientToken" => string(uuid4())), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ create_knowledge_base(knowledge_base_configuration, name, role_arn, storage_configuration) create_knowledge_base(knowledge_base_configuration, name, role_arn, storage_configuration, params::Dict{String,<:Any}) @@ -395,27 +568,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object. """ -function create_knowledge_base( +create_knowledge_base( knowledgeBaseConfiguration, name, roleArn, storageConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/knowledgebases/", + Dict{String,Any}( + "knowledgeBaseConfiguration" => knowledgeBaseConfiguration, + "name" => name, + "roleArn" => roleArn, + "storageConfiguration" => storageConfiguration, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/knowledgebases/", - Dict{String,Any}( - "knowledgeBaseConfiguration" => knowledgeBaseConfiguration, - "name" => name, - "roleArn" => roleArn, - "storageConfiguration" => storageConfiguration, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_knowledge_base( knowledgeBaseConfiguration, name, @@ -445,6 +616,104 @@ function create_knowledge_base( ) end +""" + create_prompt(name) + create_prompt(name, params::Dict{String,<:Any}) + +Creates a prompt in your prompt library that you can add to a flow. For more information, +see Prompt management in Amazon Bedrock, Create a prompt using Prompt management and Prompt +flows in Amazon Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `name`: A name for the prompt. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous request, Amazon Bedrock + ignores the request, but does not return an error. For more information, see Ensuring + idempotency. +- `"customerEncryptionKeyArn"`: The Amazon Resource Name (ARN) of the KMS key to encrypt + the prompt. +- `"defaultVariant"`: The name of the default variant for the prompt. This value must match + the name field in the relevant PromptVariant object. +- `"description"`: A description for the prompt. +- `"tags"`: Any tags that you want to attach to the prompt. For more information, see + Tagging resources in Amazon Bedrock. +- `"variants"`: A list of objects, each containing details about a variant of the prompt. +""" +create_prompt(name; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock_agent( + "POST", + "/prompts/", + Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_prompt( + name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return bedrock_agent( + "POST", + "/prompts/", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("name" => name, "clientToken" => string(uuid4())), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_prompt_version(prompt_identifier) + create_prompt_version(prompt_identifier, params::Dict{String,<:Any}) + +Creates a static snapshot of your prompt that can be deployed to production. For more +information, see Deploy prompts using Prompt management by creating versions in the Amazon +Bedrock User Guide. + +# Arguments +- `prompt_identifier`: The unique identifier of the prompt that you want to create a + version of. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous request, Amazon Bedrock + ignores the request, but does not return an error. For more information, see Ensuring + idempotency. +- `"description"`: A description for the version of the prompt. +- `"tags"`: Any tags that you want to attach to the version of the prompt. For more + information, see Tagging resources in Amazon Bedrock. +""" +create_prompt_version( + promptIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "POST", + "/prompts/$(promptIdentifier)/versions", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_prompt_version( + promptIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "POST", + "/prompts/$(promptIdentifier)/versions", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("clientToken" => string(uuid4())), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ delete_agent(agent_id) delete_agent(agent_id, params::Dict{String,<:Any}) @@ -460,14 +729,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the resource is in use. If you set it to true, the resource will be deleted even if the resource is in use. """ -function delete_agent(agentId; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent( - "DELETE", - "/agents/$(agentId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_agent(agentId; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock_agent( + "DELETE", + "/agents/$(agentId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_agent( agentId, params::AbstractDict{String}; @@ -499,16 +766,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the resource is in use. If you set it to true, the resource will be deleted even if the resource is in use. """ -function delete_agent_action_group( +delete_agent_action_group( actionGroupId, agentId, agentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "DELETE", + "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/$(actionGroupId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "DELETE", - "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/$(actionGroupId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_agent_action_group( actionGroupId, agentId, @@ -536,16 +801,14 @@ Deletes an alias of an agent. - `agent_id`: The unique identifier of the agent that the alias belongs to. """ -function delete_agent_alias( +delete_agent_alias( agentAliasId, agentId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "DELETE", + "/agents/$(agentId)/agentaliases/$(agentAliasId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "DELETE", - "/agents/$(agentId)/agentaliases/$(agentAliasId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_agent_alias( agentAliasId, agentId, @@ -577,16 +840,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the resource is in use. If you set it to true, the resource will be deleted even if the resource is in use. """ -function delete_agent_version( +delete_agent_version( agentId, agentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "DELETE", + "/agents/$(agentId)/agentversions/$(agentVersion)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "DELETE", - "/agents/$(agentId)/agentversions/$(agentVersion)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_agent_version( agentId, agentVersion, @@ -614,16 +875,14 @@ Deletes a data source from a knowledge base. data source. """ -function delete_data_source( +delete_data_source( dataSourceId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "DELETE", + "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "DELETE", - "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_source( dataSourceId, knowledgeBaseId, @@ -640,27 +899,133 @@ function delete_data_source( end """ - delete_knowledge_base(knowledge_base_id) - delete_knowledge_base(knowledge_base_id, params::Dict{String,<:Any}) + delete_flow(flow_identifier) + delete_flow(flow_identifier, params::Dict{String,<:Any}) -Deletes a knowledge base. Before deleting a knowledge base, you should disassociate the -knowledge base from any agents that it is associated with by making a -DisassociateAgentKnowledgeBase request. +Deletes a flow. # Arguments -- `knowledge_base_id`: The unique identifier of the knowledge base to delete. +- `flow_identifier`: The unique identifier of the flow. -""" -function delete_knowledge_base( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"skipResourceInUseCheck"`: By default, this value is false and deletion is stopped if + the resource is in use. If you set it to true, the resource will be deleted even if the + resource is in use. +""" +delete_flow(flowIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "DELETE", + "/flows/$(flowIdentifier)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function delete_flow( + flowIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( "DELETE", - "/knowledgebases/$(knowledgeBaseId)"; + "/flows/$(flowIdentifier)/", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end + +""" + delete_flow_alias(alias_identifier, flow_identifier) + delete_flow_alias(alias_identifier, flow_identifier, params::Dict{String,<:Any}) + +Deletes an alias of a flow. + +# Arguments +- `alias_identifier`: The unique identifier of the alias to be deleted. +- `flow_identifier`: The unique identifier of the flow that the alias belongs to. + +""" +delete_flow_alias( + aliasIdentifier, flowIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "DELETE", + "/flows/$(flowIdentifier)/aliases/$(aliasIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_flow_alias( + aliasIdentifier, + flowIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "DELETE", + "/flows/$(flowIdentifier)/aliases/$(aliasIdentifier)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_flow_version(flow_identifier, flow_version) + delete_flow_version(flow_identifier, flow_version, params::Dict{String,<:Any}) + +Deletes a version of a flow. + +# Arguments +- `flow_identifier`: The unique identifier of the flow whose version that you want to delete +- `flow_version`: The version of the flow that you want to delete. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"skipResourceInUseCheck"`: By default, this value is false and deletion is stopped if + the resource is in use. If you set it to true, the resource will be deleted even if the + resource is in use. +""" +delete_flow_version( + flowIdentifier, flowVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "DELETE", + "/flows/$(flowIdentifier)/versions/$(flowVersion)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_flow_version( + flowIdentifier, + flowVersion, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "DELETE", + "/flows/$(flowIdentifier)/versions/$(flowVersion)/", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_knowledge_base(knowledge_base_id) + delete_knowledge_base(knowledge_base_id, params::Dict{String,<:Any}) + +Deletes a knowledge base. Before deleting a knowledge base, you should disassociate the +knowledge base from any agents that it is associated with by making a +DisassociateAgentKnowledgeBase request. + +# Arguments +- `knowledge_base_id`: The unique identifier of the knowledge base to delete. + +""" +delete_knowledge_base(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "DELETE", + "/knowledgebases/$(knowledgeBaseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) function delete_knowledge_base( knowledgeBaseId, params::AbstractDict{String}; @@ -675,6 +1040,44 @@ function delete_knowledge_base( ) end +""" + delete_prompt(prompt_identifier) + delete_prompt(prompt_identifier, params::Dict{String,<:Any}) + +Deletes a prompt or a version of it, depending on whether you include the promptVersion +field or not. For more information, see Delete prompts from the Prompt management tool and +Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User +Guide. + +# Arguments +- `prompt_identifier`: The unique identifier of the prompt. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"promptVersion"`: The version of the prompt to delete. To delete the prompt, omit this + field. +""" +delete_prompt(promptIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "DELETE", + "/prompts/$(promptIdentifier)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function delete_prompt( + promptIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "DELETE", + "/prompts/$(promptIdentifier)/", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ disassociate_agent_knowledge_base(agent_id, agent_version, knowledge_base_id) disassociate_agent_knowledge_base(agent_id, agent_version, knowledge_base_id, params::Dict{String,<:Any}) @@ -688,19 +1091,17 @@ Disassociates a knowledge base from an agent. - `knowledge_base_id`: The unique identifier of the knowledge base to disassociate. """ -function disassociate_agent_knowledge_base( +disassociate_agent_knowledge_base( agentId, agentVersion, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "DELETE", + "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/$(knowledgeBaseId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "DELETE", - "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/$(knowledgeBaseId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_agent_knowledge_base( agentId, agentVersion, @@ -727,11 +1128,9 @@ Gets information about an agent. - `agent_id`: The unique identifier of the agent. """ -function get_agent(agentId; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent( - "GET", "/agents/$(agentId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_agent(agentId; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock_agent( + "GET", "/agents/$(agentId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_agent( agentId, params::AbstractDict{String}; @@ -758,16 +1157,14 @@ Gets information about an action group for an agent. - `agent_version`: The version of the agent that the action group belongs to. """ -function get_agent_action_group( +get_agent_action_group( actionGroupId, agentId, agentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "GET", + "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/$(actionGroupId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "GET", - "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/$(actionGroupId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_agent_action_group( actionGroupId, agentId, @@ -796,16 +1193,13 @@ Gets information about an alias of an agent. belongs. """ -function get_agent_alias( - agentAliasId, agentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock_agent( +get_agent_alias(agentAliasId, agentId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( "GET", "/agents/$(agentId)/agentaliases/$(agentAliasId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_agent_alias( agentAliasId, agentId, @@ -835,19 +1229,17 @@ Gets information about a knowledge base associated with an agent. agent. """ -function get_agent_knowledge_base( +get_agent_knowledge_base( agentId, agentVersion, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "GET", + "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/$(knowledgeBaseId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "GET", - "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/$(knowledgeBaseId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_agent_knowledge_base( agentId, agentVersion, @@ -875,16 +1267,14 @@ Gets details about a version of an agent. - `agent_version`: The version of the agent. """ -function get_agent_version( +get_agent_version( agentId, agentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "GET", + "/agents/$(agentId)/agentversions/$(agentVersion)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "GET", - "/agents/$(agentId)/agentversions/$(agentVersion)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_agent_version( agentId, agentVersion, @@ -912,25 +1302,125 @@ Gets information about a data source. added to. """ -function get_data_source( +get_data_source( dataSourceId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "GET", + "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_data_source( + dataSourceId, + knowledgeBaseId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( "GET", - "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)"; + "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_data_source( - dataSourceId, - knowledgeBaseId, + +""" + get_flow(flow_identifier) + get_flow(flow_identifier, params::Dict{String,<:Any}) + +Retrieves information about a flow. For more information, see Manage a flow in Amazon +Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `flow_identifier`: The unique identifier of the flow. + +""" +get_flow(flowIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "GET", + "/flows/$(flowIdentifier)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function get_flow( + flowIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( "GET", - "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)", + "/flows/$(flowIdentifier)/", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_flow_alias(alias_identifier, flow_identifier) + get_flow_alias(alias_identifier, flow_identifier, params::Dict{String,<:Any}) + +Retrieves information about a flow. For more information, see Deploy a flow in Amazon +Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `alias_identifier`: The unique identifier of the alias for which to retrieve information. +- `flow_identifier`: The unique identifier of the flow that the alias belongs to. + +""" +get_flow_alias( + aliasIdentifier, flowIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "GET", + "/flows/$(flowIdentifier)/aliases/$(aliasIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_flow_alias( + aliasIdentifier, + flowIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "GET", + "/flows/$(flowIdentifier)/aliases/$(aliasIdentifier)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_flow_version(flow_identifier, flow_version) + get_flow_version(flow_identifier, flow_version, params::Dict{String,<:Any}) + +Retrieves information about a version of a flow. For more information, see Deploy a flow in +Amazon Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `flow_identifier`: The unique identifier of the flow for which to get information. +- `flow_version`: The version of the flow for which to get information. + +""" +get_flow_version( + flowIdentifier, flowVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "GET", + "/flows/$(flowIdentifier)/versions/$(flowVersion)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_flow_version( + flowIdentifier, + flowVersion, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "GET", + "/flows/$(flowIdentifier)/versions/$(flowVersion)/", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -950,19 +1440,17 @@ Gets information about a ingestion job, in which a data source is added to a kno job applies. """ -function get_ingestion_job( +get_ingestion_job( dataSourceId, ingestionJobId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "GET", + "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)/ingestionjobs/$(ingestionJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "GET", - "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)/ingestionjobs/$(ingestionJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ingestion_job( dataSourceId, ingestionJobId, @@ -990,16 +1478,13 @@ Gets information about a knoweldge base. information. """ -function get_knowledge_base( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock_agent( +get_knowledge_base(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( "GET", "/knowledgebases/$(knowledgeBaseId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_knowledge_base( knowledgeBaseId, params::AbstractDict{String}; @@ -1014,6 +1499,44 @@ function get_knowledge_base( ) end +""" + get_prompt(prompt_identifier) + get_prompt(prompt_identifier, params::Dict{String,<:Any}) + +Retrieves information about the working draft (DRAFT version) of a prompt or a version of +it, depending on whether you include the promptVersion field or not. For more information, +see View information about prompts using Prompt management and View information about a +version of your prompt in the Amazon Bedrock User Guide. + +# Arguments +- `prompt_identifier`: The unique identifier of the prompt. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"promptVersion"`: The version of the prompt about which you want to retrieve + information. Omit this field to return information about the working draft of the prompt. +""" +get_prompt(promptIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "GET", + "/prompts/$(promptIdentifier)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function get_prompt( + promptIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "GET", + "/prompts/$(promptIdentifier)/", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_agent_action_groups(agent_id, agent_version) list_agent_action_groups(agent_id, agent_version, params::Dict{String,<:Any}) @@ -1033,16 +1556,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results. """ -function list_agent_action_groups( +list_agent_action_groups( agentId, agentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "POST", + "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "POST", - "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_agent_action_groups( agentId, agentVersion, @@ -1076,14 +1597,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results. """ -function list_agent_aliases(agentId; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent( +list_agent_aliases(agentId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( "POST", "/agents/$(agentId)/agentaliases/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_agent_aliases( agentId, params::AbstractDict{String}; @@ -1119,16 +1639,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results. """ -function list_agent_knowledge_bases( +list_agent_knowledge_bases( agentId, agentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "POST", + "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "POST", - "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_agent_knowledge_bases( agentId, agentVersion, @@ -1151,7 +1669,112 @@ end Lists the versions of an agent and information about each version. # Arguments -- `agent_id`: The unique identifier of the agent. +- `agent_id`: The unique identifier of the agent. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. +""" +list_agent_versions(agentId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "POST", + "/agents/$(agentId)/agentversions/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_agent_versions( + agentId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "POST", + "/agents/$(agentId)/agentversions/", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_agents() + list_agents(params::Dict{String,<:Any}) + +Lists the agents belonging to an account and information about each agent. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. +""" +list_agents(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock_agent( + "POST", "/agents/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_agents( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return bedrock_agent( + "POST", "/agents/", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + ) +end + +""" + list_data_sources(knowledge_base_id) + list_data_sources(knowledge_base_id, params::Dict{String,<:Any}) + +Lists the data sources in a knowledge base and information about each one. + +# Arguments +- `knowledge_base_id`: The unique identifier of the knowledge base for which to return a + list of information. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. +""" +list_data_sources(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "POST", + "/knowledgebases/$(knowledgeBaseId)/datasources/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_data_sources( + knowledgeBaseId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "POST", + "/knowledgebases/$(knowledgeBaseId)/datasources/", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_flow_aliases(flow_identifier) + list_flow_aliases(flow_identifier, params::Dict{String,<:Any}) + +Returns a list of aliases for a flow. + +# Arguments +- `flow_identifier`: The unique identifier of the flow for which aliases are being returned. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1162,22 +1785,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results. """ -function list_agent_versions(agentId; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent( - "POST", - "/agents/$(agentId)/agentversions/"; +list_flow_aliases(flowIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "GET", + "/flows/$(flowIdentifier)/aliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end -function list_agent_versions( - agentId, +function list_flow_aliases( + flowIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( - "POST", - "/agents/$(agentId)/agentversions/", + "GET", + "/flows/$(flowIdentifier)/aliases", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1185,10 +1807,14 @@ function list_agent_versions( end """ - list_agents() - list_agents(params::Dict{String,<:Any}) + list_flow_versions(flow_identifier) + list_flow_versions(flow_identifier, params::Dict{String,<:Any}) -Lists the agents belonging to an account and information about each agent. +Returns a list of information about each flow. For more information, see Deploy a flow in +Amazon Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `flow_identifier`: The unique identifier of the flow. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1199,28 +1825,33 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results. """ -function list_agents(; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent( - "POST", "/agents/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +list_flow_versions(flowIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "GET", + "/flows/$(flowIdentifier)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) -end -function list_agents( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +function list_flow_versions( + flowIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( - "POST", "/agents/", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "GET", + "/flows/$(flowIdentifier)/versions", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) end """ - list_data_sources(knowledge_base_id) - list_data_sources(knowledge_base_id, params::Dict{String,<:Any}) + list_flows() + list_flows(params::Dict{String,<:Any}) -Lists the data sources in a knowledge base and information about each one. - -# Arguments -- `knowledge_base_id`: The unique identifier of the knowledge base for which to return a - list of information. +Returns a list of flows and information about each flow. For more information, see Manage a +flow in Amazon Bedrock in the Amazon Bedrock User Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1231,27 +1862,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results. """ -function list_data_sources( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock_agent( - "POST", - "/knowledgebases/$(knowledgeBaseId)/datasources/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function list_data_sources( - knowledgeBaseId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), +list_flows(; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent("GET", "/flows/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function list_flows( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return bedrock_agent( - "POST", - "/knowledgebases/$(knowledgeBaseId)/datasources/", - params; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, + "GET", "/flows/", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) end @@ -1278,16 +1895,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this field to return the next batch of results. - `"sortBy"`: Contains details about how to sort the results. """ -function list_ingestion_jobs( +list_ingestion_jobs( dataSourceId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "POST", + "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)/ingestionjobs/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "POST", - "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)/ingestionjobs/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_ingestion_jobs( dataSourceId, knowledgeBaseId, @@ -1318,11 +1933,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results. """ -function list_knowledge_bases(; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent( - "POST", "/knowledgebases/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_knowledge_bases(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock_agent( + "POST", "/knowledgebases/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_knowledge_bases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1335,6 +1948,37 @@ function list_knowledge_bases( ) end +""" + list_prompts() + list_prompts(params::Dict{String,<:Any}) + +Returns either information about the working draft (DRAFT version) of each prompt in an +account, or information about of all versions of a prompt, depending on whether you include +the promptIdentifier field or not. For more information, see View information about prompts +using Prompt management in the Amazon Bedrock User Guide. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nextToken"`: If the total number of results is greater than the maxResults value + provided in the request, enter the token returned in the nextToken field in the response in + this field to return the next batch of results. +- `"promptIdentifier"`: The unique identifier of the prompt for whose versions you want to + return information. Omit this field to list information about all prompts in an account. +""" +list_prompts(; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock_agent( + "GET", "/prompts/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_prompts( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return bedrock_agent( + "GET", "/prompts/", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + ) +end + """ list_tags_for_resource(resource_arn) list_tags_for_resource(resource_arn, params::Dict{String,<:Any}) @@ -1345,16 +1989,13 @@ List all the tags for the resource you specify. - `resource_arn`: The Amazon Resource Name (ARN) of the resource for which to list tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock_agent( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1379,22 +2020,52 @@ Creates a DRAFT version of the agent that can be used for internal testing. - `agent_id`: The unique identifier of the agent for which to create a DRAFT version. """ -function prepare_agent(agentId; aws_config::AbstractAWSConfig=current_aws_config()) +prepare_agent(agentId; aws_config::AbstractAWSConfig=current_aws_config()) = bedrock_agent( + "POST", + "/agents/$(agentId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function prepare_agent( + agentId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) return bedrock_agent( "POST", - "/agents/$(agentId)/"; + "/agents/$(agentId)/", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function prepare_agent( - agentId, + +""" + prepare_flow(flow_identifier) + prepare_flow(flow_identifier, params::Dict{String,<:Any}) + +Prepares the DRAFT version of a flow so that it can be invoked. For more information, see +Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide. + +# Arguments +- `flow_identifier`: The unique identifier of the flow. + +""" +prepare_flow(flowIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "POST", + "/flows/$(flowIdentifier)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function prepare_flow( + flowIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( "POST", - "/agents/$(agentId)/", + "/flows/$(flowIdentifier)/", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1420,17 +2091,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency. - `"description"`: A description of the ingestion job. """ -function start_ingestion_job( +start_ingestion_job( dataSourceId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent( + "PUT", + "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)/ingestionjobs/", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)/ingestionjobs/", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_ingestion_job( dataSourceId, knowledgeBaseId, @@ -1461,15 +2130,14 @@ Bedrock User Guide. resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1496,17 +2164,14 @@ Remove tags from a resource. - `tag_keys`: A list of keys of the tags to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock_agent( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1549,28 +2214,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys expires and Amazon Bedrock deletes any data provided before the timeout. - `"instruction"`: Specifies new instructions that tell the agent what it should do and how it should interact with users. +- `"memoryConfiguration"`: Specifies the new memory configuration for the agent. - `"promptOverrideConfiguration"`: Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts. """ -function update_agent( +update_agent( agentId, agentName, agentResourceRoleArn, foundationModel; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/agents/$(agentId)/", + Dict{String,Any}( + "agentName" => agentName, + "agentResourceRoleArn" => agentResourceRoleArn, + "foundationModel" => foundationModel, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/agents/$(agentId)/", - Dict{String,Any}( - "agentName" => agentName, - "agentResourceRoleArn" => agentResourceRoleArn, - "foundationModel" => foundationModel, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_agent( agentId, agentName, @@ -1631,21 +2295,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys invoke this action group instead and return an Observation reprompting the user for more information. """ -function update_agent_action_group( +update_agent_action_group( actionGroupId, actionGroupName, agentId, agentVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/$(actionGroupId)/", + Dict{String,Any}("actionGroupName" => actionGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/agents/$(agentId)/agentversions/$(agentVersion)/actiongroups/$(actionGroupId)/", - Dict{String,Any}("actionGroupName" => actionGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_agent_action_group( actionGroupId, actionGroupName, @@ -1683,20 +2345,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Specifies a new description for the alias. - `"routingConfiguration"`: Contains details about the routing configuration of the alias. """ -function update_agent_alias( +update_agent_alias( agentAliasId, agentAliasName, agentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/agents/$(agentId)/agentaliases/$(agentAliasId)/", + Dict{String,Any}("agentAliasName" => agentAliasName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/agents/$(agentId)/agentaliases/$(agentAliasId)/", - Dict{String,Any}("agentAliasName" => agentAliasName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_agent_alias( agentAliasId, agentAliasName, @@ -1736,19 +2396,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"knowledgeBaseState"`: Specifies whether the agent uses the knowledge base or not when sending an InvokeAgent request. """ -function update_agent_knowledge_base( +update_agent_knowledge_base( agentId, agentVersion, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/$(knowledgeBaseId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/agents/$(agentId)/agentversions/$(agentVersion)/knowledgebases/$(knowledgeBaseId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_agent_knowledge_base( agentId, agentVersion, @@ -1769,59 +2427,169 @@ end update_data_source(data_source_configuration, data_source_id, knowledge_base_id, name) update_data_source(data_source_configuration, data_source_id, knowledge_base_id, name, params::Dict{String,<:Any}) -Updates configurations for a data source. You can't change the chunkingConfiguration after -you create the data source. Specify the existing chunkingConfiguration. +Updates the configurations for a data source connector. You can't change the +chunkingConfiguration after you create the data source connector. Specify the existing +chunkingConfiguration. # Arguments -- `data_source_configuration`: Contains details about the storage configuration of the data - source. +- `data_source_configuration`: The connection configuration for the data source that you + want to update. - `data_source_id`: The unique identifier of the data source. -- `knowledge_base_id`: The unique identifier of the knowledge base to which the data source - belongs. +- `knowledge_base_id`: The unique identifier of the knowledge base for the data source. - `name`: Specifies a new name for the data source. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"dataDeletionPolicy"`: The data deletion policy of the updated data source. +- `"dataDeletionPolicy"`: The data deletion policy for the data source that you want to + update. - `"description"`: Specifies a new description for the data source. - `"serverSideEncryptionConfiguration"`: Contains details about server-side encryption of the data source. - `"vectorIngestionConfiguration"`: Contains details about how to ingest the documents in the data source. """ -function update_data_source( +update_data_source( dataSourceConfiguration, dataSourceId, knowledgeBaseId, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)", + Dict{String,Any}("dataSourceConfiguration" => dataSourceConfiguration, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_data_source( + dataSourceConfiguration, + dataSourceId, + knowledgeBaseId, + name, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( "PUT", "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)", Dict{String,Any}( - "dataSourceConfiguration" => dataSourceConfiguration, "name" => name + mergewith( + _merge, + Dict{String,Any}( + "dataSourceConfiguration" => dataSourceConfiguration, "name" => name + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function update_data_source( - dataSourceConfiguration, - dataSourceId, - knowledgeBaseId, + +""" + update_flow(execution_role_arn, flow_identifier, name) + update_flow(execution_role_arn, flow_identifier, name, params::Dict{String,<:Any}) + +Modifies a flow. Include both fields that you want to keep and fields that you want to +change. For more information, see How it works and Create a flow in Amazon Bedrock in the +Amazon Bedrock User Guide. + +# Arguments +- `execution_role_arn`: The Amazon Resource Name (ARN) of the service role with permissions + to create and manage a flow. For more information, see Create a service role for flows in + Amazon Bedrock in the Amazon Bedrock User Guide. +- `flow_identifier`: The unique identifier of the flow. +- `name`: A name for the flow. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"customerEncryptionKeyArn"`: The Amazon Resource Name (ARN) of the KMS key to encrypt + the flow. +- `"definition"`: A definition of the nodes and the connections between the nodes in the + flow. +- `"description"`: A description for the flow. +""" +update_flow( + executionRoleArn, + flowIdentifier, + name; + aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/flows/$(flowIdentifier)/", + Dict{String,Any}("executionRoleArn" => executionRoleArn, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_flow( + executionRoleArn, + flowIdentifier, name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return bedrock_agent( "PUT", - "/knowledgebases/$(knowledgeBaseId)/datasources/$(dataSourceId)", + "/flows/$(flowIdentifier)/", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("executionRoleArn" => executionRoleArn, "name" => name), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_flow_alias(alias_identifier, flow_identifier, name, routing_configuration) + update_flow_alias(alias_identifier, flow_identifier, name, routing_configuration, params::Dict{String,<:Any}) + +Modifies the alias of a flow. Include both fields that you want to keep and ones that you +want to change. For more information, see Deploy a flow in Amazon Bedrock in the Amazon +Bedrock User Guide. + +# Arguments +- `alias_identifier`: The unique identifier of the alias. +- `flow_identifier`: The unique identifier of the flow. +- `name`: The name of the alias. +- `routing_configuration`: Contains information about the version to which to map the alias. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"description"`: A description for the alias. +""" +update_flow_alias( + aliasIdentifier, + flowIdentifier, + name, + routingConfiguration; + aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/flows/$(flowIdentifier)/aliases/$(aliasIdentifier)", + Dict{String,Any}("name" => name, "routingConfiguration" => routingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_flow_alias( + aliasIdentifier, + flowIdentifier, + name, + routingConfiguration, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "PUT", + "/flows/$(flowIdentifier)/aliases/$(aliasIdentifier)", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "dataSourceConfiguration" => dataSourceConfiguration, "name" => name + "name" => name, "routingConfiguration" => routingConfiguration ), params, ), @@ -1857,27 +2625,25 @@ GetKnowledgeBase request and copy the same configurations. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: Specifies a new description for the knowledge base. """ -function update_knowledge_base( +update_knowledge_base( knowledgeBaseConfiguration, knowledgeBaseId, name, roleArn, storageConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent( + "PUT", + "/knowledgebases/$(knowledgeBaseId)", + Dict{String,Any}( + "knowledgeBaseConfiguration" => knowledgeBaseConfiguration, + "name" => name, + "roleArn" => roleArn, + "storageConfiguration" => storageConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent( - "PUT", - "/knowledgebases/$(knowledgeBaseId)", - Dict{String,Any}( - "knowledgeBaseConfiguration" => knowledgeBaseConfiguration, - "name" => name, - "roleArn" => roleArn, - "storageConfiguration" => storageConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_knowledge_base( knowledgeBaseConfiguration, knowledgeBaseId, @@ -1906,3 +2672,47 @@ function update_knowledge_base( feature_set=SERVICE_FEATURE_SET, ) end + +""" + update_prompt(name, prompt_identifier) + update_prompt(name, prompt_identifier, params::Dict{String,<:Any}) + +Modifies a prompt in your prompt library. Include both fields that you want to keep and +fields that you want to replace. For more information, see Prompt management in Amazon +Bedrock and Edit prompts in your prompt library in the Amazon Bedrock User Guide. + +# Arguments +- `name`: A name for the prompt. +- `prompt_identifier`: The unique identifier of the prompt. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"customerEncryptionKeyArn"`: The Amazon Resource Name (ARN) of the KMS key to encrypt + the prompt. +- `"defaultVariant"`: The name of the default variant for the prompt. This value must match + the name field in the relevant PromptVariant object. +- `"description"`: A description for the prompt. +- `"variants"`: A list of objects, each containing details about a variant of the prompt. +""" +update_prompt(name, promptIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent( + "PUT", + "/prompts/$(promptIdentifier)/", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function update_prompt( + name, + promptIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent( + "PUT", + "/prompts/$(promptIdentifier)/", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("name" => name), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end diff --git a/src/services/bedrock_agent_runtime.jl b/src/services/bedrock_agent_runtime.jl index 494dba6e2..d500ca2ff 100644 --- a/src/services/bedrock_agent_runtime.jl +++ b/src/services/bedrock_agent_runtime.jl @@ -4,24 +4,119 @@ using AWS.AWSServices: bedrock_agent_runtime using AWS.Compat using AWS.UUIDs +""" + delete_agent_memory(agent_alias_id, agent_id) + delete_agent_memory(agent_alias_id, agent_id, params::Dict{String,<:Any}) + +Deletes memory from the specified memory identifier. + +# Arguments +- `agent_alias_id`: The unique identifier of an alias of an agent. +- `agent_id`: The unique identifier of the agent to which the alias belongs. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"memoryId"`: The unique identifier of the memory. +""" +delete_agent_memory( + agentAliasId, agentId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent_runtime( + "DELETE", + "/agents/$(agentId)/agentAliases/$(agentAliasId)/memories"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_agent_memory( + agentAliasId, + agentId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent_runtime( + "DELETE", + "/agents/$(agentId)/agentAliases/$(agentAliasId)/memories", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_agent_memory(agent_alias_id, agent_id, memory_id, memory_type) + get_agent_memory(agent_alias_id, agent_id, memory_id, memory_type, params::Dict{String,<:Any}) + +Gets the sessions stored in the memory of the agent. + +# Arguments +- `agent_alias_id`: The unique identifier of an alias of an agent. +- `agent_id`: The unique identifier of the agent to which the alias belongs. +- `memory_id`: The unique identifier of the memory. +- `memory_type`: The type of memory. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxItems"`: The maximum number of items to return in the response. If the total number + of results is greater than this value, use the token returned in the response in the + nextToken field when making another request to return the next batch of results. +- `"nextToken"`: If the total number of results is greater than the maxItems value provided + in the request, enter the token returned in the nextToken field in the response in this + field to return the next batch of results. +""" +get_agent_memory( + agentAliasId, + agentId, + memoryId, + memoryType; + aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent_runtime( + "GET", + "/agents/$(agentId)/agentAliases/$(agentAliasId)/memories", + Dict{String,Any}("memoryId" => memoryId, "memoryType" => memoryType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_agent_memory( + agentAliasId, + agentId, + memoryId, + memoryType, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent_runtime( + "GET", + "/agents/$(agentId)/agentAliases/$(agentAliasId)/memories", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("memoryId" => memoryId, "memoryType" => memoryType), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ invoke_agent(agent_alias_id, agent_id, session_id) invoke_agent(agent_alias_id, agent_id, session_id, params::Dict{String,<:Any}) - The CLI doesn't support InvokeAgent. Sends a prompt for the agent to process and respond -to. Note the following fields for the request: To continue the same conversation with an -agent, use the same sessionId value in the request. To activate trace enablement, turn -enableTrace to true. Trace enablement helps you follow the agent's reasoning process that -led it to the information it processed, the actions it took, and the final result it -yielded. For more information, see Trace enablement. End a conversation by setting -endSession to true. In the sessionState object, you can include attributes for the -session or prompt or, if you configured an action group to return control, results from -invocation of the action group. The response is returned in the bytes field of the chunk -object. The attribution object contains citations for parts of the response. If you set -enableTrace to true in the request, you can trace the agent's steps and reasoning process -that led it to the response. If the action predicted was configured to return control, -the response returns parameters for the action, elicited from the user, in the -returnControl field. Errors are also surfaced in the response. + The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeAgent. +Sends a prompt for the agent to process and respond to. Note the following fields for the +request: To continue the same conversation with an agent, use the same sessionId value in +the request. To activate trace enablement, turn enableTrace to true. Trace enablement +helps you follow the agent's reasoning process that led it to the information it processed, +the actions it took, and the final result it yielded. For more information, see Trace +enablement. End a conversation by setting endSession to true. In the sessionState +object, you can include attributes for the session or prompt or, if you configured an +action group to return control, results from invocation of the action group. The response +is returned in the bytes field of the chunk object. The attribution object contains +citations for parts of the response. If you set enableTrace to true in the request, you +can trace the agent's steps and reasoning process that led it to the response. If the +action predicted was configured to return control, the response returns parameters for the +action, elicited from the user, in the returnControl field. Errors are also surfaced in +the response. # Arguments - `agent_alias_id`: The alias of the agent to use. @@ -37,21 +132,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"inputText"`: The prompt text to send the agent. If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored. +- `"memoryId"`: The unique identifier of the agent memory. - `"sessionState"`: Contains parameters that specify various attributes of the session. For more information, see Control session context. If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored. """ -function invoke_agent( +invoke_agent( agentAliasId, agentId, sessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent_runtime( + "POST", + "/agents/$(agentId)/agentAliases/$(agentAliasId)/sessions/$(sessionId)/text"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent_runtime( - "POST", - "/agents/$(agentId)/agentAliases/$(agentAliasId)/sessions/$(sessionId)/text"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function invoke_agent( agentAliasId, agentId, @@ -68,6 +162,49 @@ function invoke_agent( ) end +""" + invoke_flow(flow_alias_identifier, flow_identifier, inputs) + invoke_flow(flow_alias_identifier, flow_identifier, inputs, params::Dict{String,<:Any}) + +Invokes an alias of a flow to run the inputs that you specify and return the output of each +node as a stream. If there's an error, the error is returned. For more information, see +Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide. The CLI doesn't support +streaming operations in Amazon Bedrock, including InvokeFlow. + +# Arguments +- `flow_alias_identifier`: The unique identifier of the flow alias. +- `flow_identifier`: The unique identifier of the flow. +- `inputs`: A list of objects, each containing information about an input into the flow. + +""" +invoke_flow( + flowAliasIdentifier, + flowIdentifier, + inputs; + aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_agent_runtime( + "POST", + "/flows/$(flowIdentifier)/aliases/$(flowAliasIdentifier)", + Dict{String,Any}("inputs" => inputs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function invoke_flow( + flowAliasIdentifier, + flowIdentifier, + inputs, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_agent_runtime( + "POST", + "/flows/$(flowIdentifier)/aliases/$(flowAliasIdentifier)", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("inputs" => inputs), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ retrieve(knowledge_base_id, retrieval_query) retrieve(knowledge_base_id, retrieval_query, params::Dict{String,<:Any}) @@ -86,17 +223,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retrievalConfiguration"`: Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations. """ -function retrieve( +retrieve( knowledgeBaseId, retrievalQuery; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_agent_runtime( + "POST", + "/knowledgebases/$(knowledgeBaseId)/retrieve", + Dict{String,Any}("retrievalQuery" => retrievalQuery); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_agent_runtime( - "POST", - "/knowledgebases/$(knowledgeBaseId)/retrieve", - Dict{String,Any}("retrievalQuery" => retrievalQuery); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function retrieve( knowledgeBaseId, retrievalQuery, @@ -129,18 +264,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retrieveAndGenerateConfiguration"`: Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations. - `"sessionConfiguration"`: Contains details about the session with the knowledge base. -- `"sessionId"`: The unique identifier of the session. Reuse the same value to continue the - same session with the knowledge base. +- `"sessionId"`: The unique identifier of the session. When you first make a + RetrieveAndGenerate request, Amazon Bedrock automatically generates this value. You must + reuse this value for all subsequent requests in the same conversational session. This value + allows Amazon Bedrock to maintain context and knowledge from previous interactions. You + can't explicitly set the sessionId yourself. """ -function retrieve_and_generate(input; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_agent_runtime( +retrieve_and_generate(input; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_agent_runtime( "POST", "/retrieveAndGenerate", Dict{String,Any}("input" => input); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function retrieve_and_generate( input, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/bedrock_runtime.jl b/src/services/bedrock_runtime.jl index e503d194b..a34f4efc4 100644 --- a/src/services/bedrock_runtime.jl +++ b/src/services/bedrock_runtime.jl @@ -4,31 +4,83 @@ using AWS.AWSServices: bedrock_runtime using AWS.Compat using AWS.UUIDs +""" + apply_guardrail(content, guardrail_identifier, guardrail_version, source) + apply_guardrail(content, guardrail_identifier, guardrail_version, source, params::Dict{String,<:Any}) + +The action to apply a guardrail. + +# Arguments +- `content`: The content details used in the request to apply the guardrail. +- `guardrail_identifier`: The guardrail identifier used in the request to apply the + guardrail. +- `guardrail_version`: The guardrail version used in the request to apply the guardrail. +- `source`: The source of data used in the request to apply the guardrail. + +""" +apply_guardrail( + content, + guardrailIdentifier, + guardrailVersion, + source; + aws_config::AbstractAWSConfig=current_aws_config(), +) = bedrock_runtime( + "POST", + "/guardrail/$(guardrailIdentifier)/version/$(guardrailVersion)/apply", + Dict{String,Any}("content" => content, "source" => source); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function apply_guardrail( + content, + guardrailIdentifier, + guardrailVersion, + source, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return bedrock_runtime( + "POST", + "/guardrail/$(guardrailIdentifier)/version/$(guardrailVersion)/apply", + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("content" => content, "source" => source), params + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ converse(messages, model_id) converse(messages, model_id, params::Dict{String,<:Any}) Sends messages to the specified Amazon Bedrock model. Converse provides a consistent interface that works with all models that support messages. This allows you to write code -once and use it with different models. Should a model have unique inference parameters, you -can also pass those unique parameters to the model. For information about the Converse API, -see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a -guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a -model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, -see Converse API examples in the Amazon Bedrock User Guide. This operation requires -permission for the bedrock:InvokeModel action. +once and use it with different models. If a model has unique inference parameters, you can +also pass those unique parameters to the model. Amazon Bedrock doesn't store any text, +images, or documents that you provide as content. The data is only used to generate the +response. For information about the Converse API, see Use the Converse API in the Amazon +Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the +Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in +the Amazon Bedrock User Guide For example code, see Converse API examples in the Amazon +Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action. # Arguments - `messages`: The messages that you want to send to the model. - `model_id`: The identifier for the model that you want to call. The modelId to provide - depends on the type of model that you use: If you use a base model, specify the model ID - or its ARN. For a list of model IDs for base models, see Amazon Bedrock base model IDs - (on-demand throughput) in the Amazon Bedrock User Guide. If you use a provisioned model, - specify the ARN of the Provisioned Throughput. For more information, see Run inference - using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom - model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting - provisioned model. For more information, see Use a custom model in Amazon Bedrock in the - Amazon Bedrock User Guide. + depends on the type of model or throughput that you use: If you use a base model, specify + the model ID or its ARN. For a list of model IDs for base models, see Amazon Bedrock base + model IDs (on-demand throughput) in the Amazon Bedrock User Guide. If you use an + inference profile, specify the inference profile ID or its ARN. For a list of inference + profile IDs, see Supported Regions and models for cross-region inference in the Amazon + Bedrock User Guide. If you use a provisioned model, specify the ARN of the Provisioned + Throughput. For more information, see Run inference using a Provisioned Throughput in the + Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned + Throughput for it. Then specify the ARN of the resulting provisioned model. For more + information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User Guide. + The Converse API doesn't support imported models. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -53,15 +105,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys generating a response. This field is only supported by Anthropic Claude 3, Cohere Command R, Cohere Command R+, and Mistral Large models. """ -function converse(messages, modelId; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_runtime( +converse(messages, modelId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_runtime( "POST", "/model/$(modelId)/converse", Dict{String,Any}("messages" => messages); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function converse( messages, modelId, @@ -88,24 +139,29 @@ ConverseStream provides a consistent API that works with all Amazon Bedrock mode support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. To find out if a model supports streaming, call GetFoundationModel and check -the responseStreamingSupported field in the response. For information about the Converse -API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use -a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a -model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, -see Conversation streaming example in the Amazon Bedrock User Guide. This operation -requires permission for the bedrock:InvokeModelWithResponseStream action. +the responseStreamingSupported field in the response. The CLI doesn't support streaming +operations in Amazon Bedrock, including ConverseStream. Amazon Bedrock doesn't store any +text, images, or documents that you provide as content. The data is only used to generate +the response. For information about the Converse API, see Use the Converse API in the +Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in +the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) +in the Amazon Bedrock User Guide For example code, see Conversation streaming example in +the Amazon Bedrock User Guide. This operation requires permission for the +bedrock:InvokeModelWithResponseStream action. # Arguments - `messages`: The messages that you want to send to the model. -- `model_id`: The ID for the model. The modelId to provide depends on the type of model - that you use: If you use a base model, specify the model ID or its ARN. For a list of - model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) in the - Amazon Bedrock User Guide. If you use a provisioned model, specify the ARN of the - Provisioned Throughput. For more information, see Run inference using a Provisioned - Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase - Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For - more information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User - Guide. +- `model_id`: The ID for the model. The modelId to provide depends on the type of model or + throughput that you use: If you use a base model, specify the model ID or its ARN. For a + list of model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) + in the Amazon Bedrock User Guide. If you use an inference profile, specify the inference + profile ID or its ARN. For a list of inference profile IDs, see Supported Regions and + models for cross-region inference in the Amazon Bedrock User Guide. If you use a + provisioned model, specify the ARN of the Provisioned Throughput. For more information, see + Run inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use + a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the + resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock + in the Amazon Bedrock User Guide. The Converse API doesn't support imported models. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -129,17 +185,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"toolConfig"`: Configuration information for the tools that the model can use when generating a response. This field is only supported by Anthropic Claude 3 models. """ -function converse_stream( - messages, modelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return bedrock_runtime( +converse_stream(messages, modelId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_runtime( "POST", "/model/$(modelId)/converse-stream", Dict{String,Any}("messages" => messages); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function converse_stream( messages, modelId, @@ -179,7 +232,9 @@ Guide. This operation requires permission for the bedrock:InvokeModel action. inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock - in the Amazon Bedrock User Guide. + in the Amazon Bedrock User Guide. If you use an imported model, specify the ARN of the + imported model. You can get the model ARN from a successful call to CreateModelImportJob or + from the Imported models page in the Amazon Bedrock console. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -198,15 +253,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Bedrock-Trace"`: Specifies whether to enable or disable the Bedrock trace. If enabled, you can see the full Bedrock trace. """ -function invoke_model(body, modelId; aws_config::AbstractAWSConfig=current_aws_config()) - return bedrock_runtime( +invoke_model(body, modelId; aws_config::AbstractAWSConfig=current_aws_config()) = + bedrock_runtime( "POST", "/model/$(modelId)/invoke", Dict{String,Any}("body" => body); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invoke_model( body, modelId, @@ -229,9 +283,10 @@ end Invoke the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. The response is returned in a stream. To see if a model supports streaming, call GetFoundationModel and check the responseStreamingSupported -field in the response. The CLI doesn't support InvokeModelWithResponseStream. For example -code, see Invoke model with streaming code example in the Amazon Bedrock User Guide. This -operation requires permissions to perform the bedrock:InvokeModelWithResponseStream action. +field in the response. The CLI doesn't support streaming operations in Amazon Bedrock, +including InvokeModelWithResponseStream. For example code, see Invoke model with streaming +code example in the Amazon Bedrock User Guide. This operation requires permissions to +perform the bedrock:InvokeModelWithResponseStream action. # Arguments - `body`: The prompt and inference parameters in the format specified in the contentType in @@ -246,7 +301,9 @@ operation requires permissions to perform the bedrock:InvokeModelWithResponseStr inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock - in the Amazon Bedrock User Guide. + in the Amazon Bedrock User Guide. If you use an imported model, specify the ARN of the + imported model. You can get the model ARN from a successful call to CreateModelImportJob or + from the Imported models page in the Amazon Bedrock console. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -265,17 +322,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Bedrock-Trace"`: Specifies whether to enable or disable the Bedrock trace. If enabled, you can see the full Bedrock trace. """ -function invoke_model_with_response_stream( +invoke_model_with_response_stream( body, modelId; aws_config::AbstractAWSConfig=current_aws_config() +) = bedrock_runtime( + "POST", + "/model/$(modelId)/invoke-with-response-stream", + Dict{String,Any}("body" => body); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return bedrock_runtime( - "POST", - "/model/$(modelId)/invoke-with-response-stream", - Dict{String,Any}("body" => body); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function invoke_model_with_response_stream( body, modelId, diff --git a/src/services/billingconductor.jl b/src/services/billingconductor.jl index a2db7fe65..0ff470391 100644 --- a/src/services/billingconductor.jl +++ b/src/services/billingconductor.jl @@ -19,17 +19,14 @@ accounts that can be associated in one call is 30. account IDs. """ -function associate_accounts( - AccountIds, Arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return billingconductor( +associate_accounts(AccountIds, Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/associate-accounts", Dict{String,Any}("AccountIds" => AccountIds, "Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_accounts( AccountIds, Arn, @@ -61,17 +58,15 @@ PricingRuleArn that can be associated in one call is 30. - `pricing_rule_arns`: The PricingRuleArns that are associated with the Pricing Plan. """ -function associate_pricing_rules( +associate_pricing_rules( Arn, PricingRuleArns; aws_config::AbstractAWSConfig=current_aws_config() +) = billingconductor( + "PUT", + "/associate-pricing-rules", + Dict{String,Any}("Arn" => Arn, "PricingRuleArns" => PricingRuleArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "PUT", - "/associate-pricing-rules", - Dict{String,Any}("Arn" => Arn, "PricingRuleArns" => PricingRuleArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_pricing_rules( Arn, PricingRuleArns, @@ -107,17 +102,15 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"BillingPeriodRange"`: """ -function batch_associate_resources_to_custom_line_item( +batch_associate_resources_to_custom_line_item( ResourceArns, TargetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = billingconductor( + "PUT", + "/batch-associate-resources-to-custom-line-item", + Dict{String,Any}("ResourceArns" => ResourceArns, "TargetArn" => TargetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "PUT", - "/batch-associate-resources-to-custom-line-item", - Dict{String,Any}("ResourceArns" => ResourceArns, "TargetArn" => TargetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_resources_to_custom_line_item( ResourceArns, TargetArn, @@ -153,17 +146,15 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"BillingPeriodRange"`: """ -function batch_disassociate_resources_from_custom_line_item( +batch_disassociate_resources_from_custom_line_item( ResourceArns, TargetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = billingconductor( + "PUT", + "/batch-disassociate-resources-from-custom-line-item", + Dict{String,Any}("ResourceArns" => ResourceArns, "TargetArn" => TargetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "PUT", - "/batch-disassociate-resources-from-custom-line-item", - Dict{String,Any}("ResourceArns" => ResourceArns, "TargetArn" => TargetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_resources_from_custom_line_item( ResourceArns, TargetArn, @@ -208,25 +199,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update. """ -function create_billing_group( +create_billing_group( AccountGrouping, ComputationPreference, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = billingconductor( + "POST", + "/create-billing-group", + Dict{String,Any}( + "AccountGrouping" => AccountGrouping, + "ComputationPreference" => ComputationPreference, + "Name" => Name, + "X-Amzn-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "POST", - "/create-billing-group", - Dict{String,Any}( - "AccountGrouping" => AccountGrouping, - "ComputationPreference" => ComputationPreference, - "Name" => Name, - "X-Amzn-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_billing_group( AccountGrouping, ComputationPreference, @@ -281,27 +270,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update. """ -function create_custom_line_item( +create_custom_line_item( BillingGroupArn, ChargeDetails, Description, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = billingconductor( + "POST", + "/create-custom-line-item", + Dict{String,Any}( + "BillingGroupArn" => BillingGroupArn, + "ChargeDetails" => ChargeDetails, + "Description" => Description, + "Name" => Name, + "X-Amzn-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "POST", - "/create-custom-line-item", - Dict{String,Any}( - "BillingGroupArn" => BillingGroupArn, - "ChargeDetails" => ChargeDetails, - "Description" => Description, - "Name" => Name, - "X-Amzn-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_line_item( BillingGroupArn, ChargeDetails, @@ -351,15 +338,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update. """ -function create_pricing_plan(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +create_pricing_plan(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/create-pricing-plan", Dict{String,Any}("Name" => Name, "X-Amzn-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_pricing_plan( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -414,10 +400,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update. """ -function create_pricing_rule( - Name, Scope, Type; aws_config::AbstractAWSConfig=current_aws_config() -) - return billingconductor( +create_pricing_rule(Name, Scope, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/create-pricing-rule", Dict{String,Any}( @@ -429,7 +413,6 @@ function create_pricing_rule( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_pricing_rule( Name, Scope, @@ -467,15 +450,14 @@ end - `arn`: The Amazon Resource Name (ARN) of the billing group that you're deleting. """ -function delete_billing_group(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +delete_billing_group(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/delete-billing-group", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_billing_group( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -502,15 +484,14 @@ billing period. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"BillingPeriodRange"`: """ -function delete_custom_line_item(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +delete_custom_line_item(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/delete-custom-line-item", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_custom_line_item( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -534,15 +515,14 @@ delete successfully. - `arn`: The Amazon Resource Name (ARN) of the pricing plan that you're deleting. """ -function delete_pricing_plan(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +delete_pricing_plan(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/delete-pricing-plan", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_pricing_plan( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -565,15 +545,14 @@ end - `arn`: The Amazon Resource Name (ARN) of the pricing rule that you are deleting. """ -function delete_pricing_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +delete_pricing_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/delete-pricing-rule", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_pricing_rule( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -598,17 +577,14 @@ Removes the specified list of account IDs from the given billing group. will disassociate from. """ -function disassociate_accounts( - AccountIds, Arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return billingconductor( +disassociate_accounts(AccountIds, Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/disassociate-accounts", Dict{String,Any}("AccountIds" => AccountIds, "Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_accounts( AccountIds, Arn, @@ -640,17 +616,15 @@ end rules that will be disassociated. """ -function disassociate_pricing_rules( +disassociate_pricing_rules( Arn, PricingRuleArns; aws_config::AbstractAWSConfig=current_aws_config() +) = billingconductor( + "PUT", + "/disassociate-pricing-rules", + Dict{String,Any}("Arn" => Arn, "PricingRuleArns" => PricingRuleArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "PUT", - "/disassociate-pricing-rules", - Dict{String,Any}("Arn" => Arn, "PricingRuleArns" => PricingRuleArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_pricing_rules( Arn, PricingRuleArns, @@ -692,17 +666,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of margin summary reports to retrieve. - `"NextToken"`: The pagination token used on subsequent calls to get reports. """ -function get_billing_group_cost_report( - Arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return billingconductor( +get_billing_group_cost_report(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/get-billing-group-cost-report", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_billing_group_cost_report( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -734,14 +705,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that's used on subsequent calls to retrieve accounts. """ -function list_account_associations(; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +list_account_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/list-account-associations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_account_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -770,16 +740,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of reports to retrieve. - `"NextToken"`: The pagination token that's used on subsequent calls to get reports. """ -function list_billing_group_cost_reports(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return billingconductor( +list_billing_group_cost_reports(; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/list-billing-group-cost-reports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_billing_group_cost_reports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -808,14 +775,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that's used on subsequent calls to get billing groups. """ -function list_billing_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +list_billing_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/list-billing-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_billing_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -845,17 +811,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that's used on subsequent calls to retrieve custom line item versions. """ -function list_custom_line_item_versions( - Arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return billingconductor( +list_custom_line_item_versions(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/list-custom-line-item-versions", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_custom_line_item_versions( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -884,14 +847,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that's used on subsequent calls to get custom line items (FFLIs). """ -function list_custom_line_items(; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +list_custom_line_items(; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/list-custom-line-items"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_custom_line_items( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -919,14 +881,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of pricing plans to retrieve. - `"NextToken"`: The pagination token that's used on subsequent call to get pricing plans. """ -function list_pricing_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( - "POST", - "/list-pricing-plans"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_pricing_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = billingconductor( + "POST", + "/list-pricing-plans"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_pricing_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -956,17 +916,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The optional maximum number of pricing rule associations to retrieve. - `"NextToken"`: The optional pagination token returned by a previous call. """ -function list_pricing_plans_associated_with_pricing_rule( +list_pricing_plans_associated_with_pricing_rule( PricingRuleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = billingconductor( + "POST", + "/list-pricing-plans-associated-with-pricing-rule", + Dict{String,Any}("PricingRuleArn" => PricingRuleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "POST", - "/list-pricing-plans-associated-with-pricing-rule", - Dict{String,Any}("PricingRuleArn" => PricingRuleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_pricing_plans_associated_with_pricing_rule( PricingRuleArn, params::AbstractDict{String}; @@ -998,14 +956,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of pricing rules to retrieve. - `"NextToken"`: The pagination token that's used on subsequent call to get pricing rules. """ -function list_pricing_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( - "POST", - "/list-pricing-rules"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_pricing_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = billingconductor( + "POST", + "/list-pricing-rules"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_pricing_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1035,17 +991,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The optional maximum number of pricing rule associations to retrieve. - `"NextToken"`: The optional pagination token returned by a previous call. """ -function list_pricing_rules_associated_to_pricing_plan( +list_pricing_rules_associated_to_pricing_plan( PricingPlanArn; aws_config::AbstractAWSConfig=current_aws_config() +) = billingconductor( + "POST", + "/list-pricing-rules-associated-to-pricing-plan", + Dict{String,Any}("PricingPlanArn" => PricingPlanArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "POST", - "/list-pricing-rules-associated-to-pricing-plan", - Dict{String,Any}("PricingPlanArn" => PricingPlanArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_pricing_rules_associated_to_pricing_plan( PricingPlanArn, params::AbstractDict{String}; @@ -1081,17 +1035,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: (Optional) The maximum number of resource associations to be retrieved. - `"NextToken"`: (Optional) The pagination token that's returned by a previous request. """ -function list_resources_associated_to_custom_line_item( +list_resources_associated_to_custom_line_item( Arn; aws_config::AbstractAWSConfig=current_aws_config() +) = billingconductor( + "POST", + "/list-resources-associated-to-custom-line-item", + Dict{String,Any}("Arn" => Arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return billingconductor( - "POST", - "/list-resources-associated-to-custom-line-item", - Dict{String,Any}("Arn" => Arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resources_associated_to_custom_line_item( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1115,16 +1067,13 @@ end tags. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return billingconductor( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1151,15 +1100,14 @@ tags on a resource are not specified in the request parameters, they are not cha - `tags`: The tags to add to the resource as a list of key-value pairs. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1186,17 +1134,14 @@ end - `tag_keys`: The tags to delete from the resource as a list of key-value pairs. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return billingconductor( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1231,15 +1176,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name of the billing group. The names must be unique to each billing group. - `"Status"`: The status of the billing group. Only one of the valid values can be used. """ -function update_billing_group(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +update_billing_group(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/update-billing-group", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_billing_group( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1269,15 +1213,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The new line item description of the custom line item. - `"Name"`: The new name for the custom line item. """ -function update_custom_line_item(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +update_custom_line_item(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "POST", "/update-custom-line-item", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_custom_line_item( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1304,15 +1247,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the pricing plan. - `"Name"`: The name of the pricing plan. The name must be unique to each pricing plan. """ -function update_pricing_plan(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +update_pricing_plan(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "PUT", "/update-pricing-plan", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_pricing_plan( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1343,15 +1285,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tiering"`: The set of tiering configurations for the pricing rule. - `"Type"`: The new pricing rule type. """ -function update_pricing_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return billingconductor( +update_pricing_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + billingconductor( "PUT", "/update-pricing-rule", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_pricing_rule( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/braket.jl b/src/services/braket.jl index 757a55add..eb22d1866 100644 --- a/src/services/braket.jl +++ b/src/services/braket.jl @@ -14,14 +14,12 @@ Cancels an Amazon Braket job. - `job_arn`: The ARN of the Amazon Braket job to cancel. """ -function cancel_job(jobArn; aws_config::AbstractAWSConfig=current_aws_config()) - return braket( - "PUT", - "/job/$(jobArn)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_job(jobArn; aws_config::AbstractAWSConfig=current_aws_config()) = braket( + "PUT", + "/job/$(jobArn)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_job( jobArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -45,17 +43,15 @@ Cancels the specified task. - `quantum_task_arn`: The ARN of the task to cancel. """ -function cancel_quantum_task( +cancel_quantum_task( clientToken, quantumTaskArn; aws_config::AbstractAWSConfig=current_aws_config() +) = braket( + "PUT", + "/quantum-task/$(quantumTaskArn)/cancel", + Dict{String,Any}("clientToken" => clientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return braket( - "PUT", - "/quantum-task/$(quantumTaskArn)/cancel", - Dict{String,Any}("clientToken" => clientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_quantum_task( clientToken, quantumTaskArn, @@ -109,7 +105,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources. """ -function create_job( +create_job( algorithmSpecification, clientToken, deviceConfig, @@ -118,23 +114,21 @@ function create_job( outputDataConfig, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = braket( + "POST", + "/job", + Dict{String,Any}( + "algorithmSpecification" => algorithmSpecification, + "clientToken" => clientToken, + "deviceConfig" => deviceConfig, + "instanceConfig" => instanceConfig, + "jobName" => jobName, + "outputDataConfig" => outputDataConfig, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return braket( - "POST", - "/job", - Dict{String,Any}( - "algorithmSpecification" => algorithmSpecification, - "clientToken" => clientToken, - "deviceConfig" => deviceConfig, - "instanceConfig" => instanceConfig, - "jobName" => jobName, - "outputDataConfig" => outputDataConfig, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_job( algorithmSpecification, clientToken, @@ -191,7 +185,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"jobToken"`: The token for an Amazon Braket job that associates it with the quantum task. - `"tags"`: Tags to be added to the quantum task you're creating. """ -function create_quantum_task( +create_quantum_task( action, clientToken, deviceArn, @@ -199,22 +193,20 @@ function create_quantum_task( outputS3KeyPrefix, shots; aws_config::AbstractAWSConfig=current_aws_config(), +) = braket( + "POST", + "/quantum-task", + Dict{String,Any}( + "action" => action, + "clientToken" => clientToken, + "deviceArn" => deviceArn, + "outputS3Bucket" => outputS3Bucket, + "outputS3KeyPrefix" => outputS3KeyPrefix, + "shots" => shots, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return braket( - "POST", - "/quantum-task", - Dict{String,Any}( - "action" => action, - "clientToken" => clientToken, - "deviceArn" => deviceArn, - "outputS3Bucket" => outputS3Bucket, - "outputS3KeyPrefix" => outputS3KeyPrefix, - "shots" => shots, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_quantum_task( action, clientToken, @@ -264,14 +256,12 @@ JavaScript/TypeScript SDKs. - `device_arn`: The ARN of the device to retrieve. """ -function get_device(deviceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return braket( - "GET", - "/device/$(deviceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_device(deviceArn; aws_config::AbstractAWSConfig=current_aws_config()) = braket( + "GET", + "/device/$(deviceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_device( deviceArn, params::AbstractDict{String}; @@ -299,11 +289,8 @@ Retrieves the specified Amazon Braket job. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"additionalAttributeNames"`: A list of attributes to return information for. """ -function get_job(jobArn; aws_config::AbstractAWSConfig=current_aws_config()) - return braket( - "GET", "/job/$(jobArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_job(jobArn; aws_config::AbstractAWSConfig=current_aws_config()) = + braket("GET", "/job/$(jobArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_job( jobArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -329,16 +316,13 @@ Retrieves the specified quantum task. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"additionalAttributeNames"`: A list of attributes to return information for. """ -function get_quantum_task( - quantumTaskArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return braket( +get_quantum_task(quantumTaskArn; aws_config::AbstractAWSConfig=current_aws_config()) = + braket( "GET", "/quantum-task/$(quantumTaskArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_quantum_task( quantumTaskArn, params::AbstractDict{String}; @@ -363,16 +347,13 @@ Shows the tags associated with this resource. - `resource_arn`: Specify the resourceArn for the resource whose tags to display. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return braket( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + braket( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -402,15 +383,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used for pagination of results returned in the response. Use the token returned from the previous request continue results where the previous request ended. """ -function search_devices(filters; aws_config::AbstractAWSConfig=current_aws_config()) - return braket( - "POST", - "/devices", - Dict{String,Any}("filters" => filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_devices(filters; aws_config::AbstractAWSConfig=current_aws_config()) = braket( + "POST", + "/devices", + Dict{String,Any}("filters" => filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_devices( filters, params::AbstractDict{String}; @@ -441,15 +420,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys token returned from the previous request to continue results where the previous request ended. """ -function search_jobs(filters; aws_config::AbstractAWSConfig=current_aws_config()) - return braket( - "POST", - "/jobs", - Dict{String,Any}("filters" => filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_jobs(filters; aws_config::AbstractAWSConfig=current_aws_config()) = braket( + "POST", + "/jobs", + Dict{String,Any}("filters" => filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_jobs( filters, params::AbstractDict{String}; @@ -479,15 +456,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used for pagination of results returned in the response. Use the token returned from the previous request continue results where the previous request ended. """ -function search_quantum_tasks(filters; aws_config::AbstractAWSConfig=current_aws_config()) - return braket( - "POST", - "/quantum-tasks", - Dict{String,Any}("filters" => filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_quantum_tasks(filters; aws_config::AbstractAWSConfig=current_aws_config()) = braket( + "POST", + "/quantum-tasks", + Dict{String,Any}("filters" => filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_quantum_tasks( filters, params::AbstractDict{String}; @@ -513,15 +488,14 @@ Add a tag to the specified resource. - `tags`: Specify the tags to add to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return braket( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + braket( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -548,17 +522,14 @@ Remove tags from a resource. - `tag_keys`: Specify the keys for the tags to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return braket( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + braket( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/budgets.jl b/src/services/budgets.jl index 4026d9cc6..72cf207ad 100644 --- a/src/services/budgets.jl +++ b/src/services/budgets.jl @@ -27,16 +27,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceTags"`: An optional list of tags to associate with the specified budget. Each tag consists of a key and a value, and each key must be unique for the resource. """ -function create_budget( - AccountId, Budget; aws_config::AbstractAWSConfig=current_aws_config() -) - return budgets( +create_budget(AccountId, Budget; aws_config::AbstractAWSConfig=current_aws_config()) = + budgets( "CreateBudget", Dict{String,Any}("AccountId" => AccountId, "Budget" => Budget); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_budget( AccountId, Budget, @@ -81,7 +78,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceTags"`: An optional list of tags to associate with the specified budget action. Each tag consists of a key and a value, and each key must be unique for the resource. """ -function create_budget_action( +create_budget_action( AccountId, ActionThreshold, ActionType, @@ -92,24 +89,22 @@ function create_budget_action( NotificationType, Subscribers; aws_config::AbstractAWSConfig=current_aws_config(), +) = budgets( + "CreateBudgetAction", + Dict{String,Any}( + "AccountId" => AccountId, + "ActionThreshold" => ActionThreshold, + "ActionType" => ActionType, + "ApprovalModel" => ApprovalModel, + "BudgetName" => BudgetName, + "Definition" => Definition, + "ExecutionRoleArn" => ExecutionRoleArn, + "NotificationType" => NotificationType, + "Subscribers" => Subscribers, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "CreateBudgetAction", - Dict{String,Any}( - "AccountId" => AccountId, - "ActionThreshold" => ActionThreshold, - "ActionType" => ActionType, - "ApprovalModel" => ApprovalModel, - "BudgetName" => BudgetName, - "Definition" => Definition, - "ExecutionRoleArn" => ExecutionRoleArn, - "NotificationType" => NotificationType, - "Subscribers" => Subscribers, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_budget_action( AccountId, ActionThreshold, @@ -164,25 +159,23 @@ notification. Each notification can have one SNS subscriber and up to 10 email subscribers. """ -function create_notification( +create_notification( AccountId, BudgetName, Notification, Subscribers; aws_config::AbstractAWSConfig=current_aws_config(), +) = budgets( + "CreateNotification", + Dict{String,Any}( + "AccountId" => AccountId, + "BudgetName" => BudgetName, + "Notification" => Notification, + "Subscribers" => Subscribers, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "CreateNotification", - Dict{String,Any}( - "AccountId" => AccountId, - "BudgetName" => BudgetName, - "Notification" => Notification, - "Subscribers" => Subscribers, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_notification( AccountId, BudgetName, @@ -226,25 +219,23 @@ create the subscriber. - `subscriber`: The subscriber that you want to associate with a budget notification. """ -function create_subscriber( +create_subscriber( AccountId, BudgetName, Notification, Subscriber; aws_config::AbstractAWSConfig=current_aws_config(), +) = budgets( + "CreateSubscriber", + Dict{String,Any}( + "AccountId" => AccountId, + "BudgetName" => BudgetName, + "Notification" => Notification, + "Subscriber" => Subscriber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "CreateSubscriber", - Dict{String,Any}( - "AccountId" => AccountId, - "BudgetName" => BudgetName, - "Notification" => Notification, - "Subscriber" => Subscriber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subscriber( AccountId, BudgetName, @@ -284,16 +275,13 @@ the notifications and subscribers that are associated with that budget. - `budget_name`: The name of the budget that you want to delete. """ -function delete_budget( - AccountId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return budgets( +delete_budget(AccountId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config()) = + budgets( "DeleteBudget", Dict{String,Any}("AccountId" => AccountId, "BudgetName" => BudgetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_budget( AccountId, BudgetName, @@ -326,18 +314,16 @@ end - `budget_name`: """ -function delete_budget_action( +delete_budget_action( AccountId, ActionId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DeleteBudgetAction", + Dict{String,Any}( + "AccountId" => AccountId, "ActionId" => ActionId, "BudgetName" => BudgetName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DeleteBudgetAction", - Dict{String,Any}( - "AccountId" => AccountId, "ActionId" => ActionId, "BudgetName" => BudgetName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_budget_action( AccountId, ActionId, @@ -377,20 +363,18 @@ associated with the notification. - `notification`: The notification that you want to delete. """ -function delete_notification( +delete_notification( AccountId, BudgetName, Notification; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DeleteNotification", + Dict{String,Any}( + "AccountId" => AccountId, + "BudgetName" => BudgetName, + "Notification" => Notification, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DeleteNotification", - Dict{String,Any}( - "AccountId" => AccountId, - "BudgetName" => BudgetName, - "Notification" => Notification, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_notification( AccountId, BudgetName, @@ -431,25 +415,23 @@ notification. - `subscriber`: The subscriber that you want to delete. """ -function delete_subscriber( +delete_subscriber( AccountId, BudgetName, Notification, Subscriber; aws_config::AbstractAWSConfig=current_aws_config(), +) = budgets( + "DeleteSubscriber", + Dict{String,Any}( + "AccountId" => AccountId, + "BudgetName" => BudgetName, + "Notification" => Notification, + "Subscriber" => Subscriber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DeleteSubscriber", - Dict{String,Any}( - "AccountId" => AccountId, - "BudgetName" => BudgetName, - "Notification" => Notification, - "Subscriber" => Subscriber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_subscriber( AccountId, BudgetName, @@ -490,16 +472,13 @@ PlannedBudgetLimits, see the Examples section. - `budget_name`: The name of the budget that you want a description of. """ -function describe_budget( - AccountId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return budgets( +describe_budget(AccountId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config()) = + budgets( "DescribeBudget", Dict{String,Any}("AccountId" => AccountId, "BudgetName" => BudgetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_budget( AccountId, BudgetName, @@ -532,18 +511,16 @@ end - `budget_name`: """ -function describe_budget_action( +describe_budget_action( AccountId, ActionId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DescribeBudgetAction", + Dict{String,Any}( + "AccountId" => AccountId, "ActionId" => ActionId, "BudgetName" => BudgetName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DescribeBudgetAction", - Dict{String,Any}( - "AccountId" => AccountId, "ActionId" => ActionId, "BudgetName" => BudgetName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_budget_action( AccountId, ActionId, @@ -586,18 +563,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"TimePeriod"`: """ -function describe_budget_action_histories( +describe_budget_action_histories( AccountId, ActionId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DescribeBudgetActionHistories", + Dict{String,Any}( + "AccountId" => AccountId, "ActionId" => ActionId, "BudgetName" => BudgetName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DescribeBudgetActionHistories", - Dict{String,Any}( - "AccountId" => AccountId, "ActionId" => ActionId, "BudgetName" => BudgetName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_budget_action_histories( AccountId, ActionId, @@ -637,16 +612,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function describe_budget_actions_for_account( +describe_budget_actions_for_account( AccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DescribeBudgetActionsForAccount", + Dict{String,Any}("AccountId" => AccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DescribeBudgetActionsForAccount", - Dict{String,Any}("AccountId" => AccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_budget_actions_for_account( AccountId, params::AbstractDict{String}; @@ -677,16 +650,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function describe_budget_actions_for_budget( +describe_budget_actions_for_budget( AccountId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DescribeBudgetActionsForBudget", + Dict{String,Any}("AccountId" => AccountId, "BudgetName" => BudgetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DescribeBudgetActionsForBudget", - Dict{String,Any}("AccountId" => AccountId, "BudgetName" => BudgetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_budget_actions_for_budget( AccountId, BudgetName, @@ -722,16 +693,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains. The default is 50. - `"NextToken"`: """ -function describe_budget_notifications_for_account( +describe_budget_notifications_for_account( AccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DescribeBudgetNotificationsForAccount", + Dict{String,Any}("AccountId" => AccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DescribeBudgetNotificationsForAccount", - Dict{String,Any}("AccountId" => AccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_budget_notifications_for_account( AccountId, params::AbstractDict{String}; @@ -765,16 +734,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimePeriod"`: Retrieves how often the budget went into an ALARM state for the specified time period. """ -function describe_budget_performance_history( +describe_budget_performance_history( AccountId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DescribeBudgetPerformanceHistory", + Dict{String,Any}("AccountId" => AccountId, "BudgetName" => BudgetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DescribeBudgetPerformanceHistory", - Dict{String,Any}("AccountId" => AccountId, "BudgetName" => BudgetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_budget_performance_history( AccountId, BudgetName, @@ -812,14 +779,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that you include in your request to indicate the next set of results that you want to retrieve. """ -function describe_budgets(AccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return budgets( - "DescribeBudgets", - Dict{String,Any}("AccountId" => AccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_budgets(AccountId; aws_config::AbstractAWSConfig=current_aws_config()) = budgets( + "DescribeBudgets", + Dict{String,Any}("AccountId" => AccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_budgets( AccountId, params::AbstractDict{String}; @@ -853,16 +818,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that you include in your request to indicate the next set of results that you want to retrieve. """ -function describe_notifications_for_budget( +describe_notifications_for_budget( AccountId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DescribeNotificationsForBudget", + Dict{String,Any}("AccountId" => AccountId, "BudgetName" => BudgetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DescribeNotificationsForBudget", - Dict{String,Any}("AccountId" => AccountId, "BudgetName" => BudgetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_notifications_for_budget( AccountId, BudgetName, @@ -902,20 +865,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that you include in your request to indicate the next set of results that you want to retrieve. """ -function describe_subscribers_for_notification( +describe_subscribers_for_notification( AccountId, BudgetName, Notification; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "DescribeSubscribersForNotification", + Dict{String,Any}( + "AccountId" => AccountId, + "BudgetName" => BudgetName, + "Notification" => Notification, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "DescribeSubscribersForNotification", - Dict{String,Any}( - "AccountId" => AccountId, - "BudgetName" => BudgetName, - "Notification" => Notification, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_subscribers_for_notification( AccountId, BudgetName, @@ -954,25 +915,23 @@ end - `execution_type`: The type of execution. """ -function execute_budget_action( +execute_budget_action( AccountId, ActionId, BudgetName, ExecutionType; aws_config::AbstractAWSConfig=current_aws_config(), +) = budgets( + "ExecuteBudgetAction", + Dict{String,Any}( + "AccountId" => AccountId, + "ActionId" => ActionId, + "BudgetName" => BudgetName, + "ExecutionType" => ExecutionType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "ExecuteBudgetAction", - Dict{String,Any}( - "AccountId" => AccountId, - "ActionId" => ActionId, - "BudgetName" => BudgetName, - "ExecutionType" => ExecutionType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_budget_action( AccountId, ActionId, @@ -1010,16 +969,13 @@ Lists tags associated with a budget or budget action resource. - `resource_arn`: The unique identifier for the resource. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return budgets( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + budgets( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1046,16 +1002,14 @@ Creates tags for a budget or budget action resource. - `resource_tags`: The tags associated with the resource. """ -function tag_resource( +tag_resource( ResourceARN, ResourceTags; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "TagResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "ResourceTags" => ResourceTags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "TagResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "ResourceTags" => ResourceTags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_resource( ResourceARN, ResourceTags, @@ -1089,18 +1043,14 @@ Deletes tags associated with a budget or budget action resource. - `resource_tag_keys`: The key that's associated with the tag. """ -function untag_resource( +untag_resource( ResourceARN, ResourceTagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "UntagResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "ResourceTagKeys" => ResourceTagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "UntagResource", - Dict{String,Any}( - "ResourceARN" => ResourceARN, "ResourceTagKeys" => ResourceTagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource( ResourceARN, ResourceTagKeys, @@ -1139,16 +1089,13 @@ PlannedBudgetLimits, see the Examples section. - `new_budget`: The budget that you want to update your budget to. """ -function update_budget( - AccountId, NewBudget; aws_config::AbstractAWSConfig=current_aws_config() -) - return budgets( +update_budget(AccountId, NewBudget; aws_config::AbstractAWSConfig=current_aws_config()) = + budgets( "UpdateBudget", Dict{String,Any}("AccountId" => AccountId, "NewBudget" => NewBudget); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_budget( AccountId, NewBudget, @@ -1190,18 +1137,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NotificationType"`: - `"Subscribers"`: """ -function update_budget_action( +update_budget_action( AccountId, ActionId, BudgetName; aws_config::AbstractAWSConfig=current_aws_config() +) = budgets( + "UpdateBudgetAction", + Dict{String,Any}( + "AccountId" => AccountId, "ActionId" => ActionId, "BudgetName" => BudgetName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "UpdateBudgetAction", - Dict{String,Any}( - "AccountId" => AccountId, "ActionId" => ActionId, "BudgetName" => BudgetName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_budget_action( AccountId, ActionId, @@ -1241,25 +1186,23 @@ Updates a notification. - `old_notification`: The previous notification that is associated with a budget. """ -function update_notification( +update_notification( AccountId, BudgetName, NewNotification, OldNotification; aws_config::AbstractAWSConfig=current_aws_config(), +) = budgets( + "UpdateNotification", + Dict{String,Any}( + "AccountId" => AccountId, + "BudgetName" => BudgetName, + "NewNotification" => NewNotification, + "OldNotification" => OldNotification, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "UpdateNotification", - Dict{String,Any}( - "AccountId" => AccountId, - "BudgetName" => BudgetName, - "NewNotification" => NewNotification, - "OldNotification" => OldNotification, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_notification( AccountId, BudgetName, @@ -1302,27 +1245,25 @@ Updates a subscriber. - `old_subscriber`: The previous subscriber that is associated with a budget notification. """ -function update_subscriber( +update_subscriber( AccountId, BudgetName, NewSubscriber, Notification, OldSubscriber; aws_config::AbstractAWSConfig=current_aws_config(), +) = budgets( + "UpdateSubscriber", + Dict{String,Any}( + "AccountId" => AccountId, + "BudgetName" => BudgetName, + "NewSubscriber" => NewSubscriber, + "Notification" => Notification, + "OldSubscriber" => OldSubscriber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return budgets( - "UpdateSubscriber", - Dict{String,Any}( - "AccountId" => AccountId, - "BudgetName" => BudgetName, - "NewSubscriber" => NewSubscriber, - "Notification" => Notification, - "OldSubscriber" => OldSubscriber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_subscriber( AccountId, BudgetName, diff --git a/src/services/chatbot.jl b/src/services/chatbot.jl index a290b1bdb..f50846c57 100644 --- a/src/services/chatbot.jl +++ b/src/services/chatbot.jl @@ -8,45 +8,46 @@ using AWS.UUIDs create_chime_webhook_configuration(configuration_name, iam_role_arn, sns_topic_arns, webhook_description, webhook_url) create_chime_webhook_configuration(configuration_name, iam_role_arn, sns_topic_arns, webhook_description, webhook_url, params::Dict{String,<:Any}) -Creates Chime Webhook Configuration +Creates an AWS Chatbot configuration for Amazon Chime. # Arguments - `configuration_name`: The name of the configuration. -- `iam_role_arn`: This is a user-defined role that AWS Chatbot will assume. This is not the - service-linked role. For more information, see IAM Policies for AWS Chatbot. -- `sns_topic_arns`: The ARNs of the SNS topics that deliver notifications to AWS Chatbot. -- `webhook_description`: Description of the webhook. Recommend using the convention - `RoomName/WebhookName`. See Chime setup tutorial for more details: - https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html. -- `webhook_url`: URL for the Chime webhook. +- `iam_role_arn`: A user-defined role that AWS Chatbot assumes. This is not the + service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS + Chatbot Administrator Guide. +- `sns_topic_arns`: The Amazon Resource Names (ARNs) of the SNS topics that deliver + notifications to AWS Chatbot. +- `webhook_description`: A description of the webhook. We recommend using the convention + RoomName/WebhookName. For more information, see Tutorial: Get started with Amazon Chime in + the AWS Chatbot Administrator Guide. +- `webhook_url`: The URL for the Amazon Chime webhook. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LoggingLevel"`: Logging levels include ERROR, INFO, or NONE. -- `"Tags"`: A list of tags to apply to the configuration. +- `"Tags"`: A map of tags assigned to a resource. A tag is a string-to-string map of + key-value pairs. """ -function create_chime_webhook_configuration( +create_chime_webhook_configuration( ConfigurationName, IamRoleArn, SnsTopicArns, WebhookDescription, WebhookUrl; aws_config::AbstractAWSConfig=current_aws_config(), +) = chatbot( + "POST", + "/create-chime-webhook-configuration", + Dict{String,Any}( + "ConfigurationName" => ConfigurationName, + "IamRoleArn" => IamRoleArn, + "SnsTopicArns" => SnsTopicArns, + "WebhookDescription" => WebhookDescription, + "WebhookUrl" => WebhookUrl, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/create-chime-webhook-configuration", - Dict{String,Any}( - "ConfigurationName" => ConfigurationName, - "IamRoleArn" => IamRoleArn, - "SnsTopicArns" => SnsTopicArns, - "WebhookDescription" => WebhookDescription, - "WebhookUrl" => WebhookUrl, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_chime_webhook_configuration( ConfigurationName, IamRoleArn, @@ -81,55 +82,55 @@ end create_microsoft_teams_channel_configuration(channel_id, configuration_name, iam_role_arn, team_id, tenant_id) create_microsoft_teams_channel_configuration(channel_id, configuration_name, iam_role_arn, team_id, tenant_id, params::Dict{String,<:Any}) -Creates MS Teams Channel Configuration +Creates an AWS Chatbot configuration for Microsoft Teams. # Arguments - `channel_id`: The ID of the Microsoft Teams channel. - `configuration_name`: The name of the configuration. -- `iam_role_arn`: The ARN of the IAM role that defines the permissions for AWS Chatbot. - This is a user-defined role that AWS Chatbot will assume. This is not the service-linked - role. For more information, see IAM Policies for AWS Chatbot. -- `team_id`: The ID of the Microsoft Team authorized with AWS Chatbot. To get the team ID, - you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot - console. Then you can copy and paste the team ID from the console. For more details, see - steps 1-4 in Get started with Microsoft Teams in the AWS Chatbot Administrator Guide. +- `iam_role_arn`: A user-defined role that AWS Chatbot assumes. This is not the + service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS + Chatbot Administrator Guide. +- `team_id`: The ID of the Microsoft Teams authorized with AWS Chatbot. To get the team + ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot + console. Then you can copy and paste the team ID from the console. For more information, + see Step 1: Configure a Microsoft Teams client in the AWS Chatbot Administrator Guide. - `tenant_id`: The ID of the Microsoft Teams tenant. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ChannelName"`: The name of the Microsoft Teams channel. - `"GuardrailPolicyArns"`: The list of IAM policy ARNs that are applied as channel - guardrails. The AWS managed 'AdministratorAccess' policy is applied by default if this is - not set. + guardrails. The AWS managed AdministratorAccess policy is applied by default if this is not + set. - `"LoggingLevel"`: Logging levels include ERROR, INFO, or NONE. -- `"SnsTopicArns"`: The ARNs of the SNS topics that deliver notifications to AWS Chatbot. -- `"Tags"`: A list of tags to apply to the configuration. +- `"SnsTopicArns"`: The Amazon Resource Names (ARNs) of the SNS topics that deliver + notifications to AWS Chatbot. +- `"Tags"`: A map of tags assigned to a resource. A tag is a string-to-string map of + key-value pairs. - `"TeamName"`: The name of the Microsoft Teams Team. - `"UserAuthorizationRequired"`: Enables use of a user role requirement in your chat configuration. """ -function create_microsoft_teams_channel_configuration( +create_microsoft_teams_channel_configuration( ChannelId, ConfigurationName, IamRoleArn, TeamId, TenantId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chatbot( + "POST", + "/create-ms-teams-channel-configuration", + Dict{String,Any}( + "ChannelId" => ChannelId, + "ConfigurationName" => ConfigurationName, + "IamRoleArn" => IamRoleArn, + "TeamId" => TeamId, + "TenantId" => TenantId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/create-ms-teams-channel-configuration", - Dict{String,Any}( - "ChannelId" => ChannelId, - "ConfigurationName" => ConfigurationName, - "IamRoleArn" => IamRoleArn, - "TeamId" => TeamId, - "TenantId" => TenantId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_microsoft_teams_channel_configuration( ChannelId, ConfigurationName, @@ -164,14 +165,14 @@ end create_slack_channel_configuration(configuration_name, iam_role_arn, slack_channel_id, slack_team_id) create_slack_channel_configuration(configuration_name, iam_role_arn, slack_channel_id, slack_team_id, params::Dict{String,<:Any}) -Creates Slack Channel Configuration +Creates an AWS Chatbot confugration for Slack. # Arguments - `configuration_name`: The name of the configuration. -- `iam_role_arn`: The ARN of the IAM role that defines the permissions for AWS Chatbot. - This is a user-defined role that AWS Chatbot will assume. This is not the service-linked - role. For more information, see IAM Policies for AWS Chatbot. -- `slack_channel_id`: The ID of the Slack channel. To get the ID, open Slack, right click +- `iam_role_arn`: A user-defined role that AWS Chatbot assumes. This is not the + service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS + Chatbot Administrator Guide. +- `slack_channel_id`: The ID of the Slack channel. To get this ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ. - `slack_team_id`: The ID of the Slack workspace authorized with AWS Chatbot. @@ -179,35 +180,35 @@ Creates Slack Channel Configuration # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"GuardrailPolicyArns"`: The list of IAM policy ARNs that are applied as channel - guardrails. The AWS managed 'AdministratorAccess' policy is applied by default if this is - not set. + guardrails. The AWS managed AdministratorAccess policy is applied by default if this is not + set. - `"LoggingLevel"`: Logging levels include ERROR, INFO, or NONE. -- `"SlackChannelName"`: The name of the Slack Channel. -- `"SnsTopicArns"`: The ARNs of the SNS topics that deliver notifications to AWS Chatbot. -- `"Tags"`: A list of tags to apply to the configuration. +- `"SlackChannelName"`: The name of the Slack channel. +- `"SnsTopicArns"`: The Amazon Resource Names (ARNs) of the SNS topics that deliver + notifications to AWS Chatbot. +- `"Tags"`: A map of tags assigned to a resource. A tag is a string-to-string map of + key-value pairs. - `"UserAuthorizationRequired"`: Enables use of a user role requirement in your chat configuration. """ -function create_slack_channel_configuration( +create_slack_channel_configuration( ConfigurationName, IamRoleArn, SlackChannelId, SlackTeamId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chatbot( + "POST", + "/create-slack-channel-configuration", + Dict{String,Any}( + "ConfigurationName" => ConfigurationName, + "IamRoleArn" => IamRoleArn, + "SlackChannelId" => SlackChannelId, + "SlackTeamId" => SlackTeamId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/create-slack-channel-configuration", - Dict{String,Any}( - "ConfigurationName" => ConfigurationName, - "IamRoleArn" => IamRoleArn, - "SlackChannelId" => SlackChannelId, - "SlackTeamId" => SlackTeamId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_slack_channel_configuration( ConfigurationName, IamRoleArn, @@ -240,23 +241,22 @@ end delete_chime_webhook_configuration(chat_configuration_arn) delete_chime_webhook_configuration(chat_configuration_arn, params::Dict{String,<:Any}) -Deletes a Chime Webhook Configuration +Deletes a Amazon Chime webhook configuration for AWS Chatbot. # Arguments -- `chat_configuration_arn`: The ARN of the ChimeWebhookConfiguration to delete. +- `chat_configuration_arn`: The Amazon Resource Name (ARN) of the ChimeWebhookConfiguration + to delete. """ -function delete_chime_webhook_configuration( +delete_chime_webhook_configuration( ChatConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/delete-chime-webhook-configuration", + Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/delete-chime-webhook-configuration", - Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_chime_webhook_configuration( ChatConfigurationArn, params::AbstractDict{String}; @@ -281,23 +281,22 @@ end delete_microsoft_teams_channel_configuration(chat_configuration_arn) delete_microsoft_teams_channel_configuration(chat_configuration_arn, params::Dict{String,<:Any}) -Deletes MS Teams Channel Configuration +Deletes a Microsoft Teams channel configuration for AWS Chatbot # Arguments -- `chat_configuration_arn`: The ARN of the MicrosoftTeamsChannelConfiguration to delete. +- `chat_configuration_arn`: The Amazon Resource Name (ARN) of the + MicrosoftTeamsChannelConfiguration associated with the user identity to delete. """ -function delete_microsoft_teams_channel_configuration( +delete_microsoft_teams_channel_configuration( ChatConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/delete-ms-teams-channel-configuration", + Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/delete-ms-teams-channel-configuration", - Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_microsoft_teams_channel_configuration( ChatConfigurationArn, params::AbstractDict{String}; @@ -327,23 +326,22 @@ that Microsoft Teams team. Note that the Microsoft Teams team must have no chann configured to remove it. # Arguments -- `team_id`: The ID of the Microsoft Team authorized with AWS Chatbot. To get the team ID, - you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot - console. Then you can copy and paste the team ID from the console. For more details, see - steps 1-4 in Get started with Microsoft Teams in the AWS Chatbot Administrator Guide. +- `team_id`: The ID of the Microsoft Teams team authorized with AWS Chatbot. To get the + team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS + Chatbot console. Then you can copy and paste the team ID from the console. For more + information, see Step 1: Configure a Microsoft Teams client in the AWS Chatbot + Administrator Guide. """ -function delete_microsoft_teams_configured_team( +delete_microsoft_teams_configured_team( TeamId; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/delete-ms-teams-configured-teams", + Dict{String,Any}("TeamId" => TeamId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/delete-ms-teams-configured-teams", - Dict{String,Any}("TeamId" => TeamId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_microsoft_teams_configured_team( TeamId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -360,27 +358,23 @@ end delete_microsoft_teams_user_identity(chat_configuration_arn, user_id) delete_microsoft_teams_user_identity(chat_configuration_arn, user_id, params::Dict{String,<:Any}) -Deletes a Teams user identity +Identifes a user level permission for a channel configuration. # Arguments - `chat_configuration_arn`: The ARN of the MicrosoftTeamsChannelConfiguration associated with the user identity to delete. -- `user_id`: Id from Microsoft Teams for user. +- `user_id`: The Microsoft Teams user ID. """ -function delete_microsoft_teams_user_identity( +delete_microsoft_teams_user_identity( ChatConfigurationArn, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/delete-ms-teams-user-identity", + Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn, "UserId" => UserId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/delete-ms-teams-user-identity", - Dict{String,Any}( - "ChatConfigurationArn" => ChatConfigurationArn, "UserId" => UserId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_microsoft_teams_user_identity( ChatConfigurationArn, UserId, @@ -408,23 +402,22 @@ end delete_slack_channel_configuration(chat_configuration_arn) delete_slack_channel_configuration(chat_configuration_arn, params::Dict{String,<:Any}) -Deletes Slack Channel Configuration +Deletes a Slack channel configuration for AWS Chatbot # Arguments -- `chat_configuration_arn`: The ARN of the SlackChannelConfiguration to delete. +- `chat_configuration_arn`: The Amazon Resource Name (ARN) of the SlackChannelConfiguration + to delete. """ -function delete_slack_channel_configuration( +delete_slack_channel_configuration( ChatConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/delete-slack-channel-configuration", + Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/delete-slack-channel-configuration", - Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_slack_channel_configuration( ChatConfigurationArn, params::AbstractDict{String}; @@ -449,33 +442,31 @@ end delete_slack_user_identity(chat_configuration_arn, slack_team_id, slack_user_id) delete_slack_user_identity(chat_configuration_arn, slack_team_id, slack_user_id, params::Dict{String,<:Any}) -Deletes a Slack user identity +Deletes a user level permission for a Slack channel configuration. # Arguments - `chat_configuration_arn`: The ARN of the SlackChannelConfiguration associated with the user identity to delete. - `slack_team_id`: The ID of the Slack workspace authorized with AWS Chatbot. -- `slack_user_id`: The ID of the user in Slack. +- `slack_user_id`: The ID of the user in Slack """ -function delete_slack_user_identity( +delete_slack_user_identity( ChatConfigurationArn, SlackTeamId, SlackUserId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chatbot( + "POST", + "/delete-slack-user-identity", + Dict{String,Any}( + "ChatConfigurationArn" => ChatConfigurationArn, + "SlackTeamId" => SlackTeamId, + "SlackUserId" => SlackUserId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/delete-slack-user-identity", - Dict{String,Any}( - "ChatConfigurationArn" => ChatConfigurationArn, - "SlackTeamId" => SlackTeamId, - "SlackUserId" => SlackUserId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_slack_user_identity( ChatConfigurationArn, SlackTeamId, @@ -513,17 +504,15 @@ workspace. This requires all configured channels in the workspace to be deleted. - `slack_team_id`: The ID of the Slack workspace authorized with AWS Chatbot. """ -function delete_slack_workspace_authorization( +delete_slack_workspace_authorization( SlackTeamId; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/delete-slack-workspace-authorization", + Dict{String,Any}("SlackTeamId" => SlackTeamId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/delete-slack-workspace-authorization", - Dict{String,Any}("SlackTeamId" => SlackTeamId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_slack_workspace_authorization( SlackTeamId, params::AbstractDict{String}; @@ -544,11 +533,12 @@ end describe_chime_webhook_configurations() describe_chime_webhook_configurations(params::Dict{String,<:Any}) -Lists Chime Webhook Configurations optionally filtered by ChatConfigurationArn +Lists Amazon Chime webhook configurations optionally filtered by ChatConfigurationArn # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"ChatConfigurationArn"`: An optional ARN of a ChimeWebhookConfiguration to describe. +- `"ChatConfigurationArn"`: An optional Amazon Resource Number (ARN) of a + ChimeWebhookConfiguration to describe. - `"MaxResults"`: The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. @@ -556,16 +546,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. """ -function describe_chime_webhook_configurations(; +describe_chime_webhook_configurations(; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/describe-chime-webhook-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/describe-chime-webhook-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_chime_webhook_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -582,28 +570,27 @@ end describe_slack_channel_configurations() describe_slack_channel_configurations(params::Dict{String,<:Any}) -Lists Slack Channel Configurations optionally filtered by ChatConfigurationArn +Lists Slack channel configurations optionally filtered by ChatConfigurationArn # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"ChatConfigurationArn"`: An optional ARN of a SlackChannelConfiguration to describe. +- `"ChatConfigurationArn"`: An optional Amazon Resource Number (ARN) of a + SlackChannelConfiguration to describe. - `"MaxResults"`: The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. -- `"NextToken"`: An optional token returned from a prior request. Use this token for +- `"NextToken"`: An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. """ -function describe_slack_channel_configurations(; +describe_slack_channel_configurations(; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/describe-slack-channel-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/describe-slack-channel-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_slack_channel_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -624,25 +611,22 @@ Lists all Slack user identities with a mapped role. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"ChatConfigurationArn"`: The ARN of the SlackChannelConfiguration associated with the - user identities to describe. +- `"ChatConfigurationArn"`: The Amazon Resource Number (ARN) of the + SlackChannelConfiguration associated with the user identities to describe. - `"MaxResults"`: The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. -- `"NextToken"`: An optional token returned from a prior request. Use this token for +- `"NextToken"`: An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. """ -function describe_slack_user_identities(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return chatbot( +describe_slack_user_identities(; aws_config::AbstractAWSConfig=current_aws_config()) = + chatbot( "POST", "/describe-slack-user-identities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_slack_user_identities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -659,25 +643,24 @@ end describe_slack_workspaces() describe_slack_workspaces(params::Dict{String,<:Any}) -Lists all authorized Slack Workspaces for AWS Account +List all authorized Slack workspaces connected to the AWS Account onboarded with AWS +Chatbot. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MaxResults"`: The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. -- `"NextToken"`: An optional token returned from a prior request. Use this token for +- `"NextToken"`: An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. """ -function describe_slack_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return chatbot( - "POST", - "/describe-slack-workspaces"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_slack_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) = chatbot( + "POST", + "/describe-slack-workspaces"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_slack_workspaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -694,17 +677,15 @@ end get_account_preferences() get_account_preferences(params::Dict{String,<:Any}) -Get Chatbot account level preferences +Returns AWS Chatbot account preferences. """ -function get_account_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) - return chatbot( - "POST", - "/get-account-preferences"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_account_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) = chatbot( + "POST", + "/get-account-preferences"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_account_preferences( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -721,23 +702,22 @@ end get_microsoft_teams_channel_configuration(chat_configuration_arn) get_microsoft_teams_channel_configuration(chat_configuration_arn, params::Dict{String,<:Any}) -Get a single MS Teams Channel Configurations +Returns a Microsoft Teams channel configuration in an AWS account. # Arguments -- `chat_configuration_arn`: The ARN of the MicrosoftTeamsChannelConfiguration to retrieve. +- `chat_configuration_arn`: The Amazon Resource Number (ARN) of the + MicrosoftTeamsChannelConfiguration to retrieve. """ -function get_microsoft_teams_channel_configuration( +get_microsoft_teams_channel_configuration( ChatConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/get-ms-teams-channel-configuration", + Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/get-ms-teams-channel-configuration", - Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_microsoft_teams_channel_configuration( ChatConfigurationArn, params::AbstractDict{String}; @@ -762,7 +742,7 @@ end list_microsoft_teams_channel_configurations() list_microsoft_teams_channel_configurations(params::Dict{String,<:Any}) -Lists MS Teams Channel Configurations optionally filtered by TeamId +Lists all AWS Chatbot Microsoft Teams channel configurations in an AWS account. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -772,21 +752,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. -- `"TeamId"`: The ID of the Microsoft Team authorized with AWS Chatbot. To get the team ID, - you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot - console. Then you can copy and paste the team ID from the console. For more details, see - steps 1-4 in Get started with Microsoft Teams in the AWS Chatbot Administrator Guide. +- `"TeamId"`: The ID of the Microsoft Teams authorized with AWS Chatbot. To get the team + ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot + console. Then you can copy and paste the team ID from the console. For more information, + see Step 1: Configure a Microsoft Teams client in the AWS Chatbot Administrator Guide. """ -function list_microsoft_teams_channel_configurations(; +list_microsoft_teams_channel_configurations(; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/list-ms-teams-channel-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/list-ms-teams-channel-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_microsoft_teams_channel_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -803,7 +781,7 @@ end list_microsoft_teams_configured_teams() list_microsoft_teams_configured_teams(params::Dict{String,<:Any}) -Lists all authorized MS teams for AWS Account +Lists all authorized Microsoft Teams for an AWS Account # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -814,16 +792,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. """ -function list_microsoft_teams_configured_teams(; +list_microsoft_teams_configured_teams(; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/list-ms-teams-configured-teams"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/list-ms-teams-configured-teams"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_microsoft_teams_configured_teams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -840,12 +816,12 @@ end list_microsoft_teams_user_identities() list_microsoft_teams_user_identities(params::Dict{String,<:Any}) -Lists all Microsoft Teams user identities with a mapped role. +A list all Microsoft Teams user identities with a mapped role. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"ChatConfigurationArn"`: The ARN of the MicrosoftTeamsChannelConfiguration associated - with the user identities to list. +- `"ChatConfigurationArn"`: The Amazon Resource Number (ARN) of the + MicrosoftTeamsChannelConfiguration associated with the user identities to list. - `"MaxResults"`: The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. @@ -853,16 +829,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. """ -function list_microsoft_teams_user_identities(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return chatbot( +list_microsoft_teams_user_identities(; aws_config::AbstractAWSConfig=current_aws_config()) = + chatbot( "POST", "/list-ms-teams-user-identities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_microsoft_teams_user_identities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -879,23 +852,21 @@ end list_tags_for_resource(resource_arn) list_tags_for_resource(resource_arn, params::Dict{String,<:Any}) -Retrieves the list of tags applied to a configuration. +Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The +resource can be a user, server, or role. # Arguments -- `resource_arn`: The ARN of the configuration. +- `resource_arn`: The ARN you specified to list the tags of. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return chatbot( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + chatbot( "POST", "/list-tags-for-resource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -916,22 +887,22 @@ end tag_resource(resource_arn, tags) tag_resource(resource_arn, tags, params::Dict{String,<:Any}) -Applies the supplied tags to a configuration. +Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). +Resources are users, servers, roles, and other entities. # Arguments - `resource_arn`: The ARN of the configuration. - `tags`: A list of tags to apply to the configuration. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return chatbot( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + chatbot( "POST", "/tag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -957,24 +928,25 @@ end untag_resource(resource_arn, tag_keys) untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any}) -Removes the supplied tags from a configuration +Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). +Resources are users, servers, roles, and other entities. # Arguments -- `resource_arn`: The ARN of the configuration. -- `tag_keys`: A list of tag keys to remove from the configuration. +- `resource_arn`: The value of the resource that will have the tag removed. An Amazon + Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, + or role. +- `tag_keys`: TagKeys are key-value pairs assigned to ARNs that can be used to group and + search for resources by type. This metadata can be attached to resources for any purpose. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return chatbot( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + chatbot( "POST", "/untag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1000,7 +972,7 @@ end update_account_preferences() update_account_preferences(params::Dict{String,<:Any}) -Update Chatbot account level preferences +Updates AWS Chatbot account preferences. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1011,18 +983,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys develop Artificial Intelligence (AI) technologies. Your data is not shared with any third parties and is protected using sophisticated controls to prevent unauthorized access and misuse. AWS Chatbot does not store or use interactions in chat channels with Amazon Q for - training AWS Chatbot’s AI technologies. + training AI technologies for AWS Chatbot. - `"UserAuthorizationRequired"`: Enables use of a user role requirement in your chat configuration. """ -function update_account_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) - return chatbot( - "POST", - "/update-account-preferences"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_account_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) = chatbot( + "POST", + "/update-account-preferences"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_account_preferences( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1039,34 +1009,33 @@ end update_chime_webhook_configuration(chat_configuration_arn) update_chime_webhook_configuration(chat_configuration_arn, params::Dict{String,<:Any}) -Updates a Chime Webhook Configuration +Updates a Amazon Chime webhook configuration. # Arguments -- `chat_configuration_arn`: The ARN of the ChimeWebhookConfiguration to update. +- `chat_configuration_arn`: The Amazon Resource Number (ARN) of the + ChimeWebhookConfiguration to update. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"IamRoleArn"`: The ARN of the IAM role that defines the permissions for AWS Chatbot. - This is a user-defined role that AWS Chatbot will assume. This is not the service-linked - role. For more information, see IAM Policies for AWS Chatbot. +- `"IamRoleArn"`: A user-defined role that AWS Chatbot assumes. This is not the + service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS + Chatbot Administrator Guide. - `"LoggingLevel"`: Logging levels include ERROR, INFO, or NONE. - `"SnsTopicArns"`: The ARNs of the SNS topics that deliver notifications to AWS Chatbot. -- `"WebhookDescription"`: Description of the webhook. Recommend using the convention - `RoomName/WebhookName`. See Chime setup tutorial for more details: - https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html. -- `"WebhookUrl"`: URL for the Chime webhook. +- `"WebhookDescription"`: A description of the webhook. We recommend using the convention + RoomName/WebhookName. For more information, see Tutorial: Get started with Amazon Chime in + the AWS Chatbot Administrator Guide. +- `"WebhookUrl"`: The URL for the Amazon Chime webhook. """ -function update_chime_webhook_configuration( +update_chime_webhook_configuration( ChatConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/update-chime-webhook-configuration", + Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/update-chime-webhook-configuration", - Dict{String,Any}("ChatConfigurationArn" => ChatConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_chime_webhook_configuration( ChatConfigurationArn, params::AbstractDict{String}; @@ -1091,39 +1060,39 @@ end update_microsoft_teams_channel_configuration(channel_id, chat_configuration_arn) update_microsoft_teams_channel_configuration(channel_id, chat_configuration_arn, params::Dict{String,<:Any}) -Updates MS Teams Channel Configuration +Updates an Microsoft Teams channel configuration. # Arguments - `channel_id`: The ID of the Microsoft Teams channel. -- `chat_configuration_arn`: The ARN of the MicrosoftTeamsChannelConfiguration to update. +- `chat_configuration_arn`: The Amazon Resource Number (ARN) of the + TeamsChannelConfiguration to update. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ChannelName"`: The name of the Microsoft Teams channel. - `"GuardrailPolicyArns"`: The list of IAM policy ARNs that are applied as channel - guardrails. The AWS managed 'AdministratorAccess' policy is applied by default if this is - not set. -- `"IamRoleArn"`: The ARN of the IAM role that defines the permissions for AWS Chatbot. - This is a user-defined role that AWS Chatbot will assume. This is not the service-linked - role. For more information, see IAM Policies for AWS Chatbot. + guardrails. The AWS managed AdministratorAccess policy is applied by default if this is not + set. +- `"IamRoleArn"`: A user-defined role that AWS Chatbot assumes. This is not the + service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS + Chatbot Administrator Guide. - `"LoggingLevel"`: Logging levels include ERROR, INFO, or NONE. -- `"SnsTopicArns"`: The ARNs of the SNS topics that deliver notifications to AWS Chatbot. +- `"SnsTopicArns"`: The Amazon Resource Names (ARNs) of the SNS topics that deliver + notifications to AWS Chatbot. - `"UserAuthorizationRequired"`: Enables use of a user role requirement in your chat configuration. """ -function update_microsoft_teams_channel_configuration( +update_microsoft_teams_channel_configuration( ChannelId, ChatConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/update-ms-teams-channel-configuration", + Dict{String,Any}( + "ChannelId" => ChannelId, "ChatConfigurationArn" => ChatConfigurationArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/update-ms-teams-channel-configuration", - Dict{String,Any}( - "ChannelId" => ChannelId, "ChatConfigurationArn" => ChatConfigurationArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_microsoft_teams_channel_configuration( ChannelId, ChatConfigurationArn, @@ -1151,42 +1120,42 @@ end update_slack_channel_configuration(chat_configuration_arn, slack_channel_id) update_slack_channel_configuration(chat_configuration_arn, slack_channel_id, params::Dict{String,<:Any}) -Updates Slack Channel Configuration +Updates a Slack channel configuration. # Arguments -- `chat_configuration_arn`: The ARN of the SlackChannelConfiguration to update. -- `slack_channel_id`: The ID of the Slack channel. To get the ID, open Slack, right click +- `chat_configuration_arn`: The Amazon Resource Number (ARN) of the + SlackChannelConfiguration to update. +- `slack_channel_id`: The ID of the Slack channel. To get this ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"GuardrailPolicyArns"`: The list of IAM policy ARNs that are applied as channel - guardrails. The AWS managed 'AdministratorAccess' policy is applied by default if this is - not set. -- `"IamRoleArn"`: The ARN of the IAM role that defines the permissions for AWS Chatbot. - This is a user-defined role that AWS Chatbot will assume. This is not the service-linked - role. For more information, see IAM Policies for AWS Chatbot. + guardrails. The AWS managed AdministratorAccess policy is applied by default if this is not + set. +- `"IamRoleArn"`: A user-defined role that AWS Chatbot assumes. This is not the + service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS + Chatbot Administrator Guide. - `"LoggingLevel"`: Logging levels include ERROR, INFO, or NONE. -- `"SlackChannelName"`: The name of the Slack Channel. -- `"SnsTopicArns"`: The ARNs of the SNS topics that deliver notifications to AWS Chatbot. +- `"SlackChannelName"`: The name of the Slack channel. +- `"SnsTopicArns"`: The Amazon Resource Names (ARNs) of the SNS topics that deliver + notifications to AWS Chatbot. - `"UserAuthorizationRequired"`: Enables use of a user role requirement in your chat configuration. """ -function update_slack_channel_configuration( +update_slack_channel_configuration( ChatConfigurationArn, SlackChannelId; aws_config::AbstractAWSConfig=current_aws_config() +) = chatbot( + "POST", + "/update-slack-channel-configuration", + Dict{String,Any}( + "ChatConfigurationArn" => ChatConfigurationArn, + "SlackChannelId" => SlackChannelId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chatbot( - "POST", - "/update-slack-channel-configuration", - Dict{String,Any}( - "ChatConfigurationArn" => ChatConfigurationArn, - "SlackChannelId" => SlackChannelId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_slack_channel_configuration( ChatConfigurationArn, SlackChannelId, diff --git a/src/services/chime.jl b/src/services/chime.jl index 6204cb7ec..606d60c68 100644 --- a/src/services/chime.jl +++ b/src/services/chime.jl @@ -16,17 +16,15 @@ Associates a phone number with the specified Amazon Chime user. - `user_id`: The user ID. """ -function associate_phone_number_with_user( +associate_phone_number_with_user( E164PhoneNumber, accountId, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/users/$(userId)?operation=associate-phone-number", + Dict{String,Any}("E164PhoneNumber" => E164PhoneNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/users/$(userId)?operation=associate-phone-number", - Dict{String,Any}("E164PhoneNumber" => E164PhoneNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_phone_number_with_user( E164PhoneNumber, accountId, @@ -67,17 +65,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Chime Voice Connector and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations. """ -function associate_phone_numbers_with_voice_connector( +associate_phone_numbers_with_voice_connector( E164PhoneNumbers, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/voice-connectors/$(voiceConnectorId)?operation=associate-phone-numbers", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/voice-connectors/$(voiceConnectorId)?operation=associate-phone-numbers", - Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_phone_numbers_with_voice_connector( E164PhoneNumbers, voiceConnectorId, @@ -117,19 +113,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Chime Voice Connector Group and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations. """ -function associate_phone_numbers_with_voice_connector_group( +associate_phone_numbers_with_voice_connector_group( E164PhoneNumbers, voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/voice-connector-groups/$(voiceConnectorGroupId)?operation=associate-phone-numbers", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/voice-connector-groups/$(voiceConnectorGroupId)?operation=associate-phone-numbers", - Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_phone_numbers_with_voice_connector_group( E164PhoneNumbers, voiceConnectorGroupId, @@ -160,17 +154,15 @@ Associates the specified sign-in delegate groups with the specified Amazon Chime - `account_id`: The Amazon Chime account ID. """ -function associate_signin_delegate_groups_with_account( +associate_signin_delegate_groups_with_account( SigninDelegateGroups, accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)?operation=associate-signin-delegate-groups", + Dict{String,Any}("SigninDelegateGroups" => SigninDelegateGroups); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)?operation=associate-signin-delegate-groups", - Dict{String,Any}("SigninDelegateGroups" => SigninDelegateGroups); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_signin_delegate_groups_with_account( SigninDelegateGroups, accountId, @@ -208,17 +200,15 @@ Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime SDK Developer Guid - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function batch_create_attendee( +batch_create_attendee( Attendees, meetingId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/meetings/$(meetingId)/attendees?operation=batch-create", + Dict{String,Any}("Attendees" => Attendees); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/meetings/$(meetingId)/attendees?operation=batch-create", - Dict{String,Any}("Attendees" => Attendees); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_attendee( Attendees, meetingId, @@ -258,17 +248,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This is only supported by moderators. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function batch_create_channel_membership( +batch_create_channel_membership( MemberArns, channelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/channels/$(channelArn)/memberships?operation=batch-create", + Dict{String,Any}("MemberArns" => MemberArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/channels/$(channelArn)/memberships?operation=batch-create", - Dict{String,Any}("MemberArns" => MemberArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_channel_membership( MemberArns, channelArn, @@ -300,20 +288,18 @@ or a general chat room member. - `room_id`: The room ID. """ -function batch_create_room_membership( +batch_create_room_membership( MembershipItemList, accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/accounts/$(accountId)/rooms/$(roomId)/memberships?operation=batch-create", + Dict{String,Any}("MembershipItemList" => MembershipItemList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/rooms/$(roomId)/memberships?operation=batch-create", - Dict{String,Any}("MembershipItemList" => MembershipItemList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_room_membership( MembershipItemList, accountId, @@ -346,17 +332,15 @@ in the Deletion queue for 7 days before they are deleted permanently. - `phone_number_ids`: List of phone number IDs. """ -function batch_delete_phone_number( +batch_delete_phone_number( PhoneNumberIds; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/phone-numbers?operation=batch-delete", + Dict{String,Any}("PhoneNumberIds" => PhoneNumberIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/phone-numbers?operation=batch-delete", - Dict{String,Any}("PhoneNumberIds" => PhoneNumberIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_phone_number( PhoneNumberIds, params::AbstractDict{String}; @@ -392,17 +376,15 @@ users without suspending them, use the LogoutUser action. - `account_id`: The Amazon Chime account ID. """ -function batch_suspend_user( +batch_suspend_user( UserIdList, accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/users?operation=suspend", + Dict{String,Any}("UserIdList" => UserIdList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/users?operation=suspend", - Dict{String,Any}("UserIdList" => UserIdList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_suspend_user( UserIdList, accountId, @@ -436,17 +418,15 @@ Users who are not previously suspended are ignored. - `account_id`: The Amazon Chime account ID. """ -function batch_unsuspend_user( +batch_unsuspend_user( UserIdList, accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/users?operation=unsuspend", + Dict{String,Any}("UserIdList" => UserIdList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/users?operation=unsuspend", - Dict{String,Any}("UserIdList" => UserIdList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_unsuspend_user( UserIdList, accountId, @@ -481,17 +461,15 @@ request another update. product types or calling names to update. """ -function batch_update_phone_number( +batch_update_phone_number( UpdatePhoneNumberRequestItems; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/phone-numbers?operation=batch-update", + Dict{String,Any}("UpdatePhoneNumberRequestItems" => UpdatePhoneNumberRequestItems); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/phone-numbers?operation=batch-update", - Dict{String,Any}("UpdatePhoneNumberRequestItems" => UpdatePhoneNumberRequestItems); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_phone_number( UpdatePhoneNumberRequestItems, params::AbstractDict{String}; @@ -527,17 +505,15 @@ action. - `account_id`: The Amazon Chime account ID. """ -function batch_update_user( +batch_update_user( UpdateUserRequestItems, accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/users", + Dict{String,Any}("UpdateUserRequestItems" => UpdateUserRequestItems); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/users", - Dict{String,Any}("UpdateUserRequestItems" => UpdateUserRequestItems); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_user( UpdateUserRequestItems, accountId, @@ -571,15 +547,13 @@ types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administratio - `name`: The name of the Amazon Chime account. """ -function create_account(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/accounts", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_account(Name; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/accounts", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_account( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -612,17 +586,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Metadata"`: The metadata of the AppInstance. Limited to a 1KB string in UTF-8. - `"Tags"`: Tags assigned to the AppInstance. """ -function create_app_instance( +create_app_instance( ClientRequestToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/app-instances", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/app-instances", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_instance( ClientRequestToken, Name, @@ -663,17 +635,15 @@ actions. Only an AppInstanceUser can be promoted to an AppInstanceAdmin role. - `app_instance_arn`: The ARN of the AppInstance. """ -function create_app_instance_admin( +create_app_instance_admin( AppInstanceAdminArn, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/app-instances/$(appInstanceArn)/admins", + Dict{String,Any}("AppInstanceAdminArn" => AppInstanceAdminArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/app-instances/$(appInstanceArn)/admins", - Dict{String,Any}("AppInstanceAdminArn" => AppInstanceAdminArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_instance_admin( AppInstanceAdminArn, appInstanceArn, @@ -717,26 +687,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Metadata"`: The request's metadata. Limited to a 1KB string in UTF-8. - `"Tags"`: Tags assigned to the AppInstanceUser. """ -function create_app_instance_user( +create_app_instance_user( AppInstanceArn, AppInstanceUserId, ClientRequestToken, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/app-instance-users", + Dict{String,Any}( + "AppInstanceArn" => AppInstanceArn, + "AppInstanceUserId" => AppInstanceUserId, + "ClientRequestToken" => ClientRequestToken, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/app-instance-users", - Dict{String,Any}( - "AppInstanceArn" => AppInstanceArn, - "AppInstanceUserId" => AppInstanceUserId, - "ClientRequestToken" => ClientRequestToken, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_instance_user( AppInstanceArn, AppInstanceUserId, @@ -785,17 +753,15 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tag key-value pairs. """ -function create_attendee( +create_attendee( ExternalUserId, meetingId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/meetings/$(meetingId)/attendees", + Dict{String,Any}("ExternalUserId" => ExternalUserId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/meetings/$(meetingId)/attendees", - Dict{String,Any}("ExternalUserId" => ExternalUserId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_attendee( ExternalUserId, meetingId, @@ -827,17 +793,14 @@ Creates a bot for an Amazon Chime Enterprise account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Domain"`: The domain of the Amazon Chime Enterprise account. """ -function create_bot( - DisplayName, accountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +create_bot(DisplayName, accountId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/accounts/$(accountId)/bots", Dict{String,Any}("DisplayName" => DisplayName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_bot( DisplayName, accountId, @@ -884,24 +847,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags for the creation request. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function create_channel( +create_channel( AppInstanceArn, ClientRequestToken, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/channels", + Dict{String,Any}( + "AppInstanceArn" => AppInstanceArn, + "ClientRequestToken" => ClientRequestToken, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/channels", - Dict{String,Any}( - "AppInstanceArn" => AppInstanceArn, - "ClientRequestToken" => ClientRequestToken, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel( AppInstanceArn, ClientRequestToken, @@ -950,17 +911,15 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function create_channel_ban( +create_channel_ban( MemberArn, channelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/channels/$(channelArn)/bans", + Dict{String,Any}("MemberArn" => MemberArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/channels/$(channelArn)/bans", - Dict{String,Any}("MemberArn" => MemberArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel_ban( MemberArn, channelArn, @@ -1006,17 +965,15 @@ SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function create_channel_membership( +create_channel_membership( MemberArn, Type, channelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/channels/$(channelArn)/memberships", + Dict{String,Any}("MemberArn" => MemberArn, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/channels/$(channelArn)/memberships", - Dict{String,Any}("MemberArn" => MemberArn, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel_membership( MemberArn, Type, @@ -1059,17 +1016,15 @@ SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function create_channel_moderator( +create_channel_moderator( ChannelModeratorArn, channelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/channels/$(channelArn)/moderators", + Dict{String,Any}("ChannelModeratorArn" => ChannelModeratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/channels/$(channelArn)/moderators", - Dict{String,Any}("ChannelModeratorArn" => ChannelModeratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel_moderator( ChannelModeratorArn, channelArn, @@ -1116,27 +1071,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: The unique identifier for the client request. The token makes the API request idempotent. Use a different token for different media pipeline requests. """ -function create_media_capture_pipeline( +create_media_capture_pipeline( SinkArn, SinkType, SourceArn, SourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/media-capture-pipelines", + Dict{String,Any}( + "SinkArn" => SinkArn, + "SinkType" => SinkType, + "SourceArn" => SourceArn, + "SourceType" => SourceType, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/media-capture-pipelines", - Dict{String,Any}( - "SinkArn" => SinkArn, - "SinkType" => SinkType, - "SourceArn" => SourceArn, - "SourceType" => SourceType, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_media_capture_pipeline( SinkArn, SinkType, @@ -1196,17 +1149,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys notifications when meeting and attendee events occur. - `"Tags"`: The tag key-value pairs. """ -function create_meeting( - ClientRequestToken; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +create_meeting(ClientRequestToken; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/meetings", Dict{String,Any}("ClientRequestToken" => ClientRequestToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_meeting( ClientRequestToken, params::AbstractDict{String}; @@ -1245,25 +1195,23 @@ This API is is not available in a dedicated namespace. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function create_meeting_dial_out( +create_meeting_dial_out( FromPhoneNumber, JoinToken, ToPhoneNumber, meetingId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/meetings/$(meetingId)/dial-outs", + Dict{String,Any}( + "FromPhoneNumber" => FromPhoneNumber, + "JoinToken" => JoinToken, + "ToPhoneNumber" => ToPhoneNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/meetings/$(meetingId)/dial-outs", - Dict{String,Any}( - "FromPhoneNumber" => FromPhoneNumber, - "JoinToken" => JoinToken, - "ToPhoneNumber" => ToPhoneNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_meeting_dial_out( FromPhoneNumber, JoinToken, @@ -1323,17 +1271,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys targets located in the US East (N. Virginia) AWS Region (us-east-1). - `"Tags"`: The tag key-value pairs. """ -function create_meeting_with_attendees( +create_meeting_with_attendees( ClientRequestToken; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/meetings?operation=create-attendees", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/meetings?operation=create-attendees", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_meeting_with_attendees( ClientRequestToken, params::AbstractDict{String}; @@ -1365,19 +1311,15 @@ the Amazon Chime SIP Media Application Dial-In product type. - `product_type`: The phone number product type. """ -function create_phone_number_order( +create_phone_number_order( E164PhoneNumbers, ProductType; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/phone-number-orders", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers, "ProductType" => ProductType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/phone-number-orders", - Dict{String,Any}( - "E164PhoneNumbers" => E164PhoneNumbers, "ProductType" => ProductType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_phone_number_order( E164PhoneNumbers, ProductType, @@ -1426,23 +1368,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NumberSelectionBehavior"`: The preference for proxy phone number reuse, or stickiness, between the same participants across sessions. """ -function create_proxy_session( +create_proxy_session( Capabilities, ParticipantPhoneNumbers, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/voice-connectors/$(voiceConnectorId)/proxy-sessions", + Dict{String,Any}( + "Capabilities" => Capabilities, + "ParticipantPhoneNumbers" => ParticipantPhoneNumbers, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/voice-connectors/$(voiceConnectorId)/proxy-sessions", - Dict{String,Any}( - "Capabilities" => Capabilities, - "ParticipantPhoneNumbers" => ParticipantPhoneNumbers, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_proxy_session( Capabilities, ParticipantPhoneNumbers, @@ -1482,15 +1422,13 @@ Creates a chat room for the specified Amazon Chime Enterprise account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: The idempotency token for the request. """ -function create_room(Name, accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/accounts/$(accountId)/rooms", - Dict{String,Any}("Name" => Name, "ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_room(Name, accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/accounts/$(accountId)/rooms", + Dict{String,Any}("Name" => Name, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_room( Name, accountId, @@ -1529,17 +1467,15 @@ or a general chat room member. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Role"`: The role of the member. """ -function create_room_membership( +create_room_membership( MemberId, accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/rooms/$(roomId)/memberships", + Dict{String,Any}("MemberId" => MemberId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/rooms/$(roomId)/memberships", - Dict{String,Any}("MemberId" => MemberId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_room_membership( MemberId, accountId, @@ -1575,26 +1511,22 @@ Developer Guide. - `name`: The SIP media application name. """ -function create_sip_media_application( +create_sip_media_application( AwsRegion, Endpoints, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/sip-media-applications", + Dict{String,Any}("AwsRegion" => AwsRegion, "Endpoints" => Endpoints, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_sip_media_application( + AwsRegion, + Endpoints, + Name, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) - return chime( - "POST", - "/sip-media-applications", - Dict{String,Any}( - "AwsRegion" => AwsRegion, "Endpoints" => Endpoints, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function create_sip_media_application( - AwsRegion, - Endpoints, - Name, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) return chime( "POST", "/sip-media-applications", @@ -1633,22 +1565,20 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SipHeaders"`: The SIP headers added to an outbound call leg. """ -function create_sip_media_application_call( +create_sip_media_application_call( FromPhoneNumber, ToPhoneNumber, sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/sip-media-applications/$(sipMediaApplicationId)/calls", + Dict{String,Any}( + "FromPhoneNumber" => FromPhoneNumber, "ToPhoneNumber" => ToPhoneNumber + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/sip-media-applications/$(sipMediaApplicationId)/calls", - Dict{String,Any}( - "FromPhoneNumber" => FromPhoneNumber, "ToPhoneNumber" => ToPhoneNumber - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sip_media_application_call( FromPhoneNumber, ToPhoneNumber, @@ -1701,26 +1631,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Disabled"`: Enables or disables a rule. You must disable rules before you can delete them. """ -function create_sip_rule( +create_sip_rule( Name, TargetApplications, TriggerType, TriggerValue; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/sip-rules", + Dict{String,Any}( + "Name" => Name, + "TargetApplications" => TargetApplications, + "TriggerType" => TriggerType, + "TriggerValue" => TriggerValue, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/sip-rules", - Dict{String,Any}( - "Name" => Name, - "TargetApplications" => TargetApplications, - "TriggerType" => TriggerType, - "TriggerValue" => TriggerValue, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sip_rule( Name, TargetApplications, @@ -1764,14 +1692,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserType"`: The user type. - `"Username"`: The user name. """ -function create_user(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/accounts/$(accountId)/users?operation=create"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_user(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/accounts/$(accountId)/users?operation=create"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_user( accountId, params::AbstractDict{String}; @@ -1810,17 +1736,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AwsRegion"`: The AWS Region in which the Amazon Chime Voice Connector is created. Default value: us-east-1 . """ -function create_voice_connector( +create_voice_connector( Name, RequireEncryption; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/voice-connectors", + Dict{String,Any}("Name" => Name, "RequireEncryption" => RequireEncryption); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/voice-connectors", - Dict{String,Any}("Name" => Name, "RequireEncryption" => RequireEncryption); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_voice_connector( Name, RequireEncryption, @@ -1863,17 +1787,14 @@ Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"VoiceConnectorItems"`: The Amazon Chime Voice Connectors to route inbound calls to. """ -function create_voice_connector_group( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +create_voice_connector_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/voice-connector-groups", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_voice_connector_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1902,14 +1823,12 @@ days, deleted accounts are permanently removed from your Disabled accounts list. - `account_id`: The Amazon Chime account ID. """ -function delete_account(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "DELETE", - "/accounts/$(accountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_account(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "DELETE", + "/accounts/$(accountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_account( accountId, params::AbstractDict{String}; @@ -1938,16 +1857,13 @@ namespace in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the AppInstance. """ -function delete_app_instance( - appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +delete_app_instance(appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "DELETE", "/app-instances/$(appInstanceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app_instance( appInstanceArn, params::AbstractDict{String}; @@ -1977,16 +1893,14 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the AppInstance. """ -function delete_app_instance_admin( +delete_app_instance_admin( appInstanceAdminArn, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/app-instances/$(appInstanceArn)/admins/$(appInstanceAdminArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/app-instances/$(appInstanceArn)/admins/$(appInstanceAdminArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_instance_admin( appInstanceAdminArn, appInstanceArn, @@ -2016,16 +1930,14 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the streaming configurations being deleted. """ -function delete_app_instance_streaming_configurations( +delete_app_instance_streaming_configurations( appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/app-instances/$(appInstanceArn)/streaming-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/app-instances/$(appInstanceArn)/streaming-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_instance_streaming_configurations( appInstanceArn, params::AbstractDict{String}; @@ -2053,16 +1965,14 @@ refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Devel - `app_instance_user_arn`: The ARN of the user request being deleted. """ -function delete_app_instance_user( +delete_app_instance_user( appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/app-instance-users/$(appInstanceUserArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/app-instance-users/$(appInstanceUserArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_instance_user( appInstanceUserArn, params::AbstractDict{String}; @@ -2094,16 +2004,13 @@ refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Devel - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function delete_attendee( - attendeeId, meetingId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +delete_attendee(attendeeId, meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "DELETE", "/meetings/$(meetingId)/attendees/$(attendeeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_attendee( attendeeId, meetingId, @@ -2138,14 +2045,12 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function delete_channel(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "DELETE", - "/channels/$(channelArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_channel(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "DELETE", + "/channels/$(channelArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_channel( channelArn, params::AbstractDict{String}; @@ -2179,16 +2084,14 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function delete_channel_ban( +delete_channel_ban( channelArn, memberArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/channels/$(channelArn)/bans/$(memberArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/channels/$(channelArn)/bans/$(memberArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_ban( channelArn, memberArn, @@ -2223,16 +2126,14 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function delete_channel_membership( +delete_channel_membership( channelArn, memberArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/channels/$(channelArn)/memberships/$(memberArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/channels/$(channelArn)/memberships/$(memberArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_membership( channelArn, memberArn, @@ -2269,16 +2170,14 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function delete_channel_message( +delete_channel_message( channelArn, messageId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/channels/$(channelArn)/messages/$(messageId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/channels/$(channelArn)/messages/$(messageId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_message( channelArn, messageId, @@ -2313,16 +2212,14 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function delete_channel_moderator( +delete_channel_moderator( channelArn, channelModeratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/channels/$(channelArn)/moderators/$(channelModeratorArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/channels/$(channelArn)/moderators/$(channelModeratorArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_moderator( channelArn, channelModeratorArn, @@ -2349,16 +2246,14 @@ Deletes the events configuration that allows a bot to receive outgoing events. - `bot_id`: The bot ID. """ -function delete_events_configuration( +delete_events_configuration( accountId, botId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/accounts/$(accountId)/bots/$(botId)/events-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/accounts/$(accountId)/bots/$(botId)/events-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_events_configuration( accountId, botId, @@ -2388,16 +2283,14 @@ Developer Guide. - `media_pipeline_id`: The ID of the media capture pipeline being deleted. """ -function delete_media_capture_pipeline( +delete_media_capture_pipeline( mediaPipelineId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/media-capture-pipelines/$(mediaPipelineId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/media-capture-pipelines/$(mediaPipelineId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_media_capture_pipeline( mediaPipelineId, params::AbstractDict{String}; @@ -2428,14 +2321,12 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function delete_meeting(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "DELETE", - "/meetings/$(meetingId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_meeting(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "DELETE", + "/meetings/$(meetingId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_meeting( meetingId, params::AbstractDict{String}; @@ -2463,16 +2354,13 @@ permanently. - `phone_number_id`: The phone number ID. """ -function delete_phone_number( - phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +delete_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "DELETE", "/phone-numbers/$(phoneNumberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_phone_number( phoneNumberId, params::AbstractDict{String}; @@ -2502,16 +2390,14 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime voice connector ID. """ -function delete_proxy_session( +delete_proxy_session( proxySessionId, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_proxy_session( proxySessionId, voiceConnectorId, @@ -2538,14 +2424,12 @@ Deletes a chat room in an Amazon Chime Enterprise account. - `room_id`: The chat room ID. """ -function delete_room(accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "DELETE", - "/accounts/$(accountId)/rooms/$(roomId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_room(accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "DELETE", + "/accounts/$(accountId)/rooms/$(roomId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_room( accountId, roomId, @@ -2573,16 +2457,14 @@ Removes a member from a chat room in an Amazon Chime Enterprise account. - `room_id`: The room ID. """ -function delete_room_membership( +delete_room_membership( accountId, memberId, roomId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/accounts/$(accountId)/rooms/$(roomId)/memberships/$(memberId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/accounts/$(accountId)/rooms/$(roomId)/memberships/$(memberId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_room_membership( accountId, memberId, @@ -2613,16 +2495,14 @@ Developer Guide. - `sip_media_application_id`: The SIP media application ID. """ -function delete_sip_media_application( +delete_sip_media_application( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/sip-media-applications/$(sipMediaApplicationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/sip-media-applications/$(sipMediaApplicationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sip_media_application( sipMediaApplicationId, params::AbstractDict{String}; @@ -2651,14 +2531,12 @@ namespace in the Amazon Chime SDK Developer Guide. - `sip_rule_id`: The SIP rule ID. """ -function delete_sip_rule(sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "DELETE", - "/sip-rules/$(sipRuleId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_sip_rule(sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "DELETE", + "/sip-rules/$(sipRuleId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_sip_rule( sipRuleId, params::AbstractDict{String}; @@ -2688,16 +2566,14 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function delete_voice_connector( +delete_voice_connector( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/voice-connectors/$(voiceConnectorId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/voice-connectors/$(voiceConnectorId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector( voiceConnectorId, params::AbstractDict{String}; @@ -2727,16 +2603,14 @@ Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function delete_voice_connector_emergency_calling_configuration( +delete_voice_connector_emergency_calling_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_emergency_calling_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -2766,16 +2640,14 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_group_id`: The Amazon Chime Voice Connector group ID. """ -function delete_voice_connector_group( +delete_voice_connector_group( voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/voice-connector-groups/$(voiceConnectorGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/voice-connector-groups/$(voiceConnectorGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_group( voiceConnectorGroupId, params::AbstractDict{String}; @@ -2806,16 +2678,14 @@ Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function delete_voice_connector_origination( +delete_voice_connector_origination( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/origination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/origination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_origination( voiceConnectorId, params::AbstractDict{String}; @@ -2844,16 +2714,14 @@ namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function delete_voice_connector_proxy( +delete_voice_connector_proxy( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_proxy( voiceConnectorId, params::AbstractDict{String}; @@ -2882,16 +2750,14 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function delete_voice_connector_streaming_configuration( +delete_voice_connector_streaming_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/streaming-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/streaming-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_streaming_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -2922,16 +2788,14 @@ Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function delete_voice_connector_termination( +delete_voice_connector_termination( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/termination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/termination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_termination( voiceConnectorId, params::AbstractDict{String}; @@ -2963,17 +2827,15 @@ Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function delete_voice_connector_termination_credentials( +delete_voice_connector_termination_credentials( Usernames, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/voice-connectors/$(voiceConnectorId)/termination/credentials?operation=delete", + Dict{String,Any}("Usernames" => Usernames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/voice-connectors/$(voiceConnectorId)/termination/credentials?operation=delete", - Dict{String,Any}("Usernames" => Usernames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_termination_credentials( Usernames, voiceConnectorId, @@ -3005,16 +2867,13 @@ Developer Guide. - `app_instance_arn`: The ARN of the AppInstance. """ -function describe_app_instance( - appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +describe_app_instance(appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/app-instances/$(appInstanceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_app_instance( appInstanceArn, params::AbstractDict{String}; @@ -3044,16 +2903,14 @@ Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the AppInstance. """ -function describe_app_instance_admin( +describe_app_instance_admin( appInstanceAdminArn, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/app-instances/$(appInstanceArn)/admins/$(appInstanceAdminArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/app-instances/$(appInstanceArn)/admins/$(appInstanceAdminArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_instance_admin( appInstanceAdminArn, appInstanceArn, @@ -3083,16 +2940,14 @@ SDK Developer Guide. - `app_instance_user_arn`: The ARN of the AppInstanceUser. """ -function describe_app_instance_user( +describe_app_instance_user( appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/app-instance-users/$(appInstanceUserArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/app-instance-users/$(appInstanceUserArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_instance_user( appInstanceUserArn, params::AbstractDict{String}; @@ -3126,14 +2981,12 @@ Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function describe_channel(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/channels/$(channelArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_channel(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/channels/$(channelArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_channel( channelArn, params::AbstractDict{String}; @@ -3167,16 +3020,14 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function describe_channel_ban( +describe_channel_ban( channelArn, memberArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/channels/$(channelArn)/bans/$(memberArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/channels/$(channelArn)/bans/$(memberArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_ban( channelArn, memberArn, @@ -3211,16 +3062,14 @@ refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Devel Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function describe_channel_membership( +describe_channel_membership( channelArn, memberArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/channels/$(channelArn)/memberships/$(memberArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/channels/$(channelArn)/memberships/$(memberArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_membership( channelArn, memberArn, @@ -3256,17 +3105,15 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function describe_channel_membership_for_app_instance_user( +describe_channel_membership_for_app_instance_user( app_instance_user_arn, channelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/channels/$(channelArn)?scope=app-instance-user-membership", + Dict{String,Any}("app-instance-user-arn" => app_instance_user_arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/channels/$(channelArn)?scope=app-instance-user-membership", - Dict{String,Any}("app-instance-user-arn" => app_instance_user_arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_membership_for_app_instance_user( app_instance_user_arn, channelArn, @@ -3308,17 +3155,15 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function describe_channel_moderated_by_app_instance_user( +describe_channel_moderated_by_app_instance_user( app_instance_user_arn, channelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/channels/$(channelArn)?scope=app-instance-user-moderated-channel", + Dict{String,Any}("app-instance-user-arn" => app_instance_user_arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/channels/$(channelArn)?scope=app-instance-user-moderated-channel", - Dict{String,Any}("app-instance-user-arn" => app_instance_user_arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_moderated_by_app_instance_user( app_instance_user_arn, channelArn, @@ -3359,16 +3204,14 @@ refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Devel Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function describe_channel_moderator( +describe_channel_moderator( channelArn, channelModeratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/channels/$(channelArn)/moderators/$(channelModeratorArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/channels/$(channelArn)/moderators/$(channelModeratorArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_moderator( channelArn, channelModeratorArn, @@ -3395,16 +3238,14 @@ Disassociates the primary provisioned phone number from the specified Amazon Chi - `user_id`: The user ID. """ -function disassociate_phone_number_from_user( +disassociate_phone_number_from_user( accountId, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/users/$(userId)?operation=disassociate-phone-number"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/users/$(userId)?operation=disassociate-phone-number"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_phone_number_from_user( accountId, userId, @@ -3435,17 +3276,15 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function disassociate_phone_numbers_from_voice_connector( +disassociate_phone_numbers_from_voice_connector( E164PhoneNumbers, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( - "POST", - "/voice-connectors/$(voiceConnectorId)?operation=disassociate-phone-numbers", - Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +) = chime( + "POST", + "/voice-connectors/$(voiceConnectorId)?operation=disassociate-phone-numbers", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disassociate_phone_numbers_from_voice_connector( E164PhoneNumbers, voiceConnectorId, @@ -3480,19 +3319,17 @@ refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Devel - `voice_connector_group_id`: The Amazon Chime Voice Connector group ID. """ -function disassociate_phone_numbers_from_voice_connector_group( +disassociate_phone_numbers_from_voice_connector_group( E164PhoneNumbers, voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/voice-connector-groups/$(voiceConnectorGroupId)?operation=disassociate-phone-numbers", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/voice-connector-groups/$(voiceConnectorGroupId)?operation=disassociate-phone-numbers", - Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_phone_numbers_from_voice_connector_group( E164PhoneNumbers, voiceConnectorGroupId, @@ -3523,17 +3360,15 @@ Disassociates the specified sign-in delegate groups from the specified Amazon Ch - `account_id`: The Amazon Chime account ID. """ -function disassociate_signin_delegate_groups_from_account( +disassociate_signin_delegate_groups_from_account( GroupNames, accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)?operation=disassociate-signin-delegate-groups", + Dict{String,Any}("GroupNames" => GroupNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)?operation=disassociate-signin-delegate-groups", - Dict{String,Any}("GroupNames" => GroupNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_signin_delegate_groups_from_account( GroupNames, accountId, @@ -3562,14 +3397,12 @@ supported licenses. - `account_id`: The Amazon Chime account ID. """ -function get_account(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/accounts/$(accountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_account(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/accounts/$(accountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_account( accountId, params::AbstractDict{String}; @@ -3596,14 +3429,12 @@ Policies Page in the Amazon Chime Administration Guide. - `account_id`: The Amazon Chime account ID. """ -function get_account_settings(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/accounts/$(accountId)/settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_account_settings(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/accounts/$(accountId)/settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_account_settings( accountId, params::AbstractDict{String}; @@ -3632,16 +3463,14 @@ Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the AppInstance. """ -function get_app_instance_retention_settings( +get_app_instance_retention_settings( appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/app-instances/$(appInstanceArn)/retention-settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/app-instances/$(appInstanceArn)/retention-settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_app_instance_retention_settings( appInstanceArn, params::AbstractDict{String}; @@ -3670,16 +3499,14 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the AppInstance. """ -function get_app_instance_streaming_configurations( +get_app_instance_streaming_configurations( appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/app-instances/$(appInstanceArn)/streaming-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/app-instances/$(appInstanceArn)/streaming-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_app_instance_streaming_configurations( appInstanceArn, params::AbstractDict{String}; @@ -3710,16 +3537,13 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function get_attendee( - attendeeId, meetingId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +get_attendee(attendeeId, meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/meetings/$(meetingId)/attendees/$(attendeeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_attendee( attendeeId, meetingId, @@ -3747,14 +3571,12 @@ display name. - `bot_id`: The bot ID. """ -function get_bot(accountId, botId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/accounts/$(accountId)/bots/$(botId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_bot(accountId, botId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/accounts/$(accountId)/bots/$(botId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_bot( accountId, botId, @@ -3789,16 +3611,14 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function get_channel_message( +get_channel_message( channelArn, messageId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/channels/$(channelArn)/messages/$(messageId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/channels/$(channelArn)/messages/$(messageId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_channel_message( channelArn, messageId, @@ -3826,16 +3646,14 @@ as an HTTPS endpoint or Lambda function ARN. - `bot_id`: The bot ID. """ -function get_events_configuration( +get_events_configuration( accountId, botId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/accounts/$(accountId)/bots/$(botId)/events-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/accounts/$(accountId)/bots/$(botId)/events-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_events_configuration( accountId, botId, @@ -3859,9 +3677,8 @@ Retrieves global settings for the administrator's AWS account, such as Amazon Ch Business Calling and Amazon Chime Voice Connector settings. """ -function get_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime("GET", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime("GET", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_global_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3884,16 +3701,14 @@ Developer Guide. - `media_pipeline_id`: The ID of the pipeline that you want to get. """ -function get_media_capture_pipeline( +get_media_capture_pipeline( mediaPipelineId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/media-capture-pipelines/$(mediaPipelineId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/media-capture-pipelines/$(mediaPipelineId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_media_capture_pipeline( mediaPipelineId, params::AbstractDict{String}; @@ -3923,14 +3738,12 @@ Using the Amazon Chime SDK in the Amazon Chime SDK Developer Guide . - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function get_meeting(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/meetings/$(meetingId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_meeting(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/meetings/$(meetingId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_meeting( meetingId, params::AbstractDict{String}; @@ -3956,16 +3769,13 @@ migrating to a dedicated namespace. For more information, refer to Migrating fro Amazon Chime namespace in the Amazon Chime SDK Developer Guide. """ -function get_messaging_session_endpoint(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +get_messaging_session_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/endpoints/messaging-session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_messaging_session_endpoint( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3989,14 +3799,12 @@ and product type. - `phone_number_id`: The phone number ID. """ -function get_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/phone-numbers/$(phoneNumberId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/phone-numbers/$(phoneNumberId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_phone_number( phoneNumberId, params::AbstractDict{String}; @@ -4022,16 +3830,14 @@ timestamp, phone numbers in E.164 format, product type, and order status. - `phone_number_order_id`: The ID for the phone number order. """ -function get_phone_number_order( +get_phone_number_order( phoneNumberOrderId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/phone-number-orders/$(phoneNumberOrderId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/phone-number-orders/$(phoneNumberOrderId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_phone_number_order( phoneNumberOrderId, params::AbstractDict{String}; @@ -4054,14 +3860,12 @@ Retrieves the phone number settings for the administrator's AWS account, such as default outbound calling name. """ -function get_phone_number_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/settings/phone-number"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_phone_number_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/settings/phone-number"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_phone_number_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4089,16 +3893,14 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime voice connector ID. """ -function get_proxy_session( +get_proxy_session( proxySessionId, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_proxy_session( proxySessionId, voiceConnectorId, @@ -4126,16 +3928,13 @@ Chime Administration Guide. - `account_id`: The Amazon Chime account ID. """ -function get_retention_settings( - accountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +get_retention_settings(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/accounts/$(accountId)/retention-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_retention_settings( accountId, params::AbstractDict{String}; @@ -4162,14 +3961,12 @@ account. - `room_id`: The room ID. """ -function get_room(accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/accounts/$(accountId)/rooms/$(roomId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_room(accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/accounts/$(accountId)/rooms/$(roomId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_room( accountId, roomId, @@ -4199,16 +3996,14 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid - `sip_media_application_id`: The SIP media application ID. """ -function get_sip_media_application( +get_sip_media_application( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/sip-media-applications/$(sipMediaApplicationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/sip-media-applications/$(sipMediaApplicationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sip_media_application( sipMediaApplicationId, params::AbstractDict{String}; @@ -4237,16 +4032,14 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid - `sip_media_application_id`: The SIP media application ID. """ -function get_sip_media_application_logging_configuration( +get_sip_media_application_logging_configuration( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/sip-media-applications/$(sipMediaApplicationId)/logging-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/sip-media-applications/$(sipMediaApplicationId)/logging-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sip_media_application_logging_configuration( sipMediaApplicationId, params::AbstractDict{String}; @@ -4275,14 +4068,12 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `sip_rule_id`: The SIP rule ID. """ -function get_sip_rule(sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/sip-rules/$(sipRuleId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_sip_rule(sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/sip-rules/$(sipRuleId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_sip_rule( sipRuleId, params::AbstractDict{String}; @@ -4310,14 +4101,12 @@ user ID, use the ListUsers action, and then filter by email address. - `user_id`: The user ID. """ -function get_user(accountId, userId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/accounts/$(accountId)/users/$(userId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_user(accountId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/accounts/$(accountId)/users/$(userId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_user( accountId, userId, @@ -4344,16 +4133,13 @@ Retrieves settings for the specified user ID, such as any associated phone numbe - `user_id`: The user ID. """ -function get_user_settings( - accountId, userId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +get_user_settings(accountId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/accounts/$(accountId)/users/$(userId)/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_user_settings( accountId, userId, @@ -4384,16 +4170,13 @@ Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function get_voice_connector( - voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +get_voice_connector(voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/voice-connectors/$(voiceConnectorId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_voice_connector( voiceConnectorId, params::AbstractDict{String}; @@ -4423,16 +4206,14 @@ Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function get_voice_connector_emergency_calling_configuration( +get_voice_connector_emergency_calling_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_emergency_calling_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -4462,16 +4243,14 @@ Chime SDK Developer Guide. - `voice_connector_group_id`: The Amazon Chime Voice Connector group ID. """ -function get_voice_connector_group( +get_voice_connector_group( voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connector-groups/$(voiceConnectorGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connector-groups/$(voiceConnectorGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_group( voiceConnectorGroupId, params::AbstractDict{String}; @@ -4501,16 +4280,14 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function get_voice_connector_logging_configuration( +get_voice_connector_logging_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/logging-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/logging-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_logging_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -4539,16 +4316,14 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function get_voice_connector_origination( +get_voice_connector_origination( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/origination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/origination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_origination( voiceConnectorId, params::AbstractDict{String}; @@ -4577,16 +4352,14 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime voice connector ID. """ -function get_voice_connector_proxy( +get_voice_connector_proxy( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_proxy( voiceConnectorId, params::AbstractDict{String}; @@ -4617,16 +4390,14 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function get_voice_connector_streaming_configuration( +get_voice_connector_streaming_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/streaming-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/streaming-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_streaming_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -4655,16 +4426,14 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function get_voice_connector_termination( +get_voice_connector_termination( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/termination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/termination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_termination( voiceConnectorId, params::AbstractDict{String}; @@ -4694,16 +4463,14 @@ infrastructure for the specified Amazon Chime Voice Connector. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function get_voice_connector_termination_health( +get_voice_connector_termination_health( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/termination/health"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/termination/health"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_termination_health( voiceConnectorId, params::AbstractDict{String}; @@ -4733,17 +4500,14 @@ account. Only Team account types are currently supported for this action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"UserType"`: The user type. """ -function invite_users( - UserEmailList, accountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +invite_users(UserEmailList, accountId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/accounts/$(accountId)/users?operation=add", Dict{String,Any}("UserEmailList" => UserEmailList); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invite_users( UserEmailList, accountId, @@ -4777,9 +4541,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token to use to retrieve the next page of results. - `"user-email"`: User email address with which to filter results. """ -function list_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime("GET", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime("GET", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4807,16 +4570,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token returned from previous API requests until the number of administrators is reached. """ -function list_app_instance_admins( +list_app_instance_admins( appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/app-instances/$(appInstanceArn)/admins"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/app-instances/$(appInstanceArn)/admins"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_instance_admins( appInstanceArn, params::AbstractDict{String}; @@ -4850,17 +4611,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested users are returned. """ -function list_app_instance_users( +list_app_instance_users( app_instance_arn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/app-instance-users", + Dict{String,Any}("app-instance-arn" => app_instance_arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/app-instance-users", - Dict{String,Any}("app-instance-arn" => app_instance_arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_instance_users( app_instance_arn, params::AbstractDict{String}; @@ -4895,11 +4654,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API requests until you reach the maximum number of AppInstances. """ -function list_app_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", "/app-instances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_app_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime("GET", "/app-instances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_app_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4925,16 +4681,14 @@ calls to this API. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function list_attendee_tags( - attendeeId, meetingId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( - "GET", - "/meetings/$(meetingId)/attendees/$(attendeeId)/tags"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_attendee_tags( + attendeeId, meetingId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/meetings/$(meetingId)/attendees/$(attendeeId)/tags"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_attendee_tags( attendeeId, meetingId, @@ -4969,14 +4723,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_attendees(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/meetings/$(meetingId)/attendees"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_attendees(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/meetings/$(meetingId)/attendees"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_attendees( meetingId, params::AbstractDict{String}; @@ -5006,14 +4758,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 10. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_bots(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/accounts/$(accountId)/bots"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_bots(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/accounts/$(accountId)/bots"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_bots( accountId, params::AbstractDict{String}; @@ -5049,14 +4799,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function list_channel_bans(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/channels/$(channelArn)/bans"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_channel_bans(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/channels/$(channelArn)/bans"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_channel_bans( channelArn, params::AbstractDict{String}; @@ -5095,16 +4843,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function list_channel_memberships( - channelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +list_channel_memberships(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/channels/$(channelArn)/memberships"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_channel_memberships( channelArn, params::AbstractDict{String}; @@ -5140,16 +4885,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys memberships is reached. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function list_channel_memberships_for_app_instance_user(; +list_channel_memberships_for_app_instance_user(; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/channels?scope=app-instance-user-memberships"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/channels?scope=app-instance-user-memberships"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channel_memberships_for_app_instance_user( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5191,16 +4934,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys on time created. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function list_channel_messages( - channelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +list_channel_messages(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/channels/$(channelArn)/messages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_channel_messages( channelArn, params::AbstractDict{String}; @@ -5236,16 +4976,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function list_channel_moderators( - channelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +list_channel_moderators(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/channels/$(channelArn)/moderators"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_channel_moderators( channelArn, params::AbstractDict{String}; @@ -5286,15 +5023,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieves private channels. Only an AppInstanceAdmin can retrieve private channels. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function list_channels(app_instance_arn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/channels", - Dict{String,Any}("app-instance-arn" => app_instance_arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_channels(app_instance_arn; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/channels", + Dict{String,Any}("app-instance-arn" => app_instance_arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_channels( app_instance_arn, params::AbstractDict{String}; @@ -5333,16 +5068,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys channels moderated by the user is reached. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function list_channels_moderated_by_app_instance_user(; +list_channels_moderated_by_app_instance_user(; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/channels?scope=app-instance-user-moderated-channels"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/channels?scope=app-instance-user-moderated-channels"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channels_moderated_by_app_instance_user( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5371,14 +5104,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - 99. - `"next-token"`: The token used to retrieve the next page of results. """ -function list_media_capture_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/media-capture-pipelines"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_media_capture_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/media-capture-pipelines"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_media_capture_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5405,14 +5136,12 @@ namespace in the Amazon Chime SDK Developer Guide. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function list_meeting_tags(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/meetings/$(meetingId)/tags"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_meeting_tags(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/meetings/$(meetingId)/tags"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_meeting_tags( meetingId, params::AbstractDict{String}; @@ -5441,9 +5170,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_meetings(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime("GET", "/meetings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_meetings(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime("GET", "/meetings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_meetings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5463,14 +5191,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_phone_number_orders(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/phone-number-orders"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_phone_number_orders(; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/phone-number-orders"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_phone_number_orders( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5499,11 +5225,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"product-type"`: The phone number product type. - `"status"`: The phone number status. """ -function list_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", "/phone-numbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime("GET", "/phone-numbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_phone_numbers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5535,16 +5258,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token to use to retrieve the next page of results. - `"status"`: The proxy session status. """ -function list_proxy_sessions( - voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +list_proxy_sessions(voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/voice-connectors/$(voiceConnectorId)/proxy-sessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_proxy_sessions( voiceConnectorId, params::AbstractDict{String}; @@ -5575,16 +5295,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_room_memberships( +list_room_memberships( accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/accounts/$(accountId)/rooms/$(roomId)/memberships"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/accounts/$(accountId)/rooms/$(roomId)/memberships"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_room_memberships( accountId, roomId, @@ -5617,14 +5335,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"member-id"`: The member ID (user ID or bot ID). - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_rooms(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/accounts/$(accountId)/rooms"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_rooms(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/accounts/$(accountId)/rooms"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_rooms( accountId, params::AbstractDict{String}; @@ -5655,14 +5371,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 100. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_sip_media_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/sip-media-applications"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_sip_media_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/sip-media-applications"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_sip_media_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5692,11 +5406,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token to use to retrieve the next page of results. - `"sip-media-application"`: The SIP media application ID. """ -function list_sip_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", "/sip-rules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_sip_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime("GET", "/sip-rules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_sip_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5715,17 +5426,15 @@ Lists supported phone number countries. - `product-type`: The phone number product type. """ -function list_supported_phone_number_countries( +list_supported_phone_number_countries( product_type; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/phone-number-countries", + Dict{String,Any}("product-type" => product_type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/phone-number-countries", - Dict{String,Any}("product-type" => product_type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_supported_phone_number_countries( product_type, params::AbstractDict{String}; @@ -5757,15 +5466,13 @@ Amazon Chime SDK Developer Guide. - `arn`: The resource ARN. """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/tags", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/tags", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5796,14 +5503,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"user-email"`: Optional. The user email address used to filter results. Maximum 1. - `"user-type"`: The user type. """ -function list_users(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/accounts/$(accountId)/users"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_users(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/accounts/$(accountId)/users"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_users( accountId, params::AbstractDict{String}; @@ -5833,14 +5538,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_voice_connector_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", - "/voice-connector-groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_voice_connector_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", + "/voice-connector-groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_voice_connector_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5867,16 +5570,14 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function list_voice_connector_termination_credentials( +list_voice_connector_termination_credentials( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "GET", + "/voice-connectors/$(voiceConnectorId)/termination/credentials"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "GET", - "/voice-connectors/$(voiceConnectorId)/termination/credentials"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_voice_connector_termination_credentials( voiceConnectorId, params::AbstractDict{String}; @@ -5906,11 +5607,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_voice_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "GET", "/voice-connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_voice_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "GET", "/voice-connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_voice_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5934,14 +5633,12 @@ Logs out the specified user from all of the devices they are currently logged in - `user_id`: The user ID. """ -function logout_user(accountId, userId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/accounts/$(accountId)/users/$(userId)?operation=logout"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +logout_user(accountId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/accounts/$(accountId)/users/$(userId)?operation=logout"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function logout_user( accountId, userId, @@ -5972,19 +5669,17 @@ Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the AppInstance. """ -function put_app_instance_retention_settings( +put_app_instance_retention_settings( AppInstanceRetentionSettings, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "PUT", + "/app-instances/$(appInstanceArn)/retention-settings", + Dict{String,Any}("AppInstanceRetentionSettings" => AppInstanceRetentionSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/app-instances/$(appInstanceArn)/retention-settings", - Dict{String,Any}("AppInstanceRetentionSettings" => AppInstanceRetentionSettings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_app_instance_retention_settings( AppInstanceRetentionSettings, appInstanceArn, @@ -6024,21 +5719,19 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the AppInstance. """ -function put_app_instance_streaming_configurations( +put_app_instance_streaming_configurations( AppInstanceStreamingConfigurations, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "PUT", + "/app-instances/$(appInstanceArn)/streaming-configurations", + Dict{String,Any}( + "AppInstanceStreamingConfigurations" => AppInstanceStreamingConfigurations + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/app-instances/$(appInstanceArn)/streaming-configurations", - Dict{String,Any}( - "AppInstanceStreamingConfigurations" => AppInstanceStreamingConfigurations - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_app_instance_streaming_configurations( AppInstanceStreamingConfigurations, appInstanceArn, @@ -6081,16 +5774,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OutboundEventsHTTPSEndpoint"`: HTTPS endpoint that allows the bot to receive outgoing events. """ -function put_events_configuration( +put_events_configuration( accountId, botId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/accounts/$(accountId)/bots/$(botId)/events-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/accounts/$(accountId)/bots/$(botId)/events-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_events_configuration( accountId, botId, @@ -6123,17 +5814,15 @@ Administration Guide. - `account_id`: The Amazon Chime account ID. """ -function put_retention_settings( +put_retention_settings( RetentionSettings, accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/accounts/$(accountId)/retention-settings", + Dict{String,Any}("RetentionSettings" => RetentionSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/accounts/$(accountId)/retention-settings", - Dict{String,Any}("RetentionSettings" => RetentionSettings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_retention_settings( RetentionSettings, accountId, @@ -6170,16 +5859,14 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SipMediaApplicationLoggingConfiguration"`: The actual logging configuration. """ -function put_sip_media_application_logging_configuration( +put_sip_media_application_logging_configuration( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/sip-media-applications/$(sipMediaApplicationId)/logging-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/sip-media-applications/$(sipMediaApplicationId)/logging-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_sip_media_application_logging_configuration( sipMediaApplicationId, params::AbstractDict{String}; @@ -6212,19 +5899,17 @@ Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function put_voice_connector_emergency_calling_configuration( +put_voice_connector_emergency_calling_configuration( EmergencyCallingConfiguration, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "PUT", + "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration", + Dict{String,Any}("EmergencyCallingConfiguration" => EmergencyCallingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration", - Dict{String,Any}("EmergencyCallingConfiguration" => EmergencyCallingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_emergency_calling_configuration( EmergencyCallingConfiguration, voiceConnectorId, @@ -6264,19 +5949,17 @@ refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Devel - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function put_voice_connector_logging_configuration( +put_voice_connector_logging_configuration( LoggingConfiguration, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "PUT", + "/voice-connectors/$(voiceConnectorId)/logging-configuration", + Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/voice-connectors/$(voiceConnectorId)/logging-configuration", - Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_logging_configuration( LoggingConfiguration, voiceConnectorId, @@ -6315,17 +5998,15 @@ Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function put_voice_connector_origination( +put_voice_connector_origination( Origination, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/voice-connectors/$(voiceConnectorId)/origination", + Dict{String,Any}("Origination" => Origination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/voice-connectors/$(voiceConnectorId)/origination", - Dict{String,Any}("Origination" => Origination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_origination( Origination, voiceConnectorId, @@ -6365,23 +6046,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Chime Voice Connector. - `"FallBackPhoneNumber"`: The phone number to route calls to after a proxy session expires. """ -function put_voice_connector_proxy( +put_voice_connector_proxy( DefaultSessionExpiryMinutes, PhoneNumberPoolCountries, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "PUT", + "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy", + Dict{String,Any}( + "DefaultSessionExpiryMinutes" => DefaultSessionExpiryMinutes, + "PhoneNumberPoolCountries" => PhoneNumberPoolCountries, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy", - Dict{String,Any}( - "DefaultSessionExpiryMinutes" => DefaultSessionExpiryMinutes, - "PhoneNumberPoolCountries" => PhoneNumberPoolCountries, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_proxy( DefaultSessionExpiryMinutes, PhoneNumberPoolCountries, @@ -6424,19 +6103,17 @@ Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guid - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function put_voice_connector_streaming_configuration( +put_voice_connector_streaming_configuration( StreamingConfiguration, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "PUT", + "/voice-connectors/$(voiceConnectorId)/streaming-configuration", + Dict{String,Any}("StreamingConfiguration" => StreamingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/voice-connectors/$(voiceConnectorId)/streaming-configuration", - Dict{String,Any}("StreamingConfiguration" => StreamingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_streaming_configuration( StreamingConfiguration, voiceConnectorId, @@ -6475,17 +6152,15 @@ Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function put_voice_connector_termination( +put_voice_connector_termination( Termination, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/voice-connectors/$(voiceConnectorId)/termination", + Dict{String,Any}("Termination" => Termination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/voice-connectors/$(voiceConnectorId)/termination", - Dict{String,Any}("Termination" => Termination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_termination( Termination, voiceConnectorId, @@ -6520,16 +6195,14 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Credentials"`: The termination SIP credentials. """ -function put_voice_connector_termination_credentials( - voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( - "POST", - "/voice-connectors/$(voiceConnectorId)/termination/credentials?operation=put"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_voice_connector_termination_credentials( + voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/voice-connectors/$(voiceConnectorId)/termination/credentials?operation=put"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_voice_connector_termination_credentials( voiceConnectorId, params::AbstractDict{String}; @@ -6564,16 +6237,14 @@ to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer G Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function redact_channel_message( +redact_channel_message( channelArn, messageId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/channels/$(channelArn)/messages/$(messageId)?operation=redact"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/channels/$(channelArn)/messages/$(messageId)?operation=redact"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function redact_channel_message( channelArn, messageId, @@ -6601,16 +6272,14 @@ Redacts the specified message from the specified Amazon Chime conversation. - `message_id`: The message ID. """ -function redact_conversation_message( +redact_conversation_message( accountId, conversationId, messageId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/conversations/$(conversationId)/messages/$(messageId)?operation=redact"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/conversations/$(conversationId)/messages/$(messageId)?operation=redact"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function redact_conversation_message( accountId, conversationId, @@ -6639,16 +6308,14 @@ Redacts the specified message from the specified Amazon Chime channel. - `room_id`: The room ID. """ -function redact_room_message( +redact_room_message( accountId, messageId, roomId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/rooms/$(roomId)/messages/$(messageId)?operation=redact"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/rooms/$(roomId)/messages/$(messageId)?operation=redact"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function redact_room_message( accountId, messageId, @@ -6676,16 +6343,14 @@ Regenerates the security token for a bot. - `bot_id`: The bot ID. """ -function regenerate_security_token( +regenerate_security_token( accountId, botId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/bots/$(botId)?operation=regenerate-security-token"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/bots/$(botId)?operation=regenerate-security-token"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function regenerate_security_token( accountId, botId, @@ -6713,16 +6378,13 @@ the User object with the updated personal meeting PIN. - `user_id`: The user ID. """ -function reset_personal_pin( - accountId, userId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +reset_personal_pin(accountId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/accounts/$(accountId)/users/$(userId)?operation=reset-personal-pin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reset_personal_pin( accountId, userId, @@ -6748,16 +6410,13 @@ Moves a phone number from the Deletion queue back into the phone number Inventor - `phone_number_id`: The phone number. """ -function restore_phone_number( - phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +restore_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/phone-numbers/$(phoneNumberId)?operation=restore"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_phone_number( phoneNumberId, params::AbstractDict{String}; @@ -6796,16 +6455,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"toll-free-prefix"`: The toll-free prefix that you use to filter results. Only applies to the US. """ -function search_available_phone_numbers(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +search_available_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "GET", "/search?type=phone-numbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_available_phone_numbers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6844,27 +6500,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Metadata"`: The optional metadata for each message. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function send_channel_message( +send_channel_message( ClientRequestToken, Content, Persistence, Type, channelArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/channels/$(channelArn)/messages", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "Content" => Content, + "Persistence" => Persistence, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/channels/$(channelArn)/messages", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "Content" => Content, - "Persistence" => Persistence, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_channel_message( ClientRequestToken, Content, @@ -6917,19 +6571,17 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `meeting_id`: The unique ID of the meeting being transcribed. """ -function start_meeting_transcription( +start_meeting_transcription( TranscriptionConfiguration, meetingId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/meetings/$(meetingId)/transcription?operation=start", + Dict{String,Any}("TranscriptionConfiguration" => TranscriptionConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/meetings/$(meetingId)/transcription?operation=start", - Dict{String,Any}("TranscriptionConfiguration" => TranscriptionConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_meeting_transcription( TranscriptionConfiguration, meetingId, @@ -6967,16 +6619,13 @@ Chime SDK Developer Guide. - `meeting_id`: The unique ID of the meeting for which you stop transcription. """ -function stop_meeting_transcription( - meetingId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +stop_meeting_transcription(meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/meetings/$(meetingId)/transcription?operation=stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_meeting_transcription( meetingId, params::AbstractDict{String}; @@ -7005,17 +6654,15 @@ calls to this API. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function tag_attendee( +tag_attendee( Tags, attendeeId, meetingId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/meetings/$(meetingId)/attendees/$(attendeeId)/tags?operation=add", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/meetings/$(meetingId)/attendees/$(attendeeId)/tags?operation=add", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_attendee( Tags, attendeeId, @@ -7047,15 +6694,13 @@ namespace in the Amazon Chime SDK Developer Guide. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function tag_meeting(Tags, meetingId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/meetings/$(meetingId)/tags?operation=add", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_meeting(Tags, meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/meetings/$(meetingId)/tags?operation=add", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_meeting( Tags, meetingId, @@ -7086,15 +6731,13 @@ namespace in the Amazon Chime SDK Developer Guide. - `tags`: The tag key-value pairs. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/tags?operation=tag-resource", - Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/tags?operation=tag-resource", + Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceARN, Tags, @@ -7130,17 +6773,15 @@ calls to this API. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function untag_attendee( +untag_attendee( TagKeys, attendeeId, meetingId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/meetings/$(meetingId)/attendees/$(attendeeId)/tags?operation=delete", + Dict{String,Any}("TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/meetings/$(meetingId)/attendees/$(attendeeId)/tags?operation=delete", - Dict{String,Any}("TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_attendee( TagKeys, attendeeId, @@ -7172,17 +6813,14 @@ namespace in the Amazon Chime SDK Developer Guide. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function untag_meeting( - TagKeys, meetingId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +untag_meeting(TagKeys, meetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/meetings/$(meetingId)/tags?operation=delete", Dict{String,Any}("TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_meeting( TagKeys, meetingId, @@ -7214,17 +6852,14 @@ namespace in the Amazon Chime SDK Developer Guide. - `tag_keys`: The tag keys. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/tags?operation=untag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -7262,14 +6897,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account. - `"Name"`: The new name for the specified Amazon Chime account. """ -function update_account(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/accounts/$(accountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_account(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/accounts/$(accountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_account( accountId, params::AbstractDict{String}; @@ -7297,17 +6930,15 @@ these settings, see Use the Policies Page in the Amazon Chime Administration Gui - `account_id`: The Amazon Chime account ID. """ -function update_account_settings( +update_account_settings( AccountSettings, accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/accounts/$(accountId)/settings", + Dict{String,Any}("AccountSettings" => AccountSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/accounts/$(accountId)/settings", - Dict{String,Any}("AccountSettings" => AccountSettings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_account_settings( AccountSettings, accountId, @@ -7344,17 +6975,15 @@ to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer G Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Metadata"`: The metadata that you want to change. """ -function update_app_instance( +update_app_instance( Name, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/app-instances/$(appInstanceArn)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/app-instances/$(appInstanceArn)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_instance( Name, appInstanceArn, @@ -7388,17 +7017,15 @@ namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Metadata"`: The metadata of the AppInstanceUser. """ -function update_app_instance_user( +update_app_instance_user( Name, appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/app-instance-users/$(appInstanceUserArn)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/app-instance-users/$(appInstanceUserArn)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_instance_user( Name, appInstanceUserArn, @@ -7429,14 +7056,12 @@ in your Amazon Chime Enterprise account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Disabled"`: When true, stops the specified bot from running in your account. """ -function update_bot(accountId, botId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/accounts/$(accountId)/bots/$(botId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_bot(accountId, botId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/accounts/$(accountId)/bots/$(botId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_bot( accountId, botId, @@ -7474,17 +7099,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Metadata"`: The metadata for the update request. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function update_channel( - Mode, Name, channelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +update_channel(Mode, Name, channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "PUT", "/channels/$(channelArn)", Dict{String,Any}("Mode" => Mode, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_channel( Mode, Name, @@ -7524,16 +7146,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Metadata"`: The metadata of the message being updated. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function update_channel_message( +update_channel_message( channelArn, messageId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/channels/$(channelArn)/messages/$(messageId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/channels/$(channelArn)/messages/$(messageId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_channel_message( channelArn, messageId, @@ -7568,16 +7188,13 @@ SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user that makes the API call. """ -function update_channel_read_marker( - channelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +update_channel_read_marker(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "PUT", "/channels/$(channelArn)/readMarker"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_channel_read_marker( channelArn, params::AbstractDict{String}; @@ -7604,9 +7221,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"BusinessCalling"`: The Amazon Chime Business Calling settings. - `"VoiceConnector"`: The Amazon Chime Voice Connector settings. """ -function update_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime("PUT", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +update_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime("PUT", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_global_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7635,16 +7251,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CallingName"`: The outbound calling name associated with the phone number. - `"ProductType"`: The product type. """ -function update_phone_number( - phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +update_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "POST", "/phone-numbers/$(phoneNumberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_phone_number( phoneNumberId, params::AbstractDict{String}; @@ -7671,17 +7284,15 @@ days. Outbound calling names can take up to 72 hours to update. - `calling_name`: The default outbound calling name for the account. """ -function update_phone_number_settings( +update_phone_number_settings( CallingName; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/settings/phone-number", + Dict{String,Any}("CallingName" => CallingName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/settings/phone-number", - Dict{String,Any}("CallingName" => CallingName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_phone_number_settings( CallingName, params::AbstractDict{String}; @@ -7717,20 +7328,18 @@ namespace in the Amazon Chime SDK Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ExpiryMinutes"`: The number of minutes allowed for the proxy session. """ -function update_proxy_session( +update_proxy_session( Capabilities, proxySessionId, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)", + Dict{String,Any}("Capabilities" => Capabilities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)", - Dict{String,Any}("Capabilities" => Capabilities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_proxy_session( Capabilities, proxySessionId, @@ -7764,14 +7373,12 @@ account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The room name. """ -function update_room(accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/accounts/$(accountId)/rooms/$(roomId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_room(accountId, roomId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/accounts/$(accountId)/rooms/$(roomId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_room( accountId, roomId, @@ -7805,16 +7412,14 @@ IDs. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Role"`: The role of the member. """ -function update_room_membership( +update_room_membership( accountId, memberId, roomId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "POST", + "/accounts/$(accountId)/rooms/$(roomId)/memberships/$(memberId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/accounts/$(accountId)/rooms/$(roomId)/memberships/$(memberId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_room_membership( accountId, memberId, @@ -7849,16 +7454,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Endpoints"`: The new set of endpoints for the specified SIP media application. - `"Name"`: The new name for the specified SIP media application. """ -function update_sip_media_application( +update_sip_media_application( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/sip-media-applications/$(sipMediaApplicationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/sip-media-applications/$(sipMediaApplicationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sip_media_application( sipMediaApplicationId, params::AbstractDict{String}; @@ -7891,20 +7494,18 @@ the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. - `transaction_id`: The ID of the call transaction. """ -function update_sip_media_application_call( +update_sip_media_application_call( Arguments, sipMediaApplicationId, transactionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/sip-media-applications/$(sipMediaApplicationId)/calls/$(transactionId)", + Dict{String,Any}("Arguments" => Arguments); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/sip-media-applications/$(sipMediaApplicationId)/calls/$(transactionId)", - Dict{String,Any}("Arguments" => Arguments); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sip_media_application_call( Arguments, sipMediaApplicationId, @@ -7942,17 +7543,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Disabled"`: The new value specified to indicate whether the rule is disabled. - `"TargetApplications"`: The new value of the list of target applications. """ -function update_sip_rule( - Name, sipRuleId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime( +update_sip_rule(Name, sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime( "PUT", "/sip-rules/$(sipRuleId)", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_sip_rule( Name, sipRuleId, @@ -7986,14 +7584,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for the Amazon Chime account that the user belongs to. - `"UserType"`: The user type. """ -function update_user(accountId, userId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime( - "POST", - "/accounts/$(accountId)/users/$(userId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_user(accountId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = chime( + "POST", + "/accounts/$(accountId)/users/$(userId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_user( accountId, userId, @@ -8021,17 +7617,15 @@ Updates the settings for the specified user, such as phone number settings. - `user_id`: The user ID. """ -function update_user_settings( +update_user_settings( UserSettings, accountId, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime( + "PUT", + "/accounts/$(accountId)/users/$(userId)/settings", + Dict{String,Any}("UserSettings" => UserSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/accounts/$(accountId)/users/$(userId)/settings", - Dict{String,Any}("UserSettings" => UserSettings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_settings( UserSettings, accountId, @@ -8067,20 +7661,18 @@ namespace in the Amazon Chime SDK Developer Guide. - `voice_connector_id`: The Amazon Chime Voice Connector ID. """ -function update_voice_connector( +update_voice_connector( Name, RequireEncryption, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "PUT", + "/voice-connectors/$(voiceConnectorId)", + Dict{String,Any}("Name" => Name, "RequireEncryption" => RequireEncryption); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/voice-connectors/$(voiceConnectorId)", - Dict{String,Any}("Name" => Name, "RequireEncryption" => RequireEncryption); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_voice_connector( Name, RequireEncryption, @@ -8120,20 +7712,18 @@ Chime SDK Developer Guide. - `voice_connector_group_id`: The Amazon Chime Voice Connector group ID. """ -function update_voice_connector_group( +update_voice_connector_group( Name, VoiceConnectorItems, voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "PUT", + "/voice-connector-groups/$(voiceConnectorGroupId)", + Dict{String,Any}("Name" => Name, "VoiceConnectorItems" => VoiceConnectorItems); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "PUT", - "/voice-connector-groups/$(voiceConnectorGroupId)", - Dict{String,Any}("Name" => Name, "VoiceConnectorItems" => VoiceConnectorItems); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_voice_connector_group( Name, VoiceConnectorItems, @@ -8181,7 +7771,7 @@ Developer Guide. - `street_number`: The address street number, such as 200 or 2121. """ -function validate_e911_address( +validate_e911_address( AwsAccountId, City, Country, @@ -8190,23 +7780,21 @@ function validate_e911_address( StreetInfo, StreetNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime( + "POST", + "/emergency-calling/address", + Dict{String,Any}( + "AwsAccountId" => AwsAccountId, + "City" => City, + "Country" => Country, + "PostalCode" => PostalCode, + "State" => State, + "StreetInfo" => StreetInfo, + "StreetNumber" => StreetNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime( - "POST", - "/emergency-calling/address", - Dict{String,Any}( - "AwsAccountId" => AwsAccountId, - "City" => City, - "Country" => Country, - "PostalCode" => PostalCode, - "State" => State, - "StreetInfo" => StreetInfo, - "StreetNumber" => StreetNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_e911_address( AwsAccountId, City, diff --git a/src/services/chime_sdk_identity.jl b/src/services/chime_sdk_identity.jl index c0adb6d4e..0445046bc 100644 --- a/src/services/chime_sdk_identity.jl +++ b/src/services/chime_sdk_identity.jl @@ -22,17 +22,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Metadata"`: The metadata of the AppInstance. Limited to a 1KB string in UTF-8. - `"Tags"`: Tags assigned to the AppInstance. """ -function create_app_instance( +create_app_instance( ClientRequestToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "POST", + "/app-instances", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "POST", - "/app-instances", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_instance( ClientRequestToken, Name, @@ -70,17 +68,15 @@ can be promoted to an AppInstanceAdmin role. - `app_instance_arn`: The ARN of the AppInstance. """ -function create_app_instance_admin( +create_app_instance_admin( AppInstanceAdminArn, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "POST", + "/app-instances/$(appInstanceArn)/admins", + Dict{String,Any}("AppInstanceAdminArn" => AppInstanceAdminArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "POST", - "/app-instances/$(appInstanceArn)/admins", - Dict{String,Any}("AppInstanceAdminArn" => AppInstanceAdminArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_instance_admin( AppInstanceAdminArn, appInstanceArn, @@ -121,24 +117,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The user's name. - `"Tags"`: The tags assigned to the AppInstanceBot. """ -function create_app_instance_bot( +create_app_instance_bot( AppInstanceArn, ClientRequestToken, Configuration; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_identity( + "POST", + "/app-instance-bots", + Dict{String,Any}( + "AppInstanceArn" => AppInstanceArn, + "ClientRequestToken" => ClientRequestToken, + "Configuration" => Configuration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "POST", - "/app-instance-bots", - Dict{String,Any}( - "AppInstanceArn" => AppInstanceArn, - "ClientRequestToken" => ClientRequestToken, - "Configuration" => Configuration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_instance_bot( AppInstanceArn, ClientRequestToken, @@ -186,26 +180,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Metadata"`: The request's metadata. Limited to a 1KB string in UTF-8. - `"Tags"`: Tags assigned to the AppInstanceUser. """ -function create_app_instance_user( +create_app_instance_user( AppInstanceArn, AppInstanceUserId, ClientRequestToken, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_identity( + "POST", + "/app-instance-users", + Dict{String,Any}( + "AppInstanceArn" => AppInstanceArn, + "AppInstanceUserId" => AppInstanceUserId, + "ClientRequestToken" => ClientRequestToken, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "POST", - "/app-instance-users", - Dict{String,Any}( - "AppInstanceArn" => AppInstanceArn, - "AppInstanceUserId" => AppInstanceUserId, - "ClientRequestToken" => ClientRequestToken, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_instance_user( AppInstanceArn, AppInstanceUserId, @@ -244,16 +236,13 @@ Deletes an AppInstance and all associated data asynchronously. - `app_instance_arn`: The ARN of the AppInstance. """ -function delete_app_instance( - appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_identity( +delete_app_instance(appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_identity( "DELETE", "/app-instances/$(appInstanceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app_instance( appInstanceArn, params::AbstractDict{String}; @@ -280,16 +269,14 @@ delete the user. - `app_instance_arn`: The ARN of the AppInstance. """ -function delete_app_instance_admin( +delete_app_instance_admin( appInstanceAdminArn, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "DELETE", + "/app-instances/$(appInstanceArn)/admins/$(appInstanceAdminArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "DELETE", - "/app-instances/$(appInstanceArn)/admins/$(appInstanceAdminArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_instance_admin( appInstanceAdminArn, appInstanceArn, @@ -315,16 +302,14 @@ Deletes an AppInstanceBot. - `app_instance_bot_arn`: The ARN of the AppInstanceBot being deleted. """ -function delete_app_instance_bot( +delete_app_instance_bot( appInstanceBotArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "DELETE", + "/app-instance-bots/$(appInstanceBotArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "DELETE", - "/app-instance-bots/$(appInstanceBotArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_instance_bot( appInstanceBotArn, params::AbstractDict{String}; @@ -349,16 +334,14 @@ Deletes an AppInstanceUser. - `app_instance_user_arn`: The ARN of the user request being deleted. """ -function delete_app_instance_user( +delete_app_instance_user( appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "DELETE", + "/app-instance-users/$(appInstanceUserArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "DELETE", - "/app-instance-users/$(appInstanceUserArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_instance_user( appInstanceUserArn, params::AbstractDict{String}; @@ -384,16 +367,14 @@ Deregisters an AppInstanceUserEndpoint. - `endpoint_id`: The unique identifier of the AppInstanceUserEndpoint. """ -function deregister_app_instance_user_endpoint( +deregister_app_instance_user_endpoint( appInstanceUserArn, endpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "DELETE", + "/app-instance-users/$(appInstanceUserArn)/endpoints/$(endpointId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "DELETE", - "/app-instance-users/$(appInstanceUserArn)/endpoints/$(endpointId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_app_instance_user_endpoint( appInstanceUserArn, endpointId, @@ -419,16 +400,13 @@ Returns the full details of an AppInstance. - `app_instance_arn`: The ARN of the AppInstance. """ -function describe_app_instance( - appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_identity( +describe_app_instance(appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_identity( "GET", "/app-instances/$(appInstanceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_app_instance( appInstanceArn, params::AbstractDict{String}; @@ -454,16 +432,14 @@ Returns the full details of an AppInstanceAdmin. - `app_instance_arn`: The ARN of the AppInstance. """ -function describe_app_instance_admin( +describe_app_instance_admin( appInstanceAdminArn, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instances/$(appInstanceArn)/admins/$(appInstanceAdminArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instances/$(appInstanceArn)/admins/$(appInstanceAdminArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_instance_admin( appInstanceAdminArn, appInstanceArn, @@ -489,16 +465,14 @@ The AppInstanceBot's information. - `app_instance_bot_arn`: The ARN of the AppInstanceBot. """ -function describe_app_instance_bot( +describe_app_instance_bot( appInstanceBotArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instance-bots/$(appInstanceBotArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instance-bots/$(appInstanceBotArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_instance_bot( appInstanceBotArn, params::AbstractDict{String}; @@ -523,16 +497,14 @@ Returns the full details of an AppInstanceUser. - `app_instance_user_arn`: The ARN of the AppInstanceUser. """ -function describe_app_instance_user( +describe_app_instance_user( appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instance-users/$(appInstanceUserArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instance-users/$(appInstanceUserArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_instance_user( appInstanceUserArn, params::AbstractDict{String}; @@ -558,16 +530,14 @@ Returns the full details of an AppInstanceUserEndpoint. - `endpoint_id`: The unique identifier of the AppInstanceUserEndpoint. """ -function describe_app_instance_user_endpoint( +describe_app_instance_user_endpoint( appInstanceUserArn, endpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instance-users/$(appInstanceUserArn)/endpoints/$(endpointId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instance-users/$(appInstanceUserArn)/endpoints/$(endpointId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_instance_user_endpoint( appInstanceUserArn, endpointId, @@ -593,16 +563,14 @@ Gets the retention settings for an AppInstance. - `app_instance_arn`: The ARN of the AppInstance. """ -function get_app_instance_retention_settings( +get_app_instance_retention_settings( appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instances/$(appInstanceArn)/retention-settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instances/$(appInstanceArn)/retention-settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_app_instance_retention_settings( appInstanceArn, params::AbstractDict{String}; @@ -632,16 +600,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token returned from previous API requests until the number of administrators is reached. """ -function list_app_instance_admins( +list_app_instance_admins( appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instances/$(appInstanceArn)/admins"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instances/$(appInstanceArn)/admins"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_instance_admins( appInstanceArn, params::AbstractDict{String}; @@ -671,17 +637,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested bots are returned. """ -function list_app_instance_bots( +list_app_instance_bots( app_instance_arn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instance-bots", + Dict{String,Any}("app-instance-arn" => app_instance_arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instance-bots", - Dict{String,Any}("app-instance-arn" => app_instance_arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_instance_bots( app_instance_arn, params::AbstractDict{String}; @@ -715,16 +679,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested endpoints are returned. """ -function list_app_instance_user_endpoints( +list_app_instance_user_endpoints( appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instance-users/$(appInstanceUserArn)/endpoints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instance-users/$(appInstanceUserArn)/endpoints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_instance_user_endpoints( appInstanceUserArn, params::AbstractDict{String}; @@ -754,17 +716,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested users are returned. """ -function list_app_instance_users( +list_app_instance_users( app_instance_arn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "GET", + "/app-instance-users", + Dict{String,Any}("app-instance-arn" => app_instance_arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "GET", - "/app-instance-users", - Dict{String,Any}("app-instance-arn" => app_instance_arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_instance_users( app_instance_arn, params::AbstractDict{String}; @@ -795,11 +755,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API requests until you reach the maximum number of AppInstances. """ -function list_app_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_identity( +list_app_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_identity( "GET", "/app-instances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_app_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -822,15 +781,14 @@ Lists the tags applied to an Amazon Chime SDK identity resource. - `arn`: The ARN of the resource. """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_identity( +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_identity( "GET", "/tags", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -854,19 +812,17 @@ Sets the amount of time in days that a given AppInstance retains data. - `app_instance_arn`: The ARN of the AppInstance. """ -function put_app_instance_retention_settings( +put_app_instance_retention_settings( AppInstanceRetentionSettings, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_identity( + "PUT", + "/app-instances/$(appInstanceArn)/retention-settings", + Dict{String,Any}("AppInstanceRetentionSettings" => AppInstanceRetentionSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "PUT", - "/app-instances/$(appInstanceArn)/retention-settings", - Dict{String,Any}("AppInstanceRetentionSettings" => AppInstanceRetentionSettings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_app_instance_retention_settings( AppInstanceRetentionSettings, appInstanceArn, @@ -907,16 +863,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ExpirationSettings"`: Settings that control the interval after which an AppInstanceUser is automatically deleted. """ -function put_app_instance_user_expiration_settings( +put_app_instance_user_expiration_settings( appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "PUT", + "/app-instance-users/$(appInstanceUserArn)/expiration-settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "PUT", - "/app-instance-users/$(appInstanceUserArn)/expiration-settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_app_instance_user_expiration_settings( appInstanceUserArn, params::AbstractDict{String}; @@ -957,27 +911,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys endpoint receives no messages. - `"Name"`: The name of the AppInstanceUserEndpoint. """ -function register_app_instance_user_endpoint( +register_app_instance_user_endpoint( ClientRequestToken, EndpointAttributes, ResourceArn, Type, appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_identity( + "POST", + "/app-instance-users/$(appInstanceUserArn)/endpoints", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "EndpointAttributes" => EndpointAttributes, + "ResourceArn" => ResourceArn, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "POST", - "/app-instance-users/$(appInstanceUserArn)/endpoints", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "EndpointAttributes" => EndpointAttributes, - "ResourceArn" => ResourceArn, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_app_instance_user_endpoint( ClientRequestToken, EndpointAttributes, @@ -1018,15 +970,14 @@ Applies the specified tags to the specified Amazon Chime SDK identity resource. - `tags`: The tag key-value pairs. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_identity( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_identity( "POST", "/tags?operation=tag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1059,17 +1010,14 @@ Removes the specified tags from the specified Amazon Chime SDK identity resource - `tag_keys`: The tag keys. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_identity( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_identity( "POST", "/tags?operation=untag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1103,17 +1051,15 @@ Updates AppInstance metadata. - `app_instance_arn`: The ARN of the AppInstance. """ -function update_app_instance( +update_app_instance( Metadata, Name, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "PUT", + "/app-instances/$(appInstanceArn)", + Dict{String,Any}("Metadata" => Metadata, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "PUT", - "/app-instances/$(appInstanceArn)", - Dict{String,Any}("Metadata" => Metadata, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_instance( Metadata, Name, @@ -1149,17 +1095,15 @@ Updates the name and metadata of an AppInstanceBot. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Configuration"`: The configuration for the bot update. """ -function update_app_instance_bot( +update_app_instance_bot( Metadata, Name, appInstanceBotArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "PUT", + "/app-instance-bots/$(appInstanceBotArn)", + Dict{String,Any}("Metadata" => Metadata, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "PUT", - "/app-instance-bots/$(appInstanceBotArn)", - Dict{String,Any}("Metadata" => Metadata, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_instance_bot( Metadata, Name, @@ -1192,17 +1136,15 @@ Updates the details of an AppInstanceUser. You can update names and metadata. - `app_instance_user_arn`: The ARN of the AppInstanceUser. """ -function update_app_instance_user( +update_app_instance_user( Metadata, Name, appInstanceUserArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "PUT", + "/app-instance-users/$(appInstanceUserArn)", + Dict{String,Any}("Metadata" => Metadata, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "PUT", - "/app-instance-users/$(appInstanceUserArn)", - Dict{String,Any}("Metadata" => Metadata, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_instance_user( Metadata, Name, @@ -1241,16 +1183,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the endpoint will receive no messages. - `"Name"`: The name of the AppInstanceUserEndpoint. """ -function update_app_instance_user_endpoint( +update_app_instance_user_endpoint( appInstanceUserArn, endpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_identity( + "PUT", + "/app-instance-users/$(appInstanceUserArn)/endpoints/$(endpointId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_identity( - "PUT", - "/app-instance-users/$(appInstanceUserArn)/endpoints/$(endpointId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_instance_user_endpoint( appInstanceUserArn, endpointId, diff --git a/src/services/chime_sdk_media_pipelines.jl b/src/services/chime_sdk_media_pipelines.jl index 912d33f5c..2985e5039 100644 --- a/src/services/chime_sdk_media_pipelines.jl +++ b/src/services/chime_sdk_media_pipelines.jl @@ -26,27 +26,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys API request idempotent. Use a unique token for each media pipeline request. - `"Tags"`: The tag key-value pairs. """ -function create_media_capture_pipeline( +create_media_capture_pipeline( SinkArn, SinkType, SourceArn, SourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_media_pipelines( + "POST", + "/sdk-media-capture-pipelines", + Dict{String,Any}( + "SinkArn" => SinkArn, + "SinkType" => SinkType, + "SourceArn" => SourceArn, + "SourceType" => SourceType, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/sdk-media-capture-pipelines", - Dict{String,Any}( - "SinkArn" => SinkArn, - "SinkType" => SinkType, - "SourceArn" => SourceArn, - "SourceType" => SourceType, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_media_capture_pipeline( SinkArn, SinkType, @@ -92,19 +90,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys API request idempotent. Use a unique token for each media concatenation pipeline request. - `"Tags"`: The tags associated with the media concatenation pipeline. """ -function create_media_concatenation_pipeline( +create_media_concatenation_pipeline( Sinks, Sources; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "POST", + "/sdk-media-concatenation-pipelines", + Dict{String,Any}( + "Sinks" => Sinks, "Sources" => Sources, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/sdk-media-concatenation-pipelines", - Dict{String,Any}( - "Sinks" => Sinks, "Sources" => Sources, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_media_concatenation_pipeline( Sinks, Sources, @@ -153,22 +149,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys S3RecordingSinkConfiguration. - `"Tags"`: The tags assigned to the media insights pipeline. """ -function create_media_insights_pipeline( +create_media_insights_pipeline( MediaInsightsPipelineConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_media_pipelines( + "POST", + "/media-insights-pipelines", + Dict{String,Any}( + "MediaInsightsPipelineConfigurationArn" => + MediaInsightsPipelineConfigurationArn, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/media-insights-pipelines", - Dict{String,Any}( - "MediaInsightsPipelineConfigurationArn" => - MediaInsightsPipelineConfigurationArn, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_media_insights_pipeline( MediaInsightsPipelineConfigurationArn, params::AbstractDict{String}; @@ -216,26 +210,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys media insights pipeline configuration. - `"Tags"`: The tags assigned to the media insights pipeline configuration. """ -function create_media_insights_pipeline_configuration( +create_media_insights_pipeline_configuration( Elements, MediaInsightsPipelineConfigurationName, ResourceAccessRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_media_pipelines( + "POST", + "/media-insights-pipeline-configurations", + Dict{String,Any}( + "Elements" => Elements, + "MediaInsightsPipelineConfigurationName" => + MediaInsightsPipelineConfigurationName, + "ResourceAccessRoleArn" => ResourceAccessRoleArn, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/media-insights-pipeline-configurations", - Dict{String,Any}( - "Elements" => Elements, - "MediaInsightsPipelineConfigurationName" => - MediaInsightsPipelineConfigurationName, - "ResourceAccessRoleArn" => ResourceAccessRoleArn, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_media_insights_pipeline_configuration( Elements, MediaInsightsPipelineConfigurationName, @@ -279,19 +271,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: The token assigned to the client making the request. - `"Tags"`: The tags associated with the media live connector pipeline. """ -function create_media_live_connector_pipeline( +create_media_live_connector_pipeline( Sinks, Sources; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "POST", + "/sdk-media-live-connector-pipelines", + Dict{String,Any}( + "Sinks" => Sinks, "Sources" => Sources, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/sdk-media-live-connector-pipelines", - Dict{String,Any}( - "Sinks" => Sinks, "Sources" => Sources, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_media_live_connector_pipeline( Sinks, Sources, @@ -321,32 +311,40 @@ end create_media_pipeline_kinesis_video_stream_pool(pool_name, stream_configuration) create_media_pipeline_kinesis_video_stream_pool(pool_name, stream_configuration, params::Dict{String,<:Any}) -Creates an Kinesis video stream pool for the media pipeline. +Creates an Amazon Kinesis Video Stream pool for use with media stream pipelines. If a +meeting uses an opt-in Region as its MediaRegion, the KVS stream must be in that same +Region. For example, if a meeting uses the af-south-1 Region, the KVS stream must also be +in af-south-1. However, if the meeting uses a Region that AWS turns on by default, the KVS +stream can be in any available Region, including an opt-in Region. For example, if the +meeting uses ca-central-1, the KVS stream can be in eu-west-2, us-east-1, af-south-1, or +any other Region that the Amazon Chime SDK supports. To learn which AWS Region a meeting +uses, call the GetMeeting API and use the MediaRegion parameter from the response. For more +information about opt-in Regions, refer to Available Regions in the Amazon Chime SDK +Developer Guide, and Specify which AWS Regions your account can use, in the AWS Account +Management Reference Guide. # Arguments -- `pool_name`: The name of the video stream pool. -- `stream_configuration`: The configuration settings for the video stream. +- `pool_name`: The name of the pool. +- `stream_configuration`: The configuration settings for the stream. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: The token assigned to the client making the request. -- `"Tags"`: The tags assigned to the video stream pool. +- `"Tags"`: The tags assigned to the stream pool. """ -function create_media_pipeline_kinesis_video_stream_pool( +create_media_pipeline_kinesis_video_stream_pool( PoolName, StreamConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "POST", + "/media-pipeline-kinesis-video-stream-pools", + Dict{String,Any}( + "PoolName" => PoolName, + "StreamConfiguration" => StreamConfiguration, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/media-pipeline-kinesis-video-stream-pools", - Dict{String,Any}( - "PoolName" => PoolName, - "StreamConfiguration" => StreamConfiguration, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_media_pipeline_kinesis_video_stream_pool( PoolName, StreamConfiguration, @@ -387,19 +385,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: The token assigned to the client making the request. - `"Tags"`: The tags assigned to the media pipeline. """ -function create_media_stream_pipeline( +create_media_stream_pipeline( Sinks, Sources; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "POST", + "/sdk-media-stream-pipelines", + Dict{String,Any}( + "Sinks" => Sinks, "Sources" => Sources, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/sdk-media-stream-pipelines", - Dict{String,Any}( - "Sinks" => Sinks, "Sources" => Sources, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_media_stream_pipeline( Sinks, Sources, @@ -435,16 +431,14 @@ Deletes the media pipeline. - `media_pipeline_id`: The ID of the media pipeline being deleted. """ -function delete_media_capture_pipeline( +delete_media_capture_pipeline( mediaPipelineId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "DELETE", + "/sdk-media-capture-pipelines/$(mediaPipelineId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "DELETE", - "/sdk-media-capture-pipelines/$(mediaPipelineId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_media_capture_pipeline( mediaPipelineId, params::AbstractDict{String}; @@ -470,16 +464,14 @@ Deletes the specified configuration settings. the name and ARN of the media insights pipeline configuration. """ -function delete_media_insights_pipeline_configuration( +delete_media_insights_pipeline_configuration( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "DELETE", + "/media-insights-pipeline-configurations/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "DELETE", - "/media-insights-pipeline-configurations/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_media_insights_pipeline_configuration( identifier, params::AbstractDict{String}; @@ -504,16 +496,13 @@ Deletes the media pipeline. - `media_pipeline_id`: The ID of the media pipeline to delete. """ -function delete_media_pipeline( - mediaPipelineId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_media_pipelines( +delete_media_pipeline(mediaPipelineId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_media_pipelines( "DELETE", "/sdk-media-pipelines/$(mediaPipelineId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_media_pipeline( mediaPipelineId, params::AbstractDict{String}; @@ -532,22 +521,21 @@ end delete_media_pipeline_kinesis_video_stream_pool(identifier) delete_media_pipeline_kinesis_video_stream_pool(identifier, params::Dict{String,<:Any}) -Deletes an Kinesis video stream pool. +Deletes an Amazon Kinesis Video Stream pool. # Arguments -- `identifier`: The ID of the pool being deleted. +- `identifier`: The unique identifier of the requested resource. Valid values include the + name and ARN of the media pipeline Kinesis Video Stream pool. """ -function delete_media_pipeline_kinesis_video_stream_pool( +delete_media_pipeline_kinesis_video_stream_pool( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "DELETE", + "/media-pipeline-kinesis-video-stream-pools/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "DELETE", - "/media-pipeline-kinesis-video-stream-pools/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_media_pipeline_kinesis_video_stream_pool( identifier, params::AbstractDict{String}; @@ -572,16 +560,14 @@ Gets an existing media pipeline. - `media_pipeline_id`: The ID of the pipeline that you want to get. """ -function get_media_capture_pipeline( +get_media_capture_pipeline( mediaPipelineId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "GET", + "/sdk-media-capture-pipelines/$(mediaPipelineId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "GET", - "/sdk-media-capture-pipelines/$(mediaPipelineId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_media_capture_pipeline( mediaPipelineId, params::AbstractDict{String}; @@ -607,16 +593,14 @@ Gets the configuration settings for a media insights pipeline. name and ARN of the media insights pipeline configuration. """ -function get_media_insights_pipeline_configuration( +get_media_insights_pipeline_configuration( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "GET", + "/media-insights-pipeline-configurations/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "GET", - "/media-insights-pipeline-configurations/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_media_insights_pipeline_configuration( identifier, params::AbstractDict{String}; @@ -641,16 +625,13 @@ Gets an existing media pipeline. - `media_pipeline_id`: The ID of the pipeline that you want to get. """ -function get_media_pipeline( - mediaPipelineId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_media_pipelines( +get_media_pipeline(mediaPipelineId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_media_pipelines( "GET", "/sdk-media-pipelines/$(mediaPipelineId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_media_pipeline( mediaPipelineId, params::AbstractDict{String}; @@ -672,19 +653,18 @@ end Gets an Kinesis video stream pool. # Arguments -- `identifier`: The ID of the video stream pool. +- `identifier`: The unique identifier of the requested resource. Valid values include the + name and ARN of the media pipeline Kinesis Video Stream pool. """ -function get_media_pipeline_kinesis_video_stream_pool( +get_media_pipeline_kinesis_video_stream_pool( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "GET", + "/media-pipeline-kinesis-video-stream-pools/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "GET", - "/media-pipeline-kinesis-video-stream-pools/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_media_pipeline_kinesis_video_stream_pool( identifier, params::AbstractDict{String}; @@ -711,16 +691,14 @@ Retrieves the details of the specified speaker search task. - `speaker_search_task_id`: The ID of the speaker search task. """ -function get_speaker_search_task( +get_speaker_search_task( identifier, speakerSearchTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "GET", + "/media-insights-pipelines/$(identifier)/speaker-search-tasks/$(speakerSearchTaskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "GET", - "/media-insights-pipelines/$(identifier)/speaker-search-tasks/$(speakerSearchTaskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_speaker_search_task( identifier, speakerSearchTaskId, @@ -748,16 +726,14 @@ Retrieves the details of a voice tone analysis task. - `voice_tone_analysis_task_id`: The ID of the voice tone analysis task. """ -function get_voice_tone_analysis_task( +get_voice_tone_analysis_task( identifier, voiceToneAnalysisTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "GET", + "/media-insights-pipelines/$(identifier)/voice-tone-analysis-tasks/$(voiceToneAnalysisTaskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "GET", - "/media-insights-pipelines/$(identifier)/voice-tone-analysis-tasks/$(voiceToneAnalysisTaskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_tone_analysis_task( identifier, voiceToneAnalysisTaskId, @@ -785,14 +761,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - 99. - `"next-token"`: The token used to retrieve the next page of results. """ -function list_media_capture_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_media_pipelines( +list_media_capture_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_media_pipelines( "GET", "/sdk-media-capture-pipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_media_capture_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -816,16 +791,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token used to return the next page of results. """ -function list_media_insights_pipeline_configurations(; +list_media_insights_pipeline_configurations(; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "GET", + "/media-insights-pipeline-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "GET", - "/media-insights-pipeline-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_media_insights_pipeline_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -849,16 +822,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token used to return the next page of results. """ -function list_media_pipeline_kinesis_video_stream_pools(; +list_media_pipeline_kinesis_video_stream_pools(; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "GET", + "/media-pipeline-kinesis-video-stream-pools"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "GET", - "/media-pipeline-kinesis-video-stream-pools"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_media_pipeline_kinesis_video_stream_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -883,14 +854,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - 99. - `"next-token"`: The token used to retrieve the next page of results. """ -function list_media_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_media_pipelines( +list_media_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_media_pipelines( "GET", "/sdk-media-pipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_media_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -914,15 +884,14 @@ Lists the tags available for a media pipeline. pipeline's region, resource ID, and pipeline ID. """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_media_pipelines( +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_media_pipelines( "GET", "/tags", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -956,20 +925,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KinesisVideoStreamSourceTaskConfiguration"`: The task configuration for the Kinesis video stream source of the media insights pipeline. """ -function start_speaker_search_task( +start_speaker_search_task( VoiceProfileDomainArn, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "POST", + "/media-insights-pipelines/$(identifier)/speaker-search-tasks?operation=start", + Dict{String,Any}( + "VoiceProfileDomainArn" => VoiceProfileDomainArn, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/media-insights-pipelines/$(identifier)/speaker-search-tasks?operation=start", - Dict{String,Any}( - "VoiceProfileDomainArn" => VoiceProfileDomainArn, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_speaker_search_task( VoiceProfileDomainArn, identifier, @@ -1016,19 +983,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KinesisVideoStreamSourceTaskConfiguration"`: The task configuration for the Kinesis video stream source of the media insights pipeline. """ -function start_voice_tone_analysis_task( +start_voice_tone_analysis_task( LanguageCode, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "POST", + "/media-insights-pipelines/$(identifier)/voice-tone-analysis-tasks?operation=start", + Dict{String,Any}( + "LanguageCode" => LanguageCode, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/media-insights-pipelines/$(identifier)/voice-tone-analysis-tasks?operation=start", - Dict{String,Any}( - "LanguageCode" => LanguageCode, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_voice_tone_analysis_task( LanguageCode, identifier, @@ -1064,16 +1029,14 @@ Stops a speaker search task. - `speaker_search_task_id`: The speaker search task ID. """ -function stop_speaker_search_task( +stop_speaker_search_task( identifier, speakerSearchTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "POST", + "/media-insights-pipelines/$(identifier)/speaker-search-tasks/$(speakerSearchTaskId)?operation=stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/media-insights-pipelines/$(identifier)/speaker-search-tasks/$(speakerSearchTaskId)?operation=stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_speaker_search_task( identifier, speakerSearchTaskId, @@ -1101,16 +1064,14 @@ Stops a voice tone analysis task. - `voice_tone_analysis_task_id`: The ID of the voice tone analysis task. """ -function stop_voice_tone_analysis_task( +stop_voice_tone_analysis_task( identifier, voiceToneAnalysisTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "POST", + "/media-insights-pipelines/$(identifier)/voice-tone-analysis-tasks/$(voiceToneAnalysisTaskId)?operation=stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "POST", - "/media-insights-pipelines/$(identifier)/voice-tone-analysis-tasks/$(voiceToneAnalysisTaskId)?operation=stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_voice_tone_analysis_task( identifier, voiceToneAnalysisTaskId, @@ -1139,15 +1100,14 @@ region, resource ID, and pipeline ID. - `tags`: The tags associated with the specified media pipeline. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_media_pipelines( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_media_pipelines( "POST", "/tags?operation=tag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1180,17 +1140,14 @@ Removes any tags from a media pipeline. - `tag_keys`: The key/value pairs in the tag that you want to remove. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_media_pipelines( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_media_pipelines( "POST", "/tags?operation=untag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1231,22 +1188,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RealTimeAlertConfiguration"`: The configuration settings for real-time alerts for the media insights pipeline. """ -function update_media_insights_pipeline_configuration( +update_media_insights_pipeline_configuration( Elements, ResourceAccessRoleArn, identifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_media_pipelines( + "PUT", + "/media-insights-pipeline-configurations/$(identifier)", + Dict{String,Any}( + "Elements" => Elements, "ResourceAccessRoleArn" => ResourceAccessRoleArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "PUT", - "/media-insights-pipeline-configurations/$(identifier)", - Dict{String,Any}( - "Elements" => Elements, "ResourceAccessRoleArn" => ResourceAccessRoleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_media_insights_pipeline_configuration( Elements, ResourceAccessRoleArn, @@ -1283,17 +1238,15 @@ Updates the status of a media insights pipeline. the ID and ARN of the media insights pipeline. """ -function update_media_insights_pipeline_status( +update_media_insights_pipeline_status( UpdateStatus, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "PUT", + "/media-insights-pipeline-status/$(identifier)", + Dict{String,Any}("UpdateStatus" => UpdateStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "PUT", - "/media-insights-pipeline-status/$(identifier)", - Dict{String,Any}("UpdateStatus" => UpdateStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_media_insights_pipeline_status( UpdateStatus, identifier, @@ -1315,25 +1268,24 @@ end update_media_pipeline_kinesis_video_stream_pool(identifier) update_media_pipeline_kinesis_video_stream_pool(identifier, params::Dict{String,<:Any}) -Updates an Kinesis video stream pool in a media pipeline. +Updates an Amazon Kinesis Video Stream pool in a media pipeline. # Arguments -- `identifier`: The ID of the video stream pool. +- `identifier`: The unique identifier of the requested resource. Valid values include the + name and ARN of the media pipeline Kinesis Video Stream pool. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"StreamConfiguration"`: The configuration settings for the video stream. """ -function update_media_pipeline_kinesis_video_stream_pool( +update_media_pipeline_kinesis_video_stream_pool( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_media_pipelines( + "PUT", + "/media-pipeline-kinesis-video-stream-pools/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_media_pipelines( - "PUT", - "/media-pipeline-kinesis-video-stream-pools/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_media_pipeline_kinesis_video_stream_pool( identifier, params::AbstractDict{String}; diff --git a/src/services/chime_sdk_meetings.jl b/src/services/chime_sdk_meetings.jl index 217cf3d43..6dd0292df 100644 --- a/src/services/chime_sdk_meetings.jl +++ b/src/services/chime_sdk_meetings.jl @@ -17,17 +17,15 @@ Guide. - `meeting_id`: The Amazon Chime SDK ID of the meeting to which you're adding attendees. """ -function batch_create_attendee( +batch_create_attendee( Attendees, MeetingId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_meetings( + "POST", + "/meetings/$(MeetingId)/attendees?operation=batch-create", + Dict{String,Any}("Attendees" => Attendees); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_meetings( - "POST", - "/meetings/$(MeetingId)/attendees?operation=batch-create", - Dict{String,Any}("Attendees" => Attendees); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_attendee( Attendees, MeetingId, @@ -76,22 +74,20 @@ back-end server. - `meeting_id`: The ID of the meeting associated with the update request. """ -function batch_update_attendee_capabilities_except( +batch_update_attendee_capabilities_except( Capabilities, ExcludedAttendeeIds, MeetingId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_meetings( + "PUT", + "/meetings/$(MeetingId)/attendees/capabilities?operation=batch-update-except", + Dict{String,Any}( + "Capabilities" => Capabilities, "ExcludedAttendeeIds" => ExcludedAttendeeIds + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_meetings( - "PUT", - "/meetings/$(MeetingId)/attendees/capabilities?operation=batch-update-except", - Dict{String,Any}( - "Capabilities" => Capabilities, "ExcludedAttendeeIds" => ExcludedAttendeeIds - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_attendee_capabilities_except( Capabilities, ExcludedAttendeeIds, @@ -154,17 +150,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys content streams, remote attendees can receive those streams, but only after media renegotiation between the client and the Amazon Chime back-end server. """ -function create_attendee( +create_attendee( ExternalUserId, MeetingId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_meetings( + "POST", + "/meetings/$(MeetingId)/attendees", + Dict{String,Any}("ExternalUserId" => ExternalUserId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_meetings( - "POST", - "/meetings/$(MeetingId)/attendees", - Dict{String,Any}("ExternalUserId" => ExternalUserId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_attendee( ExternalUserId, MeetingId, @@ -236,24 +230,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TenantIds"`: A consistent and opaque identifier, created and maintained by the builder to represent a segment of their users. """ -function create_meeting( +create_meeting( ClientRequestToken, ExternalMeetingId, MediaRegion; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_meetings( + "POST", + "/meetings", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "ExternalMeetingId" => ExternalMeetingId, + "MediaRegion" => MediaRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_meetings( - "POST", - "/meetings", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "ExternalMeetingId" => ExternalMeetingId, - "MediaRegion" => MediaRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_meeting( ClientRequestToken, ExternalMeetingId, @@ -315,26 +307,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TenantIds"`: A consistent and opaque identifier, created and maintained by the builder to represent a segment of their users. """ -function create_meeting_with_attendees( +create_meeting_with_attendees( Attendees, ClientRequestToken, ExternalMeetingId, MediaRegion; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_meetings( + "POST", + "/meetings?operation=create-attendees", + Dict{String,Any}( + "Attendees" => Attendees, + "ClientRequestToken" => ClientRequestToken, + "ExternalMeetingId" => ExternalMeetingId, + "MediaRegion" => MediaRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_meetings( - "POST", - "/meetings?operation=create-attendees", - Dict{String,Any}( - "Attendees" => Attendees, - "ClientRequestToken" => ClientRequestToken, - "ExternalMeetingId" => ExternalMeetingId, - "MediaRegion" => MediaRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_meeting_with_attendees( Attendees, ClientRequestToken, @@ -377,16 +367,13 @@ Amazon Chime Developer Guide. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function delete_attendee( - AttendeeId, MeetingId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_meetings( +delete_attendee(AttendeeId, MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "DELETE", "/meetings/$(MeetingId)/attendees/$(AttendeeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_attendee( AttendeeId, MeetingId, @@ -415,14 +402,13 @@ Developer Guide. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function delete_meeting(MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_meetings( +delete_meeting(MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "DELETE", "/meetings/$(MeetingId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_meeting( MeetingId, params::AbstractDict{String}; @@ -450,16 +436,13 @@ Chime Developer Guide. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function get_attendee( - AttendeeId, MeetingId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_meetings( +get_attendee(AttendeeId, MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "GET", "/meetings/$(MeetingId)/attendees/$(AttendeeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_attendee( AttendeeId, MeetingId, @@ -487,14 +470,13 @@ Developer Guide. - `meeting_id`: The Amazon Chime SDK meeting ID. """ -function get_meeting(MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_meetings( +get_meeting(MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "GET", "/meetings/$(MeetingId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_meeting( MeetingId, params::AbstractDict{String}; @@ -524,14 +506,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token to use to retrieve the next page of results. """ -function list_attendees(MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_meetings( +list_attendees(MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "GET", "/meetings/$(MeetingId)/attendees"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_attendees( MeetingId, params::AbstractDict{String}; @@ -556,15 +537,14 @@ Returns a list of the tags available for the specified resource. - `arn`: The ARN of the resource. """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_meetings( +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "GET", "/tags", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -603,19 +583,17 @@ configuring an AI services opt out policy using Amazon Web Services Organization Must contain EngineTranscribeSettings or EngineTranscribeMedicalSettings. """ -function start_meeting_transcription( +start_meeting_transcription( MeetingId, TranscriptionConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_meetings( + "POST", + "/meetings/$(MeetingId)/transcription?operation=start", + Dict{String,Any}("TranscriptionConfiguration" => TranscriptionConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_meetings( - "POST", - "/meetings/$(MeetingId)/transcription?operation=start", - Dict{String,Any}("TranscriptionConfiguration" => TranscriptionConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_meeting_transcription( MeetingId, TranscriptionConfiguration, @@ -660,16 +638,13 @@ out policy using Amazon Web Services Organizations. - `meeting_id`: The unique ID of the meeting for which you stop transcription. """ -function stop_meeting_transcription( - MeetingId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_meetings( +stop_meeting_transcription(MeetingId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "POST", "/meetings/$(MeetingId)/transcription?operation=stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_meeting_transcription( MeetingId, params::AbstractDict{String}; @@ -695,15 +670,14 @@ The resource that supports tags. - `tags`: Lists the requested tags. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_meetings( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "POST", "/tags?operation=tag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -747,17 +721,14 @@ permissions: tag:UntagResource ChimeSDKMeetings:DeleteTags - `tag_keys`: The tag keys being removed from the resources. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_meetings( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_meetings( "POST", "/tags?operation=untag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -808,17 +779,15 @@ renegotiation between the client and the Amazon Chime back-end server. - `meeting_id`: The ID of the meeting associated with the update request. """ -function update_attendee_capabilities( +update_attendee_capabilities( AttendeeId, Capabilities, MeetingId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_meetings( + "PUT", + "/meetings/$(MeetingId)/attendees/$(AttendeeId)/capabilities", + Dict{String,Any}("Capabilities" => Capabilities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_meetings( - "PUT", - "/meetings/$(MeetingId)/attendees/$(AttendeeId)/capabilities", - Dict{String,Any}("Capabilities" => Capabilities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_attendee_capabilities( AttendeeId, Capabilities, diff --git a/src/services/chime_sdk_messaging.jl b/src/services/chime_sdk_messaging.jl index e5495de84..b3d414c20 100644 --- a/src/services/chime_sdk_messaging.jl +++ b/src/services/chime_sdk_messaging.jl @@ -20,23 +20,21 @@ AppInstanceBot that makes the API call as the value in the header. - `x-amz-chime-bearer`: The AppInstanceUserArn of the user making the API call. """ -function associate_channel_flow( +associate_channel_flow( ChannelFlowArn, channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "PUT", + "/channels/$(channelArn)/channel-flow", + Dict{String,Any}( + "ChannelFlowArn" => ChannelFlowArn, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "PUT", - "/channels/$(channelArn)/channel-flow", - Dict{String,Any}( - "ChannelFlowArn" => ChannelFlowArn, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_channel_flow( ChannelFlowArn, channelArn, @@ -85,23 +83,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. This is only supported by moderators. """ -function batch_create_channel_membership( +batch_create_channel_membership( MemberArns, channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channels/$(channelArn)/memberships?operation=batch-create", + Dict{String,Any}( + "MemberArns" => MemberArns, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channels/$(channelArn)/memberships?operation=batch-create", - Dict{String,Any}( - "MemberArns" => MemberArns, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_channel_membership( MemberArns, channelArn, @@ -148,20 +144,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeleteResource"`: When a processor determines that a message needs to be DENIED, pass this parameter with a value of true. """ -function channel_flow_callback( +channel_flow_callback( CallbackId, ChannelMessage, channelArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channels/$(channelArn)?operation=channel-flow-callback", + Dict{String,Any}("CallbackId" => CallbackId, "ChannelMessage" => ChannelMessage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channels/$(channelArn)?operation=channel-flow-callback", - Dict{String,Any}("CallbackId" => CallbackId, "ChannelMessage" => ChannelMessage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function channel_flow_callback( CallbackId, ChannelMessage, @@ -221,26 +215,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the AppInstance. - `"Tags"`: The tags for the creation request. """ -function create_channel( +create_channel( AppInstanceArn, ClientRequestToken, Name, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channels", + Dict{String,Any}( + "AppInstanceArn" => AppInstanceArn, + "ClientRequestToken" => ClientRequestToken, + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channels", - Dict{String,Any}( - "AppInstanceArn" => AppInstanceArn, - "ClientRequestToken" => ClientRequestToken, - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel( AppInstanceArn, ClientRequestToken, @@ -288,23 +280,21 @@ makes the API call as the value in the header. call. """ -function create_channel_ban( +create_channel_ban( MemberArn, channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channels/$(channelArn)/bans", + Dict{String,Any}( + "MemberArn" => MemberArn, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channels/$(channelArn)/bans", - Dict{String,Any}( - "MemberArn" => MemberArn, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel_ban( MemberArn, channelArn, @@ -354,26 +344,24 @@ in the Amazon Chime developer guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags for the creation request. """ -function create_channel_flow( +create_channel_flow( AppInstanceArn, ClientRequestToken, Name, Processors; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channel-flows", + Dict{String,Any}( + "AppInstanceArn" => AppInstanceArn, + "ClientRequestToken" => ClientRequestToken, + "Name" => Name, + "Processors" => Processors, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channel-flows", - Dict{String,Any}( - "AppInstanceArn" => AppInstanceArn, - "ClientRequestToken" => ClientRequestToken, - "Name" => Name, - "Processors" => Processors, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel_flow( AppInstanceArn, ClientRequestToken, @@ -429,25 +417,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubChannelId"`: The ID of the SubChannel in the request. Only required when creating membership in a SubChannel for a moderator in an elastic channel. """ -function create_channel_membership( +create_channel_membership( MemberArn, Type, channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channels/$(channelArn)/memberships", + Dict{String,Any}( + "MemberArn" => MemberArn, + "Type" => Type, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channels/$(channelArn)/memberships", - Dict{String,Any}( - "MemberArn" => MemberArn, - "Type" => Type, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel_membership( MemberArn, Type, @@ -493,23 +479,21 @@ AppInstanceBotof the user that makes the API call as the value in the header. call. """ -function create_channel_moderator( +create_channel_moderator( ChannelModeratorArn, channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channels/$(channelArn)/moderators", + Dict{String,Any}( + "ChannelModeratorArn" => ChannelModeratorArn, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channels/$(channelArn)/moderators", - Dict{String,Any}( - "ChannelModeratorArn" => ChannelModeratorArn, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel_moderator( ChannelModeratorArn, channelArn, @@ -551,19 +535,17 @@ the header. call. """ -function delete_channel( +delete_channel( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "DELETE", + "/channels/$(channelArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "DELETE", - "/channels/$(channelArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel( channelArn, x_amz_chime_bearer, @@ -603,22 +585,20 @@ the value in the header. call. """ -function delete_channel_ban( +delete_channel_ban( channelArn, memberArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "DELETE", + "/channels/$(channelArn)/bans/$(memberArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "DELETE", - "/channels/$(channelArn)/bans/$(memberArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_ban( channelArn, memberArn, @@ -658,16 +638,13 @@ disassociate a channel flow from all channels. - `channel_flow_arn`: The ARN of the channel flow. """ -function delete_channel_flow( - channelFlowArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_messaging( +delete_channel_flow(channelFlowArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_messaging( "DELETE", "/channel-flows/$(channelFlowArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_channel_flow( channelFlowArn, params::AbstractDict{String}; @@ -699,22 +676,20 @@ the AppInstanceUserArn of the user that makes the API call as the value in the h Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"sub-channel-id"`: The ID of the SubChannel in the request. Only for use by moderators. """ -function delete_channel_membership( +delete_channel_membership( channelArn, memberArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "DELETE", + "/channels/$(channelArn)/memberships/$(memberArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "DELETE", - "/channels/$(channelArn)/memberships/$(memberArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_membership( channelArn, memberArn, @@ -760,22 +735,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sub-channel-id"`: The ID of the SubChannel in the request. Only required when deleting messages in a SubChannel that the user belongs to. """ -function delete_channel_message( +delete_channel_message( channelArn, messageId, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "DELETE", + "/channels/$(channelArn)/messages/$(messageId)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "DELETE", - "/channels/$(channelArn)/messages/$(messageId)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_message( channelArn, messageId, @@ -816,22 +789,20 @@ header. call. """ -function delete_channel_moderator( +delete_channel_moderator( channelArn, channelModeratorArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "DELETE", + "/channels/$(channelArn)/moderators/$(channelModeratorArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "DELETE", - "/channels/$(channelArn)/moderators/$(channelModeratorArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_moderator( channelArn, channelModeratorArn, @@ -868,16 +839,14 @@ Streaming messaging data in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the streaming configurations being deleted. """ -function delete_messaging_streaming_configurations( +delete_messaging_streaming_configurations( appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "DELETE", + "/app-instances/$(appInstanceArn)/streaming-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "DELETE", - "/app-instances/$(appInstanceArn)/streaming-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_messaging_streaming_configurations( appInstanceArn, params::AbstractDict{String}; @@ -906,19 +875,17 @@ AppInstanceBot that makes the API call as the value in the header. call. """ -function describe_channel( +describe_channel( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel( channelArn, x_amz_chime_bearer, @@ -958,22 +925,20 @@ the value in the header. call. """ -function describe_channel_ban( +describe_channel_ban( channelArn, memberArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/bans/$(memberArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/bans/$(memberArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_ban( channelArn, memberArn, @@ -1010,16 +975,13 @@ developer API. - `channel_flow_arn`: The ARN of the channel flow. """ -function describe_channel_flow( - channelFlowArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_messaging( +describe_channel_flow(channelFlowArn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_messaging( "GET", "/channel-flows/$(channelFlowArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_channel_flow( channelFlowArn, params::AbstractDict{String}; @@ -1054,22 +1016,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ElasticChannelConfiguration object. Only required to get a user’s SubChannel membership details. """ -function describe_channel_membership( +describe_channel_membership( channelArn, memberArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/memberships/$(memberArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/memberships/$(memberArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_membership( channelArn, memberArn, @@ -1110,23 +1070,21 @@ AppInstanceUser or AppInstanceBot that makes the API call as the value in the he call. """ -function describe_channel_membership_for_app_instance_user( +describe_channel_membership_for_app_instance_user( app_instance_user_arn, channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)?scope=app-instance-user-membership", + Dict{String,Any}( + "app-instance-user-arn" => app_instance_user_arn, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)?scope=app-instance-user-membership", - Dict{String,Any}( - "app-instance-user-arn" => app_instance_user_arn, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_membership_for_app_instance_user( app_instance_user_arn, channelArn, @@ -1168,23 +1126,21 @@ AppInstanceUser or AppInstanceBot that makes the API call as the value in the he call. """ -function describe_channel_moderated_by_app_instance_user( +describe_channel_moderated_by_app_instance_user( app_instance_user_arn, channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)?scope=app-instance-user-moderated-channel", + Dict{String,Any}( + "app-instance-user-arn" => app_instance_user_arn, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)?scope=app-instance-user-moderated-channel", - Dict{String,Any}( - "app-instance-user-arn" => app_instance_user_arn, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_moderated_by_app_instance_user( app_instance_user_arn, channelArn, @@ -1226,22 +1182,20 @@ value in the header. call. """ -function describe_channel_moderator( +describe_channel_moderator( channelArn, channelModeratorArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/moderators/$(channelModeratorArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/moderators/$(channelModeratorArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_channel_moderator( channelArn, channelModeratorArn, @@ -1283,22 +1237,20 @@ the value in the header. - `x-amz-chime-bearer`: The AppInstanceUserArn of the user making the API call. """ -function disassociate_channel_flow( +disassociate_channel_flow( channelArn, channelFlowArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "DELETE", + "/channels/$(channelArn)/channel-flow/$(channelFlowArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "DELETE", - "/channels/$(channelArn)/channel-flow/$(channelFlowArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_channel_flow( channelArn, channelFlowArn, @@ -1343,22 +1295,20 @@ AppInstanceBot that makes the API call as the value in the header. call. """ -function get_channel_membership_preferences( +get_channel_membership_preferences( channelArn, memberArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/memberships/$(memberArn)/preferences", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/memberships/$(memberArn)/preferences", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_channel_membership_preferences( channelArn, memberArn, @@ -1403,22 +1353,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sub-channel-id"`: The ID of the SubChannel in the request. Only required when getting messages in a SubChannel that the user belongs to. """ -function get_channel_message( +get_channel_message( channelArn, messageId, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/messages/$(messageId)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/messages/$(messageId)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_channel_message( channelArn, messageId, @@ -1468,22 +1416,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sub-channel-id"`: The ID of the SubChannel in the request. Only required when getting message status in a SubChannel that the user belongs to. """ -function get_channel_message_status( +get_channel_message_status( channelArn, messageId, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/messages/$(messageId)?scope=message-status", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/messages/$(messageId)?scope=message-status", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_channel_message_status( channelArn, messageId, @@ -1516,16 +1462,13 @@ end The details of the endpoint for the messaging session. """ -function get_messaging_session_endpoint(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_messaging( +get_messaging_session_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_messaging( "GET", "/endpoints/messaging-session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_messaging_session_endpoint( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1549,16 +1492,14 @@ Streaming messaging data in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the streaming configurations. """ -function get_messaging_streaming_configurations( +get_messaging_streaming_configurations( appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/app-instances/$(appInstanceArn)/streaming-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/app-instances/$(appInstanceArn)/streaming-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_messaging_streaming_configurations( appInstanceArn, params::AbstractDict{String}; @@ -1592,19 +1533,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested bans are returned. """ -function list_channel_bans( +list_channel_bans( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/bans", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/bans", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channel_bans( channelArn, x_amz_chime_bearer, @@ -1645,17 +1584,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested channel flows are returned. """ -function list_channel_flows( - app_instance_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_messaging( +list_channel_flows(app_instance_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_messaging( "GET", "/channel-flows", Dict{String,Any}("app-instance-arn" => app_instance_arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_channel_flows( app_instance_arn, params::AbstractDict{String}; @@ -1699,19 +1635,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys as part of ListChannelMemberships if no type is specified. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. """ -function list_channel_memberships( +list_channel_memberships( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/memberships", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/memberships", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channel_memberships( channelArn, x_amz_chime_bearer, @@ -1756,19 +1690,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token returned from previous API requests until the number of channel memberships is reached. """ -function list_channel_memberships_for_app_instance_user( +list_channel_memberships_for_app_instance_user( x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels?scope=app-instance-user-memberships", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels?scope=app-instance-user-memberships", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channel_memberships_for_app_instance_user( x_amz_chime_bearer, params::AbstractDict{String}; @@ -1820,19 +1752,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sub-channel-id"`: The ID of the SubChannel in the request. Only required when listing the messages in a SubChannel that the user belongs to. """ -function list_channel_messages( +list_channel_messages( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/messages", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/messages", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channel_messages( channelArn, x_amz_chime_bearer, @@ -1876,19 +1806,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested moderators are returned. """ -function list_channel_moderators( +list_channel_moderators( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/moderators", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/moderators", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channel_moderators( channelArn, x_amz_chime_bearer, @@ -1937,20 +1865,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"privacy"`: The privacy setting. PUBLIC retrieves all the public channels. PRIVATE retrieves private channels. Only an AppInstanceAdmin can retrieve private channels. """ -function list_channels( +list_channels( app_instance_arn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels", + Dict{String,Any}( + "app-instance-arn" => app_instance_arn, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels", - Dict{String,Any}( - "app-instance-arn" => app_instance_arn, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channels( app_instance_arn, x_amz_chime_bearer, @@ -1993,17 +1919,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested channels are returned. """ -function list_channels_associated_with_channel_flow( +list_channels_associated_with_channel_flow( channel_flow_arn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels?scope=channel-flow-associations", + Dict{String,Any}("channel-flow-arn" => channel_flow_arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels?scope=channel-flow-associations", - Dict{String,Any}("channel-flow-arn" => channel_flow_arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channels_associated_with_channel_flow( channel_flow_arn, params::AbstractDict{String}; @@ -2041,19 +1965,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token returned from previous API requests until the number of channels moderated by the user is reached. """ -function list_channels_moderated_by_app_instance_user( +list_channels_moderated_by_app_instance_user( x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels?scope=app-instance-user-moderated-channels", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels?scope=app-instance-user-moderated-channels", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_channels_moderated_by_app_instance_user( x_amz_chime_bearer, params::AbstractDict{String}; @@ -2094,19 +2016,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token passed by previous API calls until all requested sub-channels are returned. """ -function list_sub_channels( +list_sub_channels( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "GET", + "/channels/$(channelArn)/subchannels", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "GET", - "/channels/$(channelArn)/subchannels", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_sub_channels( channelArn, x_amz_chime_bearer, @@ -2141,15 +2061,14 @@ Lists the tags applied to an Amazon Chime SDK messaging resource. - `arn`: The ARN of the resource. """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_messaging( +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_messaging( "GET", "/tags", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2183,16 +2102,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-chime-bearer"`: The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. """ -function put_channel_expiration_settings( +put_channel_expiration_settings( channelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "PUT", + "/channels/$(channelArn)/expiration-settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "PUT", - "/channels/$(channelArn)/expiration-settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_channel_expiration_settings( channelArn, params::AbstractDict{String}; @@ -2227,24 +2144,22 @@ call as the value in the header. call. """ -function put_channel_membership_preferences( +put_channel_membership_preferences( Preferences, channelArn, memberArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "PUT", + "/channels/$(channelArn)/memberships/$(memberArn)/preferences", + Dict{String,Any}( + "Preferences" => Preferences, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "PUT", - "/channels/$(channelArn)/memberships/$(memberArn)/preferences", - Dict{String,Any}( - "Preferences" => Preferences, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_channel_membership_preferences( Preferences, channelArn, @@ -2284,19 +2199,17 @@ Streaming messaging data in the Amazon Chime SDK Developer Guide. - `app_instance_arn`: The ARN of the streaming configuration. """ -function put_messaging_streaming_configurations( +put_messaging_streaming_configurations( StreamingConfigurations, appInstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "PUT", + "/app-instances/$(appInstanceArn)/streaming-configurations", + Dict{String,Any}("StreamingConfigurations" => StreamingConfigurations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "PUT", - "/app-instances/$(appInstanceArn)/streaming-configurations", - Dict{String,Any}("StreamingConfigurations" => StreamingConfigurations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_messaging_streaming_configurations( StreamingConfigurations, appInstanceArn, @@ -2337,22 +2250,20 @@ makes the API call as the value in the header. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SubChannelId"`: The ID of the SubChannel in the request. """ -function redact_channel_message( +redact_channel_message( channelArn, messageId, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channels/$(channelArn)/messages/$(messageId)?operation=redact", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channels/$(channelArn)/messages/$(messageId)?operation=redact", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function redact_channel_message( channelArn, messageId, @@ -2397,15 +2308,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys channels is reached. - `"x-amz-chime-bearer"`: The AppInstanceUserArn of the user making the API call. """ -function search_channels(Fields; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_messaging( +search_channels(Fields; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_messaging( "POST", "/channels?operation=search", Dict{String,Any}("Fields" => Fields); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_channels( Fields, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2455,7 +2365,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys users who can see targeted messages can take actions on them. However, administrators can delete targeted messages that they can’t see. """ -function send_channel_message( +send_channel_message( ClientRequestToken, Content, Persistence, @@ -2463,21 +2373,19 @@ function send_channel_message( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "POST", + "/channels/$(channelArn)/messages", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "Content" => Content, + "Persistence" => Persistence, + "Type" => Type, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "POST", - "/channels/$(channelArn)/messages", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "Content" => Content, - "Persistence" => Persistence, - "Type" => Type, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_channel_message( ClientRequestToken, Content, @@ -2521,15 +2429,14 @@ Applies the specified tags to the specified Amazon Chime SDK messaging resource. - `tags`: The tag key-value pairs. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_messaging( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_messaging( "POST", "/tags?operation=tag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -2562,17 +2469,14 @@ Removes the specified tags from the specified Amazon Chime SDK messaging resourc - `tag_keys`: The tag keys. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_messaging( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_messaging( "POST", "/tags?operation=untag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -2613,19 +2517,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Mode"`: The mode of the update request. - `"Name"`: The name of the channel. """ -function update_channel( +update_channel( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "PUT", + "/channels/$(channelArn)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "PUT", - "/channels/$(channelArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_channel( channelArn, x_amz_chime_bearer, @@ -2662,17 +2564,15 @@ Updates channel flow attributes. This is a developer API. - `channel_flow_arn`: The ARN of the channel flow. """ -function update_channel_flow( +update_channel_flow( Name, Processors, channelFlowArn; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "PUT", + "/channel-flows/$(channelFlowArn)", + Dict{String,Any}("Name" => Name, "Processors" => Processors); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "PUT", - "/channel-flows/$(channelFlowArn)", - Dict{String,Any}("Name" => Name, "Processors" => Processors); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_channel_flow( Name, Processors, @@ -2715,24 +2615,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubChannelId"`: The ID of the SubChannel in the request. Only required when updating messages in a SubChannel that the user belongs to. """ -function update_channel_message( +update_channel_message( Content, channelArn, messageId, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_messaging( + "PUT", + "/channels/$(channelArn)/messages/$(messageId)", + Dict{String,Any}( + "Content" => Content, + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "PUT", - "/channels/$(channelArn)/messages/$(messageId)", - Dict{String,Any}( - "Content" => Content, - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_channel_message( Content, channelArn, @@ -2774,19 +2672,17 @@ AppInstanceBot that makes the API call as the value in the header. call. """ -function update_channel_read_marker( +update_channel_read_marker( channelArn, x_amz_chime_bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_messaging( + "PUT", + "/channels/$(channelArn)/readMarker", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_messaging( - "PUT", - "/channels/$(channelArn)/readMarker", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-chime-bearer" => x_amz_chime_bearer) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_channel_read_marker( channelArn, x_amz_chime_bearer, diff --git a/src/services/chime_sdk_voice.jl b/src/services/chime_sdk_voice.jl index 2217bfcf8..bdaee80b1 100644 --- a/src/services/chime_sdk_voice.jl +++ b/src/services/chime_sdk_voice.jl @@ -20,17 +20,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Chime SDK Voice Connector and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations. """ -function associate_phone_numbers_with_voice_connector( +associate_phone_numbers_with_voice_connector( E164PhoneNumbers, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(voiceConnectorId)?operation=associate-phone-numbers", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(voiceConnectorId)?operation=associate-phone-numbers", - Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_phone_numbers_with_voice_connector( E164PhoneNumbers, voiceConnectorId, @@ -66,19 +64,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Chime SDK Voice Connector Group and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations. """ -function associate_phone_numbers_with_voice_connector_group( +associate_phone_numbers_with_voice_connector_group( E164PhoneNumbers, voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-connector-groups/$(voiceConnectorGroupId)?operation=associate-phone-numbers", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connector-groups/$(voiceConnectorGroupId)?operation=associate-phone-numbers", - Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_phone_numbers_with_voice_connector_group( E164PhoneNumbers, voiceConnectorGroupId, @@ -110,17 +106,15 @@ remain in the Deletion queue for 7 days before they are deleted permanently. - `phone_number_ids`: List of phone number IDs. """ -function batch_delete_phone_number( +batch_delete_phone_number( PhoneNumberIds; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/phone-numbers?operation=batch-delete", + Dict{String,Any}("PhoneNumberIds" => PhoneNumberIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/phone-numbers?operation=batch-delete", - Dict{String,Any}("PhoneNumberIds" => PhoneNumberIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_phone_number( PhoneNumberIds, params::AbstractDict{String}; @@ -150,17 +144,15 @@ phoneNumberId in a request. - `update_phone_number_request_items`: Lists the phone numbers in the update request. """ -function batch_update_phone_number( +batch_update_phone_number( UpdatePhoneNumberRequestItems; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/phone-numbers?operation=batch-update", + Dict{String,Any}("UpdatePhoneNumberRequestItems" => UpdatePhoneNumberRequestItems); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/phone-numbers?operation=batch-update", - Dict{String,Any}("UpdatePhoneNumberRequestItems" => UpdatePhoneNumberRequestItems); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_phone_number( UpdatePhoneNumberRequestItems, params::AbstractDict{String}; @@ -198,19 +190,15 @@ must use the Amazon Chime SDK SIP media application dial-in product type. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: Specifies the name assigned to one or more phone numbers. """ -function create_phone_number_order( +create_phone_number_order( E164PhoneNumbers, ProductType; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/phone-number-orders", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers, "ProductType" => ProductType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/phone-number-orders", - Dict{String,Any}( - "E164PhoneNumbers" => E164PhoneNumbers, "ProductType" => ProductType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_phone_number_order( E164PhoneNumbers, ProductType, @@ -256,23 +244,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NumberSelectionBehavior"`: The preference for proxy phone number reuse, or stickiness, between the same participants across sessions. """ -function create_proxy_session( +create_proxy_session( Capabilities, ParticipantPhoneNumbers, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(voiceConnectorId)/proxy-sessions", + Dict{String,Any}( + "Capabilities" => Capabilities, + "ParticipantPhoneNumbers" => ParticipantPhoneNumbers, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(voiceConnectorId)/proxy-sessions", - Dict{String,Any}( - "Capabilities" => Capabilities, - "ParticipantPhoneNumbers" => ParticipantPhoneNumbers, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_proxy_session( Capabilities, ParticipantPhoneNumbers, @@ -314,19 +300,15 @@ Managing SIP media applications and rules in the Amazon Chime SDK Administrator Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags assigned to the SIP media application. """ -function create_sip_media_application( +create_sip_media_application( AwsRegion, Endpoints, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/sip-media-applications", + Dict{String,Any}("AwsRegion" => AwsRegion, "Endpoints" => Endpoints, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/sip-media-applications", - Dict{String,Any}( - "AwsRegion" => AwsRegion, "Endpoints" => Endpoints, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sip_media_application( AwsRegion, Endpoints, @@ -370,22 +352,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you could pass key-value pairs such as: \"FirstName\": \"John\", \"LastName\": \"Doe\" - `"SipHeaders"`: The SIP headers added to an outbound call leg. """ -function create_sip_media_application_call( +create_sip_media_application_call( FromPhoneNumber, ToPhoneNumber, sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/sip-media-applications/$(sipMediaApplicationId)/calls", + Dict{String,Any}( + "FromPhoneNumber" => FromPhoneNumber, "ToPhoneNumber" => ToPhoneNumber + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/sip-media-applications/$(sipMediaApplicationId)/calls", - Dict{String,Any}( - "FromPhoneNumber" => FromPhoneNumber, "ToPhoneNumber" => ToPhoneNumber - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sip_media_application_call( FromPhoneNumber, ToPhoneNumber, @@ -436,19 +416,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetApplications"`: List of SIP media applications, with priority and AWS Region. Only one SIP application per AWS Region can be used. """ -function create_sip_rule( +create_sip_rule( Name, TriggerType, TriggerValue; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/sip-rules", + Dict{String,Any}( + "Name" => Name, "TriggerType" => TriggerType, "TriggerValue" => TriggerValue + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/sip-rules", - Dict{String,Any}( - "Name" => Name, "TriggerType" => TriggerType, "TriggerValue" => TriggerValue - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sip_rule( Name, TriggerType, @@ -493,17 +471,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default value: us-east-1 . - `"Tags"`: The tags assigned to the Voice Connector. """ -function create_voice_connector( +create_voice_connector( Name, RequireEncryption; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/voice-connectors", + Dict{String,Any}("Name" => Name, "RequireEncryption" => RequireEncryption); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors", - Dict{String,Any}("Name" => Name, "RequireEncryption" => RequireEncryption); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_voice_connector( Name, RequireEncryption, @@ -542,17 +518,14 @@ in case of availability events. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"VoiceConnectorItems"`: Lists the Voice Connectors that inbound calls are routed to. """ -function create_voice_connector_group( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +create_voice_connector_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "POST", "/voice-connector-groups", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_voice_connector_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -580,17 +553,15 @@ Chime SDK Developer Guide. - `speaker_search_task_id`: The ID of the speaker search task. """ -function create_voice_profile( +create_voice_profile( SpeakerSearchTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/voice-profiles", + Dict{String,Any}("SpeakerSearchTaskId" => SpeakerSearchTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-profiles", - Dict{String,Any}("SpeakerSearchTaskId" => SpeakerSearchTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_voice_profile( SpeakerSearchTaskId, params::AbstractDict{String}; @@ -634,22 +605,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the voice profile domain. - `"Tags"`: The tags assigned to the domain. """ -function create_voice_profile_domain( +create_voice_profile_domain( Name, ServerSideEncryptionConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-profile-domains", + Dict{String,Any}( + "Name" => Name, + "ServerSideEncryptionConfiguration" => ServerSideEncryptionConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-profile-domains", - Dict{String,Any}( - "Name" => Name, - "ServerSideEncryptionConfiguration" => ServerSideEncryptionConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_voice_profile_domain( Name, ServerSideEncryptionConfiguration, @@ -688,16 +657,13 @@ permanently. - `phone_number_id`: The phone number ID. """ -function delete_phone_number( - phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +delete_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "DELETE", "/phone-numbers/$(phoneNumberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_phone_number( phoneNumberId, params::AbstractDict{String}; @@ -723,16 +689,14 @@ Deletes the specified proxy session from the specified Amazon Chime SDK Voice Co - `voice_connector_id`: The Voice Connector ID. """ -function delete_proxy_session( +delete_proxy_session( proxySessionId, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_proxy_session( proxySessionId, voiceConnectorId, @@ -758,16 +722,14 @@ Deletes a SIP media application. - `sip_media_application_id`: The SIP media application ID. """ -function delete_sip_media_application( +delete_sip_media_application( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/sip-media-applications/$(sipMediaApplicationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/sip-media-applications/$(sipMediaApplicationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sip_media_application( sipMediaApplicationId, params::AbstractDict{String}; @@ -792,14 +754,13 @@ Deletes a SIP rule. - `sip_rule_id`: The SIP rule ID. """ -function delete_sip_rule(sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +delete_sip_rule(sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "DELETE", "/sip-rules/$(sipRuleId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_sip_rule( sipRuleId, params::AbstractDict{String}; @@ -825,16 +786,14 @@ Chime SDK Voice Connector must be disassociated from it before it can be deleted - `voice_connector_id`: The Voice Connector ID. """ -function delete_voice_connector( +delete_voice_connector( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-connectors/$(voiceConnectorId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-connectors/$(voiceConnectorId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector( voiceConnectorId, params::AbstractDict{String}; @@ -859,16 +818,14 @@ Deletes the emergency calling details from the specified Amazon Chime SDK Voice - `voice_connector_id`: The Voice Connector ID. """ -function delete_voice_connector_emergency_calling_configuration( +delete_voice_connector_emergency_calling_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_emergency_calling_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -894,16 +851,14 @@ numbers associated with the group must be removed before it can be deleted. - `voice_connector_group_id`: The Voice Connector Group ID. """ -function delete_voice_connector_group( +delete_voice_connector_group( voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-connector-groups/$(voiceConnectorGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-connector-groups/$(voiceConnectorGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_group( voiceConnectorGroupId, params::AbstractDict{String}; @@ -930,16 +885,14 @@ deleting the origination settings. - `voice_connector_id`: The Voice Connector ID. """ -function delete_voice_connector_origination( +delete_voice_connector_origination( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/origination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/origination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_origination( voiceConnectorId, params::AbstractDict{String}; @@ -964,16 +917,14 @@ Deletes the proxy configuration from the specified Amazon Chime SDK Voice Connec - `voice_connector_id`: The Voice Connector ID. """ -function delete_voice_connector_proxy( +delete_voice_connector_proxy( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_proxy( voiceConnectorId, params::AbstractDict{String}; @@ -998,16 +949,14 @@ Deletes a Voice Connector's streaming configuration. - `voice_connector_id`: The Voice Connector ID. """ -function delete_voice_connector_streaming_configuration( +delete_voice_connector_streaming_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/streaming-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/streaming-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_streaming_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -1034,16 +983,14 @@ deleting the termination settings. - `voice_connector_id`: The Voice Connector ID. """ -function delete_voice_connector_termination( +delete_voice_connector_termination( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-connectors/$(voiceConnectorId)/termination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-connectors/$(voiceConnectorId)/termination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_termination( voiceConnectorId, params::AbstractDict{String}; @@ -1071,17 +1018,15 @@ termination. - `voice_connector_id`: The Voice Connector ID. """ -function delete_voice_connector_termination_credentials( +delete_voice_connector_termination_credentials( Usernames, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(voiceConnectorId)/termination/credentials?operation=delete", + Dict{String,Any}("Usernames" => Usernames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(voiceConnectorId)/termination/credentials?operation=delete", - Dict{String,Any}("Usernames" => Usernames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_connector_termination_credentials( Usernames, voiceConnectorId, @@ -1110,16 +1055,13 @@ action is not reversible. - `voice_profile_id`: The voice profile ID. """ -function delete_voice_profile( - VoiceProfileId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +delete_voice_profile(VoiceProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "DELETE", "/voice-profiles/$(VoiceProfileId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_voice_profile( VoiceProfileId, params::AbstractDict{String}; @@ -1144,16 +1086,14 @@ Deletes all voice profiles in the domain. WARNING: This action is not reversible - `voice_profile_domain_id`: The voice profile domain ID. """ -function delete_voice_profile_domain( +delete_voice_profile_domain( VoiceProfileDomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "DELETE", + "/voice-profile-domains/$(VoiceProfileDomainId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "DELETE", - "/voice-profile-domains/$(VoiceProfileDomainId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_profile_domain( VoiceProfileDomainId, params::AbstractDict{String}; @@ -1180,17 +1120,15 @@ Connector. - `voice_connector_id`: The Voice Connector ID. """ -function disassociate_phone_numbers_from_voice_connector( +disassociate_phone_numbers_from_voice_connector( E164PhoneNumbers, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(voiceConnectorId)?operation=disassociate-phone-numbers", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(voiceConnectorId)?operation=disassociate-phone-numbers", - Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_phone_numbers_from_voice_connector( E164PhoneNumbers, voiceConnectorId, @@ -1222,19 +1160,17 @@ Connector group. - `voice_connector_group_id`: The Voice Connector group ID. """ -function disassociate_phone_numbers_from_voice_connector_group( +disassociate_phone_numbers_from_voice_connector_group( E164PhoneNumbers, voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-connector-groups/$(voiceConnectorGroupId)?operation=disassociate-phone-numbers", + Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connector-groups/$(voiceConnectorGroupId)?operation=disassociate-phone-numbers", - Dict{String,Any}("E164PhoneNumbers" => E164PhoneNumbers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_phone_numbers_from_voice_connector_group( E164PhoneNumbers, voiceConnectorGroupId, @@ -1261,11 +1197,9 @@ end Retrieves the global settings for the Amazon Chime SDK Voice Connectors in an AWS account. """ -function get_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( - "GET", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = chime_sdk_voice( + "GET", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_global_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1285,14 +1219,13 @@ and product type. - `phone_number_id`: The phone number ID. """ -function get_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +get_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/phone-numbers/$(phoneNumberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_phone_number( phoneNumberId, params::AbstractDict{String}; @@ -1318,16 +1251,14 @@ timestamp, phone numbers in E.164 format, product type, and order status. - `phone_number_order_id`: The ID of the phone number order . """ -function get_phone_number_order( +get_phone_number_order( phoneNumberOrderId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/phone-number-orders/$(phoneNumberOrderId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/phone-number-orders/$(phoneNumberOrderId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_phone_number_order( phoneNumberOrderId, params::AbstractDict{String}; @@ -1350,14 +1281,13 @@ Retrieves the phone number settings for the administrator's AWS account, such as default outbound calling name. """ -function get_phone_number_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +get_phone_number_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/settings/phone-number"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_phone_number_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1382,16 +1312,14 @@ Connector. - `voice_connector_id`: The Voice Connector ID. """ -function get_proxy_session( +get_proxy_session( proxySessionId, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_proxy_session( proxySessionId, voiceConnectorId, @@ -1418,16 +1346,14 @@ endpoints. - `sip_media_application_id`: The SIP media application ID . """ -function get_sip_media_application( +get_sip_media_application( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/sip-media-applications/$(sipMediaApplicationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/sip-media-applications/$(sipMediaApplicationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sip_media_application( sipMediaApplicationId, params::AbstractDict{String}; @@ -1454,16 +1380,14 @@ refer to the Alexa Smart Properties page. - `sip_media_application_id`: The SIP media application ID. """ -function get_sip_media_application_alexa_skill_configuration( +get_sip_media_application_alexa_skill_configuration( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/sip-media-applications/$(sipMediaApplicationId)/alexa-skill-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/sip-media-applications/$(sipMediaApplicationId)/alexa-skill-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sip_media_application_alexa_skill_configuration( sipMediaApplicationId, params::AbstractDict{String}; @@ -1488,16 +1412,14 @@ Retrieves the logging configuration for the specified SIP media application. - `sip_media_application_id`: The SIP media application ID. """ -function get_sip_media_application_logging_configuration( +get_sip_media_application_logging_configuration( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/sip-media-applications/$(sipMediaApplicationId)/logging-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/sip-media-applications/$(sipMediaApplicationId)/logging-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sip_media_application_logging_configuration( sipMediaApplicationId, params::AbstractDict{String}; @@ -1523,14 +1445,13 @@ endpoints. - `sip_rule_id`: The SIP rule ID. """ -function get_sip_rule(sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +get_sip_rule(sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/sip-rules/$(sipRuleId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_sip_rule( sipRuleId, params::AbstractDict{String}; @@ -1556,18 +1477,16 @@ Retrieves the details of the specified speaker search task. - `voice_connector_id`: The Voice Connector ID. """ -function get_speaker_search_task( +get_speaker_search_task( SpeakerSearchTaskId, VoiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(VoiceConnectorId)/speaker-search-tasks/$(SpeakerSearchTaskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(VoiceConnectorId)/speaker-search-tasks/$(SpeakerSearchTaskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_speaker_search_task( SpeakerSearchTaskId, VoiceConnectorId, @@ -1594,16 +1513,13 @@ timestamps,name, outbound host, and encryption requirements. - `voice_connector_id`: The Voice Connector ID. """ -function get_voice_connector( - voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +get_voice_connector(voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/voice-connectors/$(voiceConnectorId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_voice_connector( voiceConnectorId, params::AbstractDict{String}; @@ -1628,16 +1544,14 @@ Retrieves the emergency calling configuration details for the specified Voice Co - `voice_connector_id`: The Voice Connector ID. """ -function get_voice_connector_emergency_calling_configuration( +get_voice_connector_emergency_calling_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_emergency_calling_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -1663,16 +1577,14 @@ timestamps,name, and associated VoiceConnectorItems. - `voice_connector_group_id`: The Voice Connector group ID. """ -function get_voice_connector_group( +get_voice_connector_group( voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connector-groups/$(voiceConnectorGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connector-groups/$(voiceConnectorGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_group( voiceConnectorGroupId, params::AbstractDict{String}; @@ -1698,16 +1610,14 @@ whether SIP message logs are enabled for sending to Amazon CloudWatch Logs. - `voice_connector_id`: The Voice Connector ID. """ -function get_voice_connector_logging_configuration( +get_voice_connector_logging_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/logging-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/logging-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_logging_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -1732,16 +1642,14 @@ Retrieves the origination settings for the specified Voice Connector. - `voice_connector_id`: The Voice Connector ID. """ -function get_voice_connector_origination( +get_voice_connector_origination( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/origination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/origination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_origination( voiceConnectorId, params::AbstractDict{String}; @@ -1767,16 +1675,14 @@ Connector. - `voice_connector_id`: The Voice Connector ID. """ -function get_voice_connector_proxy( +get_voice_connector_proxy( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_proxy( voiceConnectorId, params::AbstractDict{String}; @@ -1803,16 +1709,14 @@ shows the retention period, in hours, for the Amazon Kinesis data. - `voice_connector_id`: The Voice Connector ID. """ -function get_voice_connector_streaming_configuration( +get_voice_connector_streaming_configuration( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/streaming-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/streaming-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_streaming_configuration( voiceConnectorId, params::AbstractDict{String}; @@ -1837,16 +1741,14 @@ Retrieves the termination setting details for the specified Voice Connector. - `voice_connector_id`: The Voice Connector ID. """ -function get_voice_connector_termination( +get_voice_connector_termination( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/termination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/termination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_termination( voiceConnectorId, params::AbstractDict{String}; @@ -1872,16 +1774,14 @@ infrastructure for the specified Amazon Chime SDK Voice Connector. - `voice_connector_id`: The Voice Connector ID. """ -function get_voice_connector_termination_health( +get_voice_connector_termination_health( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/termination/health"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/termination/health"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_connector_termination_health( voiceConnectorId, params::AbstractDict{String}; @@ -1906,16 +1806,13 @@ Retrieves the details of the specified voice profile. - `voice_profile_id`: The voice profile ID. """ -function get_voice_profile( - VoiceProfileId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +get_voice_profile(VoiceProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/voice-profiles/$(VoiceProfileId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_voice_profile( VoiceProfileId, params::AbstractDict{String}; @@ -1940,16 +1837,14 @@ Retrieves the details of the specified voice profile domain. - `voice_profile_domain_id`: The voice profile domain ID. """ -function get_voice_profile_domain( +get_voice_profile_domain( VoiceProfileDomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-profile-domains/$(VoiceProfileDomainId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-profile-domains/$(VoiceProfileDomainId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_voice_profile_domain( VoiceProfileDomainId, params::AbstractDict{String}; @@ -1977,20 +1872,18 @@ Retrieves the details of a voice tone analysis task. callee (responder). """ -function get_voice_tone_analysis_task( +get_voice_tone_analysis_task( VoiceConnectorId, VoiceToneAnalysisTaskId, - isCaller; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(VoiceConnectorId)/voice-tone-analysis-tasks/$(VoiceToneAnalysisTaskId)", - Dict{String,Any}("isCaller" => isCaller); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + isCaller; + aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(VoiceConnectorId)/voice-tone-analysis-tasks/$(VoiceToneAnalysisTaskId)", + Dict{String,Any}("isCaller" => isCaller); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_voice_tone_analysis_task( VoiceConnectorId, VoiceToneAnalysisTaskId, @@ -2016,16 +1909,14 @@ end Lists the available AWS Regions in which you can create an Amazon Chime SDK Voice Connector. """ -function list_available_voice_connector_regions(; +list_available_voice_connector_regions(; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connector-regions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connector-regions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_available_voice_connector_regions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2049,14 +1940,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token used to retrieve the next page of results. """ -function list_phone_number_orders(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +list_phone_number_orders(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/phone-number-orders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_phone_number_orders( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2085,11 +1975,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"product-type"`: The phone number product types. - `"status"`: The status of your organization's phone numbers. """ -function list_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( - "GET", "/phone-numbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) = chime_sdk_voice( + "GET", "/phone-numbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_phone_numbers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2117,16 +2005,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token used to retrieve the next page of results. - `"status"`: The proxy session status. """ -function list_proxy_sessions( - voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +list_proxy_sessions(voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/voice-connectors/$(voiceConnectorId)/proxy-sessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_proxy_sessions( voiceConnectorId, params::AbstractDict{String}; @@ -2153,14 +2038,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 100. - `"next-token"`: The token used to return the next page of results. """ -function list_sip_media_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +list_sip_media_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/sip-media-applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_sip_media_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2186,11 +2070,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token used to return the next page of results. - `"sip-media-application"`: The SIP media application ID. """ -function list_sip_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( - "GET", "/sip-rules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_sip_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = chime_sdk_voice( + "GET", "/sip-rules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_sip_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2209,17 +2091,15 @@ Lists the countries that you can order phone numbers from. - `product-type`: The phone number product type. """ -function list_supported_phone_number_countries( +list_supported_phone_number_countries( product_type; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/phone-number-countries", + Dict{String,Any}("product-type" => product_type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/phone-number-countries", - Dict{String,Any}("product-type" => product_type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_supported_phone_number_countries( product_type, params::AbstractDict{String}; @@ -2246,15 +2126,14 @@ Returns a list of the tags in a given resource. - `arn`: The resource ARN. """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/tags", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2278,14 +2157,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token used to return the next page of results. """ -function list_voice_connector_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +list_voice_connector_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/voice-connector-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_voice_connector_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2308,16 +2186,14 @@ Lists the SIP credentials for the specified Amazon Chime SDK Voice Connector. - `voice_connector_id`: The Voice Connector ID. """ -function list_voice_connector_termination_credentials( +list_voice_connector_termination_credentials( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-connectors/$(voiceConnectorId)/termination/credentials"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-connectors/$(voiceConnectorId)/termination/credentials"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_voice_connector_termination_credentials( voiceConnectorId, params::AbstractDict{String}; @@ -2343,11 +2219,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token used to return the next page of results. """ -function list_voice_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +list_voice_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/voice-connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_voice_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2371,14 +2246,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return in a single call. - `"next-token"`: The token used to return the next page of results. """ -function list_voice_profile_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +list_voice_profile_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/voice-profile-domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_voice_profile_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2405,17 +2279,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results in the request. - `"next-token"`: The token used to retrieve the next page of results. """ -function list_voice_profiles( +list_voice_profiles( voice_profile_domain_id; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "GET", + "/voice-profiles", + Dict{String,Any}("voice-profile-domain-id" => voice_profile_domain_id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "GET", - "/voice-profiles", - Dict{String,Any}("voice-profile-domain-id" => voice_profile_domain_id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_voice_profiles( voice_profile_domain_id, params::AbstractDict{String}; @@ -2451,16 +2323,14 @@ refer to the Alexa Smart Properties page. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SipMediaApplicationAlexaSkillConfiguration"`: The Alexa Skill configuration. """ -function put_sip_media_application_alexa_skill_configuration( +put_sip_media_application_alexa_skill_configuration( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "PUT", + "/sip-media-applications/$(sipMediaApplicationId)/alexa-skill-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/sip-media-applications/$(sipMediaApplicationId)/alexa-skill-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_sip_media_application_alexa_skill_configuration( sipMediaApplicationId, params::AbstractDict{String}; @@ -2489,16 +2359,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SipMediaApplicationLoggingConfiguration"`: The logging configuration for the specified SIP media application. """ -function put_sip_media_application_logging_configuration( +put_sip_media_application_logging_configuration( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "PUT", + "/sip-media-applications/$(sipMediaApplicationId)/logging-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/sip-media-applications/$(sipMediaApplicationId)/logging-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_sip_media_application_logging_configuration( sipMediaApplicationId, params::AbstractDict{String}; @@ -2524,19 +2392,17 @@ Updates a Voice Connector's emergency calling configuration. - `voice_connector_id`: The Voice Connector ID. """ -function put_voice_connector_emergency_calling_configuration( +put_voice_connector_emergency_calling_configuration( EmergencyCallingConfiguration, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "PUT", + "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration", + Dict{String,Any}("EmergencyCallingConfiguration" => EmergencyCallingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-connectors/$(voiceConnectorId)/emergency-calling-configuration", - Dict{String,Any}("EmergencyCallingConfiguration" => EmergencyCallingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_emergency_calling_configuration( EmergencyCallingConfiguration, voiceConnectorId, @@ -2571,19 +2437,17 @@ Updates a Voice Connector's logging configuration. - `voice_connector_id`: The Voice Connector ID. """ -function put_voice_connector_logging_configuration( +put_voice_connector_logging_configuration( LoggingConfiguration, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "PUT", + "/voice-connectors/$(voiceConnectorId)/logging-configuration", + Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-connectors/$(voiceConnectorId)/logging-configuration", - Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_logging_configuration( LoggingConfiguration, voiceConnectorId, @@ -2616,17 +2480,15 @@ Updates a Voice Connector's origination settings. - `voice_connector_id`: The Voice Connector ID. """ -function put_voice_connector_origination( +put_voice_connector_origination( Origination, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "PUT", + "/voice-connectors/$(voiceConnectorId)/origination", + Dict{String,Any}("Origination" => Origination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-connectors/$(voiceConnectorId)/origination", - Dict{String,Any}("Origination" => Origination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_origination( Origination, voiceConnectorId, @@ -2661,23 +2523,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Chime SDK Voice Connector. - `"FallBackPhoneNumber"`: The phone number to route calls to after a proxy session expires. """ -function put_voice_connector_proxy( +put_voice_connector_proxy( DefaultSessionExpiryMinutes, PhoneNumberPoolCountries, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "PUT", + "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy", + Dict{String,Any}( + "DefaultSessionExpiryMinutes" => DefaultSessionExpiryMinutes, + "PhoneNumberPoolCountries" => PhoneNumberPoolCountries, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-connectors/$(voiceConnectorId)/programmable-numbers/proxy", - Dict{String,Any}( - "DefaultSessionExpiryMinutes" => DefaultSessionExpiryMinutes, - "PhoneNumberPoolCountries" => PhoneNumberPoolCountries, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_proxy( DefaultSessionExpiryMinutes, PhoneNumberPoolCountries, @@ -2714,19 +2574,17 @@ Updates a Voice Connector's streaming configuration settings. - `voice_connector_id`: The Voice Connector ID. """ -function put_voice_connector_streaming_configuration( +put_voice_connector_streaming_configuration( StreamingConfiguration, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "PUT", + "/voice-connectors/$(voiceConnectorId)/streaming-configuration", + Dict{String,Any}("StreamingConfiguration" => StreamingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-connectors/$(voiceConnectorId)/streaming-configuration", - Dict{String,Any}("StreamingConfiguration" => StreamingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_streaming_configuration( StreamingConfiguration, voiceConnectorId, @@ -2759,17 +2617,15 @@ Updates a Voice Connector's termination settings. - `voice_connector_id`: The Voice Connector ID. """ -function put_voice_connector_termination( +put_voice_connector_termination( Termination, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "PUT", + "/voice-connectors/$(voiceConnectorId)/termination", + Dict{String,Any}("Termination" => Termination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-connectors/$(voiceConnectorId)/termination", - Dict{String,Any}("Termination" => Termination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_termination( Termination, voiceConnectorId, @@ -2800,16 +2656,14 @@ Updates a Voice Connector's termination credentials. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Credentials"`: The termination credentials being updated. """ -function put_voice_connector_termination_credentials( +put_voice_connector_termination_credentials( voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(voiceConnectorId)/termination/credentials?operation=put"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(voiceConnectorId)/termination/credentials?operation=put"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_voice_connector_termination_credentials( voiceConnectorId, params::AbstractDict{String}; @@ -2834,16 +2688,13 @@ Restores a deleted phone number. - `phone_number_id`: The ID of the phone number being restored. """ -function restore_phone_number( - phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +restore_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "POST", "/phone-numbers/$(phoneNumberId)?operation=restore"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_phone_number( phoneNumberId, params::AbstractDict{String}; @@ -2880,16 +2731,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"toll-free-prefix"`: Confines a search to just the phone numbers associated with the specified toll-free prefix. """ -function search_available_phone_numbers(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +search_available_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "GET", "/search?type=phone-numbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_available_phone_numbers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2922,22 +2770,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: The unique identifier for the client request. Use a different token for different speaker search tasks. """ -function start_speaker_search_task( +start_speaker_search_task( TransactionId, VoiceConnectorId, VoiceProfileDomainId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(VoiceConnectorId)/speaker-search-tasks", + Dict{String,Any}( + "TransactionId" => TransactionId, "VoiceProfileDomainId" => VoiceProfileDomainId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(VoiceConnectorId)/speaker-search-tasks", - Dict{String,Any}( - "TransactionId" => TransactionId, "VoiceProfileDomainId" => VoiceProfileDomainId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_speaker_search_task( TransactionId, VoiceConnectorId, @@ -2983,20 +2829,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: The unique identifier for the client request. Use a different token for different voice tone analysis tasks. """ -function start_voice_tone_analysis_task( +start_voice_tone_analysis_task( LanguageCode, TransactionId, VoiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(VoiceConnectorId)/voice-tone-analysis-tasks", + Dict{String,Any}("LanguageCode" => LanguageCode, "TransactionId" => TransactionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(VoiceConnectorId)/voice-tone-analysis-tasks", - Dict{String,Any}("LanguageCode" => LanguageCode, "TransactionId" => TransactionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_voice_tone_analysis_task( LanguageCode, TransactionId, @@ -3032,18 +2876,16 @@ Stops a speaker search task. - `voice_connector_id`: The Voice Connector ID. """ -function stop_speaker_search_task( +stop_speaker_search_task( SpeakerSearchTaskId, VoiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(VoiceConnectorId)/speaker-search-tasks/$(SpeakerSearchTaskId)?operation=stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(VoiceConnectorId)/speaker-search-tasks/$(SpeakerSearchTaskId)?operation=stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_speaker_search_task( SpeakerSearchTaskId, VoiceConnectorId, @@ -3070,18 +2912,16 @@ Stops a voice tone analysis task. - `voice_tone_analysis_task_id`: The ID of the voice tone analysis task. """ -function stop_voice_tone_analysis_task( +stop_voice_tone_analysis_task( VoiceConnectorId, VoiceToneAnalysisTaskId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(VoiceConnectorId)/voice-tone-analysis-tasks/$(VoiceToneAnalysisTaskId)?operation=stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(VoiceConnectorId)/voice-tone-analysis-tasks/$(VoiceToneAnalysisTaskId)?operation=stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_voice_tone_analysis_task( VoiceConnectorId, VoiceToneAnalysisTaskId, @@ -3108,15 +2948,14 @@ Adds a tag to the specified resource. - `tags`: A list of the tags being added to the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "POST", "/tags?operation=tag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -3149,17 +2988,14 @@ Removes tags from a resource. - `tag_keys`: The keys of the tags being removed from the resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "POST", "/tags?operation=untag-resource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -3191,11 +3027,10 @@ Updates global settings for the Amazon Chime SDK Voice Connectors in an AWS acco Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"VoiceConnector"`: The Voice Connector settings. """ -function update_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return chime_sdk_voice( +update_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "PUT", "/settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_global_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3225,16 +3060,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: Specifies the updated name assigned to one or more phone numbers. - `"ProductType"`: The product type. """ -function update_phone_number( - phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +update_phone_number(phoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "POST", "/phone-numbers/$(phoneNumberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_phone_number( phoneNumberId, params::AbstractDict{String}; @@ -3261,17 +3093,15 @@ days. Outbound calling names can take up to 72 hours to update. - `calling_name`: The default outbound calling name for the account. """ -function update_phone_number_settings( +update_phone_number_settings( CallingName; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "PUT", + "/settings/phone-number", + Dict{String,Any}("CallingName" => CallingName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/settings/phone-number", - Dict{String,Any}("CallingName" => CallingName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_phone_number_settings( CallingName, params::AbstractDict{String}; @@ -3303,20 +3133,18 @@ Updates the specified proxy session details, such as voice or SMS capabilities. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ExpiryMinutes"`: The number of minutes allowed for the proxy session. """ -function update_proxy_session( +update_proxy_session( Capabilities, proxySessionId, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)", + Dict{String,Any}("Capabilities" => Capabilities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/voice-connectors/$(voiceConnectorId)/proxy-sessions/$(proxySessionId)", - Dict{String,Any}("Capabilities" => Capabilities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_proxy_session( Capabilities, proxySessionId, @@ -3349,16 +3177,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Endpoints"`: The new set of endpoints for the specified SIP media application. - `"Name"`: The new name for the specified SIP media application. """ -function update_sip_media_application( +update_sip_media_application( sipMediaApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "PUT", + "/sip-media-applications/$(sipMediaApplicationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/sip-media-applications/$(sipMediaApplicationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sip_media_application( sipMediaApplicationId, params::AbstractDict{String}; @@ -3387,20 +3213,18 @@ ID in an update request. The Lambda function can then return a new set of action - `transaction_id`: The ID of the call transaction. """ -function update_sip_media_application_call( +update_sip_media_application_call( Arguments, sipMediaApplicationId, transactionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/sip-media-applications/$(sipMediaApplicationId)/calls/$(transactionId)", + Dict{String,Any}("Arguments" => Arguments); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/sip-media-applications/$(sipMediaApplicationId)/calls/$(transactionId)", - Dict{String,Any}("Arguments" => Arguments); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sip_media_application_call( Arguments, sipMediaApplicationId, @@ -3434,17 +3258,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Disabled"`: The new value that indicates whether the rule is disabled. - `"TargetApplications"`: The new list of target applications. """ -function update_sip_rule( - Name, sipRuleId; aws_config::AbstractAWSConfig=current_aws_config() -) - return chime_sdk_voice( +update_sip_rule(Name, sipRuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + chime_sdk_voice( "PUT", "/sip-rules/$(sipRuleId)", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_sip_rule( Name, sipRuleId, @@ -3472,20 +3293,18 @@ Updates the details for the specified Amazon Chime SDK Voice Connector. - `voice_connector_id`: The Voice Connector ID. """ -function update_voice_connector( +update_voice_connector( Name, RequireEncryption, voiceConnectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "PUT", + "/voice-connectors/$(voiceConnectorId)", + Dict{String,Any}("Name" => Name, "RequireEncryption" => RequireEncryption); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-connectors/$(voiceConnectorId)", - Dict{String,Any}("Name" => Name, "RequireEncryption" => RequireEncryption); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_voice_connector( Name, RequireEncryption, @@ -3521,20 +3340,18 @@ Updates the settings for the specified Amazon Chime SDK Voice Connector group. - `voice_connector_group_id`: The Voice Connector ID. """ -function update_voice_connector_group( +update_voice_connector_group( Name, VoiceConnectorItems, voiceConnectorGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "PUT", + "/voice-connector-groups/$(voiceConnectorGroupId)", + Dict{String,Any}("Name" => Name, "VoiceConnectorItems" => VoiceConnectorItems); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-connector-groups/$(voiceConnectorGroupId)", - Dict{String,Any}("Name" => Name, "VoiceConnectorItems" => VoiceConnectorItems); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_voice_connector_group( Name, VoiceConnectorItems, @@ -3578,17 +3395,15 @@ required under the terms of your agreement with AWS governing your use of the se - `voice_profile_id`: The profile ID. """ -function update_voice_profile( +update_voice_profile( SpeakerSearchTaskId, VoiceProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "PUT", + "/voice-profiles/$(VoiceProfileId)", + Dict{String,Any}("SpeakerSearchTaskId" => SpeakerSearchTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-profiles/$(VoiceProfileId)", - Dict{String,Any}("SpeakerSearchTaskId" => SpeakerSearchTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_voice_profile( SpeakerSearchTaskId, VoiceProfileId, @@ -3624,16 +3439,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the voice profile domain. - `"Name"`: The name of the voice profile domain. """ -function update_voice_profile_domain( +update_voice_profile_domain( VoiceProfileDomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = chime_sdk_voice( + "PUT", + "/voice-profile-domains/$(VoiceProfileDomainId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "PUT", - "/voice-profile-domains/$(VoiceProfileDomainId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_voice_profile_domain( VoiceProfileDomainId, params::AbstractDict{String}; @@ -3667,7 +3480,7 @@ appropriate Public Safety Answering Point. - `street_number`: The address street number, such as 200 or 2121. """ -function validate_e911_address( +validate_e911_address( AwsAccountId, City, Country, @@ -3676,23 +3489,21 @@ function validate_e911_address( StreetInfo, StreetNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = chime_sdk_voice( + "POST", + "/emergency-calling/address", + Dict{String,Any}( + "AwsAccountId" => AwsAccountId, + "City" => City, + "Country" => Country, + "PostalCode" => PostalCode, + "State" => State, + "StreetInfo" => StreetInfo, + "StreetNumber" => StreetNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return chime_sdk_voice( - "POST", - "/emergency-calling/address", - Dict{String,Any}( - "AwsAccountId" => AwsAccountId, - "City" => City, - "Country" => Country, - "PostalCode" => PostalCode, - "State" => State, - "StreetInfo" => StreetInfo, - "StreetNumber" => StreetNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_e911_address( AwsAccountId, City, diff --git a/src/services/cleanrooms.jl b/src/services/cleanrooms.jl index 9d775ef31..195209280 100644 --- a/src/services/cleanrooms.jl +++ b/src/services/cleanrooms.jl @@ -18,19 +18,17 @@ Retrieves multiple analysis templates within a collaboration by their Amazon Res templates belong to. Currently accepts collaboration ID. """ -function batch_get_collaboration_analysis_template( +batch_get_collaboration_analysis_template( analysisTemplateArns, collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/collaborations/$(collaborationIdentifier)/batch-analysistemplates", + Dict{String,Any}("analysisTemplateArns" => analysisTemplateArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/collaborations/$(collaborationIdentifier)/batch-analysistemplates", - Dict{String,Any}("analysisTemplateArns" => analysisTemplateArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_collaboration_analysis_template( analysisTemplateArns, collaborationIdentifier, @@ -64,17 +62,15 @@ Retrieves multiple schemas by their identifiers. - `names`: The names for the schema objects to retrieve. """ -function batch_get_schema( +batch_get_schema( collaborationIdentifier, names; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "POST", + "/collaborations/$(collaborationIdentifier)/batch-schema", + Dict{String,Any}("names" => names); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/collaborations/$(collaborationIdentifier)/batch-schema", - Dict{String,Any}("names" => names); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_schema( collaborationIdentifier, names, @@ -103,19 +99,17 @@ Retrieves multiple analysis rule schemas. analysis rule. """ -function batch_get_schema_analysis_rule( +batch_get_schema_analysis_rule( collaborationIdentifier, schemaAnalysisRuleRequests; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/collaborations/$(collaborationIdentifier)/batch-schema-analysis-rule", + Dict{String,Any}("schemaAnalysisRuleRequests" => schemaAnalysisRuleRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/collaborations/$(collaborationIdentifier)/batch-schema-analysis-rule", - Dict{String,Any}("schemaAnalysisRuleRequests" => schemaAnalysisRuleRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_schema_analysis_rule( collaborationIdentifier, schemaAnalysisRuleRequests, @@ -161,21 +155,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging, you can also use tag-based access control in IAM policies to control access to this resource. """ -function create_analysis_template( +create_analysis_template( format, membershipIdentifier, name, source; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/analysistemplates", + Dict{String,Any}("format" => format, "name" => name, "source" => source); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/memberships/$(membershipIdentifier)/analysistemplates", - Dict{String,Any}("format" => format, "name" => name, "source" => source); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_analysis_template( format, membershipIdentifier, @@ -226,7 +218,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging, you can also use tag-based access control in IAM policies to control access to this resource. """ -function create_collaboration( +create_collaboration( creatorDisplayName, creatorMemberAbilities, description, @@ -234,22 +226,20 @@ function create_collaboration( name, queryLogStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/collaborations", + Dict{String,Any}( + "creatorDisplayName" => creatorDisplayName, + "creatorMemberAbilities" => creatorMemberAbilities, + "description" => description, + "members" => members, + "name" => name, + "queryLogStatus" => queryLogStatus, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/collaborations", - Dict{String,Any}( - "creatorDisplayName" => creatorDisplayName, - "creatorMemberAbilities" => creatorMemberAbilities, - "description" => description, - "members" => members, - "name" => name, - "queryLogStatus" => queryLogStatus, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_collaboration( creatorDisplayName, creatorMemberAbilities, @@ -314,26 +304,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging, you can also use tag-based access control in IAM policies to control access to this resource. """ -function create_configured_audience_model_association( +create_configured_audience_model_association( configuredAudienceModelArn, configuredAudienceModelAssociationName, manageResourcePolicies, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations", + Dict{String,Any}( + "configuredAudienceModelArn" => configuredAudienceModelArn, + "configuredAudienceModelAssociationName" => + configuredAudienceModelAssociationName, + "manageResourcePolicies" => manageResourcePolicies, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations", - Dict{String,Any}( - "configuredAudienceModelArn" => configuredAudienceModelArn, - "configuredAudienceModelAssociationName" => - configuredAudienceModelAssociationName, - "manageResourcePolicies" => manageResourcePolicies, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configured_audience_model_association( configuredAudienceModelArn, configuredAudienceModelAssociationName, @@ -384,26 +372,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging, you can also use tag-based access control in IAM policies to control access to this resource. """ -function create_configured_table( +create_configured_table( allowedColumns, analysisMethod, name, tableReference; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/configuredTables", + Dict{String,Any}( + "allowedColumns" => allowedColumns, + "analysisMethod" => analysisMethod, + "name" => name, + "tableReference" => tableReference, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/configuredTables", - Dict{String,Any}( - "allowedColumns" => allowedColumns, - "analysisMethod" => analysisMethod, - "name" => name, - "tableReference" => tableReference, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configured_table( allowedColumns, analysisMethod, @@ -440,29 +426,28 @@ Creates a new analysis rule for a configured table. Currently, only one analysis be created for a given configured table. # Arguments -- `analysis_rule_policy`: The entire created configured table analysis rule object. +- `analysis_rule_policy`: The analysis rule policy that was created for the configured + table. - `analysis_rule_type`: The type of analysis rule. - `configured_table_identifier`: The identifier for the configured table to create the analysis rule for. Currently accepts the configured table ID. """ -function create_configured_table_analysis_rule( +create_configured_table_analysis_rule( analysisRulePolicy, analysisRuleType, configuredTableIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/configuredTables/$(configuredTableIdentifier)/analysisRule", + Dict{String,Any}( + "analysisRulePolicy" => analysisRulePolicy, + "analysisRuleType" => analysisRuleType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/configuredTables/$(configuredTableIdentifier)/analysisRule", - Dict{String,Any}( - "analysisRulePolicy" => analysisRulePolicy, - "analysisRuleType" => analysisRuleType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configured_table_analysis_rule( analysisRulePolicy, analysisRuleType, @@ -514,43 +499,216 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging, you can also use tag-based access control in IAM policies to control access to this resource. """ -function create_configured_table_association( +create_configured_table_association( configuredTableIdentifier, membershipIdentifier, name, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/configuredTableAssociations", + Dict{String,Any}( + "configuredTableIdentifier" => configuredTableIdentifier, + "name" => name, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_configured_table_association( + configuredTableIdentifier, + membershipIdentifier, + name, + roleArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "POST", "/memberships/$(membershipIdentifier)/configuredTableAssociations", Dict{String,Any}( - "configuredTableIdentifier" => configuredTableIdentifier, - "name" => name, - "roleArn" => roleArn, + mergewith( + _merge, + Dict{String,Any}( + "configuredTableIdentifier" => configuredTableIdentifier, + "name" => name, + "roleArn" => roleArn, + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_configured_table_association( - configuredTableIdentifier, + +""" + create_configured_table_association_analysis_rule(analysis_rule_policy, analysis_rule_type, configured_table_association_identifier, membership_identifier) + create_configured_table_association_analysis_rule(analysis_rule_policy, analysis_rule_type, configured_table_association_identifier, membership_identifier, params::Dict{String,<:Any}) + + Creates a new analysis rule for an associated configured table. + +# Arguments +- `analysis_rule_policy`: The analysis rule policy that was created for the configured + table association. +- `analysis_rule_type`: The type of analysis rule. +- `configured_table_association_identifier`: The unique ID for the configured table + association. Currently accepts the configured table association ID. +- `membership_identifier`: A unique identifier for the membership that the configured + table association belongs to. Currently accepts the membership ID. + +""" +create_configured_table_association_analysis_rule( + analysisRulePolicy, + analysisRuleType, + configuredTableAssociationIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)/analysisRule", + Dict{String,Any}( + "analysisRulePolicy" => analysisRulePolicy, + "analysisRuleType" => analysisRuleType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_configured_table_association_analysis_rule( + analysisRulePolicy, + analysisRuleType, + configuredTableAssociationIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)/analysisRule", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "analysisRulePolicy" => analysisRulePolicy, + "analysisRuleType" => analysisRuleType, + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_id_mapping_table(input_reference_config, membership_identifier, name) + create_id_mapping_table(input_reference_config, membership_identifier, name, params::Dict{String,<:Any}) + +Creates an ID mapping table. + +# Arguments +- `input_reference_config`: The input reference configuration needed to create the ID + mapping table. +- `membership_identifier`: The unique identifier of the membership that contains the ID + mapping table. +- `name`: A name for the ID mapping table. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"description"`: A description of the ID mapping table. +- `"kmsKeyArn"`: The Amazon Resource Name (ARN) of the Amazon Web Services KMS key. This + value is used to encrypt the mapping table data that is stored by Clean Rooms. +- `"tags"`: An optional label that you can assign to a resource when you create it. Each + tag consists of a key and an optional value, both of which you define. When you use + tagging, you can also use tag-based access control in IAM policies to control access to + this resource. +""" +create_id_mapping_table( + inputReferenceConfig, + membershipIdentifier, + name; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/idmappingtables", + Dict{String,Any}("inputReferenceConfig" => inputReferenceConfig, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_id_mapping_table( + inputReferenceConfig, membershipIdentifier, name, - roleArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "POST", - "/memberships/$(membershipIdentifier)/configuredTableAssociations", + "/memberships/$(membershipIdentifier)/idmappingtables", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "configuredTableIdentifier" => configuredTableIdentifier, - "name" => name, - "roleArn" => roleArn, + "inputReferenceConfig" => inputReferenceConfig, "name" => name + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_id_namespace_association(input_reference_config, membership_identifier, name) + create_id_namespace_association(input_reference_config, membership_identifier, name, params::Dict{String,<:Any}) + +Creates an ID namespace association. + +# Arguments +- `input_reference_config`: The input reference configuration needed to create the ID + namespace association. +- `membership_identifier`: The unique identifier of the membership that contains the ID + namespace association. +- `name`: The name for the ID namespace association. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"description"`: The description of the ID namespace association. +- `"idMappingConfig"`: The configuration settings for the ID mapping table. +- `"tags"`: An optional label that you can assign to a resource when you create it. Each + tag consists of a key and an optional value, both of which you define. When you use + tagging, you can also use tag-based access control in IAM policies to control access to + this resource. +""" +create_id_namespace_association( + inputReferenceConfig, + membershipIdentifier, + name; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/idnamespaceassociations", + Dict{String,Any}("inputReferenceConfig" => inputReferenceConfig, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_id_namespace_association( + inputReferenceConfig, + membershipIdentifier, + name, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/idnamespaceassociations", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "inputReferenceConfig" => inputReferenceConfig, "name" => name ), params, ), @@ -584,22 +742,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging, you can also use tag-based access control in IAM policies to control access to this resource. """ -function create_membership( +create_membership( collaborationIdentifier, queryLogStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships", + Dict{String,Any}( + "collaborationIdentifier" => collaborationIdentifier, + "queryLogStatus" => queryLogStatus, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/memberships", - Dict{String,Any}( - "collaborationIdentifier" => collaborationIdentifier, - "queryLogStatus" => queryLogStatus, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_membership( collaborationIdentifier, queryLogStatus, @@ -652,25 +808,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging, you can also use tag-based access control in IAM policies to control access to this resource. """ -function create_privacy_budget_template( +create_privacy_budget_template( autoRefresh, membershipIdentifier, parameters, privacyBudgetType; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/privacybudgettemplates", + Dict{String,Any}( + "autoRefresh" => autoRefresh, + "parameters" => parameters, + "privacyBudgetType" => privacyBudgetType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/memberships/$(membershipIdentifier)/privacybudgettemplates", - Dict{String,Any}( - "autoRefresh" => autoRefresh, - "parameters" => parameters, - "privacyBudgetType" => privacyBudgetType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_privacy_budget_template( autoRefresh, membershipIdentifier, @@ -709,18 +863,16 @@ Deletes an analysis template. - `membership_identifier`: The identifier for a membership resource. """ -function delete_analysis_template( +delete_analysis_template( analysisTemplateIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/analysistemplates/$(analysisTemplateIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "DELETE", - "/memberships/$(membershipIdentifier)/analysistemplates/$(analysisTemplateIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_analysis_template( analysisTemplateIdentifier, membershipIdentifier, @@ -746,16 +898,14 @@ Deletes a collaboration. It can only be called by the collaboration owner. - `collaboration_identifier`: The identifier for the collaboration. """ -function delete_collaboration( +delete_collaboration( collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "DELETE", + "/collaborations/$(collaborationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "DELETE", - "/collaborations/$(collaborationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_collaboration( collaborationIdentifier, params::AbstractDict{String}; @@ -783,18 +933,16 @@ Provides the information necessary to delete a configured audience model associa model association that you want to delete. """ -function delete_configured_audience_model_association( +delete_configured_audience_model_association( configuredAudienceModelAssociationIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "DELETE", - "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configured_audience_model_association( configuredAudienceModelAssociationIdentifier, membershipIdentifier, @@ -820,16 +968,14 @@ Deletes a configured table. - `configured_table_identifier`: The unique ID for the configured table to delete. """ -function delete_configured_table( +delete_configured_table( configuredTableIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "DELETE", + "/configuredTables/$(configuredTableIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "DELETE", - "/configuredTables/$(configuredTableIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configured_table( configuredTableIdentifier, params::AbstractDict{String}; @@ -857,18 +1003,16 @@ Deletes a configured table analysis rule. analysis rule applies to. Currently accepts the configured table ID. """ -function delete_configured_table_analysis_rule( +delete_configured_table_analysis_rule( analysisRuleType, configuredTableIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "DELETE", + "/configuredTables/$(configuredTableIdentifier)/analysisRule/$(analysisRuleType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "DELETE", - "/configuredTables/$(configuredTableIdentifier)/analysisRule/$(analysisRuleType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configured_table_analysis_rule( analysisRuleType, configuredTableIdentifier, @@ -897,18 +1041,16 @@ Deletes a configured table association. association belongs to. Currently accepts the membership ID. """ -function delete_configured_table_association( +delete_configured_table_association( configuredTableAssociationIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "DELETE", - "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configured_table_association( configuredTableAssociationIdentifier, membershipIdentifier, @@ -925,28 +1067,143 @@ function delete_configured_table_association( end """ - delete_member(account_id, collaboration_identifier) - delete_member(account_id, collaboration_identifier, params::Dict{String,<:Any}) + delete_configured_table_association_analysis_rule(analysis_rule_type, configured_table_association_identifier, membership_identifier) + delete_configured_table_association_analysis_rule(analysis_rule_type, configured_table_association_identifier, membership_identifier, params::Dict{String,<:Any}) -Removes the specified member from a collaboration. The removed member is placed in the -Removed status and can't interact with the collaboration. The removed member's data is -inaccessible to active members of the collaboration. +Deletes an analysis rule for a configured table association. # Arguments -- `account_id`: The account ID of the member to remove. -- `collaboration_identifier`: The unique identifier for the associated collaboration. +- `analysis_rule_type`: The type of the analysis rule that you want to delete. +- `configured_table_association_identifier`: The identifier for the configured table + association that's related to the analysis rule that you want to delete. +- `membership_identifier`: A unique identifier for the membership that the configured + table association belongs to. Currently accepts the membership ID. """ -function delete_member( - accountId, collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) +delete_configured_table_association_analysis_rule( + analysisRuleType, + configuredTableAssociationIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)/analysisRule/$(analysisRuleType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_configured_table_association_analysis_rule( + analysisRuleType, + configuredTableAssociationIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)/analysisRule/$(analysisRuleType)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_id_mapping_table(id_mapping_table_identifier, membership_identifier) + delete_id_mapping_table(id_mapping_table_identifier, membership_identifier, params::Dict{String,<:Any}) + +Deletes an ID mapping table. + +# Arguments +- `id_mapping_table_identifier`: The unique identifier of the ID mapping table that you + want to delete. +- `membership_identifier`: The unique identifier of the membership that contains the ID + mapping table that you want to delete. + +""" +delete_id_mapping_table( + idMappingTableIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/idmappingtables/$(idMappingTableIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_id_mapping_table( + idMappingTableIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/idmappingtables/$(idMappingTableIdentifier)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_id_namespace_association(id_namespace_association_identifier, membership_identifier) + delete_id_namespace_association(id_namespace_association_identifier, membership_identifier, params::Dict{String,<:Any}) + +Deletes an ID namespace association. + +# Arguments +- `id_namespace_association_identifier`: The unique identifier of the ID namespace + association that you want to delete. +- `membership_identifier`: The unique identifier of the membership that contains the ID + namespace association that you want to delete. + +""" +delete_id_namespace_association( + idNamespaceAssociationIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/idnamespaceassociations/$(idNamespaceAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_id_namespace_association( + idNamespaceAssociationIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) return cleanrooms( "DELETE", - "/collaborations/$(collaborationIdentifier)/member/$(accountId)"; + "/memberships/$(membershipIdentifier)/idnamespaceassociations/$(idNamespaceAssociationIdentifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end + +""" + delete_member(account_id, collaboration_identifier) + delete_member(account_id, collaboration_identifier, params::Dict{String,<:Any}) + +Removes the specified member from a collaboration. The removed member is placed in the +Removed status and can't interact with the collaboration. The removed member's data is +inaccessible to active members of the collaboration. + +# Arguments +- `account_id`: The account ID of the member to remove. +- `collaboration_identifier`: The unique identifier for the associated collaboration. + +""" +delete_member( + accountId, collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "DELETE", + "/collaborations/$(collaborationIdentifier)/member/$(accountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_member( accountId, collaborationIdentifier, @@ -972,16 +1229,14 @@ Deletes a specified membership. All resources under a membership must be deleted - `membership_identifier`: The identifier for a membership resource. """ -function delete_membership( +delete_membership( membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "DELETE", - "/memberships/$(membershipIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_membership( membershipIdentifier, params::AbstractDict{String}; @@ -1010,18 +1265,16 @@ Deletes a privacy budget template for a specified membership. template. """ -function delete_privacy_budget_template( +delete_privacy_budget_template( membershipIdentifier, privacyBudgetTemplateIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "DELETE", + "/memberships/$(membershipIdentifier)/privacybudgettemplates/$(privacyBudgetTemplateIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "DELETE", - "/memberships/$(membershipIdentifier)/privacybudgettemplates/$(privacyBudgetTemplateIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_privacy_budget_template( membershipIdentifier, privacyBudgetTemplateIdentifier, @@ -1048,18 +1301,16 @@ Retrieves an analysis template. - `membership_identifier`: The identifier for a membership resource. """ -function get_analysis_template( +get_analysis_template( analysisTemplateIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/analysistemplates/$(analysisTemplateIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/analysistemplates/$(analysisTemplateIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_analysis_template( analysisTemplateIdentifier, membershipIdentifier, @@ -1085,16 +1336,14 @@ Returns metadata about a collaboration. - `collaboration_identifier`: The identifier for the collaboration. """ -function get_collaboration( +get_collaboration( collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/collaborations/$(collaborationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_collaboration( collaborationIdentifier, params::AbstractDict{String}; @@ -1122,18 +1371,16 @@ Retrieves an analysis template within a collaboration. templates belong to. Currently accepts collaboration ID. """ -function get_collaboration_analysis_template( +get_collaboration_analysis_template( analysisTemplateArn, collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/analysistemplates/$(analysisTemplateArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/collaborations/$(collaborationIdentifier)/analysistemplates/$(analysisTemplateArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_collaboration_analysis_template( analysisTemplateArn, collaborationIdentifier, @@ -1162,27 +1409,63 @@ Retrieves a configured audience model association within a collaboration. configured audience model association that you want to retrieve. """ -function get_collaboration_configured_audience_model_association( +get_collaboration_configured_audience_model_association( collaborationIdentifier, configuredAudienceModelAssociationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_collaboration_configured_audience_model_association( + collaborationIdentifier, + configuredAudienceModelAssociationIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "GET", - "/collaborations/$(collaborationIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)"; + "/collaborations/$(collaborationIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_collaboration_configured_audience_model_association( + +""" + get_collaboration_id_namespace_association(collaboration_identifier, id_namespace_association_identifier) + get_collaboration_id_namespace_association(collaboration_identifier, id_namespace_association_identifier, params::Dict{String,<:Any}) + +Retrieves an ID namespace association from a specific collaboration. + +# Arguments +- `collaboration_identifier`: The unique identifier of the collaboration that contains the + ID namespace association that you want to retrieve. +- `id_namespace_association_identifier`: The unique identifier of the ID namespace + association that you want to retrieve. + +""" +get_collaboration_id_namespace_association( collaborationIdentifier, - configuredAudienceModelAssociationIdentifier, + idNamespaceAssociationIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/idnamespaceassociations/$(idNamespaceAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_collaboration_id_namespace_association( + collaborationIdentifier, + idNamespaceAssociationIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "GET", - "/collaborations/$(collaborationIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)", + "/collaborations/$(collaborationIdentifier)/idnamespaceassociations/$(idNamespaceAssociationIdentifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1201,18 +1484,16 @@ Returns details about a specified privacy budget template. templates. """ -function get_collaboration_privacy_budget_template( +get_collaboration_privacy_budget_template( collaborationIdentifier, privacyBudgetTemplateIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/privacybudgettemplates/$(privacyBudgetTemplateIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/collaborations/$(collaborationIdentifier)/privacybudgettemplates/$(privacyBudgetTemplateIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_collaboration_privacy_budget_template( collaborationIdentifier, privacyBudgetTemplateIdentifier, @@ -1241,18 +1522,16 @@ Returns information about a configured audience model association. configured audience model association that you want to retrieve. """ -function get_configured_audience_model_association( +get_configured_audience_model_association( configuredAudienceModelAssociationIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configured_audience_model_association( configuredAudienceModelAssociationIdentifier, membershipIdentifier, @@ -1278,16 +1557,14 @@ Retrieves a configured table. - `configured_table_identifier`: The unique ID for the configured table to retrieve. """ -function get_configured_table( +get_configured_table( configuredTableIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/configuredTables/$(configuredTableIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/configuredTables/$(configuredTableIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configured_table( configuredTableIdentifier, params::AbstractDict{String}; @@ -1315,18 +1592,16 @@ Retrieves a configured table analysis rule. retrieve. Currently accepts the configured table ID. """ -function get_configured_table_analysis_rule( +get_configured_table_analysis_rule( analysisRuleType, configuredTableIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/configuredTables/$(configuredTableIdentifier)/analysisRule/$(analysisRuleType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/configuredTables/$(configuredTableIdentifier)/analysisRule/$(analysisRuleType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configured_table_analysis_rule( analysisRuleType, configuredTableIdentifier, @@ -1355,19 +1630,58 @@ Retrieves a configured table association. association belongs to. Currently accepts the membership ID. """ -function get_configured_table_association( +get_configured_table_association( configuredTableAssociationIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_configured_table_association( + configuredTableAssociationIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "GET", - "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)"; + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_configured_table_association( + +""" + get_configured_table_association_analysis_rule(analysis_rule_type, configured_table_association_identifier, membership_identifier) + get_configured_table_association_analysis_rule(analysis_rule_type, configured_table_association_identifier, membership_identifier, params::Dict{String,<:Any}) + + Retrieves the analysis rule for a configured table association. + +# Arguments +- `analysis_rule_type`: The type of analysis rule that you want to retrieve. +- `configured_table_association_identifier`: The identifier for the configured table + association that's related to the analysis rule. +- `membership_identifier`: A unique identifier for the membership that the configured + table association belongs to. Currently accepts the membership ID. + +""" +get_configured_table_association_analysis_rule( + analysisRuleType, + configuredTableAssociationIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)/analysisRule/$(analysisRuleType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_configured_table_association_analysis_rule( + analysisRuleType, configuredTableAssociationIdentifier, membershipIdentifier, params::AbstractDict{String}; @@ -1375,7 +1689,83 @@ function get_configured_table_association( ) return cleanrooms( "GET", - "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)/analysisRule/$(analysisRuleType)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_id_mapping_table(id_mapping_table_identifier, membership_identifier) + get_id_mapping_table(id_mapping_table_identifier, membership_identifier, params::Dict{String,<:Any}) + +Retrieves an ID mapping table. + +# Arguments +- `id_mapping_table_identifier`: The unique identifier of the ID mapping table identifier + that you want to retrieve. +- `membership_identifier`: The unique identifier of the membership that contains the ID + mapping table that you want to retrieve. + +""" +get_id_mapping_table( + idMappingTableIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/idmappingtables/$(idMappingTableIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_id_mapping_table( + idMappingTableIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/idmappingtables/$(idMappingTableIdentifier)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_id_namespace_association(id_namespace_association_identifier, membership_identifier) + get_id_namespace_association(id_namespace_association_identifier, membership_identifier, params::Dict{String,<:Any}) + +Retrieves an ID namespace association. + +# Arguments +- `id_namespace_association_identifier`: The unique identifier of the ID namespace + association that you want to retrieve. +- `membership_identifier`: The unique identifier of the membership that contains the ID + namespace association that you want to retrieve. + +""" +get_id_namespace_association( + idNamespaceAssociationIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/idnamespaceassociations/$(idNamespaceAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_id_namespace_association( + idNamespaceAssociationIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/idnamespaceassociations/$(idNamespaceAssociationIdentifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1392,16 +1782,13 @@ Retrieves a specified membership for an identifier. - `membership_identifier`: The identifier for a membership resource. """ -function get_membership( - membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanrooms( +get_membership(membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanrooms( "GET", "/memberships/$(membershipIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_membership( membershipIdentifier, params::AbstractDict{String}; @@ -1430,18 +1817,16 @@ Returns details for a specified privacy budget template. template. """ -function get_privacy_budget_template( +get_privacy_budget_template( membershipIdentifier, privacyBudgetTemplateIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/privacybudgettemplates/$(privacyBudgetTemplateIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/privacybudgettemplates/$(privacyBudgetTemplateIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_privacy_budget_template( membershipIdentifier, privacyBudgetTemplateIdentifier, @@ -1468,18 +1853,16 @@ Returns query processing metadata. - `protected_query_identifier`: The identifier for a protected query instance. """ -function get_protected_query( +get_protected_query( membershipIdentifier, protectedQueryIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/protectedQueries/$(protectedQueryIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/protectedQueries/$(protectedQueryIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_protected_query( membershipIdentifier, protectedQueryIdentifier, @@ -1507,16 +1890,14 @@ Retrieves the schema for a relation within a collaboration. - `name`: The name of the relation to retrieve the schema for. """ -function get_schema( +get_schema( collaborationIdentifier, name; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/schemas/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/collaborations/$(collaborationIdentifier)/schemas/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_schema( collaborationIdentifier, name, @@ -1546,16 +1927,14 @@ Retrieves a schema analysis rule. uniquely identified by a combination of the collaboration, the schema name, and their type. """ -function get_schema_analysis_rule( +get_schema_analysis_rule( collaborationIdentifier, name, type; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/schemas/$(name)/analysisRule/$(type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/collaborations/$(collaborationIdentifier)/schemas/$(name)/analysisRule/$(type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_schema_analysis_rule( collaborationIdentifier, name, @@ -1587,16 +1966,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_analysis_templates( +list_analysis_templates( membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/analysistemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/analysistemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_analysis_templates( membershipIdentifier, params::AbstractDict{String}; @@ -1627,16 +2004,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_collaboration_analysis_templates( +list_collaboration_analysis_templates( collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/analysistemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/collaborations/$(collaborationIdentifier)/analysistemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_collaboration_analysis_templates( collaborationIdentifier, params::AbstractDict{String}; @@ -1667,24 +2042,61 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_collaboration_configured_audience_model_associations( +list_collaboration_configured_audience_model_associations( collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/configuredaudiencemodelassociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_collaboration_configured_audience_model_associations( + collaborationIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "GET", - "/collaborations/$(collaborationIdentifier)/configuredaudiencemodelassociations"; + "/collaborations/$(collaborationIdentifier)/configuredaudiencemodelassociations", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function list_collaboration_configured_audience_model_associations( + +""" + list_collaboration_id_namespace_associations(collaboration_identifier) + list_collaboration_id_namespace_associations(collaboration_identifier, params::Dict{String,<:Any}) + +Returns a list of the ID namespace associations in a collaboration. + +# Arguments +- `collaboration_identifier`: The unique identifier of the collaboration that contains the + ID namespace associations that you want to retrieve. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum size of the results that is returned per call. Service + chooses a default if it has not been set. Service may return a nextToken even if the + maximum results has not been met.> +- `"nextToken"`: The pagination token that's used to fetch the next set of results. +""" +list_collaboration_id_namespace_associations( + collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/idnamespaceassociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_collaboration_id_namespace_associations( collaborationIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "GET", - "/collaborations/$(collaborationIdentifier)/configuredaudiencemodelassociations", + "/collaborations/$(collaborationIdentifier)/idnamespaceassociations", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1708,16 +2120,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_collaboration_privacy_budget_templates( +list_collaboration_privacy_budget_templates( collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/privacybudgettemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/collaborations/$(collaborationIdentifier)/privacybudgettemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_collaboration_privacy_budget_templates( collaborationIdentifier, params::AbstractDict{String}; @@ -1752,19 +2162,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_collaboration_privacy_budgets( +list_collaboration_privacy_budgets( collaborationIdentifier, privacyBudgetType; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/collaborations/$(collaborationIdentifier)/privacybudgets", + Dict{String,Any}("privacyBudgetType" => privacyBudgetType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/collaborations/$(collaborationIdentifier)/privacybudgets", - Dict{String,Any}("privacyBudgetType" => privacyBudgetType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_collaboration_privacy_budgets( collaborationIdentifier, privacyBudgetType, @@ -1799,11 +2207,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_collaborations(; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanrooms( - "GET", "/collaborations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_collaborations(; aws_config::AbstractAWSConfig=current_aws_config()) = cleanrooms( + "GET", "/collaborations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_collaborations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1834,16 +2240,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_configured_audience_model_associations( +list_configured_audience_model_associations( membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_configured_audience_model_associations( membershipIdentifier, params::AbstractDict{String}; @@ -1874,24 +2278,88 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_configured_table_associations( +list_configured_table_associations( + membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/configuredTableAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_configured_table_associations( + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/configuredTableAssociations", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_configured_tables() + list_configured_tables(params::Dict{String,<:Any}) + +Lists configured tables. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum size of the results that is returned per call. +- `"nextToken"`: The token value retrieved from a previous call to access the next page of + results. +""" +list_configured_tables(; aws_config::AbstractAWSConfig=current_aws_config()) = cleanrooms( + "GET", "/configuredTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_configured_tables( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return cleanrooms( + "GET", + "/configuredTables", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_id_mapping_tables(membership_identifier) + list_id_mapping_tables(membership_identifier, params::Dict{String,<:Any}) + +Returns a list of ID mapping tables. + +# Arguments +- `membership_identifier`: The unique identifier of the membership that contains the ID + mapping tables that you want to view. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum size of the results that is returned per call. Service + chooses a default if it has not been set. Service may return a nextToken even if the + maximum results has not been met. +- `"nextToken"`: The pagination token that's used to fetch the next set of results. +""" +list_id_mapping_tables( membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/idmappingtables"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/configuredTableAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function list_configured_table_associations( +function list_id_mapping_tables( membershipIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "GET", - "/memberships/$(membershipIdentifier)/configuredTableAssociations", + "/memberships/$(membershipIdentifier)/idmappingtables", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1899,28 +2367,38 @@ function list_configured_table_associations( end """ - list_configured_tables() - list_configured_tables(params::Dict{String,<:Any}) + list_id_namespace_associations(membership_identifier) + list_id_namespace_associations(membership_identifier, params::Dict{String,<:Any}) -Lists configured tables. +Returns a list of ID namespace associations. + +# Arguments +- `membership_identifier`: The unique identifier of the membership that contains the ID + namespace association that you want to view. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: The maximum size of the results that is returned per call. -- `"nextToken"`: The token value retrieved from a previous call to access the next page of - results. +- `"maxResults"`: The maximum size of the results that is returned per call. Service + chooses a default if it has not been set. Service may return a nextToken even if the + maximum results has not been met. +- `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_configured_tables(; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanrooms( - "GET", "/configuredTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end -function list_configured_tables( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +list_id_namespace_associations( + membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/idnamespaceassociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_id_namespace_associations( + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "GET", - "/configuredTables", + "/memberships/$(membershipIdentifier)/idnamespaceassociations", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1943,16 +2421,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_members( - collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanrooms( +list_members(collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanrooms( "GET", "/collaborations/$(collaborationIdentifier)/members"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_members( collaborationIdentifier, params::AbstractDict{String}; @@ -1980,11 +2455,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"status"`: A filter which will return only memberships in the specified status. """ -function list_memberships(; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanrooms( - "GET", "/memberships"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_memberships(; aws_config::AbstractAWSConfig=current_aws_config()) = cleanrooms( + "GET", "/memberships"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_memberships( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2016,16 +2489,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_privacy_budget_templates( +list_privacy_budget_templates( membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/privacybudgettemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/privacybudgettemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_privacy_budget_templates( membershipIdentifier, params::AbstractDict{String}; @@ -2060,19 +2531,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_privacy_budgets( +list_privacy_budgets( membershipIdentifier, privacyBudgetType; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/privacybudgets", + Dict{String,Any}("privacyBudgetType" => privacyBudgetType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/privacybudgets", - Dict{String,Any}("privacyBudgetType" => privacyBudgetType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_privacy_budgets( membershipIdentifier, privacyBudgetType, @@ -2110,16 +2579,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"status"`: A filter on the status of the protected query. """ -function list_protected_queries( +list_protected_queries( membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "GET", + "/memberships/$(membershipIdentifier)/protectedQueries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "GET", - "/memberships/$(membershipIdentifier)/protectedQueries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_protected_queries( membershipIdentifier, params::AbstractDict{String}; @@ -2152,16 +2619,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"schemaType"`: If present, filter schemas by schema type. The only valid schema type is currently `TABLE`. """ -function list_schemas( - collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanrooms( +list_schemas(collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanrooms( "GET", "/collaborations/$(collaborationIdentifier)/schemas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_schemas( collaborationIdentifier, params::AbstractDict{String}; @@ -2187,16 +2651,13 @@ Lists all of the tags that have been added to a resource. list tags on. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanrooms( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanrooms( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2211,6 +2672,44 @@ function list_tags_for_resource( ) end +""" + populate_id_mapping_table(id_mapping_table_identifier, membership_identifier) + populate_id_mapping_table(id_mapping_table_identifier, membership_identifier, params::Dict{String,<:Any}) + +Defines the information that's necessary to populate an ID mapping table. + +# Arguments +- `id_mapping_table_identifier`: The unique identifier of the ID mapping table that you + want to populate. +- `membership_identifier`: The unique identifier of the membership that contains the ID + mapping table that you want to populate. + +""" +populate_id_mapping_table( + idMappingTableIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/idmappingtables/$(idMappingTableIdentifier)/populate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function populate_id_mapping_table( + idMappingTableIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/idmappingtables/$(idMappingTableIdentifier)/populate", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ preview_privacy_impact(membership_identifier, parameters) preview_privacy_impact(membership_identifier, parameters, params::Dict{String,<:Any}) @@ -2224,17 +2723,15 @@ given epsilon and noise parameters. - `parameters`: Specifies the desired epsilon and noise parameters to preview. """ -function preview_privacy_impact( +preview_privacy_impact( membershipIdentifier, parameters; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/previewprivacyimpact", + Dict{String,Any}("parameters" => parameters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/memberships/$(membershipIdentifier)/previewprivacyimpact", - Dict{String,Any}("parameters" => parameters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function preview_privacy_impact( membershipIdentifier, parameters, @@ -2268,20 +2765,18 @@ Creates a protected query that is started by Clean Rooms. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"resultConfiguration"`: The details needed to write the query results. """ -function start_protected_query( +start_protected_query( membershipIdentifier, sqlParameters, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "POST", + "/memberships/$(membershipIdentifier)/protectedQueries", + Dict{String,Any}("sqlParameters" => sqlParameters, "type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "POST", - "/memberships/$(membershipIdentifier)/protectedQueries", - Dict{String,Any}("sqlParameters" => sqlParameters, "type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_protected_query( membershipIdentifier, sqlParameters, @@ -2316,15 +2811,14 @@ Tags a resource. - `tags`: A map of objects specifying each key name and value. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanrooms( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanrooms( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2352,17 +2846,14 @@ Removes a tag or list of tags from a resource. - `tag_keys`: A list of key names of tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanrooms( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanrooms( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2392,18 +2883,16 @@ Updates the analysis template metadata. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A new description for the analysis template. """ -function update_analysis_template( +update_analysis_template( analysisTemplateIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/analysistemplates/$(analysisTemplateIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "PATCH", - "/memberships/$(membershipIdentifier)/analysistemplates/$(analysisTemplateIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_analysis_template( analysisTemplateIdentifier, membershipIdentifier, @@ -2434,16 +2923,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: A human-readable identifier provided by the collaboration owner. Display names are not unique. """ -function update_collaboration( +update_collaboration( collaborationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "PATCH", + "/collaborations/$(collaborationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "PATCH", - "/collaborations/$(collaborationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_collaboration( collaborationIdentifier, params::AbstractDict{String}; @@ -2475,18 +2962,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A new description for the configured audience model association. - `"name"`: A new name for the configured audience model association. """ -function update_configured_audience_model_association( +update_configured_audience_model_association( configuredAudienceModelAssociationIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "PATCH", - "/memberships/$(membershipIdentifier)/configuredaudiencemodelassociations/$(configuredAudienceModelAssociationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configured_audience_model_association( configuredAudienceModelAssociationIdentifier, membershipIdentifier, @@ -2517,16 +3002,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A new description for the configured table. - `"name"`: A new name for the configured table. """ -function update_configured_table( +update_configured_table( configuredTableIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "PATCH", + "/configuredTables/$(configuredTableIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "PATCH", - "/configuredTables/$(configuredTableIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configured_table( configuredTableIdentifier, params::AbstractDict{String}; @@ -2556,20 +3039,18 @@ Updates a configured table analysis rule. analysis rule applies to. Currently accepts the configured table ID. """ -function update_configured_table_analysis_rule( +update_configured_table_analysis_rule( analysisRulePolicy, analysisRuleType, configuredTableIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/configuredTables/$(configuredTableIdentifier)/analysisRule/$(analysisRuleType)", + Dict{String,Any}("analysisRulePolicy" => analysisRulePolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "PATCH", - "/configuredTables/$(configuredTableIdentifier)/analysisRule/$(analysisRuleType)", - Dict{String,Any}("analysisRulePolicy" => analysisRulePolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configured_table_analysis_rule( analysisRulePolicy, analysisRuleType, @@ -2608,19 +3089,63 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"roleArn"`: The service will assume this role to access catalog metadata and query the table. """ -function update_configured_table_association( +update_configured_table_association( configuredTableAssociationIdentifier, membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_configured_table_association( + configuredTableAssociationIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return cleanrooms( "PATCH", - "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)"; + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function update_configured_table_association( + +""" + update_configured_table_association_analysis_rule(analysis_rule_policy, analysis_rule_type, configured_table_association_identifier, membership_identifier) + update_configured_table_association_analysis_rule(analysis_rule_policy, analysis_rule_type, configured_table_association_identifier, membership_identifier, params::Dict{String,<:Any}) + + Updates the analysis rule for a configured table association. + +# Arguments +- `analysis_rule_policy`: The updated analysis rule policy for the configured table + association. +- `analysis_rule_type`: The analysis rule type that you want to update. +- `configured_table_association_identifier`: The identifier for the configured table + association to update. +- `membership_identifier`: A unique identifier for the membership that the configured + table association belongs to. Currently accepts the membership ID. + +""" +update_configured_table_association_analysis_rule( + analysisRulePolicy, + analysisRuleType, + configuredTableAssociationIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)/analysisRule/$(analysisRuleType)", + Dict{String,Any}("analysisRulePolicy" => analysisRulePolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_configured_table_association_analysis_rule( + analysisRulePolicy, + analysisRuleType, configuredTableAssociationIdentifier, membershipIdentifier, params::AbstractDict{String}; @@ -2628,7 +3153,96 @@ function update_configured_table_association( ) return cleanrooms( "PATCH", - "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)", + "/memberships/$(membershipIdentifier)/configuredTableAssociations/$(configuredTableAssociationIdentifier)/analysisRule/$(analysisRuleType)", + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("analysisRulePolicy" => analysisRulePolicy), params + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_id_mapping_table(id_mapping_table_identifier, membership_identifier) + update_id_mapping_table(id_mapping_table_identifier, membership_identifier, params::Dict{String,<:Any}) + +Provides the details that are necessary to update an ID mapping table. + +# Arguments +- `id_mapping_table_identifier`: The unique identifier of the ID mapping table that you + want to update. +- `membership_identifier`: The unique identifier of the membership that contains the ID + mapping table that you want to update. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"description"`: A new description for the ID mapping table. +- `"kmsKeyArn"`: The Amazon Resource Name (ARN) of the Amazon Web Services KMS key. +""" +update_id_mapping_table( + idMappingTableIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/idmappingtables/$(idMappingTableIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_id_mapping_table( + idMappingTableIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/idmappingtables/$(idMappingTableIdentifier)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_id_namespace_association(id_namespace_association_identifier, membership_identifier) + update_id_namespace_association(id_namespace_association_identifier, membership_identifier, params::Dict{String,<:Any}) + +Provides the details that are necessary to update an ID namespace association. + +# Arguments +- `id_namespace_association_identifier`: The unique identifier of the ID namespace + association that you want to update. +- `membership_identifier`: The unique identifier of the membership that contains the ID + namespace association that you want to update. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"description"`: A new description for the ID namespace association. +- `"idMappingConfig"`: The configuration settings for the ID mapping table. +- `"name"`: A new name for the ID namespace association. +""" +update_id_namespace_association( + idNamespaceAssociationIdentifier, + membershipIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/idnamespaceassociations/$(idNamespaceAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_id_namespace_association( + idNamespaceAssociationIdentifier, + membershipIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/idnamespaceassociations/$(idNamespaceAssociationIdentifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -2651,16 +3265,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"queryLogStatus"`: An indicator as to whether query logging has been enabled or disabled for the membership. """ -function update_membership( +update_membership( membershipIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "PATCH", - "/memberships/$(membershipIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_membership( membershipIdentifier, params::AbstractDict{String}; @@ -2694,20 +3306,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parameters"`: Specifies the epsilon and noise parameters for the privacy budget template. """ -function update_privacy_budget_template( +update_privacy_budget_template( membershipIdentifier, privacyBudgetTemplateIdentifier, privacyBudgetType; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/privacybudgettemplates/$(privacyBudgetTemplateIdentifier)", + Dict{String,Any}("privacyBudgetType" => privacyBudgetType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "PATCH", - "/memberships/$(membershipIdentifier)/privacybudgettemplates/$(privacyBudgetTemplateIdentifier)", - Dict{String,Any}("privacyBudgetType" => privacyBudgetType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_privacy_budget_template( membershipIdentifier, privacyBudgetTemplateIdentifier, @@ -2741,20 +3351,18 @@ Updates the processing of a currently running query. currently running query. """ -function update_protected_query( +update_protected_query( membershipIdentifier, protectedQueryIdentifier, targetStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanrooms( + "PATCH", + "/memberships/$(membershipIdentifier)/protectedQueries/$(protectedQueryIdentifier)", + Dict{String,Any}("targetStatus" => targetStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanrooms( - "PATCH", - "/memberships/$(membershipIdentifier)/protectedQueries/$(protectedQueryIdentifier)", - Dict{String,Any}("targetStatus" => targetStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_protected_query( membershipIdentifier, protectedQueryIdentifier, diff --git a/src/services/cleanroomsml.jl b/src/services/cleanroomsml.jl index 8e1e2c36c..f76f0c03b 100644 --- a/src/services/cleanroomsml.jl +++ b/src/services/cleanroomsml.jl @@ -40,17 +40,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"trainingDataEndTime"`: The end date and time of the training window. - `"trainingDataStartTime"`: The start date and time of the training window. """ -function create_audience_model( +create_audience_model( name, trainingDatasetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "POST", + "/audience-model", + Dict{String,Any}("name" => name, "trainingDatasetArn" => trainingDatasetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "POST", - "/audience-model", - Dict{String,Any}("name" => name, "trainingDatasetArn" => trainingDatasetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_audience_model( name, trainingDatasetArn, @@ -124,26 +122,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit. """ -function create_configured_audience_model( +create_configured_audience_model( audienceModelArn, name, outputConfig, sharedAudienceMetrics; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanroomsml( + "POST", + "/configured-audience-model", + Dict{String,Any}( + "audienceModelArn" => audienceModelArn, + "name" => name, + "outputConfig" => outputConfig, + "sharedAudienceMetrics" => sharedAudienceMetrics, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "POST", - "/configured-audience-model", - Dict{String,Any}( - "audienceModelArn" => audienceModelArn, - "name" => name, - "outputConfig" => outputConfig, - "sharedAudienceMetrics" => sharedAudienceMetrics, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configured_audience_model( audienceModelArn, name, @@ -209,19 +205,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit. """ -function create_training_dataset( +create_training_dataset( name, roleArn, trainingData; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "POST", + "/training-dataset", + Dict{String,Any}("name" => name, "roleArn" => roleArn, "trainingData" => trainingData); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "POST", - "/training-dataset", - Dict{String,Any}( - "name" => name, "roleArn" => roleArn, "trainingData" => trainingData - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_training_dataset( name, roleArn, @@ -257,16 +249,14 @@ Deletes the specified audience generation job, and removes all data associated w job that you want to delete. """ -function delete_audience_generation_job( +delete_audience_generation_job( audienceGenerationJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "DELETE", + "/audience-generation-job/$(audienceGenerationJobArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "DELETE", - "/audience-generation-job/$(audienceGenerationJobArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_audience_generation_job( audienceGenerationJobArn, params::AbstractDict{String}; @@ -293,16 +283,14 @@ there are any configured audience models that depend on the audience model. to delete. """ -function delete_audience_model( +delete_audience_model( audienceModelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "DELETE", + "/audience-model/$(audienceModelArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "DELETE", - "/audience-model/$(audienceModelArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_audience_model( audienceModelArn, params::AbstractDict{String}; @@ -331,16 +319,14 @@ associated to. audience model that you want to delete. """ -function delete_configured_audience_model( +delete_configured_audience_model( configuredAudienceModelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "DELETE", + "/configured-audience-model/$(configuredAudienceModelArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "DELETE", - "/configured-audience-model/$(configuredAudienceModelArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configured_audience_model( configuredAudienceModelArn, params::AbstractDict{String}; @@ -366,16 +352,14 @@ Deletes the specified configured audience model policy. audience model policy that you want to delete. """ -function delete_configured_audience_model_policy( +delete_configured_audience_model_policy( configuredAudienceModelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "DELETE", + "/configured-audience-model/$(configuredAudienceModelArn)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "DELETE", - "/configured-audience-model/$(configuredAudienceModelArn)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configured_audience_model_policy( configuredAudienceModelArn, params::AbstractDict{String}; @@ -404,16 +388,14 @@ AudienceModel creation. This action deletes the metadata. want to delete. """ -function delete_training_dataset( +delete_training_dataset( trainingDatasetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "DELETE", + "/training-dataset/$(trainingDatasetArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "DELETE", - "/training-dataset/$(trainingDatasetArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_training_dataset( trainingDatasetArn, params::AbstractDict{String}; @@ -439,16 +421,14 @@ Returns information about an audience generation job. job that you are interested in. """ -function get_audience_generation_job( +get_audience_generation_job( audienceGenerationJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "GET", + "/audience-generation-job/$(audienceGenerationJobArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "GET", - "/audience-generation-job/$(audienceGenerationJobArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_audience_generation_job( audienceGenerationJobArn, params::AbstractDict{String}; @@ -474,16 +454,13 @@ Returns information about an audience model interested in. """ -function get_audience_model( - audienceModelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanroomsml( +get_audience_model(audienceModelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanroomsml( "GET", "/audience-model/$(audienceModelArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_audience_model( audienceModelArn, params::AbstractDict{String}; @@ -509,16 +486,14 @@ Returns information about a specified configured audience model. audience model that you are interested in. """ -function get_configured_audience_model( +get_configured_audience_model( configuredAudienceModelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "GET", + "/configured-audience-model/$(configuredAudienceModelArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "GET", - "/configured-audience-model/$(configuredAudienceModelArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configured_audience_model( configuredAudienceModelArn, params::AbstractDict{String}; @@ -544,16 +519,14 @@ Returns information about a configured audience model policy. audience model that you are interested in. """ -function get_configured_audience_model_policy( +get_configured_audience_model_policy( configuredAudienceModelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "GET", + "/configured-audience-model/$(configuredAudienceModelArn)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "GET", - "/configured-audience-model/$(configuredAudienceModelArn)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configured_audience_model_policy( configuredAudienceModelArn, params::AbstractDict{String}; @@ -579,16 +552,14 @@ Returns information about a training dataset. are interested in. """ -function get_training_dataset( +get_training_dataset( trainingDatasetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "GET", + "/training-dataset/$(trainingDatasetArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "GET", - "/training-dataset/$(trainingDatasetArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_training_dataset( trainingDatasetArn, params::AbstractDict{String}; @@ -617,14 +588,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_audience_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanroomsml( +list_audience_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanroomsml( "GET", "/audience-export-job"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_audience_export_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -653,14 +623,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_audience_generation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanroomsml( +list_audience_generation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanroomsml( "GET", "/audience-generation-job"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_audience_generation_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -685,11 +654,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_audience_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanroomsml( - "GET", "/audience-model"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_audience_models(; aws_config::AbstractAWSConfig=current_aws_config()) = cleanroomsml( + "GET", "/audience-model"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_audience_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -714,16 +681,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_configured_audience_models(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanroomsml( +list_configured_audience_models(; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanroomsml( "GET", "/configured-audience-model"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_configured_audience_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -746,16 +710,13 @@ Returns a list of tags for a provided resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource that you are interested in. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanroomsml( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanroomsml( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -782,11 +743,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_training_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanroomsml( - "GET", "/training-dataset"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_training_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) = cleanroomsml( + "GET", "/training-dataset"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_training_datasets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -817,19 +776,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"previousPolicyHash"`: A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy. """ -function put_configured_audience_model_policy( +put_configured_audience_model_policy( configuredAudienceModelArn, configuredAudienceModelPolicy; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanroomsml( + "PUT", + "/configured-audience-model/$(configuredAudienceModelArn)/policy", + Dict{String,Any}("configuredAudienceModelPolicy" => configuredAudienceModelPolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "PUT", - "/configured-audience-model/$(configuredAudienceModelArn)/policy", - Dict{String,Any}("configuredAudienceModelPolicy" => configuredAudienceModelPolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configured_audience_model_policy( configuredAudienceModelArn, configuredAudienceModelPolicy, @@ -869,24 +826,22 @@ Export an audience of a specified size after you have generated an audience. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the audience export job. """ -function start_audience_export_job( +start_audience_export_job( audienceGenerationJobArn, audienceSize, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanroomsml( + "POST", + "/audience-export-job", + Dict{String,Any}( + "audienceGenerationJobArn" => audienceGenerationJobArn, + "audienceSize" => audienceSize, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "POST", - "/audience-export-job", - Dict{String,Any}( - "audienceGenerationJobArn" => audienceGenerationJobArn, - "audienceSize" => audienceSize, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_audience_export_job( audienceGenerationJobArn, audienceSize, @@ -947,24 +902,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit. """ -function start_audience_generation_job( +start_audience_generation_job( configuredAudienceModelArn, name, seedAudience; aws_config::AbstractAWSConfig=current_aws_config(), +) = cleanroomsml( + "POST", + "/audience-generation-job", + Dict{String,Any}( + "configuredAudienceModelArn" => configuredAudienceModelArn, + "name" => name, + "seedAudience" => seedAudience, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "POST", - "/audience-generation-job", - Dict{String,Any}( - "configuredAudienceModelArn" => configuredAudienceModelArn, - "name" => name, - "seedAudience" => seedAudience, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_audience_generation_job( configuredAudienceModelArn, name, @@ -1016,15 +969,14 @@ Adds metadata tags to a specified resource. only the key prefix of aws do not count against your tags per resource limit. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cleanroomsml( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanroomsml( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1052,17 +1004,14 @@ Removes metadata tags from a specified resource. - `tag_keys`: The key values of tags that you want to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cleanroomsml( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cleanroomsml( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1101,16 +1050,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"outputConfig"`: The new output configuration. - `"sharedAudienceMetrics"`: The new value for whether to share audience metrics. """ -function update_configured_audience_model( +update_configured_audience_model( configuredAudienceModelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cleanroomsml( + "PATCH", + "/configured-audience-model/$(configuredAudienceModelArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cleanroomsml( - "PATCH", - "/configured-audience-model/$(configuredAudienceModelArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configured_audience_model( configuredAudienceModelArn, params::AbstractDict{String}; diff --git a/src/services/cloud9.jl b/src/services/cloud9.jl index 5dceccdd6..f13e48983 100644 --- a/src/services/cloud9.jl +++ b/src/services/cloud9.jl @@ -56,18 +56,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: An array of key-value pairs that will be associated with the new Cloud9 development environment. """ -function create_environment_ec2( +create_environment_ec2( imageId, instanceType, name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloud9( + "CreateEnvironmentEC2", + Dict{String,Any}("imageId" => imageId, "instanceType" => instanceType, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloud9( - "CreateEnvironmentEC2", - Dict{String,Any}( - "imageId" => imageId, "instanceType" => instanceType, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment_ec2( imageId, instanceType, @@ -106,20 +102,18 @@ Adds an environment member to an Cloud9 development environment. - `user_arn`: The Amazon Resource Name (ARN) of the environment member you want to add. """ -function create_environment_membership( +create_environment_membership( environmentId, permissions, userArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloud9( + "CreateEnvironmentMembership", + Dict{String,Any}( + "environmentId" => environmentId, + "permissions" => permissions, + "userArn" => userArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloud9( - "CreateEnvironmentMembership", - Dict{String,Any}( - "environmentId" => environmentId, - "permissions" => permissions, - "userArn" => userArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment_membership( environmentId, permissions, @@ -156,16 +150,13 @@ environment, also terminates the instance. - `environment_id`: The ID of the environment to delete. """ -function delete_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloud9( +delete_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + cloud9( "DeleteEnvironment", Dict{String,Any}("environmentId" => environmentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_environment( environmentId, params::AbstractDict{String}; @@ -193,16 +184,14 @@ Deletes an environment member from a development environment. environment. """ -function delete_environment_membership( +delete_environment_membership( environmentId, userArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloud9( + "DeleteEnvironmentMembership", + Dict{String,Any}("environmentId" => environmentId, "userArn" => userArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloud9( - "DeleteEnvironmentMembership", - Dict{String,Any}("environmentId" => environmentId, "userArn" => userArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment_membership( environmentId, userArn, @@ -246,15 +235,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about. If no value is specified, information about all environment members are returned. """ -function describe_environment_memberships(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cloud9( +describe_environment_memberships(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloud9( "DescribeEnvironmentMemberships"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_environment_memberships( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -276,16 +262,14 @@ Gets status information for an Cloud9 development environment. - `environment_id`: The ID of the environment to get status information about. """ -function describe_environment_status( +describe_environment_status( environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloud9( + "DescribeEnvironmentStatus", + Dict{String,Any}("environmentId" => environmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloud9( - "DescribeEnvironmentStatus", - Dict{String,Any}("environmentId" => environmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_environment_status( environmentId, params::AbstractDict{String}; @@ -311,16 +295,13 @@ Gets information about Cloud9 development environments. - `environment_ids`: The IDs of individual environments to get information about. """ -function describe_environments( - environmentIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloud9( +describe_environments(environmentIds; aws_config::AbstractAWSConfig=current_aws_config()) = + cloud9( "DescribeEnvironments", Dict{String,Any}("environmentIds" => environmentIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_environments( environmentIds, params::AbstractDict{String}; @@ -351,11 +332,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned. """ -function list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloud9( - "ListEnvironments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloud9("ListEnvironments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -375,16 +353,13 @@ Gets a list of the tags associated with an Cloud9 development environment. get the tags for. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloud9( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + cloud9( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -413,14 +388,13 @@ by using this method will NOT be automatically propagated to underlying resource - `tags`: The list of tags to add to the given Cloud9 development environment. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cloud9( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cloud9( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -454,16 +428,13 @@ Removes tags from an Cloud9 development environment. environment. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloud9( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cloud9( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -504,16 +475,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys environment owner. - `"name"`: A replacement name for the environment. """ -function update_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloud9( +update_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + cloud9( "UpdateEnvironment", Dict{String,Any}("environmentId" => environmentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_environment( environmentId, params::AbstractDict{String}; @@ -547,20 +515,18 @@ environment. want to change. """ -function update_environment_membership( +update_environment_membership( environmentId, permissions, userArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloud9( + "UpdateEnvironmentMembership", + Dict{String,Any}( + "environmentId" => environmentId, + "permissions" => permissions, + "userArn" => userArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloud9( - "UpdateEnvironmentMembership", - Dict{String,Any}( - "environmentId" => environmentId, - "permissions" => permissions, - "userArn" => userArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment_membership( environmentId, permissions, diff --git a/src/services/cloudcontrol.jl b/src/services/cloudcontrol.jl index a7f6efe01..5cbb746e4 100644 --- a/src/services/cloudcontrol.jl +++ b/src/services/cloudcontrol.jl @@ -17,16 +17,13 @@ resource operations requests with a status of PENDING or IN_PROGRESS can be canc operation request. """ -function cancel_resource_request( - RequestToken; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudcontrol( +cancel_resource_request(RequestToken; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudcontrol( "CancelResourceRequest", Dict{String,Any}("RequestToken" => RequestToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_resource_request( RequestToken, params::AbstractDict{String}; @@ -83,20 +80,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If you do not specify a resource version, CloudFormation uses the default version. """ -function create_resource( +create_resource( DesiredState, TypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudcontrol( + "CreateResource", + Dict{String,Any}( + "DesiredState" => DesiredState, + "TypeName" => TypeName, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudcontrol( - "CreateResource", - Dict{String,Any}( - "DesiredState" => DesiredState, - "TypeName" => TypeName, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource( DesiredState, TypeName, @@ -162,10 +157,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If you do not specify a resource version, CloudFormation uses the default version. """ -function delete_resource( - Identifier, TypeName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudcontrol( +delete_resource(Identifier, TypeName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudcontrol( "DeleteResource", Dict{String,Any}( "Identifier" => Identifier, @@ -175,7 +168,6 @@ function delete_resource( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource( Identifier, TypeName, @@ -233,16 +225,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If you do not specify a resource version, CloudFormation uses the default version. """ -function get_resource( - Identifier, TypeName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudcontrol( +get_resource(Identifier, TypeName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudcontrol( "GetResource", Dict{String,Any}("Identifier" => Identifier, "TypeName" => TypeName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource( Identifier, TypeName, @@ -277,16 +266,14 @@ Control API User Guide. operation request. """ -function get_resource_request_status( +get_resource_request_status( RequestToken; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudcontrol( + "GetResourceRequestStatus", + Dict{String,Any}("RequestToken" => RequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudcontrol( - "GetResourceRequestStatus", - Dict{String,Any}("RequestToken" => RequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_request_status( RequestToken, params::AbstractDict{String}; @@ -323,11 +310,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken parameter is set to null. - `"ResourceRequestStatusFilter"`: The filter criteria to apply to the requests returned. """ -function list_resource_requests(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudcontrol( - "ListResourceRequests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_resource_requests(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudcontrol( + "ListResourceRequests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_resource_requests( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -371,14 +356,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If you do not specify a resource version, CloudFormation uses the default version. """ -function list_resources(TypeName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudcontrol( - "ListResources", - Dict{String,Any}("TypeName" => TypeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_resources(TypeName; aws_config::AbstractAWSConfig=current_aws_config()) = cloudcontrol( + "ListResources", + Dict{String,Any}("TypeName" => TypeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_resources( TypeName, params::AbstractDict{String}; @@ -444,21 +427,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If you do not specify a resource version, CloudFormation uses the default version. """ -function update_resource( +update_resource( Identifier, PatchDocument, TypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudcontrol( + "UpdateResource", + Dict{String,Any}( + "Identifier" => Identifier, + "PatchDocument" => PatchDocument, + "TypeName" => TypeName, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudcontrol( - "UpdateResource", - Dict{String,Any}( - "Identifier" => Identifier, - "PatchDocument" => PatchDocument, - "TypeName" => TypeName, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource( Identifier, PatchDocument, diff --git a/src/services/clouddirectory.jl b/src/services/clouddirectory.jl index 5ab0e0b07..d330313bc 100644 --- a/src/services/clouddirectory.jl +++ b/src/services/clouddirectory.jl @@ -21,24 +21,22 @@ Adds a new Facet to an object. An object can have more than one facet applied on Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ObjectAttributeList"`: Attributes on the facet that you are adding to the object. """ -function add_facet_to_object( +add_facet_to_object( ObjectReference, SchemaFacet, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/object/facets", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "SchemaFacet" => SchemaFacet, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/object/facets", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "SchemaFacet" => SchemaFacet, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_facet_to_object( ObjectReference, SchemaFacet, @@ -80,22 +78,20 @@ same name and version as that of the published schema. Directory into which the schema is copied. For more information, see arns. """ -function apply_schema( +apply_schema( PublishedSchemaArn, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/schema/apply", + Dict{String,Any}( + "PublishedSchemaArn" => PublishedSchemaArn, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/schema/apply", - Dict{String,Any}( - "PublishedSchemaArn" => PublishedSchemaArn, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_schema( PublishedSchemaArn, x_amz_data_partition, @@ -136,26 +132,24 @@ Using the path Using ObjectIdentifier where both objects reside. For more information, see arns. """ -function attach_object( +attach_object( ChildReference, LinkName, ParentReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/object/attach", + Dict{String,Any}( + "ChildReference" => ChildReference, + "LinkName" => LinkName, + "ParentReference" => ParentReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/object/attach", - Dict{String,Any}( - "ChildReference" => ChildReference, - "LinkName" => LinkName, - "ParentReference" => ParentReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_object( ChildReference, LinkName, @@ -200,24 +194,22 @@ attached policies. Directory where both objects reside. For more information, see arns. """ -function attach_policy( +attach_policy( ObjectReference, PolicyReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/policy/attach", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "PolicyReference" => PolicyReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/policy/attach", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "PolicyReference" => PolicyReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_policy( ObjectReference, PolicyReference, @@ -258,24 +250,22 @@ Attaches the specified object to the specified index. and index exist. """ -function attach_to_index( +attach_to_index( IndexReference, TargetReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/index/attach", + Dict{String,Any}( + "IndexReference" => IndexReference, + "TargetReference" => TargetReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/index/attach", - Dict{String,Any}( - "IndexReference" => IndexReference, - "TargetReference" => TargetReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_to_index( IndexReference, TargetReference, @@ -322,28 +312,26 @@ Typed Links. attach the typed link. """ -function attach_typed_link( +attach_typed_link( Attributes, SourceObjectReference, TargetObjectReference, TypedLinkFacet, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/typedlink/attach", + Dict{String,Any}( + "Attributes" => Attributes, + "SourceObjectReference" => SourceObjectReference, + "TargetObjectReference" => TargetObjectReference, + "TypedLinkFacet" => TypedLinkFacet, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/typedlink/attach", - Dict{String,Any}( - "Attributes" => Attributes, - "SourceObjectReference" => SourceObjectReference, - "TargetObjectReference" => TargetObjectReference, - "TypedLinkFacet" => TypedLinkFacet, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_typed_link( Attributes, SourceObjectReference, @@ -392,20 +380,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys write or update of an object is reflected in a subsequent read operation of that same object. """ -function batch_read( +batch_read( Operations, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/batchread", + Dict{String,Any}( + "Operations" => Operations, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/batchread", - Dict{String,Any}( - "Operations" => Operations, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_read( Operations, x_amz_data_partition, @@ -443,20 +429,18 @@ Performs all the write operations in a batch. Either all the operations succeed Directory. For more information, see arns. """ -function batch_write( +batch_write( Operations, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/batchwrite", + Dict{String,Any}( + "Operations" => Operations, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/batchwrite", - Dict{String,Any}( - "Operations" => Operations, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_write( Operations, x_amz_data_partition, @@ -497,20 +481,18 @@ Cloud Directory Developer Guide. be copied into the data Directory. For more information, see arns. """ -function create_directory( +create_directory( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/directory/create", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/directory/create", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_directory( Name, x_amz_data_partition, @@ -560,20 +542,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys policy document and policy type. For more information, see Policies. Index: Can be created with the Index API. """ -function create_facet( +create_facet( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/facet/create", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/facet/create", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_facet( Name, x_amz_data_partition, @@ -617,24 +597,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LinkName"`: The name of the link between the parent object and the index object. - `"ParentReference"`: A reference to the parent object that contains the index object. """ -function create_index( +create_index( IsUnique, OrderedIndexedAttributeList, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/index", + Dict{String,Any}( + "IsUnique" => IsUnique, + "OrderedIndexedAttributeList" => OrderedIndexedAttributeList, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/index", - Dict{String,Any}( - "IsUnique" => IsUnique, - "OrderedIndexedAttributeList" => OrderedIndexedAttributeList, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_index( IsUnique, OrderedIndexedAttributeList, @@ -685,20 +663,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ParentReference"`: If specified, the parent reference to which this object will be attached. """ -function create_object( +create_object( SchemaFacets, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/object", + Dict{String,Any}( + "SchemaFacets" => SchemaFacets, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/object", - Dict{String,Any}( - "SchemaFacets" => SchemaFacets, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_object( SchemaFacets, x_amz_data_partition, @@ -741,15 +717,13 @@ directories. in each region. """ -function create_schema(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/schema/create", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_schema(Name; aws_config::AbstractAWSConfig=current_aws_config()) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/schema/create", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_schema( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -774,20 +748,18 @@ Creates a TypedLinkFacet. For more information, see Typed Links. schema. For more information, see arns. """ -function create_typed_link_facet( +create_typed_link_facet( Facet, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/typedlink/facet/create", + Dict{String,Any}( + "Facet" => Facet, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/typedlink/facet/create", - Dict{String,Any}( - "Facet" => Facet, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_typed_link_facet( Facet, x_amz_data_partition, @@ -824,10 +796,8 @@ be undone. Exercise extreme caution when deleting directories. - `x-amz-data-partition`: The ARN of the directory to delete. """ -function delete_directory( - x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +delete_directory(x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "PUT", "/amazonclouddirectory/2017-01-11/directory", Dict{String,Any}( @@ -836,7 +806,6 @@ function delete_directory( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_directory( x_amz_data_partition, params::AbstractDict{String}; @@ -873,20 +842,18 @@ deleted. Only development schema facets are allowed deletion. For more information, see arns. """ -function delete_facet( +delete_facet( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/facet/delete", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/facet/delete", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_facet( Name, x_amz_data_partition, @@ -926,22 +893,20 @@ object deletion is 30. For more information, see Amazon Cloud Directory Limits. Directory where the object resides. For more information, see arns. """ -function delete_object( +delete_object( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/object/delete", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/object/delete", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_object( ObjectReference, x_amz_data_partition, @@ -978,10 +943,8 @@ Deletes a given schema. Schemas in a development and published state can only be more information, see arns. """ -function delete_schema( - x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +delete_schema(x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "PUT", "/amazonclouddirectory/2017-01-11/schema", Dict{String,Any}( @@ -990,7 +953,6 @@ function delete_schema( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_schema( x_amz_data_partition, params::AbstractDict{String}; @@ -1026,20 +988,18 @@ Deletes a TypedLinkFacet. For more information, see Typed Links. schema. For more information, see arns. """ -function delete_typed_link_facet( +delete_typed_link_facet( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/typedlink/facet/delete", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/typedlink/facet/delete", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_typed_link_facet( Name, x_amz_data_partition, @@ -1078,24 +1038,22 @@ Detaches the specified object from the specified index. object exist in. """ -function detach_from_index( +detach_from_index( IndexReference, TargetReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/index/detach", + Dict{String,Any}( + "IndexReference" => IndexReference, + "TargetReference" => TargetReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/index/detach", - Dict{String,Any}( - "IndexReference" => IndexReference, - "TargetReference" => TargetReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_from_index( IndexReference, TargetReference, @@ -1138,24 +1096,22 @@ parent is specified by the link name. Directory where objects reside. For more information, see arns. """ -function detach_object( +detach_object( LinkName, ParentReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/object/detach", + Dict{String,Any}( + "LinkName" => LinkName, + "ParentReference" => ParentReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/object/detach", - Dict{String,Any}( - "LinkName" => LinkName, - "ParentReference" => ParentReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_object( LinkName, ParentReference, @@ -1197,24 +1153,22 @@ Detaches a policy from an object. Directory where both objects reside. For more information, see arns. """ -function detach_policy( +detach_policy( ObjectReference, PolicyReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/policy/detach", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "PolicyReference" => PolicyReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/policy/detach", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "PolicyReference" => PolicyReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_policy( ObjectReference, PolicyReference, @@ -1255,22 +1209,20 @@ Typed Links. detach the typed link. """ -function detach_typed_link( +detach_typed_link( TypedLinkSpecifier, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/typedlink/detach", + Dict{String,Any}( + "TypedLinkSpecifier" => TypedLinkSpecifier, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/typedlink/detach", - Dict{String,Any}( - "TypedLinkSpecifier" => TypedLinkSpecifier, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_typed_link( TypedLinkSpecifier, x_amz_data_partition, @@ -1307,19 +1259,17 @@ enabled directories can be disabled. Disabled directories may be reenabled. - `x-amz-data-partition`: The ARN of the directory to disable. """ -function disable_directory( +disable_directory( x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/directory/disable", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/directory/disable", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_directory( x_amz_data_partition, params::AbstractDict{String}; @@ -1354,10 +1304,8 @@ the directory can then be read and written to. - `x-amz-data-partition`: The ARN of the directory to enable. """ -function enable_directory( - x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +enable_directory(x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "PUT", "/amazonclouddirectory/2017-01-11/directory/enable", Dict{String,Any}( @@ -1366,7 +1314,6 @@ function enable_directory( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_directory( x_amz_data_partition, params::AbstractDict{String}; @@ -1400,17 +1347,14 @@ Returns current applied schema version ARN, including the minor version in use. - `schema_arn`: The ARN of the applied schema. """ -function get_applied_schema_version( - SchemaArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +get_applied_schema_version(SchemaArn; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/schema/getappliedschema", Dict{String,Any}("SchemaArn" => SchemaArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_applied_schema_version( SchemaArn, params::AbstractDict{String}; @@ -1437,10 +1381,8 @@ Retrieves metadata about a directory. - `x-amz-data-partition`: The ARN of the directory. """ -function get_directory( - x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +get_directory(x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/directory/get", Dict{String,Any}( @@ -1449,7 +1391,6 @@ function get_directory( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_directory( x_amz_data_partition, params::AbstractDict{String}; @@ -1486,10 +1427,8 @@ call this on all kinds of schema facets -- published, development, or applied. For more information, see arns. """ -function get_facet( - Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +get_facet(Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/facet", Dict{String,Any}( @@ -1499,7 +1438,6 @@ function get_facet( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_facet( Name, x_amz_data_partition, @@ -1542,24 +1480,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ConsistencyLevel"`: The consistency level at which to retrieve the attributes on a typed link. """ -function get_link_attributes( +get_link_attributes( AttributeNames, TypedLinkSpecifier, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/typedlink/attributes/get", + Dict{String,Any}( + "AttributeNames" => AttributeNames, + "TypedLinkSpecifier" => TypedLinkSpecifier, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/typedlink/attributes/get", - Dict{String,Any}( - "AttributeNames" => AttributeNames, - "TypedLinkSpecifier" => TypedLinkSpecifier, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_link_attributes( AttributeNames, TypedLinkSpecifier, @@ -1607,26 +1543,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-consistency-level"`: The consistency level at which to retrieve the attributes on an object. """ -function get_object_attributes( +get_object_attributes( AttributeNames, ObjectReference, SchemaFacet, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/object/attributes/get", + Dict{String,Any}( + "AttributeNames" => AttributeNames, + "ObjectReference" => ObjectReference, + "SchemaFacet" => SchemaFacet, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/object/attributes/get", - Dict{String,Any}( - "AttributeNames" => AttributeNames, - "ObjectReference" => ObjectReference, - "SchemaFacet" => SchemaFacet, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_object_attributes( AttributeNames, ObjectReference, @@ -1671,22 +1605,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-consistency-level"`: The consistency level at which to retrieve the object information. """ -function get_object_information( +get_object_information( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/object/information", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/object/information", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_object_information( ObjectReference, x_amz_data_partition, @@ -1722,19 +1654,17 @@ Retrieves a JSON representation of the schema. See JSON Schema Format for more i - `x-amz-data-partition`: The ARN of the schema to retrieve. """ -function get_schema_as_json( +get_schema_as_json( x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/schema/json", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/schema/json", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_schema_as_json( x_amz_data_partition, params::AbstractDict{String}; @@ -1771,20 +1701,18 @@ see Typed Links. schema. For more information, see arns. """ -function get_typed_link_facet_information( +get_typed_link_facet_information( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/typedlink/facet/get", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/typedlink/facet/get", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_typed_link_facet_information( Name, x_amz_data_partition, @@ -1827,17 +1755,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SchemaArn"`: The response for ListAppliedSchemaArns when this parameter is used will list all minor version ARNs for a major version. """ -function list_applied_schema_arns( - DirectoryArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +list_applied_schema_arns(DirectoryArn; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/schema/applied", Dict{String,Any}("DirectoryArn" => DirectoryArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_applied_schema_arns( DirectoryArn, params::AbstractDict{String}; @@ -1870,22 +1795,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token. - `"x-amz-consistency-level"`: The consistency level to use for this operation. """ -function list_attached_indices( +list_attached_indices( TargetReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/object/indices", + Dict{String,Any}( + "TargetReference" => TargetReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/object/indices", - Dict{String,Any}( - "TargetReference" => TargetReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_attached_indices( TargetReference, x_amz_data_partition, @@ -1922,14 +1845,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to retrieve. - `"NextToken"`: The pagination token. """ -function list_development_schema_arns(; aws_config::AbstractAWSConfig=current_aws_config()) - return clouddirectory( +list_development_schema_arns(; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/schema/development"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_development_schema_arns( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1955,14 +1877,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"state"`: The state of the directories in the list. Can be either Enabled, Disabled, or Deleted. """ -function list_directories(; aws_config::AbstractAWSConfig=current_aws_config()) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/directory/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_directories(; aws_config::AbstractAWSConfig=current_aws_config()) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/directory/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_directories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1990,20 +1910,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to retrieve. - `"NextToken"`: The pagination token. """ -function list_facet_attributes( +list_facet_attributes( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/facet/attributes", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/facet/attributes", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_facet_attributes( Name, x_amz_data_partition, @@ -2043,10 +1961,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to retrieve. - `"NextToken"`: The pagination token. """ -function list_facet_names( - x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +list_facet_names(x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/facet/list", Dict{String,Any}( @@ -2055,7 +1971,6 @@ function list_facet_names( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_facet_names( x_amz_data_partition, params::AbstractDict{String}; @@ -2098,27 +2013,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FilterAttributeRanges"`: Provides range filters for multiple attributes. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. -- `"FilterTypedLink"`: Filters are interpreted in the order of the attributes on the typed - link facet, not the order in which they are supplied to any API calls. -- `"MaxResults"`: The maximum number of results to retrieve. -- `"NextToken"`: The pagination token. -""" -function list_incoming_typed_links( - ObjectReference, - x_amz_data_partition; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/typedlink/incoming", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +- `"FilterTypedLink"`: Filters are interpreted in the order of the attributes on the typed + link facet, not the order in which they are supplied to any API calls. +- `"MaxResults"`: The maximum number of results to retrieve. +- `"NextToken"`: The pagination token. +""" +list_incoming_typed_links( + ObjectReference, + x_amz_data_partition; + aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/typedlink/incoming", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_incoming_typed_links( ObjectReference, x_amz_data_partition, @@ -2162,20 +2075,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RangesOnIndexedValues"`: Specifies the ranges of indexed values that you want to query. - `"x-amz-consistency-level"`: The consistency level to execute the request at. """ -function list_index( +list_index( IndexReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/index/targets", + Dict{String,Any}( + "IndexReference" => IndexReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/index/targets", - Dict{String,Any}( - "IndexReference" => IndexReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_index( IndexReference, x_amz_data_partition, @@ -2215,14 +2126,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SchemaArn"`: The response for ListManagedSchemaArns. When this parameter is used, all minor version ARNs for a major version are listed. """ -function list_managed_schema_arns(; aws_config::AbstractAWSConfig=current_aws_config()) - return clouddirectory( +list_managed_schema_arns(; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/schema/managed"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_managed_schema_arns( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2258,22 +2168,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys write or update of an object is reflected in a subsequent read operation of that same object. """ -function list_object_attributes( +list_object_attributes( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/object/attributes", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/object/attributes", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_object_attributes( ObjectReference, x_amz_data_partition, @@ -2320,22 +2228,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys write or update of an object is reflected in a subsequent read operation of that same object. """ -function list_object_children( +list_object_children( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/object/children", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/object/children", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_object_children( ObjectReference, x_amz_data_partition, @@ -2385,22 +2291,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys approximate number. - `"NextToken"`: The pagination token. """ -function list_object_parent_paths( +list_object_parent_paths( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/object/parentpaths", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/object/parentpaths", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_object_parent_paths( ObjectReference, x_amz_data_partition, @@ -2450,22 +2354,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys write or update of an object is reflected in a subsequent read operation of that same object. """ -function list_object_parents( +list_object_parents( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/object/parent", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/object/parent", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_object_parents( ObjectReference, x_amz_data_partition, @@ -2512,22 +2414,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys write or update of an object is reflected in a subsequent read operation of that same object. """ -function list_object_policies( +list_object_policies( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/object/policy", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/object/policy", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_object_policies( ObjectReference, x_amz_data_partition, @@ -2578,22 +2478,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to retrieve. - `"NextToken"`: The pagination token. """ -function list_outgoing_typed_links( +list_outgoing_typed_links( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/typedlink/outgoing", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/typedlink/outgoing", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_outgoing_typed_links( ObjectReference, x_amz_data_partition, @@ -2639,22 +2537,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys write or update of an object is reflected in a subsequent read operation of that same object. """ -function list_policy_attachments( +list_policy_attachments( PolicyReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/policy/attachment", + Dict{String,Any}( + "PolicyReference" => PolicyReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/policy/attachment", - Dict{String,Any}( - "PolicyReference" => PolicyReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_policy_attachments( PolicyReference, x_amz_data_partition, @@ -2694,14 +2590,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SchemaArn"`: The response for ListPublishedSchemaArns when this parameter is used will list all minor version ARNs for a major version. """ -function list_published_schema_arns(; aws_config::AbstractAWSConfig=current_aws_config()) - return clouddirectory( +list_published_schema_arns(; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/schema/published"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_published_schema_arns( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2733,17 +2628,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token. This is for future use. Currently pagination is not supported for tagging. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "POST", "/amazonclouddirectory/2017-01-11/tags", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2777,20 +2669,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to retrieve. - `"NextToken"`: The pagination token. """ -function list_typed_link_facet_attributes( +list_typed_link_facet_attributes( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/typedlink/facet/attributes", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/typedlink/facet/attributes", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_typed_link_facet_attributes( Name, x_amz_data_partition, @@ -2832,19 +2722,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to retrieve. - `"NextToken"`: The pagination token. """ -function list_typed_link_facet_names( +list_typed_link_facet_names( x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/typedlink/facet/list", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/typedlink/facet/list", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_typed_link_facet_names( x_amz_data_partition, params::AbstractDict{String}; @@ -2890,22 +2778,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys approximate number. - `"NextToken"`: The token to request the next page of results. """ -function lookup_policy( +lookup_policy( ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/policy/lookup", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/policy/lookup", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function lookup_policy( ObjectReference, x_amz_data_partition, @@ -2950,20 +2836,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The new name under which the schema will be published. If this is not provided, the development schema is considered. """ -function publish_schema( +publish_schema( Version, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/schema/publish", + Dict{String,Any}( + "Version" => Version, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/schema/publish", - Dict{String,Any}( - "Version" => Version, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function publish_schema( Version, x_amz_data_partition, @@ -3001,20 +2885,18 @@ See JSON Schema Format for more information. - `x-amz-data-partition`: The ARN of the schema to update. """ -function put_schema_from_json( +put_schema_from_json( Document, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/schema/json", + Dict{String,Any}( + "Document" => Document, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/schema/json", - Dict{String,Any}( - "Document" => Document, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_schema_from_json( Document, x_amz_data_partition, @@ -3052,24 +2934,22 @@ Removes the specified facet from the specified object. - `x-amz-data-partition`: The ARN of the directory in which the object resides. """ -function remove_facet_from_object( +remove_facet_from_object( ObjectReference, SchemaFacet, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/object/facets/delete", + Dict{String,Any}( + "ObjectReference" => ObjectReference, + "SchemaFacet" => SchemaFacet, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/object/facets/delete", - Dict{String,Any}( - "ObjectReference" => ObjectReference, - "SchemaFacet" => SchemaFacet, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_facet_from_object( ObjectReference, SchemaFacet, @@ -3109,15 +2989,14 @@ An API operation for adding tags to a resource. - `tags`: A list of tag key-value pairs. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return clouddirectory( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "PUT", "/amazonclouddirectory/2017-01-11/tags/add", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -3151,17 +3030,14 @@ An API operation for removing tags from a resource. - `tag_keys`: Keys of the tag that need to be removed from the resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return clouddirectory( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + clouddirectory( "PUT", "/amazonclouddirectory/2017-01-11/tags/remove", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -3203,20 +3079,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ObjectType"`: The object type that is associated with the facet. See CreateFacetRequestObjectType for more details. """ -function update_facet( +update_facet( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/facet", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/facet", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_facet( Name, x_amz_data_partition, @@ -3257,24 +3131,22 @@ the typed link’s identity, as defined by its IdentityAttributeOrder. Links. """ -function update_link_attributes( +update_link_attributes( AttributeUpdates, TypedLinkSpecifier, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "POST", + "/amazonclouddirectory/2017-01-11/typedlink/attributes/update", + Dict{String,Any}( + "AttributeUpdates" => AttributeUpdates, + "TypedLinkSpecifier" => TypedLinkSpecifier, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "POST", - "/amazonclouddirectory/2017-01-11/typedlink/attributes/update", - Dict{String,Any}( - "AttributeUpdates" => AttributeUpdates, - "TypedLinkSpecifier" => TypedLinkSpecifier, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_link_attributes( AttributeUpdates, TypedLinkSpecifier, @@ -3315,24 +3187,22 @@ Updates a given object's attributes. Directory where the object resides. For more information, see arns. """ -function update_object_attributes( +update_object_attributes( AttributeUpdates, ObjectReference, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/object/update", + Dict{String,Any}( + "AttributeUpdates" => AttributeUpdates, + "ObjectReference" => ObjectReference, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/object/update", - Dict{String,Any}( - "AttributeUpdates" => AttributeUpdates, - "ObjectReference" => ObjectReference, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_object_attributes( AttributeUpdates, ObjectReference, @@ -3372,20 +3242,18 @@ Updates the schema name with a new name. Only development schema names can be up more information, see arns. """ -function update_schema( +update_schema( Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/schema/update", + Dict{String,Any}( + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/schema/update", - Dict{String,Any}( - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_schema( Name, x_amz_data_partition, @@ -3431,26 +3299,24 @@ Updates a TypedLinkFacet. For more information, see Typed Links. schema. For more information, see arns. """ -function update_typed_link_facet( +update_typed_link_facet( AttributeUpdates, IdentityAttributeOrder, Name, x_amz_data_partition; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/typedlink/facet", + Dict{String,Any}( + "AttributeUpdates" => AttributeUpdates, + "IdentityAttributeOrder" => IdentityAttributeOrder, + "Name" => Name, + "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/typedlink/facet", - Dict{String,Any}( - "AttributeUpdates" => AttributeUpdates, - "IdentityAttributeOrder" => IdentityAttributeOrder, - "Name" => Name, - "headers" => Dict{String,Any}("x-amz-data-partition" => x_amz_data_partition), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_typed_link_facet( AttributeUpdates, IdentityAttributeOrder, @@ -3500,19 +3366,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not. If schema compatibility fails, an exception would be thrown else the call would succeed but no changes will be saved. This parameter is optional. """ -function upgrade_applied_schema( +upgrade_applied_schema( DirectoryArn, PublishedSchemaArn; aws_config::AbstractAWSConfig=current_aws_config() +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/schema/upgradeapplied", + Dict{String,Any}( + "DirectoryArn" => DirectoryArn, "PublishedSchemaArn" => PublishedSchemaArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/schema/upgradeapplied", - Dict{String,Any}( - "DirectoryArn" => DirectoryArn, "PublishedSchemaArn" => PublishedSchemaArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upgrade_applied_schema( DirectoryArn, PublishedSchemaArn, @@ -3558,24 +3422,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys compatibility fails, an exception would be thrown else the call would succeed. This parameter is optional and defaults to false. """ -function upgrade_published_schema( +upgrade_published_schema( DevelopmentSchemaArn, MinorVersion, PublishedSchemaArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = clouddirectory( + "PUT", + "/amazonclouddirectory/2017-01-11/schema/upgradepublished", + Dict{String,Any}( + "DevelopmentSchemaArn" => DevelopmentSchemaArn, + "MinorVersion" => MinorVersion, + "PublishedSchemaArn" => PublishedSchemaArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return clouddirectory( - "PUT", - "/amazonclouddirectory/2017-01-11/schema/upgradepublished", - Dict{String,Any}( - "DevelopmentSchemaArn" => DevelopmentSchemaArn, - "MinorVersion" => MinorVersion, - "PublishedSchemaArn" => PublishedSchemaArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upgrade_published_schema( DevelopmentSchemaArn, MinorVersion, diff --git a/src/services/cloudformation.jl b/src/services/cloudformation.jl index 1d3c4e0c0..62ed86ca4 100644 --- a/src/services/cloudformation.jl +++ b/src/services/cloudformation.jl @@ -13,13 +13,12 @@ Organizations activated, the management account has permissions to create and ma StackSets for your organization. """ -function activate_organizations_access(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +activate_organizations_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ActivateOrganizationsAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function activate_organizations_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -73,11 +72,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. MINOR: CloudFormation updates the extension to the newest minor version, if one is available. """ -function activate_type(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "ActivateType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +activate_type(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("ActivateType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function activate_type( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -99,16 +95,14 @@ extensions at the account level in the CloudFormation User Guide. configurations. """ -function batch_describe_type_configurations( +batch_describe_type_configurations( TypeConfigurationIdentifiers; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "BatchDescribeTypeConfigurations", + Dict{String,Any}("TypeConfigurationIdentifiers" => TypeConfigurationIdentifiers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "BatchDescribeTypeConfigurations", - Dict{String,Any}("TypeConfigurationIdentifiers" => TypeConfigurationIdentifiers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_describe_type_configurations( TypeConfigurationIdentifiers, params::AbstractDict{String}; @@ -154,14 +148,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys attempting to cancel an update on a stack with the same name. You might retry CancelUpdateStack requests to ensure that CloudFormation successfully received them. """ -function cancel_update_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +cancel_update_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "CancelUpdateStack", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_update_stack( StackName, params::AbstractDict{String}; @@ -236,16 +229,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials. """ -function continue_update_rollback( - StackName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +continue_update_rollback(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ContinueUpdateRollback", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function continue_update_rollback( StackName, params::AbstractDict{String}; @@ -395,16 +385,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UsePreviousTemplate"`: Whether to reuse the template that's associated with the stack to create the change set. """ -function create_change_set( +create_change_set( ChangeSetName, StackName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "CreateChangeSet", + Dict{String,Any}("ChangeSetName" => ChangeSetName, "StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "CreateChangeSet", - Dict{String,Any}("ChangeSetName" => ChangeSetName, "StackName" => StackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_change_set( ChangeSetName, StackName, @@ -448,16 +436,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TemplateConfiguration"`: The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy. """ -function create_generated_template( +create_generated_template( GeneratedTemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "CreateGeneratedTemplate", + Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "CreateGeneratedTemplate", - Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_generated_template( GeneratedTemplateName, params::AbstractDict{String}; @@ -602,14 +588,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CREATE_FAILED; if DisableRollback is not set or is set to false, the stack will be rolled back. """ -function create_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +create_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "CreateStack", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_stack( StackName, params::AbstractDict{String}; @@ -680,20 +665,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter values that are specified in the stack set; to add or delete a parameter itself, use UpdateStackSet to update the stack set template. """ -function create_stack_instances( +create_stack_instances( Regions, StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "CreateStackInstances", + Dict{String,Any}( + "Regions" => Regions, + "StackSetName" => StackSetName, + "OperationId" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "CreateStackInstances", - Dict{String,Any}( - "Regions" => Regions, - "StackSetName" => StackSetName, - "OperationId" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_stack_instances( Regions, StackSetName, @@ -815,8 +798,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CloudFormation User Guide. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both. """ -function create_stack_set(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +create_stack_set(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "CreateStackSet", Dict{String,Any}( "StackSetName" => StackSetName, "ClientRequestToken" => string(uuid4()) @@ -824,7 +807,6 @@ function create_stack_set(StackSetName; aws_config::AbstractAWSConfig=current_aw aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_stack_set( StackSetName, params::AbstractDict{String}; @@ -855,15 +837,12 @@ management account does not have permissions to create and manage service-manage for your organization. """ -function deactivate_organizations_access(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +deactivate_organizations_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DeactivateOrganizationsAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deactivate_organizations_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -895,11 +874,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified a type name alias when enabling the extension, use the type name alias. Conditional: You must specify either Arn, or TypeName and Type. """ -function deactivate_type(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "DeactivateType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +deactivate_type(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("DeactivateType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function deactivate_type( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -928,16 +904,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackName"`: If you specified the name of a change set to delete, specify the stack name or Amazon Resource Name (ARN) that's associated with it. """ -function delete_change_set( - ChangeSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +delete_change_set(ChangeSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DeleteChangeSet", Dict{String,Any}("ChangeSetName" => ChangeSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_change_set( ChangeSetName, params::AbstractDict{String}; @@ -963,16 +936,14 @@ Deleted a generated template. - `generated_template_name`: The name or Amazon Resource Name (ARN) of a generated template. """ -function delete_generated_template( +delete_generated_template( GeneratedTemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DeleteGeneratedTemplate", + Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DeleteGeneratedTemplate", - Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_generated_template( GeneratedTemplateName, params::AbstractDict{String}; @@ -1033,14 +1004,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials. """ -function delete_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +delete_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DeleteStack", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_stack( StackName, params::AbstractDict{String}; @@ -1096,21 +1066,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OperationPreferences"`: Preferences for how CloudFormation performs this stack set operation. """ -function delete_stack_instances( +delete_stack_instances( Regions, RetainStacks, StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DeleteStackInstances", + Dict{String,Any}( + "Regions" => Regions, + "RetainStacks" => RetainStacks, + "StackSetName" => StackSetName, + "OperationId" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DeleteStackInstances", - Dict{String,Any}( - "Regions" => Regions, - "RetainStacks" => RetainStacks, - "StackSetName" => StackSetName, - "OperationId" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_stack_instances( Regions, RetainStacks, @@ -1159,14 +1127,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Register a delegated administrator in the CloudFormation User Guide. """ -function delete_stack_set(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +delete_stack_set(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DeleteStackSet", Dict{String,Any}("StackSetName" => StackSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_stack_set( StackSetName, params::AbstractDict{String}; @@ -1209,11 +1176,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered. """ -function deregister_type(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "DeregisterType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +deregister_type(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("DeregisterType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function deregister_type( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1234,11 +1198,10 @@ CloudFormation Quotas in the CloudFormation User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: A string that identifies the next page of limits that you want to retrieve. """ -function describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DescribeAccountLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1271,16 +1234,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackName"`: If you specified the name of a change set, specify the stack name or ID (ARN) of the change set you want to describe. """ -function describe_change_set( - ChangeSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +describe_change_set(ChangeSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DescribeChangeSet", Dict{String,Any}("ChangeSetName" => ChangeSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_change_set( ChangeSetName, params::AbstractDict{String}; @@ -1316,16 +1276,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackName"`: If you specified the name of a change set, specify the stack name or stack ID (ARN) of the change set you want to describe. """ -function describe_change_set_hooks( +describe_change_set_hooks( ChangeSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DescribeChangeSetHooks", + Dict{String,Any}("ChangeSetName" => ChangeSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DescribeChangeSetHooks", - Dict{String,Any}("ChangeSetName" => ChangeSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_change_set_hooks( ChangeSetName, params::AbstractDict{String}; @@ -1353,16 +1311,14 @@ update of a generated template started with an UpdateGeneratedTemplate API actio - `generated_template_name`: The name or Amazon Resource Name (ARN) of a generated template. """ -function describe_generated_template( +describe_generated_template( GeneratedTemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DescribeGeneratedTemplate", + Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DescribeGeneratedTemplate", - Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_generated_template( GeneratedTemplateName, params::AbstractDict{String}; @@ -1401,13 +1357,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide. """ -function describe_organizations_access(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +describe_organizations_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DescribeOrganizationsAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_organizations_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1435,11 +1390,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account. """ -function describe_publisher(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "DescribePublisher"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_publisher(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudformation( + "DescribePublisher"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_publisher( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1458,16 +1411,13 @@ Describes details of a resource scan. - `resource_scan_id`: The Amazon Resource Name (ARN) of the resource scan. """ -function describe_resource_scan( - ResourceScanId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +describe_resource_scan(ResourceScanId; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DescribeResourceScan", Dict{String,Any}("ResourceScanId" => ResourceScanId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_resource_scan( ResourceScanId, params::AbstractDict{String}; @@ -1505,16 +1455,14 @@ drift information about the stack and its resources. stack, and for how long, may vary. """ -function describe_stack_drift_detection_status( +describe_stack_drift_detection_status( StackDriftDetectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DescribeStackDriftDetectionStatus", + Dict{String,Any}("StackDriftDetectionId" => StackDriftDetectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DescribeStackDriftDetectionStatus", - Dict{String,Any}("StackDriftDetectionId" => StackDriftDetectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_stack_drift_detection_status( StackDriftDetectionId, params::AbstractDict{String}; @@ -1551,11 +1499,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys its unique stack ID. Deleted stacks: You must specify the unique stack ID. Default: There is no default value. """ -function describe_stack_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +describe_stack_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DescribeStackEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_stack_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1593,23 +1540,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Register a delegated administrator in the CloudFormation User Guide. """ -function describe_stack_instance( +describe_stack_instance( StackInstanceAccount, StackInstanceRegion, StackSetName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudformation( + "DescribeStackInstance", + Dict{String,Any}( + "StackInstanceAccount" => StackInstanceAccount, + "StackInstanceRegion" => StackInstanceRegion, + "StackSetName" => StackSetName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DescribeStackInstance", - Dict{String,Any}( - "StackInstanceAccount" => StackInstanceAccount, - "StackInstanceRegion" => StackInstanceRegion, - "StackSetName" => StackSetName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_stack_instance( StackInstanceAccount, StackInstanceRegion, @@ -1652,18 +1597,14 @@ been deleted. There is no default value. """ -function describe_stack_resource( +describe_stack_resource( LogicalResourceId, StackName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DescribeStackResource", + Dict{String,Any}("LogicalResourceId" => LogicalResourceId, "StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DescribeStackResource", - Dict{String,Any}( - "LogicalResourceId" => LogicalResourceId, "StackName" => StackName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_stack_resource( LogicalResourceId, StackName, @@ -1716,16 +1657,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actual configuration matches its expected template configuration. NOT_CHECKED: CloudFormation doesn't currently return this value. """ -function describe_stack_resource_drifts( +describe_stack_resource_drifts( StackName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DescribeStackResourceDrifts", + Dict{String,Any}("StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DescribeStackResourceDrifts", - Dict{String,Any}("StackName" => StackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_stack_resource_drifts( StackName, params::AbstractDict{String}; @@ -1773,11 +1712,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys There is no default value. Required: Conditional. If you don't specify StackName, you must specify PhysicalResourceId. """ -function describe_stack_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +describe_stack_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DescribeStackResources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_stack_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1809,16 +1747,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Register a delegated administrator in the CloudFormation User Guide. """ -function describe_stack_set( - StackSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +describe_stack_set(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DescribeStackSet", Dict{String,Any}("StackSetName" => StackSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_stack_set( StackSetName, params::AbstractDict{String}; @@ -1856,16 +1791,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Register a delegated administrator in the CloudFormation User Guide. """ -function describe_stack_set_operation( +describe_stack_set_operation( OperationId, StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DescribeStackSetOperation", + Dict{String,Any}("OperationId" => OperationId, "StackSetName" => StackSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DescribeStackSetOperation", - Dict{String,Any}("OperationId" => OperationId, "StackSetName" => StackSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_stack_set_operation( OperationId, StackSetName, @@ -1912,11 +1845,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify either the stack's name or its unique stack ID. Deleted stacks: You must specify the unique stack ID. Default: There is no default value. """ -function describe_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "DescribeStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("DescribeStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_stacks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1950,11 +1880,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specific extension version. Otherwise, it returns information about the default extension version. """ -function describe_type(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "DescribeType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_type(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("DescribeType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_type( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1979,16 +1906,14 @@ information about an extension. RegisterType. """ -function describe_type_registration( +describe_type_registration( RegistrationToken; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DescribeTypeRegistration", + Dict{String,Any}("RegistrationToken" => RegistrationToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DescribeTypeRegistration", - Dict{String,Any}("RegistrationToken" => RegistrationToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_type_registration( RegistrationToken, params::AbstractDict{String}; @@ -2035,14 +1960,13 @@ belonging to that stack. Perform DetectStackDrift directly on the nested stack i Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LogicalResourceIds"`: The logical names of any resources you want to use as filters. """ -function detect_stack_drift(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +detect_stack_drift(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DetectStackDrift", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_stack_drift( StackName, params::AbstractDict{String}; @@ -2079,18 +2003,14 @@ list of resources that support drift detection, see Resources that Support Drift - `stack_name`: The name of the stack to which the resource belongs. """ -function detect_stack_resource_drift( +detect_stack_resource_drift( LogicalResourceId, StackName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "DetectStackResourceDrift", + Dict{String,Any}("LogicalResourceId" => LogicalResourceId, "StackName" => StackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "DetectStackResourceDrift", - Dict{String,Any}( - "LogicalResourceId" => LogicalResourceId, "StackName" => StackName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detect_stack_resource_drift( LogicalResourceId, StackName, @@ -2155,16 +2075,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a stack set operation. For more information about maximum concurrent accounts and failure tolerance, see Stack set operation options. """ -function detect_stack_set_drift( - StackSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +detect_stack_set_drift(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "DetectStackSetDrift", Dict{String,Any}("StackSetName" => StackSetName, "OperationId" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_stack_set_drift( StackSetName, params::AbstractDict{String}; @@ -2207,11 +2124,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon S3 bucket must start with https://. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used. """ -function estimate_template_cost(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +estimate_template_cost(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "EstimateTemplateCost"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function estimate_template_cost( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2259,16 +2175,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackName"`: If you specified the name of a change set, specify the stack name or Amazon Resource Name (ARN) that's associated with the change set you want to execute. """ -function execute_change_set( - ChangeSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +execute_change_set(ChangeSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ExecuteChangeSet", Dict{String,Any}("ChangeSetName" => ChangeSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function execute_change_set( ChangeSetName, params::AbstractDict{String}; @@ -2305,16 +2218,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Format"`: The language to use to retrieve for the generated template. Supported values are: JSON YAML """ -function get_generated_template( +get_generated_template( GeneratedTemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "GetGeneratedTemplate", + Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "GetGeneratedTemplate", - Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_generated_template( GeneratedTemplateName, params::AbstractDict{String}; @@ -2346,14 +2257,13 @@ value is returned. you want to get. """ -function get_stack_policy(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +get_stack_policy(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "GetStackPolicy", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_stack_policy( StackName, params::AbstractDict{String}; @@ -2393,11 +2303,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys template doesn't include transforms, Original and Processed return the same template. By default, CloudFormation specifies Processed. """ -function get_template(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "GetTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("GetTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2448,11 +2355,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. """ -function get_template_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "GetTemplateSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_template_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudformation( + "GetTemplateSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_template_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2490,16 +2395,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackIdsUrl"`: The Amazon S3 URL which contains list of stack ids to be inputted. Specify either StackIds or StackIdsUrl. """ -function import_stacks_to_stack_set( +import_stacks_to_stack_set( StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "ImportStacksToStackSet", + Dict{String,Any}("StackSetName" => StackSetName, "OperationId" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "ImportStacksToStackSet", - Dict{String,Any}("StackSetName" => StackSetName, "OperationId" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_stacks_to_stack_set( StackSetName, params::AbstractDict{String}; @@ -2537,14 +2440,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A string (provided by the ListChangeSets response output) that identifies the next page of change sets that you want to retrieve. """ -function list_change_sets(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +list_change_sets(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ListChangeSets", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_change_sets( StackName, params::AbstractDict{String}; @@ -2574,11 +2476,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A string (provided by the ListExports response output) that identifies the next page of exported output values that you asked to retrieve. """ -function list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "ListExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("ListExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2601,11 +2500,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in each response. The maximum value is 100. - `"NextToken"`: A string that identifies the next page of resource scan results. """ -function list_generated_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +list_generated_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ListGeneratedTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_generated_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2635,14 +2533,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A string (provided by the ListImports response output) that identifies the next page of stacks that are importing the specified exported output value. """ -function list_imports(ExportName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +list_imports(ExportName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ListImports", Dict{String,Any}("ExportName" => ExportName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_imports( ExportName, params::AbstractDict{String}; @@ -2678,16 +2575,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 100 results in each response. The maximum value is 100. - `"NextToken"`: A string that identifies the next page of resource scan results. """ -function list_resource_scan_related_resources( +list_resource_scan_related_resources( ResourceScanId, Resources; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "ListResourceScanRelatedResources", + Dict{String,Any}("ResourceScanId" => ResourceScanId, "Resources" => Resources); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "ListResourceScanRelatedResources", - Dict{String,Any}("ResourceScanId" => ResourceScanId, "Resources" => Resources); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resource_scan_related_resources( ResourceScanId, Resources, @@ -2737,16 +2632,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagKey"`: If specified, the returned resources will have a matching tag key. - `"TagValue"`: If specified, the returned resources will have a matching tag value. """ -function list_resource_scan_resources( +list_resource_scan_resources( ResourceScanId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "ListResourceScanResources", + Dict{String,Any}("ResourceScanId" => ResourceScanId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "ListResourceScanResources", - Dict{String,Any}("ResourceScanId" => ResourceScanId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resource_scan_resources( ResourceScanId, params::AbstractDict{String}; @@ -2776,11 +2669,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of results. The default value is 10. The maximum value is 100. - `"NextToken"`: A string that identifies the next page of resource scan results. """ -function list_resource_scans(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "ListResourceScans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_resource_scans(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudformation( + "ListResourceScans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_resource_scans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2830,25 +2721,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys expected template configuration. NOT_CHECKED: CloudFormation doesn't currently return this value. """ -function list_stack_instance_resource_drifts( +list_stack_instance_resource_drifts( OperationId, StackInstanceAccount, StackInstanceRegion, StackSetName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudformation( + "ListStackInstanceResourceDrifts", + Dict{String,Any}( + "OperationId" => OperationId, + "StackInstanceAccount" => StackInstanceAccount, + "StackInstanceRegion" => StackInstanceRegion, + "StackSetName" => StackSetName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "ListStackInstanceResourceDrifts", - Dict{String,Any}( - "OperationId" => OperationId, - "StackInstanceAccount" => StackInstanceAccount, - "StackInstanceRegion" => StackInstanceRegion, - "StackSetName" => StackSetName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_stack_instance_resource_drifts( OperationId, StackInstanceAccount, @@ -2911,16 +2800,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys list stack instances for. - `"StackInstanceRegion"`: The name of the Region where you want to list stack instances. """ -function list_stack_instances( - StackSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +list_stack_instances(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ListStackInstances", Dict{String,Any}("StackSetName" => StackSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_stack_instances( StackSetName, params::AbstractDict{String}; @@ -2955,14 +2841,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A string that identifies the next page of stack resources that you want to retrieve. """ -function list_stack_resources(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +list_stack_resources(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ListStackResources", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_stack_resources( StackName, params::AbstractDict{String}; @@ -3003,16 +2888,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A string that identifies the next page of stack set deployment targets that you want to retrieve. """ -function list_stack_set_auto_deployment_targets( +list_stack_set_auto_deployment_targets( StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "ListStackSetAutoDeploymentTargets", + Dict{String,Any}("StackSetName" => StackSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "ListStackSetAutoDeploymentTargets", - Dict{String,Any}("StackSetName" => StackSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_stack_set_auto_deployment_targets( StackSetName, params::AbstractDict{String}; @@ -3059,16 +2942,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_stack_set_operation_results( +list_stack_set_operation_results( OperationId, StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "ListStackSetOperationResults", + Dict{String,Any}("OperationId" => OperationId, "StackSetName" => StackSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "ListStackSetOperationResults", - Dict{String,Any}("OperationId" => OperationId, "StackSetName" => StackSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_stack_set_operation_results( OperationId, StackSetName, @@ -3120,16 +3001,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_stack_set_operations( +list_stack_set_operations( StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "ListStackSetOperations", + Dict{String,Any}("StackSetName" => StackSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "ListStackSetOperations", - Dict{String,Any}("StackSetName" => StackSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_stack_set_operations( StackSetName, params::AbstractDict{String}; @@ -3179,11 +3058,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken parameter is set to null. - `"Status"`: The status of the stack sets that you want to get summary information about. """ -function list_stack_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "ListStackSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_stack_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("ListStackSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_stack_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3208,11 +3084,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys codes to list only stacks with the specified status codes. For a complete list of stack status codes, see the StackStatus parameter of the Stack data type. """ -function list_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "ListStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("ListStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_stacks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3246,11 +3119,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TypeName"`: The name of the extension. Conditional: You must specify either TypeName and Type, or Arn. """ -function list_type_registrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +list_type_registrations(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "ListTypeRegistrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_type_registrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3292,11 +3164,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TypeName"`: The name of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn. """ -function list_type_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "ListTypeVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_type_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudformation( + "ListTypeVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_type_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3346,11 +3216,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys activated within any Amazon Web Services account. This includes extensions from Amazon Web Services, in addition to third-party publishers. The default is PRIVATE. """ -function list_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "ListTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("ListTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3384,11 +3251,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TypeName"`: The name of the extension. Conditional: You must specify Arn, or TypeName and Type. """ -function publish_type(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "PublishType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +publish_type(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("PublishType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function publish_type( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3416,18 +3280,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceModel"`: Reserved for use by the CloudFormation CLI. - `"StatusMessage"`: Reserved for use by the CloudFormation CLI. """ -function record_handler_progress( +record_handler_progress( BearerToken, OperationStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "RecordHandlerProgress", + Dict{String,Any}("BearerToken" => BearerToken, "OperationStatus" => OperationStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "RecordHandlerProgress", - Dict{String,Any}( - "BearerToken" => BearerToken, "OperationStatus" => OperationStatus - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function record_handler_progress( BearerToken, OperationStatus, @@ -3471,11 +3331,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Registering your account to publish CloudFormation extensions in the CloudFormation CLI User Guide. """ -function register_publisher(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "RegisterPublisher"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +register_publisher(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudformation( + "RegisterPublisher"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function register_publisher( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3538,18 +3396,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LoggingConfig"`: Specifies logging configuration information for an extension. - `"Type"`: The kind of extension. """ -function register_type( +register_type( SchemaHandlerPackage, TypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "RegisterType", + Dict{String,Any}( + "SchemaHandlerPackage" => SchemaHandlerPackage, "TypeName" => TypeName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "RegisterType", - Dict{String,Any}( - "SchemaHandlerPackage" => SchemaHandlerPackage, "TypeName" => TypeName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_type( SchemaHandlerPackage, TypeName, @@ -3596,14 +3452,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleARN"`: The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to rollback the stack. """ -function rollback_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +rollback_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "RollbackStack", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function rollback_stack( StackName, params::AbstractDict{String}; @@ -3639,14 +3494,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys https://. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both. """ -function set_stack_policy(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +set_stack_policy(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "SetStackPolicy", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_stack_policy( StackName, params::AbstractDict{String}; @@ -3697,16 +3551,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TypeName"`: The name of the extension. Conditional: You must specify ConfigurationArn, or Type and TypeName. """ -function set_type_configuration( - Configuration; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudformation( +set_type_configuration(Configuration; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "SetTypeConfiguration", Dict{String,Any}("Configuration" => Configuration); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_type_configuration( Configuration, params::AbstractDict{String}; @@ -3741,11 +3592,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered. """ -function set_type_default_version(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +set_type_default_version(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "SetTypeDefaultVersion"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function set_type_default_version( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3781,25 +3631,23 @@ instance. signal requires a different unique ID. """ -function signal_resource( +signal_resource( LogicalResourceId, StackName, Status, UniqueId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudformation( + "SignalResource", + Dict{String,Any}( + "LogicalResourceId" => LogicalResourceId, + "StackName" => StackName, + "Status" => Status, + "UniqueId" => UniqueId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "SignalResource", - Dict{String,Any}( - "LogicalResourceId" => LogicalResourceId, - "StackName" => StackName, - "Status" => Status, - "UniqueId" => UniqueId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function signal_resource( LogicalResourceId, StackName, @@ -3840,11 +3688,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this token if you plan to retry requests so that CloudFormation knows that you're not attempting to start a new resource scan. """ -function start_resource_scan(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "StartResourceScan"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +start_resource_scan(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudformation( + "StartResourceScan"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function start_resource_scan( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3877,16 +3723,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Register a delegated administrator in the CloudFormation User Guide. """ -function stop_stack_set_operation( +stop_stack_set_operation( OperationId, StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "StopStackSetOperation", + Dict{String,Any}("OperationId" => OperationId, "StackSetName" => StackSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "StopStackSetOperation", - Dict{String,Any}("OperationId" => OperationId, "StackSetName" => StackSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_stack_set_operation( OperationId, StackSetName, @@ -3946,11 +3790,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys either Arn, or with TypeName and Type. If you don't specify a version, CloudFormation uses the default version of the extension in this account and Region for testing. """ -function test_type(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "TestType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +test_type(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation("TestType"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function test_type( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3984,16 +3825,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TemplateConfiguration"`: The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy. """ -function update_generated_template( +update_generated_template( GeneratedTemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "UpdateGeneratedTemplate", + Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "UpdateGeneratedTemplate", - Dict{String,Any}("GeneratedTemplateName" => GeneratedTemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_generated_template( GeneratedTemplateName, params::AbstractDict{String}; @@ -4141,14 +3980,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that you are updating. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true. """ -function update_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +update_stack(StackName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "UpdateStack", Dict{String,Any}("StackName" => StackName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_stack( StackName, params::AbstractDict{String}; @@ -4234,20 +4072,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified in the stack set. Once a stack instance has been updated with the new parameter, you can then override the parameter value using UpdateStackInstances. """ -function update_stack_instances( +update_stack_instances( Regions, StackSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudformation( + "UpdateStackInstances", + Dict{String,Any}( + "Regions" => Regions, + "StackSetName" => StackSetName, + "OperationId" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "UpdateStackInstances", - Dict{String,Any}( - "Regions" => Regions, - "StackSetName" => StackSetName, - "OperationId" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_stack_instances( Regions, StackSetName, @@ -4419,14 +4255,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that you're updating. Conditional: You must specify only one of the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to true. """ -function update_stack_set(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( +update_stack_set(StackSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudformation( "UpdateStackSet", Dict{String,Any}("StackSetName" => StackSetName, "OperationId" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_stack_set( StackSetName, params::AbstractDict{String}; @@ -4465,21 +4300,19 @@ stack and can't be changed directly on the nested stack. protection. """ -function update_termination_protection( +update_termination_protection( EnableTerminationProtection, StackName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudformation( + "UpdateTerminationProtection", + Dict{String,Any}( + "EnableTerminationProtection" => EnableTerminationProtection, + "StackName" => StackName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudformation( - "UpdateTerminationProtection", - Dict{String,Any}( - "EnableTerminationProtection" => EnableTerminationProtection, - "StackName" => StackName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_termination_protection( EnableTerminationProtection, StackName, @@ -4523,11 +4356,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Guide. The location for an Amazon S3 bucket must start with https://. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used. """ -function validate_template(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudformation( - "ValidateTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +validate_template(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudformation( + "ValidateTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function validate_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/cloudfront.jl b/src/services/cloudfront.jl index a5c2a6226..a9f58c557 100644 --- a/src/services/cloudfront.jl +++ b/src/services/cloudfront.jl @@ -24,17 +24,15 @@ different distribution in the Amazon CloudFront Developer Guide. with. """ -function associate_alias2020_05_31( +associate_alias2020_05_31( Alias, TargetDistributionId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/distribution/$(TargetDistributionId)/associate-alias", + Dict{String,Any}("Alias" => Alias); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/distribution/$(TargetDistributionId)/associate-alias", - Dict{String,Any}("Alias" => Alias); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_alias2020_05_31( Alias, TargetDistributionId, @@ -81,19 +79,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Staging"`: The type of distribution that your primary distribution will be copied to. The only valid value is True, indicating that you are copying to a staging distribution. """ -function copy_distribution2020_05_31( +copy_distribution2020_05_31( CallerReference, PrimaryDistributionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudfront( + "POST", + "/2020-05-31/distribution/$(PrimaryDistributionId)/copy", + Dict{String,Any}("CallerReference" => CallerReference); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/distribution/$(PrimaryDistributionId)/copy", - Dict{String,Any}("CallerReference" => CallerReference); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_distribution2020_05_31( CallerReference, PrimaryDistributionId, @@ -134,17 +130,15 @@ Developer Guide. - `cache_policy_config`: A cache policy configuration. """ -function create_cache_policy2020_05_31( +create_cache_policy2020_05_31( CachePolicyConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/cache-policy", + Dict{String,Any}("CachePolicyConfig" => CachePolicyConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/cache-policy", - Dict{String,Any}("CachePolicyConfig" => CachePolicyConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cache_policy2020_05_31( CachePolicyConfig, params::AbstractDict{String}; @@ -178,19 +172,17 @@ Developer Guide. the identity. """ -function create_cloud_front_origin_access_identity2020_05_31( +create_cloud_front_origin_access_identity2020_05_31( CloudFrontOriginAccessIdentityConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/origin-access-identity/cloudfront", + Dict{String,Any}( + "CloudFrontOriginAccessIdentityConfig" => CloudFrontOriginAccessIdentityConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/origin-access-identity/cloudfront", - Dict{String,Any}( - "CloudFrontOriginAccessIdentityConfig" => CloudFrontOriginAccessIdentityConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cloud_front_origin_access_identity2020_05_31( CloudFrontOriginAccessIdentityConfig, params::AbstractDict{String}; @@ -232,19 +224,17 @@ configuration. deployment policy. """ -function create_continuous_deployment_policy2020_05_31( +create_continuous_deployment_policy2020_05_31( ContinuousDeploymentPolicyConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/continuous-deployment-policy", + Dict{String,Any}( + "ContinuousDeploymentPolicyConfig" => ContinuousDeploymentPolicyConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/continuous-deployment-policy", - Dict{String,Any}( - "ContinuousDeploymentPolicyConfig" => ContinuousDeploymentPolicyConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_continuous_deployment_policy2020_05_31( ContinuousDeploymentPolicyConfig, params::AbstractDict{String}; @@ -277,17 +267,15 @@ Creates a CloudFront distribution. - `distribution_config`: The distribution's configuration information. """ -function create_distribution2020_05_31( +create_distribution2020_05_31( DistributionConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/distribution", + Dict{String,Any}("DistributionConfig" => DistributionConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/distribution", - Dict{String,Any}("DistributionConfig" => DistributionConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_distribution2020_05_31( DistributionConfig, params::AbstractDict{String}; @@ -317,17 +305,15 @@ permissions: CreateDistribution TagResource - `distribution_config_with_tags`: The distribution's configuration information. """ -function create_distribution_with_tags2020_05_31( +create_distribution_with_tags2020_05_31( DistributionConfigWithTags; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/distribution?WithTags", + Dict{String,Any}("DistributionConfigWithTags" => DistributionConfigWithTags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/distribution?WithTags", - Dict{String,Any}("DistributionConfigWithTags" => DistributionConfigWithTags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_distribution_with_tags2020_05_31( DistributionConfigWithTags, params::AbstractDict{String}; @@ -361,17 +347,15 @@ Create a new field-level encryption configuration. configuration. """ -function create_field_level_encryption_config2020_05_31( +create_field_level_encryption_config2020_05_31( FieldLevelEncryptionConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/field-level-encryption", + Dict{String,Any}("FieldLevelEncryptionConfig" => FieldLevelEncryptionConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/field-level-encryption", - Dict{String,Any}("FieldLevelEncryptionConfig" => FieldLevelEncryptionConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_field_level_encryption_config2020_05_31( FieldLevelEncryptionConfig, params::AbstractDict{String}; @@ -405,19 +389,17 @@ Create a field-level encryption profile. profile. """ -function create_field_level_encryption_profile2020_05_31( +create_field_level_encryption_profile2020_05_31( FieldLevelEncryptionProfileConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/field-level-encryption-profile", + Dict{String,Any}( + "FieldLevelEncryptionProfileConfig" => FieldLevelEncryptionProfileConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/field-level-encryption-profile", - Dict{String,Any}( - "FieldLevelEncryptionProfileConfig" => FieldLevelEncryptionProfileConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_field_level_encryption_profile2020_05_31( FieldLevelEncryptionProfileConfig, params::AbstractDict{String}; @@ -462,21 +444,19 @@ function's ARN. - `name`: A name to identify the function. """ -function create_function2020_05_31( +create_function2020_05_31( FunctionCode, FunctionConfig, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/function", + Dict{String,Any}( + "FunctionCode" => FunctionCode, + "FunctionConfig" => FunctionConfig, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/function", - Dict{String,Any}( - "FunctionCode" => FunctionCode, - "FunctionConfig" => FunctionConfig, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_function2020_05_31( FunctionCode, FunctionConfig, @@ -515,17 +495,15 @@ CloudFront Developer Guide. - `invalidation_batch`: The batch information for the invalidation. """ -function create_invalidation2020_05_31( +create_invalidation2020_05_31( DistributionId, InvalidationBatch; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/distribution/$(DistributionId)/invalidation", + Dict{String,Any}("InvalidationBatch" => InvalidationBatch); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/distribution/$(DistributionId)/invalidation", - Dict{String,Any}("InvalidationBatch" => InvalidationBatch); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_invalidation2020_05_31( DistributionId, InvalidationBatch, @@ -563,17 +541,15 @@ Developer Guide. - `key_group_config`: A key group configuration. """ -function create_key_group2020_05_31( +create_key_group2020_05_31( KeyGroupConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/key-group", + Dict{String,Any}("KeyGroupConfig" => KeyGroupConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/key-group", - Dict{String,Any}("KeyGroupConfig" => KeyGroupConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_key_group2020_05_31( KeyGroupConfig, params::AbstractDict{String}; @@ -608,17 +584,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ImportSource"`: The S3 bucket that provides the source for the import. The source must be in a valid JSON format. """ -function create_key_value_store2020_05_31( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +create_key_value_store2020_05_31(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "POST", "/2020-05-31/key-value-store/", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_key_value_store2020_05_31( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -645,19 +618,17 @@ CloudFront distribution metrics in the Amazon CloudFront Developer Guide. about whether additional CloudWatch metrics are enabled for a given CloudFront distribution. """ -function create_monitoring_subscription2020_05_31( +create_monitoring_subscription2020_05_31( DistributionId, MonitoringSubscription; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudfront( + "POST", + "/2020-05-31/distributions/$(DistributionId)/monitoring-subscription/", + Dict{String,Any}("MonitoringSubscription" => MonitoringSubscription); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/distributions/$(DistributionId)/monitoring-subscription/", - Dict{String,Any}("MonitoringSubscription" => MonitoringSubscription); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_monitoring_subscription2020_05_31( DistributionId, MonitoringSubscription, @@ -695,17 +666,15 @@ Guide. - `origin_access_control_config`: Contains the origin access control. """ -function create_origin_access_control2020_05_31( +create_origin_access_control2020_05_31( OriginAccessControlConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/origin-access-control", + Dict{String,Any}("OriginAccessControlConfig" => OriginAccessControlConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/origin-access-control", - Dict{String,Any}("OriginAccessControlConfig" => OriginAccessControlConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_origin_access_control2020_05_31( OriginAccessControlConfig, params::AbstractDict{String}; @@ -748,17 +717,15 @@ Controlling origin requests in the Amazon CloudFront Developer Guide. - `origin_request_policy_config`: An origin request policy configuration. """ -function create_origin_request_policy2020_05_31( +create_origin_request_policy2020_05_31( OriginRequestPolicyConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/origin-request-policy", + Dict{String,Any}("OriginRequestPolicyConfig" => OriginRequestPolicyConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/origin-request-policy", - Dict{String,Any}("OriginRequestPolicyConfig" => OriginRequestPolicyConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_origin_request_policy2020_05_31( OriginRequestPolicyConfig, params::AbstractDict{String}; @@ -790,17 +757,15 @@ with field-level encryption. - `public_key_config`: A CloudFront public key configuration. """ -function create_public_key2020_05_31( +create_public_key2020_05_31( PublicKeyConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/public-key", + Dict{String,Any}("PublicKeyConfig" => PublicKeyConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/public-key", - Dict{String,Any}("PublicKeyConfig" => PublicKeyConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_public_key2020_05_31( PublicKeyConfig, params::AbstractDict{String}; @@ -845,22 +810,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide. """ -function create_realtime_log_config2020_05_31( +create_realtime_log_config2020_05_31( EndPoints, Field, Name, SamplingRate; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/realtime-log-config", + Dict{String,Any}( + "EndPoints" => EndPoints, + "Field" => Field, + "Name" => Name, + "SamplingRate" => SamplingRate, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/realtime-log-config", - Dict{String,Any}( - "EndPoints" => EndPoints, - "Field" => Field, - "Name" => Name, - "SamplingRate" => SamplingRate, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_realtime_log_config2020_05_31( EndPoints, Field, @@ -908,17 +871,15 @@ HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide. and a set of configurations that specify the HTTP headers. """ -function create_response_headers_policy2020_05_31( +create_response_headers_policy2020_05_31( ResponseHeadersPolicyConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/response-headers-policy", + Dict{String,Any}("ResponseHeadersPolicyConfig" => ResponseHeadersPolicyConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/response-headers-policy", - Dict{String,Any}("ResponseHeadersPolicyConfig" => ResponseHeadersPolicyConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_response_headers_policy2020_05_31( ResponseHeadersPolicyConfig, params::AbstractDict{String}; @@ -953,17 +914,15 @@ the Amazon CloudFront discussion forum. - `streaming_distribution_config`: The streaming distribution's configuration information. """ -function create_streaming_distribution2020_05_31( +create_streaming_distribution2020_05_31( StreamingDistributionConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/streaming-distribution", + Dict{String,Any}("StreamingDistributionConfig" => StreamingDistributionConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/streaming-distribution", - Dict{String,Any}("StreamingDistributionConfig" => StreamingDistributionConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_streaming_distribution2020_05_31( StreamingDistributionConfig, params::AbstractDict{String}; @@ -999,19 +958,17 @@ the Amazon CloudFront discussion forum. information. """ -function create_streaming_distribution_with_tags2020_05_31( +create_streaming_distribution_with_tags2020_05_31( StreamingDistributionConfigWithTags; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/streaming-distribution?WithTags", + Dict{String,Any}( + "StreamingDistributionConfigWithTags" => StreamingDistributionConfigWithTags + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/streaming-distribution?WithTags", - Dict{String,Any}( - "StreamingDistributionConfigWithTags" => StreamingDistributionConfigWithTags - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_streaming_distribution_with_tags2020_05_31( StreamingDistributionConfigWithTags, params::AbstractDict{String}; @@ -1055,16 +1012,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cache policy's ETag value, which you can get using ListCachePolicies, GetCachePolicy, or GetCachePolicyConfig. """ -function delete_cache_policy2020_05_31( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +delete_cache_policy2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "DELETE", "/2020-05-31/cache-policy/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cache_policy2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1091,16 +1045,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL. """ -function delete_cloud_front_origin_access_identity2020_05_31( +delete_cloud_front_origin_access_identity2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/origin-access-identity/cloudfront/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/origin-access-identity/cloudfront/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cloud_front_origin_access_identity2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1129,16 +1081,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The current version (ETag value) of the continuous deployment policy that you are deleting. """ -function delete_continuous_deployment_policy2020_05_31( +delete_continuous_deployment_policy2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/continuous-deployment-policy/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/continuous-deployment-policy/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_continuous_deployment_policy2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1165,16 +1115,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when you disabled the distribution. For example: E2QWRUHAPOMQZL. """ -function delete_distribution2020_05_31( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +delete_distribution2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "DELETE", "/2020-05-31/distribution/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_distribution2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1201,16 +1148,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the configuration identity to delete. For example: E2QWRUHAPOMQZL. """ -function delete_field_level_encryption_config2020_05_31( +delete_field_level_encryption_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/field-level-encryption/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/field-level-encryption/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_field_level_encryption_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1237,16 +1182,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the profile to delete. For example: E2QWRUHAPOMQZL. """ -function delete_field_level_encryption_profile2020_05_31( +delete_field_level_encryption_profile2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/field-level-encryption-profile/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/field-level-encryption-profile/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_field_level_encryption_profile2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1275,17 +1218,15 @@ and DescribeFunction. - `name`: The name of the function that you are deleting. """ -function delete_function2020_05_31( +delete_function2020_05_31( If_Match, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/function/$(Name)", + Dict{String,Any}("headers" => Dict{String,Any}("If-Match" => If_Match)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/function/$(Name)", - Dict{String,Any}("headers" => Dict{String,Any}("If-Match" => If_Match)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_function2020_05_31( If_Match, Name, @@ -1326,14 +1267,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The version of the key group that you are deleting. The version is the key group's ETag value. To get the ETag, use GetKeyGroup or GetKeyGroupConfig. """ -function delete_key_group2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +delete_key_group2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "DELETE", "/2020-05-31/key-group/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_key_group2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1357,17 +1297,15 @@ Specifies the key value store to delete. - `name`: The name of the key value store. """ -function delete_key_value_store2020_05_31( +delete_key_value_store2020_05_31( If_Match, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/key-value-store/$(Name)", + Dict{String,Any}("headers" => Dict{String,Any}("If-Match" => If_Match)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/key-value-store/$(Name)", - Dict{String,Any}("headers" => Dict{String,Any}("If-Match" => If_Match)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_key_value_store2020_05_31( If_Match, Name, @@ -1399,16 +1337,14 @@ Disables additional CloudWatch metrics for the specified CloudFront distribution - `distribution_id`: The ID of the distribution that you are disabling metrics for. """ -function delete_monitoring_subscription2020_05_31( +delete_monitoring_subscription2020_05_31( DistributionId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/distributions/$(DistributionId)/monitoring-subscription/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/distributions/$(DistributionId)/monitoring-subscription/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_monitoring_subscription2020_05_31( DistributionId, params::AbstractDict{String}; @@ -1439,16 +1375,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The current version (ETag value) of the origin access control that you are deleting. """ -function delete_origin_access_control2020_05_31( +delete_origin_access_control2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/origin-access-control/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/origin-access-control/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_origin_access_control2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1481,16 +1415,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is the origin request policy's ETag value, which you can get using ListOriginRequestPolicies, GetOriginRequestPolicy, or GetOriginRequestPolicyConfig. """ -function delete_origin_request_policy2020_05_31( +delete_origin_request_policy2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/origin-request-policy/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/origin-request-policy/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_origin_request_policy2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1517,14 +1449,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the public key identity to delete. For example: E2QWRUHAPOMQZL. """ -function delete_public_key2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +delete_public_key2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "DELETE", "/2020-05-31/public-key/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_public_key2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1553,16 +1484,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ARN"`: The Amazon Resource Name (ARN) of the real-time log configuration to delete. - `"Name"`: The name of the real-time log configuration to delete. """ -function delete_realtime_log_config2020_05_31(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +delete_realtime_log_config2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "POST", "/2020-05-31/delete-realtime-log-config/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_realtime_log_config2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1595,16 +1523,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version is the response headers policy's ETag value, which you can get using ListResponseHeadersPolicies, GetResponseHeadersPolicy, or GetResponseHeadersPolicyConfig. """ -function delete_response_headers_policy2020_05_31( +delete_response_headers_policy2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/response-headers-policy/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/response-headers-policy/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_response_headers_policy2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1649,16 +1575,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL. """ -function delete_streaming_distribution2020_05_31( +delete_streaming_distribution2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "DELETE", + "/2020-05-31/streaming-distribution/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "DELETE", - "/2020-05-31/streaming-distribution/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_streaming_distribution2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1687,16 +1611,13 @@ To get these values, you can use ListFunctions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Stage"`: The function's stage, either DEVELOPMENT or LIVE. """ -function describe_function2020_05_31( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +describe_function2020_05_31(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/function/$(Name)/describe"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_function2020_05_31( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1719,16 +1640,14 @@ Specifies the key value store and its configuration. - `name`: The name of the key value store. """ -function describe_key_value_store2020_05_31( +describe_key_value_store2020_05_31( Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/key-value-store/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/key-value-store/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_key_value_store2020_05_31( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1759,14 +1678,13 @@ ListCachePolicies. the identifier using ListCachePolicies. """ -function get_cache_policy2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +get_cache_policy2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/cache-policy/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cache_policy2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1796,16 +1714,13 @@ ListCachePolicies. the identifier using ListCachePolicies. """ -function get_cache_policy_config2020_05_31( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +get_cache_policy_config2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/cache-policy/$(Id)/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cache_policy_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1828,16 +1743,14 @@ Get the information about an origin access identity. - `id`: The identity's ID. """ -function get_cloud_front_origin_access_identity2020_05_31( +get_cloud_front_origin_access_identity2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-access-identity/cloudfront/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-access-identity/cloudfront/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cloud_front_origin_access_identity2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1860,16 +1773,14 @@ Get the configuration information about an origin access identity. - `id`: The identity's ID. """ -function get_cloud_front_origin_access_identity_config2020_05_31( +get_cloud_front_origin_access_identity_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-access-identity/cloudfront/$(Id)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-access-identity/cloudfront/$(Id)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cloud_front_origin_access_identity_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1893,16 +1804,14 @@ date and time when the policy was last modified). - `id`: The identifier of the continuous deployment policy that you are getting. """ -function get_continuous_deployment_policy2020_05_31( +get_continuous_deployment_policy2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/continuous-deployment-policy/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/continuous-deployment-policy/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_continuous_deployment_policy2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1926,16 +1835,14 @@ Gets configuration information about a continuous deployment policy. getting. """ -function get_continuous_deployment_policy_config2020_05_31( +get_continuous_deployment_policy_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/continuous-deployment-policy/$(Id)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/continuous-deployment-policy/$(Id)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_continuous_deployment_policy_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1959,14 +1866,13 @@ Get the information about a distribution. returned. """ -function get_distribution2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +get_distribution2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/distribution/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_distribution2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1990,16 +1896,13 @@ Get the configuration information about a distribution. returned. """ -function get_distribution_config2020_05_31( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +get_distribution_config2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/distribution/$(Id)/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_distribution_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2022,16 +1925,14 @@ Get the field-level encryption configuration information. - `id`: Request the ID for the field-level encryption configuration information. """ -function get_field_level_encryption2020_05_31( +get_field_level_encryption2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/field-level-encryption/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/field-level-encryption/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_field_level_encryption2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2054,16 +1955,14 @@ Get the field-level encryption configuration information. - `id`: Request the ID for the field-level encryption configuration information. """ -function get_field_level_encryption_config2020_05_31( +get_field_level_encryption_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/field-level-encryption/$(Id)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/field-level-encryption/$(Id)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_field_level_encryption_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2086,16 +1985,14 @@ Get the field-level encryption profile information. - `id`: Get the ID for the field-level encryption profile information. """ -function get_field_level_encryption_profile2020_05_31( +get_field_level_encryption_profile2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/field-level-encryption-profile/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/field-level-encryption-profile/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_field_level_encryption_profile2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2118,16 +2015,14 @@ Get the field-level encryption profile configuration information. - `id`: Get the ID for the field-level encryption profile configuration information. """ -function get_field_level_encryption_profile_config2020_05_31( +get_field_level_encryption_profile_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/field-level-encryption-profile/$(Id)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/field-level-encryption-profile/$(Id)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_field_level_encryption_profile_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2155,14 +2050,13 @@ name and stage. To get these values, you can use ListFunctions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Stage"`: The function's stage, either DEVELOPMENT or LIVE. """ -function get_function2020_05_31(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +get_function2020_05_31(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/function/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_function2020_05_31( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2186,16 +2080,14 @@ Get the information about an invalidation. - `id`: The identifier for the invalidation request, for example, IDFDVBD632BHDS5. """ -function get_invalidation2020_05_31( +get_invalidation2020_05_31( DistributionId, Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/distribution/$(DistributionId)/invalidation/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/distribution/$(DistributionId)/invalidation/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_invalidation2020_05_31( DistributionId, Id, @@ -2226,14 +2118,13 @@ behavior, you can get the identifier using ListKeyGroups. ListKeyGroups. """ -function get_key_group2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +get_key_group2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/key-group/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_key_group2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2260,16 +2151,13 @@ group is not referenced in a cache behavior, you can get the identifier using Li identifier, use ListKeyGroups. """ -function get_key_group_config2020_05_31( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +get_key_group_config2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/key-group/$(Id)/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_key_group_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2294,16 +2182,14 @@ CloudFront distribution. for. """ -function get_monitoring_subscription2020_05_31( +get_monitoring_subscription2020_05_31( DistributionId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/distributions/$(DistributionId)/monitoring-subscription/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/distributions/$(DistributionId)/monitoring-subscription/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_monitoring_subscription2020_05_31( DistributionId, params::AbstractDict{String}; @@ -2328,16 +2214,14 @@ Gets a CloudFront origin access control, including its unique identifier. - `id`: The unique identifier of the origin access control. """ -function get_origin_access_control2020_05_31( +get_origin_access_control2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-access-control/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-access-control/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_origin_access_control2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2360,16 +2244,14 @@ Gets a CloudFront origin access control configuration. - `id`: The unique identifier of the origin access control. """ -function get_origin_access_control_config2020_05_31( +get_origin_access_control_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-access-control/$(Id)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-access-control/$(Id)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_origin_access_control_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2400,16 +2282,14 @@ can get the identifier using ListOriginRequestPolicies. cache behavior, you can get the identifier using ListOriginRequestPolicies. """ -function get_origin_request_policy2020_05_31( +get_origin_request_policy2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-request-policy/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-request-policy/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_origin_request_policy2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2439,16 +2319,14 @@ can get the identifier using ListOriginRequestPolicies. cache behavior, you can get the identifier using ListOriginRequestPolicies. """ -function get_origin_request_policy_config2020_05_31( +get_origin_request_policy_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-request-policy/$(Id)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-request-policy/$(Id)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_origin_request_policy_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2471,14 +2349,13 @@ Gets a public key. - `id`: The identifier of the public key you are getting. """ -function get_public_key2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +get_public_key2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/public-key/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_public_key2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2501,16 +2378,13 @@ Gets a public key configuration. - `id`: The identifier of the public key whose configuration you are getting. """ -function get_public_key_config2020_05_31( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +get_public_key_config2020_05_31(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/public-key/$(Id)/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_public_key_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2537,16 +2411,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ARN"`: The Amazon Resource Name (ARN) of the real-time log configuration to get. - `"Name"`: The name of the real-time log configuration to get. """ -function get_realtime_log_config2020_05_31(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +get_realtime_log_config2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "POST", "/2020-05-31/get-realtime-log-config/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_realtime_log_config2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2577,16 +2448,14 @@ can get the identifier using ListResponseHeadersPolicies. cache behavior, you can get the identifier using ListResponseHeadersPolicies. """ -function get_response_headers_policy2020_05_31( +get_response_headers_policy2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/response-headers-policy/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/response-headers-policy/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_response_headers_policy2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2616,16 +2485,14 @@ cache behavior, you can get the identifier using ListResponseHeadersPolicies. cache behavior, you can get the identifier using ListResponseHeadersPolicies. """ -function get_response_headers_policy_config2020_05_31( +get_response_headers_policy_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/response-headers-policy/$(Id)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/response-headers-policy/$(Id)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_response_headers_policy_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2649,16 +2516,14 @@ configuration. - `id`: The streaming distribution's ID. """ -function get_streaming_distribution2020_05_31( +get_streaming_distribution2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/streaming-distribution/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/streaming-distribution/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_streaming_distribution2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2681,16 +2546,14 @@ Get the configuration information about a streaming distribution. - `id`: The streaming distribution's ID. """ -function get_streaming_distribution_config2020_05_31( +get_streaming_distribution_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/streaming-distribution/$(Id)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/streaming-distribution/$(Id)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_streaming_distribution_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2726,14 +2589,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: managed – Returns only the managed policies created by Amazon Web Services. custom – Returns only the custom policies created in your Amazon Web Services account. """ -function list_cache_policies2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +list_cache_policies2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/cache-policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cache_policies2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2761,16 +2623,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of origin access identities you want in the response body. """ -function list_cloud_front_origin_access_identities2020_05_31(; +list_cloud_front_origin_access_identities2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-access-identity/cloudfront"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-access-identity/cloudfront"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_cloud_front_origin_access_identities2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2821,17 +2681,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextMarker from the current page's response. - `"MaxItems"`: The maximum number of conflicting aliases that you want in the response. """ -function list_conflicting_aliases2020_05_31( +list_conflicting_aliases2020_05_31( Alias, DistributionId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/conflicting-alias", + Dict{String,Any}("Alias" => Alias, "DistributionId" => DistributionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/conflicting-alias", - Dict{String,Any}("Alias" => Alias, "DistributionId" => DistributionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_conflicting_aliases2020_05_31( Alias, DistributionId, @@ -2873,16 +2731,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of continuous deployment policies that you want returned in the response. """ -function list_continuous_deployment_policies2020_05_31(; +list_continuous_deployment_policies2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/continuous-deployment-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/continuous-deployment-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_continuous_deployment_policies2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2909,14 +2765,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys current page's response (which is also the ID of the last distribution on that page). - `"MaxItems"`: The maximum number of distributions you want in the response body. """ -function list_distributions2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +list_distributions2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/distribution"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_distributions2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2952,16 +2807,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextMarker from the current page's response. - `"MaxItems"`: The maximum number of distribution IDs that you want in the response. """ -function list_distributions_by_cache_policy_id2020_05_31( +list_distributions_by_cache_policy_id2020_05_31( CachePolicyId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/distributionsByCachePolicyId/$(CachePolicyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/distributionsByCachePolicyId/$(CachePolicyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_distributions_by_cache_policy_id2020_05_31( CachePolicyId, params::AbstractDict{String}; @@ -2998,16 +2851,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextMarker from the current page's response. - `"MaxItems"`: The maximum number of distribution IDs that you want in the response. """ -function list_distributions_by_key_group2020_05_31( +list_distributions_by_key_group2020_05_31( KeyGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/distributionsByKeyGroupId/$(KeyGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/distributionsByKeyGroupId/$(KeyGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_distributions_by_key_group2020_05_31( KeyGroupId, params::AbstractDict{String}; @@ -3044,17 +2895,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys after the marker. To get the next page of the list, set this field's value to the value of NextMarker from the current page's response. - `"MaxItems"`: The maximum number of distribution IDs that you want in the response. -""" -function list_distributions_by_origin_request_policy_id2020_05_31( - OriginRequestPolicyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( - "GET", - "/2020-05-31/distributionsByOriginRequestPolicyId/$(OriginRequestPolicyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +""" +list_distributions_by_origin_request_policy_id2020_05_31( + OriginRequestPolicyId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/distributionsByOriginRequestPolicyId/$(OriginRequestPolicyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_distributions_by_origin_request_policy_id2020_05_31( OriginRequestPolicyId, params::AbstractDict{String}; @@ -3095,16 +2944,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RealtimeLogConfigName"`: The name of the real-time log configuration whose associated distributions you want to list. """ -function list_distributions_by_realtime_log_config2020_05_31(; +list_distributions_by_realtime_log_config2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/distributionsByRealtimeLogConfig/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/distributionsByRealtimeLogConfig/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_distributions_by_realtime_log_config2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3140,16 +2987,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextMarker from the current page's response. - `"MaxItems"`: The maximum number of distribution IDs that you want to get in the response. """ -function list_distributions_by_response_headers_policy_id2020_05_31( +list_distributions_by_response_headers_policy_id2020_05_31( ResponseHeadersPolicyId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/distributionsByResponseHeadersPolicyId/$(ResponseHeadersPolicyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/distributionsByResponseHeadersPolicyId/$(ResponseHeadersPolicyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_distributions_by_response_headers_policy_id2020_05_31( ResponseHeadersPolicyId, params::AbstractDict{String}; @@ -3189,16 +3034,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100. """ -function list_distributions_by_web_aclid2020_05_31( +list_distributions_by_web_aclid2020_05_31( WebACLId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/distributionsByWebACLId/$(WebACLId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/distributionsByWebACLId/$(WebACLId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_distributions_by_web_aclid2020_05_31( WebACLId, params::AbstractDict{String}; @@ -3229,16 +3072,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of field-level encryption configurations you want in the response body. """ -function list_field_level_encryption_configs2020_05_31(; +list_field_level_encryption_configs2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/field-level-encryption"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/field-level-encryption"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_field_level_encryption_configs2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3267,16 +3108,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of field-level encryption profiles you want in the response body. """ -function list_field_level_encryption_profiles2020_05_31(; +list_field_level_encryption_profiles2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/field-level-encryption-profile"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/field-level-encryption-profile"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_field_level_encryption_profiles2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3311,14 +3150,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Stage"`: An optional filter to return only the functions that are in the specified stage, either DEVELOPMENT or LIVE. """ -function list_functions2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( - "GET", - "/2020-05-31/function"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_functions2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudfront( + "GET", + "/2020-05-31/function"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_functions2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3351,16 +3188,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of invalidation batches that you want in the response body. """ -function list_invalidations2020_05_31( +list_invalidations2020_05_31( DistributionId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/distribution/$(DistributionId)/invalidation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/distribution/$(DistributionId)/invalidation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_invalidations2020_05_31( DistributionId, params::AbstractDict{String}; @@ -3393,14 +3228,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the current page's response. - `"MaxItems"`: The maximum number of key groups that you want in the response. """ -function list_key_groups2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +list_key_groups2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/key-group"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_key_groups2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3425,16 +3259,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of items in the key value stores list. - `"Status"`: The status of the request for the key value stores list. """ -function list_key_value_stores2020_05_31(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +list_key_value_stores2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/key-value-store"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_key_value_stores2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3466,16 +3297,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextMarker from the current page's response. - `"MaxItems"`: The maximum number of origin access controls that you want in the response. """ -function list_origin_access_controls2020_05_31(; +list_origin_access_controls2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-access-control"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-access-control"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_origin_access_controls2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3512,16 +3341,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services. custom – Returns only the custom policies created in your Amazon Web Services account. """ -function list_origin_request_policies2020_05_31(; +list_origin_request_policies2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/origin-request-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/origin-request-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_origin_request_policies2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3548,14 +3375,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys current page's response (which is also the ID of the last public key on that page). - `"MaxItems"`: The maximum number of public keys you want in the response body. """ -function list_public_keys2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudfront( +list_public_keys2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/public-key"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_public_keys2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3587,16 +3413,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of real-time log configurations that you want in the response. """ -function list_realtime_log_configs2020_05_31(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +list_realtime_log_configs2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "GET", "/2020-05-31/realtime-log-config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_realtime_log_configs2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3633,16 +3456,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys values are: managed – Gets only the managed policies created by Amazon Web Services. custom – Gets only the custom policies created in your Amazon Web Services account. """ -function list_response_headers_policies2020_05_31(; +list_response_headers_policies2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/response-headers-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/response-headers-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_response_headers_policies2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3666,16 +3487,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Marker"`: The value that you provided for the Marker request parameter. - `"MaxItems"`: The value that you provided for the MaxItems request parameter. """ -function list_streaming_distributions2020_05_31(; +list_streaming_distributions2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/streaming-distribution"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/streaming-distribution"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_streaming_distributions2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3692,23 +3511,22 @@ end list_tags_for_resource2020_05_31(resource) list_tags_for_resource2020_05_31(resource, params::Dict{String,<:Any}) -List tags for a CloudFront resource. +List tags for a CloudFront resource. For more information, see Tagging a distribution in +the Amazon CloudFront Developer Guide. # Arguments - `resource`: An ARN of a CloudFront resource. """ -function list_tags_for_resource2020_05_31( +list_tags_for_resource2020_05_31( Resource; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "GET", + "/2020-05-31/tagging", + Dict{String,Any}("Resource" => Resource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "GET", - "/2020-05-31/tagging", - Dict{String,Any}("Resource" => Resource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_resource2020_05_31( Resource, params::AbstractDict{String}; @@ -3742,17 +3560,15 @@ version (ETag value). To get these values, you can use ListFunctions and Describ - `name`: The name of the function that you are publishing. """ -function publish_function2020_05_31( +publish_function2020_05_31( If_Match, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/function/$(Name)/publish", + Dict{String,Any}("headers" => Dict{String,Any}("If-Match" => If_Match)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/function/$(Name)/publish", - Dict{String,Any}("headers" => Dict{String,Any}("If-Match" => If_Match)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function publish_function2020_05_31( If_Match, Name, @@ -3778,24 +3594,22 @@ end tag_resource2020_05_31(resource, tags) tag_resource2020_05_31(resource, tags, params::Dict{String,<:Any}) -Add tags to a CloudFront resource. +Add tags to a CloudFront resource. For more information, see Tagging a distribution in the +Amazon CloudFront Developer Guide. # Arguments - `resource`: An ARN of a CloudFront resource. - `tags`: A complex type that contains zero or more Tag elements. """ -function tag_resource2020_05_31( - Resource, Tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +tag_resource2020_05_31(Resource, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "POST", "/2020-05-31/tagging?Operation=Tag", Dict{String,Any}("Resource" => Resource, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource2020_05_31( Resource, Tags, @@ -3841,20 +3655,18 @@ DescribeFunction. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Stage"`: The stage of the function that you are testing, either DEVELOPMENT or LIVE. """ -function test_function2020_05_31( +test_function2020_05_31( EventObject, If_Match, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/function/$(Name)/test", + Dict{String,Any}( + "EventObject" => EventObject, + "headers" => Dict{String,Any}("If-Match" => If_Match), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/function/$(Name)/test", - Dict{String,Any}( - "EventObject" => EventObject, - "headers" => Dict{String,Any}("If-Match" => If_Match), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_function2020_05_31( EventObject, If_Match, @@ -3884,24 +3696,23 @@ end untag_resource2020_05_31(resource, tag_keys) untag_resource2020_05_31(resource, tag_keys, params::Dict{String,<:Any}) -Remove tags from a CloudFront resource. +Remove tags from a CloudFront resource. For more information, see Tagging a distribution in +the Amazon CloudFront Developer Guide. # Arguments - `resource`: An ARN of a CloudFront resource. - `tag_keys`: A complex type that contains zero or more Tag key elements. """ -function untag_resource2020_05_31( +untag_resource2020_05_31( Resource, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "POST", + "/2020-05-31/tagging?Operation=Untag", + Dict{String,Any}("Resource" => Resource, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "POST", - "/2020-05-31/tagging?Operation=Untag", - Dict{String,Any}("Resource" => Resource, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource2020_05_31( Resource, TagKeys, @@ -3945,17 +3756,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The version of the cache policy that you are updating. The version is returned in the cache policy's ETag field in the response to GetCachePolicyConfig. """ -function update_cache_policy2020_05_31( +update_cache_policy2020_05_31( CachePolicyConfig, Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/cache-policy/$(Id)", + Dict{String,Any}("CachePolicyConfig" => CachePolicyConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/cache-policy/$(Id)", - Dict{String,Any}("CachePolicyConfig" => CachePolicyConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cache_policy2020_05_31( CachePolicyConfig, Id, @@ -3990,21 +3799,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL. """ -function update_cloud_front_origin_access_identity2020_05_31( +update_cloud_front_origin_access_identity2020_05_31( CloudFrontOriginAccessIdentityConfig, Id; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudfront( + "PUT", + "/2020-05-31/origin-access-identity/cloudfront/$(Id)/config", + Dict{String,Any}( + "CloudFrontOriginAccessIdentityConfig" => CloudFrontOriginAccessIdentityConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/origin-access-identity/cloudfront/$(Id)/config", - Dict{String,Any}( - "CloudFrontOriginAccessIdentityConfig" => CloudFrontOriginAccessIdentityConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cloud_front_origin_access_identity2020_05_31( CloudFrontOriginAccessIdentityConfig, Id, @@ -4053,19 +3860,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The current version (ETag value) of the continuous deployment policy that you are updating. """ -function update_continuous_deployment_policy2020_05_31( +update_continuous_deployment_policy2020_05_31( ContinuousDeploymentPolicyConfig, Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/continuous-deployment-policy/$(Id)", + Dict{String,Any}( + "ContinuousDeploymentPolicyConfig" => ContinuousDeploymentPolicyConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/continuous-deployment-policy/$(Id)", - Dict{String,Any}( - "ContinuousDeploymentPolicyConfig" => ContinuousDeploymentPolicyConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_continuous_deployment_policy2020_05_31( ContinuousDeploymentPolicyConfig, Id, @@ -4116,17 +3921,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL. """ -function update_distribution2020_05_31( +update_distribution2020_05_31( DistributionConfig, Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/distribution/$(Id)/config", + Dict{String,Any}("DistributionConfig" => DistributionConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/distribution/$(Id)/config", - Dict{String,Any}("DistributionConfig" => DistributionConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_distribution2020_05_31( DistributionConfig, Id, @@ -4174,16 +3977,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StagingDistributionId"`: The identifier of the staging distribution whose configuration you are copying to the primary distribution. """ -function update_distribution_with_staging_config2020_05_31( +update_distribution_with_staging_config2020_05_31( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/distribution/$(Id)/promote-staging-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/distribution/$(Id)/promote-staging-config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_distribution_with_staging_config2020_05_31( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4211,17 +4012,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the configuration identity to update. For example: E2QWRUHAPOMQZL. """ -function update_field_level_encryption_config2020_05_31( +update_field_level_encryption_config2020_05_31( FieldLevelEncryptionConfig, Id; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/field-level-encryption/$(Id)/config", + Dict{String,Any}("FieldLevelEncryptionConfig" => FieldLevelEncryptionConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/field-level-encryption/$(Id)/config", - Dict{String,Any}("FieldLevelEncryptionConfig" => FieldLevelEncryptionConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_field_level_encryption_config2020_05_31( FieldLevelEncryptionConfig, Id, @@ -4261,21 +4060,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the profile identity to update. For example: E2QWRUHAPOMQZL. """ -function update_field_level_encryption_profile2020_05_31( +update_field_level_encryption_profile2020_05_31( FieldLevelEncryptionProfileConfig, Id; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudfront( + "PUT", + "/2020-05-31/field-level-encryption-profile/$(Id)/config", + Dict{String,Any}( + "FieldLevelEncryptionProfileConfig" => FieldLevelEncryptionProfileConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/field-level-encryption-profile/$(Id)/config", - Dict{String,Any}( - "FieldLevelEncryptionProfileConfig" => FieldLevelEncryptionProfileConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_field_level_encryption_profile2020_05_31( FieldLevelEncryptionProfileConfig, Id, @@ -4318,25 +4115,23 @@ To get the name and version, you can use ListFunctions and DescribeFunction. - `name`: The name of the function that you are updating. """ -function update_function2020_05_31( +update_function2020_05_31( FunctionCode, FunctionConfig, If_Match, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudfront( + "PUT", + "/2020-05-31/function/$(Name)", + Dict{String,Any}( + "FunctionCode" => FunctionCode, + "FunctionConfig" => FunctionConfig, + "headers" => Dict{String,Any}("If-Match" => If_Match), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/function/$(Name)", - Dict{String,Any}( - "FunctionCode" => FunctionCode, - "FunctionConfig" => FunctionConfig, - "headers" => Dict{String,Any}("If-Match" => If_Match), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_function2020_05_31( FunctionCode, FunctionConfig, @@ -4384,17 +4179,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The version of the key group that you are updating. The version is the key group's ETag value. """ -function update_key_group2020_05_31( +update_key_group2020_05_31( Id, KeyGroupConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/key-group/$(Id)", + Dict{String,Any}("KeyGroupConfig" => KeyGroupConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/key-group/$(Id)", - Dict{String,Any}("KeyGroupConfig" => KeyGroupConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_key_group2020_05_31( Id, KeyGroupConfig, @@ -4424,19 +4217,17 @@ Specifies the key value store to update. - `name`: The name of the key value store to update. """ -function update_key_value_store2020_05_31( +update_key_value_store2020_05_31( Comment, If_Match, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/key-value-store/$(Name)", + Dict{String,Any}( + "Comment" => Comment, "headers" => Dict{String,Any}("If-Match" => If_Match) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/key-value-store/$(Name)", - Dict{String,Any}( - "Comment" => Comment, "headers" => Dict{String,Any}("If-Match" => If_Match) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_key_value_store2020_05_31( Comment, If_Match, @@ -4477,17 +4268,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The current version (ETag value) of the origin access control that you are updating. """ -function update_origin_access_control2020_05_31( +update_origin_access_control2020_05_31( Id, OriginAccessControlConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/origin-access-control/$(Id)/config", + Dict{String,Any}("OriginAccessControlConfig" => OriginAccessControlConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/origin-access-control/$(Id)/config", - Dict{String,Any}("OriginAccessControlConfig" => OriginAccessControlConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_origin_access_control2020_05_31( Id, OriginAccessControlConfig, @@ -4533,17 +4322,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is returned in the origin request policy's ETag field in the response to GetOriginRequestPolicyConfig. """ -function update_origin_request_policy2020_05_31( +update_origin_request_policy2020_05_31( Id, OriginRequestPolicyConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/origin-request-policy/$(Id)", + Dict{String,Any}("OriginRequestPolicyConfig" => OriginRequestPolicyConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/origin-request-policy/$(Id)", - Dict{String,Any}("OriginRequestPolicyConfig" => OriginRequestPolicyConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_origin_request_policy2020_05_31( Id, OriginRequestPolicyConfig, @@ -4580,17 +4367,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the public key to update. For example: E2QWRUHAPOMQZL. """ -function update_public_key2020_05_31( +update_public_key2020_05_31( Id, PublicKeyConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/public-key/$(Id)/config", + Dict{String,Any}("PublicKeyConfig" => PublicKeyConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/public-key/$(Id)/config", - Dict{String,Any}("PublicKeyConfig" => PublicKeyConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_public_key2020_05_31( Id, PublicKeyConfig, @@ -4636,16 +4421,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive. """ -function update_realtime_log_config2020_05_31(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudfront( +update_realtime_log_config2020_05_31(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudfront( "PUT", "/2020-05-31/realtime-log-config/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_realtime_log_config2020_05_31( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4680,17 +4462,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version is returned in the cache policy's ETag field in the response to GetResponseHeadersPolicyConfig. """ -function update_response_headers_policy2020_05_31( +update_response_headers_policy2020_05_31( Id, ResponseHeadersPolicyConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/response-headers-policy/$(Id)", + Dict{String,Any}("ResponseHeadersPolicyConfig" => ResponseHeadersPolicyConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/response-headers-policy/$(Id)", - Dict{String,Any}("ResponseHeadersPolicyConfig" => ResponseHeadersPolicyConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_response_headers_policy2020_05_31( Id, ResponseHeadersPolicyConfig, @@ -4729,17 +4509,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"If-Match"`: The value of the ETag header that you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL. """ -function update_streaming_distribution2020_05_31( +update_streaming_distribution2020_05_31( Id, StreamingDistributionConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudfront( + "PUT", + "/2020-05-31/streaming-distribution/$(Id)/config", + Dict{String,Any}("StreamingDistributionConfig" => StreamingDistributionConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudfront( - "PUT", - "/2020-05-31/streaming-distribution/$(Id)/config", - Dict{String,Any}("StreamingDistributionConfig" => StreamingDistributionConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_streaming_distribution2020_05_31( Id, StreamingDistributionConfig, diff --git a/src/services/cloudhsm.jl b/src/services/cloudhsm.jl index 44a61aec3..7bd922472 100644 --- a/src/services/cloudhsm.jl +++ b/src/services/cloudhsm.jl @@ -20,16 +20,14 @@ Tag keys must be unique to each resource. - `tag_list`: One or more tags. """ -function add_tags_to_resource( +add_tags_to_resource( ResourceArn, TagList; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm( + "AddTagsToResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "TagList" => TagList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm( - "AddTagsToResource", - Dict{String,Any}("ResourceArn" => ResourceArn, "TagList" => TagList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_resource( ResourceArn, TagList, @@ -65,14 +63,12 @@ partitions that spans multiple physical HSMs. - `label`: The label of the new high-availability partition group. """ -function create_hapg(Label; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "CreateHapg", - Dict{String,Any}("Label" => Label); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_hapg(Label; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm( + "CreateHapg", + Dict{String,Any}("Label" => Label); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_hapg( Label, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -116,25 +112,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SyslogIp"`: The IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server. """ -function create_hsm( +create_hsm( IamRoleArn, SshKey, SubnetId, SubscriptionType; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudhsm( + "CreateHsm", + Dict{String,Any}( + "IamRoleArn" => IamRoleArn, + "SshKey" => SshKey, + "SubnetId" => SubnetId, + "SubscriptionType" => SubscriptionType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm( - "CreateHsm", - Dict{String,Any}( - "IamRoleArn" => IamRoleArn, - "SshKey" => SshKey, - "SubnetId" => SubnetId, - "SubscriptionType" => SubscriptionType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hsm( IamRoleArn, SshKey, @@ -179,14 +173,13 @@ the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Creates an HSM Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Label"`: The label for the client. """ -function create_luna_client(Certificate; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( +create_luna_client(Certificate; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm( "CreateLunaClient", Dict{String,Any}("Certificate" => Certificate); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_luna_client( Certificate, params::AbstractDict{String}; @@ -216,14 +209,12 @@ high-availability partition group. - `hapg_arn`: The ARN of the high-availability partition group to delete. """ -function delete_hapg(HapgArn; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "DeleteHapg", - Dict{String,Any}("HapgArn" => HapgArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_hapg(HapgArn; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm( + "DeleteHapg", + Dict{String,Any}("HapgArn" => HapgArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_hapg( HapgArn, params::AbstractDict{String}; @@ -251,14 +242,12 @@ completion, this operation cannot be undone and your key material cannot be reco - `hsm_arn`: The ARN of the HSM to delete. """ -function delete_hsm(HsmArn; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "DeleteHsm", - Dict{String,Any}("HsmArn" => HsmArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_hsm(HsmArn; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm( + "DeleteHsm", + Dict{String,Any}("HsmArn" => HsmArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_hsm( HsmArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -283,14 +272,13 @@ the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Deletes a clien - `client_arn`: The ARN of the client to delete. """ -function delete_luna_client(ClientArn; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( +delete_luna_client(ClientArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm( "DeleteLunaClient", Dict{String,Any}("ClientArn" => ClientArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_luna_client( ClientArn, params::AbstractDict{String}; @@ -320,14 +308,12 @@ about a high-availability partition group. - `hapg_arn`: The ARN of the high-availability partition group to describe. """ -function describe_hapg(HapgArn; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "DescribeHapg", - Dict{String,Any}("HapgArn" => HapgArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_hapg(HapgArn; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm( + "DescribeHapg", + Dict{String,Any}("HapgArn" => HapgArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_hapg( HapgArn, params::AbstractDict{String}; @@ -358,9 +344,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HsmSerialNumber"`: The serial number of the HSM. Either the HsmArn or the HsmSerialNumber parameter must be specified. """ -function describe_hsm(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm("DescribeHsm"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_hsm(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm("DescribeHsm"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_hsm( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -384,11 +369,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CertificateFingerprint"`: The certificate fingerprint. - `"ClientArn"`: The ARN of the client. """ -function describe_luna_client(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "DescribeLunaClient"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_luna_client(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm("DescribeLunaClient"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_luna_client( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -415,20 +397,18 @@ associated with. associated with the client. """ -function get_config( +get_config( ClientArn, ClientVersion, HapgList; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm( + "GetConfig", + Dict{String,Any}( + "ClientArn" => ClientArn, + "ClientVersion" => ClientVersion, + "HapgList" => HapgList, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm( - "GetConfig", - Dict{String,Any}( - "ClientArn" => ClientArn, - "ClientVersion" => ClientVersion, - "HapgList" => HapgList, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_config( ClientArn, ClientVersion, @@ -465,11 +445,8 @@ the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference. Lists the Avail Zones that have available AWS CloudHSM capacity. """ -function list_available_zones(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "ListAvailableZones"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_available_zones(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm("ListAvailableZones"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_available_zones( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -496,9 +473,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The NextToken value from a previous call to ListHapgs. Pass null if this is the first call. """ -function list_hapgs(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm("ListHapgs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_hapgs(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm("ListHapgs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_hapgs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -525,9 +501,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The NextToken value from a previous call to ListHsms. Pass null if this is the first call. """ -function list_hsms(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm("ListHsms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_hsms(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm("ListHsms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_hsms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -553,11 +528,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The NextToken value from a previous call to ListLunaClients. Pass null if this is the first call. """ -function list_luna_clients(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "ListLunaClients"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_luna_clients(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm("ListLunaClients"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_luna_clients( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -580,16 +552,13 @@ for the specified AWS CloudHSM resource. - `resource_arn`: The Amazon Resource Name (ARN) of the AWS CloudHSM resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudhsm( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -624,14 +593,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PartitionSerialList"`: The list of partition serial numbers to make members of the high-availability partition group. """ -function modify_hapg(HapgArn; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "ModifyHapg", - Dict{String,Any}("HapgArn" => HapgArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_hapg(HapgArn; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm( + "ModifyHapg", + Dict{String,Any}("HapgArn" => HapgArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_hapg( HapgArn, params::AbstractDict{String}; @@ -673,14 +640,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SyslogIp"`: The new IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server. """ -function modify_hsm(HsmArn; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm( - "ModifyHsm", - Dict{String,Any}("HsmArn" => HsmArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_hsm(HsmArn; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm( + "ModifyHsm", + Dict{String,Any}("HsmArn" => HsmArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_hsm( HsmArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -708,16 +673,14 @@ certificate on the client's HSMs. - `client_arn`: The ARN of the client. """ -function modify_luna_client( +modify_luna_client( Certificate, ClientArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm( + "ModifyLunaClient", + Dict{String,Any}("Certificate" => Certificate, "ClientArn" => ClientArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm( - "ModifyLunaClient", - Dict{String,Any}("Certificate" => Certificate, "ClientArn" => ClientArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_luna_client( Certificate, ClientArn, @@ -755,16 +718,14 @@ remove (not the value). To overwrite the value for an existing tag, use AddTagsT the value). To overwrite the value for an existing tag, use AddTagsToResource. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceArn, TagKeyList; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm( + "RemoveTagsFromResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeyList" => TagKeyList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm( - "RemoveTagsFromResource", - Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeyList" => TagKeyList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceArn, TagKeyList, diff --git a/src/services/cloudhsm_v2.jl b/src/services/cloudhsm_v2.jl index 0a21db3d6..5d9824c7b 100644 --- a/src/services/cloudhsm_v2.jl +++ b/src/services/cloudhsm_v2.jl @@ -8,7 +8,8 @@ using AWS.UUIDs copy_backup_to_region(backup_id, destination_region) copy_backup_to_region(backup_id, destination_region, params::Dict{String,<:Any}) -Copy an AWS CloudHSM cluster backup to a different region. +Copy an CloudHSM cluster backup to a different region. Cross-account use: No. You cannot +perform this operation on an CloudHSM backup in a different Amazon Web Services account. # Arguments - `backup_id`: The ID of the backup that will be copied to the destination region. @@ -21,16 +22,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags, only these tags will be applied to the destination backup. If you do not specify tags, the service copies tags from the source backup to the destination backup. """ -function copy_backup_to_region( +copy_backup_to_region( BackupId, DestinationRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm_v2( + "CopyBackupToRegion", + Dict{String,Any}("BackupId" => BackupId, "DestinationRegion" => DestinationRegion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm_v2( - "CopyBackupToRegion", - Dict{String,Any}("BackupId" => BackupId, "DestinationRegion" => DestinationRegion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_backup_to_region( BackupId, DestinationRegion, @@ -57,7 +56,9 @@ end create_cluster(hsm_type, subnet_ids) create_cluster(hsm_type, subnet_ids, params::Dict{String,<:Any}) -Creates a new AWS CloudHSM cluster. +Creates a new CloudHSM cluster. Cross-account use: Yes. To perform this operation with an +CloudHSM backup in a different AWS account, specify the full backup ARN in the value of the +SourceBackupId parameter. # Arguments - `hsm_type`: The type of HSM to use in the cluster. The allowed values are hsm1.medium and @@ -71,21 +72,19 @@ Creates a new AWS CloudHSM cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"BackupRetentionPolicy"`: A policy that defines how the service retains backups. - `"Mode"`: The mode to use in the cluster. The allowed values are FIPS and NON_FIPS. -- `"SourceBackupId"`: The identifier (ID) of the cluster backup to restore. Use this value - to restore the cluster from a backup instead of creating a new cluster. To find the backup - ID, use DescribeBackups. +- `"SourceBackupId"`: The identifier (ID) or the Amazon Resource Name (ARN) of the cluster + backup to restore. Use this value to restore the cluster from a backup instead of creating + a new cluster. To find the backup ID or ARN, use DescribeBackups. If using a backup in + another account, the full ARN must be supplied. - `"TagList"`: Tags to apply to the CloudHSM cluster during creation. """ -function create_cluster( - HsmType, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudhsm_v2( +create_cluster(HsmType, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm_v2( "CreateCluster", Dict{String,Any}("HsmType" => HsmType, "SubnetIds" => SubnetIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_cluster( HsmType, SubnetIds, @@ -110,7 +109,9 @@ end create_hsm(availability_zone, cluster_id) create_hsm(availability_zone, cluster_id, params::Dict{String,<:Any}) -Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster. +Creates a new hardware security module (HSM) in the specified CloudHSM cluster. +Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a +different Amazon Web Service account. # Arguments - `availability_zone`: The Availability Zone where you are creating the HSM. To find the @@ -124,16 +125,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys address from the subnet that maps to the Availability Zone where you are creating the HSM. If you don't specify an IP address, one is chosen for you from that subnet. """ -function create_hsm( +create_hsm( AvailabilityZone, ClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm_v2( + "CreateHsm", + Dict{String,Any}("AvailabilityZone" => AvailabilityZone, "ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm_v2( - "CreateHsm", - Dict{String,Any}("AvailabilityZone" => AvailabilityZone, "ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hsm( AvailabilityZone, ClusterId, @@ -160,22 +159,22 @@ end delete_backup(backup_id) delete_backup(backup_id, params::Dict{String,<:Any}) -Deletes a specified AWS CloudHSM backup. A backup can be restored up to 7 days after the -DeleteBackup request is made. For more information on restoring a backup, see RestoreBackup. +Deletes a specified CloudHSM backup. A backup can be restored up to 7 days after the +DeleteBackup request is made. For more information on restoring a backup, see +RestoreBackup. Cross-account use: No. You cannot perform this operation on an CloudHSM +backup in a different Amazon Web Services account. # Arguments - `backup_id`: The ID of the backup to be deleted. To find the ID of a backup, use the DescribeBackups operation. """ -function delete_backup(BackupId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm_v2( - "DeleteBackup", - Dict{String,Any}("BackupId" => BackupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_backup(BackupId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm_v2( + "DeleteBackup", + Dict{String,Any}("BackupId" => BackupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_backup( BackupId, params::AbstractDict{String}; @@ -195,23 +194,22 @@ end delete_cluster(cluster_id) delete_cluster(cluster_id, params::Dict{String,<:Any}) -Deletes the specified AWS CloudHSM cluster. Before you can delete a cluster, you must -delete all HSMs in the cluster. To see if the cluster contains any HSMs, use -DescribeClusters. To delete an HSM, use DeleteHsm. +Deletes the specified CloudHSM cluster. Before you can delete a cluster, you must delete +all HSMs in the cluster. To see if the cluster contains any HSMs, use DescribeClusters. To +delete an HSM, use DeleteHsm. Cross-account use: No. You cannot perform this operation on +an CloudHSM cluster in a different Amazon Web Services account. # Arguments - `cluster_id`: The identifier (ID) of the cluster that you are deleting. To find the cluster ID, use DescribeClusters. """ -function delete_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm_v2( - "DeleteCluster", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm_v2( + "DeleteCluster", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_cluster( ClusterId, params::AbstractDict{String}; @@ -234,6 +232,8 @@ end Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters. +Cross-account use: No. You cannot perform this operation on an CloudHSM hsm in a different +Amazon Web Services account. # Arguments - `cluster_id`: The identifier (ID) of the cluster that contains the HSM that you are @@ -247,14 +247,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys deleting. - `"HsmId"`: The identifier (ID) of the HSM that you are deleting. """ -function delete_hsm(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm_v2( - "DeleteHsm", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_hsm(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm_v2( + "DeleteHsm", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_hsm( ClusterId, params::AbstractDict{String}; @@ -270,15 +268,47 @@ function delete_hsm( ) end +""" + delete_resource_policy() + delete_resource_policy(params::Dict{String,<:Any}) + + Deletes an CloudHSM resource policy. Deleting a resource policy will result in the +resource being unshared and removed from any RAM resource shares. Deleting the resource +policy attached to a backup will not impact any clusters created from that backup. +Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a +different Amazon Web Services account. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ResourceArn"`: Amazon Resource Name (ARN) of the resource from which the policy will be + removed. +""" +delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm_v2( + "DeleteResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function delete_resource_policy( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return cloudhsm_v2( + "DeleteResourcePolicy", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ describe_backups() describe_backups(params::Dict{String,<:Any}) -Gets information about backups of AWS CloudHSM clusters. This is a paginated operation, -which means that each response might contain only a subset of all the backups. When the -response contains only a subset of backups, it includes a NextToken value. Use this value -in a subsequent DescribeBackups request to get more backups. When you receive a response -with no NextToken (or an empty or null value), that means there are no more backups to get. +Gets information about backups of CloudHSM clusters. Lists either the backups you own or +the backups shared with you when the Shared parameter is true. This is a paginated +operation, which means that each response might contain only a subset of all the backups. +When the response contains only a subset of backups, it includes a NextToken value. Use +this value in a subsequent DescribeBackups request to get more backups. When you receive a +response with no NextToken (or an empty or null value), that means there are no more +backups to get. Cross-account use: Yes. Customers can describe backups in other Amazon Web +Services accounts that are shared with them. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -296,14 +326,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more backups than the number you specify, the response contains a NextToken value. - `"NextToken"`: The NextToken value that you received in the previous response. Use this value to get more backups. +- `"Shared"`: Describe backups that are shared with you. By default when using this + option, the command returns backups that have been shared using a standard Resource Access + Manager resource share. In order for a backup that was shared using the PutResourcePolicy + command to be returned, the share must be promoted to a standard resource share using the + RAM PromoteResourceShareCreatedFromPolicy API operation. For more information about sharing + backups, see Working with shared backups in the CloudHSM User Guide. - `"SortAscending"`: Designates whether or not to sort the return backups by ascending chronological order of generation. """ -function describe_backups(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm_v2( - "DescribeBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_backups(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm_v2("DescribeBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_backups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -316,11 +349,13 @@ end describe_clusters() describe_clusters(params::Dict{String,<:Any}) -Gets information about AWS CloudHSM clusters. This is a paginated operation, which means -that each response might contain only a subset of all the clusters. When the response -contains only a subset of clusters, it includes a NextToken value. Use this value in a -subsequent DescribeClusters request to get more clusters. When you receive a response with -no NextToken (or an empty or null value), that means there are no more clusters to get. +Gets information about CloudHSM clusters. This is a paginated operation, which means that +each response might contain only a subset of all the clusters. When the response contains +only a subset of clusters, it includes a NextToken value. Use this value in a subsequent +DescribeClusters request to get more clusters. When you receive a response with no +NextToken (or an empty or null value), that means there are no more clusters to get. +Cross-account use: No. You cannot perform this operation on CloudHSM clusters in a +different Amazon Web Services account. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -334,16 +369,35 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The NextToken value that you received in the previous response. Use this value to get more clusters. """ -function describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) +describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm_v2("DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function describe_clusters( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return cloudhsm_v2( - "DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "DescribeClusters", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) end -function describe_clusters( + +""" + get_resource_policy() + get_resource_policy(params::Dict{String,<:Any}) + + Retrieves the resource policy document attached to a given resource. Cross-account use: +No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web +Services account. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ResourceArn"`: Amazon Resource Name (ARN) of the resource to which a policy is attached. +""" +get_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm_v2("GetResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function get_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return cloudhsm_v2( - "DescribeClusters", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "GetResourcePolicy", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) end @@ -351,10 +405,11 @@ end initialize_cluster(cluster_id, signed_cert, trust_anchor) initialize_cluster(cluster_id, signed_cert, trust_anchor, params::Dict{String,<:Any}) -Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your issuing +Claims an CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get -the cluster's CSR, use DescribeClusters. +the cluster's CSR, use DescribeClusters. Cross-account use: No. You cannot perform this +operation on an CloudHSM cluster in a different Amazon Web Services account. # Arguments - `cluster_id`: The identifier (ID) of the cluster that you are claiming. To find the @@ -369,20 +424,18 @@ the cluster's CSR, use DescribeClusters. characters. """ -function initialize_cluster( +initialize_cluster( ClusterId, SignedCert, TrustAnchor; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm_v2( + "InitializeCluster", + Dict{String,Any}( + "ClusterId" => ClusterId, + "SignedCert" => SignedCert, + "TrustAnchor" => TrustAnchor, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm_v2( - "InitializeCluster", - Dict{String,Any}( - "ClusterId" => ClusterId, - "SignedCert" => SignedCert, - "TrustAnchor" => TrustAnchor, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function initialize_cluster( ClusterId, SignedCert, @@ -412,11 +465,13 @@ end list_tags(resource_id) list_tags(resource_id, params::Dict{String,<:Any}) -Gets a list of tags for the specified AWS CloudHSM cluster. This is a paginated operation, +Gets a list of tags for the specified CloudHSM cluster. This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTags request to get more tags. When you receive a response with no NextToken -(or an empty or null value), that means there are no more tags to get. +(or an empty or null value), that means there are no more tags to get. Cross-account use: +No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web +Services account. # Arguments - `resource_id`: The cluster identifier (ID) for the cluster whose tags you are getting. To @@ -429,14 +484,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The NextToken value that you received in the previous response. Use this value to get more tags. """ -function list_tags(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm_v2( - "ListTags", - Dict{String,Any}("ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm_v2( + "ListTags", + Dict{String,Any}("ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( ResourceId, params::AbstractDict{String}; @@ -456,7 +509,8 @@ end modify_backup_attributes(backup_id, never_expires) modify_backup_attributes(backup_id, never_expires, params::Dict{String,<:Any}) -Modifies attributes for AWS CloudHSM backup. +Modifies attributes for CloudHSM backup. Cross-account use: No. You cannot perform this +operation on an CloudHSM backup in a different Amazon Web Services account. # Arguments - `backup_id`: The identifier (ID) of the backup to modify. To find the ID of a backup, use @@ -466,16 +520,14 @@ Modifies attributes for AWS CloudHSM backup. service applies the backup retention policy defined at the cluster. """ -function modify_backup_attributes( +modify_backup_attributes( BackupId, NeverExpires; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm_v2( + "ModifyBackupAttributes", + Dict{String,Any}("BackupId" => BackupId, "NeverExpires" => NeverExpires); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm_v2( - "ModifyBackupAttributes", - Dict{String,Any}("BackupId" => BackupId, "NeverExpires" => NeverExpires); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_backup_attributes( BackupId, NeverExpires, @@ -500,7 +552,8 @@ end modify_cluster(backup_retention_policy, cluster_id) modify_cluster(backup_retention_policy, cluster_id, params::Dict{String,<:Any}) -Modifies AWS CloudHSM cluster. +Modifies CloudHSM cluster. Cross-account use: No. You cannot perform this operation on an +CloudHSM cluster in a different Amazon Web Services account. # Arguments - `backup_retention_policy`: A policy that defines how the service retains backups. @@ -508,18 +561,16 @@ Modifies AWS CloudHSM cluster. cluster ID, use DescribeClusters. """ -function modify_cluster( +modify_cluster( BackupRetentionPolicy, ClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudhsm_v2( + "ModifyCluster", + Dict{String,Any}( + "BackupRetentionPolicy" => BackupRetentionPolicy, "ClusterId" => ClusterId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudhsm_v2( - "ModifyCluster", - Dict{String,Any}( - "BackupRetentionPolicy" => BackupRetentionPolicy, "ClusterId" => ClusterId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cluster( BackupRetentionPolicy, ClusterId, @@ -543,26 +594,61 @@ function modify_cluster( ) end +""" + put_resource_policy() + put_resource_policy(params::Dict{String,<:Any}) + +Creates or updates an CloudHSM resource policy. A resource policy helps you to define the +IAM entity (for example, an Amazon Web Services account) that can manage your CloudHSM +resources. The following resources support CloudHSM resource policies: Backup - The +resource policy allows you to describe the backup and restore a cluster from the backup in +another Amazon Web Services account. In order to share a backup, it must be in a 'READY' +state and you must own it. While you can share a backup using the CloudHSM +PutResourcePolicy operation, we recommend using Resource Access Manager (RAM) instead. +Using RAM provides multiple benefits as it creates the policy for you, allows multiple +resources to be shared at one time, and increases the discoverability of shared resources. +If you use PutResourcePolicy and want consumers to be able to describe the backups you +share with them, you must promote the backup to a standard RAM Resource Share using the RAM +PromoteResourceShareCreatedFromPolicy API operation. For more information, see Working +with shared backups in the CloudHSM User Guide Cross-account use: No. You cannot perform +this operation on an CloudHSM resource in a different Amazon Web Services account. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"Policy"`: The policy you want to associate with a resource. For an example policy, see + Working with shared backups in the CloudHSM User Guide +- `"ResourceArn"`: Amazon Resource Name (ARN) of the resource to which you want to attach a + policy. +""" +put_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm_v2("PutResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function put_resource_policy( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return cloudhsm_v2( + "PutResourcePolicy", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + ) +end + """ restore_backup(backup_id) restore_backup(backup_id, params::Dict{String,<:Any}) -Restores a specified AWS CloudHSM backup that is in the PENDING_DELETION state. For mor -information on deleting a backup, see DeleteBackup. +Restores a specified CloudHSM backup that is in the PENDING_DELETION state. For more +information on deleting a backup, see DeleteBackup. Cross-account use: No. You cannot +perform this operation on an CloudHSM backup in a different Amazon Web Services account. # Arguments - `backup_id`: The ID of the backup to be restored. To find the ID of a backup, use the DescribeBackups operation. """ -function restore_backup(BackupId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudhsm_v2( - "RestoreBackup", - Dict{String,Any}("BackupId" => BackupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +restore_backup(BackupId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudhsm_v2( + "RestoreBackup", + Dict{String,Any}("BackupId" => BackupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function restore_backup( BackupId, params::AbstractDict{String}; @@ -582,7 +668,9 @@ end tag_resource(resource_id, tag_list) tag_resource(resource_id, tag_list, params::Dict{String,<:Any}) -Adds or overwrites one or more tags for the specified AWS CloudHSM cluster. +Adds or overwrites one or more tags for the specified CloudHSM cluster. Cross-account use: +No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web +Services account. # Arguments - `resource_id`: The cluster identifier (ID) for the cluster that you are tagging. To find @@ -590,16 +678,13 @@ Adds or overwrites one or more tags for the specified AWS CloudHSM cluster. - `tag_list`: A list of one or more tags. """ -function tag_resource( - ResourceId, TagList; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudhsm_v2( +tag_resource(ResourceId, TagList; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm_v2( "TagResource", Dict{String,Any}("ResourceId" => ResourceId, "TagList" => TagList); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceId, TagList, @@ -624,7 +709,9 @@ end untag_resource(resource_id, tag_key_list) untag_resource(resource_id, tag_key_list, params::Dict{String,<:Any}) -Removes the specified tag or tags from the specified AWS CloudHSM cluster. +Removes the specified tag or tags from the specified CloudHSM cluster. Cross-account use: +No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web +Services account. # Arguments - `resource_id`: The cluster identifier (ID) for the cluster whose tags you are removing. @@ -633,16 +720,13 @@ Removes the specified tag or tags from the specified AWS CloudHSM cluster. Specify only the tag keys, not the tag values. """ -function untag_resource( - ResourceId, TagKeyList; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudhsm_v2( +untag_resource(ResourceId, TagKeyList; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudhsm_v2( "UntagResource", Dict{String,Any}("ResourceId" => ResourceId, "TagKeyList" => TagKeyList); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceId, TagKeyList, diff --git a/src/services/cloudsearch.jl b/src/services/cloudsearch.jl index 6f4fe7231..0d62454b2 100644 --- a/src/services/cloudsearch.jl +++ b/src/services/cloudsearch.jl @@ -15,14 +15,13 @@ Amazon CloudSearch Developer Guide. - `domain_name`: """ -function build_suggesters(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch( +build_suggesters(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch( "BuildSuggesters", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function build_suggesters( DomainName, params::AbstractDict{String}; @@ -51,14 +50,12 @@ Amazon CloudSearch Developer Guide. and be at least 3 and no more than 28 characters long. """ -function create_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch( - "CreateDomain", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = cloudsearch( + "CreateDomain", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_domain( DomainName, params::AbstractDict{String}; @@ -87,16 +84,14 @@ Schemes in the Amazon CloudSearch Developer Guide. - `domain_name`: """ -function define_analysis_scheme( +define_analysis_scheme( AnalysisScheme, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DefineAnalysisScheme", + Dict{String,Any}("AnalysisScheme" => AnalysisScheme, "DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DefineAnalysisScheme", - Dict{String,Any}("AnalysisScheme" => AnalysisScheme, "DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function define_analysis_scheme( AnalysisScheme, DomainName, @@ -132,16 +127,14 @@ more information, see Configuring Expressions in the Amazon CloudSearch Develope - `expression`: """ -function define_expression( +define_expression( DomainName, Expression; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DefineExpression", + Dict{String,Any}("DomainName" => DomainName, "Expression" => Expression); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DefineExpression", - Dict{String,Any}("DomainName" => DomainName, "Expression" => Expression); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function define_expression( DomainName, Expression, @@ -179,16 +172,14 @@ Guide. - `index_field`: The index field and field options you want to configure. """ -function define_index_field( +define_index_field( DomainName, IndexField; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DefineIndexField", + Dict{String,Any}("DomainName" => DomainName, "IndexField" => IndexField); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DefineIndexField", - Dict{String,Any}("DomainName" => DomainName, "IndexField" => IndexField); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function define_index_field( DomainName, IndexField, @@ -224,16 +215,14 @@ CloudSearch Developer Guide. - `suggester`: """ -function define_suggester( +define_suggester( DomainName, Suggester; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DefineSuggester", + Dict{String,Any}("DomainName" => DomainName, "Suggester" => Suggester); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DefineSuggester", - Dict{String,Any}("DomainName" => DomainName, "Suggester" => Suggester); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function define_suggester( DomainName, Suggester, @@ -266,18 +255,16 @@ Amazon CloudSearch Developer Guide. - `domain_name`: """ -function delete_analysis_scheme( +delete_analysis_scheme( AnalysisSchemeName, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DeleteAnalysisScheme", + Dict{String,Any}( + "AnalysisSchemeName" => AnalysisSchemeName, "DomainName" => DomainName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DeleteAnalysisScheme", - Dict{String,Any}( - "AnalysisSchemeName" => AnalysisSchemeName, "DomainName" => DomainName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_analysis_scheme( AnalysisSchemeName, DomainName, @@ -312,14 +299,12 @@ CloudSearch Developer Guide. - `domain_name`: The name of the domain you want to permanently delete. """ -function delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch( - "DeleteDomain", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = cloudsearch( + "DeleteDomain", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_domain( DomainName, params::AbstractDict{String}; @@ -347,16 +332,14 @@ Expressions in the Amazon CloudSearch Developer Guide. - `expression_name`: The name of the Expression to delete. """ -function delete_expression( +delete_expression( DomainName, ExpressionName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DeleteExpression", + Dict{String,Any}("DomainName" => DomainName, "ExpressionName" => ExpressionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DeleteExpression", - Dict{String,Any}("DomainName" => DomainName, "ExpressionName" => ExpressionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_expression( DomainName, ExpressionName, @@ -392,16 +375,14 @@ Fields in the Amazon CloudSearch Developer Guide. indexing options. """ -function delete_index_field( +delete_index_field( DomainName, IndexFieldName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DeleteIndexField", + Dict{String,Any}("DomainName" => DomainName, "IndexFieldName" => IndexFieldName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DeleteIndexField", - Dict{String,Any}("DomainName" => DomainName, "IndexFieldName" => IndexFieldName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_index_field( DomainName, IndexFieldName, @@ -436,16 +417,14 @@ CloudSearch Developer Guide. - `suggester_name`: Specifies the name of the suggester you want to delete. """ -function delete_suggester( +delete_suggester( DomainName, SuggesterName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DeleteSuggester", + Dict{String,Any}("DomainName" => DomainName, "SuggesterName" => SuggesterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DeleteSuggester", - Dict{String,Any}("DomainName" => DomainName, "SuggesterName" => SuggesterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_suggester( DomainName, SuggesterName, @@ -488,16 +467,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Deployed"`: Whether to display the deployed configuration (true) or include any pending changes (false). Defaults to false. """ -function describe_analysis_schemes( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudsearch( +describe_analysis_schemes(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch( "DescribeAnalysisSchemes", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_analysis_schemes( DomainName, params::AbstractDict{String}; @@ -530,16 +506,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Deployed"`: Whether to display the deployed configuration (true) or include any pending changes (false). Defaults to false. """ -function describe_availability_options( +describe_availability_options( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DescribeAvailabilityOptions", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DescribeAvailabilityOptions", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_availability_options( DomainName, params::AbstractDict{String}; @@ -571,16 +545,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Deployed"`: Whether to retrieve the latest configuration (which might be in a Processing state) or the current, active configuration. Defaults to false. """ -function describe_domain_endpoint_options( +describe_domain_endpoint_options( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DescribeDomainEndpointOptions", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DescribeDomainEndpointOptions", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_domain_endpoint_options( DomainName, params::AbstractDict{String}; @@ -610,11 +582,8 @@ Information about a Search Domain in the Amazon CloudSearch Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DomainNames"`: The names of the domains you want to include in the response. """ -function describe_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch( - "DescribeDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch("DescribeDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -643,16 +612,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ExpressionNames"`: Limits the DescribeExpressions response to the specified expressions. If not specified, all expressions are shown. """ -function describe_expressions( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudsearch( +describe_expressions(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch( "DescribeExpressions", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_expressions( DomainName, params::AbstractDict{String}; @@ -688,16 +654,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FieldNames"`: A list of the index fields you want to describe. If not specified, information is returned for all configured index fields. """ -function describe_index_fields( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudsearch( +describe_index_fields(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch( "DescribeIndexFields", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_index_fields( DomainName, params::AbstractDict{String}; @@ -725,16 +688,14 @@ Configuring Scaling Options in the Amazon CloudSearch Developer Guide. - `domain_name`: """ -function describe_scaling_parameters( +describe_scaling_parameters( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DescribeScalingParameters", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DescribeScalingParameters", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scaling_parameters( DomainName, params::AbstractDict{String}; @@ -768,16 +729,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Deployed"`: Whether to display the deployed configuration (true) or include any pending changes (false). Defaults to false. """ -function describe_service_access_policies( +describe_service_access_policies( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "DescribeServiceAccessPolicies", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "DescribeServiceAccessPolicies", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_service_access_policies( DomainName, params::AbstractDict{String}; @@ -813,14 +772,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys changes (false). Defaults to false. - `"SuggesterNames"`: The suggesters you want to describe. """ -function describe_suggesters(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch( +describe_suggesters(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch( "DescribeSuggesters", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_suggesters( DomainName, params::AbstractDict{String}; @@ -848,14 +806,13 @@ RequiresIndexDocuments. - `domain_name`: """ -function index_documents(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch( +index_documents(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch( "IndexDocuments", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function index_documents( DomainName, params::AbstractDict{String}; @@ -878,11 +835,8 @@ end Lists all search domains owned by an account. """ -function list_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch( - "ListDomainNames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch("ListDomainNames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_domain_names( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -908,16 +862,14 @@ Availability Options in the Amazon CloudSearch Developer Guide. the domain to a single Availability Zone by setting the Multi-AZ option to false. """ -function update_availability_options( +update_availability_options( DomainName, MultiAZ; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "UpdateAvailabilityOptions", + Dict{String,Any}("DomainName" => DomainName, "MultiAZ" => MultiAZ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "UpdateAvailabilityOptions", - Dict{String,Any}("DomainName" => DomainName, "MultiAZ" => MultiAZ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_availability_options( DomainName, MultiAZ, @@ -953,18 +905,16 @@ Amazon CloudSearch Developer Guide. - `domain_name`: A string that represents the name of a domain. """ -function update_domain_endpoint_options( +update_domain_endpoint_options( DomainEndpointOptions, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "UpdateDomainEndpointOptions", + Dict{String,Any}( + "DomainEndpointOptions" => DomainEndpointOptions, "DomainName" => DomainName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "UpdateDomainEndpointOptions", - Dict{String,Any}( - "DomainEndpointOptions" => DomainEndpointOptions, "DomainName" => DomainName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_domain_endpoint_options( DomainEndpointOptions, DomainName, @@ -1004,18 +954,14 @@ Configuring Scaling Options in the Amazon CloudSearch Developer Guide. - `scaling_parameters`: """ -function update_scaling_parameters( +update_scaling_parameters( DomainName, ScalingParameters; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "UpdateScalingParameters", + Dict{String,Any}("DomainName" => DomainName, "ScalingParameters" => ScalingParameters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "UpdateScalingParameters", - Dict{String,Any}( - "DomainName" => DomainName, "ScalingParameters" => ScalingParameters - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_scaling_parameters( DomainName, ScalingParameters, @@ -1051,16 +997,14 @@ endpoints. For more information, see Configuring Access for an Amazon CloudSear - `domain_name`: """ -function update_service_access_policies( +update_service_access_policies( AccessPolicies, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch( + "UpdateServiceAccessPolicies", + Dict{String,Any}("AccessPolicies" => AccessPolicies, "DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch( - "UpdateServiceAccessPolicies", - Dict{String,Any}("AccessPolicies" => AccessPolicies, "DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_access_policies( AccessPolicies, DomainName, diff --git a/src/services/cloudsearch_domain.jl b/src/services/cloudsearch_domain.jl index d8d111a12..aa4405469 100644 --- a/src/services/cloudsearch_domain.jl +++ b/src/services/cloudsearch_domain.jl @@ -216,15 +216,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in JSON using the form: {\"FIELD-A\":{},\"FIELD-B\":{}} There are currently no options supported for statistics. """ -function search(q; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch_domain( - "GET", - "/2013-01-01/search?format=sdk&pretty=true", - Dict{String,Any}("q" => q); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search(q; aws_config::AbstractAWSConfig=current_aws_config()) = cloudsearch_domain( + "GET", + "/2013-01-01/search?format=sdk&pretty=true", + Dict{String,Any}("q" => q); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search( q, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -261,15 +259,14 @@ also displayed on the domain dashboard in the Amazon CloudSearch console. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"size"`: Specifies the maximum number of suggestions to return. """ -function suggest(q, suggester; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudsearch_domain( +suggest(q, suggester; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudsearch_domain( "GET", "/2013-01-01/suggest?format=sdk&pretty=true", Dict{String,Any}("q" => q, "suggester" => suggester); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function suggest( q, suggester, @@ -314,20 +311,18 @@ Amazon CloudSearch Developer Guide. - `documents`: A batch of documents formatted in JSON or HTML. """ -function upload_documents( +upload_documents( Content_Type, documents; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudsearch_domain( + "POST", + "/2013-01-01/documents/batch?format=sdk", + Dict{String,Any}( + "documents" => documents, + "headers" => Dict{String,Any}("Content-Type" => Content_Type), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudsearch_domain( - "POST", - "/2013-01-01/documents/batch?format=sdk", - Dict{String,Any}( - "documents" => documents, - "headers" => Dict{String,Any}("Content-Type" => Content_Type), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_documents( Content_Type, documents, diff --git a/src/services/cloudtrail.jl b/src/services/cloudtrail.jl index 8a8cc56fa..46c122e97 100644 --- a/src/services/cloudtrail.jl +++ b/src/services/cloudtrail.jl @@ -27,14 +27,13 @@ created (also known as its home Region). - `tags_list`: Contains a list of tags, up to a limit of 50 """ -function add_tags(ResourceId, TagsList; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( +add_tags(ResourceId, TagsList; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "AddTags", Dict{String,Any}("ResourceId" => ResourceId, "TagsList" => TagsList); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_tags( ResourceId, TagsList, @@ -73,14 +72,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventDataStore"`: The ARN (or the ID suffix of the ARN) of an event data store on which the specified query is running. """ -function cancel_query(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "CancelQuery", - Dict{String,Any}("QueryId" => QueryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_query(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "CancelQuery", + Dict{String,Any}("QueryId" => QueryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_query( QueryId, params::AbstractDict{String}; @@ -116,18 +113,14 @@ source that you specify. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_channel( +create_channel( Destinations, Name, Source; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "CreateChannel", + Dict{String,Any}("Destinations" => Destinations, "Name" => Name, "Source" => Source); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "CreateChannel", - Dict{String,Any}( - "Destinations" => Destinations, "Name" => Name, "Source" => Source - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel( Destinations, Name, @@ -219,14 +212,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled. """ -function create_event_data_store(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( +create_event_data_store(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "CreateEventDataStore", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_event_data_store( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -297,16 +289,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys log file delivery. The maximum length is 256 characters. - `"TagsList"`: """ -function create_trail( - Name, S3BucketName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudtrail( +create_trail(Name, S3BucketName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "CreateTrail", Dict{String,Any}("Name" => Name, "S3BucketName" => S3BucketName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_trail( Name, S3BucketName, @@ -337,14 +326,12 @@ Deletes a channel. - `channel`: The ARN or the UUID value of the channel that you want to delete. """ -function delete_channel(Channel; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "DeleteChannel", - Dict{String,Any}("Channel" => Channel); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_channel(Channel; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "DeleteChannel", + Dict{String,Any}("Channel" => Channel); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_channel( Channel, params::AbstractDict{String}; @@ -377,16 +364,14 @@ An event data store in the PENDING_DELETION state does not incur costs. delete. """ -function delete_event_data_store( +delete_event_data_store( EventDataStore; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "DeleteEventDataStore", + Dict{String,Any}("EventDataStore" => EventDataStore); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "DeleteEventDataStore", - Dict{String,Any}("EventDataStore" => EventDataStore); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_data_store( EventDataStore, params::AbstractDict{String}; @@ -414,16 +399,13 @@ end arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. """ -function delete_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudtrail( +delete_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "DeleteResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -453,14 +435,12 @@ Regions) of a trail that is enabled in all Regions. arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail """ -function delete_trail(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "DeleteTrail", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_trail(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "DeleteTrail", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_trail( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -484,16 +464,14 @@ organization. account in an organization that is currently designated as a delegated administrator. """ -function deregister_organization_delegated_admin( +deregister_organization_delegated_admin( DelegatedAdminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "DeregisterOrganizationDelegatedAdmin", + Dict{String,Any}("DelegatedAdminAccountId" => DelegatedAdminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "DeregisterOrganizationDelegatedAdmin", - Dict{String,Any}("DelegatedAdminAccountId" => DelegatedAdminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_organization_delegated_admin( DelegatedAdminAccountId, params::AbstractDict{String}; @@ -530,11 +508,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"QueryAlias"`: The alias that identifies a query template. - `"QueryId"`: The query ID. """ -function describe_query(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "DescribeQuery"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_query(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("DescribeQuery"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_query( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -569,11 +544,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys current Region and current account. To return information about a trail in another Region, you must specify its trail ARN. """ -function describe_trails(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "DescribeTrails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_trails(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("DescribeTrails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_trails( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -597,16 +569,13 @@ continue to run queries in CloudTrail Lake. you want to disable Lake query federation. """ -function disable_federation( - EventDataStore; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudtrail( +disable_federation(EventDataStore; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "DisableFederation", Dict{String,Any}("EventDataStore" => EventDataStore); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_federation( EventDataStore, params::AbstractDict{String}; @@ -647,18 +616,16 @@ event data store. provide the required minimum permissions. """ -function enable_federation( +enable_federation( EventDataStore, FederationRoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "EnableFederation", + Dict{String,Any}( + "EventDataStore" => EventDataStore, "FederationRoleArn" => FederationRoleArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "EnableFederation", - Dict{String,Any}( - "EventDataStore" => EventDataStore, "FederationRoleArn" => FederationRoleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_federation( EventDataStore, FederationRoleArn, @@ -692,14 +659,12 @@ end - `channel`: The ARN or UUID of a channel. """ -function get_channel(Channel; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "GetChannel", - Dict{String,Any}("Channel" => Channel); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_channel(Channel; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "GetChannel", + Dict{String,Any}("Channel" => Channel); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_channel( Channel, params::AbstractDict{String}; @@ -725,16 +690,13 @@ of the ARN. you want information. """ -function get_event_data_store( - EventDataStore; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudtrail( +get_event_data_store(EventDataStore; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "GetEventDataStore", Dict{String,Any}("EventDataStore" => EventDataStore); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_event_data_store( EventDataStore, params::AbstractDict{String}; @@ -772,14 +734,13 @@ topics in the CloudTrail User Guide: Logging management events Logging da must be in the format: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail """ -function get_event_selectors(TrailName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( +get_event_selectors(TrailName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "GetEventSelectors", Dict{String,Any}("TrailName" => TrailName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_event_selectors( TrailName, params::AbstractDict{String}; @@ -805,14 +766,12 @@ end - `import_id`: The ID for the import. """ -function get_import(ImportId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "GetImport", - Dict{String,Any}("ImportId" => ImportId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_import(ImportId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "GetImport", + Dict{String,Any}("ImportId" => ImportId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_import( ImportId, params::AbstractDict{String}; @@ -856,11 +815,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must be in the format: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail You cannot use this parameter with the EventDataStore parameter. """ -function get_insight_selectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "GetInsightSelectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_insight_selectors(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "GetInsightSelectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_insight_selectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -889,14 +846,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxQueryResults"`: The maximum number of query results to display on a single page. - `"NextToken"`: A token you can use to get the next page of query results. """ -function get_query_results(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "GetQueryResults", - Dict{String,Any}("QueryId" => QueryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_query_results(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "GetQueryResults", + Dict{String,Any}("QueryId" => QueryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_query_results( QueryId, params::AbstractDict{String}; @@ -923,16 +878,13 @@ channel. arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. """ -function get_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudtrail( +get_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "GetResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -959,14 +911,12 @@ Returns settings information for a specified trail. retrieve settings information. """ -function get_trail(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "GetTrail", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_trail(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "GetTrail", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_trail( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -994,14 +944,12 @@ trail status from all Regions, you must call the operation on each Region. arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail """ -function get_trail_status(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "GetTrailStatus", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_trail_status(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "GetTrailStatus", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_trail_status( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1027,11 +975,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters. """ -function list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "ListChannels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("ListChannels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1051,11 +996,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of event data stores to display on a single page. - `"NextToken"`: A token you can use to get the next page of event data store results. """ -function list_event_data_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "ListEventDataStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_event_data_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "ListEventDataStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_event_data_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1081,14 +1024,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of failures to display on a single page. - `"NextToken"`: A token you can use to get the next page of import failures. """ -function list_import_failures(ImportId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( +list_import_failures(ImportId; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "ListImportFailures", Dict{String,Any}("ImportId" => ImportId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_import_failures( ImportId, params::AbstractDict{String}; @@ -1118,9 +1060,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of imports to display on a single page. - `"NextToken"`: A token you can use to get the next page of import results. """ -function list_imports(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail("ListImports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_imports(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("ListImports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_imports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1174,20 +1115,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified is inclusive; results include data points with the specified time stamp. The default is 90 days before the time of request. """ -function list_insights_metric_data( +list_insights_metric_data( EventName, EventSource, InsightType; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "ListInsightsMetricData", + Dict{String,Any}( + "EventName" => EventName, + "EventSource" => EventSource, + "InsightType" => InsightType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "ListInsightsMetricData", - Dict{String,Any}( - "EventName" => EventName, - "EventSource" => EventSource, - "InsightType" => InsightType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_insights_metric_data( EventName, EventSource, @@ -1233,11 +1172,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys public keys for CloudTrail digest files. If not specified, the current time is used, and the current public key is returned. """ -function list_public_keys(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "ListPublicKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_public_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("ListPublicKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_public_keys( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1271,14 +1207,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: Use with EndTime to bound a ListQueries request, and limit its results to only those queries run within a specified time period. """ -function list_queries(EventDataStore; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( +list_queries(EventDataStore; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "ListQueries", Dict{String,Any}("EventDataStore" => EventDataStore); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_queries( EventDataStore, params::AbstractDict{String}; @@ -1313,14 +1248,12 @@ Region. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Reserved for future use. """ -function list_tags(ResourceIdList; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "ListTags", - Dict{String,Any}("ResourceIdList" => ResourceIdList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(ResourceIdList; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "ListTags", + Dict{String,Any}("ResourceIdList" => ResourceIdList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( ResourceIdList, params::AbstractDict{String}; @@ -1349,9 +1282,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters. """ -function list_trails(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail("ListTrails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_trails(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("ListTrails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_trails( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1396,11 +1328,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned. """ -function lookup_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "LookupEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +lookup_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("LookupEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function lookup_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1461,14 +1390,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AdvancedEventSelectors in a PutEventSelectors request, but not both. If you apply EventSelectors to a trail, any existing AdvancedEventSelectors are overwritten. """ -function put_event_selectors(TrailName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( +put_event_selectors(TrailName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "PutEventSelectors", Dict{String,Any}("TrailName" => TrailName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_event_selectors( TrailName, params::AbstractDict{String}; @@ -1529,16 +1457,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Insights selectors. You cannot use this parameter with the EventDataStore and InsightsDestination parameters. """ -function put_insight_selectors( +put_insight_selectors( InsightSelectors; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "PutInsightSelectors", + Dict{String,Any}("InsightSelectors" => InsightSelectors); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "PutInsightSelectors", - Dict{String,Any}("InsightSelectors" => InsightSelectors); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_insight_selectors( InsightSelectors, params::AbstractDict{String}; @@ -1576,16 +1502,14 @@ User Guide. statement can have a maximum of 50 principals. """ -function put_resource_policy( +put_resource_policy( ResourceArn, ResourcePolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "PutResourcePolicy", + Dict{String,Any}("ResourceArn" => ResourceArn, "ResourcePolicy" => ResourcePolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "PutResourcePolicy", - Dict{String,Any}("ResourceArn" => ResourceArn, "ResourcePolicy" => ResourcePolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( ResourceArn, ResourcePolicy, @@ -1619,16 +1543,14 @@ Registers an organization’s member account as the CloudTrail delegated adminis delegated administrator. """ -function register_organization_delegated_admin( +register_organization_delegated_admin( MemberAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "RegisterOrganizationDelegatedAdmin", + Dict{String,Any}("MemberAccountId" => MemberAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "RegisterOrganizationDelegatedAdmin", - Dict{String,Any}("MemberAccountId" => MemberAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_organization_delegated_admin( MemberAccountId, params::AbstractDict{String}; @@ -1662,16 +1584,13 @@ Removes the specified tags from a trail, event data store, or channel. - `tags_list`: Specifies a list of tags to be removed. """ -function remove_tags( - ResourceId, TagsList; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudtrail( +remove_tags(ResourceId, TagsList; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail( "RemoveTags", Dict{String,Any}("ResourceId" => ResourceId, "TagsList" => TagsList); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_tags( ResourceId, TagsList, @@ -1706,16 +1625,14 @@ the size of the event data store. you want to restore. """ -function restore_event_data_store( +restore_event_data_store( EventDataStore; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "RestoreEventDataStore", + Dict{String,Any}("EventDataStore" => EventDataStore); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "RestoreEventDataStore", - Dict{String,Any}("EventDataStore" => EventDataStore); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_event_data_store( EventDataStore, params::AbstractDict{String}; @@ -1744,16 +1661,14 @@ STOPPED_INGESTION and the eventCategory must be Management, Data, or Configurati you want to start ingestion. """ -function start_event_data_store_ingestion( +start_event_data_store_ingestion( EventDataStore; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "StartEventDataStoreIngestion", + Dict{String,Any}("EventDataStore" => EventDataStore); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "StartEventDataStoreIngestion", - Dict{String,Any}("EventDataStore" => EventDataStore); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_event_data_store_ingestion( EventDataStore, params::AbstractDict{String}; @@ -1805,9 +1720,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contain a date between the specified StartEventTime and EndEventTime before attempting to import events. """ -function start_import(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail("StartImport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +start_import(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("StartImport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function start_import( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1831,14 +1745,12 @@ in which the trail was created. This operation cannot be called on the shadow tr arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail """ -function start_logging(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "StartLogging", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_logging(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "StartLogging", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_logging( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1869,9 +1781,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"QueryParameters"`: The query parameters for the specified QueryAlias. - `"QueryStatement"`: The SQL code of your query. """ -function start_query(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail("StartQuery"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +start_query(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudtrail("StartQuery"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function start_query( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1893,16 +1804,14 @@ the eventCategory must be Management, Data, or ConfigurationItem. you want to stop ingestion. """ -function stop_event_data_store_ingestion( +stop_event_data_store_ingestion( EventDataStore; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "StopEventDataStoreIngestion", + Dict{String,Any}("EventDataStore" => EventDataStore); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "StopEventDataStoreIngestion", - Dict{String,Any}("EventDataStore" => EventDataStore); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_event_data_store_ingestion( EventDataStore, params::AbstractDict{String}; @@ -1928,14 +1837,12 @@ end - `import_id`: The ID of the import. """ -function stop_import(ImportId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "StopImport", - Dict{String,Any}("ImportId" => ImportId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_import(ImportId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "StopImport", + Dict{String,Any}("ImportId" => ImportId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_import( ImportId, params::AbstractDict{String}; @@ -1969,14 +1876,12 @@ all Regions. arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail """ -function stop_logging(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "StopLogging", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_logging(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "StopLogging", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_logging( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2003,14 +1908,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys through the channel. - `"Name"`: Changes the name of the channel. """ -function update_channel(Channel; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "UpdateChannel", - Dict{String,Any}("Channel" => Channel); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_channel(Channel; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "UpdateChannel", + Dict{String,Any}("Channel" => Channel); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_channel( Channel, params::AbstractDict{String}; @@ -2097,16 +2000,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TerminationProtectionEnabled"`: Indicates that termination protection is enabled and the event data store cannot be automatically deleted. """ -function update_event_data_store( +update_event_data_store( EventDataStore; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail( + "UpdateEventDataStore", + Dict{String,Any}("EventDataStore" => EventDataStore); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail( - "UpdateEventDataStore", - Dict{String,Any}("EventDataStore" => EventDataStore); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_event_data_store( EventDataStore, params::AbstractDict{String}; @@ -2192,14 +2093,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnsTopicName"`: Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters. """ -function update_trail(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudtrail( - "UpdateTrail", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_trail(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudtrail( + "UpdateTrail", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_trail( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/cloudtrail_data.jl b/src/services/cloudtrail_data.jl index 47099631e..91c117908 100644 --- a/src/services/cloudtrail_data.jl +++ b/src/services/cloudtrail_data.jl @@ -23,17 +23,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource policy includes an external ID. This value can be any string, such as a passphrase or account number. """ -function put_audit_events( +put_audit_events( auditEvents, channelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudtrail_data( + "POST", + "/PutAuditEvents", + Dict{String,Any}("auditEvents" => auditEvents, "channelArn" => channelArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudtrail_data( - "POST", - "/PutAuditEvents", - Dict{String,Any}("auditEvents" => auditEvents, "channelArn" => channelArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_audit_events( auditEvents, channelArn, diff --git a/src/services/cloudwatch.jl b/src/services/cloudwatch.jl index 62aa9ec0c..95ccbb49b 100644 --- a/src/services/cloudwatch.jl +++ b/src/services/cloudwatch.jl @@ -28,14 +28,12 @@ evaluation path. - `alarm_names`: The alarms to be deleted. Do not enclose the alarm names in quote marks. """ -function delete_alarms(AlarmNames; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "DeleteAlarms", - Dict{String,Any}("AlarmNames" => AlarmNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_alarms(AlarmNames; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch( + "DeleteAlarms", + Dict{String,Any}("AlarmNames" => AlarmNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_alarms( AlarmNames, params::AbstractDict{String}; @@ -78,11 +76,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys property. - `"Stat"`: The statistic associated with the anomaly detection model to delete. """ -function delete_anomaly_detector(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "DeleteAnomalyDetector"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_anomaly_detector(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch( + "DeleteAnomalyDetector"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_anomaly_detector( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -105,16 +101,13 @@ there is an error during this call, no dashboards are deleted. - `dashboard_names`: The dashboards to be deleted. This parameter is required. """ -function delete_dashboards( - DashboardNames; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch( +delete_dashboards(DashboardNames; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "DeleteDashboards", Dict{String,Any}("DashboardNames" => DashboardNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dashboards( DashboardNames, params::AbstractDict{String}; @@ -143,14 +136,13 @@ was created might not be available. your rules, use DescribeInsightRules. """ -function delete_insight_rules(RuleNames; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( +delete_insight_rules(RuleNames; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "DeleteInsightRules", Dict{String,Any}("RuleNames" => RuleNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_insight_rules( RuleNames, params::AbstractDict{String}; @@ -176,14 +168,12 @@ Permanently deletes the metric stream that you specify. - `name`: The name of the metric stream to delete. """ -function delete_metric_stream(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "DeleteMetricStream", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_metric_stream(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch( + "DeleteMetricStream", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_metric_stream( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -223,11 +213,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys TimestampAscending to have the oldest history returned first. - `"StartDate"`: The starting date to retrieve alarm history. """ -function describe_alarm_history(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "DescribeAlarmHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_alarm_history(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch( + "DescribeAlarmHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_alarm_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -292,11 +280,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StateValue"`: Specify this parameter to receive information only about alarms that are currently in the state that you specify. """ -function describe_alarms(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "DescribeAlarms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_alarms(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch("DescribeAlarms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_alarms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -329,16 +314,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys statistics, use ExtendedStatistics. - `"Unit"`: The unit for the metric. """ -function describe_alarms_for_metric( +describe_alarms_for_metric( MetricName, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch( + "DescribeAlarmsForMetric", + Dict{String,Any}("MetricName" => MetricName, "Namespace" => Namespace); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "DescribeAlarmsForMetric", - Dict{String,Any}("MetricName" => MetricName, "Namespace" => Namespace); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_alarms_for_metric( MetricName, Namespace, @@ -388,11 +371,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Use the token returned by the previous operation to request the next page of results. """ -function describe_anomaly_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( +describe_anomaly_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "DescribeAnomalyDetectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_anomaly_detectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -418,11 +400,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Include this value, if it was returned by the previous operation, to get the next set of rules. """ -function describe_insight_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "DescribeInsightRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_insight_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch( + "DescribeInsightRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_insight_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -445,16 +425,13 @@ alarm actions do not execute when the alarm state changes. - `alarm_names`: The names of the alarms. """ -function disable_alarm_actions( - AlarmNames; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch( +disable_alarm_actions(AlarmNames; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "DisableAlarmActions", Dict{String,Any}("AlarmNames" => AlarmNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_alarm_actions( AlarmNames, params::AbstractDict{String}; @@ -482,16 +459,13 @@ analyze log groups and do not incur costs. your rules, use DescribeInsightRules. """ -function disable_insight_rules( - RuleNames; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch( +disable_insight_rules(RuleNames; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "DisableInsightRules", Dict{String,Any}("RuleNames" => RuleNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_insight_rules( RuleNames, params::AbstractDict{String}; @@ -517,16 +491,13 @@ Enables the actions for the specified alarms. - `alarm_names`: The names of the alarms. """ -function enable_alarm_actions( - AlarmNames; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch( +enable_alarm_actions(AlarmNames; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "EnableAlarmActions", Dict{String,Any}("AlarmNames" => AlarmNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_alarm_actions( AlarmNames, params::AbstractDict{String}; @@ -554,14 +525,13 @@ begin analyzing log data. your rules, use DescribeInsightRules. """ -function enable_insight_rules(RuleNames; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( +enable_insight_rules(RuleNames; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "EnableInsightRules", Dict{String,Any}("RuleNames" => RuleNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_insight_rules( RuleNames, params::AbstractDict{String}; @@ -589,14 +559,13 @@ new dashboard when you call PutDashboard to create the copy. - `dashboard_name`: The name of the dashboard to be described. """ -function get_dashboard(DashboardName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( +get_dashboard(DashboardName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "GetDashboard", Dict{String,Any}("DashboardName" => DashboardName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_dashboard( DashboardName, params::AbstractDict{String}; @@ -663,21 +632,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OrderBy"`: Determines what statistic to use to rank the contributors. Valid values are Sum and Maximum. """ -function get_insight_rule_report( +get_insight_rule_report( EndTime, Period, RuleName, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch( + "GetInsightRuleReport", + Dict{String,Any}( + "EndTime" => EndTime, + "Period" => Period, + "RuleName" => RuleName, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "GetInsightRuleReport", - Dict{String,Any}( - "EndTime" => EndTime, - "Period" => Period, - "RuleName" => RuleName, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_insight_rule_report( EndTime, Period, @@ -790,23 +757,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys TimestampAscending returns the oldest data first and paginates when the MaxDatapoints limit is reached. If you omit this parameter, the default of TimestampDescending is used. """ -function get_metric_data( +get_metric_data( EndTime, MetricDataQueries, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch( + "GetMetricData", + Dict{String,Any}( + "EndTime" => EndTime, + "MetricDataQueries" => MetricDataQueries, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "GetMetricData", - Dict{String,Any}( - "EndTime" => EndTime, - "MetricDataQueries" => MetricDataQueries, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_metric_data( EndTime, MetricDataQueries, @@ -922,27 +887,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys collected, the results of the operation are null. CloudWatch does not perform unit conversions. """ -function get_metric_statistics( +get_metric_statistics( EndTime, MetricName, Namespace, Period, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch( + "GetMetricStatistics", + Dict{String,Any}( + "EndTime" => EndTime, + "MetricName" => MetricName, + "Namespace" => Namespace, + "Period" => Period, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "GetMetricStatistics", - Dict{String,Any}( - "EndTime" => EndTime, - "MetricName" => MetricName, - "Namespace" => Namespace, - "Period" => Period, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_metric_statistics( EndTime, MetricName, @@ -982,14 +945,12 @@ Returns information about the metric stream that you specify. - `name`: The name of the metric stream to retrieve information about. """ -function get_metric_stream(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "GetMetricStream", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_metric_stream(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch( + "GetMetricStream", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_metric_stream( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1038,16 +999,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services SDK, you should use png. If you specify image/png, the HTTP response has a content-type set to image/png, and the body of the response is a PNG image. """ -function get_metric_widget_image( - MetricWidget; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch( +get_metric_widget_image(MetricWidget; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "GetMetricWidgetImage", Dict{String,Any}("MetricWidget" => MetricWidget); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_metric_widget_image( MetricWidget, params::AbstractDict{String}; @@ -1081,11 +1039,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to indicate that there is more data available. """ -function list_dashboards(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "ListDashboards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_dashboards(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch("ListDashboards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_dashboards( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1112,16 +1067,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Include this value to get the next set of rules if the value was returned by the previous operation. """ -function list_managed_insight_rules( +list_managed_insight_rules( ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch( + "ListManagedInsightRules", + Dict{String,Any}("ResourceARN" => ResourceARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "ListManagedInsightRules", - Dict{String,Any}("ResourceARN" => ResourceARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_managed_insight_rules( ResourceARN, params::AbstractDict{String}; @@ -1149,11 +1102,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Include this value, if it was returned by the previous call, to get the next set of metric streams. """ -function list_metric_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "ListMetricStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_metric_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch("ListMetricStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_metric_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1199,9 +1149,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval. """ -function list_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch("ListMetrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch("ListMetrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_metrics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1226,16 +1175,13 @@ Insights rules support tagging. Services General Reference. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1287,11 +1233,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SingleMetricAnomalyDetector. - `"Stat"`: The statistic to use for the metric and the anomaly detection model. """ -function put_anomaly_detector(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "PutAnomalyDetector"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +put_anomaly_detector(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch("PutAnomalyDetector"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function put_anomaly_detector( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1416,16 +1359,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys using this operation to update an existing alarm, any tags you specify in this parameter are ignored. To change the tags of an existing alarm, use TagResource or UntagResource. """ -function put_composite_alarm( +put_composite_alarm( AlarmName, AlarmRule; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch( + "PutCompositeAlarm", + Dict{String,Any}("AlarmName" => AlarmName, "AlarmRule" => AlarmRule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "PutCompositeAlarm", - Dict{String,Any}("AlarmName" => AlarmName, "AlarmRule" => AlarmRule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_composite_alarm( AlarmName, AlarmRule, @@ -1473,18 +1414,14 @@ DashboardBody script or the CloudFormation template used to create the dashboard \"-\", and \"_\". This parameter is required. """ -function put_dashboard( +put_dashboard( DashboardBody, DashboardName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch( + "PutDashboard", + Dict{String,Any}("DashboardBody" => DashboardBody, "DashboardName" => DashboardName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "PutDashboard", - Dict{String,Any}( - "DashboardBody" => DashboardBody, "DashboardName" => DashboardName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_dashboard( DashboardBody, DashboardName, @@ -1534,16 +1471,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource. """ -function put_insight_rule( +put_insight_rule( RuleDefinition, RuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch( + "PutInsightRule", + Dict{String,Any}("RuleDefinition" => RuleDefinition, "RuleName" => RuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "PutInsightRule", - Dict{String,Any}("RuleDefinition" => RuleDefinition, "RuleName" => RuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_insight_rule( RuleDefinition, RuleName, @@ -1582,16 +1517,14 @@ available rules. - `managed_rules`: A list of ManagedRules to enable. """ -function put_managed_insight_rules( +put_managed_insight_rules( ManagedRules; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch( + "PutManagedInsightRules", + Dict{String,Any}("ManagedRules" => ManagedRules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "PutManagedInsightRules", - Dict{String,Any}("ManagedRules" => ManagedRules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_managed_insight_rules( ManagedRules, params::AbstractDict{String}; @@ -1807,23 +1740,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not published for this metric. Doing so causes the alarm to be stuck in the INSUFFICIENT DATA state. """ -function put_metric_alarm( +put_metric_alarm( AlarmName, ComparisonOperator, EvaluationPeriods; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch( + "PutMetricAlarm", + Dict{String,Any}( + "AlarmName" => AlarmName, + "ComparisonOperator" => ComparisonOperator, + "EvaluationPeriods" => EvaluationPeriods, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "PutMetricAlarm", - Dict{String,Any}( - "AlarmName" => AlarmName, - "ComparisonOperator" => ComparisonOperator, - "EvaluationPeriods" => EvaluationPeriods, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_metric_alarm( AlarmName, ComparisonOperator, @@ -1890,16 +1821,13 @@ by SampleCount. AWS/ """ -function put_metric_data( - MetricData, Namespace; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch( +put_metric_data(MetricData, Namespace; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "PutMetricData", Dict{String,Any}("MetricData" => MetricData, "Namespace" => Namespace); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_metric_data( MetricData, Namespace, @@ -1986,25 +1914,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation to update an existing metric stream, any tags you specify in this parameter are ignored. To change the tags of an existing metric stream, use TagResource or UntagResource. """ -function put_metric_stream( +put_metric_stream( FirehoseArn, Name, OutputFormat, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch( + "PutMetricStream", + Dict{String,Any}( + "FirehoseArn" => FirehoseArn, + "Name" => Name, + "OutputFormat" => OutputFormat, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "PutMetricStream", - Dict{String,Any}( - "FirehoseArn" => FirehoseArn, - "Name" => Name, - "OutputFormat" => OutputFormat, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_metric_stream( FirehoseArn, Name, @@ -2061,20 +1987,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action. """ -function set_alarm_state( +set_alarm_state( AlarmName, StateReason, StateValue; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch( + "SetAlarmState", + Dict{String,Any}( + "AlarmName" => AlarmName, + "StateReason" => StateReason, + "StateValue" => StateValue, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch( - "SetAlarmState", - Dict{String,Any}( - "AlarmName" => AlarmName, - "StateReason" => StateReason, - "StateValue" => StateValue, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_alarm_state( AlarmName, StateReason, @@ -2112,14 +2036,13 @@ Starts the streaming of metrics for one or more of your metric streams. you list here, then none of the streams that you list in the operation will start streaming. """ -function start_metric_streams(Names; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( +start_metric_streams(Names; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "StartMetricStreams", Dict{String,Any}("Names" => Names); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_metric_streams( Names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2143,14 +2066,12 @@ Stops the streaming of metrics for one or more of your metric streams. you list here, then none of the streams that you list in the operation will stop streaming. """ -function stop_metric_streams(Names; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( - "StopMetricStreams", - Dict{String,Any}("Names" => Names); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_metric_streams(Names; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch( + "StopMetricStreams", + Dict{String,Any}("Names" => Names); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_metric_streams( Names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2187,14 +2108,13 @@ value for that tag. You can associate as many as 50 tags with a CloudWatch resou - `tags`: The list of key-value pairs to associate with the alarm. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -2231,16 +2151,13 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, diff --git a/src/services/cloudwatch_events.jl b/src/services/cloudwatch_events.jl index 2f8f695c6..d3659f6ef 100644 --- a/src/services/cloudwatch_events.jl +++ b/src/services/cloudwatch_events.jl @@ -15,14 +15,13 @@ event bus will start receiving events from the event source. - `name`: The name of the partner event source to activate. """ -function activate_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +activate_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "ActivateEventSource", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function activate_event_source( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -44,14 +43,13 @@ Cancels the specified replay. - `replay_name`: The name of the replay to cancel. """ -function cancel_replay(ReplayName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +cancel_replay(ReplayName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "CancelReplay", Dict{String,Any}("ReplayName" => ReplayName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_replay( ReplayName, params::AbstractDict{String}; @@ -87,25 +85,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InvocationRateLimitPerSecond"`: The maximum number of requests per second to send to the HTTP invocation endpoint. """ -function create_api_destination( +create_api_destination( ConnectionArn, HttpMethod, InvocationEndpoint, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_events( + "CreateApiDestination", + Dict{String,Any}( + "ConnectionArn" => ConnectionArn, + "HttpMethod" => HttpMethod, + "InvocationEndpoint" => InvocationEndpoint, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_events( - "CreateApiDestination", - Dict{String,Any}( - "ConnectionArn" => ConnectionArn, - "HttpMethod" => HttpMethod, - "InvocationEndpoint" => InvocationEndpoint, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_api_destination( ConnectionArn, HttpMethod, @@ -154,16 +150,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RetentionDays"`: The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely """ -function create_archive( +create_archive( ArchiveName, EventSourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_events( + "CreateArchive", + Dict{String,Any}("ArchiveName" => ArchiveName, "EventSourceArn" => EventSourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_events( - "CreateArchive", - Dict{String,Any}("ArchiveName" => ArchiveName, "EventSourceArn" => EventSourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_archive( ArchiveName, EventSourceArn, @@ -203,23 +197,21 @@ for authorization with an API destination HTTP endpoint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description for the connection to create. """ -function create_connection( +create_connection( AuthParameters, AuthorizationType, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_events( + "CreateConnection", + Dict{String,Any}( + "AuthParameters" => AuthParameters, + "AuthorizationType" => AuthorizationType, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_events( - "CreateConnection", - Dict{String,Any}( - "AuthParameters" => AuthParameters, - "AuthorizationType" => AuthorizationType, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connection( AuthParameters, AuthorizationType, @@ -265,14 +257,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys event source that the new event bus will be matched with. - `"Tags"`: Tags to associate with the event bus. """ -function create_event_bus(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +create_event_bus(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "CreateEventBus", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_event_bus( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -314,16 +305,14 @@ these events. matches the name of the partner event source. """ -function create_partner_event_source( +create_partner_event_source( Account, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_events( + "CreatePartnerEventSource", + Dict{String,Any}("Account" => Account, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_events( - "CreatePartnerEventSource", - Dict{String,Any}("Account" => Account, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_partner_event_source( Account, Name, @@ -356,14 +345,13 @@ ActivateEventSource. - `name`: The name of the partner event source to deactivate. """ -function deactivate_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +deactivate_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DeactivateEventSource", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deactivate_event_source( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -386,14 +374,13 @@ from the connection so you can reuse it without having to create a new connectio - `name`: The name of the connection to remove authorization from. """ -function deauthorize_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +deauthorize_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DeauthorizeConnection", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deauthorize_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -415,14 +402,13 @@ Deletes the specified API destination. - `name`: The name of the destination to delete. """ -function delete_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +delete_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DeleteApiDestination", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_api_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -444,14 +430,13 @@ Deletes the specified archive. - `archive_name`: The name of the archive to delete. """ -function delete_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +delete_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DeleteArchive", Dict{String,Any}("ArchiveName" => ArchiveName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_archive( ArchiveName, params::AbstractDict{String}; @@ -477,14 +462,13 @@ Deletes a connection. - `name`: The name of the connection to delete. """ -function delete_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +delete_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DeleteConnection", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -507,14 +491,13 @@ event bus need to be deleted. You can't delete your account's default event bus. - `name`: The name of the event bus to delete. """ -function delete_event_bus(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +delete_event_bus(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DeleteEventBus", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_event_bus( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -541,16 +524,14 @@ DELETED. - `name`: The name of the event source to delete. """ -function delete_partner_event_source( +delete_partner_event_source( Account, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_events( + "DeletePartnerEventSource", + Dict{String,Any}("Account" => Account, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_events( - "DeletePartnerEventSource", - Dict{String,Any}("Account" => Account, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_partner_event_source( Account, Name, @@ -595,14 +576,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response. """ -function delete_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "DeleteRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "DeleteRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -624,14 +603,13 @@ Retrieves details about an API destination. - `name`: The name of the API destination to retrieve. """ -function describe_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +describe_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DescribeApiDestination", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_api_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -653,14 +631,13 @@ Retrieves details about an archive. - `archive_name`: The name of the archive to retrieve. """ -function describe_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +describe_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DescribeArchive", Dict{String,Any}("ArchiveName" => ArchiveName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_archive( ArchiveName, params::AbstractDict{String}; @@ -686,14 +663,13 @@ Retrieves details about a connection. - `name`: The name of the connection to retrieve. """ -function describe_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +describe_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DescribeConnection", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -721,11 +697,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name or ARN of the event bus to show details for. If you omit this, the default event bus is displayed. """ -function describe_event_bus(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +describe_event_bus(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DescribeEventBus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_event_bus( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -744,14 +719,13 @@ This operation lists details about a partner event source that is shared with yo - `name`: The name of the partner event source to display the details of. """ -function describe_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +describe_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DescribeEventSource", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_event_source( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -776,16 +750,13 @@ source that is shared with them. - `name`: The name of the event source to display. """ -function describe_partner_event_source( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_events( +describe_partner_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DescribePartnerEventSource", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_partner_event_source( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -814,14 +785,13 @@ the last event replayed. - `replay_name`: The name of the replay to retrieve. """ -function describe_replay(ReplayName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +describe_replay(ReplayName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "DescribeReplay", Dict{String,Any}("ReplayName" => ReplayName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_replay( ReplayName, params::AbstractDict{String}; @@ -852,14 +822,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventBusName"`: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used. """ -function describe_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "DescribeRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "DescribeRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -887,14 +855,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventBusName"`: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used. """ -function disable_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "DisableRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "DisableRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -922,14 +888,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventBusName"`: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used. """ -function enable_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "EnableRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "EnableRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -955,11 +919,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys name that starts with the prefix are returned. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_api_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +list_api_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "ListApiDestinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_api_destinations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -987,11 +950,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. - `"State"`: The state of the archive. """ -function list_archives(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "ListArchives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_archives(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "ListArchives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_archives( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1014,11 +975,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that starts with the prefix are returned. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1043,11 +1002,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that start with the specified prefix. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_event_buses(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "ListEventBuses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_event_buses(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "ListEventBuses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_event_buses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1073,11 +1030,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with names that start with the specified prefix. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_event_sources(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +list_event_sources(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "ListEventSources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_event_sources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1106,16 +1062,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to this operation. Specifying this retrieves the next set of results. """ -function list_partner_event_source_accounts( +list_partner_event_source_accounts( EventSourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_events( + "ListPartnerEventSourceAccounts", + Dict{String,Any}("EventSourceName" => EventSourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_events( - "ListPartnerEventSourceAccounts", - Dict{String,Any}("EventSourceName" => EventSourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_partner_event_source_accounts( EventSourceName, params::AbstractDict{String}; @@ -1152,16 +1106,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to this operation. Specifying this retrieves the next set of results. """ -function list_partner_event_sources( - NamePrefix; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_events( +list_partner_event_sources(NamePrefix; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "ListPartnerEventSources", Dict{String,Any}("NamePrefix" => NamePrefix); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_partner_event_sources( NamePrefix, params::AbstractDict{String}; @@ -1193,11 +1144,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. - `"State"`: The state of the replay. """ -function list_replays(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "ListReplays"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_replays(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events("ListReplays"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_replays( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1223,16 +1171,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: The maximum number of results to return. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_rule_names_by_target( - TargetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_events( +list_rule_names_by_target(TargetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "ListRuleNamesByTarget", Dict{String,Any}("TargetArn" => TargetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_rule_names_by_target( TargetArn, params::AbstractDict{String}; @@ -1264,11 +1209,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NamePrefix"`: The prefix matching the rule name. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "ListRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events("ListRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1288,16 +1230,13 @@ buses can be tagged. - `resource_arn`: The ARN of the EventBridge resource for which you want to view tags. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_events( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1329,14 +1268,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: The maximum number of results to return. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_targets_by_rule(Rule; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +list_targets_by_rule(Rule; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "ListTargetsByRule", Dict{String,Any}("Rule" => Rule); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_targets_by_rule( Rule, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1360,14 +1298,12 @@ Sends custom events to Amazon EventBridge so that they can be matched to rules. with the event, and so on. """ -function put_events(Entries; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "PutEvents", - Dict{String,Any}("Entries" => Entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_events(Entries; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "PutEvents", + Dict{String,Any}("Entries" => Entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_events( Entries, params::AbstractDict{String}; @@ -1392,14 +1328,13 @@ Services customers do not use this operation. - `entries`: The list of events to write to the event bus. """ -function put_partner_events(Entries; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +put_partner_events(Entries; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "PutPartnerEvents", Dict{String,Any}("Entries" => Entries); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_partner_events( Entries, params::AbstractDict{String}; @@ -1459,11 +1394,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions to. If you later want to revoke the permission for this external account, specify this StatementId when you run RemovePermission. """ -function put_permission(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "PutPermission"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +put_permission(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "PutPermission"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function put_permission( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1531,14 +1464,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"State"`: Indicates whether the rule is enabled or disabled. - `"Tags"`: The list of key-value pairs to associate with the rule. """ -function put_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "PutRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "PutRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1619,14 +1550,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventBusName"`: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used. """ -function put_targets(Rule, Targets; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +put_targets(Rule, Targets; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "PutTargets", Dict{String,Any}("Rule" => Rule, "Targets" => Targets); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_targets( Rule, Targets, @@ -1662,11 +1592,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StatementId"`: The statement ID corresponding to the account that is no longer allowed to put events to the default event bus. """ -function remove_permission(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( - "RemovePermission"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +remove_permission(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_events( + "RemovePermission"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function remove_permission( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1699,14 +1627,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response. """ -function remove_targets(Ids, Rule; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +remove_targets(Ids, Rule; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "RemoveTargets", Dict{String,Any}("Ids" => Ids, "Rule" => Rule); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_targets( Ids, Rule, @@ -1750,27 +1677,25 @@ associated with the last event replayed. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description for the replay to start. """ -function start_replay( +start_replay( Destination, EventEndTime, EventSourceArn, EventStartTime, ReplayName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_events( + "StartReplay", + Dict{String,Any}( + "Destination" => Destination, + "EventEndTime" => EventEndTime, + "EventSourceArn" => EventSourceArn, + "EventStartTime" => EventStartTime, + "ReplayName" => ReplayName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_events( - "StartReplay", - Dict{String,Any}( - "Destination" => Destination, - "EventEndTime" => EventEndTime, - "EventSourceArn" => EventSourceArn, - "EventStartTime" => EventStartTime, - "ReplayName" => ReplayName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_replay( Destination, EventEndTime, @@ -1820,14 +1745,13 @@ many as 50 tags with a resource. - `tags`: The list of key-value pairs to associate with the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1866,16 +1790,14 @@ the event you want to match. in the Amazon EventBridge User Guide. """ -function test_event_pattern( +test_event_pattern( Event, EventPattern; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_events( + "TestEventPattern", + Dict{String,Any}("Event" => Event, "EventPattern" => EventPattern); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_events( - "TestEventPattern", - Dict{String,Any}("Event" => Event, "EventPattern" => EventPattern); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_event_pattern( Event, EventPattern, @@ -1908,16 +1830,13 @@ Removes one or more tags from the specified EventBridge resource. In Amazon Even - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_events( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1956,14 +1875,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InvocationRateLimitPerSecond"`: The maximum number of invocations per second to send to the API destination. """ -function update_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +update_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "UpdateApiDestination", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_api_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1990,14 +1908,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventPattern"`: The event pattern to use to filter events sent to the archive. - `"RetentionDays"`: The number of days to retain events in the archive. """ -function update_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +update_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "UpdateArchive", Dict{String,Any}("ArchiveName" => ArchiveName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_archive( ArchiveName, params::AbstractDict{String}; @@ -2028,14 +1945,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AuthorizationType"`: The type of authorization to use for the connection. - `"Description"`: A description for the connection. """ -function update_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_events( +update_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_events( "UpdateConnection", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/cloudwatch_logs.jl b/src/services/cloudwatch_logs.jl index c73fbf85c..ef8cb1409 100644 --- a/src/services/cloudwatch_logs.jl +++ b/src/services/cloudwatch_logs.jl @@ -58,14 +58,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation, you must specify either the resourceIdentifier parameter or the logGroup parameter, but you can't specify both. """ -function associate_kms_key(kmsKeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +associate_kms_key(kmsKeyId; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "AssociateKmsKey", Dict{String,Any}("kmsKeyId" => kmsKeyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_kms_key( kmsKeyId, params::AbstractDict{String}; @@ -91,14 +90,13 @@ Cancels the specified export task. The task must be in the PENDING or RUNNING st - `task_id`: The ID of the export task. """ -function cancel_export_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +cancel_export_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "CancelExportTask", Dict{String,Any}("taskId" => taskId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_export_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -139,24 +137,28 @@ can't update an existing delivery. You can only create and delete deliveries. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"fieldDelimiter"`: The field delimiter to use between record fields when the final + output format of a delivery is in Plain, W3C, or Raw format. +- `"recordFields"`: The list of record fields to be delivered to the destination, in order. + If the delivery’s log source has mandatory fields, they must be included in this list. +- `"s3DeliveryConfiguration"`: This structure contains parameters that are valid only when + the delivery’s delivery destination is an S3 bucket. - `"tags"`: An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources """ -function create_delivery( +create_delivery( deliveryDestinationArn, deliverySourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_logs( + "CreateDelivery", + Dict{String,Any}( + "deliveryDestinationArn" => deliveryDestinationArn, + "deliverySourceName" => deliverySourceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "CreateDelivery", - Dict{String,Any}( - "deliveryDestinationArn" => deliveryDestinationArn, - "deliverySourceName" => deliverySourceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_delivery( deliveryDestinationArn, deliverySourceName, @@ -219,21 +221,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys don't specify a value, no prefix filter is applied. - `"taskName"`: The name of the export task. """ -function create_export_task( +create_export_task( destination, from, logGroupName, to; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "CreateExportTask", + Dict{String,Any}( + "destination" => destination, + "from" => from, + "logGroupName" => logGroupName, + "to" => to, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "CreateExportTask", - Dict{String,Any}( - "destination" => destination, - "from" => from, - "logGroupName" => logGroupName, - "to" => to, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_export_task( destination, from, @@ -311,16 +311,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources """ -function create_log_anomaly_detector( +create_log_anomaly_detector( logGroupArnList; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "CreateLogAnomalyDetector", + Dict{String,Any}("logGroupArnList" => logGroupArnList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "CreateLogAnomalyDetector", - Dict{String,Any}("logGroupArnList" => logGroupArnList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_log_anomaly_detector( logGroupArnList, params::AbstractDict{String}; @@ -380,14 +378,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys about using tags to control access, see Controlling access to Amazon Web Services resources using tags. """ -function create_log_group(logGroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +create_log_group(logGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "CreateLogGroup", Dict{String,Any}("logGroupName" => logGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_log_group( logGroupName, params::AbstractDict{String}; @@ -420,16 +417,14 @@ and 512 characters long. Don't use ':' (colon) or '*' (asterisk) characters. - `log_stream_name`: The name of the log stream. """ -function create_log_stream( +create_log_stream( logGroupName, logStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "CreateLogStream", + Dict{String,Any}("logGroupName" => logGroupName, "logStreamName" => logStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "CreateLogStream", - Dict{String,Any}("logGroupName" => logGroupName, "logStreamName" => logStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_log_stream( logGroupName, logStreamName, @@ -469,16 +464,14 @@ logs:DeleteAccountPolicy permissions. - `policy_type`: The type of policy to delete. """ -function delete_account_policy( +delete_account_policy( policyName, policyType; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DeleteAccountPolicy", + Dict{String,Any}("policyName" => policyName, "policyType" => policyType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DeleteAccountPolicy", - Dict{String,Any}("policyName" => policyName, "policyType" => policyType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_account_policy( policyName, policyType, @@ -511,16 +504,14 @@ about data protection policies, see PutDataProtectionPolicy. protection policy for. """ -function delete_data_protection_policy( +delete_data_protection_policy( logGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DeleteDataProtectionPolicy", + Dict{String,Any}("logGroupIdentifier" => logGroupIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DeleteDataProtectionPolicy", - Dict{String,Any}("logGroupIdentifier" => logGroupIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_protection_policy( logGroupIdentifier, params::AbstractDict{String}; @@ -552,14 +543,12 @@ the delivery source. DescribeDeliveries operation. """ -function delete_delivery(id; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "DeleteDelivery", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_delivery(id; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_logs( + "DeleteDelivery", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_delivery( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -586,16 +575,13 @@ deliveryDestinationArn field in the results. of delivery destionation names by using the DescribeDeliveryDestinations operation. """ -function delete_delivery_destination( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +delete_delivery_destination(name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DeleteDeliveryDestination", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_delivery_destination( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -619,16 +605,14 @@ PutDeliveryDestinationPolicy. the policy for. """ -function delete_delivery_destination_policy( +delete_delivery_destination_policy( deliveryDestinationName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DeleteDeliveryDestinationPolicy", + Dict{String,Any}("deliveryDestinationName" => deliveryDestinationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DeleteDeliveryDestinationPolicy", - Dict{String,Any}("deliveryDestinationName" => deliveryDestinationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_delivery_destination_policy( deliveryDestinationName, params::AbstractDict{String}; @@ -662,14 +646,13 @@ field in the results. - `name`: The name of the delivery source that you want to delete. """ -function delete_delivery_source(name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +delete_delivery_source(name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DeleteDeliverySource", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_delivery_source( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -693,16 +676,13 @@ the destination. - `destination_name`: The name of the destination. """ -function delete_destination( - destinationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +delete_destination(destinationName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DeleteDestination", Dict{String,Any}("destinationName" => destinationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_destination( destinationName, params::AbstractDict{String}; @@ -731,16 +711,14 @@ Deletes the specified CloudWatch Logs anomaly detector. of log anomaly detectors in your account by using the ListLogAnomalyDetectors operation. """ -function delete_log_anomaly_detector( +delete_log_anomaly_detector( anomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DeleteLogAnomalyDetector", + Dict{String,Any}("anomalyDetectorArn" => anomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DeleteLogAnomalyDetector", - Dict{String,Any}("anomalyDetectorArn" => anomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_log_anomaly_detector( anomalyDetectorArn, params::AbstractDict{String}; @@ -769,14 +747,13 @@ associated with the log group. - `log_group_name`: The name of the log group. """ -function delete_log_group(logGroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +delete_log_group(logGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DeleteLogGroup", Dict{String,Any}("logGroupName" => logGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_log_group( logGroupName, params::AbstractDict{String}; @@ -804,16 +781,14 @@ associated with the log stream. - `log_stream_name`: The name of the log stream. """ -function delete_log_stream( +delete_log_stream( logGroupName, logStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DeleteLogStream", + Dict{String,Any}("logGroupName" => logGroupName, "logStreamName" => logStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DeleteLogStream", - Dict{String,Any}("logGroupName" => logGroupName, "logStreamName" => logStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_log_stream( logGroupName, logStreamName, @@ -847,16 +822,14 @@ Deletes the specified metric filter. - `log_group_name`: The name of the log group. """ -function delete_metric_filter( +delete_metric_filter( filterName, logGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DeleteMetricFilter", + Dict{String,Any}("filterName" => filterName, "logGroupName" => logGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DeleteMetricFilter", - Dict{String,Any}("filterName" => filterName, "logGroupName" => logGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_metric_filter( filterName, logGroupName, @@ -893,16 +866,14 @@ be able to perform this operation. use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions. """ -function delete_query_definition( +delete_query_definition( queryDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DeleteQueryDefinition", + Dict{String,Any}("queryDefinitionId" => queryDefinitionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DeleteQueryDefinition", - Dict{String,Any}("queryDefinitionId" => queryDefinitionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_query_definition( queryDefinitionId, params::AbstractDict{String}; @@ -931,11 +902,10 @@ that policy to put log events to this account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"policyName"`: The name of the policy to be revoked. This parameter is required. """ -function delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DeleteResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -958,16 +928,13 @@ groups without a retention policy. - `log_group_name`: The name of the log group. """ -function delete_retention_policy( - logGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +delete_retention_policy(logGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DeleteRetentionPolicy", Dict{String,Any}("logGroupName" => logGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_retention_policy( logGroupName, params::AbstractDict{String}; @@ -994,16 +961,14 @@ Deletes the specified subscription filter. - `log_group_name`: The name of the log group. """ -function delete_subscription_filter( +delete_subscription_filter( filterName, logGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DeleteSubscriptionFilter", + Dict{String,Any}("filterName" => filterName, "logGroupName" => logGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DeleteSubscriptionFilter", - Dict{String,Any}("filterName" => filterName, "logGroupName" => logGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_subscription_filter( filterName, logGroupName, @@ -1046,16 +1011,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"policyName"`: Use this parameter to limit the returned policies to only the policy with the name that you specify. """ -function describe_account_policies( - policyType; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +describe_account_policies(policyType; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeAccountPolicies", Dict{String,Any}("policyType" => policyType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_account_policies( policyType, params::AbstractDict{String}; @@ -1071,6 +1033,46 @@ function describe_account_policies( ) end +""" + describe_configuration_templates() + describe_configuration_templates(params::Dict{String,<:Any}) + +Use this operation to return the valid and default values that are used when creating +delivery sources, delivery destinations, and deliveries. For more information about +deliveries, see CreateDelivery. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"deliveryDestinationTypes"`: Use this parameter to filter the response to include only + the configuration templates that apply to the delivery destination types that you specify + here. +- `"limit"`: Use this parameter to limit the number of configuration templates that are + returned in the response. +- `"logTypes"`: Use this parameter to filter the response to include only the configuration + templates that apply to the log types that you specify here. +- `"nextToken"`: +- `"resourceTypes"`: Use this parameter to filter the response to include only the + configuration templates that apply to the resource types that you specify here. +- `"service"`: Use this parameter to filter the response to include only the configuration + templates that apply to the Amazon Web Services service that you specify here. +""" +describe_configuration_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( + "DescribeConfigurationTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function describe_configuration_templates( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return cloudwatch_logs( + "DescribeConfigurationTemplates", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ describe_deliveries() describe_deliveries(params::Dict{String,<:Any}) @@ -1087,11 +1089,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"limit"`: Optionally specify the maximum number of deliveries to return in the response. - `"nextToken"`: """ -function describe_deliveries(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "DescribeDeliveries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_deliveries(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_logs( + "DescribeDeliveries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_deliveries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1112,15 +1112,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response. - `"nextToken"`: """ -function describe_delivery_destinations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +describe_delivery_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeDeliveryDestinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_delivery_destinations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1144,11 +1141,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. - `"nextToken"`: """ -function describe_delivery_sources(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +describe_delivery_sources(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeDeliverySources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_delivery_sources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1175,11 +1171,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +describe_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeDestinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_destinations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1209,11 +1204,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"taskId"`: The ID of the export task. Specifying a task ID filters the results to one or zero export tasks. """ -function describe_export_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +describe_export_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeExportTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_export_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1267,11 +1261,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_log_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "DescribeLogGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_log_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_logs( + "DescribeLogGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_log_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1317,11 +1309,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer. """ -function describe_log_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +describe_log_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeLogStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_log_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1353,11 +1344,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_metric_filters(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +describe_metric_filters(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeMetricFilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_metric_filters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1385,11 +1375,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Limits the returned queries to only those that have the specified status. Valid values are Cancelled, Complete, Failed, Running, and Scheduled. """ -function describe_queries(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "DescribeQueries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_queries(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_logs( + "DescribeQueries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_queries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1415,11 +1403,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"queryDefinitionNamePrefix"`: Use this parameter to filter your results to only the query definitions that have names that start with the prefix you specify. """ -function describe_query_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +describe_query_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeQueryDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_query_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1443,11 +1430,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys API. - `"nextToken"`: """ -function describe_resource_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +describe_resource_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DescribeResourcePolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_resource_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1479,16 +1465,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_subscription_filters( +describe_subscription_filters( logGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "DescribeSubscriptionFilters", + Dict{String,Any}("logGroupName" => logGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "DescribeSubscriptionFilters", - Dict{String,Any}("logGroupName" => logGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_subscription_filters( logGroupName, params::AbstractDict{String}; @@ -1542,11 +1526,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must specify either the resourceIdentifier parameter or the logGroup parameter, but you can't specify both. """ -function disassociate_kms_key(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +disassociate_kms_key(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "DisassociateKmsKey"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function disassociate_kms_key( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1595,10 +1578,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys logGroupIdentifier or logGroupName, but not both. - `"logStreamNamePrefix"`: Filters the results to include only events from log streams that have names starting with this prefix. If you specify a value for both logStreamNamePrefix - and logStreamNames, but the value for logStreamNamePrefix does not match any log stream - names specified in logStreamNames, the action returns an InvalidParameterException error. + and logStreamNames, the action returns an InvalidParameterException error. - `"logStreamNames"`: Filters the results to only logs from the log streams in this list. - If you specify a value for both logStreamNamePrefix and logStreamNames, the action returns + If you specify a value for both logStreamNames and logStreamNamePrefix, the action returns an InvalidParameterException error. - `"nextToken"`: The token for the next set of events to return. (You received this token from a previous call.) @@ -1608,11 +1590,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and visible. The default is false. To use this operation with this parameter, you must be signed into an account with the logs:Unmask permission. """ -function filter_log_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "FilterLogEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +filter_log_events(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_logs( + "FilterLogEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function filter_log_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1632,16 +1612,14 @@ Returns information about a log group data protection policy. protection policy that you want to see. """ -function get_data_protection_policy( +get_data_protection_policy( logGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "GetDataProtectionPolicy", + Dict{String,Any}("logGroupIdentifier" => logGroupIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "GetDataProtectionPolicy", - Dict{String,Any}("logGroupIdentifier" => logGroupIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_protection_policy( logGroupIdentifier, params::AbstractDict{String}; @@ -1675,14 +1653,12 @@ can find the IDs of the deliveries in your account with the DescribeDeliveries o - `id`: The ID of the delivery that you want to retrieve. """ -function get_delivery(id; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "GetDelivery", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_delivery(id; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_logs( + "GetDelivery", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_delivery( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1704,14 +1680,13 @@ Retrieves complete information about one delivery destination. - `name`: The name of the delivery destination that you want to retrieve. """ -function get_delivery_destination(name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +get_delivery_destination(name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "GetDeliveryDestination", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_delivery_destination( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1736,16 +1711,14 @@ PutDeliveryDestinationPolicy. retrieve the policy of. """ -function get_delivery_destination_policy( +get_delivery_destination_policy( deliveryDestinationName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "GetDeliveryDestinationPolicy", + Dict{String,Any}("deliveryDestinationName" => deliveryDestinationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "GetDeliveryDestinationPolicy", - Dict{String,Any}("deliveryDestinationName" => deliveryDestinationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_delivery_destination_policy( deliveryDestinationName, params::AbstractDict{String}; @@ -1775,14 +1748,13 @@ Retrieves complete information about one delivery source. - `name`: The name of the delivery source that you want to retrieve. """ -function get_delivery_source(name; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +get_delivery_source(name; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "GetDeliverySource", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_delivery_source( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1806,16 +1778,14 @@ Retrieves information about the log anomaly detector that you specify. ListLogAnomalyDetectors operation. """ -function get_log_anomaly_detector( +get_log_anomaly_detector( anomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "GetLogAnomalyDetector", + Dict{String,Any}("anomalyDetectorArn" => anomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "GetLogAnomalyDetector", - Dict{String,Any}("anomalyDetectorArn" => anomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_log_anomaly_detector( anomalyDetectorArn, params::AbstractDict{String}; @@ -1877,14 +1847,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and visible. The default is false. To use this operation with this parameter, you must be signed into an account with the logs:Unmask permission. """ -function get_log_events(logStreamName; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +get_log_events(logStreamName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "GetLogEvents", Dict{String,Any}("logStreamName" => logStreamName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_log_events( logStreamName, params::AbstractDict{String}; @@ -1928,11 +1897,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys minutes up to the current time are searched. The time value is specified as epoch time, which is the number of seconds since January 1, 1970, 00:00:00 UTC. """ -function get_log_group_fields(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +get_log_group_fields(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "GetLogGroupFields"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_log_group_fields( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1962,16 +1930,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and visible. The default is false. To use this operation with this parameter, you must be signed into an account with the logs:Unmask permission. """ -function get_log_record( - logRecordPointer; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +get_log_record(logRecordPointer; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "GetLogRecord", Dict{String,Any}("logRecordPointer" => logRecordPointer); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_log_record( logRecordPointer, params::AbstractDict{String}; @@ -2008,14 +1973,13 @@ linked source accounts. For more information, see CloudWatch cross-account obser - `query_id`: The ID number of the query. """ -function get_query_results(queryId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +get_query_results(queryId; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "GetQueryResults", Dict{String,Any}("queryId" => queryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_query_results( queryId, params::AbstractDict{String}; @@ -2046,11 +2010,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"suppressionState"`: You can specify this parameter if you want to the operation to return only anomalies that are currently either suppressed or unsuppressed. """ -function list_anomalies(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "ListAnomalies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_anomalies(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs("ListAnomalies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_anomalies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2073,11 +2034,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default maximum value of 50 items is used. - `"nextToken"`: """ -function list_log_anomaly_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +list_log_anomaly_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "ListLogAnomalyDetectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_log_anomaly_detectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2103,16 +2063,13 @@ destinations support tagging. information about ARN format, see CloudWatch Logs resources and operations. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2139,16 +2096,13 @@ ListTagsForResource instead. Lists the tags for the specified log group. - `log_group_name`: The name of the log group. """ -function list_tags_log_group( - logGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +list_tags_log_group(logGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "ListTagsLogGroup", Dict{String,Any}("logGroupName" => logGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_log_group( logGroupName, params::AbstractDict{String}; @@ -2203,10 +2157,10 @@ account as the subscription policy, for same-account delivery. A Lambda functi same account as the subscription policy, for same-account delivery. A logical destination in a different account created with PutDestination, for cross-account delivery. Kinesis Data Streams and Firehose are supported as logical destinations. Each account can have -one account-level subscription filter policy. If you are updating an existing filter, you -must specify the correct name in PolicyName. To perform a PutAccountPolicy subscription -filter operation for any destination except a Lambda function, you must also have the -iam:PassRole permission. +one account-level subscription filter policy per Region. If you are updating an existing +filter, you must specify the correct name in PolicyName. To perform a PutAccountPolicy +subscription filter operation for any destination except a Lambda function, you must also +have the iam:PassRole permission. # Arguments - `policy_document`: Specify the policy, in JSON. Data protection policy A data @@ -2239,7 +2193,7 @@ iam:PassRole permission. grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery. FilterPattern A filter pattern for subscribing to a filtered - stream of log events. DistributionThe method used to distribute log data to the + stream of log events. Distribution The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to Random for a more even distribution. This property is only applicable when the destination is an Kinesis Data Streams data stream. @@ -2258,23 +2212,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys help prevent infinite loops. For more information, see Log recursion prevention. Specifing selectionCriteria is valid only when you specify SUBSCRIPTION_FILTER_POLICY for policyType. """ -function put_account_policy( +put_account_policy( policyDocument, policyName, policyType; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_logs( + "PutAccountPolicy", + Dict{String,Any}( + "policyDocument" => policyDocument, + "policyName" => policyName, + "policyType" => policyType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutAccountPolicy", - Dict{String,Any}( - "policyDocument" => policyDocument, - "policyName" => policyName, - "policyType" => policyType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_policy( policyDocument, policyName, @@ -2344,18 +2296,16 @@ term specified in either policy is masked. specified in policyDocument can be up to 30,720 characters. """ -function put_data_protection_policy( +put_data_protection_policy( logGroupIdentifier, policyDocument; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "PutDataProtectionPolicy", + Dict{String,Any}( + "logGroupIdentifier" => logGroupIdentifier, "policyDocument" => policyDocument + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutDataProtectionPolicy", - Dict{String,Any}( - "logGroupIdentifier" => logGroupIdentifier, "policyDocument" => policyDocument - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_data_protection_policy( logGroupIdentifier, policyDocument, @@ -2415,21 +2365,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources """ -function put_delivery_destination( +put_delivery_destination( deliveryDestinationConfiguration, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_logs( + "PutDeliveryDestination", + Dict{String,Any}( + "deliveryDestinationConfiguration" => deliveryDestinationConfiguration, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutDeliveryDestination", - Dict{String,Any}( - "deliveryDestinationConfiguration" => deliveryDestinationConfiguration, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_delivery_destination( deliveryDestinationConfiguration, name, @@ -2479,21 +2427,19 @@ other allows delivery to the chosen destination. See the examples for the needed - `delivery_destination_policy`: The contents of the policy. """ -function put_delivery_destination_policy( +put_delivery_destination_policy( deliveryDestinationName, deliveryDestinationPolicy; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_logs( + "PutDeliveryDestinationPolicy", + Dict{String,Any}( + "deliveryDestinationName" => deliveryDestinationName, + "deliveryDestinationPolicy" => deliveryDestinationPolicy, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutDeliveryDestinationPolicy", - Dict{String,Any}( - "deliveryDestinationName" => deliveryDestinationName, - "deliveryDestinationPolicy" => deliveryDestinationPolicy, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_delivery_destination_policy( deliveryDestinationName, deliveryDestinationPolicy, @@ -2543,11 +2489,11 @@ delivery source, all the current delivery source parameters are overwritten with parameter values that you specify. # Arguments -- `log_type`: Defines the type of log that the source is sending. For Amazon - CodeWhisperer, the valid value is EVENT_LOGS. For IAM Identity Centerr, the valid value - is ERROR_LOGS. For Amazon WorkMail, the valid values are ACCESS_CONTROL_LOGS, - AUTHENTICATION_LOGS, WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and WORKMAIL_MAILBOX_ACCESS_LOGS. - +- `log_type`: Defines the type of log that the source is sending. For Amazon Bedrock, the + valid value is APPLICATION_LOGS. For Amazon CodeWhisperer, the valid value is EVENT_LOGS. + For IAM Identity Center, the valid value is ERROR_LOGS. For Amazon WorkMail, the valid + values are ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, WORKMAIL_AVAILABILITY_PROVIDER_LOGS, + and WORKMAIL_MAILBOX_ACCESS_LOGS. - `name`: A name for this delivery source. This name must be unique for all delivery sources in your account. - `resource_arn`: The ARN of the Amazon Web Services resource that is generating and @@ -2559,18 +2505,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources """ -function put_delivery_source( +put_delivery_source( logType, name, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "PutDeliverySource", + Dict{String,Any}("logType" => logType, "name" => name, "resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutDeliverySource", - Dict{String,Any}( - "logType" => logType, "name" => name, "resourceArn" => resourceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_delivery_source( logType, name, @@ -2619,20 +2561,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources """ -function put_destination( +put_destination( destinationName, roleArn, targetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "PutDestination", + Dict{String,Any}( + "destinationName" => destinationName, + "roleArn" => roleArn, + "targetArn" => targetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutDestination", - Dict{String,Any}( - "destinationName" => destinationName, - "roleArn" => roleArn, - "targetArn" => targetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_destination( destinationName, roleArn, @@ -2682,18 +2622,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Updating an existing cross-account subscription If you omit this parameter, the default of false is used. """ -function put_destination_policy( +put_destination_policy( accessPolicy, destinationName; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "PutDestinationPolicy", + Dict{String,Any}("accessPolicy" => accessPolicy, "destinationName" => destinationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutDestinationPolicy", - Dict{String,Any}( - "accessPolicy" => accessPolicy, "destinationName" => destinationName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_destination_policy( accessPolicy, destinationName, @@ -2749,28 +2685,27 @@ access key ID or secret key. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"entity"`: Reserved for internal use. - `"sequenceToken"`: The sequence token obtained from the response of the previous PutLogEvents call. The sequenceToken parameter is now ignored in PutLogEvents actions. PutLogEvents actions are now accepted and never return InvalidSequenceTokenException or DataAlreadyAcceptedException even if the sequence token is not valid. """ -function put_log_events( +put_log_events( logEvents, logGroupName, logStreamName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_logs( + "PutLogEvents", + Dict{String,Any}( + "logEvents" => logEvents, + "logGroupName" => logGroupName, + "logStreamName" => logStreamName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutLogEvents", - Dict{String,Any}( - "logEvents" => logEvents, - "logGroupName" => logGroupName, - "logStreamName" => logStreamName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_log_events( logEvents, logGroupName, @@ -2803,16 +2738,20 @@ end Creates or updates a metric filter and associates it with the specified log group. With metric filters, you can configure rules to extract metric data from log events ingested through PutLogEvents. The maximum number of metric filters that can be associated with a -log group is 100. When you create a metric filter, you can also optionally assign a unit -and dimensions to the metric that is created. Metrics extracted from log events are -charged as custom metrics. To prevent unexpected high charges, do not specify -high-cardinality fields such as IPAddress or requestID as dimensions. Each different value -found for a dimension is treated as a separate metric and accrues charges as a separate -custom metric. CloudWatch Logs might disable a metric filter if it generates 1,000 -different name/value pairs for your specified dimensions within one hour. You can also set -up a billing alarm to alert you if your charges are higher than expected. For more -information, see Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services -Charges. +log group is 100. Using regular expressions to create metric filters is supported. For +these filters, there is a quotas of quota of two regular expression patterns within a +single filter pattern. There is also a quota of five regular expression patterns per log +group. For more information about using regular expressions in metric filters, see Filter +pattern syntax for metric filters, subscription filters, filter log events, and Live Tail. +When you create a metric filter, you can also optionally assign a unit and dimensions to +the metric that is created. Metrics extracted from log events are charged as custom +metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as +IPAddress or requestID as dimensions. Each different value found for a dimension is treated +as a separate metric and accrues charges as a separate custom metric. CloudWatch Logs +might disable a metric filter if it generates 1,000 different name/value pairs for your +specified dimensions within one hour. You can also set up a billing alarm to alert you if +your charges are higher than expected. For more information, see Creating a Billing Alarm +to Monitor Your Estimated Amazon Web Services Charges. # Arguments - `filter_name`: A name for the metric filter. @@ -2822,25 +2761,23 @@ Charges. emitted. """ -function put_metric_filter( +put_metric_filter( filterName, filterPattern, logGroupName, metricTransformations; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_logs( + "PutMetricFilter", + Dict{String,Any}( + "filterName" => filterName, + "filterPattern" => filterPattern, + "logGroupName" => logGroupName, + "metricTransformations" => metricTransformations, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutMetricFilter", - Dict{String,Any}( - "filterName" => filterName, - "filterPattern" => filterPattern, - "logGroupName" => logGroupName, - "metricTransformations" => metricTransformations, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_metric_filter( filterName, filterPattern, @@ -2902,18 +2839,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation. """ -function put_query_definition( +put_query_definition( name, queryString; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "PutQueryDefinition", + Dict{String,Any}( + "name" => name, "queryString" => queryString, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutQueryDefinition", - Dict{String,Any}( - "name" => name, "queryString" => queryString, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_query_definition( name, queryString, @@ -2964,11 +2899,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"myAwsAccountId\" } } } ] } - `"policyName"`: Name of the new policy. This parameter is required. """ -function put_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "PutResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +put_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_logs( + "PutResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function put_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3002,18 +2935,14 @@ value to see how many bytes a log group is storing. - `retention_in_days`: """ -function put_retention_policy( +put_retention_policy( logGroupName, retentionInDays; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "PutRetentionPolicy", + Dict{String,Any}("logGroupName" => logGroupName, "retentionInDays" => retentionInDays); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutRetentionPolicy", - Dict{String,Any}( - "logGroupName" => logGroupName, "retentionInDays" => retentionInDays - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_retention_policy( logGroupName, retentionInDays, @@ -3052,9 +2981,14 @@ logical destinations. An Amazon Kinesis Data Firehose delivery stream that bel same account as the subscription filter, for same-account delivery. An Lambda function that belongs to the same account as the subscription filter, for same-account delivery. Each log group can have up to two subscription filters associated with it. If you are -updating an existing filter, you must specify the correct name in filterName. To perform a -PutSubscriptionFilter operation for any destination except a Lambda function, you must also -have the iam:PassRole permission. +updating an existing filter, you must specify the correct name in filterName. Using +regular expressions to create subscription filters is supported. For these filters, there +is a quotas of quota of two regular expression patterns within a single filter pattern. +There is also a quota of five regular expression patterns per log group. For more +information about using regular expressions in subscription filters, see Filter pattern +syntax for metric filters, subscription filters, filter log events, and Live Tail. To +perform a PutSubscriptionFilter operation for any destination except a Lambda function, you +must also have the iam:PassRole permission. # Arguments - `destination_arn`: The ARN of the destination to deliver matching log events to. @@ -3083,25 +3017,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery. """ -function put_subscription_filter( +put_subscription_filter( destinationArn, filterName, filterPattern, logGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cloudwatch_logs( + "PutSubscriptionFilter", + Dict{String,Any}( + "destinationArn" => destinationArn, + "filterName" => filterName, + "filterPattern" => filterPattern, + "logGroupName" => logGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "PutSubscriptionFilter", - Dict{String,Any}( - "destinationArn" => destinationArn, - "filterName" => filterName, - "filterPattern" => filterPattern, - "logGroupName" => logGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_subscription_filter( destinationArn, filterName, @@ -3177,16 +3109,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys field, you can't also specify the logStreamNamePrefixes field. You can specify this parameter only if you specify only one log group in logGroupIdentifiers. """ -function start_live_tail( - logGroupIdentifiers; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +start_live_tail(logGroupIdentifiers; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "StartLiveTail", Dict{String,Any}("logGroupIdentifiers" => logGroupIdentifiers); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_live_tail( logGroupIdentifiers, params::AbstractDict{String}; @@ -3255,18 +3184,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys groups. A StartQuery operation must include exactly one of the following parameters: logGroupName, logGroupNames, or logGroupIdentifiers. """ -function start_query( +start_query( endTime, queryString, startTime; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "StartQuery", + Dict{String,Any}( + "endTime" => endTime, "queryString" => queryString, "startTime" => startTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "StartQuery", - Dict{String,Any}( - "endTime" => endTime, "queryString" => queryString, "startTime" => startTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_query( endTime, queryString, @@ -3304,14 +3231,12 @@ the operation returns an error indicating that the specified query is not runnin DescribeQueries. """ -function stop_query(queryId; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( - "StopQuery", - Dict{String,Any}("queryId" => queryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_query(queryId; aws_config::AbstractAWSConfig=current_aws_config()) = cloudwatch_logs( + "StopQuery", + Dict{String,Any}("queryId" => queryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_query( queryId, params::AbstractDict{String}; @@ -3343,16 +3268,13 @@ Controlling access to Amazon Web Services resources using tags. - `tags`: The key-value pairs to use for the tags. """ -function tag_log_group( - logGroupName, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +tag_log_group(logGroupName, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "TagLogGroup", Dict{String,Any}("logGroupName" => logGroupName, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_log_group( logGroupName, tags, @@ -3397,14 +3319,13 @@ Logs resource. - `tags`: The list of key-value pairs to associate with the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cloudwatch_logs( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -3437,18 +3358,16 @@ use this operation to validate the correctness of a metric filter pattern. - `log_event_messages`: The log event messages to test. """ -function test_metric_filter( +test_metric_filter( filterPattern, logEventMessages; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "TestMetricFilter", + Dict{String,Any}( + "filterPattern" => filterPattern, "logEventMessages" => logEventMessages + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "TestMetricFilter", - Dict{String,Any}( - "filterPattern" => filterPattern, "logEventMessages" => logEventMessages - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_metric_filter( filterPattern, logEventMessages, @@ -3486,16 +3405,13 @@ groups using the aws:Resource/key-name or aws:TagKeys condition keys. - `tags`: The tag keys. The corresponding tags are removed from the log group. """ -function untag_log_group( - logGroupName, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +untag_log_group(logGroupName, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "UntagLogGroup", Dict{String,Any}("logGroupName" => logGroupName, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_log_group( logGroupName, tags, @@ -3531,16 +3447,13 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -3590,16 +3503,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored. """ -function update_anomaly( - anomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cloudwatch_logs( +update_anomaly(anomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( "UpdateAnomaly", Dict{String,Any}("anomalyDetectorArn" => anomalyDetectorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_anomaly( anomalyDetectorArn, params::AbstractDict{String}; @@ -3617,6 +3527,44 @@ function update_anomaly( ) end +""" + update_delivery_configuration(id) + update_delivery_configuration(id, params::Dict{String,<:Any}) + +Use this operation to update the configuration of a delivery to change either the S3 path +pattern or the format of the delivered logs. You can't use this operation to change the +source or destination of the delivery. + +# Arguments +- `id`: The ID of the delivery to be updated by this request. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"fieldDelimiter"`: The field delimiter to use between record fields when the final + output format of a delivery is in Plain, W3C, or Raw format. +- `"recordFields"`: The list of record fields to be delivered to the destination, in order. + If the delivery’s log source has mandatory fields, they must be included in this list. +- `"s3DeliveryConfiguration"`: This structure contains parameters that are valid only when + the delivery’s delivery destination is an S3 bucket. +""" +update_delivery_configuration(id; aws_config::AbstractAWSConfig=current_aws_config()) = + cloudwatch_logs( + "UpdateDeliveryConfiguration", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function update_delivery_configuration( + id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return cloudwatch_logs( + "UpdateDeliveryConfiguration", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("id" => id), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ update_log_anomaly_detector(anomaly_detector_arn, enabled) update_log_anomaly_detector(anomaly_detector_arn, enabled, params::Dict{String,<:Any}) @@ -3640,16 +3588,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys evaluationFrequency to FIFTEEN_MIN might be appropriate. - `"filterPattern"`: """ -function update_log_anomaly_detector( +update_log_anomaly_detector( anomalyDetectorArn, enabled; aws_config::AbstractAWSConfig=current_aws_config() +) = cloudwatch_logs( + "UpdateLogAnomalyDetector", + Dict{String,Any}("anomalyDetectorArn" => anomalyDetectorArn, "enabled" => enabled); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cloudwatch_logs( - "UpdateLogAnomalyDetector", - Dict{String,Any}("anomalyDetectorArn" => anomalyDetectorArn, "enabled" => enabled); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_log_anomaly_detector( anomalyDetectorArn, enabled, diff --git a/src/services/codeartifact.jl b/src/services/codeartifact.jl index c29818d68..88c9c831f 100644 --- a/src/services/codeartifact.jl +++ b/src/services/codeartifact.jl @@ -29,24 +29,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function associate_external_connection( +associate_external_connection( domain, external_connection, repository; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/repository/external-connection", + Dict{String,Any}( + "domain" => domain, + "external-connection" => external_connection, + "repository" => repository, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/repository/external-connection", - Dict{String,Any}( - "domain" => domain, - "external-connection" => external_connection, - "repository" => repository, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_external_connection( domain, external_connection, @@ -114,28 +112,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versions"`: The versions of the package to be copied. You must specify versions or versionRevisions. You cannot specify both. """ -function copy_package_versions( +copy_package_versions( destination_repository, domain, format, package, source_repository; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/package/versions/copy", + Dict{String,Any}( + "destination-repository" => destination_repository, + "domain" => domain, + "format" => format, + "package" => package, + "source-repository" => source_repository, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package/versions/copy", - Dict{String,Any}( - "destination-repository" => destination_repository, - "domain" => domain, - "format" => format, - "package" => package, - "source-repository" => source_repository, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_package_versions( destination_repository, domain, @@ -197,15 +193,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Service Developer Guide. - `"tags"`: One or more tag key-value pairs for the domain. """ -function create_domain(domain; aws_config::AbstractAWSConfig=current_aws_config()) - return codeartifact( - "POST", - "/v1/domain", - Dict{String,Any}("domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_domain(domain; aws_config::AbstractAWSConfig=current_aws_config()) = codeartifact( + "POST", + "/v1/domain", + Dict{String,Any}("domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_domain( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -238,17 +232,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys owns the domain. It does not include dashes or spaces. - `"tags"`: One or more tag key-value pairs for the package group. """ -function create_package_group( +create_package_group( domain, packageGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "POST", + "/v1/package-group", + Dict{String,Any}("domain" => domain, "packageGroup" => packageGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package-group", - Dict{String,Any}("domain" => domain, "packageGroup" => packageGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_package_group( domain, packageGroup, @@ -291,17 +283,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories. """ -function create_repository( - domain, repository; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeartifact( +create_repository(domain, repository; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "POST", "/v1/repository", Dict{String,Any}("domain" => domain, "repository" => repository); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_repository( domain, repository, @@ -338,15 +327,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function delete_domain(domain; aws_config::AbstractAWSConfig=current_aws_config()) - return codeartifact( - "DELETE", - "/v1/domain", - Dict{String,Any}("domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_domain(domain; aws_config::AbstractAWSConfig=current_aws_config()) = codeartifact( + "DELETE", + "/v1/domain", + Dict{String,Any}("domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_domain( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -376,17 +363,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy. """ -function delete_domain_permissions_policy( +delete_domain_permissions_policy( domain; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "DELETE", + "/v1/domain/permissions/policy", + Dict{String,Any}("domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "DELETE", - "/v1/domain/permissions/policy", - Dict{String,Any}("domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_domain_permissions_policy( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -424,22 +409,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. """ -function delete_package( +delete_package( domain, format, package, repository; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "DELETE", + "/v1/package", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "DELETE", - "/v1/package", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_package( domain, format, @@ -487,17 +470,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function delete_package_group( +delete_package_group( domain, package_group; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "DELETE", + "/v1/package-group", + Dict{String,Any}("domain" => domain, "package-group" => package_group); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "DELETE", - "/v1/package-group", - Dict{String,Any}("domain" => domain, "package-group" => package_group); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_package_group( domain, package_group, @@ -549,28 +530,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. """ -function delete_package_versions( +delete_package_versions( domain, format, package, repository, versions; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/package/versions/delete", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "versions" => versions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package/versions/delete", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "versions" => versions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_package_versions( domain, format, @@ -616,17 +595,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function delete_repository( - domain, repository; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeartifact( +delete_repository(domain, repository; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "DELETE", "/v1/repository", Dict{String,Any}("domain" => domain, "repository" => repository); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_repository( domain, repository, @@ -673,17 +649,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This revision is used for optimistic locking, which prevents others from accidentally overwriting your changes to the repository's resource policy. """ -function delete_repository_permissions_policy( +delete_repository_permissions_policy( domain, repository; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "DELETE", + "/v1/repository/permissions/policies", + Dict{String,Any}("domain" => domain, "repository" => repository); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "DELETE", - "/v1/repository/permissions/policies", - Dict{String,Any}("domain" => domain, "repository" => repository); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_repository_permissions_policy( domain, repository, @@ -719,15 +693,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function describe_domain(domain; aws_config::AbstractAWSConfig=current_aws_config()) - return codeartifact( - "GET", - "/v1/domain", - Dict{String,Any}("domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_domain(domain; aws_config::AbstractAWSConfig=current_aws_config()) = codeartifact( + "GET", + "/v1/domain", + Dict{String,Any}("domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_domain( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -764,22 +736,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. """ -function describe_package( +describe_package( domain, format, package, repository; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "GET", + "/v1/package", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/package", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_package( domain, format, @@ -824,17 +794,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function describe_package_group( +describe_package_group( domain, package_group; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "GET", + "/v1/package-group", + Dict{String,Any}("domain" => domain, "package-group" => package_group); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/package-group", - Dict{String,Any}("domain" => domain, "package-group" => package_group); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_package_group( domain, package_group, @@ -883,28 +851,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. """ -function describe_package_version( +describe_package_version( domain, format, package, repository, version; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "GET", + "/v1/package/version", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/package/version", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_package_version( domain, format, @@ -951,17 +917,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function describe_repository( +describe_repository( domain, repository; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "GET", + "/v1/repository", + Dict{String,Any}("domain" => domain, "repository" => repository); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/repository", - Dict{String,Any}("domain" => domain, "repository" => repository); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_repository( domain, repository, @@ -1002,24 +966,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function disassociate_external_connection( +disassociate_external_connection( domain, external_connection, repository; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "DELETE", + "/v1/repository/external-connection", + Dict{String,Any}( + "domain" => domain, + "external-connection" => external_connection, + "repository" => repository, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "DELETE", - "/v1/repository/external-connection", - Dict{String,Any}( - "domain" => domain, - "external-connection" => external_connection, - "repository" => repository, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_external_connection( domain, external_connection, @@ -1078,28 +1040,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys corresponding component, package versions of those formats do not have a namespace. - `"versionRevisions"`: The revisions of the package versions you want to dispose. """ -function dispose_package_versions( +dispose_package_versions( domain, format, package, repository, versions; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/package/versions/dispose", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "versions" => versions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package/versions/dispose", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "versions" => versions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function dispose_package_versions( domain, format, @@ -1161,17 +1121,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys versions do not contain a corresponding component, package versions of those formats do not have a namespace. """ -function get_associated_package_group( +get_associated_package_group( domain, format, package; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "GET", + "/v1/get-associated-package-group", + Dict{String,Any}("domain" => domain, "format" => format, "package" => package); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/get-associated-package-group", - Dict{String,Any}("domain" => domain, "format" => format, "package" => package); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_associated_package_group( domain, format, @@ -1227,15 +1185,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 0 will set the expiration of the authorization token to the same expiration of the user's role's temporary credentials. """ -function get_authorization_token(domain; aws_config::AbstractAWSConfig=current_aws_config()) - return codeartifact( +get_authorization_token(domain; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "POST", "/v1/authorization-token", Dict{String,Any}("domain" => domain); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_authorization_token( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1264,17 +1221,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function get_domain_permissions_policy( - domain; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeartifact( +get_domain_permissions_policy(domain; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "GET", "/v1/domain/permissions/policy", Dict{String,Any}("domain" => domain); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_domain_permissions_policy( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1320,7 +1274,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"revision"`: The name of the package version revision that contains the requested asset. """ -function get_package_version_asset( +get_package_version_asset( asset, domain, format, @@ -1328,22 +1282,20 @@ function get_package_version_asset( repository, version; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "GET", + "/v1/package/version/asset", + Dict{String,Any}( + "asset" => asset, + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/package/version/asset", - Dict{String,Any}( - "asset" => asset, - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_package_version_asset( asset, domain, @@ -1406,28 +1358,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys versions do not contain a corresponding component, package versions of those formats do not have a namespace. """ -function get_package_version_readme( +get_package_version_readme( domain, format, package, repository, version; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "GET", + "/v1/package/version/readme", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/package/version/readme", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_package_version_readme( domain, format, @@ -1477,19 +1427,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces. """ -function get_repository_endpoint( +get_repository_endpoint( domain, format, repository; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "GET", + "/v1/repository/endpoint", + Dict{String,Any}("domain" => domain, "format" => format, "repository" => repository); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/repository/endpoint", - Dict{String,Any}( - "domain" => domain, "format" => format, "repository" => repository - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_repository_endpoint( domain, format, @@ -1531,17 +1477,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function get_repository_permissions_policy( +get_repository_permissions_policy( domain, repository; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "GET", + "/v1/repository/permissions/policy", + Dict{String,Any}("domain" => domain, "repository" => repository); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/repository/permissions/policy", - Dict{String,Any}("domain" => domain, "repository" => repository); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_repository_permissions_policy( domain, repository, @@ -1586,24 +1530,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_allowed_repositories_for_group( +list_allowed_repositories_for_group( domain, originRestrictionType, package_group; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "GET", + "/v1/package-group-allowed-repositories", + Dict{String,Any}( + "domain" => domain, + "originRestrictionType" => originRestrictionType, + "package-group" => package_group, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/package-group-allowed-repositories", - Dict{String,Any}( - "domain" => domain, - "originRestrictionType" => originRestrictionType, - "package-group" => package_group, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_allowed_repositories_for_group( domain, originRestrictionType, @@ -1654,17 +1596,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"preview"`: When this flag is included, ListAssociatedPackages will return a list of packages that would be associated with a package group, even if it does not exist. """ -function list_associated_packages( +list_associated_packages( domain, package_group; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "GET", + "/v1/list-associated-packages", + Dict{String,Any}("domain" => domain, "package-group" => package_group); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "GET", - "/v1/list-associated-packages", - Dict{String,Any}("domain" => domain, "package-group" => package_group); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_associated_packages( domain, package_group, @@ -1700,11 +1640,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeartifact( - "POST", "/v1/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = codeartifact( + "POST", "/v1/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1736,15 +1674,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"prefix"`: A prefix for which to search package groups. When included, ListPackageGroups will return only package groups with patterns that match the prefix. """ -function list_package_groups(domain; aws_config::AbstractAWSConfig=current_aws_config()) - return codeartifact( +list_package_groups(domain; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "POST", "/v1/package-groups", Dict{String,Any}("domain" => domain); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_package_groups( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1788,28 +1725,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_package_version_assets( +list_package_version_assets( domain, format, package, repository, version; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/package/version/assets", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package/version/assets", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_package_version_assets( domain, format, @@ -1872,28 +1807,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_package_version_dependencies( +list_package_version_dependencies( domain, format, package, repository, version; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/package/version/dependencies", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package/version/dependencies", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_package_version_dependencies( domain, format, @@ -1958,22 +1891,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: How to sort the requested list of package versions. - `"status"`: A string that filters the requested package versions by status. """ -function list_package_versions( +list_package_versions( domain, format, package, repository; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "POST", + "/v1/package/versions", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package/versions", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_package_versions( domain, format, @@ -2040,17 +1971,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. """ -function list_packages( - domain, repository; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeartifact( +list_packages(domain, repository; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "POST", "/v1/packages", Dict{String,Any}("domain" => domain, "repository" => repository); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_packages( domain, repository, @@ -2088,11 +2016,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"repository-prefix"`: A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix are returned. """ -function list_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeartifact( - "POST", "/v1/repositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) = codeartifact( + "POST", "/v1/repositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_repositories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2127,17 +2053,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"repository-prefix"`: A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix are returned. """ -function list_repositories_in_domain( - domain; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeartifact( +list_repositories_in_domain(domain; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "POST", "/v1/domain/repositories", Dict{String,Any}("domain" => domain); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_repositories_in_domain( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2171,17 +2094,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_sub_package_groups( +list_sub_package_groups( domain, package_group; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "POST", + "/v1/package-groups/sub-groups", + Dict{String,Any}("domain" => domain, "package-group" => package_group); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package-groups/sub-groups", - Dict{String,Any}("domain" => domain, "package-group" => package_group); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_sub_package_groups( domain, package_group, @@ -2214,17 +2135,14 @@ in CodeArtifact. - `resource_arn`: The Amazon Resource Name (ARN) of the resource to get tags for. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeartifact( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "POST", "/v1/tags", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2279,7 +2197,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide). Valid values: unfinished """ -function publish_package_version( +publish_package_version( asset, assetContent, domain, @@ -2289,24 +2207,22 @@ function publish_package_version( version, x_amz_content_sha256; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/package/version/publish", + Dict{String,Any}( + "asset" => asset, + "assetContent" => assetContent, + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "version" => version, + "headers" => Dict{String,Any}("x-amz-content-sha256" => x_amz_content_sha256), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package/version/publish", - Dict{String,Any}( - "asset" => asset, - "assetContent" => assetContent, - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "version" => version, - "headers" => Dict{String,Any}("x-amz-content-sha256" => x_amz_content_sha256), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function publish_package_version( asset, assetContent, @@ -2366,17 +2282,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy. """ -function put_domain_permissions_policy( +put_domain_permissions_policy( domain, policyDocument; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "PUT", + "/v1/domain/permissions/policy", + Dict{String,Any}("domain" => domain, "policyDocument" => policyDocument); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "PUT", - "/v1/domain/permissions/policy", - Dict{String,Any}("domain" => domain, "policyDocument" => policyDocument); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_domain_permissions_policy( domain, policyDocument, @@ -2437,28 +2351,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. """ -function put_package_origin_configuration( +put_package_origin_configuration( domain, format, package, repository, restrictions; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/package", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "restrictions" => restrictions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "restrictions" => restrictions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_package_origin_configuration( domain, format, @@ -2514,21 +2426,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy. """ -function put_repository_permissions_policy( +put_repository_permissions_policy( domain, policyDocument, repository; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "PUT", + "/v1/repository/permissions/policy", + Dict{String,Any}( + "domain" => domain, + "policyDocument" => policyDocument, + "repository" => repository, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "PUT", - "/v1/repository/permissions/policy", - Dict{String,Any}( - "domain" => domain, - "policyDocument" => policyDocument, - "repository" => repository, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_repository_permissions_policy( domain, policyDocument, @@ -2567,15 +2477,14 @@ Adds or updates tags for a resource in CodeArtifact. - `tags`: The tags you want to modify or add to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codeartifact( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "POST", "/v1/tag", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2609,17 +2518,14 @@ Removes tags from a resource in CodeArtifact. - `tag_keys`: The tag key for each tag that you want to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeartifact( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "POST", "/v1/untag", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2661,17 +2567,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domain-owner"`: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. """ -function update_package_group( +update_package_group( domain, packageGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "PUT", + "/v1/package-group", + Dict{String,Any}("domain" => domain, "packageGroup" => packageGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "PUT", - "/v1/package-group", - Dict{String,Any}("domain" => domain, "packageGroup" => packageGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_package_group( domain, packageGroup, @@ -2721,17 +2625,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"restrictions"`: The origin configuration settings that determine how package versions can enter repositories. """ -function update_package_group_origin_configuration( +update_package_group_origin_configuration( domain, package_group; aws_config::AbstractAWSConfig=current_aws_config() +) = codeartifact( + "PUT", + "/v1/package-group-origin-configuration", + Dict{String,Any}("domain" => domain, "package-group" => package_group); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "PUT", - "/v1/package-group-origin-configuration", - Dict{String,Any}("domain" => domain, "package-group" => package_group); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_package_group_origin_configuration( domain, package_group, @@ -2790,7 +2692,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys key is the package version (for example, 3.5.2), and the map value is the package version revision. """ -function update_package_versions_status( +update_package_versions_status( domain, format, package, @@ -2798,22 +2700,20 @@ function update_package_versions_status( targetStatus, versions; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeartifact( + "POST", + "/v1/package/versions/update_status", + Dict{String,Any}( + "domain" => domain, + "format" => format, + "package" => package, + "repository" => repository, + "targetStatus" => targetStatus, + "versions" => versions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeartifact( - "POST", - "/v1/package/versions/update_status", - Dict{String,Any}( - "domain" => domain, - "format" => format, - "package" => package, - "repository" => repository, - "targetStatus" => targetStatus, - "versions" => versions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_package_versions_status( domain, format, @@ -2866,17 +2766,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories. """ -function update_repository( - domain, repository; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeartifact( +update_repository(domain, repository; aws_config::AbstractAWSConfig=current_aws_config()) = + codeartifact( "PUT", "/v1/repository", Dict{String,Any}("domain" => domain, "repository" => repository); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_repository( domain, repository, diff --git a/src/services/codebuild.jl b/src/services/codebuild.jl index d60ee7d25..f2099fdda 100644 --- a/src/services/codebuild.jl +++ b/src/services/codebuild.jl @@ -14,14 +14,12 @@ Deletes one or more builds. - `ids`: The IDs of the builds to delete. """ -function batch_delete_builds(ids; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "BatchDeleteBuilds", - Dict{String,Any}("ids" => ids); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_delete_builds(ids; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "BatchDeleteBuilds", + Dict{String,Any}("ids" => ids); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_delete_builds( ids, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -43,14 +41,13 @@ Retrieves information about one or more batch builds. - `ids`: An array that contains the batch build identifiers to retrieve. """ -function batch_get_build_batches(ids; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( +batch_get_build_batches(ids; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "BatchGetBuildBatches", Dict{String,Any}("ids" => ids); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_build_batches( ids, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -72,14 +69,12 @@ Gets information about one or more builds. - `ids`: The IDs of the builds. """ -function batch_get_builds(ids; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "BatchGetBuilds", - Dict{String,Any}("ids" => ids); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_builds(ids; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "BatchGetBuilds", + Dict{String,Any}("ids" => ids); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_builds( ids, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -101,14 +96,12 @@ Gets information about one or more compute fleets. - `names`: The names or ARNs of the compute fleets. """ -function batch_get_fleets(names; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "BatchGetFleets", - Dict{String,Any}("names" => names); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_fleets(names; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "BatchGetFleets", + Dict{String,Any}("names" => names); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_fleets( names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -132,14 +125,12 @@ Gets information about one or more build projects. a shared project using its name. """ -function batch_get_projects(names; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "BatchGetProjects", - Dict{String,Any}("names" => names); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_projects(names; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "BatchGetProjects", + Dict{String,Any}("names" => names); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_projects( names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -162,16 +153,14 @@ end return. """ -function batch_get_report_groups( +batch_get_report_groups( reportGroupArns; aws_config::AbstractAWSConfig=current_aws_config() +) = codebuild( + "BatchGetReportGroups", + Dict{String,Any}("reportGroupArns" => reportGroupArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "BatchGetReportGroups", - Dict{String,Any}("reportGroupArns" => reportGroupArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_report_groups( reportGroupArns, params::AbstractDict{String}; @@ -199,14 +188,13 @@ end - `report_arns`: An array of ARNs that identify the Report objects to return. """ -function batch_get_reports(reportArns; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( +batch_get_reports(reportArns; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "BatchGetReports", Dict{String,Any}("reportArns" => reportArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_reports( reportArns, params::AbstractDict{String}; @@ -257,14 +245,17 @@ Creates a compute fleet. Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific - (Tokyo), and Asia Pacific (Sydney). The environment type WINDOWS_SERVER_2019_CONTAINER is - available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia - Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). The - environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. - Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific - (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and - Asia Pacific (Mumbai). For more information, see Build environment compute types in the - CodeBuild user guide. + (Tokyo), and Asia Pacific (Sydney). The environment type MAC_ARM is available for Medium + fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia + Pacific (Sydney), and EU (Frankfurt) The environment type MAC_ARM is available for Large + fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia + Pacific (Sydney). The environment type WINDOWS_SERVER_2019_CONTAINER is available only in + regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), + Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). The environment type + WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. Virginia), US East + (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific + (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). + For more information, see Build environment compute types in the CodeBuild user guide. - `name`: The name of the compute fleet. # Optional Parameters @@ -272,6 +263,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"fleetServiceRole"`: The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. +- `"imageId"`: The Amazon Machine Image (AMI) of the compute fleet. - `"overflowBehavior"`: The compute fleet overflow behavior. For overflow behavior QUEUE, your overflow builds need to wait on the existing fleet instance to become available. For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand. If you @@ -285,25 +277,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys project tags. - `"vpcConfig"`: """ -function create_fleet( +create_fleet( baseCapacity, computeType, environmentType, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = codebuild( + "CreateFleet", + Dict{String,Any}( + "baseCapacity" => baseCapacity, + "computeType" => computeType, + "environmentType" => environmentType, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "CreateFleet", - Dict{String,Any}( - "baseCapacity" => baseCapacity, - "computeType" => computeType, - "environmentType" => environmentType, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fleet( baseCapacity, computeType, @@ -399,27 +389,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcConfig"`: VpcConfig enables CodeBuild to access resources in an Amazon VPC. If you're using compute fleets during project creation, do not provide vpcConfig. """ -function create_project( +create_project( artifacts, environment, name, serviceRole, source; aws_config::AbstractAWSConfig=current_aws_config(), +) = codebuild( + "CreateProject", + Dict{String,Any}( + "artifacts" => artifacts, + "environment" => environment, + "name" => name, + "serviceRole" => serviceRole, + "source" => source, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "CreateProject", - Dict{String,Any}( - "artifacts" => artifacts, - "environment" => environment, - "name" => name, - "serviceRole" => serviceRole, - "source" => source, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_project( artifacts, environment, @@ -467,16 +455,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags are available for use by Amazon Web Services services that support CodeBuild report group tags. """ -function create_report_group( +create_report_group( exportConfig, name, type; aws_config::AbstractAWSConfig=current_aws_config() +) = codebuild( + "CreateReportGroup", + Dict{String,Any}("exportConfig" => exportConfig, "name" => name, "type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "CreateReportGroup", - Dict{String,Any}("exportConfig" => exportConfig, "name" => name, "type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_report_group( exportConfig, name, @@ -536,14 +522,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Global or organization webhooks are only available for GitHub and Github Enterprise webhooks. """ -function create_webhook(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "CreateWebhook", - Dict{String,Any}("projectName" => projectName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_webhook(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "CreateWebhook", + Dict{String,Any}("projectName" => projectName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_webhook( projectName, params::AbstractDict{String}; @@ -569,14 +553,12 @@ Deletes a batch build. - `id`: The identifier of the batch build to delete. """ -function delete_build_batch(id; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "DeleteBuildBatch", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_build_batch(id; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "DeleteBuildBatch", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_build_batch( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -598,14 +580,12 @@ Deletes a compute fleet. When you delete a compute fleet, its builds are not del - `arn`: The ARN of the compute fleet. """ -function delete_fleet(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "DeleteFleet", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fleet(arn; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "DeleteFleet", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fleet( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -627,14 +607,12 @@ end - `name`: The name of the build project. """ -function delete_project(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "DeleteProject", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_project(name; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "DeleteProject", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_project( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -656,14 +634,12 @@ end - `arn`: The ARN of the report to delete. """ -function delete_report(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "DeleteReport", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_report(arn; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "DeleteReport", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_report( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -692,14 +668,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the reports. If you call DeleteReportGroup for a report group that contains one or more reports, an exception is thrown. """ -function delete_report_group(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "DeleteReportGroup", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_report_group(arn; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "DeleteReportGroup", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_report_group( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -721,16 +695,13 @@ end - `resource_arn`: The ARN of the resource that is associated with the resource policy. """ -function delete_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codebuild( +delete_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "DeleteResourcePolicy", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( resourceArn, params::AbstractDict{String}; @@ -756,14 +727,13 @@ end - `arn`: The Amazon Resource Name (ARN) of the token. """ -function delete_source_credentials(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( +delete_source_credentials(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "DeleteSourceCredentials", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_source_credentials( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -787,14 +757,12 @@ change is pushed to the repository. - `project_name`: The name of the CodeBuild project. """ -function delete_webhook(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "DeleteWebhook", - Dict{String,Any}("projectName" => projectName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_webhook(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "DeleteWebhook", + Dict{String,Any}("projectName" => projectName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_webhook( projectName, params::AbstractDict{String}; @@ -832,16 +800,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys percentage of lines that are covered. - `"sortOrder"`: Specifies if the results are sorted in ascending or descending order. """ -function describe_code_coverages( - reportArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codebuild( +describe_code_coverages(reportArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "DescribeCodeCoverages", Dict{String,Any}("reportArn" => reportArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_code_coverages( reportArn, params::AbstractDict{String}; @@ -879,14 +844,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned. """ -function describe_test_cases(reportArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( +describe_test_cases(reportArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "DescribeTestCases", Dict{String,Any}("reportArn" => reportArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_test_cases( reportArn, params::AbstractDict{String}; @@ -927,16 +891,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"numOfReports"`: The number of reports to analyze. This operation always retrieves the most recent reports. If this parameter is omitted, the most recent 100 reports are analyzed. """ -function get_report_group_trend( +get_report_group_trend( reportGroupArn, trendField; aws_config::AbstractAWSConfig=current_aws_config() +) = codebuild( + "GetReportGroupTrend", + Dict{String,Any}("reportGroupArn" => reportGroupArn, "trendField" => trendField); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "GetReportGroupTrend", - Dict{String,Any}("reportGroupArn" => reportGroupArn, "trendField" => trendField); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_report_group_trend( reportGroupArn, trendField, @@ -969,16 +931,13 @@ end - `resource_arn`: The ARN of the resource that is associated with the resource policy. """ -function get_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codebuild( +get_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "GetResourcePolicy", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( resourceArn, params::AbstractDict{String}; @@ -999,17 +958,18 @@ end import_source_credentials(auth_type, server_type, token, params::Dict{String,<:Any}) Imports the source repository credentials for an CodeBuild project that has its source -code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. +code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket +repository. # Arguments - `auth_type`: The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported - by the API and must be created using the CodeBuild console. Note that CODECONNECTIONS is - only valid for GitLab and GitLab Self Managed. + by the API and must be created using the CodeBuild console. - `server_type`: The source provider used for this project. - `token`: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the authType - CODECONNECTIONS, this is the connectionArn. + CODECONNECTIONS, this is the connectionArn. For the authType SECRETS_MANAGER, this is the + secretArn. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1019,18 +979,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"username"`: The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections. """ -function import_source_credentials( +import_source_credentials( authType, serverType, token; aws_config::AbstractAWSConfig=current_aws_config() +) = codebuild( + "ImportSourceCredentials", + Dict{String,Any}("authType" => authType, "serverType" => serverType, "token" => token); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "ImportSourceCredentials", - Dict{String,Any}( - "authType" => authType, "serverType" => serverType, "token" => token - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_source_credentials( authType, serverType, @@ -1064,16 +1020,13 @@ Resets the cache for a project. - `project_name`: The name of the CodeBuild build project that the cache is reset for. """ -function invalidate_project_cache( - projectName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codebuild( +invalidate_project_cache(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "InvalidateProjectCache", Dict{String,Any}("projectName" => projectName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invalidate_project_cache( projectName, params::AbstractDict{String}; @@ -1106,11 +1059,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ASCENDING: List the batch build identifiers in ascending order by identifier. DESCENDING: List the batch build identifiers in descending order by identifier. """ -function list_build_batches(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "ListBuildBatches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_build_batches(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("ListBuildBatches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_build_batches( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1137,13 +1087,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ASCENDING: List the batch build identifiers in ascending order by identifier. DESCENDING: List the batch build identifiers in descending order by identifier. """ -function list_build_batches_for_project(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return codebuild( +list_build_batches_for_project(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "ListBuildBatchesForProject"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_build_batches_for_project( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1172,9 +1119,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys build IDs in ascending order by build ID. DESCENDING: List the build IDs in descending order by build ID. """ -function list_builds(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild("ListBuilds"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_builds(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("ListBuilds"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_builds( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1207,16 +1153,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys number. If the project has more than 100 builds, setting the sort order will result in an error. """ -function list_builds_for_project( - projectName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codebuild( +list_builds_for_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "ListBuildsForProject", Dict{String,Any}("projectName" => projectName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_builds_for_project( projectName, params::AbstractDict{String}; @@ -1239,15 +1182,12 @@ end Gets information about Docker images that are managed by CodeBuild. """ -function list_curated_environment_images(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return codebuild( +list_curated_environment_images(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "ListCuratedEnvironmentImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_curated_environment_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1284,9 +1224,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ASCENDING: List in ascending order. DESCENDING: List in descending order. Use sortBy to specify the criterion to be used to list compute fleet names. """ -function list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild("ListFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("ListFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1318,9 +1257,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ASCENDING: List in ascending order. DESCENDING: List in descending order. Use sortBy to specify the criterion to be used to list build project names. """ -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild("ListProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("ListProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1353,11 +1291,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortOrder"`: Used to specify the order to sort the list of returned report groups. Valid values are ASCENDING and DESCENDING. """ -function list_report_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "ListReportGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_report_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("ListReportGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_report_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1389,9 +1324,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DESCENDING: return reports in the reverse chronological order based on their creation date. """ -function list_reports(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild("ListReports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_reports(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("ListReports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_reports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1425,16 +1359,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortOrder"`: Use to specify whether the results are returned in ascending or descending order. """ -function list_reports_for_report_group( +list_reports_for_report_group( reportGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = codebuild( + "ListReportsForReportGroup", + Dict{String,Any}("reportGroupArn" => reportGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "ListReportsForReportGroup", - Dict{String,Any}("reportGroupArn" => reportGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_reports_for_report_group( reportGroupArn, params::AbstractDict{String}; @@ -1474,11 +1406,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortOrder"`: The order in which to list shared build projects. Valid values include: ASCENDING: List in ascending order. DESCENDING: List in descending order. """ -function list_shared_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "ListSharedProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_shared_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("ListSharedProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_shared_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1512,11 +1441,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortOrder"`: The order in which to list shared report groups. Valid values include: ASCENDING: List in ascending order. DESCENDING: List in descending order. """ -function list_shared_report_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "ListSharedReportGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_shared_report_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "ListSharedReportGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_shared_report_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1535,11 +1462,9 @@ end Returns a list of SourceCredentialsInfo objects. """ -function list_source_credentials(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "ListSourceCredentials"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_source_credentials(; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "ListSourceCredentials"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_source_credentials( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1564,16 +1489,14 @@ end with a resource policy. """ -function put_resource_policy( +put_resource_policy( policy, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = codebuild( + "PutResourcePolicy", + Dict{String,Any}("policy" => policy, "resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "PutResourcePolicy", - Dict{String,Any}("policy" => policy, "resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( policy, resourceArn, @@ -1608,9 +1531,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is valid for five minutes. If you repeat the RetryBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error. """ -function retry_build(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild("RetryBuild"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +retry_build(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("RetryBuild"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function retry_build( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1634,11 +1556,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys same token, but change a parameter, CodeBuild returns a parameter mismatch error. - `"retryType"`: Specifies the type of retry to perform. """ -function retry_build_batch(; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "RetryBuildBatch"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +retry_build_batch(; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild("RetryBuildBatch"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function retry_build_batch( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1769,14 +1688,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hours), that overrides, for this build only, the latest setting already defined in the build project. """ -function start_build(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "StartBuild", - Dict{String,Any}("projectName" => projectName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_build(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "StartBuild", + Dict{String,Any}("projectName" => projectName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_build( projectName, params::AbstractDict{String}; @@ -1901,14 +1818,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys level) takes precedence. For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide. """ -function start_build_batch(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( +start_build_batch(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + codebuild( "StartBuildBatch", Dict{String,Any}("projectName" => projectName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_build_batch( projectName, params::AbstractDict{String}; @@ -1934,14 +1850,12 @@ Attempts to stop running a build. - `id`: The ID of the build. """ -function stop_build(id; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "StopBuild", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_build(id; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "StopBuild", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_build( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1963,14 +1877,12 @@ Stops a running batch build. - `id`: The identifier of the batch build to stop. """ -function stop_build_batch(id; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "StopBuildBatch", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_build_batch(id; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "StopBuildBatch", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_build_batch( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2021,17 +1933,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific - (Tokyo), and Asia Pacific (Sydney). The environment type WINDOWS_SERVER_2019_CONTAINER is - available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia - Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). The - environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. - Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific - (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and - Asia Pacific (Mumbai). For more information, see Build environment compute types in the - CodeBuild user guide. + (Tokyo), and Asia Pacific (Sydney). The environment type MAC_ARM is available for Medium + fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia + Pacific (Sydney), and EU (Frankfurt) The environment type MAC_ARM is available for Large + fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia + Pacific (Sydney). The environment type WINDOWS_SERVER_2019_CONTAINER is available only in + regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), + Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). The environment type + WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. Virginia), US East + (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific + (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). + For more information, see Build environment compute types in the CodeBuild user guide. - `"fleetServiceRole"`: The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. +- `"imageId"`: The Amazon Machine Image (AMI) of the compute fleet. - `"overflowBehavior"`: The compute fleet overflow behavior. For overflow behavior QUEUE, your overflow builds need to wait on the existing fleet instance to become available. For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand. If you @@ -2045,14 +1961,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys project tags. - `"vpcConfig"`: """ -function update_fleet(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "UpdateFleet", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_fleet(arn; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "UpdateFleet", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_fleet( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2132,14 +2046,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CodeBuild to wait before timing out any related build that did not get marked as completed. - `"vpcConfig"`: VpcConfig enables CodeBuild to access resources in an Amazon VPC. """ -function update_project(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "UpdateProject", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_project(name; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "UpdateProject", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_project( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2182,18 +2094,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceAccessRole"`: The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds. """ -function update_project_visibility( +update_project_visibility( projectArn, projectVisibility; aws_config::AbstractAWSConfig=current_aws_config() +) = codebuild( + "UpdateProjectVisibility", + Dict{String,Any}("projectArn" => projectArn, "projectVisibility" => projectVisibility); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codebuild( - "UpdateProjectVisibility", - Dict{String,Any}( - "projectArn" => projectArn, "projectVisibility" => projectVisibility - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_project_visibility( projectArn, projectVisibility, @@ -2234,14 +2142,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys These tags are available for use by Amazon Web Services services that support CodeBuild report group tags. """ -function update_report_group(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "UpdateReportGroup", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_report_group(arn; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "UpdateReportGroup", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_report_group( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2277,14 +2183,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret is ignored. """ -function update_webhook(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return codebuild( - "UpdateWebhook", - Dict{String,Any}("projectName" => projectName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_webhook(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = codebuild( + "UpdateWebhook", + Dict{String,Any}("projectName" => projectName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_webhook( projectName, params::AbstractDict{String}; diff --git a/src/services/codecatalyst.jl b/src/services/codecatalyst.jl index 685167cfe..c270227f9 100644 --- a/src/services/codecatalyst.jl +++ b/src/services/codecatalyst.jl @@ -24,15 +24,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"expiresTime"`: The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339. """ -function create_access_token(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( +create_access_token(name; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst( "PUT", "/v1/accessTokens", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_access_token( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -83,23 +82,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcConnectionName"`: The name of the connection that will be used to connect to Amazon VPC, if any. """ -function create_dev_environment( +create_dev_environment( instanceType, persistentStorage, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecatalyst( + "PUT", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments", + Dict{String,Any}( + "instanceType" => instanceType, "persistentStorage" => persistentStorage + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "PUT", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments", - Dict{String,Any}( - "instanceType" => instanceType, "persistentStorage" => persistentStorage - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dev_environment( instanceType, persistentStorage, @@ -141,17 +138,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys all users of the project. We recommend providing a brief description of the project and its intended purpose. """ -function create_project( - displayName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecatalyst( +create_project(displayName, spaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst( "PUT", "/v1/spaces/$(spaceName)/projects", Dict{String,Any}("displayName" => displayName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_project( displayName, spaceName, @@ -186,16 +180,14 @@ created with an initial empty commit with a default branch named main. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the source repository. """ -function create_source_repository( +create_source_repository( name, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "PUT", + "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "PUT", - "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_source_repository( name, projectName, @@ -231,20 +223,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"headCommitId"`: The commit ID in an existing branch from which you want to create the new branch. """ -function create_source_repository_branch( +create_source_repository_branch( name, projectName, sourceRepositoryName, spaceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecatalyst( + "PUT", + "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(sourceRepositoryName)/branches/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "PUT", - "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(sourceRepositoryName)/branches/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_source_repository_branch( name, projectName, @@ -274,14 +264,12 @@ deleted by the user who created it. associated with your Amazon Web Services Builder ID in a space by calling ListAccessTokens. """ -function delete_access_token(id; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "DELETE", - "/v1/accessTokens/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_access_token(id; aws_config::AbstractAWSConfig=current_aws_config()) = codecatalyst( + "DELETE", + "/v1/accessTokens/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_access_token( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -307,16 +295,14 @@ Deletes a Dev Environment. - `space_name`: The name of the space. """ -function delete_dev_environment( +delete_dev_environment( id, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "DELETE", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "DELETE", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dev_environment( id, projectName, @@ -345,14 +331,13 @@ Deletes a project in a space. - `space_name`: The name of the space. """ -function delete_project(name, spaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( +delete_project(name, spaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst( "DELETE", "/v1/spaces/$(spaceName)/projects/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_project( name, spaceName, @@ -381,16 +366,14 @@ linked repository. It can only be used to delete a Amazon CodeCatalyst source re - `space_name`: The name of the space. """ -function delete_source_repository( +delete_source_repository( name, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "DELETE", + "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "DELETE", - "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_source_repository( name, projectName, @@ -418,14 +401,12 @@ be unique across Amazon CodeCatalyst, you cannot reuse names of deleted spaces. - `name`: The name of the space. To retrieve a list of space names, use ListSpaces. """ -function delete_space(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "DELETE", - "/v1/spaces/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_space(name; aws_config::AbstractAWSConfig=current_aws_config()) = codecatalyst( + "DELETE", + "/v1/spaces/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_space( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -452,16 +433,14 @@ Environments are specific to the user who creates them. - `space_name`: The name of the space. """ -function get_dev_environment( +get_dev_environment( id, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "GET", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "GET", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_dev_environment( id, projectName, @@ -489,14 +468,13 @@ Returns information about a project. - `space_name`: The name of the space. """ -function get_project(name, spaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( +get_project(name, spaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst( "GET", "/v1/spaces/$(spaceName)/projects/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_project( name, spaceName, @@ -524,16 +502,14 @@ Returns information about a source repository. - `space_name`: The name of the space. """ -function get_source_repository( +get_source_repository( name, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "GET", + "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "GET", - "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_source_repository( name, projectName, @@ -563,19 +539,17 @@ repository. - `space_name`: The name of the space. """ -function get_source_repository_clone_urls( +get_source_repository_clone_urls( projectName, sourceRepositoryName, spaceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecatalyst( + "GET", + "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(sourceRepositoryName)/cloneUrls"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "GET", - "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(sourceRepositoryName)/cloneUrls"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_source_repository_clone_urls( projectName, sourceRepositoryName, @@ -602,11 +576,9 @@ Returns information about an space. - `name`: The name of the space. """ -function get_space(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "GET", "/v1/spaces/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_space(name; aws_config::AbstractAWSConfig=current_aws_config()) = codecatalyst( + "GET", "/v1/spaces/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_space( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -630,14 +602,13 @@ billing plan for the space. - `space_name`: The name of the space. """ -function get_subscription(spaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( +get_subscription(spaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst( "GET", "/v1/spaces/$(spaceName)/subscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_subscription( spaceName, params::AbstractDict{String}; @@ -663,11 +634,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"id"`: The system-generated unique ID of the user. - `"userName"`: The name of the user as displayed in Amazon CodeCatalyst. """ -function get_user_details(; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "GET", "/userDetails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_user_details(; aws_config::AbstractAWSConfig=current_aws_config()) = codecatalyst( + "GET", "/userDetails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_user_details( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -692,16 +661,14 @@ Returns information about a workflow. - `space_name`: The name of the space. """ -function get_workflow( +get_workflow( id, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "GET", + "/v1/spaces/$(spaceName)/projects/$(projectName)/workflows/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "GET", - "/v1/spaces/$(spaceName)/projects/$(projectName)/workflows/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workflow( id, projectName, @@ -731,16 +698,14 @@ Returns information about a specified run of a workflow. - `space_name`: The name of the space. """ -function get_workflow_run( +get_workflow_run( id, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "GET", + "/v1/spaces/$(spaceName)/projects/$(projectName)/workflowRuns/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "GET", - "/v1/spaces/$(spaceName)/projects/$(projectName)/workflowRuns/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workflow_run( id, projectName, @@ -772,11 +737,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from a call to this API to indicate the next batch of results to return, if any. """ -function list_access_tokens(; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "POST", "/v1/accessTokens"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_access_tokens(; aws_config::AbstractAWSConfig=current_aws_config()) = codecatalyst( + "POST", "/v1/accessTokens"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_access_tokens( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -808,19 +771,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from a call to this API to indicate the next batch of results to return, if any. """ -function list_dev_environment_sessions( +list_dev_environment_sessions( devEnvironmentId, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecatalyst( + "POST", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(devEnvironmentId)/sessions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "POST", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(devEnvironmentId)/sessions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_dev_environment_sessions( devEnvironmentId, projectName, @@ -857,16 +818,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results to return, if any. - `"projectName"`: The name of the project in the space. """ -function list_dev_environments( - spaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecatalyst( +list_dev_environments(spaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst( "POST", "/v1/spaces/$(spaceName)/devEnvironments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dev_environments( spaceName, params::AbstractDict{String}; @@ -910,17 +868,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from a call to this API to indicate the next batch of results to return, if any. """ -function list_event_logs( +list_event_logs( endTime, spaceName, startTime; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "POST", + "/v1/spaces/$(spaceName)/eventLogs", + Dict{String,Any}("endTime" => endTime, "startTime" => startTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "POST", - "/v1/spaces/$(spaceName)/eventLogs", - Dict{String,Any}("endTime" => endTime, "startTime" => startTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_event_logs( endTime, spaceName, @@ -962,14 +918,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from a call to this API to indicate the next batch of results to return, if any. """ -function list_projects(spaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "POST", - "/v1/spaces/$(spaceName)/projects"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_projects(spaceName; aws_config::AbstractAWSConfig=current_aws_config()) = codecatalyst( + "POST", + "/v1/spaces/$(spaceName)/projects"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_projects( spaceName, params::AbstractDict{String}; @@ -1002,16 +956,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from a call to this API to indicate the next batch of results to return, if any. """ -function list_source_repositories( +list_source_repositories( projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "POST", + "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "POST", - "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_source_repositories( projectName, spaceName, @@ -1046,19 +998,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from a call to this API to indicate the next batch of results to return, if any. """ -function list_source_repository_branches( +list_source_repository_branches( projectName, sourceRepositoryName, spaceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecatalyst( + "POST", + "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(sourceRepositoryName)/branches"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "POST", - "/v1/spaces/$(spaceName)/projects/$(projectName)/sourceRepositories/$(sourceRepositoryName)/branches"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_source_repository_branches( projectName, sourceRepositoryName, @@ -1086,11 +1036,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from a call to this API to indicate the next batch of results to return, if any. """ -function list_spaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "POST", "/v1/spaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_spaces(; aws_config::AbstractAWSConfig=current_aws_config()) = codecatalyst( + "POST", "/v1/spaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_spaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1120,16 +1068,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"workflowId"`: The ID of the workflow. To retrieve a list of workflow IDs, use ListWorkflows. """ -function list_workflow_runs( +list_workflow_runs( projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "POST", + "/v1/spaces/$(spaceName)/projects/$(projectName)/workflowRuns"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "POST", - "/v1/spaces/$(spaceName)/projects/$(projectName)/workflowRuns"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workflow_runs( projectName, spaceName, @@ -1164,16 +1110,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results to return, if any. - `"sortBy"`: Information used to sort the items in the returned list. """ -function list_workflows( - projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecatalyst( +list_workflows(projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst( "POST", "/v1/spaces/$(spaceName)/projects/$(projectName)/workflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_workflows( projectName, spaceName, @@ -1209,16 +1152,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Environments consume compute minutes when running. - `"instanceType"`: The Amazon EC2 instace type to use for the Dev Environment. """ -function start_dev_environment( +start_dev_environment( id, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "PUT", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)/start"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "PUT", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)/start"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_dev_environment( id, projectName, @@ -1248,21 +1189,19 @@ Starts a session for a specified Dev Environment. - `space_name`: The name of the space. """ -function start_dev_environment_session( +start_dev_environment_session( id, projectName, sessionConfiguration, spaceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecatalyst( + "PUT", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)/session", + Dict{String,Any}("sessionConfiguration" => sessionConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "PUT", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)/session", - Dict{String,Any}("sessionConfiguration" => sessionConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_dev_environment_session( id, projectName, @@ -1305,17 +1244,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys successfully, the subsequent retries return the result from the original successful request and have no additional effect. """ -function start_workflow_run( +start_workflow_run( projectName, spaceName, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "PUT", + "/v1/spaces/$(spaceName)/projects/$(projectName)/workflowRuns", + Dict{String,Any}("workflowId" => workflowId, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "PUT", - "/v1/spaces/$(spaceName)/projects/$(projectName)/workflowRuns", - Dict{String,Any}("workflowId" => workflowId, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_workflow_run( projectName, spaceName, @@ -1353,16 +1290,14 @@ Environments do not consume compute minutes. - `space_name`: The name of the space. """ -function stop_dev_environment( +stop_dev_environment( id, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "PUT", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "PUT", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_dev_environment( id, projectName, @@ -1394,20 +1329,18 @@ Stops a session for a specified Dev Environment. - `space_name`: The name of the space. """ -function stop_dev_environment_session( +stop_dev_environment_session( id, projectName, sessionId, spaceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecatalyst( + "DELETE", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)/session/$(sessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "DELETE", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)/session/$(sessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_dev_environment_session( id, projectName, @@ -1454,16 +1387,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"instanceType"`: The Amazon EC2 instace type to use for the Dev Environment. Changing this value will cause a restart of the Dev Environment if it is running. """ -function update_dev_environment( +update_dev_environment( id, projectName, spaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecatalyst( + "PATCH", + "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecatalyst( - "PATCH", - "/v1/spaces/$(spaceName)/projects/$(projectName)/devEnvironments/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dev_environment( id, projectName, @@ -1494,14 +1425,13 @@ Changes one or more values for a project. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the project. """ -function update_project(name, spaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( +update_project(name, spaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst( "PATCH", "/v1/spaces/$(spaceName)/projects/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_project( name, spaceName, @@ -1530,14 +1460,12 @@ Changes one or more values for a space. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the space. """ -function update_space(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "PATCH", - "/v1/spaces/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_space(name; aws_config::AbstractAWSConfig=current_aws_config()) = codecatalyst( + "PATCH", + "/v1/spaces/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_space( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1558,11 +1486,8 @@ Verifies whether the calling user has a valid Amazon CodeCatalyst login and sess successful, this returns the ID of the user in Amazon CodeCatalyst. """ -function verify_session(; aws_config::AbstractAWSConfig=current_aws_config()) - return codecatalyst( - "GET", "/session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +verify_session(; aws_config::AbstractAWSConfig=current_aws_config()) = + codecatalyst("GET", "/session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function verify_session( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/codecommit.jl b/src/services/codecommit.jl index c8b063960..4191bf022 100644 --- a/src/services/codecommit.jl +++ b/src/services/codecommit.jl @@ -21,21 +21,19 @@ the template contents is created for all pull requests in that repository. template. """ -function associate_approval_rule_template_with_repository( +associate_approval_rule_template_with_repository( approvalRuleTemplateName, repositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "AssociateApprovalRuleTemplateWithRepository", + Dict{String,Any}( + "approvalRuleTemplateName" => approvalRuleTemplateName, + "repositoryName" => repositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "AssociateApprovalRuleTemplateWithRepository", - Dict{String,Any}( - "approvalRuleTemplateName" => approvalRuleTemplateName, - "repositoryName" => repositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_approval_rule_template_with_repository( approvalRuleTemplateName, repositoryName, @@ -74,21 +72,19 @@ repositories. can be empty. """ -function batch_associate_approval_rule_template_with_repositories( +batch_associate_approval_rule_template_with_repositories( approvalRuleTemplateName, repositoryNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "BatchAssociateApprovalRuleTemplateWithRepositories", + Dict{String,Any}( + "approvalRuleTemplateName" => approvalRuleTemplateName, + "repositoryNames" => repositoryNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "BatchAssociateApprovalRuleTemplateWithRepositories", - Dict{String,Any}( - "approvalRuleTemplateName" => approvalRuleTemplateName, - "repositoryNames" => repositoryNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_approval_rule_template_with_repositories( approvalRuleTemplateName, repositoryNames, @@ -145,25 +141,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function batch_describe_merge_conflicts( +batch_describe_merge_conflicts( destinationCommitSpecifier, mergeOption, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "BatchDescribeMergeConflicts", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "mergeOption" => mergeOption, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "BatchDescribeMergeConflicts", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "mergeOption" => mergeOption, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_describe_merge_conflicts( destinationCommitSpecifier, mergeOption, @@ -206,21 +200,19 @@ repositories. itself can be empty. """ -function batch_disassociate_approval_rule_template_from_repositories( +batch_disassociate_approval_rule_template_from_repositories( approvalRuleTemplateName, repositoryNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "BatchDisassociateApprovalRuleTemplateFromRepositories", + Dict{String,Any}( + "approvalRuleTemplateName" => approvalRuleTemplateName, + "repositoryNames" => repositoryNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "BatchDisassociateApprovalRuleTemplateFromRepositories", - Dict{String,Any}( - "approvalRuleTemplateName" => approvalRuleTemplateName, - "repositoryNames" => repositoryNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_approval_rule_template_from_repositories( approvalRuleTemplateName, repositoryNames, @@ -256,16 +248,14 @@ Returns information about the contents of one or more commits in a repository. - `repository_name`: The name of the repository that contains the commits. """ -function batch_get_commits( +batch_get_commits( commitIds, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "BatchGetCommits", + Dict{String,Any}("commitIds" => commitIds, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "BatchGetCommits", - Dict{String,Any}("commitIds" => commitIds, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_commits( commitIds, repositoryName, @@ -303,16 +293,14 @@ that uses this API to display the repository description on a webpage. constraint limit is for each string in the array. The array itself can be empty. """ -function batch_get_repositories( +batch_get_repositories( repositoryNames; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "BatchGetRepositories", + Dict{String,Any}("repositoryNames" => repositoryNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "BatchGetRepositories", - Dict{String,Any}("repositoryNames" => repositoryNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_repositories( repositoryNames, params::AbstractDict{String}; @@ -370,21 +358,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Consider providing a description that explains what this template does and when it might be appropriate to associate it with repositories. """ -function create_approval_rule_template( +create_approval_rule_template( approvalRuleTemplateContent, approvalRuleTemplateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "CreateApprovalRuleTemplate", + Dict{String,Any}( + "approvalRuleTemplateContent" => approvalRuleTemplateContent, + "approvalRuleTemplateName" => approvalRuleTemplateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "CreateApprovalRuleTemplate", - Dict{String,Any}( - "approvalRuleTemplateContent" => approvalRuleTemplateContent, - "approvalRuleTemplateName" => approvalRuleTemplateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_approval_rule_template( approvalRuleTemplateContent, approvalRuleTemplateName, @@ -422,20 +408,18 @@ default branch operation. - `repository_name`: The name of the repository in which you want to create the new branch. """ -function create_branch( +create_branch( branchName, commitId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "CreateBranch", + Dict{String,Any}( + "branchName" => branchName, + "commitId" => commitId, + "repositoryName" => repositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "CreateBranch", - Dict{String,Any}( - "branchName" => branchName, - "commitId" => commitId, - "repositoryName" => repositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_branch( branchName, commitId, @@ -488,16 +472,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"putFiles"`: The files to add or update in this commit. - `"setFileModes"`: The file modes to update for files in this commit. """ -function create_commit( +create_commit( branchName, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "CreateCommit", + Dict{String,Any}("branchName" => branchName, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "CreateCommit", - Dict{String,Any}("branchName" => branchName, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_commit( branchName, repositoryName, @@ -543,10 +525,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency token is created for you. - `"description"`: A description of the pull request. """ -function create_pull_request( - targets, title; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +create_pull_request(targets, title; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "CreatePullRequest", Dict{String,Any}( "targets" => targets, "title" => title, "clientRequestToken" => string(uuid4()) @@ -554,7 +534,6 @@ function create_pull_request( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_pull_request( targets, title, @@ -608,23 +587,21 @@ Creates an approval rule for a pull request. create the approval rule. """ -function create_pull_request_approval_rule( +create_pull_request_approval_rule( approvalRuleContent, approvalRuleName, pullRequestId; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "CreatePullRequestApprovalRule", + Dict{String,Any}( + "approvalRuleContent" => approvalRuleContent, + "approvalRuleName" => approvalRuleName, + "pullRequestId" => pullRequestId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "CreatePullRequestApprovalRule", - Dict{String,Any}( - "approvalRuleContent" => approvalRuleContent, - "approvalRuleName" => approvalRuleName, - "pullRequestId" => pullRequestId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pull_request_approval_rule( approvalRuleContent, approvalRuleName, @@ -678,16 +655,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys description on a webpage. - `"tags"`: One or more tag key-value pairs to use when tagging this repository. """ -function create_repository( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +create_repository(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "CreateRepository", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_repository( repositoryName, params::AbstractDict{String}; @@ -743,25 +717,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys folder structure if the changes leave the folders empty. If this is specified as true, a .gitkeep file is created for empty folders. The default is false. """ -function create_unreferenced_merge_commit( +create_unreferenced_merge_commit( destinationCommitSpecifier, mergeOption, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "CreateUnreferencedMergeCommit", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "mergeOption" => mergeOption, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "CreateUnreferencedMergeCommit", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "mergeOption" => mergeOption, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_unreferenced_merge_commit( destinationCommitSpecifier, mergeOption, @@ -800,16 +772,14 @@ rules on pull requests already created with the template. - `approval_rule_template_name`: The name of the approval rule template to delete. """ -function delete_approval_rule_template( +delete_approval_rule_template( approvalRuleTemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "DeleteApprovalRuleTemplate", + Dict{String,Any}("approvalRuleTemplateName" => approvalRuleTemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "DeleteApprovalRuleTemplate", - Dict{String,Any}("approvalRuleTemplateName" => approvalRuleTemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_approval_rule_template( approvalRuleTemplateName, params::AbstractDict{String}; @@ -841,16 +811,14 @@ repository. - `repository_name`: The name of the repository that contains the branch to be deleted. """ -function delete_branch( +delete_branch( branchName, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "DeleteBranch", + Dict{String,Any}("branchName" => branchName, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "DeleteBranch", - Dict{String,Any}("branchName" => branchName, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_branch( branchName, repositoryName, @@ -884,16 +852,13 @@ Deletes the content of a comment made on a change, file, or commit in a reposito GetCommentsForComparedCommit or GetCommentsForPullRequest. """ -function delete_comment_content( - commentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +delete_comment_content(commentId; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "DeleteCommentContent", Dict{String,Any}("commentId" => commentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_comment_content( commentId, params::AbstractDict{String}; @@ -942,25 +907,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the author of the commit that deletes the file. If no name is specified, the user's ARN is used as the author name and committer name. """ -function delete_file( +delete_file( branchName, filePath, parentCommitId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "DeleteFile", + Dict{String,Any}( + "branchName" => branchName, + "filePath" => filePath, + "parentCommitId" => parentCommitId, + "repositoryName" => repositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "DeleteFile", - Dict{String,Any}( - "branchName" => branchName, - "filePath" => filePath, - "parentCommitId" => parentCommitId, - "repositoryName" => repositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_file( branchName, filePath, @@ -1004,18 +967,16 @@ from a merged or closed pull request. rule you want to delete. """ -function delete_pull_request_approval_rule( +delete_pull_request_approval_rule( approvalRuleName, pullRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "DeletePullRequestApprovalRule", + Dict{String,Any}( + "approvalRuleName" => approvalRuleName, "pullRequestId" => pullRequestId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "DeletePullRequestApprovalRule", - Dict{String,Any}( - "approvalRuleName" => approvalRuleName, "pullRequestId" => pullRequestId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_pull_request_approval_rule( approvalRuleName, pullRequestId, @@ -1050,16 +1011,13 @@ a repository is deleted, all future push calls to the deleted repository fail. - `repository_name`: The name of the repository to delete. """ -function delete_repository( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +delete_repository(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "DeleteRepository", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_repository( repositoryName, params::AbstractDict{String}; @@ -1107,27 +1065,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function describe_merge_conflicts( +describe_merge_conflicts( destinationCommitSpecifier, filePath, mergeOption, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "DescribeMergeConflicts", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "filePath" => filePath, + "mergeOption" => mergeOption, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "DescribeMergeConflicts", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "filePath" => filePath, - "mergeOption" => mergeOption, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_merge_conflicts( destinationCommitSpecifier, filePath, @@ -1180,16 +1136,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pullRequestEventType"`: Optional. The pull request event type about which you want to return information. """ -function describe_pull_request_events( +describe_pull_request_events( pullRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "DescribePullRequestEvents", + Dict{String,Any}("pullRequestId" => pullRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "DescribePullRequestEvents", - Dict{String,Any}("pullRequestId" => pullRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_pull_request_events( pullRequestId, params::AbstractDict{String}; @@ -1220,21 +1174,19 @@ through the template association. - `repository_name`: The name of the repository you want to disassociate from the template. """ -function disassociate_approval_rule_template_from_repository( +disassociate_approval_rule_template_from_repository( approvalRuleTemplateName, repositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "DisassociateApprovalRuleTemplateFromRepository", + Dict{String,Any}( + "approvalRuleTemplateName" => approvalRuleTemplateName, + "repositoryName" => repositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "DisassociateApprovalRuleTemplateFromRepository", - Dict{String,Any}( - "approvalRuleTemplateName" => approvalRuleTemplateName, - "repositoryName" => repositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_approval_rule_template_from_repository( approvalRuleTemplateName, repositoryName, @@ -1271,16 +1223,14 @@ approval rules. most recent revision ID for a pull request, use GetPullRequest. """ -function evaluate_pull_request_approval_rules( +evaluate_pull_request_approval_rules( pullRequestId, revisionId; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "EvaluatePullRequestApprovalRules", + Dict{String,Any}("pullRequestId" => pullRequestId, "revisionId" => revisionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "EvaluatePullRequestApprovalRules", - Dict{String,Any}("pullRequestId" => pullRequestId, "revisionId" => revisionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function evaluate_pull_request_approval_rules( pullRequestId, revisionId, @@ -1314,16 +1264,14 @@ Returns information about a specified approval rule template. to get information. """ -function get_approval_rule_template( +get_approval_rule_template( approvalRuleTemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "GetApprovalRuleTemplate", + Dict{String,Any}("approvalRuleTemplateName" => approvalRuleTemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetApprovalRuleTemplate", - Dict{String,Any}("approvalRuleTemplateName" => approvalRuleTemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_approval_rule_template( approvalRuleTemplateName, params::AbstractDict{String}; @@ -1354,16 +1302,13 @@ Returns the base-64 encoded content of an individual blob in a repository. - `repository_name`: The name of the repository that contains the blob. """ -function get_blob( - blobId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +get_blob(blobId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "GetBlob", Dict{String,Any}("blobId" => blobId, "repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_blob( blobId, repositoryName, @@ -1396,9 +1341,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"repositoryName"`: The name of the repository that contains the branch for which you want to retrieve information. """ -function get_branch(; aws_config::AbstractAWSConfig=current_aws_config()) - return codecommit("GetBranch"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_branch(; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit("GetBranch"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_branch( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1421,14 +1365,12 @@ GetCommentReactions. GetCommentsForComparedCommit or GetCommentsForPullRequest. """ -function get_comment(commentId; aws_config::AbstractAWSConfig=current_aws_config()) - return codecommit( - "GetComment", - Dict{String,Any}("commentId" => commentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_comment(commentId; aws_config::AbstractAWSConfig=current_aws_config()) = codecommit( + "GetComment", + Dict{String,Any}("commentId" => commentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_comment( commentId, params::AbstractDict{String}; @@ -1463,16 +1405,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reactionUserArn"`: Optional. The Amazon Resource Name (ARN) of the user or identity for which you want to get reaction information. """ -function get_comment_reactions( - commentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +get_comment_reactions(commentId; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "GetCommentReactions", Dict{String,Any}("commentId" => commentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_comment_reactions( commentId, params::AbstractDict{String}; @@ -1510,18 +1449,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An enumeration token that when provided in a request, returns the next batch of the results. """ -function get_comments_for_compared_commit( +get_comments_for_compared_commit( afterCommitId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "GetCommentsForComparedCommit", + Dict{String,Any}("afterCommitId" => afterCommitId, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetCommentsForComparedCommit", - Dict{String,Any}( - "afterCommitId" => afterCommitId, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_comments_for_compared_commit( afterCommitId, repositoryName, @@ -1573,16 +1508,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Requirement is conditional: repositoryName must be specified when beforeCommitId and afterCommitId are included. """ -function get_comments_for_pull_request( +get_comments_for_pull_request( pullRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "GetCommentsForPullRequest", + Dict{String,Any}("pullRequestId" => pullRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetCommentsForPullRequest", - Dict{String,Any}("pullRequestId" => pullRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_comments_for_pull_request( pullRequestId, params::AbstractDict{String}; @@ -1609,16 +1542,13 @@ Returns information about a commit, including commit message and committer infor - `repository_name`: The name of the repository to which the commit was made. """ -function get_commit( - commitId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +get_commit(commitId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "GetCommit", Dict{String,Any}("commitId" => commitId, "repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_commit( commitId, repositoryName, @@ -1671,19 +1601,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this path. Can also be used to specify the previous name of a directory or folder. If beforePath and afterPath are not specified, differences are shown for all paths. """ -function get_differences( +get_differences( afterCommitSpecifier, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "GetDifferences", + Dict{String,Any}( + "afterCommitSpecifier" => afterCommitSpecifier, + "repositoryName" => repositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetDifferences", - Dict{String,Any}( - "afterCommitSpecifier" => afterCommitSpecifier, - "repositoryName" => repositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_differences( afterCommitSpecifier, repositoryName, @@ -1725,16 +1653,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used. """ -function get_file( - filePath, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +get_file(filePath, repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "GetFile", Dict{String,Any}("filePath" => filePath, "repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_file( filePath, repositoryName, @@ -1776,16 +1701,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content is returned as it exists in the HEAD commit. """ -function get_folder( - folderPath, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +get_folder(folderPath, repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "GetFolder", Dict{String,Any}("folderPath" => folderPath, "repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_folder( folderPath, repositoryName, @@ -1833,23 +1755,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which requires any conflicts to be resolved manually before the merge operation is successful. """ -function get_merge_commit( +get_merge_commit( destinationCommitSpecifier, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "GetMergeCommit", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetMergeCommit", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_merge_commit( destinationCommitSpecifier, repositoryName, @@ -1904,25 +1824,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function get_merge_conflicts( +get_merge_conflicts( destinationCommitSpecifier, mergeOption, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "GetMergeConflicts", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "mergeOption" => mergeOption, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetMergeConflicts", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "mergeOption" => mergeOption, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_merge_conflicts( destinationCommitSpecifier, mergeOption, @@ -1977,23 +1895,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which requires any conflicts to be resolved manually before the merge operation is successful. """ -function get_merge_options( +get_merge_options( destinationCommitSpecifier, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "GetMergeOptions", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetMergeOptions", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_merge_options( destinationCommitSpecifier, repositoryName, @@ -2030,14 +1946,13 @@ Gets information about a pull request in a specified repository. ListPullRequests. """ -function get_pull_request(pullRequestId; aws_config::AbstractAWSConfig=current_aws_config()) - return codecommit( +get_pull_request(pullRequestId; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "GetPullRequest", Dict{String,Any}("pullRequestId" => pullRequestId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_pull_request( pullRequestId, params::AbstractDict{String}; @@ -2065,16 +1980,14 @@ only apply to pull requests that have one or more approval rules applied to them - `revision_id`: The system-generated ID for the pull request revision. """ -function get_pull_request_approval_states( +get_pull_request_approval_states( pullRequestId, revisionId; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "GetPullRequestApprovalStates", + Dict{String,Any}("pullRequestId" => pullRequestId, "revisionId" => revisionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetPullRequestApprovalStates", - Dict{String,Any}("pullRequestId" => pullRequestId, "revisionId" => revisionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_pull_request_approval_states( pullRequestId, revisionId, @@ -2112,16 +2025,14 @@ overrode the rules and their requirements for the pull request. the most recent revision ID, use GetPullRequest. """ -function get_pull_request_override_state( +get_pull_request_override_state( pullRequestId, revisionId; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "GetPullRequestOverrideState", + Dict{String,Any}("pullRequestId" => pullRequestId, "revisionId" => revisionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetPullRequestOverrideState", - Dict{String,Any}("pullRequestId" => pullRequestId, "revisionId" => revisionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_pull_request_override_state( pullRequestId, revisionId, @@ -2158,14 +2069,13 @@ to display the repository description on a webpage. - `repository_name`: The name of the repository to get information about. """ -function get_repository(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) - return codecommit( +get_repository(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "GetRepository", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_repository( repositoryName, params::AbstractDict{String}; @@ -2191,16 +2101,14 @@ Gets information about triggers configured for a repository. - `repository_name`: The name of the repository for which the trigger is configured. """ -function get_repository_triggers( +get_repository_triggers( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "GetRepositoryTriggers", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "GetRepositoryTriggers", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_repository_triggers( repositoryName, params::AbstractDict{String}; @@ -2231,11 +2139,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_approval_rule_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return codecommit( +list_approval_rule_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "ListApprovalRuleTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_approval_rule_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2264,16 +2171,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_associated_approval_rule_templates_for_repository( +list_associated_approval_rule_templates_for_repository( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "ListAssociatedApprovalRuleTemplatesForRepository", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "ListAssociatedApprovalRuleTemplatesForRepository", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_associated_approval_rule_templates_for_repository( repositoryName, params::AbstractDict{String}; @@ -2302,14 +2207,13 @@ Gets information about one or more branches in a repository. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: An enumeration token that allows the operation to batch the results. """ -function list_branches(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) - return codecommit( +list_branches(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "ListBranches", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_branches( repositoryName, params::AbstractDict{String}; @@ -2345,16 +2249,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"nextToken"`: An enumeration token that allows the operation to batch the results. """ -function list_file_commit_history( +list_file_commit_history( filePath, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "ListFileCommitHistory", + Dict{String,Any}("filePath" => filePath, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "ListFileCommitHistory", - Dict{String,Any}("filePath" => filePath, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_file_commit_history( filePath, repositoryName, @@ -2398,16 +2300,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pullRequestStatus"`: Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status. """ -function list_pull_requests( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +list_pull_requests(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "ListPullRequests", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_pull_requests( repositoryName, params::AbstractDict{String}; @@ -2437,11 +2336,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"order"`: The order in which to sort the results of a list repositories operation. - `"sortBy"`: The criteria used to sort the results of a list repositories operation. """ -function list_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) - return codecommit( - "ListRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit("ListRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_repositories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2467,16 +2363,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_repositories_for_approval_rule_template( +list_repositories_for_approval_rule_template( approvalRuleTemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "ListRepositoriesForApprovalRuleTemplate", + Dict{String,Any}("approvalRuleTemplateName" => approvalRuleTemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "ListRepositoriesForApprovalRuleTemplate", - Dict{String,Any}("approvalRuleTemplateName" => approvalRuleTemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_repositories_for_approval_rule_template( approvalRuleTemplateName, params::AbstractDict{String}; @@ -2513,16 +2407,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2555,23 +2446,21 @@ Merges two branches using the fast-forward merge strategy. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"targetBranch"`: The branch where the merge is applied. """ -function merge_branches_by_fast_forward( +merge_branches_by_fast_forward( destinationCommitSpecifier, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "MergeBranchesByFastForward", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "MergeBranchesByFastForward", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_branches_by_fast_forward( destinationCommitSpecifier, repositoryName, @@ -2632,23 +2521,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys .gitkeep file is created for empty folders. The default is false. - `"targetBranch"`: The branch where the merge is applied. """ -function merge_branches_by_squash( +merge_branches_by_squash( destinationCommitSpecifier, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "MergeBranchesBySquash", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "MergeBranchesBySquash", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_branches_by_squash( destinationCommitSpecifier, repositoryName, @@ -2709,23 +2596,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys created for empty folders. The default is false. - `"targetBranch"`: The branch where the merge is applied. """ -function merge_branches_by_three_way( +merge_branches_by_three_way( destinationCommitSpecifier, repositoryName, sourceCommitSpecifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "MergeBranchesByThreeWay", + Dict{String,Any}( + "destinationCommitSpecifier" => destinationCommitSpecifier, + "repositoryName" => repositoryName, + "sourceCommitSpecifier" => sourceCommitSpecifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "MergeBranchesByThreeWay", - Dict{String,Any}( - "destinationCommitSpecifier" => destinationCommitSpecifier, - "repositoryName" => repositoryName, - "sourceCommitSpecifier" => sourceCommitSpecifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_branches_by_three_way( destinationCommitSpecifier, repositoryName, @@ -2770,18 +2655,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID. """ -function merge_pull_request_by_fast_forward( +merge_pull_request_by_fast_forward( pullRequestId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "MergePullRequestByFastForward", + Dict{String,Any}("pullRequestId" => pullRequestId, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "MergePullRequestByFastForward", - Dict{String,Any}( - "pullRequestId" => pullRequestId, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_pull_request_by_fast_forward( pullRequestId, repositoryName, @@ -2841,18 +2722,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID. """ -function merge_pull_request_by_squash( +merge_pull_request_by_squash( pullRequestId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "MergePullRequestBySquash", + Dict{String,Any}("pullRequestId" => pullRequestId, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "MergePullRequestBySquash", - Dict{String,Any}( - "pullRequestId" => pullRequestId, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_pull_request_by_squash( pullRequestId, repositoryName, @@ -2912,18 +2789,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID. """ -function merge_pull_request_by_three_way( +merge_pull_request_by_three_way( pullRequestId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "MergePullRequestByThreeWay", + Dict{String,Any}("pullRequestId" => pullRequestId, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "MergePullRequestByThreeWay", - Dict{String,Any}( - "pullRequestId" => pullRequestId, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_pull_request_by_three_way( pullRequestId, repositoryName, @@ -2963,23 +2836,21 @@ Sets aside (overrides) all approval rule requirements for a specified pull reque request. To get the revision ID, use GetPullRequest. """ -function override_pull_request_approval_rules( +override_pull_request_approval_rules( overrideStatus, pullRequestId, revisionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "OverridePullRequestApprovalRules", + Dict{String,Any}( + "overrideStatus" => overrideStatus, + "pullRequestId" => pullRequestId, + "revisionId" => revisionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "OverridePullRequestApprovalRules", - Dict{String,Any}( - "overrideStatus" => overrideStatus, - "pullRequestId" => pullRequestId, - "revisionId" => revisionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function override_pull_request_approval_rules( overrideStatus, pullRequestId, @@ -3029,24 +2900,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about the initial request that used that token. - `"location"`: The location of the comparison where you want to comment. """ -function post_comment_for_compared_commit( +post_comment_for_compared_commit( afterCommitId, content, repositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "PostCommentForComparedCommit", + Dict{String,Any}( + "afterCommitId" => afterCommitId, + "content" => content, + "repositoryName" => repositoryName, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "PostCommentForComparedCommit", - Dict{String,Any}( - "afterCommitId" => afterCommitId, - "content" => content, - "repositoryName" => repositoryName, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function post_comment_for_compared_commit( afterCommitId, content, @@ -3100,28 +2969,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID. """ -function post_comment_for_pull_request( +post_comment_for_pull_request( afterCommitId, beforeCommitId, content, pullRequestId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "PostCommentForPullRequest", + Dict{String,Any}( + "afterCommitId" => afterCommitId, + "beforeCommitId" => beforeCommitId, + "content" => content, + "pullRequestId" => pullRequestId, + "repositoryName" => repositoryName, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "PostCommentForPullRequest", - Dict{String,Any}( - "afterCommitId" => afterCommitId, - "beforeCommitId" => beforeCommitId, - "content" => content, - "pullRequestId" => pullRequestId, - "repositoryName" => repositoryName, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function post_comment_for_pull_request( afterCommitId, beforeCommitId, @@ -3171,10 +3038,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is received with the same parameters and a token is included, the request returns information about the initial request that used that token. """ -function post_comment_reply( - content, inReplyTo; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +post_comment_reply(content, inReplyTo; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "PostCommentReply", Dict{String,Any}( "content" => content, @@ -3184,7 +3049,6 @@ function post_comment_reply( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function post_comment_reply( content, inReplyTo, @@ -3224,16 +3088,14 @@ modify, or delete a reaction for another user. about emoji reaction values supported in CodeCommit, see the CodeCommit User Guide. """ -function put_comment_reaction( +put_comment_reaction( commentId, reactionValue; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "PutCommentReaction", + Dict{String,Any}("commentId" => commentId, "reactionValue" => reactionValue); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "PutCommentReaction", - Dict{String,Any}("commentId" => commentId, "reactionValue" => reactionValue); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_comment_reaction( commentId, reactionValue, @@ -3287,25 +3149,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated. """ -function put_file( +put_file( branchName, fileContent, filePath, repositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "PutFile", + Dict{String,Any}( + "branchName" => branchName, + "fileContent" => fileContent, + "filePath" => filePath, + "repositoryName" => repositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "PutFile", - Dict{String,Any}( - "branchName" => branchName, - "fileContent" => fileContent, - "filePath" => filePath, - "repositoryName" => repositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_file( branchName, fileContent, @@ -3345,16 +3205,14 @@ Replaces all triggers for a repository. Used to create or delete triggers. - `triggers`: The JSON block of configuration information for each trigger. """ -function put_repository_triggers( +put_repository_triggers( repositoryName, triggers; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "PutRepositoryTriggers", + Dict{String,Any}("repositoryName" => repositoryName, "triggers" => triggers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "PutRepositoryTriggers", - Dict{String,Any}("repositoryName" => repositoryName, "triggers" => triggers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_repository_triggers( repositoryName, triggers, @@ -3390,14 +3248,13 @@ CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide - `tags`: The key-value pair to use when tagging this repository. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codecommit( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -3431,16 +3288,14 @@ commit. If no data is available, sample data is generated. - `triggers`: The list of triggers to test. """ -function test_repository_triggers( +test_repository_triggers( repositoryName, triggers; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "TestRepositoryTriggers", + Dict{String,Any}("repositoryName" => repositoryName, "triggers" => triggers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "TestRepositoryTriggers", - Dict{String,Any}("repositoryName" => repositoryName, "triggers" => triggers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_repository_triggers( repositoryName, triggers, @@ -3476,16 +3331,13 @@ CodeCommit Resources and Operations in the CodeCommit User Guide. - `tag_keys`: The tag key for each tag that you want to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -3524,21 +3376,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"existingRuleContentSha256"`: The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using GetPullRequest. """ -function update_approval_rule_template_content( +update_approval_rule_template_content( approvalRuleTemplateName, newRuleContent; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "UpdateApprovalRuleTemplateContent", + Dict{String,Any}( + "approvalRuleTemplateName" => approvalRuleTemplateName, + "newRuleContent" => newRuleContent, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdateApprovalRuleTemplateContent", - Dict{String,Any}( - "approvalRuleTemplateName" => approvalRuleTemplateName, - "newRuleContent" => newRuleContent, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_approval_rule_template_content( approvalRuleTemplateName, newRuleContent, @@ -3575,21 +3425,19 @@ Updates the description for a specified approval rule template. description. """ -function update_approval_rule_template_description( +update_approval_rule_template_description( approvalRuleTemplateDescription, approvalRuleTemplateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "UpdateApprovalRuleTemplateDescription", + Dict{String,Any}( + "approvalRuleTemplateDescription" => approvalRuleTemplateDescription, + "approvalRuleTemplateName" => approvalRuleTemplateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdateApprovalRuleTemplateDescription", - Dict{String,Any}( - "approvalRuleTemplateDescription" => approvalRuleTemplateDescription, - "approvalRuleTemplateName" => approvalRuleTemplateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_approval_rule_template_description( approvalRuleTemplateDescription, approvalRuleTemplateName, @@ -3625,21 +3473,19 @@ Updates the name of a specified approval rule template. - `old_approval_rule_template_name`: The current name of the approval rule template. """ -function update_approval_rule_template_name( +update_approval_rule_template_name( newApprovalRuleTemplateName, oldApprovalRuleTemplateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "UpdateApprovalRuleTemplateName", + Dict{String,Any}( + "newApprovalRuleTemplateName" => newApprovalRuleTemplateName, + "oldApprovalRuleTemplateName" => oldApprovalRuleTemplateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdateApprovalRuleTemplateName", - Dict{String,Any}( - "newApprovalRuleTemplateName" => newApprovalRuleTemplateName, - "oldApprovalRuleTemplateName" => oldApprovalRuleTemplateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_approval_rule_template_name( newApprovalRuleTemplateName, oldApprovalRuleTemplateName, @@ -3675,16 +3521,13 @@ Replaces the contents of a comment. - `content`: The updated content to replace the existing content of the comment. """ -function update_comment( - commentId, content; aws_config::AbstractAWSConfig=current_aws_config() -) - return codecommit( +update_comment(commentId, content; aws_config::AbstractAWSConfig=current_aws_config()) = + codecommit( "UpdateComment", Dict{String,Any}("commentId" => commentId, "content" => content); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_comment( commentId, content, @@ -3719,18 +3562,16 @@ message is returned even though the default branch did not change. default branch. """ -function update_default_branch( +update_default_branch( defaultBranchName, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "UpdateDefaultBranch", + Dict{String,Any}( + "defaultBranchName" => defaultBranchName, "repositoryName" => repositoryName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdateDefaultBranch", - Dict{String,Any}( - "defaultBranchName" => defaultBranchName, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_default_branch( defaultBranchName, repositoryName, @@ -3786,23 +3627,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"existingRuleContentSha256"`: The SHA-256 hash signature for the content of the approval rule. You can retrieve this information by using GetPullRequest. """ -function update_pull_request_approval_rule_content( +update_pull_request_approval_rule_content( approvalRuleName, newRuleContent, pullRequestId; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "UpdatePullRequestApprovalRuleContent", + Dict{String,Any}( + "approvalRuleName" => approvalRuleName, + "newRuleContent" => newRuleContent, + "pullRequestId" => pullRequestId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdatePullRequestApprovalRuleContent", - Dict{String,Any}( - "approvalRuleName" => approvalRuleName, - "newRuleContent" => newRuleContent, - "pullRequestId" => pullRequestId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pull_request_approval_rule_content( approvalRuleName, newRuleContent, @@ -3841,23 +3680,21 @@ signed-in account when the request is made. - `revision_id`: The system-generated ID of the revision. """ -function update_pull_request_approval_state( +update_pull_request_approval_state( approvalState, pullRequestId, revisionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = codecommit( + "UpdatePullRequestApprovalState", + Dict{String,Any}( + "approvalState" => approvalState, + "pullRequestId" => pullRequestId, + "revisionId" => revisionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdatePullRequestApprovalState", - Dict{String,Any}( - "approvalState" => approvalState, - "pullRequestId" => pullRequestId, - "revisionId" => revisionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pull_request_approval_state( approvalState, pullRequestId, @@ -3896,16 +3733,14 @@ Replaces the contents of the description of a pull request. ListPullRequests. """ -function update_pull_request_description( +update_pull_request_description( description, pullRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "UpdatePullRequestDescription", + Dict{String,Any}("description" => description, "pullRequestId" => pullRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdatePullRequestDescription", - Dict{String,Any}("description" => description, "pullRequestId" => pullRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pull_request_description( description, pullRequestId, @@ -3941,18 +3776,16 @@ Updates the status of a pull request. update the status from OPEN to OPEN, OPEN to CLOSED or from CLOSED to CLOSED. """ -function update_pull_request_status( +update_pull_request_status( pullRequestId, pullRequestStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "UpdatePullRequestStatus", + Dict{String,Any}( + "pullRequestId" => pullRequestId, "pullRequestStatus" => pullRequestStatus + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdatePullRequestStatus", - Dict{String,Any}( - "pullRequestId" => pullRequestId, "pullRequestStatus" => pullRequestStatus - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pull_request_status( pullRequestId, pullRequestStatus, @@ -3988,16 +3821,14 @@ Replaces the title of a pull request. - `title`: The updated title of the pull request. This replaces the existing title. """ -function update_pull_request_title( +update_pull_request_title( pullRequestId, title; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "UpdatePullRequestTitle", + Dict{String,Any}("pullRequestId" => pullRequestId, "title" => title); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdatePullRequestTitle", - Dict{String,Any}("pullRequestId" => pullRequestId, "title" => title); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pull_request_title( pullRequestId, title, @@ -4037,16 +3868,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"repositoryDescription"`: The new comment or description for the specified repository. Repository descriptions are limited to 1,000 characters. """ -function update_repository_description( +update_repository_description( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "UpdateRepositoryDescription", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdateRepositoryDescription", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_repository_description( repositoryName, params::AbstractDict{String}; @@ -4078,16 +3907,14 @@ repository. encryption key used to encrypt and decrypt the repository. """ -function update_repository_encryption_key( +update_repository_encryption_key( kmsKeyId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "UpdateRepositoryEncryptionKey", + Dict{String,Any}("kmsKeyId" => kmsKeyId, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdateRepositoryEncryptionKey", - Dict{String,Any}("kmsKeyId" => kmsKeyId, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_repository_encryption_key( kmsKeyId, repositoryName, @@ -4124,16 +3951,14 @@ information about the limits on repository names, see Quotas in the CodeCommit U - `old_name`: The current name of the repository. """ -function update_repository_name( +update_repository_name( newName, oldName; aws_config::AbstractAWSConfig=current_aws_config() +) = codecommit( + "UpdateRepositoryName", + Dict{String,Any}("newName" => newName, "oldName" => oldName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codecommit( - "UpdateRepositoryName", - Dict{String,Any}("newName" => newName, "oldName" => oldName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_repository_name( newName, oldName, diff --git a/src/services/codeconnections.jl b/src/services/codeconnections.jl index 46b058af4..6b54a52ac 100644 --- a/src/services/codeconnections.jl +++ b/src/services/codeconnections.jl @@ -23,16 +23,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys repository is configured. - `"Tags"`: The key-value pair to use when tagging the resource. """ -function create_connection( - ConnectionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeconnections( +create_connection(ConnectionName; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections( "CreateConnection", Dict{String,Any}("ConnectionName" => ConnectionName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_connection( ConnectionName, params::AbstractDict{String}; @@ -73,20 +70,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configured and the infrastructure to be represented by the host must already be connected to the VPC. """ -function create_host( +create_host( Name, ProviderEndpoint, ProviderType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "CreateHost", + Dict{String,Any}( + "Name" => Name, + "ProviderEndpoint" => ProviderEndpoint, + "ProviderType" => ProviderType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "CreateHost", - Dict{String,Any}( - "Name" => Name, - "ProviderEndpoint" => ProviderEndpoint, - "ProviderType" => ProviderType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_host( Name, ProviderEndpoint, @@ -132,23 +127,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys be associated with the repository link. - `"Tags"`: The tags for the repository to be associated with the repository link. """ -function create_repository_link( +create_repository_link( ConnectionArn, OwnerId, RepositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeconnections( + "CreateRepositoryLink", + Dict{String,Any}( + "ConnectionArn" => ConnectionArn, + "OwnerId" => OwnerId, + "RepositoryName" => RepositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "CreateRepositoryLink", - Dict{String,Any}( - "ConnectionArn" => ConnectionArn, - "OwnerId" => OwnerId, - "RepositoryName" => RepositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_repository_link( ConnectionArn, OwnerId, @@ -202,7 +195,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to source providers. - `"TriggerResourceUpdateOn"`: When to trigger Git sync to begin the stack update. """ -function create_sync_configuration( +create_sync_configuration( Branch, ConfigFile, RepositoryLinkId, @@ -210,21 +203,19 @@ function create_sync_configuration( RoleArn, SyncType; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeconnections( + "CreateSyncConfiguration", + Dict{String,Any}( + "Branch" => Branch, + "ConfigFile" => ConfigFile, + "RepositoryLinkId" => RepositoryLinkId, + "ResourceName" => ResourceName, + "RoleArn" => RoleArn, + "SyncType" => SyncType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "CreateSyncConfiguration", - Dict{String,Any}( - "Branch" => Branch, - "ConfigFile" => ConfigFile, - "RepositoryLinkId" => RepositoryLinkId, - "ResourceName" => ResourceName, - "RoleArn" => RoleArn, - "SyncType" => SyncType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sync_configuration( Branch, ConfigFile, @@ -267,16 +258,13 @@ The connection to be deleted. ARN is never reused if the connection is deleted. """ -function delete_connection( - ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeconnections( +delete_connection(ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections( "DeleteConnection", Dict{String,Any}("ConnectionArn" => ConnectionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connection( ConnectionArn, params::AbstractDict{String}; @@ -304,14 +292,12 @@ VPC_CONFIG_DELETING state. - `host_arn`: The Amazon Resource Name (ARN) of the host to be deleted. """ -function delete_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codeconnections( - "DeleteHost", - Dict{String,Any}("HostArn" => HostArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) = codeconnections( + "DeleteHost", + Dict{String,Any}("HostArn" => HostArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_host( HostArn, params::AbstractDict{String}; @@ -335,16 +321,14 @@ Deletes the association between your connection and a specified external Git rep - `repository_link_id`: The ID of the repository link to be deleted. """ -function delete_repository_link( +delete_repository_link( RepositoryLinkId; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "DeleteRepositoryLink", + Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "DeleteRepositoryLink", - Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_repository_link( RepositoryLinkId, params::AbstractDict{String}; @@ -374,16 +358,14 @@ Deletes the sync configuration for a specified repository and connection. - `sync_type`: The type of sync configuration to be deleted. """ -function delete_sync_configuration( +delete_sync_configuration( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "DeleteSyncConfiguration", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "DeleteSyncConfiguration", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sync_configuration( ResourceName, SyncType, @@ -414,14 +396,13 @@ Returns the connection ARN and details such as status, owner, and provider type. - `connection_arn`: The Amazon Resource Name (ARN) of a connection. """ -function get_connection(ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codeconnections( +get_connection(ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections( "GetConnection", Dict{String,Any}("ConnectionArn" => ConnectionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connection( ConnectionArn, params::AbstractDict{String}; @@ -448,14 +429,12 @@ applicable, the VPC configuration. - `host_arn`: The Amazon Resource Name (ARN) of the requested host. """ -function get_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codeconnections( - "GetHost", - Dict{String,Any}("HostArn" => HostArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) = codeconnections( + "GetHost", + Dict{String,Any}("HostArn" => HostArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_host( HostArn, params::AbstractDict{String}; @@ -480,16 +459,13 @@ sync changes from files in a specified Git repository. - `repository_link_id`: The ID of the repository link to get. """ -function get_repository_link( - RepositoryLinkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeconnections( +get_repository_link(RepositoryLinkId; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections( "GetRepositoryLink", Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_repository_link( RepositoryLinkId, params::AbstractDict{String}; @@ -520,20 +496,18 @@ push and pull changes from your remote repository. - `sync_type`: The sync type of the requested sync status. """ -function get_repository_sync_status( +get_repository_sync_status( Branch, RepositoryLinkId, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "GetRepositorySyncStatus", + Dict{String,Any}( + "Branch" => Branch, + "RepositoryLinkId" => RepositoryLinkId, + "SyncType" => SyncType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "GetRepositorySyncStatus", - Dict{String,Any}( - "Branch" => Branch, - "RepositoryLinkId" => RepositoryLinkId, - "SyncType" => SyncType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_repository_sync_status( Branch, RepositoryLinkId, @@ -572,16 +546,14 @@ resource. - `sync_type`: The sync type for the sync status with the Git repository. """ -function get_resource_sync_status( +get_resource_sync_status( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "GetResourceSyncStatus", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "GetResourceSyncStatus", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_sync_status( ResourceName, SyncType, @@ -614,16 +586,14 @@ Returns a list of the most recent sync blockers. - `sync_type`: The sync type for the sync blocker summary. """ -function get_sync_blocker_summary( +get_sync_blocker_summary( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "GetSyncBlockerSummary", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "GetSyncBlockerSummary", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sync_blocker_summary( ResourceName, SyncType, @@ -659,16 +629,14 @@ repository for a specified branch in a Git repository. information. """ -function get_sync_configuration( +get_sync_configuration( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "GetSyncConfiguration", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "GetSyncConfiguration", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sync_configuration( ResourceName, SyncType, @@ -706,11 +674,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProviderTypeFilter"`: Filters the list of connections to those associated with a specified provider, such as Bitbucket. """ -function list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeconnections( - "ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = codeconnections( + "ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -732,11 +698,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token that was returned from the previous ListHosts call, which can be used to return the next set of hosts in the list. """ -function list_hosts(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeconnections( - "ListHosts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_hosts(; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections("ListHosts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_hosts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -758,11 +721,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_repository_links(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeconnections( +list_repository_links(; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections( "ListRepositoryLinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_repository_links( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -787,16 +749,14 @@ Lists the repository sync definitions for repository links in your account. you want to retrieve information. """ -function list_repository_sync_definitions( +list_repository_sync_definitions( RepositoryLinkId, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "ListRepositorySyncDefinitions", + Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "ListRepositorySyncDefinitions", - Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_repository_sync_definitions( RepositoryLinkId, SyncType, @@ -837,16 +797,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An enumeration token that allows the operation to batch the results of the operation. """ -function list_sync_configurations( +list_sync_configurations( RepositoryLinkId, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "ListSyncConfigurations", + Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "ListSyncConfigurations", - Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_sync_configurations( RepositoryLinkId, SyncType, @@ -880,16 +838,13 @@ Gets the set of key-value pairs (metadata) that are used to manage the resource. information about tags, if any. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeconnections( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -918,14 +873,13 @@ manage a resource. - `tags`: The tags you want to modify or add to the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codeconnections( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -957,16 +911,13 @@ Removes tags from an Amazon Web Services resource. - `tag_keys`: The list of keys for the tags to be removed from the resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeconnections( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codeconnections( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1003,14 +954,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configured and the infrastructure to be represented by the host must already be connected to the VPC. """ -function update_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codeconnections( - "UpdateHost", - Dict{String,Any}("HostArn" => HostArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) = codeconnections( + "UpdateHost", + Dict{String,Any}("HostArn" => HostArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_host( HostArn, params::AbstractDict{String}; @@ -1043,16 +992,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EncryptionKeyArn"`: The Amazon Resource Name (ARN) of the encryption key for the repository link to be updated. """ -function update_repository_link( +update_repository_link( RepositoryLinkId; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "UpdateRepositoryLink", + Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "UpdateRepositoryLink", - Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_repository_link( RepositoryLinkId, params::AbstractDict{String}; @@ -1084,25 +1031,23 @@ syncing to continue. - `sync_type`: The sync type of the sync blocker to be updated. """ -function update_sync_blocker( +update_sync_blocker( Id, ResolvedReason, ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeconnections( + "UpdateSyncBlocker", + Dict{String,Any}( + "Id" => Id, + "ResolvedReason" => ResolvedReason, + "ResourceName" => ResourceName, + "SyncType" => SyncType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "UpdateSyncBlocker", - Dict{String,Any}( - "Id" => Id, - "ResolvedReason" => ResolvedReason, - "ResourceName" => ResourceName, - "SyncType" => SyncType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sync_blocker( Id, ResolvedReason, @@ -1152,16 +1097,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleArn"`: The ARN of the IAM role for the sync configuration to be updated. - `"TriggerResourceUpdateOn"`: When to trigger Git sync to begin the stack update. """ -function update_sync_configuration( +update_sync_configuration( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codeconnections( + "UpdateSyncConfiguration", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeconnections( - "UpdateSyncConfiguration", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sync_configuration( ResourceName, SyncType, diff --git a/src/services/codedeploy.jl b/src/services/codedeploy.jl index 72e1772ac..662ec0c44 100644 --- a/src/services/codedeploy.jl +++ b/src/services/codedeploy.jl @@ -16,16 +16,14 @@ Adds tags to on-premises instances. both required. Keys cannot be null or empty strings. Value-only tags are not allowed. """ -function add_tags_to_on_premises_instances( +add_tags_to_on_premises_instances( instanceNames, tags; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "AddTagsToOnPremisesInstances", + Dict{String,Any}("instanceNames" => instanceNames, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "AddTagsToOnPremisesInstances", - Dict{String,Any}("instanceNames" => instanceNames, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_on_premises_instances( instanceNames, tags, @@ -61,16 +59,14 @@ revisions that can be returned is 25. RevisionLocation objects you can specify is 25. """ -function batch_get_application_revisions( +batch_get_application_revisions( applicationName, revisions; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "BatchGetApplicationRevisions", + Dict{String,Any}("applicationName" => applicationName, "revisions" => revisions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "BatchGetApplicationRevisions", - Dict{String,Any}("applicationName" => applicationName, "revisions" => revisions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_application_revisions( applicationName, revisions, @@ -105,16 +101,14 @@ can be returned is 100. of application names you can specify is 100. """ -function batch_get_applications( +batch_get_applications( applicationNames; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "BatchGetApplications", + Dict{String,Any}("applicationNames" => applicationNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "BatchGetApplications", - Dict{String,Any}("applicationNames" => applicationNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_applications( applicationNames, params::AbstractDict{String}; @@ -144,21 +138,19 @@ Gets information about one or more deployment groups. - `deployment_group_names`: The names of the deployment groups. """ -function batch_get_deployment_groups( +batch_get_deployment_groups( applicationName, deploymentGroupNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = codedeploy( + "BatchGetDeploymentGroups", + Dict{String,Any}( + "applicationName" => applicationName, + "deploymentGroupNames" => deploymentGroupNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "BatchGetDeploymentGroups", - Dict{String,Any}( - "applicationName" => applicationName, - "deploymentGroupNames" => deploymentGroupNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_deployment_groups( applicationName, deploymentGroupNames, @@ -197,16 +189,14 @@ with all compute platforms. The maximum number of instances that can be returned instance IDs you can specify is 25. """ -function batch_get_deployment_instances( +batch_get_deployment_instances( deploymentId, instanceIds; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "BatchGetDeploymentInstances", + Dict{String,Any}("deploymentId" => deploymentId, "instanceIds" => instanceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "BatchGetDeploymentInstances", - Dict{String,Any}("deploymentId" => deploymentId, "instanceIds" => instanceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_deployment_instances( deploymentId, instanceIds, @@ -257,16 +247,14 @@ by a CloudFormation stack update. IDs. Their target type is cloudFormationTarget. """ -function batch_get_deployment_targets( +batch_get_deployment_targets( deploymentId, targetIds; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "BatchGetDeploymentTargets", + Dict{String,Any}("deploymentId" => deploymentId, "targetIds" => targetIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "BatchGetDeploymentTargets", - Dict{String,Any}("deploymentId" => deploymentId, "targetIds" => targetIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_deployment_targets( deploymentId, targetIds, @@ -299,16 +287,13 @@ be returned is 25. deployment IDs you can specify is 25. """ -function batch_get_deployments( - deploymentIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +batch_get_deployments(deploymentIds; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "BatchGetDeployments", Dict{String,Any}("deploymentIds" => deploymentIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_deployments( deploymentIds, params::AbstractDict{String}; @@ -336,16 +321,14 @@ instances that can be returned is 25. The maximum number of instance names you can specify is 25. """ -function batch_get_on_premises_instances( +batch_get_on_premises_instances( instanceNames; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "BatchGetOnPremisesInstances", + Dict{String,Any}("instanceNames" => instanceNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "BatchGetOnPremisesInstances", - Dict{String,Any}("instanceNames" => instanceNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_on_premises_instances( instanceNames, params::AbstractDict{String}; @@ -379,11 +362,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys indicates that the deployment is ready to start shifting traffic. TERMINATION_WAIT indicates that the traffic is shifted, but the original target is not terminated. """ -function continue_deployment(; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( - "ContinueDeployment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +continue_deployment(; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy("ContinueDeployment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function continue_deployment( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -410,16 +390,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and categorize them. Each tag consists of a key and an optional value, both of which you define. """ -function create_application( - applicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +create_application(applicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "CreateApplication", Dict{String,Any}("applicationName" => applicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_application( applicationName, params::AbstractDict{String}; @@ -497,16 +474,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"updateOutdatedInstancesOnly"`: Indicates whether to deploy to all instances or only to instances that are not running the latest application revision. """ -function create_deployment( - applicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +create_deployment(applicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "CreateDeployment", Dict{String,Any}("applicationName" => applicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_deployment( applicationName, params::AbstractDict{String}; @@ -554,16 +528,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide. """ -function create_deployment_config( +create_deployment_config( deploymentConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "CreateDeploymentConfig", + Dict{String,Any}("deploymentConfigName" => deploymentConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "CreateDeploymentConfig", - Dict{String,Any}("deploymentConfigName" => deploymentConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deployment_config( deploymentConfigName, params::AbstractDict{String}; @@ -654,23 +626,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is created. For examples, see Create a Trigger for an CodeDeploy Event in the CodeDeploy User Guide. """ -function create_deployment_group( +create_deployment_group( applicationName, deploymentGroupName, serviceRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = codedeploy( + "CreateDeploymentGroup", + Dict{String,Any}( + "applicationName" => applicationName, + "deploymentGroupName" => deploymentGroupName, + "serviceRoleArn" => serviceRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "CreateDeploymentGroup", - Dict{String,Any}( - "applicationName" => applicationName, - "deploymentGroupName" => deploymentGroupName, - "serviceRoleArn" => serviceRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deployment_group( applicationName, deploymentGroupName, @@ -707,16 +677,13 @@ Deletes an application. Amazon Web Services account. """ -function delete_application( - applicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +delete_application(applicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "DeleteApplication", Dict{String,Any}("applicationName" => applicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( applicationName, params::AbstractDict{String}; @@ -746,16 +713,14 @@ currently in use. Predefined configurations cannot be deleted. or Amazon Web Services account. """ -function delete_deployment_config( +delete_deployment_config( deploymentConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "DeleteDeploymentConfig", + Dict{String,Any}("deploymentConfigName" => deploymentConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "DeleteDeploymentConfig", - Dict{String,Any}("deploymentConfigName" => deploymentConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_deployment_config( deploymentConfigName, params::AbstractDict{String}; @@ -787,19 +752,17 @@ Deletes a deployment group. - `deployment_group_name`: The name of a deployment group for the specified application. """ -function delete_deployment_group( +delete_deployment_group( applicationName, deploymentGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "DeleteDeploymentGroup", + Dict{String,Any}( + "applicationName" => applicationName, + "deploymentGroupName" => deploymentGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "DeleteDeploymentGroup", - Dict{String,Any}( - "applicationName" => applicationName, - "deploymentGroupName" => deploymentGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_deployment_group( applicationName, deploymentGroupName, @@ -833,11 +796,10 @@ Deletes a GitHub account connection. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tokenName"`: The name of the GitHub account connection to delete. """ -function delete_git_hub_account_token(; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( +delete_git_hub_account_token(; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "DeleteGitHubAccountToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_git_hub_account_token( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -864,15 +826,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"externalId"`: The unique ID of an external resource (for example, a CloudFormation stack ID) that is linked to one or more CodeDeploy resources. """ -function delete_resources_by_external_id(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +delete_resources_by_external_id(; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "DeleteResourcesByExternalId"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resources_by_external_id( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -894,16 +853,14 @@ Deregisters an on-premises instance. - `instance_name`: The name of the on-premises instance to deregister. """ -function deregister_on_premises_instance( +deregister_on_premises_instance( instanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "DeregisterOnPremisesInstance", + Dict{String,Any}("instanceName" => instanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "DeregisterOnPremisesInstance", - Dict{String,Any}("instanceName" => instanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_on_premises_instance( instanceName, params::AbstractDict{String}; @@ -930,16 +887,13 @@ Gets information about an application. Amazon Web Services account. """ -function get_application( - applicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +get_application(applicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "GetApplication", Dict{String,Any}("applicationName" => applicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_application( applicationName, params::AbstractDict{String}; @@ -969,16 +923,14 @@ Gets information about an application revision. location. """ -function get_application_revision( +get_application_revision( applicationName, revision; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "GetApplicationRevision", + Dict{String,Any}("applicationName" => applicationName, "revision" => revision); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "GetApplicationRevision", - Dict{String,Any}("applicationName" => applicationName, "revision" => revision); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_revision( applicationName, revision, @@ -1014,14 +966,13 @@ the returned appSpecContent object to get the content of the deployment’s AppS Services account. """ -function get_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( +get_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "GetDeployment", Dict{String,Any}("deploymentId" => deploymentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_deployment( deploymentId, params::AbstractDict{String}; @@ -1048,16 +999,14 @@ Gets information about a deployment configuration. or Amazon Web Services account. """ -function get_deployment_config( +get_deployment_config( deploymentConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "GetDeploymentConfig", + Dict{String,Any}("deploymentConfigName" => deploymentConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "GetDeploymentConfig", - Dict{String,Any}("deploymentConfigName" => deploymentConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment_config( deploymentConfigName, params::AbstractDict{String}; @@ -1089,19 +1038,17 @@ Gets information about a deployment group. - `deployment_group_name`: The name of a deployment group for the specified application. """ -function get_deployment_group( +get_deployment_group( applicationName, deploymentGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "GetDeploymentGroup", + Dict{String,Any}( + "applicationName" => applicationName, + "deploymentGroupName" => deploymentGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "GetDeploymentGroup", - Dict{String,Any}( - "applicationName" => applicationName, - "deploymentGroupName" => deploymentGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment_group( applicationName, deploymentGroupName, @@ -1136,16 +1083,14 @@ Gets information about an instance as part of a deployment. - `instance_id`: The unique ID of an instance in the deployment group. """ -function get_deployment_instance( +get_deployment_instance( deploymentId, instanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "GetDeploymentInstance", + Dict{String,Any}("deploymentId" => deploymentId, "instanceId" => instanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "GetDeploymentInstance", - Dict{String,Any}("deploymentId" => deploymentId, "instanceId" => instanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment_instance( deploymentId, instanceId, @@ -1179,16 +1124,14 @@ end - `target_id`: The unique ID of a deployment target. """ -function get_deployment_target( +get_deployment_target( deploymentId, targetId; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "GetDeploymentTarget", + Dict{String,Any}("deploymentId" => deploymentId, "targetId" => targetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "GetDeploymentTarget", - Dict{String,Any}("deploymentId" => deploymentId, "targetId" => targetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment_target( deploymentId, targetId, @@ -1219,16 +1162,13 @@ end - `instance_name`: The name of the on-premises instance about which to get information. """ -function get_on_premises_instance( - instanceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +get_on_premises_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "GetOnPremisesInstance", Dict{String,Any}("instanceName" => instanceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_on_premises_instance( instanceName, params::AbstractDict{String}; @@ -1275,16 +1215,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys order. descending: descending order. If not specified, the results are sorted in ascending order. If set to null, the results are sorted in an arbitrary order. """ -function list_application_revisions( +list_application_revisions( applicationName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "ListApplicationRevisions", + Dict{String,Any}("applicationName" => applicationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "ListApplicationRevisions", - Dict{String,Any}("applicationName" => applicationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_revisions( applicationName, params::AbstractDict{String}; @@ -1313,11 +1251,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier returned from the previous list applications call. It can be used to return the next set of applications in the list. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( - "ListApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy("ListApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1337,11 +1272,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier returned from the previous ListDeploymentConfigs call. It can be used to return the next set of deployment configurations in the list. """ -function list_deployment_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( - "ListDeploymentConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_deployment_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = codedeploy( + "ListDeploymentConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_deployment_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1369,16 +1302,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier returned from the previous list deployment groups call. It can be used to return the next set of deployment groups in the list. """ -function list_deployment_groups( +list_deployment_groups( applicationName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "ListDeploymentGroups", + Dict{String,Any}("applicationName" => applicationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "ListDeploymentGroups", - Dict{String,Any}("applicationName" => applicationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_deployment_groups( applicationName, params::AbstractDict{String}; @@ -1422,16 +1353,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier returned from the previous list deployment instances call. It can be used to return the next set of deployment instances in the list. """ -function list_deployment_instances( +list_deployment_instances( deploymentId; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "ListDeploymentInstances", + Dict{String,Any}("deploymentId" => deploymentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "ListDeploymentInstances", - Dict{String,Any}("deploymentId" => deploymentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_deployment_instances( deploymentId, params::AbstractDict{String}; @@ -1465,16 +1394,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Skipped, Succeeded, or Unknown. ServerInstanceLabel - A ServerInstanceLabel filter string can be Blue or Green. """ -function list_deployment_targets( - deploymentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +list_deployment_targets(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "ListDeploymentTargets", Dict{String,Any}("deploymentId" => deploymentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_deployment_targets( deploymentId, params::AbstractDict{String}; @@ -1518,11 +1444,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier returned from the previous list deployments call. It can be used to return the next set of deployments in the list. """ -function list_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( - "ListDeployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy("ListDeployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_deployments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1542,15 +1465,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier returned from the previous ListGitHubAccountTokenNames call. It can be used to return the next set of names in the list. """ -function list_git_hub_account_token_names(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +list_git_hub_account_token_names(; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "ListGitHubAccountTokenNames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_git_hub_account_token_names( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1581,11 +1501,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tagFilters"`: The on-premises instance tags that are used to restrict the on-premises instance names returned. """ -function list_on_premises_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( +list_on_premises_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "ListOnPremisesInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_on_premises_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1613,16 +1532,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An identifier returned from the previous ListTagsForResource call. It can be used to return the next set of applications in the list. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1660,15 +1576,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The values listed in Valid Values are valid for lifecycle statuses in general; however, only Succeeded and Failed can be passed successfully in your API call. """ -function put_lifecycle_event_hook_execution_status(; +put_lifecycle_event_hook_execution_status(; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "PutLifecycleEventHookExecutionStatus"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "PutLifecycleEventHookExecutionStatus"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_lifecycle_event_hook_execution_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1696,16 +1610,14 @@ Registers with CodeDeploy a revision for the specified application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A comment about the revision. """ -function register_application_revision( +register_application_revision( applicationName, revision; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "RegisterApplicationRevision", + Dict{String,Any}("applicationName" => applicationName, "revision" => revision); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "RegisterApplicationRevision", - Dict{String,Any}("applicationName" => applicationName, "revision" => revision); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_application_revision( applicationName, revision, @@ -1743,16 +1655,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"iamSessionArn"`: The ARN of the IAM session to associate with the on-premises instance. - `"iamUserArn"`: The ARN of the user to associate with the on-premises instance. """ -function register_on_premises_instance( +register_on_premises_instance( instanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "RegisterOnPremisesInstance", + Dict{String,Any}("instanceName" => instanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "RegisterOnPremisesInstance", - Dict{String,Any}("instanceName" => instanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_on_premises_instance( instanceName, params::AbstractDict{String}; @@ -1779,16 +1689,14 @@ Removes one or more tags from one or more on-premises instances. - `tags`: The tag key-value pairs to remove from the on-premises instances. """ -function remove_tags_from_on_premises_instances( +remove_tags_from_on_premises_instances( instanceNames, tags; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "RemoveTagsFromOnPremisesInstances", + Dict{String,Any}("instanceNames" => instanceNames, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "RemoveTagsFromOnPremisesInstances", - Dict{String,Any}("instanceNames" => instanceNames, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_on_premises_instances( instanceNames, tags, @@ -1821,15 +1729,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deploymentId"`: The unique ID of a blue/green deployment for which you want to skip the instance termination wait time. """ -function skip_wait_time_for_instance_termination(; +skip_wait_time_for_instance_termination(; aws_config::AbstractAWSConfig=current_aws_config() +) = codedeploy( + "SkipWaitTimeForInstanceTermination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "SkipWaitTimeForInstanceTermination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function skip_wait_time_for_instance_termination( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1856,14 +1762,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys have been updated should be rolled back to the previous version of the application revision. """ -function stop_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( +stop_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "StopDeployment", Dict{String,Any}("deploymentId" => deploymentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_deployment( deploymentId, params::AbstractDict{String}; @@ -1893,14 +1798,13 @@ the ResourceArn input parameter. identified by the ResourceArn input parameter. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1936,16 +1840,13 @@ input parameter. disassociated from the resource specified by the ResourceArn input parameter. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codedeploy( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1977,11 +1878,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"applicationName"`: The current name of the application you want to change. - `"newApplicationName"`: The new name to give the application. """ -function update_application(; aws_config::AbstractAWSConfig=current_aws_config()) - return codedeploy( - "UpdateApplication"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_application(; aws_config::AbstractAWSConfig=current_aws_config()) = + codedeploy("UpdateApplication"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_application( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2058,21 +1956,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is updated. For examples, see Edit a Trigger in a CodeDeploy Deployment Group in the CodeDeploy User Guide. """ -function update_deployment_group( +update_deployment_group( applicationName, currentDeploymentGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codedeploy( + "UpdateDeploymentGroup", + Dict{String,Any}( + "applicationName" => applicationName, + "currentDeploymentGroupName" => currentDeploymentGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codedeploy( - "UpdateDeploymentGroup", - Dict{String,Any}( - "applicationName" => applicationName, - "currentDeploymentGroupName" => currentDeploymentGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_deployment_group( applicationName, currentDeploymentGroupName, diff --git a/src/services/codeguru_reviewer.jl b/src/services/codeguru_reviewer.jl index e62e257cb..b5cf92e91 100644 --- a/src/services/codeguru_reviewer.jl +++ b/src/services/codeguru_reviewer.jl @@ -40,10 +40,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (for example, 111122223333, Production, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive. """ -function associate_repository( - Repository; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_reviewer( +associate_repository(Repository; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_reviewer( "POST", "/associations", Dict{String,Any}( @@ -52,7 +50,6 @@ function associate_repository( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_repository( Repository, params::AbstractDict{String}; @@ -97,22 +94,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries. """ -function create_code_review( +create_code_review( Name, RepositoryAssociationArn, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguru_reviewer( + "POST", + "/codereviews", + Dict{String,Any}( + "Name" => Name, + "RepositoryAssociationArn" => RepositoryAssociationArn, + "Type" => Type, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguru_reviewer( - "POST", - "/codereviews", - Dict{String,Any}( - "Name" => Name, - "RepositoryAssociationArn" => RepositoryAssociationArn, - "Type" => Type, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_code_review( Name, RepositoryAssociationArn, @@ -150,16 +145,13 @@ Returns the metadata associated with the code review along with its status. - `code_review_arn`: The Amazon Resource Name (ARN) of the CodeReview object. """ -function describe_code_review( - CodeReviewArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_reviewer( +describe_code_review(CodeReviewArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_reviewer( "GET", "/codereviews/$(CodeReviewArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_code_review( CodeReviewArn, params::AbstractDict{String}; @@ -193,17 +185,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Specifying a Principal in the Amazon Web Services Identity and Access Management User Guide. """ -function describe_recommendation_feedback( +describe_recommendation_feedback( CodeReviewArn, RecommendationId; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguru_reviewer( + "GET", + "/feedback/$(CodeReviewArn)", + Dict{String,Any}("RecommendationId" => RecommendationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguru_reviewer( - "GET", - "/feedback/$(CodeReviewArn)", - Dict{String,Any}("RecommendationId" => RecommendationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_recommendation_feedback( CodeReviewArn, RecommendationId, @@ -235,16 +225,14 @@ repository association. You can retrieve this ARN by calling ListRepositoryAssociations. """ -function describe_repository_association( +describe_repository_association( AssociationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguru_reviewer( + "GET", + "/associations/$(AssociationArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguru_reviewer( - "GET", - "/associations/$(AssociationArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_repository_association( AssociationArn, params::AbstractDict{String}; @@ -270,16 +258,14 @@ Removes the association between Amazon CodeGuru Reviewer and a repository. You can retrieve this ARN by calling ListRepositoryAssociations. """ -function disassociate_repository( +disassociate_repository( AssociationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguru_reviewer( + "DELETE", + "/associations/$(AssociationArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguru_reviewer( - "DELETE", - "/associations/$(AssociationArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_repository( AssociationArn, params::AbstractDict{String}; @@ -320,15 +306,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys review started and has not completed or failed. Failed: The code review failed. Deleting: The code review is being deleted. """ -function list_code_reviews(Type; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_reviewer( +list_code_reviews(Type; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_reviewer( "GET", "/codereviews", Dict{String,Any}("Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_code_reviews( Type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -366,16 +351,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Resource Name (ARN). For more information, see Specifying a Principal in the Amazon Web Services Identity and Access Management User Guide. """ -function list_recommendation_feedback( +list_recommendation_feedback( CodeReviewArn; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguru_reviewer( + "GET", + "/feedback/$(CodeReviewArn)/RecommendationFeedback"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguru_reviewer( - "GET", - "/feedback/$(CodeReviewArn)/RecommendationFeedback"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_recommendation_feedback( CodeReviewArn, params::AbstractDict{String}; @@ -405,16 +388,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 100. - `"NextToken"`: Pagination token. """ -function list_recommendations( - CodeReviewArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_reviewer( +list_recommendations(CodeReviewArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_reviewer( "GET", "/codereviews/$(CodeReviewArn)/Recommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_recommendations( CodeReviewArn, params::AbstractDict{String}; @@ -473,11 +453,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys has been disassociated. For more information, see Using tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide. """ -function list_repository_associations(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_reviewer( +list_repository_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_reviewer( "GET", "/associations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_repository_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -501,16 +480,13 @@ Returns the list of tags associated with an associated repository resource. can retrieve this ARN by calling ListRepositoryAssociations. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_reviewer( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_reviewer( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -540,24 +516,22 @@ again with different reactions the previous feedback is overwritten. recommendations and then to collect the feedback. """ -function put_recommendation_feedback( +put_recommendation_feedback( CodeReviewArn, Reactions, RecommendationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguru_reviewer( + "PUT", + "/feedback", + Dict{String,Any}( + "CodeReviewArn" => CodeReviewArn, + "Reactions" => Reactions, + "RecommendationId" => RecommendationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguru_reviewer( - "PUT", - "/feedback", - Dict{String,Any}( - "CodeReviewArn" => CodeReviewArn, - "Reactions" => Reactions, - "RecommendationId" => RecommendationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_recommendation_feedback( CodeReviewArn, Reactions, @@ -600,15 +574,14 @@ Adds one or more tags to an associated repository. can retrieve this ARN by calling ListRepositoryAssociations. """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_reviewer( +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_reviewer( "POST", "/tags/$(resourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Tags, resourceArn, @@ -637,17 +610,14 @@ Removes a tag from an associated repository. repository. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_reviewer( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_reviewer( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/codeguru_security.jl b/src/services/codeguru_security.jl index 92aa33d42..bc80b83b6 100644 --- a/src/services/codeguru_security.jl +++ b/src/services/codeguru_security.jl @@ -15,17 +15,14 @@ Returns a list of requested findings from standard scans. scanName and a findingId. You retrieve the findingId when you call GetFindings. """ -function batch_get_findings( - findingIdentifiers; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_security( +batch_get_findings(findingIdentifiers; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "POST", "/batchGetFindings", Dict{String,Any}("findingIdentifiers" => findingIdentifiers); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_findings( findingIdentifiers, params::AbstractDict{String}; @@ -74,10 +71,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Production, or a team name. Omitting the tag value is the same as using an empty string. Tag values are case sensitive. """ -function create_scan( - resourceId, scanName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_security( +create_scan(resourceId, scanName; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "POST", "/scans", Dict{String,Any}( @@ -88,7 +83,6 @@ function create_scan( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_scan( resourceId, scanName, @@ -128,15 +122,14 @@ with the request headers using any HTTP client. Use this scanName when you call CreateScan on the code resource you upload to this URL. """ -function create_upload_url(scanName; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_security( +create_upload_url(scanName; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "POST", "/uploadUrl", Dict{String,Any}("scanName" => scanName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_upload_url( scanName, params::AbstractDict{String}; @@ -160,14 +153,13 @@ end Use to get the encryption configuration for an account. """ -function get_account_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_security( +get_account_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "GET", "/accountConfiguration/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_account_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -201,14 +193,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the first page. - `"status"`: The status of the findings you want to get. Pass either Open, Closed, or All. """ -function get_findings(scanName; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_security( +get_findings(scanName; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "GET", "/findings/$(scanName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_findings( scanName, params::AbstractDict{String}; @@ -236,15 +227,14 @@ with most open critical findings. The date must be within the past two years. """ -function get_metrics_summary(date; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_security( +get_metrics_summary(date; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "GET", "/metrics/summary", Dict{String,Any}("date" => date); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_metrics_summary( date, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -272,11 +262,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You retrieve this when you call the CreateScan operation. Defaults to the latest scan run if missing. """ -function get_scan(scanName; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_security( - "GET", "/scans/$(scanName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_scan(scanName; aws_config::AbstractAWSConfig=current_aws_config()) = codeguru_security( + "GET", "/scans/$(scanName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_scan( scanName, params::AbstractDict{String}; @@ -314,17 +302,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the nextToken value returned from the previous request to continue listing results after the first page. """ -function list_findings_metrics( +list_findings_metrics( endDate, startDate; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguru_security( + "GET", + "/metrics/findings", + Dict{String,Any}("endDate" => endDate, "startDate" => startDate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguru_security( - "GET", - "/metrics/findings", - Dict{String,Any}("endDate" => endDate, "startDate" => startDate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_findings_metrics( endDate, startDate, @@ -363,11 +349,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the nextToken value returned from the previous request to continue listing results after the first page. """ -function list_scans(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_security( - "GET", "/scans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_scans(; aws_config::AbstractAWSConfig=current_aws_config()) = codeguru_security( + "GET", "/scans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_scans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -387,16 +371,13 @@ Returns a list of all tags associated with a scan. CreateScan, ListScans, or GetScan. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_security( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -427,15 +408,14 @@ Use to add one or more tags to an existing scan. empty string. Tag values are case sensitive. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguru_security( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -463,17 +443,14 @@ Use to remove one or more tags from an existing scan. - `tag_keys`: A list of keys for each tag you want to remove from a scan. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguru_security( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguru_security( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -502,17 +479,15 @@ Use to update the encryption configuration for an account. AWS-managed key for encryption instead, pass nothing. """ -function update_account_configuration( +update_account_configuration( encryptionConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguru_security( + "PUT", + "/updateAccountConfiguration", + Dict{String,Any}("encryptionConfig" => encryptionConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguru_security( - "PUT", - "/updateAccountConfiguration", - Dict{String,Any}("encryptionConfig" => encryptionConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_account_configuration( encryptionConfig, params::AbstractDict{String}; diff --git a/src/services/codeguruprofiler.jl b/src/services/codeguruprofiler.jl index a3b31b2e8..e00bb7876 100644 --- a/src/services/codeguruprofiler.jl +++ b/src/services/codeguruprofiler.jl @@ -16,17 +16,15 @@ Add up to 2 anomaly notifications channels for a profiling group. notifications for. """ -function add_notification_channels( +add_notification_channels( channels, profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguruprofiler( + "POST", + "/profilingGroups/$(profilingGroupName)/notificationConfiguration", + Dict{String,Any}("channels" => channels); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "POST", - "/profilingGroups/$(profilingGroupName)/notificationConfiguration", - Dict{String,Any}("channels" => channels); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_notification_channels( channels, profilingGroupName, @@ -74,16 +72,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resolution after the target resolution. There are 3 valid values. P1D — 1 day PT1H — 1 hour PT5M — 5 minutes """ -function batch_get_frame_metric_data( +batch_get_frame_metric_data( profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguruprofiler( + "POST", + "/profilingGroups/$(profilingGroupName)/frames/-/metrics"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "POST", - "/profilingGroups/$(profilingGroupName)/frames/-/metrics"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_frame_metric_data( profilingGroupName, params::AbstractDict{String}; @@ -128,16 +124,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS - The time in milliseconds for the previous Lambda invocation. """ -function configure_agent( - profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguruprofiler( +configure_agent(profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguruprofiler( "POST", "/profilingGroups/$(profilingGroupName)/configureAgent"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function configure_agent( profilingGroupName, params::AbstractDict{String}; @@ -174,19 +167,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys platform. If not specified, Default is used. - `"tags"`: A list of tags to add to the created profiling group. """ -function create_profiling_group( +create_profiling_group( clientToken, profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguruprofiler( + "POST", + "/profilingGroups", + Dict{String,Any}( + "clientToken" => clientToken, "profilingGroupName" => profilingGroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "POST", - "/profilingGroups", - Dict{String,Any}( - "clientToken" => clientToken, "profilingGroupName" => profilingGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_profiling_group( clientToken, profilingGroupName, @@ -220,16 +211,14 @@ Deletes a profiling group. - `profiling_group_name`: The name of the profiling group to delete. """ -function delete_profiling_group( +delete_profiling_group( profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguruprofiler( + "DELETE", + "/profilingGroups/$(profilingGroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "DELETE", - "/profilingGroups/$(profilingGroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_profiling_group( profilingGroupName, params::AbstractDict{String}; @@ -255,16 +244,14 @@ profiling group. - `profiling_group_name`: The name of the profiling group to get information about. """ -function describe_profiling_group( +describe_profiling_group( profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguruprofiler( + "GET", + "/profilingGroups/$(profilingGroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "GET", - "/profilingGroups/$(profilingGroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_profiling_group( profilingGroupName, params::AbstractDict{String}; @@ -302,16 +289,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned the nextToken value. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. """ -function get_findings_report_account_summary(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguruprofiler( +get_findings_report_account_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguruprofiler( "GET", "/internal/findingsReports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_findings_report_account_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -335,16 +319,14 @@ Get the current configuration for anomaly notifications for a profiling group. configuration for. """ -function get_notification_configuration( +get_notification_configuration( profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguruprofiler( + "GET", + "/profilingGroups/$(profilingGroupName)/notificationConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "GET", - "/profilingGroups/$(profilingGroupName)/notificationConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_notification_configuration( profilingGroupName, params::AbstractDict{String}; @@ -369,14 +351,13 @@ end - `profiling_group_name`: The name of the profiling group. """ -function get_policy(profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguruprofiler( +get_policy(profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguruprofiler( "GET", "/profilingGroups/$(profilingGroupName)/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_policy( profilingGroupName, params::AbstractDict{String}; @@ -461,14 +442,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify <code>period</code> or <code>endTime</code>, but not both. </p> """ -function get_profile(profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguruprofiler( +get_profile(profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguruprofiler( "GET", "/profilingGroups/$(profilingGroupName)/profile"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_profile( profilingGroupName, params::AbstractDict{String}; @@ -509,20 +489,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Republic of Korea pt-BR - Portugese, Brazil zh-CN - Chinese, China zh-TW - Chinese, Taiwan """ -function get_recommendations( +get_recommendations( endTime, profilingGroupName, startTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguruprofiler( + "GET", + "/internal/profilingGroups/$(profilingGroupName)/recommendations", + Dict{String,Any}("endTime" => endTime, "startTime" => startTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "GET", - "/internal/profilingGroups/$(profilingGroupName)/recommendations", - Dict{String,Any}("endTime" => endTime, "startTime" => startTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recommendations( endTime, profilingGroupName, @@ -577,20 +555,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned the nextToken value. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. """ -function list_findings_reports( +list_findings_reports( endTime, profilingGroupName, startTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguruprofiler( + "GET", + "/internal/profilingGroups/$(profilingGroupName)/findingsReports", + Dict{String,Any}("endTime" => endTime, "startTime" => startTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "GET", - "/internal/profilingGroups/$(profilingGroupName)/findingsReports", - Dict{String,Any}("endTime" => endTime, "startTime" => startTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_findings_reports( endTime, profilingGroupName, @@ -643,23 +619,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"orderBy"`: The order (ascending or descending by start time of the profile) to use when listing profiles. Defaults to TIMESTAMP_DESCENDING. """ -function list_profile_times( +list_profile_times( endTime, period, profilingGroupName, startTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguruprofiler( + "GET", + "/profilingGroups/$(profilingGroupName)/profileTimes", + Dict{String,Any}("endTime" => endTime, "period" => period, "startTime" => startTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "GET", - "/profilingGroups/$(profilingGroupName)/profileTimes", - Dict{String,Any}( - "endTime" => endTime, "period" => period, "startTime" => startTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_profile_times( endTime, period, @@ -709,11 +681,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. """ -function list_profiling_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguruprofiler( +list_profiling_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguruprofiler( "GET", "/profilingGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_profiling_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -737,16 +708,13 @@ end return. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguruprofiler( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguruprofiler( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -787,24 +755,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries. """ -function post_agent_profile( +post_agent_profile( Content_Type, agentProfile, profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguruprofiler( + "POST", + "/profilingGroups/$(profilingGroupName)/agentProfile", + Dict{String,Any}( + "agentProfile" => agentProfile, + "profileToken" => string(uuid4()), + "headers" => Dict{String,Any}("Content-Type" => Content_Type), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "POST", - "/profilingGroups/$(profilingGroupName)/agentProfile", - Dict{String,Any}( - "agentProfile" => agentProfile, - "profileToken" => string(uuid4()), - "headers" => Dict{String,Any}("Content-Type" => Content_Type), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function post_agent_profile( Content_Type, agentProfile, @@ -871,20 +837,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId. """ -function put_permission( +put_permission( actionGroup, principals, profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguruprofiler( + "PUT", + "/profilingGroups/$(profilingGroupName)/policy/$(actionGroup)", + Dict{String,Any}("principals" => principals); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "PUT", - "/profilingGroups/$(profilingGroupName)/policy/$(actionGroup)", - Dict{String,Any}("principals" => principals); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_permission( actionGroup, principals, @@ -915,16 +879,14 @@ Remove one anomaly notifications channel for a profiling group. configuration for. """ -function remove_notification_channel( +remove_notification_channel( channelId, profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = codeguruprofiler( + "DELETE", + "/profilingGroups/$(profilingGroupName)/notificationConfiguration/$(channelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "DELETE", - "/profilingGroups/$(profilingGroupName)/notificationConfiguration/$(channelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_notification_channel( channelId, profilingGroupName, @@ -959,20 +921,18 @@ ConfigureAgent , and PostAgentProfile . resource-based policy from which you want to remove permissions. """ -function remove_permission( +remove_permission( actionGroup, profilingGroupName, revisionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguruprofiler( + "DELETE", + "/profilingGroups/$(profilingGroupName)/policy/$(actionGroup)", + Dict{String,Any}("revisionId" => revisionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "DELETE", - "/profilingGroups/$(profilingGroupName)/policy/$(actionGroup)", - Dict{String,Any}("revisionId" => revisionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_permission( actionGroup, profilingGroupName, @@ -1009,20 +969,18 @@ useful or not. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"comment"`: Optional feedback about this anomaly. """ -function submit_feedback( +submit_feedback( anomalyInstanceId, profilingGroupName, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguruprofiler( + "POST", + "/internal/profilingGroups/$(profilingGroupName)/anomalies/$(anomalyInstanceId)/feedback", + Dict{String,Any}("type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "POST", - "/internal/profilingGroups/$(profilingGroupName)/anomalies/$(anomalyInstanceId)/feedback", - Dict{String,Any}("type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function submit_feedback( anomalyInstanceId, profilingGroupName, @@ -1051,15 +1009,14 @@ end - `tags`: The list of tags that are added to the specified resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codeguruprofiler( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguruprofiler( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1088,17 +1045,14 @@ end removed from the specified resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codeguruprofiler( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codeguruprofiler( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1126,19 +1080,17 @@ Updates a profiling group. - `profiling_group_name`: The name of the profiling group to update. """ -function update_profiling_group( +update_profiling_group( agentOrchestrationConfig, profilingGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codeguruprofiler( + "PUT", + "/profilingGroups/$(profilingGroupName)", + Dict{String,Any}("agentOrchestrationConfig" => agentOrchestrationConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codeguruprofiler( - "PUT", - "/profilingGroups/$(profilingGroupName)", - Dict{String,Any}("agentOrchestrationConfig" => agentOrchestrationConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_profiling_group( agentOrchestrationConfig, profilingGroupName, diff --git a/src/services/codepipeline.jl b/src/services/codepipeline.jl index 0e7dd4d07..d242f274a 100644 --- a/src/services/codepipeline.jl +++ b/src/services/codepipeline.jl @@ -18,14 +18,13 @@ worker. Used for custom actions only. PollForJobs request that returned this job. """ -function acknowledge_job(jobId, nonce; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( +acknowledge_job(jobId, nonce; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "AcknowledgeJob", Dict{String,Any}("jobId" => jobId, "nonce" => nonce); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function acknowledge_job( jobId, nonce, @@ -57,16 +56,14 @@ Confirms a job worker has received the specified job. Used for partner actions o GetThirdPartyJobDetails request. """ -function acknowledge_third_party_job( +acknowledge_third_party_job( clientToken, jobId, nonce; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "AcknowledgeThirdPartyJob", + Dict{String,Any}("clientToken" => clientToken, "jobId" => jobId, "nonce" => nonce); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "AcknowledgeThirdPartyJob", - Dict{String,Any}("clientToken" => clientToken, "jobId" => jobId, "nonce" => nonce); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function acknowledge_third_party_job( clientToken, jobId, @@ -116,27 +113,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"settings"`: URLs that provide users information about this custom action. - `"tags"`: The tags for the custom action. """ -function create_custom_action_type( +create_custom_action_type( category, inputArtifactDetails, outputArtifactDetails, provider, version; aws_config::AbstractAWSConfig=current_aws_config(), +) = codepipeline( + "CreateCustomActionType", + Dict{String,Any}( + "category" => category, + "inputArtifactDetails" => inputArtifactDetails, + "outputArtifactDetails" => outputArtifactDetails, + "provider" => provider, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "CreateCustomActionType", - Dict{String,Any}( - "category" => category, - "inputArtifactDetails" => inputArtifactDetails, - "outputArtifactDetails" => outputArtifactDetails, - "provider" => provider, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_action_type( category, inputArtifactDetails, @@ -182,14 +177,13 @@ action in your pipeline, you must use artifactStores. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The tags for the pipeline. """ -function create_pipeline(pipeline; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( +create_pipeline(pipeline; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "CreatePipeline", Dict{String,Any}("pipeline" => pipeline); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_pipeline( pipeline, params::AbstractDict{String}; @@ -223,18 +217,14 @@ original string in the version field. - `version`: The version of the custom action to delete. """ -function delete_custom_action_type( +delete_custom_action_type( category, provider, version; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "DeleteCustomActionType", + Dict{String,Any}("category" => category, "provider" => provider, "version" => version); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "DeleteCustomActionType", - Dict{String,Any}( - "category" => category, "provider" => provider, "version" => version - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_action_type( category, provider, @@ -268,14 +258,12 @@ Deletes the specified pipeline. - `name`: The name of the pipeline to be deleted. """ -function delete_pipeline(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( - "DeletePipeline", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_pipeline(name; aws_config::AbstractAWSConfig=current_aws_config()) = codepipeline( + "DeletePipeline", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_pipeline( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -300,14 +288,12 @@ calling PutWebhook with the same name, it will have a different URL. - `name`: The name of the webhook you want to delete. """ -function delete_webhook(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( - "DeleteWebhook", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_webhook(name; aws_config::AbstractAWSConfig=current_aws_config()) = codepipeline( + "DeleteWebhook", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_webhook( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -331,15 +317,12 @@ an action type of GitHub. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"webhookName"`: The name of the webhook you want to deregister. """ -function deregister_webhook_with_third_party(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return codepipeline( +deregister_webhook_with_third_party(; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "DeregisterWebhookWithThirdParty"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_webhook_with_third_party( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -370,25 +353,23 @@ Prevents artifacts in a pipeline from transitioning to the next stage in the pip (outbound). """ -function disable_stage_transition( +disable_stage_transition( pipelineName, reason, stageName, transitionType; aws_config::AbstractAWSConfig=current_aws_config(), +) = codepipeline( + "DisableStageTransition", + Dict{String,Any}( + "pipelineName" => pipelineName, + "reason" => reason, + "stageName" => stageName, + "transitionType" => transitionType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "DisableStageTransition", - Dict{String,Any}( - "pipelineName" => pipelineName, - "reason" => reason, - "stageName" => stageName, - "transitionType" => transitionType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_stage_transition( pipelineName, reason, @@ -432,23 +413,21 @@ Enables artifacts in a pipeline to transition to a stage in a pipeline. allowed to transition to the next stage (outbound). """ -function enable_stage_transition( +enable_stage_transition( pipelineName, stageName, transitionType; aws_config::AbstractAWSConfig=current_aws_config(), +) = codepipeline( + "EnableStageTransition", + Dict{String,Any}( + "pipelineName" => pipelineName, + "stageName" => stageName, + "transitionType" => transitionType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "EnableStageTransition", - Dict{String,Any}( - "pipelineName" => pipelineName, - "stageName" => stageName, - "transitionType" => transitionType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_stage_transition( pipelineName, stageName, @@ -492,21 +471,19 @@ supported integration model. - `version`: A string that describes the action type version. """ -function get_action_type( +get_action_type( category, owner, provider, version; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "GetActionType", + Dict{String,Any}( + "category" => category, + "owner" => owner, + "provider" => provider, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "GetActionType", - Dict{String,Any}( - "category" => category, - "owner" => owner, - "provider" => provider, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_action_type( category, owner, @@ -547,14 +524,12 @@ artifacts. This API also returns any secret values defined for the action. - `job_id`: The unique system-generated ID for the job. """ -function get_job_details(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( - "GetJobDetails", - Dict{String,Any}("jobId" => jobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job_details(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = codepipeline( + "GetJobDetails", + Dict{String,Any}("jobId" => jobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job_details( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -583,14 +558,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version"`: The version number of the pipeline. If you do not specify a version, defaults to the current version. """ -function get_pipeline(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( - "GetPipeline", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_pipeline(name; aws_config::AbstractAWSConfig=current_aws_config()) = codepipeline( + "GetPipeline", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_pipeline( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -615,18 +588,16 @@ the pipeline execution ID, and the name, version, and status of the pipeline. - `pipeline_name`: The name of the pipeline about which you want to get execution details. """ -function get_pipeline_execution( +get_pipeline_execution( pipelineExecutionId, pipelineName; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "GetPipelineExecution", + Dict{String,Any}( + "pipelineExecutionId" => pipelineExecutionId, "pipelineName" => pipelineName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "GetPipelineExecution", - Dict{String,Any}( - "pipelineExecutionId" => pipelineExecutionId, "pipelineName" => pipelineName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_pipeline_execution( pipelineExecutionId, pipelineName, @@ -662,14 +633,12 @@ information, such as the commit ID, for the current state. - `name`: The name of the pipeline about which you want to get information. """ -function get_pipeline_state(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( - "GetPipelineState", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_pipeline_state(name; aws_config::AbstractAWSConfig=current_aws_config()) = codepipeline( + "GetPipelineState", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_pipeline_state( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -696,16 +665,14 @@ input or output artifacts. This API also returns any secret values defined for t - `job_id`: The unique system-generated ID used for identifying the job. """ -function get_third_party_job_details( +get_third_party_job_details( clientToken, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "GetThirdPartyJobDetails", + Dict{String,Any}("clientToken" => clientToken, "jobId" => jobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "GetThirdPartyJobDetails", - Dict{String,Any}("clientToken" => clientToken, "jobId" => jobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_third_party_job_details( clientToken, jobId, @@ -746,16 +713,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token that was returned from the previous ListActionExecutions call, which can be used to return the next set of action executions in the list. """ -function list_action_executions( - pipelineName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codepipeline( +list_action_executions(pipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "ListActionExecutions", Dict{String,Any}("pipelineName" => pipelineName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_action_executions( pipelineName, params::AbstractDict{String}; @@ -785,11 +749,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which can be used to return the next set of action types in the list. - `"regionFilter"`: The Region to filter on for the list of action types. """ -function list_action_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( - "ListActionTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_action_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline("ListActionTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_action_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -820,16 +781,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token that was returned from the previous ListPipelineExecutions call, which can be used to return the next set of pipeline executions in the list. """ -function list_pipeline_executions( - pipelineName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codepipeline( +list_pipeline_executions(pipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "ListPipelineExecutions", Dict{String,Any}("pipelineName" => pipelineName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_pipeline_executions( pipelineName, params::AbstractDict{String}; @@ -859,16 +817,77 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous list pipelines call. It can be used to return the next set of pipelines in the list. """ -function list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) +list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline("ListPipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function list_pipelines( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return codepipeline( - "ListPipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "ListPipelines", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) end -function list_pipelines( + +""" + list_rule_executions(pipeline_name) + list_rule_executions(pipeline_name, params::Dict{String,<:Any}) + +Lists the rule executions that have occurred in a pipeline configured for conditions with +rules. + +# Arguments +- `pipeline_name`: The name of the pipeline for which you want to get execution summary + information. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"filter"`: Input information used to filter rule execution history. +- `"maxResults"`: The maximum number of results to return in a single call. To retrieve the + remaining results, make another call with the returned nextToken value. Pipeline history is + limited to the most recent 12 months, based on pipeline execution start times. Default + value is 100. +- `"nextToken"`: The token that was returned from the previous ListRuleExecutions call, + which can be used to return the next set of rule executions in the list. +""" +list_rule_executions(pipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( + "ListRuleExecutions", + Dict{String,Any}("pipelineName" => pipelineName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_rule_executions( + pipelineName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return codepipeline( + "ListRuleExecutions", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("pipelineName" => pipelineName), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_rule_types() + list_rule_types(params::Dict{String,<:Any}) + +Lists the rules for the condition. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"regionFilter"`: The rule Region to filter on. +- `"ruleOwnerFilter"`: The rule owner to filter on. +""" +list_rule_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline("ListRuleTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function list_rule_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return codepipeline( - "ListPipelines", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "ListRuleTypes", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) end @@ -888,16 +907,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys used to return the next page of the list. The ListTagsforResource call lists all available tags in one call and does not use pagination. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codepipeline( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -919,7 +935,7 @@ end Gets a listing of all the webhooks in this Amazon Web Services Region for this account. The output lists all webhooks and includes the webhook URL and ARN and the configuration for -each webhook. +each webhook. If a secret token was provided, it will be redacted in the response. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -928,11 +944,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token that was returned from the previous ListWebhooks call, which can be used to return the next set of webhooks in the list. """ -function list_webhooks(; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( - "ListWebhooks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_webhooks(; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline("ListWebhooks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_webhooks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -941,6 +954,64 @@ function list_webhooks( ) end +""" + override_stage_condition(condition_type, pipeline_execution_id, pipeline_name, stage_name) + override_stage_condition(condition_type, pipeline_execution_id, pipeline_name, stage_name, params::Dict{String,<:Any}) + +Used to override a stage condition. + +# Arguments +- `condition_type`: The type of condition to override for the stage, such as entry + conditions, failure conditions, or success conditions. +- `pipeline_execution_id`: The ID of the pipeline execution for the override. +- `pipeline_name`: The name of the pipeline with the stage that will override the condition. +- `stage_name`: The name of the stage for the override. + +""" +override_stage_condition( + conditionType, + pipelineExecutionId, + pipelineName, + stageName; + aws_config::AbstractAWSConfig=current_aws_config(), +) = codepipeline( + "OverrideStageCondition", + Dict{String,Any}( + "conditionType" => conditionType, + "pipelineExecutionId" => pipelineExecutionId, + "pipelineName" => pipelineName, + "stageName" => stageName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function override_stage_condition( + conditionType, + pipelineExecutionId, + pipelineName, + stageName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return codepipeline( + "OverrideStageCondition", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "conditionType" => conditionType, + "pipelineExecutionId" => pipelineExecutionId, + "pipelineName" => pipelineName, + "stageName" => stageName, + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ poll_for_jobs(action_type_id) poll_for_jobs(action_type_id, params::Dict{String,<:Any}) @@ -963,14 +1034,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys property, you must supply that property as a key in the map. Only jobs whose action configuration matches the mapped value are returned. """ -function poll_for_jobs(actionTypeId; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( +poll_for_jobs(actionTypeId; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "PollForJobs", Dict{String,Any}("actionTypeId" => actionTypeId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function poll_for_jobs( actionTypeId, params::AbstractDict{String}; @@ -1002,16 +1072,14 @@ to that S3 bucket for input or output artifacts. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"maxBatchSize"`: The maximum number of jobs to return in a poll for jobs call. """ -function poll_for_third_party_jobs( +poll_for_third_party_jobs( actionTypeId; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "PollForThirdPartyJobs", + Dict{String,Any}("actionTypeId" => actionTypeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "PollForThirdPartyJobs", - Dict{String,Any}("actionTypeId" => actionTypeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function poll_for_third_party_jobs( actionTypeId, params::AbstractDict{String}; @@ -1041,25 +1109,23 @@ Provides information to CodePipeline about new revisions to a source. - `stage_name`: The name of the stage that contains the action that acts on the revision. """ -function put_action_revision( +put_action_revision( actionName, actionRevision, pipelineName, stageName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codepipeline( + "PutActionRevision", + Dict{String,Any}( + "actionName" => actionName, + "actionRevision" => actionRevision, + "pipelineName" => pipelineName, + "stageName" => stageName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "PutActionRevision", - Dict{String,Any}( - "actionName" => actionName, - "actionRevision" => actionRevision, - "pipelineName" => pipelineName, - "stageName" => stageName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_action_revision( actionName, actionRevision, @@ -1104,27 +1170,25 @@ Approved and Rejected. used to validate that the approval request corresponding to this token is still valid. """ -function put_approval_result( +put_approval_result( actionName, pipelineName, result, stageName, token; aws_config::AbstractAWSConfig=current_aws_config(), +) = codepipeline( + "PutApprovalResult", + Dict{String,Any}( + "actionName" => actionName, + "pipelineName" => pipelineName, + "result" => result, + "stageName" => stageName, + "token" => token, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "PutApprovalResult", - Dict{String,Any}( - "actionName" => actionName, - "pipelineName" => pipelineName, - "result" => result, - "stageName" => stageName, - "token" => token, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_approval_result( actionName, pipelineName, @@ -1167,16 +1231,14 @@ custom actions only. returned from PollForJobs. """ -function put_job_failure_result( +put_job_failure_result( failureDetails, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "PutJobFailureResult", + Dict{String,Any}("failureDetails" => failureDetails, "jobId" => jobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "PutJobFailureResult", - Dict{String,Any}("failureDetails" => failureDetails, "jobId" => jobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_job_failure_result( failureDetails, jobId, @@ -1223,14 +1285,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available to a downstream action configuration. outputVariables can be included only when there is no continuation token on the request. """ -function put_job_success_result(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( +put_job_success_result(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "PutJobSuccessResult", Dict{String,Any}("jobId" => jobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_job_success_result( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1257,20 +1318,18 @@ Used for partner actions only. PollForThirdPartyJobs. """ -function put_third_party_job_failure_result( +put_third_party_job_failure_result( clientToken, failureDetails, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "PutThirdPartyJobFailureResult", + Dict{String,Any}( + "clientToken" => clientToken, + "failureDetails" => failureDetails, + "jobId" => jobId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "PutThirdPartyJobFailureResult", - Dict{String,Any}( - "clientToken" => clientToken, - "failureDetails" => failureDetails, - "jobId" => jobId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_third_party_job_failure_result( clientToken, failureDetails, @@ -1320,16 +1379,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"executionDetails"`: The details of the actions taken and results produced on an artifact as it passes through stages in the pipeline. """ -function put_third_party_job_success_result( +put_third_party_job_success_result( clientToken, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "PutThirdPartyJobSuccessResult", + Dict{String,Any}("clientToken" => clientToken, "jobId" => jobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "PutThirdPartyJobSuccessResult", - Dict{String,Any}("clientToken" => clientToken, "jobId" => jobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_third_party_job_success_result( clientToken, jobId, @@ -1360,7 +1417,14 @@ change. When CodePipeline receives a POST request on this URL, the pipeline defi webhook is started as long as the POST request satisfied the authentication and filtering requirements supplied when defining the webhook. RegisterWebhookWithThirdParty and DeregisterWebhookWithThirdParty APIs can be used to automatically configure supported third -parties to call the generated webhook URL. +parties to call the generated webhook URL. When creating CodePipeline webhooks, do not use +your own credentials or reuse the same secret token across multiple webhooks. For optimal +security, generate a unique secret token for each webhook you create. The secret token is +an arbitrary string that you provide, which GitHub uses to compute and sign the webhook +payloads sent to CodePipeline, for protecting the integrity and authenticity of the webhook +payloads. Using your own credentials or reusing the same token across multiple webhooks can +lead to security vulnerabilities. If a secret token was provided, it will be redacted in +the response. # Arguments - `webhook`: The detail provided in an input file to create the webhook, such as the @@ -1372,14 +1436,12 @@ parties to call the generated webhook URL. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The tags for the webhook. """ -function put_webhook(webhook; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( - "PutWebhook", - Dict{String,Any}("webhook" => webhook); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_webhook(webhook; aws_config::AbstractAWSConfig=current_aws_config()) = codepipeline( + "PutWebhook", + Dict{String,Any}("webhook" => webhook); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_webhook( webhook, params::AbstractDict{String}; @@ -1405,15 +1467,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"webhookName"`: The name of an existing webhook created with PutWebhook to register with a supported third party. """ -function register_webhook_with_third_party(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return codepipeline( +register_webhook_with_third_party(; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "RegisterWebhookWithThirdParty"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function register_webhook_with_third_party( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1446,25 +1505,23 @@ must either have all actions failed or some actions failed and some succeeded. - `stage_name`: The name of the failed stage to be retried. """ -function retry_stage_execution( +retry_stage_execution( pipelineExecutionId, pipelineName, retryMode, stageName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codepipeline( + "RetryStageExecution", + Dict{String,Any}( + "pipelineExecutionId" => pipelineExecutionId, + "pipelineName" => pipelineName, + "retryMode" => retryMode, + "stageName" => stageName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "RetryStageExecution", - Dict{String,Any}( - "pipelineExecutionId" => pipelineExecutionId, - "pipelineName" => pipelineName, - "retryMode" => retryMode, - "stageName" => stageName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function retry_stage_execution( pipelineExecutionId, pipelineName, @@ -1505,23 +1562,21 @@ Rolls back a stage execution. to. """ -function rollback_stage( +rollback_stage( pipelineName, stageName, targetPipelineExecutionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = codepipeline( + "RollbackStage", + Dict{String,Any}( + "pipelineName" => pipelineName, + "stageName" => stageName, + "targetPipelineExecutionId" => targetPipelineExecutionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "RollbackStage", - Dict{String,Any}( - "pipelineName" => pipelineName, - "stageName" => stageName, - "targetPipelineExecutionId" => targetPipelineExecutionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rollback_stage( pipelineName, stageName, @@ -1568,14 +1623,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys being started. Variable names must match [A-Za-z0-9@-_]+, and the values can be anything except an empty string. """ -function start_pipeline_execution(name; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( +start_pipeline_execution(name; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "StartPipelineExecution", Dict{String,Any}("name" => name, "clientRequestToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_pipeline_execution( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1615,18 +1669,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reason"`: Use this option to enter comments, such as the reason the pipeline was stopped. """ -function stop_pipeline_execution( +stop_pipeline_execution( pipelineExecutionId, pipelineName; aws_config::AbstractAWSConfig=current_aws_config() +) = codepipeline( + "StopPipelineExecution", + Dict{String,Any}( + "pipelineExecutionId" => pipelineExecutionId, "pipelineName" => pipelineName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codepipeline( - "StopPipelineExecution", - Dict{String,Any}( - "pipelineExecutionId" => pipelineExecutionId, "pipelineName" => pipelineName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_pipeline_execution( pipelineExecutionId, pipelineName, @@ -1662,14 +1714,13 @@ manage a resource. - `tags`: The tags you want to modify or add to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1701,16 +1752,13 @@ Removes tags from an Amazon Web Services resource. - `tag_keys`: The list of keys for the tags to be removed from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codepipeline( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1743,14 +1791,13 @@ the action definition and UpdateActionType to provide the full structure. - `action_type`: The action type definition for the action type to be updated. """ -function update_action_type(actionType; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( +update_action_type(actionType; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "UpdateActionType", Dict{String,Any}("actionType" => actionType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_action_type( actionType, params::AbstractDict{String}; @@ -1778,14 +1825,13 @@ Updating the pipeline increases the version number of the pipeline by 1. - `pipeline`: The name of the pipeline to be updated. """ -function update_pipeline(pipeline; aws_config::AbstractAWSConfig=current_aws_config()) - return codepipeline( +update_pipeline(pipeline; aws_config::AbstractAWSConfig=current_aws_config()) = + codepipeline( "UpdatePipeline", Dict{String,Any}("pipeline" => pipeline); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_pipeline( pipeline, params::AbstractDict{String}; diff --git a/src/services/codestar.jl b/src/services/codestar.jl deleted file mode 100644 index 66553811d..000000000 --- a/src/services/codestar.jl +++ /dev/null @@ -1,707 +0,0 @@ -# This file is auto-generated by AWSMetadata.jl -using AWS -using AWS.AWSServices: codestar -using AWS.Compat -using AWS.UUIDs - -""" - associate_team_member(project_id, project_role, user_arn) - associate_team_member(project_id, project_role, user_arn, params::Dict{String,<:Any}) - -Adds an IAM user to the team for an AWS CodeStar project. - -# Arguments -- `project_id`: The ID of the project to which you will add the IAM user. -- `project_role`: The AWS CodeStar project role that will apply to this user. This role - determines what actions a user can take in an AWS CodeStar project. -- `user_arn`: The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS - CodeStar project. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"clientRequestToken"`: A user- or system-generated token that identifies the entity that - requested the team member association to the project. This token can be used to repeat the - request. -- `"remoteAccessAllowed"`: Whether the team member is allowed to use an SSH public/private - key pair to remotely access project resources, for example Amazon EC2 instances. -""" -function associate_team_member( - projectId, projectRole, userArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "AssociateTeamMember", - Dict{String,Any}( - "projectId" => projectId, "projectRole" => projectRole, "userArn" => userArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function associate_team_member( - projectId, - projectRole, - userArn, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "AssociateTeamMember", - Dict{String,Any}( - mergewith( - _merge, - Dict{String,Any}( - "projectId" => projectId, - "projectRole" => projectRole, - "userArn" => userArn, - ), - params, - ), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - create_project(id, name) - create_project(id, name, params::Dict{String,<:Any}) - -Creates a project, including project resources. This action creates a project based on a -submitted project request. A set of source code files and a toolchain template file can be -included with the project request. If these are not provided, an empty project is created. - -# Arguments -- `id`: The ID of the project to be created in AWS CodeStar. -- `name`: The display name for the project to be created in AWS CodeStar. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"clientRequestToken"`: A user- or system-generated token that identifies the entity that - requested project creation. This token can be used to repeat the request. -- `"description"`: The description of the project, if any. -- `"sourceCode"`: A list of the Code objects submitted with the project request. If this - parameter is specified, the request must also include the toolchain parameter. -- `"tags"`: The tags created for the project. -- `"toolchain"`: The name of the toolchain template file submitted with the project - request. If this parameter is specified, the request must also include the sourceCode - parameter. -""" -function create_project(id, name; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "CreateProject", - Dict{String,Any}("id" => id, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function create_project( - id, - name, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "CreateProject", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("id" => id, "name" => name), params) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - create_user_profile(display_name, email_address, user_arn) - create_user_profile(display_name, email_address, user_arn, params::Dict{String,<:Any}) - -Creates a profile for a user that includes user preferences, such as the display name and -email address assocciated with the user, in AWS CodeStar. The user profile is not -project-specific. Information in the user profile is displayed wherever the user's -information appears to other users in AWS CodeStar. - -# Arguments -- `display_name`: The name that will be displayed as the friendly name for the user in AWS - CodeStar. -- `email_address`: The email address that will be displayed as part of the user's profile - in AWS CodeStar. -- `user_arn`: The Amazon Resource Name (ARN) of the user in IAM. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"sshPublicKey"`: The SSH public key associated with the user in AWS CodeStar. If a - project owner allows the user remote access to project resources, this public key will be - used along with the user's private key for SSH access. -""" -function create_user_profile( - displayName, emailAddress, userArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "CreateUserProfile", - Dict{String,Any}( - "displayName" => displayName, - "emailAddress" => emailAddress, - "userArn" => userArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function create_user_profile( - displayName, - emailAddress, - userArn, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "CreateUserProfile", - Dict{String,Any}( - mergewith( - _merge, - Dict{String,Any}( - "displayName" => displayName, - "emailAddress" => emailAddress, - "userArn" => userArn, - ), - params, - ), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - delete_project(id) - delete_project(id, params::Dict{String,<:Any}) - -Deletes a project, including project resources. Does not delete users associated with the -project, but does delete the IAM roles that allowed access to the project. - -# Arguments -- `id`: The ID of the project to be deleted in AWS CodeStar. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"clientRequestToken"`: A user- or system-generated token that identifies the entity that - requested project deletion. This token can be used to repeat the request. -- `"deleteStack"`: Whether to send a delete request for the primary stack in AWS - CloudFormation originally used to generate the project and its resources. This option will - delete all AWS resources for the project (except for any buckets in Amazon S3) as well as - deleting the project itself. Recommended for most use cases. -""" -function delete_project(id; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "DeleteProject", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function delete_project( - id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "DeleteProject", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("id" => id), params)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - delete_user_profile(user_arn) - delete_user_profile(user_arn, params::Dict{String,<:Any}) - -Deletes a user profile in AWS CodeStar, including all personal preference data associated -with that profile, such as display name and email address. It does not delete the history -of that user, for example the history of commits made by that user. - -# Arguments -- `user_arn`: The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar. - -""" -function delete_user_profile(userArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "DeleteUserProfile", - Dict{String,Any}("userArn" => userArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function delete_user_profile( - userArn, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "DeleteUserProfile", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("userArn" => userArn), params)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - describe_project(id) - describe_project(id, params::Dict{String,<:Any}) - -Describes a project and its resources. - -# Arguments -- `id`: The ID of the project. - -""" -function describe_project(id; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "DescribeProject", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function describe_project( - id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "DescribeProject", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("id" => id), params)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - describe_user_profile(user_arn) - describe_user_profile(user_arn, params::Dict{String,<:Any}) - -Describes a user in AWS CodeStar and the user attributes across all projects. - -# Arguments -- `user_arn`: The Amazon Resource Name (ARN) of the user. - -""" -function describe_user_profile(userArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "DescribeUserProfile", - Dict{String,Any}("userArn" => userArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function describe_user_profile( - userArn, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "DescribeUserProfile", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("userArn" => userArn), params)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - disassociate_team_member(project_id, user_arn) - disassociate_team_member(project_id, user_arn, params::Dict{String,<:Any}) - -Removes a user from a project. Removing a user from a project also removes the IAM policies -from that user that allowed access to the project and its resources. Disassociating a team -member does not remove that user's profile from AWS CodeStar. It does not remove the user -from IAM. - -# Arguments -- `project_id`: The ID of the AWS CodeStar project from which you want to remove a team - member. -- `user_arn`: The Amazon Resource Name (ARN) of the IAM user or group whom you want to - remove from the project. - -""" -function disassociate_team_member( - projectId, userArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "DisassociateTeamMember", - Dict{String,Any}("projectId" => projectId, "userArn" => userArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function disassociate_team_member( - projectId, - userArn, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "DisassociateTeamMember", - Dict{String,Any}( - mergewith( - _merge, - Dict{String,Any}("projectId" => projectId, "userArn" => userArn), - params, - ), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - list_projects() - list_projects(params::Dict{String,<:Any}) - -Lists all projects in AWS CodeStar associated with your AWS account. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: The maximum amount of data that can be contained in a single set of - results. -- `"nextToken"`: The continuation token to be used to return the next set of results, if - the results cannot be returned in one response. -""" -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar("ListProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end -function list_projects( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "ListProjects", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end - -""" - list_resources(project_id) - list_resources(project_id, params::Dict{String,<:Any}) - -Lists resources associated with a project in AWS CodeStar. - -# Arguments -- `project_id`: The ID of the project. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: The maximum amount of data that can be contained in a single set of - results. -- `"nextToken"`: The continuation token for the next set of results, if the results cannot - be returned in one response. -""" -function list_resources(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "ListResources", - Dict{String,Any}("projectId" => projectId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function list_resources( - projectId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "ListResources", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("projectId" => projectId), params) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - list_tags_for_project(id) - list_tags_for_project(id, params::Dict{String,<:Any}) - -Gets the tags for a project. - -# Arguments -- `id`: The ID of the project to get tags for. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: Reserved for future use. -- `"nextToken"`: Reserved for future use. -""" -function list_tags_for_project(id; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "ListTagsForProject", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function list_tags_for_project( - id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "ListTagsForProject", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("id" => id), params)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - list_team_members(project_id) - list_team_members(project_id, params::Dict{String,<:Any}) - -Lists all team members associated with a project. - -# Arguments -- `project_id`: The ID of the project for which you want to list team members. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: The maximum number of team members you want returned in a response. -- `"nextToken"`: The continuation token for the next set of results, if the results cannot - be returned in one response. -""" -function list_team_members(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "ListTeamMembers", - Dict{String,Any}("projectId" => projectId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function list_team_members( - projectId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "ListTeamMembers", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("projectId" => projectId), params) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - list_user_profiles() - list_user_profiles(params::Dict{String,<:Any}) - -Lists all the user profiles configured for your AWS account in AWS CodeStar. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: The maximum number of results to return in a response. -- `"nextToken"`: The continuation token for the next set of results, if the results cannot - be returned in one response. -""" -function list_user_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "ListUserProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end -function list_user_profiles( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "ListUserProfiles", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end - -""" - tag_project(id, tags) - tag_project(id, tags, params::Dict{String,<:Any}) - -Adds tags to a project. - -# Arguments -- `id`: The ID of the project you want to add a tag to. -- `tags`: The tags you want to add to the project. - -""" -function tag_project(id, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "TagProject", - Dict{String,Any}("id" => id, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function tag_project( - id, - tags, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "TagProject", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("id" => id, "tags" => tags), params) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - untag_project(id, tags) - untag_project(id, tags, params::Dict{String,<:Any}) - -Removes tags from a project. - -# Arguments -- `id`: The ID of the project to remove tags from. -- `tags`: The tags to remove from the project. - -""" -function untag_project(id, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "UntagProject", - Dict{String,Any}("id" => id, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function untag_project( - id, - tags, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "UntagProject", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("id" => id, "tags" => tags), params) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - update_project(id) - update_project(id, params::Dict{String,<:Any}) - -Updates a project in AWS CodeStar. - -# Arguments -- `id`: The ID of the project you want to update. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"description"`: The description of the project, if any. -- `"name"`: The name of the project you want to update. -""" -function update_project(id; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "UpdateProject", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function update_project( - id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "UpdateProject", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("id" => id), params)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - update_team_member(project_id, user_arn) - update_team_member(project_id, user_arn, params::Dict{String,<:Any}) - -Updates a team member's attributes in an AWS CodeStar project. For example, you can change -a team member's role in the project, or change whether they have remote access to project -resources. - -# Arguments -- `project_id`: The ID of the project. -- `user_arn`: The Amazon Resource Name (ARN) of the user for whom you want to change team - membership attributes. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"projectRole"`: The role assigned to the user in the project. Project roles have - different levels of access. For more information, see Working with Teams in the AWS - CodeStar User Guide. -- `"remoteAccessAllowed"`: Whether a team member is allowed to remotely access project - resources using the SSH public key associated with the user's profile. Even if this is set - to True, the user must associate a public key with their profile before the user can access - resources. -""" -function update_team_member( - projectId, userArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar( - "UpdateTeamMember", - Dict{String,Any}("projectId" => projectId, "userArn" => userArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function update_team_member( - projectId, - userArn, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "UpdateTeamMember", - Dict{String,Any}( - mergewith( - _merge, - Dict{String,Any}("projectId" => projectId, "userArn" => userArn), - params, - ), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - update_user_profile(user_arn) - update_user_profile(user_arn, params::Dict{String,<:Any}) - -Updates a user's profile in AWS CodeStar. The user profile is not project-specific. -Information in the user profile is displayed wherever the user's information appears to -other users in AWS CodeStar. - -# Arguments -- `user_arn`: The name that will be displayed as the friendly name for the user in AWS - CodeStar. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"displayName"`: The name that is displayed as the friendly name for the user in AWS - CodeStar. -- `"emailAddress"`: The email address that is displayed as part of the user's profile in - AWS CodeStar. -- `"sshPublicKey"`: The SSH public key associated with the user in AWS CodeStar. If a - project owner allows the user remote access to project resources, this public key will be - used along with the user's private key for SSH access. -""" -function update_user_profile(userArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar( - "UpdateUserProfile", - Dict{String,Any}("userArn" => userArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function update_user_profile( - userArn, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return codestar( - "UpdateUserProfile", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("userArn" => userArn), params)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end diff --git a/src/services/codestar_connections.jl b/src/services/codestar_connections.jl index 26abcda7a..ece66e29d 100644 --- a/src/services/codestar_connections.jl +++ b/src/services/codestar_connections.jl @@ -23,16 +23,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys repository is configured. - `"Tags"`: The key-value pair to use when tagging the resource. """ -function create_connection( - ConnectionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar_connections( +create_connection(ConnectionName; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "CreateConnection", Dict{String,Any}("ConnectionName" => ConnectionName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_connection( ConnectionName, params::AbstractDict{String}; @@ -73,20 +70,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configured and the infrastructure to be represented by the host must already be connected to the VPC. """ -function create_host( +create_host( Name, ProviderEndpoint, ProviderType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "CreateHost", + Dict{String,Any}( + "Name" => Name, + "ProviderEndpoint" => ProviderEndpoint, + "ProviderType" => ProviderType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "CreateHost", - Dict{String,Any}( - "Name" => Name, - "ProviderEndpoint" => ProviderEndpoint, - "ProviderType" => ProviderType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_host( Name, ProviderEndpoint, @@ -132,23 +127,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys be associated with the repository link. - `"Tags"`: The tags for the repository to be associated with the repository link. """ -function create_repository_link( +create_repository_link( ConnectionArn, OwnerId, RepositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = codestar_connections( + "CreateRepositoryLink", + Dict{String,Any}( + "ConnectionArn" => ConnectionArn, + "OwnerId" => OwnerId, + "RepositoryName" => RepositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "CreateRepositoryLink", - Dict{String,Any}( - "ConnectionArn" => ConnectionArn, - "OwnerId" => OwnerId, - "RepositoryName" => RepositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_repository_link( ConnectionArn, OwnerId, @@ -202,7 +195,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to source providers. - `"TriggerResourceUpdateOn"`: When to trigger Git sync to begin the stack update. """ -function create_sync_configuration( +create_sync_configuration( Branch, ConfigFile, RepositoryLinkId, @@ -210,21 +203,19 @@ function create_sync_configuration( RoleArn, SyncType; aws_config::AbstractAWSConfig=current_aws_config(), +) = codestar_connections( + "CreateSyncConfiguration", + Dict{String,Any}( + "Branch" => Branch, + "ConfigFile" => ConfigFile, + "RepositoryLinkId" => RepositoryLinkId, + "ResourceName" => ResourceName, + "RoleArn" => RoleArn, + "SyncType" => SyncType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "CreateSyncConfiguration", - Dict{String,Any}( - "Branch" => Branch, - "ConfigFile" => ConfigFile, - "RepositoryLinkId" => RepositoryLinkId, - "ResourceName" => ResourceName, - "RoleArn" => RoleArn, - "SyncType" => SyncType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sync_configuration( Branch, ConfigFile, @@ -267,16 +258,13 @@ The connection to be deleted. ARN is never reused if the connection is deleted. """ -function delete_connection( - ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar_connections( +delete_connection(ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "DeleteConnection", Dict{String,Any}("ConnectionArn" => ConnectionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connection( ConnectionArn, params::AbstractDict{String}; @@ -304,14 +292,13 @@ VPC_CONFIG_DELETING state. - `host_arn`: The Amazon Resource Name (ARN) of the host to be deleted. """ -function delete_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_connections( +delete_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "DeleteHost", Dict{String,Any}("HostArn" => HostArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_host( HostArn, params::AbstractDict{String}; @@ -335,16 +322,14 @@ Deletes the association between your connection and a specified external Git rep - `repository_link_id`: The ID of the repository link to be deleted. """ -function delete_repository_link( +delete_repository_link( RepositoryLinkId; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "DeleteRepositoryLink", + Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "DeleteRepositoryLink", - Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_repository_link( RepositoryLinkId, params::AbstractDict{String}; @@ -374,16 +359,14 @@ Deletes the sync configuration for a specified repository and connection. - `sync_type`: The type of sync configuration to be deleted. """ -function delete_sync_configuration( +delete_sync_configuration( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "DeleteSyncConfiguration", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "DeleteSyncConfiguration", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sync_configuration( ResourceName, SyncType, @@ -414,14 +397,13 @@ Returns the connection ARN and details such as status, owner, and provider type. - `connection_arn`: The Amazon Resource Name (ARN) of a connection. """ -function get_connection(ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_connections( +get_connection(ConnectionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "GetConnection", Dict{String,Any}("ConnectionArn" => ConnectionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connection( ConnectionArn, params::AbstractDict{String}; @@ -448,14 +430,13 @@ applicable, the VPC configuration. - `host_arn`: The Amazon Resource Name (ARN) of the requested host. """ -function get_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_connections( +get_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "GetHost", Dict{String,Any}("HostArn" => HostArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_host( HostArn, params::AbstractDict{String}; @@ -480,16 +461,13 @@ sync changes from files in a specified Git repository. - `repository_link_id`: The ID of the repository link to get. """ -function get_repository_link( - RepositoryLinkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar_connections( +get_repository_link(RepositoryLinkId; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "GetRepositoryLink", Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_repository_link( RepositoryLinkId, params::AbstractDict{String}; @@ -520,20 +498,18 @@ push and pull changes from your remote repository. - `sync_type`: The sync type of the requested sync status. """ -function get_repository_sync_status( +get_repository_sync_status( Branch, RepositoryLinkId, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "GetRepositorySyncStatus", + Dict{String,Any}( + "Branch" => Branch, + "RepositoryLinkId" => RepositoryLinkId, + "SyncType" => SyncType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "GetRepositorySyncStatus", - Dict{String,Any}( - "Branch" => Branch, - "RepositoryLinkId" => RepositoryLinkId, - "SyncType" => SyncType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_repository_sync_status( Branch, RepositoryLinkId, @@ -572,16 +548,14 @@ resource. - `sync_type`: The sync type for the sync status with the Git repository. """ -function get_resource_sync_status( +get_resource_sync_status( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "GetResourceSyncStatus", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "GetResourceSyncStatus", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_sync_status( ResourceName, SyncType, @@ -614,16 +588,14 @@ Returns a list of the most recent sync blockers. - `sync_type`: The sync type for the sync blocker summary. """ -function get_sync_blocker_summary( +get_sync_blocker_summary( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "GetSyncBlockerSummary", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "GetSyncBlockerSummary", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sync_blocker_summary( ResourceName, SyncType, @@ -659,16 +631,14 @@ repository for a specified branch in a Git repository. information. """ -function get_sync_configuration( +get_sync_configuration( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "GetSyncConfiguration", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "GetSyncConfiguration", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sync_configuration( ResourceName, SyncType, @@ -706,11 +676,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProviderTypeFilter"`: Filters the list of connections to those associated with a specified provider, such as Bitbucket. """ -function list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_connections( +list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -732,11 +701,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token that was returned from the previous ListHosts call, which can be used to return the next set of hosts in the list. """ -function list_hosts(; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_connections( - "ListHosts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_hosts(; aws_config::AbstractAWSConfig=current_aws_config()) = codestar_connections( + "ListHosts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_hosts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -758,11 +725,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_repository_links(; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_connections( +list_repository_links(; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "ListRepositoryLinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_repository_links( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -787,16 +753,14 @@ Lists the repository sync definitions for repository links in your account. you want to retrieve information. """ -function list_repository_sync_definitions( +list_repository_sync_definitions( RepositoryLinkId, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "ListRepositorySyncDefinitions", + Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "ListRepositorySyncDefinitions", - Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_repository_sync_definitions( RepositoryLinkId, SyncType, @@ -837,16 +801,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An enumeration token that allows the operation to batch the results of the operation. """ -function list_sync_configurations( +list_sync_configurations( RepositoryLinkId, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "ListSyncConfigurations", + Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "ListSyncConfigurations", - Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_sync_configurations( RepositoryLinkId, SyncType, @@ -880,16 +842,13 @@ Gets the set of key-value pairs (metadata) that are used to manage the resource. information about tags, if any. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar_connections( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -918,14 +877,13 @@ manage a resource. - `tags`: The tags you want to modify or add to the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_connections( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -957,16 +915,13 @@ Removes tags from an Amazon Web Services resource. - `tag_keys`: The list of keys for the tags to be removed from the resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar_connections( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1003,14 +958,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configured and the infrastructure to be represented by the host must already be connected to the VPC. """ -function update_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_connections( +update_host(HostArn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_connections( "UpdateHost", Dict{String,Any}("HostArn" => HostArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_host( HostArn, params::AbstractDict{String}; @@ -1043,16 +997,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EncryptionKeyArn"`: The Amazon Resource Name (ARN) of the encryption key for the repository link to be updated. """ -function update_repository_link( +update_repository_link( RepositoryLinkId; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "UpdateRepositoryLink", + Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "UpdateRepositoryLink", - Dict{String,Any}("RepositoryLinkId" => RepositoryLinkId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_repository_link( RepositoryLinkId, params::AbstractDict{String}; @@ -1084,25 +1036,23 @@ syncing to continue. - `sync_type`: The sync type of the sync blocker to be updated. """ -function update_sync_blocker( +update_sync_blocker( Id, ResolvedReason, ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config(), +) = codestar_connections( + "UpdateSyncBlocker", + Dict{String,Any}( + "Id" => Id, + "ResolvedReason" => ResolvedReason, + "ResourceName" => ResourceName, + "SyncType" => SyncType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "UpdateSyncBlocker", - Dict{String,Any}( - "Id" => Id, - "ResolvedReason" => ResolvedReason, - "ResourceName" => ResourceName, - "SyncType" => SyncType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sync_blocker( Id, ResolvedReason, @@ -1152,16 +1102,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleArn"`: The ARN of the IAM role for the sync configuration to be updated. - `"TriggerResourceUpdateOn"`: When to trigger Git sync to begin the stack update. """ -function update_sync_configuration( +update_sync_configuration( ResourceName, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = codestar_connections( + "UpdateSyncConfiguration", + Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_connections( - "UpdateSyncConfiguration", - Dict{String,Any}("ResourceName" => ResourceName, "SyncType" => SyncType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sync_configuration( ResourceName, SyncType, diff --git a/src/services/codestar_notifications.jl b/src/services/codestar_notifications.jl index c02912bc1..ed4f0df4f 100644 --- a/src/services/codestar_notifications.jl +++ b/src/services/codestar_notifications.jl @@ -40,29 +40,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to apply to this notification rule. Key names cannot start with \"aws\". """ -function create_notification_rule( +create_notification_rule( DetailType, EventTypeIds, Name, Resource, Targets; aws_config::AbstractAWSConfig=current_aws_config(), +) = codestar_notifications( + "POST", + "/createNotificationRule", + Dict{String,Any}( + "DetailType" => DetailType, + "EventTypeIds" => EventTypeIds, + "Name" => Name, + "Resource" => Resource, + "Targets" => Targets, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return codestar_notifications( - "POST", - "/createNotificationRule", - Dict{String,Any}( - "DetailType" => DetailType, - "EventTypeIds" => EventTypeIds, - "Name" => Name, - "Resource" => Resource, - "Targets" => Targets, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_notification_rule( DetailType, EventTypeIds, @@ -104,15 +102,14 @@ Deletes a notification rule for a resource. - `arn`: The Amazon Resource Name (ARN) of the notification rule you want to delete. """ -function delete_notification_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +delete_notification_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/deleteNotificationRule", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_notification_rule( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -141,15 +138,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this Chatbot topic. The default value is FALSE. If set to TRUE, all associations between that target and every notification rule in your Amazon Web Services account are deleted. """ -function delete_target(TargetAddress; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +delete_target(TargetAddress; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/deleteTarget", Dict{String,Any}("TargetAddress" => TargetAddress); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_target( TargetAddress, params::AbstractDict{String}; @@ -176,15 +172,14 @@ Returns information about a specified notification rule. - `arn`: The Amazon Resource Name (ARN) of the notification rule. """ -function describe_notification_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +describe_notification_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/describeNotificationRule", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_notification_rule( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -211,11 +206,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_event_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +list_event_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/listEventTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_event_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -245,14 +239,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_notification_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +list_notification_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/listNotificationRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_notification_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -275,15 +268,14 @@ Returns a list of the tags associated with a notification rule. - `arn`: The Amazon Resource Name (ARN) for the notification rule. """ -function list_tags_for_resource(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +list_tags_for_resource(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/listTagsForResource", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -313,11 +305,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function list_targets(; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( - "POST", "/listTargets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_targets(; aws_config::AbstractAWSConfig=current_aws_config()) = codestar_notifications( + "POST", "/listTargets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_targets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -348,15 +338,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: An enumeration token that, when provided in a request, returns the next batch of the results. """ -function subscribe(Arn, Target; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +subscribe(Arn, Target; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/subscribe", Dict{String,Any}("Arn" => Arn, "Target" => Target); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function subscribe( Arn, Target, @@ -386,15 +375,14 @@ Associates a set of provided tags with a notification rule. \"aws\". """ -function tag_resource(Arn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +tag_resource(Arn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/tagResource", Dict{String,Any}("Arn" => Arn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Arn, Tags, @@ -425,15 +413,14 @@ triggered. - `target_address`: The ARN of the Chatbot topic to unsubscribe from the notification rule. """ -function unsubscribe(Arn, TargetAddress; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +unsubscribe(Arn, TargetAddress; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/unsubscribe", Dict{String,Any}("Arn" => Arn, "TargetAddress" => TargetAddress); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function unsubscribe( Arn, TargetAddress, @@ -467,17 +454,14 @@ Removes the association between one or more provided tags and a notification rul - `tag_keys`: The key names of the tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return codestar_notifications( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/untagResource/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -519,15 +503,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Targets"`: The address and type of the targets to receive notifications from this notification rule. """ -function update_notification_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return codestar_notifications( +update_notification_rule(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + codestar_notifications( "POST", "/updateNotificationRule", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_notification_rule( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/cognito_identity.jl b/src/services/cognito_identity.jl index 07597b441..ad4f306a6 100644 --- a/src/services/cognito_identity.jl +++ b/src/services/cognito_identity.jl @@ -40,21 +40,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SupportedLoginProviders"`: Optional key:value pairs mapping provider names to provider app IDs. """ -function create_identity_pool( +create_identity_pool( AllowUnauthenticatedIdentities, IdentityPoolName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity( + "CreateIdentityPool", + Dict{String,Any}( + "AllowUnauthenticatedIdentities" => AllowUnauthenticatedIdentities, + "IdentityPoolName" => IdentityPoolName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "CreateIdentityPool", - Dict{String,Any}( - "AllowUnauthenticatedIdentities" => AllowUnauthenticatedIdentities, - "IdentityPoolName" => IdentityPoolName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_identity_pool( AllowUnauthenticatedIdentities, IdentityPoolName, @@ -89,16 +87,13 @@ you want to delete. You must use AWS Developer credentials to call this API. - `identity_ids_to_delete`: A list of 1-60 identities that you want to delete. """ -function delete_identities( - IdentityIdsToDelete; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity( +delete_identities(IdentityIdsToDelete; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "DeleteIdentities", Dict{String,Any}("IdentityIdsToDelete" => IdentityIdsToDelete); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_identities( IdentityIdsToDelete, params::AbstractDict{String}; @@ -129,16 +124,13 @@ with the pool. You must use AWS Developer credentials to call this API. - `identity_pool_id`: An identity pool ID in the format REGION:GUID. """ -function delete_identity_pool( - IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity( +delete_identity_pool(IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "DeleteIdentityPool", Dict{String,Any}("IdentityPoolId" => IdentityPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_identity_pool( IdentityPoolId, params::AbstractDict{String}; @@ -165,14 +157,13 @@ any associated linked logins. You must use AWS Developer credentials to call thi - `identity_id`: A unique identifier in the format REGION:GUID. """ -function describe_identity(IdentityId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity( +describe_identity(IdentityId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "DescribeIdentity", Dict{String,Any}("IdentityId" => IdentityId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_identity( IdentityId, params::AbstractDict{String}; @@ -200,16 +191,13 @@ this API. - `identity_pool_id`: An identity pool ID in the format REGION:GUID. """ -function describe_identity_pool( - IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity( +describe_identity_pool(IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "DescribeIdentityPool", Dict{String,Any}("IdentityPoolId" => IdentityPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_identity_pool( IdentityPoolId, params::AbstractDict{String}; @@ -251,16 +239,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys see the code examples in the External Identity Providers section of the Amazon Cognito Developer Guide. """ -function get_credentials_for_identity( +get_credentials_for_identity( IdentityId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "GetCredentialsForIdentity", + Dict{String,Any}("IdentityId" => IdentityId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "GetCredentialsForIdentity", - Dict{String,Any}("IdentityId" => IdentityId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_credentials_for_identity( IdentityId, params::AbstractDict{String}; @@ -296,14 +282,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789. Google: accounts.google.com Amazon: www.amazon.com Twitter: api.twitter.com Digits: www.digits.com """ -function get_id(IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity( +get_id(IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "GetId", Dict{String,Any}("IdentityPoolId" => IdentityPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_id( IdentityPoolId, params::AbstractDict{String}; @@ -330,16 +315,14 @@ API. - `identity_pool_id`: An identity pool ID in the format REGION:GUID. """ -function get_identity_pool_roles( +get_identity_pool_roles( IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "GetIdentityPoolRoles", + Dict{String,Any}("IdentityPoolId" => IdentityPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "GetIdentityPoolRoles", - Dict{String,Any}("IdentityPoolId" => IdentityPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_pool_roles( IdentityPoolId, params::AbstractDict{String}; @@ -374,14 +357,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any other OpenID Connect provider, always include the id_token. """ -function get_open_id_token(IdentityId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity( +get_open_id_token(IdentityId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "GetOpenIdToken", Dict{String,Any}("IdentityId" => IdentityId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_open_id_token( IdentityId, params::AbstractDict{String}; @@ -438,16 +420,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to access your AWS resources for the token's duration. Please provide for a small grace period, usually no more than 5 minutes, to account for clock skew. """ -function get_open_id_token_for_developer_identity( +get_open_id_token_for_developer_identity( IdentityPoolId, Logins; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "GetOpenIdTokenForDeveloperIdentity", + Dict{String,Any}("IdentityPoolId" => IdentityPoolId, "Logins" => Logins); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "GetOpenIdTokenForDeveloperIdentity", - Dict{String,Any}("IdentityPoolId" => IdentityPoolId, "Logins" => Logins); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_open_id_token_for_developer_identity( IdentityPoolId, Logins, @@ -481,19 +461,17 @@ attributes. - `identity_provider_name`: You can use this operation to get the provider name. """ -function get_principal_tag_attribute_map( +get_principal_tag_attribute_map( IdentityPoolId, IdentityProviderName; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "GetPrincipalTagAttributeMap", + Dict{String,Any}( + "IdentityPoolId" => IdentityPoolId, + "IdentityProviderName" => IdentityProviderName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "GetPrincipalTagAttributeMap", - Dict{String,Any}( - "IdentityPoolId" => IdentityPoolId, - "IdentityProviderName" => IdentityProviderName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_principal_tag_attribute_map( IdentityPoolId, IdentityProviderName, @@ -535,16 +513,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. - `"NextToken"`: A pagination token. """ -function list_identities( +list_identities( IdentityPoolId, MaxResults; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "ListIdentities", + Dict{String,Any}("IdentityPoolId" => IdentityPoolId, "MaxResults" => MaxResults); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "ListIdentities", - Dict{String,Any}("IdentityPoolId" => IdentityPoolId, "MaxResults" => MaxResults); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_identities( IdentityPoolId, MaxResults, @@ -581,14 +557,13 @@ Developer credentials to call this API. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: A pagination token. """ -function list_identity_pools(MaxResults; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity( +list_identity_pools(MaxResults; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "ListIdentityPools", Dict{String,Any}("MaxResults" => MaxResults); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_identity_pools( MaxResults, params::AbstractDict{String}; @@ -618,16 +593,13 @@ second, per account. assigned to. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -676,16 +648,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys service will return a pagination token as a part of the response. This token can be used to call the API again and get results starting from the 11th match. """ -function lookup_developer_identity( +lookup_developer_identity( IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "LookupDeveloperIdentity", + Dict{String,Any}("IdentityPoolId" => IdentityPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "LookupDeveloperIdentity", - Dict{String,Any}("IdentityPoolId" => IdentityPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function lookup_developer_identity( IdentityPoolId, params::AbstractDict{String}; @@ -729,25 +699,23 @@ will be thrown. You must use AWS Developer credentials to call this API. DeveloperUserIdentifier. """ -function merge_developer_identities( +merge_developer_identities( DestinationUserIdentifier, DeveloperProviderName, IdentityPoolId, SourceUserIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity( + "MergeDeveloperIdentities", + Dict{String,Any}( + "DestinationUserIdentifier" => DestinationUserIdentifier, + "DeveloperProviderName" => DeveloperProviderName, + "IdentityPoolId" => IdentityPoolId, + "SourceUserIdentifier" => SourceUserIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "MergeDeveloperIdentities", - Dict{String,Any}( - "DestinationUserIdentifier" => DestinationUserIdentifier, - "DeveloperProviderName" => DeveloperProviderName, - "IdentityPoolId" => IdentityPoolId, - "SourceUserIdentifier" => SourceUserIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_developer_identities( DestinationUserIdentifier, DeveloperProviderName, @@ -795,16 +763,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id\". Up to 25 rules can be specified per identity provider. """ -function set_identity_pool_roles( +set_identity_pool_roles( IdentityPoolId, Roles; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "SetIdentityPoolRoles", + Dict{String,Any}("IdentityPoolId" => IdentityPoolId, "Roles" => Roles); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "SetIdentityPoolRoles", - Dict{String,Any}("IdentityPoolId" => IdentityPoolId, "Roles" => Roles); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_identity_pool_roles( IdentityPoolId, Roles, @@ -842,19 +808,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UseDefaults"`: You can use this operation to use default (username and clientID) attribute mappings. """ -function set_principal_tag_attribute_map( +set_principal_tag_attribute_map( IdentityPoolId, IdentityProviderName; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "SetPrincipalTagAttributeMap", + Dict{String,Any}( + "IdentityPoolId" => IdentityPoolId, + "IdentityProviderName" => IdentityProviderName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "SetPrincipalTagAttributeMap", - Dict{String,Any}( - "IdentityPoolId" => IdentityPoolId, - "IdentityProviderName" => IdentityProviderName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_principal_tag_attribute_map( IdentityPoolId, IdentityProviderName, @@ -900,14 +864,13 @@ can have as many as 50 tags. - `tags`: The tags to assign to the identity pool. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -945,25 +908,23 @@ identity becomes inaccessible. You must use AWS Developer credentials to call th - `identity_pool_id`: An identity pool ID in the format REGION:GUID. """ -function unlink_developer_identity( +unlink_developer_identity( DeveloperProviderName, DeveloperUserIdentifier, IdentityId, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity( + "UnlinkDeveloperIdentity", + Dict{String,Any}( + "DeveloperProviderName" => DeveloperProviderName, + "DeveloperUserIdentifier" => DeveloperUserIdentifier, + "IdentityId" => IdentityId, + "IdentityPoolId" => IdentityPoolId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "UnlinkDeveloperIdentity", - Dict{String,Any}( - "DeveloperProviderName" => DeveloperProviderName, - "DeveloperUserIdentifier" => DeveloperUserIdentifier, - "IdentityId" => IdentityId, - "IdentityPoolId" => IdentityPoolId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unlink_developer_identity( DeveloperProviderName, DeveloperUserIdentifier, @@ -1006,20 +967,18 @@ API. - `logins_to_remove`: Provider names to unlink from this identity. """ -function unlink_identity( +unlink_identity( IdentityId, Logins, LoginsToRemove; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity( + "UnlinkIdentity", + Dict{String,Any}( + "IdentityId" => IdentityId, + "Logins" => Logins, + "LoginsToRemove" => LoginsToRemove, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "UnlinkIdentity", - Dict{String,Any}( - "IdentityId" => IdentityId, - "Logins" => Logins, - "LoginsToRemove" => LoginsToRemove, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unlink_identity( IdentityId, Logins, @@ -1057,16 +1016,13 @@ this action up to 5 times per second, per account - `tag_keys`: The keys of the tags to remove from the user pool. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1116,23 +1072,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SupportedLoginProviders"`: Optional key:value pairs mapping provider names to provider app IDs. """ -function update_identity_pool( +update_identity_pool( AllowUnauthenticatedIdentities, IdentityPoolId, IdentityPoolName; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity( + "UpdateIdentityPool", + Dict{String,Any}( + "AllowUnauthenticatedIdentities" => AllowUnauthenticatedIdentities, + "IdentityPoolId" => IdentityPoolId, + "IdentityPoolName" => IdentityPoolName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity( - "UpdateIdentityPool", - Dict{String,Any}( - "AllowUnauthenticatedIdentities" => AllowUnauthenticatedIdentities, - "IdentityPoolId" => IdentityPoolId, - "IdentityPoolName" => IdentityPoolName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_identity_pool( AllowUnauthenticatedIdentities, IdentityPoolId, diff --git a/src/services/cognito_identity_provider.jl b/src/services/cognito_identity_provider.jl index 55bef8328..ebaae63b3 100644 --- a/src/services/cognito_identity_provider.jl +++ b/src/services/cognito_identity_provider.jl @@ -20,18 +20,14 @@ API Requests Using the Amazon Cognito user pools API and user pool endpoints attributes. """ -function add_custom_attributes( +add_custom_attributes( CustomAttributes, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AddCustomAttributes", + Dict{String,Any}("CustomAttributes" => CustomAttributes, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AddCustomAttributes", - Dict{String,Any}( - "CustomAttributes" => CustomAttributes, "UserPoolId" => UserPoolId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_custom_attributes( CustomAttributes, UserPoolId, @@ -75,18 +71,16 @@ user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_add_user_to_group( +admin_add_user_to_group( GroupName, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminAddUserToGroup", + Dict{String,Any}( + "GroupName" => GroupName, "UserPoolId" => UserPoolId, "Username" => Username + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminAddUserToGroup", - Dict{String,Any}( - "GroupName" => GroupName, "UserPoolId" => UserPoolId, "Username" => Username - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_add_user_to_group( GroupName, UserPoolId, @@ -116,19 +110,16 @@ end admin_confirm_sign_up(user_pool_id, username) admin_confirm_sign_up(user_pool_id, username, params::Dict{String,<:Any}) -This IAM-authenticated API operation provides a code that Amazon Cognito sent to your user -when they signed up in your user pool. After your user enters their code, they confirm -ownership of the email address or phone number that they provided, and their user account -becomes active. Depending on your user pool configuration, your users will receive their -confirmation code in an email or SMS message. Local users who signed up in your user pool -are the only type of user who can confirm sign-up with a code. Users who federate through -an external identity provider (IdP) have already been confirmed by their IdP. -Administrator-created users confirm their accounts when they respond to their invitation -email message and choose a password. Amazon Cognito evaluates Identity and Access -Management (IAM) policies in requests for this API operation. For this operation, you must -use IAM credentials to authorize requests, and you must grant yourself the corresponding -IAM permission in a policy. Learn more Signing Amazon Web Services API Requests -Using the Amazon Cognito user pools API and user pool endpoints +This IAM-authenticated API operation confirms user sign-up as an administrator. Unlike +ConfirmSignUp, your IAM credentials authorize user account confirmation. No confirmation +code is required. This request sets a user account active in a user pool that requires +confirmation of new user accounts before they can sign in. You can configure your user pool +to not send confirmation codes to new users and instead confirm them with this API +operation on the back end. Amazon Cognito evaluates Identity and Access Management (IAM) +policies in requests for this API operation. For this operation, you must use IAM +credentials to authorize requests, and you must grant yourself the corresponding IAM +permission in a policy. Learn more Signing Amazon Web Services API Requests Using +the Amazon Cognito user pools API and user pool endpoints # Arguments - `user_pool_id`: The user pool ID for which you want to confirm user registration. @@ -155,16 +146,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys no purpose. Validate the ClientMetadata value. Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information. """ -function admin_confirm_sign_up( +admin_confirm_sign_up( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminConfirmSignUp", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminConfirmSignUp", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_confirm_sign_up( UserPoolId, Username, @@ -196,17 +185,17 @@ phone number before you can send SMS messages to US phone numbers. If you use SM messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If -you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, -Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox -mode , you can send messages only to verified phone numbers. After you test your app while -in the sandbox environment, you can move out of the sandbox and into production. For more -information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito -Developer Guide. This message is based on a template that you configured in your call to -create or update a user pool. This template includes your custom sign-up instructions and -placeholders for user name and temporary password. Alternatively, you can call -AdminCreateUser with SUPPRESS for the MessageAction parameter, and Amazon Cognito won't -send any email. In either case, the user will be in the FORCE_CHANGE_PASSWORD state until -they sign in and change their password. Amazon Cognito evaluates Identity and Access +you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services +service, Amazon Simple Notification Service might place your account in the SMS sandbox. In + sandbox mode , you can send messages only to verified phone numbers. After you test your +app while in the sandbox environment, you can move out of the sandbox and into production. +For more information, see SMS message settings for Amazon Cognito user pools in the Amazon +Cognito Developer Guide. This message is based on a template that you configured in your +call to create or update a user pool. This template includes your custom sign-up +instructions and placeholders for user name and temporary password. Alternatively, you can +call AdminCreateUser with SUPPRESS for the MessageAction parameter, and Amazon Cognito +won't send any email. In either case, the user will be in the FORCE_CHANGE_PASSWORD state +until they sign in and change their password. Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy. Learn more Signing Amazon Web Services API Requests @@ -287,16 +276,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Cognito, like automatically confirming the user if they sign up from within your network. For more information about the pre sign-up Lambda trigger, see Pre sign-up Lambda trigger. """ -function admin_create_user( +admin_create_user( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminCreateUser", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminCreateUser", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_create_user( UserPoolId, Username, @@ -335,16 +322,14 @@ API Requests Using the Amazon Cognito user pools API and user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_delete_user( +admin_delete_user( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminDeleteUser", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminDeleteUser", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_delete_user( UserPoolId, Username, @@ -388,23 +373,21 @@ endpoints local user or the username of a user from a third-party IdP. """ -function admin_delete_user_attributes( +admin_delete_user_attributes( UserAttributeNames, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "AdminDeleteUserAttributes", + Dict{String,Any}( + "UserAttributeNames" => UserAttributeNames, + "UserPoolId" => UserPoolId, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminDeleteUserAttributes", - Dict{String,Any}( - "UserAttributeNames" => UserAttributeNames, - "UserPoolId" => UserPoolId, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_delete_user_attributes( UserAttributeNames, UserPoolId, @@ -464,16 +447,14 @@ user pool endpoints - `user_pool_id`: The user pool ID for the user pool. """ -function admin_disable_provider_for_user( +admin_disable_provider_for_user( User, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminDisableProviderForUser", + Dict{String,Any}("User" => User, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminDisableProviderForUser", - Dict{String,Any}("User" => User, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_disable_provider_for_user( User, UserPoolId, @@ -512,16 +493,14 @@ endpoints local user or the username of a user from a third-party IdP. """ -function admin_disable_user( +admin_disable_user( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminDisableUser", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminDisableUser", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_disable_user( UserPoolId, Username, @@ -561,16 +540,14 @@ Services API Requests Using the Amazon Cognito user pools API and user pool local user or the username of a user from a third-party IdP. """ -function admin_enable_user( +admin_enable_user( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminEnableUser", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminEnableUser", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_enable_user( UserPoolId, Username, @@ -610,18 +587,16 @@ Using the Amazon Cognito user pools API and user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_forget_device( +admin_forget_device( DeviceKey, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminForgetDevice", + Dict{String,Any}( + "DeviceKey" => DeviceKey, "UserPoolId" => UserPoolId, "Username" => Username + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminForgetDevice", - Dict{String,Any}( - "DeviceKey" => DeviceKey, "UserPoolId" => UserPoolId, "Username" => Username - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_forget_device( DeviceKey, UserPoolId, @@ -666,18 +641,16 @@ Using the Amazon Cognito user pools API and user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_get_device( +admin_get_device( DeviceKey, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminGetDevice", + Dict{String,Any}( + "DeviceKey" => DeviceKey, "UserPoolId" => UserPoolId, "Username" => Username + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminGetDevice", - Dict{String,Any}( - "DeviceKey" => DeviceKey, "UserPoolId" => UserPoolId, "Username" => Username - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_get_device( DeviceKey, UserPoolId, @@ -723,16 +696,13 @@ user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_get_user( - UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +admin_get_user(UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "AdminGetUser", Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function admin_get_user( UserPoolId, Username, @@ -764,11 +734,11 @@ SMS text messages in Amazon Cognito, you must register a phone number with Amazo Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS text messages with Amazon Cognito or any other Amazon -Web Service, Amazon Simple Notification Service might place your account in the SMS -sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you -test your app while in the sandbox environment, you can move out of the sandbox and into -production. For more information, see SMS message settings for Amazon Cognito user pools -in the Amazon Cognito Developer Guide. Amazon Cognito evaluates Identity and Access +Web Services service, Amazon Simple Notification Service might place your account in the +SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After +you test your app while in the sandbox environment, you can move out of the sandbox and +into production. For more information, see SMS message settings for Amazon Cognito user +pools in the Amazon Cognito Developer Guide. Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy. Learn more Signing Amazon Web Services API Requests @@ -833,18 +803,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests. """ -function admin_initiate_auth( +admin_initiate_auth( AuthFlow, ClientId, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminInitiateAuth", + Dict{String,Any}( + "AuthFlow" => AuthFlow, "ClientId" => ClientId, "UserPoolId" => UserPoolId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminInitiateAuth", - Dict{String,Any}( - "AuthFlow" => AuthFlow, "ClientId" => ClientId, "UserPoolId" => UserPoolId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_initiate_auth( AuthFlow, ClientId, @@ -924,23 +892,21 @@ Services API Requests Using the Amazon Cognito user pools API and user pool - `user_pool_id`: The user pool ID for the user pool. """ -function admin_link_provider_for_user( +admin_link_provider_for_user( DestinationUser, SourceUser, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "AdminLinkProviderForUser", + Dict{String,Any}( + "DestinationUser" => DestinationUser, + "SourceUser" => SourceUser, + "UserPoolId" => UserPoolId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminLinkProviderForUser", - Dict{String,Any}( - "DestinationUser" => DestinationUser, - "SourceUser" => SourceUser, - "UserPoolId" => UserPoolId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_link_provider_for_user( DestinationUser, SourceUser, @@ -992,16 +958,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items. """ -function admin_list_devices( +admin_list_devices( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminListDevices", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminListDevices", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_list_devices( UserPoolId, Username, @@ -1045,16 +1009,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function admin_list_groups_for_user( +admin_list_groups_for_user( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminListGroupsForUser", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminListGroupsForUser", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_list_groups_for_user( UserPoolId, Username, @@ -1099,16 +1061,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if you set MaxResults to 0, or if you don't include a MaxResults parameter. - `"NextToken"`: A pagination token. """ -function admin_list_user_auth_events( +admin_list_user_auth_events( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminListUserAuthEvents", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminListUserAuthEvents", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_list_user_auth_events( UserPoolId, Username, @@ -1148,18 +1108,16 @@ Requests Using the Amazon Cognito user pools API and user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_remove_user_from_group( +admin_remove_user_from_group( GroupName, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminRemoveUserFromGroup", + Dict{String,Any}( + "GroupName" => GroupName, "UserPoolId" => UserPoolId, "Username" => Username + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminRemoveUserFromGroup", - Dict{String,Any}( - "GroupName" => GroupName, "UserPoolId" => UserPoolId, "Username" => Username - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_remove_user_from_group( GroupName, UserPoolId, @@ -1198,19 +1156,19 @@ phone numbers. If you use SMS text messages in Amazon Cognito, you must register number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS text messages with Amazon -Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place -your account in the SMS sandbox. In sandbox mode , you can send messages only to verified -phone numbers. After you test your app while in the sandbox environment, you can move out -of the sandbox and into production. For more information, see SMS message settings for -Amazon Cognito user pools in the Amazon Cognito Developer Guide. Deactivates a user's -password, requiring them to change it. If a user tries to sign in after the API is called, -Amazon Cognito responds with a PasswordResetRequiredException error. Your app must then -perform the actions that reset your user's password: the forgot-password flow. In addition, -if the user pool has phone verification selected and a verified phone number exists for the -user, or if email verification is selected and a verified email exists for the user, -calling this API will also result in sending a message to the end user with the code to -change their password. Amazon Cognito evaluates Identity and Access Management (IAM) -policies in requests for this API operation. For this operation, you must use IAM +Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might +place your account in the SMS sandbox. In sandbox mode , you can send messages only to +verified phone numbers. After you test your app while in the sandbox environment, you can +move out of the sandbox and into production. For more information, see SMS message +settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide. Deactivates +a user's password, requiring them to change it. If a user tries to sign in after the API is +called, Amazon Cognito responds with a PasswordResetRequiredException error. Your app must +then perform the actions that reset your user's password: the forgot-password flow. In +addition, if the user pool has phone verification selected and a verified phone number +exists for the user, or if email verification is selected and a verified email exists for +the user, calling this API will also result in sending a message to the end user with the +code to change their password. Amazon Cognito evaluates Identity and Access Management +(IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy. Learn more Signing Amazon Web Services API Requests Using the Amazon Cognito user pools API and user pool endpoints @@ -1241,16 +1199,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientMetadata parameter serves no purpose. Validate the ClientMetadata value. Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information. """ -function admin_reset_user_password( +admin_reset_user_password( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminResetUserPassword", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminResetUserPassword", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_reset_user_password( UserPoolId, Username, @@ -1287,15 +1243,15 @@ If you use SMS text messages in Amazon Cognito, you must register a phone number Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS text messages with Amazon Cognito or any -other Amazon Web Service, Amazon Simple Notification Service might place your account in -the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. -After you test your app while in the sandbox environment, you can move out of the sandbox -and into production. For more information, see SMS message settings for Amazon Cognito -user pools in the Amazon Cognito Developer Guide. Amazon Cognito evaluates Identity and -Access Management (IAM) policies in requests for this API operation. For this operation, -you must use IAM credentials to authorize requests, and you must grant yourself the -corresponding IAM permission in a policy. Learn more Signing Amazon Web Services API -Requests Using the Amazon Cognito user pools API and user pool endpoints +other Amazon Web Services service, Amazon Simple Notification Service might place your +account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone +numbers. After you test your app while in the sandbox environment, you can move out of the +sandbox and into production. For more information, see SMS message settings for Amazon +Cognito user pools in the Amazon Cognito Developer Guide. Amazon Cognito evaluates +Identity and Access Management (IAM) policies in requests for this API operation. For this +operation, you must use IAM credentials to authorize requests, and you must grant yourself +the corresponding IAM permission in a policy. Learn more Signing Amazon Web Services +API Requests Using the Amazon Cognito user pools API and user pool endpoints # Arguments - `challenge_name`: The challenge name. For more information, see AdminInitiateAuth. @@ -1368,20 +1324,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys caller must pass another challenge, it returns a session with other challenge parameters. This session should be passed as it is to the next RespondToAuthChallenge API call. """ -function admin_respond_to_auth_challenge( +admin_respond_to_auth_challenge( ChallengeName, ClientId, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminRespondToAuthChallenge", + Dict{String,Any}( + "ChallengeName" => ChallengeName, + "ClientId" => ClientId, + "UserPoolId" => UserPoolId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminRespondToAuthChallenge", - Dict{String,Any}( - "ChallengeName" => ChallengeName, - "ClientId" => ClientId, - "UserPoolId" => UserPoolId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_respond_to_auth_challenge( ChallengeName, ClientId, @@ -1434,16 +1388,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SoftwareTokenMfaSettings"`: The time-based one-time password software token MFA settings. """ -function admin_set_user_mfapreference( +admin_set_user_mfapreference( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminSetUserMFAPreference", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminSetUserMFAPreference", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_set_user_mfapreference( UserPoolId, Username, @@ -1502,18 +1454,16 @@ the Amazon Cognito user pools API and user pool endpoints Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Permanent"`: True if the password is permanent, False if it is temporary. """ -function admin_set_user_password( +admin_set_user_password( Password, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminSetUserPassword", + Dict{String,Any}( + "Password" => Password, "UserPoolId" => UserPoolId, "Username" => Username + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminSetUserPassword", - Dict{String,Any}( - "Password" => Password, "UserPoolId" => UserPoolId, "Username" => Username - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_set_user_password( Password, UserPoolId, @@ -1562,18 +1512,16 @@ API Requests Using the Amazon Cognito user pools API and user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_set_user_settings( +admin_set_user_settings( MFAOptions, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminSetUserSettings", + Dict{String,Any}( + "MFAOptions" => MFAOptions, "UserPoolId" => UserPoolId, "Username" => Username + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminSetUserSettings", - Dict{String,Any}( - "MFAOptions" => MFAOptions, "UserPoolId" => UserPoolId, "Username" => Username - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_set_user_settings( MFAOptions, UserPoolId, @@ -1625,25 +1573,23 @@ the Amazon Cognito user pools API and user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_update_auth_event_feedback( +admin_update_auth_event_feedback( EventId, FeedbackValue, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "AdminUpdateAuthEventFeedback", + Dict{String,Any}( + "EventId" => EventId, + "FeedbackValue" => FeedbackValue, + "UserPoolId" => UserPoolId, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminUpdateAuthEventFeedback", - Dict{String,Any}( - "EventId" => EventId, - "FeedbackValue" => FeedbackValue, - "UserPoolId" => UserPoolId, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_update_auth_event_feedback( EventId, FeedbackValue, @@ -1694,18 +1640,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeviceRememberedStatus"`: The status indicating whether a device has been remembered or not. """ -function admin_update_device_status( +admin_update_device_status( DeviceKey, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminUpdateDeviceStatus", + Dict{String,Any}( + "DeviceKey" => DeviceKey, "UserPoolId" => UserPoolId, "Username" => Username + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminUpdateDeviceStatus", - Dict{String,Any}( - "DeviceKey" => DeviceKey, "UserPoolId" => UserPoolId, "Username" => Username - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_update_device_status( DeviceKey, UserPoolId, @@ -1741,20 +1685,20 @@ phone numbers. If you use SMS text messages in Amazon Cognito, you must register number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS text messages with Amazon -Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place -your account in the SMS sandbox. In sandbox mode , you can send messages only to verified -phone numbers. After you test your app while in the sandbox environment, you can move out -of the sandbox and into production. For more information, see SMS message settings for -Amazon Cognito user pools in the Amazon Cognito Developer Guide. Updates the specified -user's attributes, including developer attributes, as an administrator. Works on any user. -To delete an attribute from your user, submit the attribute in your API request with a -blank value. For custom attributes, you must prepend the custom: prefix to the attribute -name. In addition to updating user attributes, this API can also be used to mark phone and -email as verified. Amazon Cognito evaluates Identity and Access Management (IAM) policies -in requests for this API operation. For this operation, you must use IAM credentials to -authorize requests, and you must grant yourself the corresponding IAM permission in a -policy. Learn more Signing Amazon Web Services API Requests Using the Amazon -Cognito user pools API and user pool endpoints +Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might +place your account in the SMS sandbox. In sandbox mode , you can send messages only to +verified phone numbers. After you test your app while in the sandbox environment, you can +move out of the sandbox and into production. For more information, see SMS message +settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide. Updates the +specified user's attributes, including developer attributes, as an administrator. Works on +any user. To delete an attribute from your user, submit the attribute in your API request +with a blank value. For custom attributes, you must prepend the custom: prefix to the +attribute name. In addition to updating user attributes, this API can also be used to mark +phone and email as verified. Amazon Cognito evaluates Identity and Access Management (IAM) +policies in requests for this API operation. For this operation, you must use IAM +credentials to authorize requests, and you must grant yourself the corresponding IAM +permission in a policy. Learn more Signing Amazon Web Services API Requests Using +the Amazon Cognito user pools API and user pool endpoints # Arguments - `user_attributes`: An array of name-value pairs representing user attributes. For custom @@ -1794,20 +1738,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information. """ -function admin_update_user_attributes( +admin_update_user_attributes( UserAttributes, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminUpdateUserAttributes", + Dict{String,Any}( + "UserAttributes" => UserAttributes, + "UserPoolId" => UserPoolId, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminUpdateUserAttributes", - Dict{String,Any}( - "UserAttributes" => UserAttributes, - "UserPoolId" => UserPoolId, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_update_user_attributes( UserAttributes, UserPoolId, @@ -1862,16 +1804,14 @@ the Amazon Cognito user pools API and user pool endpoints local user or the username of a user from a third-party IdP. """ -function admin_user_global_sign_out( +admin_user_global_sign_out( UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "AdminUserGlobalSignOut", + Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "AdminUserGlobalSignOut", - Dict{String,Any}("UserPoolId" => UserPoolId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function admin_user_global_sign_out( UserPoolId, Username, @@ -1904,7 +1844,7 @@ token, or a session string from a challenge response that you received from Amaz VerifySoftwareToken API request. If you don't verify the software token and your user pool doesn't require MFA, the user can then authenticate with user name and password credentials alone. If your user pool requires TOTP MFA, Amazon Cognito generates an MFA_SETUP or -SOFTWARE_TOKEN_SETUP challenge each time your user signs. Complete setup with +SOFTWARE_TOKEN_SETUP challenge each time your user signs in. Complete setup with AssociateSoftwareToken and VerifySoftwareToken. After you set up software token MFA for your user, Amazon Cognito generates a SOFTWARE_TOKEN_MFA challenge when they authenticate. Respond to this challenge with your user's TOTP. Amazon Cognito doesn't evaluate Identity @@ -1920,11 +1860,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Session"`: The session that should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process. """ -function associate_software_token(; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +associate_software_token(; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "AssociateSoftwareToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function associate_software_token( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1955,23 +1894,21 @@ user pool endpoints. - `proposed_password`: The new password. """ -function change_password( +change_password( AccessToken, PreviousPassword, ProposedPassword; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "ChangePassword", + Dict{String,Any}( + "AccessToken" => AccessToken, + "PreviousPassword" => PreviousPassword, + "ProposedPassword" => ProposedPassword, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "ChangePassword", - Dict{String,Any}( - "AccessToken" => AccessToken, - "PreviousPassword" => PreviousPassword, - "ProposedPassword" => ProposedPassword, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function change_password( AccessToken, PreviousPassword, @@ -2020,16 +1957,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeviceName"`: The device name. - `"DeviceSecretVerifierConfig"`: The configuration of the device secret verifier. """ -function confirm_device( - AccessToken, DeviceKey; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +confirm_device(AccessToken, DeviceKey; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ConfirmDevice", Dict{String,Any}("AccessToken" => AccessToken, "DeviceKey" => DeviceKey); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function confirm_device( AccessToken, DeviceKey, @@ -2097,25 +2031,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests. """ -function confirm_forgot_password( +confirm_forgot_password( ClientId, ConfirmationCode, Password, Username; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "ConfirmForgotPassword", + Dict{String,Any}( + "ClientId" => ClientId, + "ConfirmationCode" => ConfirmationCode, + "Password" => Password, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "ConfirmForgotPassword", - Dict{String,Any}( - "ClientId" => ClientId, - "ConfirmationCode" => ConfirmationCode, - "Password" => Password, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function confirm_forgot_password( ClientId, ConfirmationCode, @@ -2203,20 +2135,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests. """ -function confirm_sign_up( +confirm_sign_up( ClientId, ConfirmationCode, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "ConfirmSignUp", + Dict{String,Any}( + "ClientId" => ClientId, + "ConfirmationCode" => ConfirmationCode, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "ConfirmSignUp", - Dict{String,Any}( - "ClientId" => ClientId, - "ConfirmationCode" => ConfirmationCode, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function confirm_sign_up( ClientId, ConfirmationCode, @@ -2272,16 +2202,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys null. The maximum Precedence value is 2^31-1. - `"RoleArn"`: The role Amazon Resource Name (ARN) for the group. """ -function create_group( - GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +create_group(GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "CreateGroup", Dict{String,Any}("GroupName" => GroupName, "UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_group( GroupName, UserPoolId, @@ -2392,25 +2319,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys attributes. - `"IdpIdentifiers"`: A list of IdP identifiers. """ -function create_identity_provider( +create_identity_provider( ProviderDetails, ProviderName, ProviderType, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "CreateIdentityProvider", + Dict{String,Any}( + "ProviderDetails" => ProviderDetails, + "ProviderName" => ProviderName, + "ProviderType" => ProviderType, + "UserPoolId" => UserPoolId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "CreateIdentityProvider", - Dict{String,Any}( - "ProviderDetails" => ProviderDetails, - "ProviderName" => ProviderName, - "ProviderType" => ProviderType, - "UserPoolId" => UserPoolId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_identity_provider( ProviderDetails, ProviderName, @@ -2463,18 +2388,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Scopes"`: A list of scopes. Each scope is a key-value map with the keys name and description. """ -function create_resource_server( +create_resource_server( Identifier, Name, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "CreateResourceServer", + Dict{String,Any}( + "Identifier" => Identifier, "Name" => Name, "UserPoolId" => UserPoolId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "CreateResourceServer", - Dict{String,Any}( - "Identifier" => Identifier, "Name" => Name, "UserPoolId" => UserPoolId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource_server( Identifier, Name, @@ -2515,23 +2438,21 @@ the Amazon Cognito user pools API and user pool endpoints - `user_pool_id`: The user pool ID for the user pool that the users are being imported into. """ -function create_user_import_job( +create_user_import_job( CloudWatchLogsRoleArn, JobName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "CreateUserImportJob", + Dict{String,Any}( + "CloudWatchLogsRoleArn" => CloudWatchLogsRoleArn, + "JobName" => JobName, + "UserPoolId" => UserPoolId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "CreateUserImportJob", - Dict{String,Any}( - "CloudWatchLogsRoleArn" => CloudWatchLogsRoleArn, - "JobName" => JobName, - "UserPoolId" => UserPoolId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_import_job( CloudWatchLogsRoleArn, JobName, @@ -2567,17 +2488,18 @@ phone numbers. If you use SMS text messages in Amazon Cognito, you must register number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS text messages with Amazon -Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place -your account in the SMS sandbox. In sandbox mode , you can send messages only to verified -phone numbers. After you test your app while in the sandbox environment, you can move out -of the sandbox and into production. For more information, see SMS message settings for -Amazon Cognito user pools in the Amazon Cognito Developer Guide. Creates a new Amazon -Cognito user pool and sets the password policy for the pool. If you don't provide a value -for an attribute, Amazon Cognito sets it to its default value. Amazon Cognito evaluates -Identity and Access Management (IAM) policies in requests for this API operation. For this -operation, you must use IAM credentials to authorize requests, and you must grant yourself -the corresponding IAM permission in a policy. Learn more Signing Amazon Web Services -API Requests Using the Amazon Cognito user pools API and user pool endpoints +Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might +place your account in the SMS sandbox. In sandbox mode , you can send messages only to +verified phone numbers. After you test your app while in the sandbox environment, you can +move out of the sandbox and into production. For more information, see SMS message +settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide. Creates a +new Amazon Cognito user pool and sets the password policy for the pool. If you don't +provide a value for an attribute, Amazon Cognito sets it to its default value. Amazon +Cognito evaluates Identity and Access Management (IAM) policies in requests for this API +operation. For this operation, you must use IAM credentials to authorize requests, and you +must grant yourself the corresponding IAM permission in a policy. Learn more Signing +Amazon Web Services API Requests Using the Amazon Cognito user pools API and user pool +endpoints # Arguments - `pool_name`: A string used to name the user pool. @@ -2655,14 +2577,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VerificationMessageTemplate"`: The template for the verification message that the user sees when the app requests permission to access the user's information. """ -function create_user_pool(PoolName; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +create_user_pool(PoolName; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "CreateUserPool", Dict{String,Any}("PoolName" => PoolName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_user_pool( PoolName, params::AbstractDict{String}; @@ -2792,7 +2713,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a simulated destination. When set to LEGACY, those APIs return a UserNotFoundException exception if the user doesn't exist in the user pool. Valid values include: ENABLED - This prevents user existence-related errors. LEGACY - This represents the early behavior - of Amazon Cognito where user existence related errors aren't prevented. + of Amazon Cognito where user existence related errors aren't prevented. Defaults to + LEGACY when you don't provide a value. - `"ReadAttributes"`: The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An @@ -2835,16 +2757,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool. """ -function create_user_pool_client( +create_user_pool_client( ClientName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "CreateUserPoolClient", + Dict{String,Any}("ClientName" => ClientName, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "CreateUserPoolClient", - Dict{String,Any}("ClientName" => ClientName, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_pool_client( ClientName, UserPoolId, @@ -2889,16 +2809,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Cognito hosted domain instead. For more information about the hosted domain and custom domains, see Configuring a User Pool Domain. """ -function create_user_pool_domain( +create_user_pool_domain( Domain, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "CreateUserPoolDomain", + Dict{String,Any}("Domain" => Domain, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "CreateUserPoolDomain", - Dict{String,Any}("Domain" => Domain, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_pool_domain( Domain, UserPoolId, @@ -2930,16 +2848,13 @@ Deletes a group. Calling this action requires developer credentials. - `user_pool_id`: The user pool ID for the user pool. """ -function delete_group( - GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +delete_group(GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "DeleteGroup", Dict{String,Any}("GroupName" => GroupName, "UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_group( GroupName, UserPoolId, @@ -2971,16 +2886,14 @@ Deletes an IdP for a user pool. - `user_pool_id`: The user pool ID. """ -function delete_identity_provider( +delete_identity_provider( ProviderName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DeleteIdentityProvider", + Dict{String,Any}("ProviderName" => ProviderName, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DeleteIdentityProvider", - Dict{String,Any}("ProviderName" => ProviderName, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_identity_provider( ProviderName, UserPoolId, @@ -3014,16 +2927,14 @@ Deletes a resource server. - `user_pool_id`: The user pool ID for the user pool that hosts the resource server. """ -function delete_resource_server( +delete_resource_server( Identifier, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DeleteResourceServer", + Dict{String,Any}("Identifier" => Identifier, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DeleteResourceServer", - Dict{String,Any}("Identifier" => Identifier, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource_server( Identifier, UserPoolId, @@ -3061,14 +2972,13 @@ endpoints. profile you want to delete. """ -function delete_user(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +delete_user(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "DeleteUser", Dict{String,Any}("AccessToken" => AccessToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user( AccessToken, params::AbstractDict{String}; @@ -3103,18 +3013,16 @@ Amazon Cognito, see Using the Amazon Cognito user pools API and user pool endpoi front of the attribute name. """ -function delete_user_attributes( +delete_user_attributes( AccessToken, UserAttributeNames; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DeleteUserAttributes", + Dict{String,Any}( + "AccessToken" => AccessToken, "UserAttributeNames" => UserAttributeNames + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DeleteUserAttributes", - Dict{String,Any}( - "AccessToken" => AccessToken, "UserAttributeNames" => UserAttributeNames - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_attributes( AccessToken, UserAttributeNames, @@ -3147,14 +3055,13 @@ Deletes the specified Amazon Cognito user pool. - `user_pool_id`: The user pool ID for the user pool you want to delete. """ -function delete_user_pool(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +delete_user_pool(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "DeleteUserPool", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user_pool( UserPoolId, params::AbstractDict{String}; @@ -3181,16 +3088,14 @@ Allows the developer to delete the user pool client. - `user_pool_id`: The user pool ID for the user pool where you want to delete the client. """ -function delete_user_pool_client( +delete_user_pool_client( ClientId, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DeleteUserPoolClient", + Dict{String,Any}("ClientId" => ClientId, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DeleteUserPoolClient", - Dict{String,Any}("ClientId" => ClientId, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_pool_client( ClientId, UserPoolId, @@ -3224,16 +3129,14 @@ Deletes a domain for a user pool. - `user_pool_id`: The user pool ID. """ -function delete_user_pool_domain( +delete_user_pool_domain( Domain, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DeleteUserPoolDomain", + Dict{String,Any}("Domain" => Domain, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DeleteUserPoolDomain", - Dict{String,Any}("Domain" => Domain, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_pool_domain( Domain, UserPoolId, @@ -3265,16 +3168,14 @@ Gets information about a specific IdP. - `user_pool_id`: The user pool ID. """ -function describe_identity_provider( +describe_identity_provider( ProviderName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DescribeIdentityProvider", + Dict{String,Any}("ProviderName" => ProviderName, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DescribeIdentityProvider", - Dict{String,Any}("ProviderName" => ProviderName, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_identity_provider( ProviderName, UserPoolId, @@ -3312,16 +3213,14 @@ Describes a resource server. - `user_pool_id`: The user pool ID for the user pool that hosts the resource server. """ -function describe_resource_server( +describe_resource_server( Identifier, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DescribeResourceServer", + Dict{String,Any}("Identifier" => Identifier, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DescribeResourceServer", - Dict{String,Any}("Identifier" => Identifier, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_resource_server( Identifier, UserPoolId, @@ -3355,16 +3254,14 @@ Describes the risk configuration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientId"`: The app client ID. """ -function describe_risk_configuration( +describe_risk_configuration( UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DescribeRiskConfiguration", + Dict{String,Any}("UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DescribeRiskConfiguration", - Dict{String,Any}("UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_risk_configuration( UserPoolId, params::AbstractDict{String}; @@ -3391,16 +3288,14 @@ Describes the user import job. - `user_pool_id`: The user pool ID for the user pool that the users are being imported into. """ -function describe_user_import_job( +describe_user_import_job( JobId, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DescribeUserImportJob", + Dict{String,Any}("JobId" => JobId, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DescribeUserImportJob", - Dict{String,Any}("JobId" => JobId, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_user_import_job( JobId, UserPoolId, @@ -3436,14 +3331,13 @@ endpoints - `user_pool_id`: The user pool ID for the user pool you want to describe. """ -function describe_user_pool(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +describe_user_pool(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "DescribeUserPool", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_user_pool( UserPoolId, params::AbstractDict{String}; @@ -3475,16 +3369,14 @@ the Amazon Cognito user pools API and user pool endpoints - `user_pool_id`: The user pool ID for the user pool you want to describe. """ -function describe_user_pool_client( +describe_user_pool_client( ClientId, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "DescribeUserPoolClient", + Dict{String,Any}("ClientId" => ClientId, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "DescribeUserPoolClient", - Dict{String,Any}("ClientId" => ClientId, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_user_pool_client( ClientId, UserPoolId, @@ -3517,16 +3409,13 @@ Gets information about a domain. as auth. """ -function describe_user_pool_domain( - Domain; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +describe_user_pool_domain(Domain; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "DescribeUserPoolDomain", Dict{String,Any}("Domain" => Domain); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_user_pool_domain( Domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3558,14 +3447,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AccessToken"`: A valid access token that Amazon Cognito issued to the user whose registered device you want to forget. """ -function forget_device(DeviceKey; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +forget_device(DeviceKey; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ForgetDevice", Dict{String,Any}("DeviceKey" => DeviceKey); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function forget_device( DeviceKey, params::AbstractDict{String}; @@ -3605,10 +3493,10 @@ number before you can send SMS messages to US phone numbers. If you use SMS text in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have -never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon -Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , -you can send messages only to verified phone numbers. After you test your app while in the -sandbox environment, you can move out of the sandbox and into production. For more +never used SMS text messages with Amazon Cognito or any other Amazon Web Services service, +Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox +mode , you can send messages only to verified phone numbers. After you test your app while +in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide. @@ -3646,16 +3534,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests. """ -function forgot_password( - ClientId, Username; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +forgot_password(ClientId, Username; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ForgotPassword", Dict{String,Any}("ClientId" => ClientId, "Username" => Username); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function forgot_password( ClientId, Username, @@ -3687,14 +3572,13 @@ for the user import job. - `user_pool_id`: The user pool ID for the user pool that the users are to be imported into. """ -function get_csvheader(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +get_csvheader(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "GetCSVHeader", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_csvheader( UserPoolId, params::AbstractDict{String}; @@ -3730,14 +3614,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AccessToken"`: A valid access token that Amazon Cognito issued to the user whose device information you want to request. """ -function get_device(DeviceKey; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +get_device(DeviceKey; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "GetDevice", Dict{String,Any}("DeviceKey" => DeviceKey); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_device( DeviceKey, params::AbstractDict{String}; @@ -3764,16 +3647,13 @@ Gets a group. Calling this action requires developer credentials. - `user_pool_id`: The user pool ID for the user pool. """ -function get_group( - GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +get_group(GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "GetGroup", Dict{String,Any}("GroupName" => GroupName, "UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_group( GroupName, UserPoolId, @@ -3805,16 +3685,14 @@ Gets the specified IdP. - `user_pool_id`: The user pool ID. """ -function get_identity_provider_by_identifier( +get_identity_provider_by_identifier( IdpIdentifier, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "GetIdentityProviderByIdentifier", + Dict{String,Any}("IdpIdentifier" => IdpIdentifier, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "GetIdentityProviderByIdentifier", - Dict{String,Any}("IdpIdentifier" => IdpIdentifier, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_provider_by_identifier( IdpIdentifier, UserPoolId, @@ -3841,23 +3719,21 @@ end get_log_delivery_configuration(user_pool_id) get_log_delivery_configuration(user_pool_id, params::Dict{String,<:Any}) -Gets the detailed activity logging configuration for a user pool. +Gets the logging configuration of a user pool. # Arguments -- `user_pool_id`: The ID of the user pool where you want to view detailed activity logging - configuration. +- `user_pool_id`: The ID of the user pool that has the logging configuration that you want + to view. """ -function get_log_delivery_configuration( +get_log_delivery_configuration( UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "GetLogDeliveryConfiguration", + Dict{String,Any}("UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "GetLogDeliveryConfiguration", - Dict{String,Any}("UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_log_delivery_configuration( UserPoolId, params::AbstractDict{String}; @@ -3886,16 +3762,13 @@ GetSigningCertificate, but doesn't invalidate the original certificate. - `user_pool_id`: The user pool ID. """ -function get_signing_certificate( - UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +get_signing_certificate(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "GetSigningCertificate", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_signing_certificate( UserPoolId, params::AbstractDict{String}; @@ -3927,14 +3800,13 @@ that information is returned. If nothing is present, then an empty shape is retu Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientId"`: The client ID for the client app. """ -function get_uicustomization(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +get_uicustomization(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "GetUICustomization", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_uicustomization( UserPoolId, params::AbstractDict{String}; @@ -3967,14 +3839,13 @@ endpoints. query. """ -function get_user(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +get_user(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "GetUser", Dict{String,Any}("AccessToken" => AccessToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_user( AccessToken, params::AbstractDict{String}; @@ -4007,12 +3878,12 @@ phone number before you can send SMS messages to US phone numbers. If you use SM messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If -you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, -Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox -mode , you can send messages only to verified phone numbers. After you test your app while -in the sandbox environment, you can move out of the sandbox and into production. For more -information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito -Developer Guide. +you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services +service, Amazon Simple Notification Service might place your account in the SMS sandbox. In + sandbox mode , you can send messages only to verified phone numbers. After you test your +app while in the sandbox environment, you can move out of the sandbox and into production. +For more information, see SMS message settings for Amazon Cognito user pools in the Amazon +Cognito Developer Guide. # Arguments - `access_token`: A non-expired access token for the user whose attribute verification code @@ -4039,16 +3910,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys no purpose. Validate the ClientMetadata value. Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information. """ -function get_user_attribute_verification_code( +get_user_attribute_verification_code( AccessToken, AttributeName; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "GetUserAttributeVerificationCode", + Dict{String,Any}("AccessToken" => AccessToken, "AttributeName" => AttributeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "GetUserAttributeVerificationCode", - Dict{String,Any}("AccessToken" => AccessToken, "AttributeName" => AttributeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_user_attribute_verification_code( AccessToken, AttributeName, @@ -4081,16 +3950,13 @@ Gets the user pool multi-factor authentication (MFA) configuration. - `user_pool_id`: The user pool ID. """ -function get_user_pool_mfa_config( - UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +get_user_pool_mfa_config(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "GetUserPoolMfaConfig", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_user_pool_mfa_config( UserPoolId, params::AbstractDict{String}; @@ -4133,14 +3999,13 @@ Cognito user pools API and user pool endpoints. to sign out. """ -function global_sign_out(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +global_sign_out(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "GlobalSignOut", Dict{String,Any}("AccessToken" => AccessToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function global_sign_out( AccessToken, params::AbstractDict{String}; @@ -4172,10 +4037,10 @@ number before you can send SMS messages to US phone numbers. If you use SMS text in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have -never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon -Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , -you can send messages only to verified phone numbers. After you test your app while in the -sandbox environment, you can move out of the sandbox and into production. For more +never used SMS text messages with Amazon Cognito or any other Amazon Web Services service, +Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox +mode , you can send messages only to verified phone numbers. After you test your app while +in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide. @@ -4236,16 +4101,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests. """ -function initiate_auth( - AuthFlow, ClientId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +initiate_auth(AuthFlow, ClientId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "InitiateAuth", Dict{String,Any}("AuthFlow" => AuthFlow, "ClientId" => ClientId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function initiate_auth( AuthFlow, ClientId, @@ -4292,14 +4154,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items. """ -function list_devices(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +list_devices(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ListDevices", Dict{String,Any}("AccessToken" => AccessToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_devices( AccessToken, params::AbstractDict{String}; @@ -4334,14 +4195,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_groups(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +list_groups(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ListGroups", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_groups( UserPoolId, params::AbstractDict{String}; @@ -4375,16 +4235,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of IdPs to return. - `"NextToken"`: A pagination token. """ -function list_identity_providers( - UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +list_identity_providers(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ListIdentityProviders", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_identity_providers( UserPoolId, params::AbstractDict{String}; @@ -4418,16 +4275,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of resource servers to return. - `"NextToken"`: A pagination token. """ -function list_resource_servers( - UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +list_resource_servers(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ListResourceServers", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resource_servers( UserPoolId, params::AbstractDict{String}; @@ -4457,16 +4311,13 @@ second, per account. assigned to. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -4504,16 +4355,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items. """ -function list_user_import_jobs( +list_user_import_jobs( MaxResults, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "ListUserImportJobs", + Dict{String,Any}("MaxResults" => MaxResults, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "ListUserImportJobs", - Dict{String,Any}("MaxResults" => MaxResults, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_user_import_jobs( MaxResults, UserPoolId, @@ -4556,16 +4405,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_user_pool_clients( - UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +list_user_pool_clients(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ListUserPoolClients", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_user_pool_clients( UserPoolId, params::AbstractDict{String}; @@ -4601,14 +4447,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_user_pools(MaxResults; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +list_user_pools(MaxResults; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ListUserPools", Dict{String,Any}("MaxResults" => MaxResults); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_user_pools( MaxResults, params::AbstractDict{String}; @@ -4676,14 +4521,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items. """ -function list_users(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +list_users(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "ListUsers", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_users( UserPoolId, params::AbstractDict{String}; @@ -4719,16 +4563,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_users_in_group( +list_users_in_group( GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "ListUsersInGroup", + Dict{String,Any}("GroupName" => GroupName, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "ListUsersInGroup", - Dict{String,Any}("GroupName" => GroupName, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_users_in_group( GroupName, UserPoolId, @@ -4764,7 +4606,7 @@ can send SMS messages to US phone numbers. If you use SMS text messages in Amazo you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS -text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple +text messages with Amazon Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more @@ -4804,16 +4646,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests. """ -function resend_confirmation_code( +resend_confirmation_code( ClientId, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "ResendConfirmationCode", + Dict{String,Any}("ClientId" => ClientId, "Username" => Username); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "ResendConfirmationCode", - Dict{String,Any}("ClientId" => ClientId, "Username" => Username); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function resend_confirmation_code( ClientId, Username, @@ -4854,11 +4694,11 @@ phone numbers. If you use SMS text messages in Amazon Cognito, you must register number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS text messages with Amazon -Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place -your account in the SMS sandbox. In sandbox mode , you can send messages only to verified -phone numbers. After you test your app while in the sandbox environment, you can move out -of the sandbox and into production. For more information, see SMS message settings for -Amazon Cognito user pools in the Amazon Cognito Developer Guide. +Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might +place your account in the SMS sandbox. In sandbox mode , you can send messages only to +verified phone numbers. After you test your app while in the sandbox environment, you can +move out of the sandbox and into production. For more information, see SMS message +settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide. # Arguments - `challenge_name`: The challenge name. For more information, see InitiateAuth. @@ -4930,16 +4770,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests. """ -function respond_to_auth_challenge( +respond_to_auth_challenge( ChallengeName, ClientId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "RespondToAuthChallenge", + Dict{String,Any}("ChallengeName" => ChallengeName, "ClientId" => ClientId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "RespondToAuthChallenge", - Dict{String,Any}("ChallengeName" => ChallengeName, "ClientId" => ClientId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function respond_to_auth_challenge( ChallengeName, ClientId, @@ -4981,14 +4819,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientSecret"`: The secret for the client ID. This is required only if the client ID has a secret. """ -function revoke_token(ClientId, Token; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +revoke_token(ClientId, Token; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "RevokeToken", Dict{String,Any}("ClientId" => ClientId, "Token" => Token); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function revoke_token( ClientId, Token, @@ -5011,27 +4848,22 @@ end set_log_delivery_configuration(log_configurations, user_pool_id) set_log_delivery_configuration(log_configurations, user_pool_id, params::Dict{String,<:Any}) -Sets up or modifies the detailed activity logging configuration of a user pool. +Sets up or modifies the logging configuration of a user pool. User pools can export user +notification logs and advanced security features user activity logs. # Arguments -- `log_configurations`: A collection of all of the detailed activity logging configurations - for a user pool. -- `user_pool_id`: The ID of the user pool where you want to configure detailed activity - logging . +- `log_configurations`: A collection of the logging configurations for a user pool. +- `user_pool_id`: The ID of the user pool where you want to configure logging. """ -function set_log_delivery_configuration( +set_log_delivery_configuration( LogConfigurations, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "SetLogDeliveryConfiguration", + Dict{String,Any}("LogConfigurations" => LogConfigurations, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "SetLogDeliveryConfiguration", - Dict{String,Any}( - "LogConfigurations" => LogConfigurations, "UserPoolId" => UserPoolId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_log_delivery_configuration( LogConfigurations, UserPoolId, @@ -5078,16 +4910,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration. - `"RiskExceptionConfiguration"`: The configuration to override the risk decision. """ -function set_risk_configuration( - UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +set_risk_configuration(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "SetRiskConfiguration", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_risk_configuration( UserPoolId, params::AbstractDict{String}; @@ -5125,14 +4954,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientId"`: The client ID for the client app. - `"ImageFile"`: The uploaded logo image for the UI customization. """ -function set_uicustomization(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +set_uicustomization(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "SetUICustomization", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_uicustomization( UserPoolId, params::AbstractDict{String}; @@ -5177,16 +5005,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SoftwareTokenMfaSettings"`: The time-based one-time password (TOTP) software token MFA settings. """ -function set_user_mfapreference( - AccessToken; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +set_user_mfapreference(AccessToken; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "SetUserMFAPreference", Dict{String,Any}("AccessToken" => AccessToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_user_mfapreference( AccessToken, params::AbstractDict{String}; @@ -5213,11 +5038,11 @@ If you use SMS text messages in Amazon Cognito, you must register a phone number Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS text messages with Amazon Cognito or any -other Amazon Web Service, Amazon Simple Notification Service might place your account in -the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. -After you test your app while in the sandbox environment, you can move out of the sandbox -and into production. For more information, see SMS message settings for Amazon Cognito -user pools in the Amazon Cognito Developer Guide. +other Amazon Web Services service, Amazon Simple Notification Service might place your +account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone +numbers. After you test your app while in the sandbox environment, you can move out of the +sandbox and into production. For more information, see SMS message settings for Amazon +Cognito user pools in the Amazon Cognito Developer Guide. # Arguments - `user_pool_id`: The user pool ID. @@ -5232,16 +5057,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SmsMfaConfiguration"`: The SMS text message MFA configuration. - `"SoftwareTokenMfaConfiguration"`: The software token MFA configuration. """ -function set_user_pool_mfa_config( - UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +set_user_pool_mfa_config(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "SetUserPoolMfaConfig", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_user_pool_mfa_config( UserPoolId, params::AbstractDict{String}; @@ -5278,16 +5100,14 @@ user pool endpoints. for delivery. """ -function set_user_settings( +set_user_settings( AccessToken, MFAOptions; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "SetUserSettings", + Dict{String,Any}("AccessToken" => AccessToken, "MFAOptions" => MFAOptions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "SetUserSettings", - Dict{String,Any}("AccessToken" => AccessToken, "MFAOptions" => MFAOptions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_user_settings( AccessToken, MFAOptions, @@ -5323,7 +5143,7 @@ can send SMS messages to US phone numbers. If you use SMS text messages in Amazo you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS -text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple +text messages with Amazon Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more @@ -5373,10 +5193,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Cognito, like automatically confirming the user if they sign up from within your network. For more information about the pre sign-up Lambda trigger, see Pre sign-up Lambda trigger. """ -function sign_up( - ClientId, Password, Username; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +sign_up(ClientId, Password, Username; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "SignUp", Dict{String,Any}( "ClientId" => ClientId, "Password" => Password, "Username" => Username @@ -5384,7 +5202,6 @@ function sign_up( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function sign_up( ClientId, Password, @@ -5419,16 +5236,14 @@ Starts the user import. - `user_pool_id`: The user pool ID for the user pool that the users are being imported into. """ -function start_user_import_job( +start_user_import_job( JobId, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "StartUserImportJob", + Dict{String,Any}("JobId" => JobId, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "StartUserImportJob", - Dict{String,Any}("JobId" => JobId, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_user_import_job( JobId, UserPoolId, @@ -5460,16 +5275,14 @@ Stops the user import job. - `user_pool_id`: The user pool ID for the user pool that the users are being imported into. """ -function stop_user_import_job( +stop_user_import_job( JobId, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "StopUserImportJob", + Dict{String,Any}("JobId" => JobId, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "StopUserImportJob", - Dict{String,Any}("JobId" => JobId, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_user_import_job( JobId, UserPoolId, @@ -5512,14 +5325,13 @@ have as many as 50 tags. - `tags`: The tags to assign to the user pool. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -5553,16 +5365,13 @@ Removes the specified tags from an Amazon Cognito user pool. You can use this ac - `tag_keys`: The keys of the tags to remove from the user pool. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -5610,27 +5419,25 @@ Cognito user pools API and user pool endpoints. local user or the username of a user from a third-party IdP. """ -function update_auth_event_feedback( +update_auth_event_feedback( EventId, FeedbackToken, FeedbackValue, UserPoolId, Username; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "UpdateAuthEventFeedback", + Dict{String,Any}( + "EventId" => EventId, + "FeedbackToken" => FeedbackToken, + "FeedbackValue" => FeedbackValue, + "UserPoolId" => UserPoolId, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "UpdateAuthEventFeedback", - Dict{String,Any}( - "EventId" => EventId, - "FeedbackToken" => FeedbackToken, - "FeedbackValue" => FeedbackValue, - "UserPoolId" => UserPoolId, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_auth_event_feedback( EventId, FeedbackToken, @@ -5681,16 +5488,14 @@ Amazon Cognito, see Using the Amazon Cognito user pools API and user pool endpoi Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DeviceRememberedStatus"`: The status of whether a device is remembered. """ -function update_device_status( +update_device_status( AccessToken, DeviceKey; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "UpdateDeviceStatus", + Dict{String,Any}("AccessToken" => AccessToken, "DeviceKey" => DeviceKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "UpdateDeviceStatus", - Dict{String,Any}("AccessToken" => AccessToken, "DeviceKey" => DeviceKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_device_status( AccessToken, DeviceKey, @@ -5733,16 +5538,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleArn"`: The new role Amazon Resource Name (ARN) for the group. This is used for setting the cognito:roles and cognito:preferred_role claims in the token. """ -function update_group( - GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_identity_provider( +update_group(GroupName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "UpdateGroup", Dict{String,Any}("GroupName" => GroupName, "UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_group( GroupName, UserPoolId, @@ -5850,16 +5652,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"client_secret\": \"provider-app-client-secret\", \"token_request_method\": \"GET\", \"token_url\": \"https://graph.facebook.com/v17.0/oauth/access_token\" } """ -function update_identity_provider( +update_identity_provider( ProviderName, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "UpdateIdentityProvider", + Dict{String,Any}("ProviderName" => ProviderName, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "UpdateIdentityProvider", - Dict{String,Any}("ProviderName" => ProviderName, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_identity_provider( ProviderName, UserPoolId, @@ -5907,18 +5707,16 @@ Services API Requests Using the Amazon Cognito user pools API and user pool Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Scopes"`: The scope values to be set for the resource server. """ -function update_resource_server( +update_resource_server( Identifier, Name, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "UpdateResourceServer", + Dict{String,Any}( + "Identifier" => Identifier, "Name" => Name, "UserPoolId" => UserPoolId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "UpdateResourceServer", - Dict{String,Any}( - "Identifier" => Identifier, "Name" => Name, "UserPoolId" => UserPoolId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_server( Identifier, Name, @@ -5961,12 +5759,12 @@ phone number before you can send SMS messages to US phone numbers. If you use SM messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If -you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, -Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox -mode , you can send messages only to verified phone numbers. After you test your app while -in the sandbox environment, you can move out of the sandbox and into production. For more -information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito -Developer Guide. +you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services +service, Amazon Simple Notification Service might place your account in the SMS sandbox. In + sandbox mode , you can send messages only to verified phone numbers. After you test your +app while in the sandbox environment, you can move out of the sandbox and into production. +For more information, see SMS message settings for Amazon Cognito user pools in the Amazon +Cognito Developer Guide. # Arguments - `access_token`: A valid access token that Amazon Cognito issued to the user whose user @@ -5997,16 +5795,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientMetadata parameter serves no purpose. Validate the ClientMetadata value. Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information. """ -function update_user_attributes( +update_user_attributes( AccessToken, UserAttributes; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "UpdateUserAttributes", + Dict{String,Any}("AccessToken" => AccessToken, "UserAttributes" => UserAttributes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "UpdateUserAttributes", - Dict{String,Any}("AccessToken" => AccessToken, "UserAttributes" => UserAttributes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_attributes( AccessToken, UserAttributes, @@ -6039,14 +5835,14 @@ phone numbers. If you use SMS text messages in Amazon Cognito, you must register number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. If you have never used SMS text messages with Amazon -Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place -your account in the SMS sandbox. In sandbox mode , you can send messages only to verified -phone numbers. After you test your app while in the sandbox environment, you can move out -of the sandbox and into production. For more information, see SMS message settings for -Amazon Cognito user pools in the Amazon Cognito Developer Guide. Updates the specified -user pool with the specified attributes. You can get a list of the current user pool -settings using DescribeUserPool. If you don't provide a value for an attribute, Amazon -Cognito sets it to its default value. Amazon Cognito evaluates Identity and Access +Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might +place your account in the SMS sandbox. In sandbox mode , you can send messages only to +verified phone numbers. After you test your app while in the sandbox environment, you can +move out of the sandbox and into production. For more information, see SMS message +settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide. Updates the +specified user pool with the specified attributes. You can get a list of the current user +pool settings using DescribeUserPool. If you don't provide a value for an attribute, +Amazon Cognito sets it to its default value. Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy. Learn more Signing Amazon Web Services API Requests @@ -6113,14 +5909,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys owner, environment, or other criteria. - `"VerificationMessageTemplate"`: The template for verification messages. """ -function update_user_pool(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +update_user_pool(UserPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "UpdateUserPool", Dict{String,Any}("UserPoolId" => UserPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_user_pool( UserPoolId, params::AbstractDict{String}; @@ -6245,7 +6040,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a simulated destination. When set to LEGACY, those APIs return a UserNotFoundException exception if the user doesn't exist in the user pool. Valid values include: ENABLED - This prevents user existence-related errors. LEGACY - This represents the early behavior - of Amazon Cognito where user existence related errors aren't prevented. + of Amazon Cognito where user existence related errors aren't prevented. Defaults to + LEGACY when you don't provide a value. - `"ReadAttributes"`: The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An @@ -6288,16 +6084,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool. """ -function update_user_pool_client( +update_user_pool_client( ClientId, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "UpdateUserPoolClient", + Dict{String,Any}("ClientId" => ClientId, "UserPoolId" => UserPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "UpdateUserPoolClient", - Dict{String,Any}("ClientId" => ClientId, "UserPoolId" => UserPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_pool_client( ClientId, UserPoolId, @@ -6356,23 +6150,21 @@ endpoints certificate you're updating. """ -function update_user_pool_domain( +update_user_pool_domain( CustomDomainConfig, Domain, UserPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_identity_provider( + "UpdateUserPoolDomain", + Dict{String,Any}( + "CustomDomainConfig" => CustomDomainConfig, + "Domain" => Domain, + "UserPoolId" => UserPoolId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "UpdateUserPoolDomain", - Dict{String,Any}( - "CustomDomainConfig" => CustomDomainConfig, - "Domain" => Domain, - "UserPoolId" => UserPoolId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_pool_domain( CustomDomainConfig, Domain, @@ -6422,14 +6214,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Session"`: The session that should be passed both ways in challenge-response calls to the service. """ -function verify_software_token(UserCode; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_identity_provider( +verify_software_token(UserCode; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_identity_provider( "VerifySoftwareToken", Dict{String,Any}("UserCode" => UserCode); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function verify_software_token( UserCode, params::AbstractDict{String}; @@ -6466,18 +6257,16 @@ Amazon Cognito, see Using the Amazon Cognito user pools API and user pool endpoi - `code`: The verification code in the request to verify user attributes. """ -function verify_user_attribute( +verify_user_attribute( AccessToken, AttributeName, Code; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_identity_provider( + "VerifyUserAttribute", + Dict{String,Any}( + "AccessToken" => AccessToken, "AttributeName" => AttributeName, "Code" => Code + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_identity_provider( - "VerifyUserAttribute", - Dict{String,Any}( - "AccessToken" => AccessToken, "AttributeName" => AttributeName, "Code" => Code - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_user_attribute( AccessToken, AttributeName, diff --git a/src/services/cognito_sync.jl b/src/services/cognito_sync.jl index ce61bf1d7..404eb4d3e 100644 --- a/src/services/cognito_sync.jl +++ b/src/services/cognito_sync.jl @@ -20,14 +20,13 @@ cannot call this API with the temporary user credentials provided by Cognito Ide is unique within a region. """ -function bulk_publish(IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_sync( +bulk_publish(IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_sync( "POST", "/identitypools/$(IdentityPoolId)/bulkpublish"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function bulk_publish( IdentityPoolId, params::AbstractDict{String}; @@ -63,19 +62,17 @@ developer credentials. is unique within a region. """ -function delete_dataset( +delete_dataset( DatasetName, IdentityId, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_sync( + "DELETE", + "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "DELETE", - "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dataset( DatasetName, IdentityId, @@ -113,19 +110,17 @@ Cognito Identity credentials to make this API call. is unique within a region. """ -function describe_dataset( +describe_dataset( DatasetName, IdentityId, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_sync( + "GET", + "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "GET", - "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dataset( DatasetName, IdentityId, @@ -156,16 +151,14 @@ user credentials provided by Cognito Identity. is unique within a region. """ -function describe_identity_pool_usage( +describe_identity_pool_usage( IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_sync( + "GET", + "/identitypools/$(IdentityPoolId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "GET", - "/identitypools/$(IdentityPoolId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_identity_pool_usage( IdentityPoolId, params::AbstractDict{String}; @@ -197,16 +190,14 @@ developer credentials. is unique within a region. """ -function describe_identity_usage( +describe_identity_usage( IdentityId, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_sync( + "GET", + "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "GET", - "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_identity_usage( IdentityId, IdentityPoolId, @@ -236,16 +227,14 @@ credentials provided by Cognito Identity. is unique within a region. """ -function get_bulk_publish_details( +get_bulk_publish_details( IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_sync( + "POST", + "/identitypools/$(IdentityPoolId)/getBulkPublishDetails"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "POST", - "/identitypools/$(IdentityPoolId)/getBulkPublishDetails"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bulk_publish_details( IdentityPoolId, params::AbstractDict{String}; @@ -272,16 +261,13 @@ the temporary user credentials provided by Cognito Identity. - `identity_pool_id`: The Cognito Identity Pool ID for the request """ -function get_cognito_events( - IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cognito_sync( +get_cognito_events(IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_sync( "GET", "/identitypools/$(IdentityPoolId)/events"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cognito_events( IdentityPoolId, params::AbstractDict{String}; @@ -310,16 +296,14 @@ provided by Cognito Identity. of the pool for which to return a configuration. """ -function get_identity_pool_configuration( +get_identity_pool_configuration( IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_sync( + "GET", + "/identitypools/$(IdentityPoolId)/configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "GET", - "/identitypools/$(IdentityPoolId)/configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_pool_configuration( IdentityPoolId, params::AbstractDict{String}; @@ -357,16 +341,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned. - `"nextToken"`: A pagination token for obtaining the next page of results. """ -function list_datasets( +list_datasets( IdentityId, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_sync( + "GET", + "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "GET", - "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_datasets( IdentityId, IdentityPoolId, @@ -395,11 +377,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned. - `"nextToken"`: A pagination token for obtaining the next page of results. """ -function list_identity_pool_usage(; aws_config::AbstractAWSConfig=current_aws_config()) - return cognito_sync( +list_identity_pool_usage(; aws_config::AbstractAWSConfig=current_aws_config()) = + cognito_sync( "GET", "/identitypools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_identity_pool_usage( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -440,19 +421,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A pagination token for obtaining the next page of results. - `"syncSessionToken"`: A token containing a session ID, identity ID, and expiration. """ -function list_records( +list_records( DatasetName, IdentityId, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_sync( + "GET", + "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)/records"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "GET", - "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)/records"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_records( DatasetName, IdentityId, @@ -486,21 +465,19 @@ credentials. - `token`: The push token. """ -function register_device( +register_device( IdentityId, IdentityPoolId, Platform, Token; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_sync( + "POST", + "/identitypools/$(IdentityPoolId)/identity/$(IdentityId)/device", + Dict{String,Any}("Platform" => Platform, "Token" => Token); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "POST", - "/identitypools/$(IdentityPoolId)/identity/$(IdentityId)/device", - Dict{String,Any}("Platform" => Platform, "Token" => Token); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_device( IdentityId, IdentityPoolId, @@ -537,17 +514,15 @@ provided by Cognito Identity. - `identity_pool_id`: The Cognito Identity Pool to use when configuring Cognito Events """ -function set_cognito_events( +set_cognito_events( Events, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_sync( + "POST", + "/identitypools/$(IdentityPoolId)/events", + Dict{String,Any}("Events" => Events); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "POST", - "/identitypools/$(IdentityPoolId)/events", - Dict{String,Any}("Events" => Events); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_cognito_events( Events, IdentityPoolId, @@ -581,16 +556,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CognitoStreams"`: Options to apply to this identity pool for Amazon Cognito streams. - `"PushSync"`: Options to apply to this identity pool for push synchronization. """ -function set_identity_pool_configuration( +set_identity_pool_configuration( IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = cognito_sync( + "POST", + "/identitypools/$(IdentityPoolId)/configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "POST", - "/identitypools/$(IdentityPoolId)/configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_identity_pool_configuration( IdentityPoolId, params::AbstractDict{String}; @@ -622,20 +595,18 @@ this API with developer credentials. pool to which the identity belongs. """ -function subscribe_to_dataset( +subscribe_to_dataset( DatasetName, DeviceId, IdentityId, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_sync( + "POST", + "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)/subscriptions/$(DeviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "POST", - "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)/subscriptions/$(DeviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function subscribe_to_dataset( DatasetName, DeviceId, @@ -670,20 +641,18 @@ call this API with developer credentials. pool to which this identity belongs. """ -function unsubscribe_from_dataset( +unsubscribe_from_dataset( DatasetName, DeviceId, IdentityId, IdentityPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_sync( + "DELETE", + "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)/subscriptions/$(DeviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "DELETE", - "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)/subscriptions/$(DeviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unsubscribe_from_dataset( DatasetName, DeviceId, @@ -737,21 +706,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys lastModifiedBy field referenced in other methods. The ClientContext field is not yet implemented. """ -function update_records( +update_records( DatasetName, IdentityId, IdentityPoolId, SyncSessionToken; aws_config::AbstractAWSConfig=current_aws_config(), +) = cognito_sync( + "POST", + "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)", + Dict{String,Any}("SyncSessionToken" => SyncSessionToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cognito_sync( - "POST", - "/identitypools/$(IdentityPoolId)/identities/$(IdentityId)/datasets/$(DatasetName)", - Dict{String,Any}("SyncSessionToken" => SyncSessionToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_records( DatasetName, IdentityId, diff --git a/src/services/comprehend.jl b/src/services/comprehend.jl index aa7dc6749..06721b023 100644 --- a/src/services/comprehend.jl +++ b/src/services/comprehend.jl @@ -17,16 +17,14 @@ languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Lan The maximum size of each document is 5 KB. """ -function batch_detect_dominant_language( +batch_detect_dominant_language( TextList; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "BatchDetectDominantLanguage", + Dict{String,Any}("TextList" => TextList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "BatchDetectDominantLanguage", - Dict{String,Any}("TextList" => TextList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_detect_dominant_language( TextList, params::AbstractDict{String}; @@ -57,16 +55,14 @@ Guide. can contain a maximum of 25 documents. The maximum size of each document is 5 KB. """ -function batch_detect_entities( +batch_detect_entities( LanguageCode, TextList; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "BatchDetectEntities", + Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "BatchDetectEntities", - Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_detect_entities( LanguageCode, TextList, @@ -100,16 +96,14 @@ Detects the key noun phrases found in a batch of documents. can contain a maximum of 25 documents. The maximum size of each document is 5 KB. """ -function batch_detect_key_phrases( +batch_detect_key_phrases( LanguageCode, TextList; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "BatchDetectKeyPhrases", + Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "BatchDetectKeyPhrases", - Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_detect_key_phrases( LanguageCode, TextList, @@ -144,16 +138,14 @@ POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one. can contain a maximum of 25 documents. The maximum size of each document is 5 KB. """ -function batch_detect_sentiment( +batch_detect_sentiment( LanguageCode, TextList; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "BatchDetectSentiment", + Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "BatchDetectSentiment", - Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_detect_sentiment( LanguageCode, TextList, @@ -191,16 +183,14 @@ Comprehend Developer Guide. can contain a maximum of 25 documents. The maximum size for each document is 5 KB. """ -function batch_detect_syntax( +batch_detect_syntax( LanguageCode, TextList; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "BatchDetectSyntax", + Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "BatchDetectSyntax", - Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_detect_syntax( LanguageCode, TextList, @@ -236,16 +226,14 @@ the Amazon Comprehend Developer Guide. can contain a maximum of 25 documents. The maximum size of each document is 5 KB. """ -function batch_detect_targeted_sentiment( +batch_detect_targeted_sentiment( LanguageCode, TextList; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "BatchDetectTargetedSentiment", + Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "BatchDetectTargetedSentiment", - Dict{String,Any}("LanguageCode" => LanguageCode, "TextList" => TextList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_detect_targeted_sentiment( LanguageCode, TextList, @@ -308,14 +296,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Text"`: The document text to be analyzed. If you enter text using this parameter, do not use the Bytes parameter. """ -function classify_document(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +classify_document(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ClassifyDocument", Dict{String,Any}("EndpointArn" => EndpointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function classify_document( EndpointArn, params::AbstractDict{String}; @@ -344,16 +331,14 @@ number, or phone number. - `text`: A UTF-8 text string. The maximum string size is 100 KB. """ -function contains_pii_entities( +contains_pii_entities( LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "ContainsPiiEntities", + Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "ContainsPiiEntities", - Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function contains_pii_entities( LanguageCode, Text, @@ -399,24 +384,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: Description of the dataset. - `"Tags"`: Tags for the dataset. """ -function create_dataset( +create_dataset( DatasetName, FlywheelArn, InputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "CreateDataset", + Dict{String,Any}( + "DatasetName" => DatasetName, + "FlywheelArn" => FlywheelArn, + "InputDataConfig" => InputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "CreateDataset", - Dict{String,Any}( - "DatasetName" => DatasetName, - "FlywheelArn" => FlywheelArn, - "InputDataConfig" => InputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset( DatasetName, FlywheelArn, @@ -503,26 +486,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC. """ -function create_document_classifier( +create_document_classifier( DataAccessRoleArn, DocumentClassifierName, InputDataConfig, LanguageCode; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "CreateDocumentClassifier", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "DocumentClassifierName" => DocumentClassifierName, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "CreateDocumentClassifier", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "DocumentClassifierName" => DocumentClassifierName, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_document_classifier( DataAccessRoleArn, DocumentClassifierName, @@ -581,20 +562,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys metadata to the endpoint. For example, a tag with \"Sales\" as the key might be added to an endpoint to indicate its use by the sales department. """ -function create_endpoint( +create_endpoint( DesiredInferenceUnits, EndpointName; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "CreateEndpoint", + Dict{String,Any}( + "DesiredInferenceUnits" => DesiredInferenceUnits, + "EndpointName" => EndpointName, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "CreateEndpoint", - Dict{String,Any}( - "DesiredInferenceUnits" => DesiredInferenceUnits, - "EndpointName" => EndpointName, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint( DesiredInferenceUnits, EndpointName, @@ -676,26 +655,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC. """ -function create_entity_recognizer( +create_entity_recognizer( DataAccessRoleArn, InputDataConfig, LanguageCode, RecognizerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "CreateEntityRecognizer", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "RecognizerName" => RecognizerName, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "CreateEntityRecognizer", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "RecognizerName" => RecognizerName, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_entity_recognizer( DataAccessRoleArn, InputDataConfig, @@ -761,24 +738,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TaskConfig"`: Configuration about the model associated with the flywheel. You need to set TaskConfig if you are creating a flywheel for a new model. """ -function create_flywheel( +create_flywheel( DataAccessRoleArn, DataLakeS3Uri, FlywheelName; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "CreateFlywheel", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "DataLakeS3Uri" => DataLakeS3Uri, + "FlywheelName" => FlywheelName, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "CreateFlywheel", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "DataLakeS3Uri" => DataLakeS3Uri, - "FlywheelName" => FlywheelName, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_flywheel( DataAccessRoleArn, DataLakeS3Uri, @@ -820,16 +795,14 @@ removed, the classifier disappears from your account and is no longer available classifier. """ -function delete_document_classifier( +delete_document_classifier( DocumentClassifierArn; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DeleteDocumentClassifier", + Dict{String,Any}("DocumentClassifierArn" => DocumentClassifierArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DeleteDocumentClassifier", - Dict{String,Any}("DocumentClassifierArn" => DocumentClassifierArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_document_classifier( DocumentClassifierArn, params::AbstractDict{String}; @@ -861,14 +834,13 @@ Managing endpoints. - `endpoint_arn`: The Amazon Resource Number (ARN) of the endpoint being deleted. """ -function delete_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +delete_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DeleteEndpoint", Dict{String,Any}("EndpointArn" => EndpointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_endpoint( EndpointArn, params::AbstractDict{String}; @@ -899,16 +871,14 @@ the recognizer disappears from your account and is no longer available for use. recognizer. """ -function delete_entity_recognizer( +delete_entity_recognizer( EntityRecognizerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DeleteEntityRecognizer", + Dict{String,Any}("EntityRecognizerArn" => EntityRecognizerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DeleteEntityRecognizer", - Dict{String,Any}("EntityRecognizerArn" => EntityRecognizerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_entity_recognizer( EntityRecognizerArn, params::AbstractDict{String}; @@ -940,14 +910,13 @@ see Flywheel overview in the Amazon Comprehend Developer Guide. - `flywheel_arn`: The Amazon Resource Number (ARN) of the flywheel to delete. """ -function delete_flywheel(FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +delete_flywheel(FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DeleteFlywheel", Dict{String,Any}("FlywheelArn" => FlywheelArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_flywheel( FlywheelArn, params::AbstractDict{String}; @@ -977,16 +946,13 @@ Deletes a resource-based policy that is attached to a custom model. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PolicyRevisionId"`: The revision ID of the policy to delete. """ -function delete_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +delete_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DeleteResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -1013,14 +979,13 @@ datasets, see Flywheel overview in the Amazon Comprehend Developer Guide. - `dataset_arn`: The ARN of the dataset. """ -function describe_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +describe_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DescribeDataset", Dict{String,Any}("DatasetArn" => DatasetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dataset( DatasetArn, params::AbstractDict{String}; @@ -1048,16 +1013,14 @@ get the status of a classification job. StartDocumentClassificationJob operation returns this identifier in its response. """ -function describe_document_classification_job( +describe_document_classification_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribeDocumentClassificationJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribeDocumentClassificationJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_document_classification_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1080,16 +1043,14 @@ Gets the properties associated with a document classifier. classifier. The CreateDocumentClassifier operation returns this identifier in its response. """ -function describe_document_classifier( +describe_document_classifier( DocumentClassifierArn; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribeDocumentClassifier", + Dict{String,Any}("DocumentClassifierArn" => DocumentClassifierArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribeDocumentClassifier", - Dict{String,Any}("DocumentClassifierArn" => DocumentClassifierArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_document_classifier( DocumentClassifierArn, params::AbstractDict{String}; @@ -1121,16 +1082,14 @@ to get the status of a detection job. StartDominantLanguageDetectionJob operation returns this identifier in its response. """ -function describe_dominant_language_detection_job( +describe_dominant_language_detection_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribeDominantLanguageDetectionJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribeDominantLanguageDetectionJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dominant_language_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1153,14 +1112,13 @@ status of an endpoint. For information about endpoints, see Managing endpoints. - `endpoint_arn`: The Amazon Resource Number (ARN) of the endpoint being described. """ -function describe_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +describe_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DescribeEndpoint", Dict{String,Any}("EndpointArn" => EndpointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_endpoint( EndpointArn, params::AbstractDict{String}; @@ -1188,16 +1146,13 @@ the status of a detection job. StartEntitiesDetectionJob operation returns this identifier in its response. """ -function describe_entities_detection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +describe_entities_detection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DescribeEntitiesDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_entities_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1221,16 +1176,14 @@ training data, recognizer metadata, metrics, and so on. recognizer. """ -function describe_entity_recognizer( +describe_entity_recognizer( EntityRecognizerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribeEntityRecognizer", + Dict{String,Any}("EntityRecognizerArn" => EntityRecognizerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribeEntityRecognizer", - Dict{String,Any}("EntityRecognizerArn" => EntityRecognizerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_entity_recognizer( EntityRecognizerArn, params::AbstractDict{String}; @@ -1260,16 +1213,13 @@ Gets the status and details of an events detection job. - `job_id`: The identifier of the events detection job. """ -function describe_events_detection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +describe_events_detection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DescribeEventsDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_events_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1292,14 +1242,13 @@ flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide. - `flywheel_arn`: The Amazon Resource Number (ARN) of the flywheel. """ -function describe_flywheel(FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +describe_flywheel(FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DescribeFlywheel", Dict{String,Any}("FlywheelArn" => FlywheelArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_flywheel( FlywheelArn, params::AbstractDict{String}; @@ -1327,18 +1276,16 @@ flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide. - `flywheel_iteration_id`: """ -function describe_flywheel_iteration( +describe_flywheel_iteration( FlywheelArn, FlywheelIterationId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribeFlywheelIteration", + Dict{String,Any}( + "FlywheelArn" => FlywheelArn, "FlywheelIterationId" => FlywheelIterationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribeFlywheelIteration", - Dict{String,Any}( - "FlywheelArn" => FlywheelArn, "FlywheelIterationId" => FlywheelIterationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_flywheel_iteration( FlywheelArn, FlywheelIterationId, @@ -1374,16 +1321,14 @@ the status of a detection job. StartKeyPhrasesDetectionJob operation returns this identifier in its response. """ -function describe_key_phrases_detection_job( +describe_key_phrases_detection_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribeKeyPhrasesDetectionJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribeKeyPhrasesDetectionJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_key_phrases_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1407,16 +1352,14 @@ this operation to get the job status. returns this identifier in its response. """ -function describe_pii_entities_detection_job( +describe_pii_entities_detection_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribePiiEntitiesDetectionJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribePiiEntitiesDetectionJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_pii_entities_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1440,16 +1383,13 @@ the JSON body of the policy. resource policy. """ -function describe_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +describe_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DescribeResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -1477,16 +1417,14 @@ the status of a detection job. returns this identifier in its response. """ -function describe_sentiment_detection_job( +describe_sentiment_detection_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribeSentimentDetectionJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribeSentimentDetectionJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_sentiment_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1510,16 +1448,14 @@ to get the status of the job. StartTargetedSentimentDetectionJob operation returns this identifier in its response. """ -function describe_targeted_sentiment_detection_job( +describe_targeted_sentiment_detection_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DescribeTargetedSentimentDetectionJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DescribeTargetedSentimentDetectionJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_targeted_sentiment_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1542,16 +1478,13 @@ status of a detection job. - `job_id`: The identifier assigned by the user to the detection job. """ -function describe_topics_detection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +describe_topics_detection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DescribeTopicsDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_topics_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1575,14 +1508,13 @@ Comprehend can detect, see Amazon Comprehend Supported Languages. string size is 100 KB. """ -function detect_dominant_language(Text; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +detect_dominant_language(Text; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DetectDominantLanguage", Dict{String,Any}("Text" => Text); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_dominant_language( Text, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1638,11 +1570,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Text"`: A UTF-8 text string. The maximum string size is 100 KB. If you enter text using this parameter, do not use the Bytes parameter. """ -function detect_entities(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( - "DetectEntities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +detect_entities(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend("DetectEntities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function detect_entities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1664,16 +1593,13 @@ Detects the key noun phrases found in the text. characters. """ -function detect_key_phrases( - LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +detect_key_phrases(LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DetectKeyPhrases", Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_key_phrases( LanguageCode, Text, @@ -1707,16 +1633,14 @@ and returns information about them. - `text`: A UTF-8 text string. The maximum string size is 100 KB. """ -function detect_pii_entities( +detect_pii_entities( LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DetectPiiEntities", + Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DetectPiiEntities", - Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detect_pii_entities( LanguageCode, Text, @@ -1750,16 +1674,13 @@ MIXED, or NEGATIVE). - `text`: A UTF-8 text string. The maximum string size is 5 KB. """ -function detect_sentiment( - LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +detect_sentiment(LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DetectSentiment", Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_sentiment( LanguageCode, Text, @@ -1794,16 +1715,13 @@ information, see Syntax in the Comprehend Developer Guide. - `text`: A UTF-8 string. The maximum string size is 5 KB. """ -function detect_syntax( - LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +detect_syntax(LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "DetectSyntax", Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_syntax( LanguageCode, Text, @@ -1838,16 +1756,14 @@ Comprehend Developer Guide. - `text`: A UTF-8 text string. The maximum string length is 5 KB. """ -function detect_targeted_sentiment( +detect_targeted_sentiment( LanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DetectTargetedSentiment", + Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DetectTargetedSentiment", - Dict{String,Any}("LanguageCode" => LanguageCode, "Text" => Text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detect_targeted_sentiment( LanguageCode, Text, @@ -1884,16 +1800,14 @@ Developer Guide. and the maximum size of the list is 10 KB. """ -function detect_toxic_content( +detect_toxic_content( LanguageCode, TextSegments; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "DetectToxicContent", + Dict{String,Any}("LanguageCode" => LanguageCode, "TextSegments" => TextSegments); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "DetectToxicContent", - Dict{String,Any}("LanguageCode" => LanguageCode, "TextSegments" => TextSegments); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detect_toxic_content( LanguageCode, TextSegments, @@ -1950,14 +1864,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hyphens (-) and underscores (_) are allowed. The version name must be unique among all models with the same classifier name in the account/Region. """ -function import_model(SourceModelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +import_model(SourceModelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ImportModel", Dict{String,Any}("SourceModelArn" => SourceModelArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function import_model( SourceModelArn, params::AbstractDict{String}; @@ -1987,11 +1900,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a response. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( - "ListDatasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend("ListDatasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_datasets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2014,15 +1924,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_document_classification_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +list_document_classification_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListDocumentClassificationJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_document_classification_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2045,15 +1952,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return on each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_document_classifier_summaries(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +list_document_classifier_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListDocumentClassifierSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_document_classifier_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2079,11 +1983,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_document_classifiers(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +list_document_classifiers(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListDocumentClassifiers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_document_classifiers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2109,15 +2012,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_dominant_language_detection_jobs(; +list_dominant_language_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "ListDominantLanguageDetectionJobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "ListDominantLanguageDetectionJobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_dominant_language_detection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2144,11 +2045,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( - "ListEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend("ListEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2171,11 +2069,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_entities_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +list_entities_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListEntitiesDetectionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_entities_detection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2198,15 +2095,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return on each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_entity_recognizer_summaries(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +list_entity_recognizer_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListEntityRecognizerSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_entity_recognizer_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2235,11 +2129,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return on each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_entity_recognizers(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( - "ListEntityRecognizers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_entity_recognizers(; aws_config::AbstractAWSConfig=current_aws_config()) = comprehend( + "ListEntityRecognizers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_entity_recognizers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2265,11 +2157,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. - `"NextToken"`: Identifies the next page of results to return. """ -function list_events_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +list_events_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListEventsDetectionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_events_detection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2297,16 +2188,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of iteration history results to return - `"NextToken"`: Next token """ -function list_flywheel_iteration_history( +list_flywheel_iteration_history( FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "ListFlywheelIterationHistory", + Dict{String,Any}("FlywheelArn" => FlywheelArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "ListFlywheelIterationHistory", - Dict{String,Any}("FlywheelArn" => FlywheelArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_flywheel_iteration_history( FlywheelArn, params::AbstractDict{String}; @@ -2336,11 +2225,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a response. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_flywheels(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( - "ListFlywheels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_flywheels(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend("ListFlywheels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_flywheels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2363,15 +2249,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_key_phrases_detection_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +list_key_phrases_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListKeyPhrasesDetectionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_key_phrases_detection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2397,15 +2280,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. - `"NextToken"`: Identifies the next page of results to return. """ -function list_pii_entities_detection_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +list_pii_entities_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListPiiEntitiesDetectionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_pii_entities_detection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2431,11 +2311,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_sentiment_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +list_sentiment_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListSentimentDetectionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_sentiment_detection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2458,16 +2337,13 @@ Lists all tags associated with a given Amazon Comprehend resource. you are querying. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2497,15 +2373,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_targeted_sentiment_detection_jobs(; +list_targeted_sentiment_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "ListTargetedSentimentDetectionJobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "ListTargetedSentimentDetectionJobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_targeted_sentiment_detection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2531,11 +2405,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_topics_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +list_topics_detection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "ListTopicsDetectionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_topics_detection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2572,16 +2445,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you are updating. If you are creating a new policy that has no prior version, don't use this parameter. Amazon Comprehend creates the revision ID for you. """ -function put_resource_policy( +put_resource_policy( ResourceArn, ResourcePolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "PutResourcePolicy", + Dict{String,Any}("ResourceArn" => ResourceArn, "ResourcePolicy" => ResourcePolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "PutResourcePolicy", - Dict{String,Any}("ResourceArn" => ResourceArn, "ResourcePolicy" => ResourcePolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( ResourceArn, ResourcePolicy, @@ -2640,24 +2511,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC. """ -function start_document_classification_job( +start_document_classification_job( DataAccessRoleArn, InputDataConfig, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartDocumentClassificationJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartDocumentClassificationJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_document_classification_job( DataAccessRoleArn, InputDataConfig, @@ -2716,24 +2585,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC) containing the resources you are using for your dominant language detection job. For more information, see Amazon VPC. """ -function start_dominant_language_detection_job( +start_dominant_language_detection_job( DataAccessRoleArn, InputDataConfig, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartDominantLanguageDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartDominantLanguageDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_dominant_language_detection_job( DataAccessRoleArn, InputDataConfig, @@ -2804,26 +2671,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC) containing the resources you are using for your entity detection job. For more information, see Amazon VPC. """ -function start_entities_detection_job( +start_entities_detection_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartEntitiesDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartEntitiesDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_entities_detection_job( DataAccessRoleArn, InputDataConfig, @@ -2875,28 +2740,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys adds metadata to a resource used by Amazon Comprehend. For example, a tag with \"Sales\" as the key might be added to a resource to indicate its use by the sales department. """ -function start_events_detection_job( +start_events_detection_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig, TargetEventTypes; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartEventsDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "TargetEventTypes" => TargetEventTypes, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartEventsDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "TargetEventTypes" => TargetEventTypes, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_events_detection_job( DataAccessRoleArn, InputDataConfig, @@ -2943,16 +2806,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. """ -function start_flywheel_iteration( - FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +start_flywheel_iteration(FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "StartFlywheelIteration", Dict{String,Any}("FlywheelArn" => FlywheelArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_flywheel_iteration( FlywheelArn, params::AbstractDict{String}; @@ -3002,26 +2862,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC) containing the resources you are using for your key phrases detection job. For more information, see Amazon VPC. """ -function start_key_phrases_detection_job( +start_key_phrases_detection_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartKeyPhrasesDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartKeyPhrasesDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_key_phrases_detection_job( DataAccessRoleArn, InputDataConfig, @@ -3080,28 +2938,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"Sales\" as the key might be added to a resource to indicate its use by the sales department. """ -function start_pii_entities_detection_job( +start_pii_entities_detection_job( DataAccessRoleArn, InputDataConfig, LanguageCode, Mode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartPiiEntitiesDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "Mode" => Mode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartPiiEntitiesDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "Mode" => Mode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_pii_entities_detection_job( DataAccessRoleArn, InputDataConfig, @@ -3166,26 +3022,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC) containing the resources you are using for your sentiment detection job. For more information, see Amazon VPC. """ -function start_sentiment_detection_job( +start_sentiment_detection_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartSentimentDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartSentimentDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_sentiment_detection_job( DataAccessRoleArn, InputDataConfig, @@ -3245,26 +3099,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\" - `"VpcConfig"`: """ -function start_targeted_sentiment_detection_job( +start_targeted_sentiment_detection_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartTargetedSentimentDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartTargetedSentimentDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_targeted_sentiment_detection_job( DataAccessRoleArn, InputDataConfig, @@ -3327,24 +3179,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (VPC) containing the resources you are using for your topic detection job. For more information, see Amazon VPC. """ -function start_topics_detection_job( +start_topics_detection_job( DataAccessRoleArn, InputDataConfig, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehend( + "StartTopicsDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StartTopicsDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_topics_detection_job( DataAccessRoleArn, InputDataConfig, @@ -3387,16 +3237,14 @@ the output location. - `job_id`: The identifier of the dominant language detection job to stop. """ -function stop_dominant_language_detection_job( +stop_dominant_language_detection_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "StopDominantLanguageDetectionJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StopDominantLanguageDetectionJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_dominant_language_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3424,16 +3272,13 @@ output location. - `job_id`: The identifier of the entities detection job to stop. """ -function stop_entities_detection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +stop_entities_detection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "StopEntitiesDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_entities_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3455,16 +3300,13 @@ Stops an events detection job in progress. - `job_id`: The identifier of the events detection job to stop. """ -function stop_events_detection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +stop_events_detection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "StopEventsDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_events_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3492,16 +3334,13 @@ output location. - `job_id`: The identifier of the key phrases detection job to stop. """ -function stop_key_phrases_detection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +stop_key_phrases_detection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "StopKeyPhrasesDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_key_phrases_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3523,16 +3362,13 @@ Stops a PII entities detection job in progress. - `job_id`: The identifier of the PII entities detection job to stop. """ -function stop_pii_entities_detection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +stop_pii_entities_detection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "StopPiiEntitiesDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_pii_entities_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3560,16 +3396,13 @@ the output location. - `job_id`: The identifier of the sentiment detection job to stop. """ -function stop_sentiment_detection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +stop_sentiment_detection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "StopSentimentDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_sentiment_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3597,16 +3430,14 @@ written to the output location. - `job_id`: The identifier of the targeted sentiment detection job to stop. """ -function stop_targeted_sentiment_detection_job( +stop_targeted_sentiment_detection_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "StopTargetedSentimentDetectionJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StopTargetedSentimentDetectionJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_targeted_sentiment_detection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3633,16 +3464,14 @@ training job is stopped and put into the STOPPED state and the service sends bac classifier currently being trained. """ -function stop_training_document_classifier( +stop_training_document_classifier( DocumentClassifierArn; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "StopTrainingDocumentClassifier", + Dict{String,Any}("DocumentClassifierArn" => DocumentClassifierArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StopTrainingDocumentClassifier", - Dict{String,Any}("DocumentClassifierArn" => DocumentClassifierArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_training_document_classifier( DocumentClassifierArn, params::AbstractDict{String}; @@ -3677,16 +3506,14 @@ HTTP 200 response with an empty HTTP body. recognizer currently being trained. """ -function stop_training_entity_recognizer( +stop_training_entity_recognizer( EntityRecognizerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehend( + "StopTrainingEntityRecognizer", + Dict{String,Any}("EntityRecognizerArn" => EntityRecognizerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehend( - "StopTrainingEntityRecognizer", - Dict{String,Any}("EntityRecognizerArn" => EntityRecognizerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_training_entity_recognizer( EntityRecognizerArn, params::AbstractDict{String}; @@ -3722,14 +3549,13 @@ department. maximum of 50 tags (both existing and pending) associated with a specific resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -3765,16 +3591,13 @@ Removes a specific tag associated with an Amazon Comprehend resource. for a particular resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehend( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -3815,14 +3638,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DesiredModelArn"`: The ARN of the new model to use when updating an existing endpoint. - `"FlywheelArn"`: The Amazon Resource Number (ARN) of the flywheel """ -function update_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +update_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "UpdateEndpoint", Dict{String,Any}("EndpointArn" => EndpointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_endpoint( EndpointArn, params::AbstractDict{String}; @@ -3854,14 +3676,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Comprehend permission to access the flywheel data. - `"DataSecurityConfig"`: Flywheel data security configuration. """ -function update_flywheel(FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehend( +update_flywheel(FlywheelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehend( "UpdateFlywheel", Dict{String,Any}("FlywheelArn" => FlywheelArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_flywheel( FlywheelArn, params::AbstractDict{String}; diff --git a/src/services/comprehendmedical.jl b/src/services/comprehendmedical.jl index a6057e2a8..02569d3ac 100644 --- a/src/services/comprehendmedical.jl +++ b/src/services/comprehendmedical.jl @@ -16,16 +16,14 @@ get the status of a detection job. StartEntitiesDetectionV2Job operation returns this identifier in its response. """ -function describe_entities_detection_v2_job( +describe_entities_detection_v2_job( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = comprehendmedical( + "DescribeEntitiesDetectionV2Job", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehendmedical( - "DescribeEntitiesDetectionV2Job", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_entities_detection_v2_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -49,16 +47,13 @@ status of an inference job. StartICD10CMInferenceJob operation returns this identifier in its response. """ -function describe_icd10_cminference_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +describe_icd10_cminference_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "DescribeICD10CMInferenceJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_icd10_cminference_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -82,16 +77,13 @@ this operation to get the status of a detection job. StartPHIDetectionJob operation returns this identifier in its response. """ -function describe_phidetection_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +describe_phidetection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "DescribePHIDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_phidetection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -115,16 +107,13 @@ status of an inference job. StartRxNormInferenceJob operation returns this identifier in its response. """ -function describe_rx_norm_inference_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +describe_rx_norm_inference_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "DescribeRxNormInferenceJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_rx_norm_inference_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -148,16 +137,13 @@ status of an inference job. StartSNOMEDCTInferenceJob operation returns this identifier in its response. """ -function describe_snomedctinference_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +describe_snomedctinference_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "DescribeSNOMEDCTInferenceJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_snomedctinference_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -182,14 +168,13 @@ information. - `text`: A UTF-8 text string containing the clinical content being examined for entities. """ -function detect_entities(Text; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +detect_entities(Text; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "DetectEntities", Dict{String,Any}("Text" => Text); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_entities( Text, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -218,14 +203,13 @@ Direction entities as attributes instead of types. - `text`: A UTF-8 string containing the clinical content being examined for entities. """ -function detect_entities_v2(Text; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +detect_entities_v2(Text; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "DetectEntitiesV2", Dict{String,Any}("Text" => Text); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_entities_v2( Text, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -250,14 +234,12 @@ only detects entities in English language texts. entities. """ -function detect_phi(Text; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( - "DetectPHI", - Dict{String,Any}("Text" => Text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +detect_phi(Text; aws_config::AbstractAWSConfig=current_aws_config()) = comprehendmedical( + "DetectPHI", + Dict{String,Any}("Text" => Text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function detect_phi( Text, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -282,14 +264,13 @@ English language texts. - `text`: The input text used for analysis. """ -function infer_icd10_cm(Text; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +infer_icd10_cm(Text; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "InferICD10CM", Dict{String,Any}("Text" => Text); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function infer_icd10_cm( Text, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -314,14 +295,12 @@ texts. - `text`: The input text used for analysis. """ -function infer_rx_norm(Text; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( - "InferRxNorm", - Dict{String,Any}("Text" => Text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +infer_rx_norm(Text; aws_config::AbstractAWSConfig=current_aws_config()) = comprehendmedical( + "InferRxNorm", + Dict{String,Any}("Text" => Text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function infer_rx_norm( Text, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -344,14 +323,13 @@ the Systematized Nomenclature of Medicine, Clinical Terms (SNOMED-CT) ontology - `text`: The input text to be analyzed using InferSNOMEDCT. """ -function infer_snomedct(Text; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +infer_snomedct(Text; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "InferSNOMEDCT", Dict{String,Any}("Text" => Text); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function infer_snomedct( Text, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -377,15 +355,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_entities_detection_v2_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +list_entities_detection_v2_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "ListEntitiesDetectionV2Jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_entities_detection_v2_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -411,11 +386,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_icd10_cminference_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +list_icd10_cminference_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "ListICD10CMInferenceJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_icd10_cminference_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -441,11 +415,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in each page. The default is 100. - `"NextToken"`: Identifies the next page of results to return. """ -function list_phidetection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +list_phidetection_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "ListPHIDetectionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_phidetection_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -471,11 +444,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Identifies the next page of results to return. - `"NextToken"`: Identifies the next page of results to return. """ -function list_rx_norm_inference_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +list_rx_norm_inference_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "ListRxNormInferenceJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_rx_norm_inference_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -500,11 +472,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 100. - `"NextToken"`: Identifies the next page of InferSNOMEDCT results to return. """ -function list_snomedctinference_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +list_snomedctinference_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "ListSNOMEDCTInferenceJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_snomedctinference_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -542,26 +513,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KMSKey"`: An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text. """ -function start_entities_detection_v2_job( +start_entities_detection_v2_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehendmedical( + "StartEntitiesDetectionV2Job", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehendmedical( - "StartEntitiesDetectionV2Job", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_entities_detection_v2_job( DataAccessRoleArn, InputDataConfig, @@ -614,26 +583,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KMSKey"`: An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text. """ -function start_icd10_cminference_job( +start_icd10_cminference_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehendmedical( + "StartICD10CMInferenceJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehendmedical( - "StartICD10CMInferenceJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_icd10_cminference_job( DataAccessRoleArn, InputDataConfig, @@ -686,26 +653,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KMSKey"`: An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text. """ -function start_phidetection_job( +start_phidetection_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehendmedical( + "StartPHIDetectionJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehendmedical( - "StartPHIDetectionJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_phidetection_job( DataAccessRoleArn, InputDataConfig, @@ -758,26 +723,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KMSKey"`: An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text. """ -function start_rx_norm_inference_job( +start_rx_norm_inference_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehendmedical( + "StartRxNormInferenceJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehendmedical( - "StartRxNormInferenceJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_rx_norm_inference_job( DataAccessRoleArn, InputDataConfig, @@ -829,26 +792,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KMSKey"`: An AWS Key Management Service key used to encrypt your output files. If you do not specify a key, the files are written in plain text. """ -function start_snomedctinference_job( +start_snomedctinference_job( DataAccessRoleArn, InputDataConfig, LanguageCode, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = comprehendmedical( + "StartSNOMEDCTInferenceJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "OutputDataConfig" => OutputDataConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return comprehendmedical( - "StartSNOMEDCTInferenceJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "OutputDataConfig" => OutputDataConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_snomedctinference_job( DataAccessRoleArn, InputDataConfig, @@ -887,16 +848,13 @@ Stops a medical entities detection job in progress. - `job_id`: The identifier of the medical entities job to stop. """ -function stop_entities_detection_v2_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +stop_entities_detection_v2_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "StopEntitiesDetectionV2Job", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_entities_detection_v2_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -918,16 +876,13 @@ Stops an InferICD10CM inference job in progress. - `job_id`: The identifier of the job. """ -function stop_icd10_cminference_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +stop_icd10_cminference_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "StopICD10CMInferenceJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_icd10_cminference_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -949,14 +904,13 @@ Stops a protected health information (PHI) detection job in progress. - `job_id`: The identifier of the PHI detection job to stop. """ -function stop_phidetection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return comprehendmedical( +stop_phidetection_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "StopPHIDetectionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_phidetection_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -978,16 +932,13 @@ Stops an InferRxNorm inference job in progress. - `job_id`: The identifier of the job. """ -function stop_rx_norm_inference_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +stop_rx_norm_inference_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "StopRxNormInferenceJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_rx_norm_inference_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1009,16 +960,13 @@ end - `job_id`: The job id of the asynchronous InferSNOMEDCT job to be stopped. """ -function stop_snomedctinference_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return comprehendmedical( +stop_snomedctinference_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + comprehendmedical( "StopSNOMEDCTInferenceJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_snomedctinference_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/compute_optimizer.jl b/src/services/compute_optimizer.jl index 96c19df35..1363c6991 100644 --- a/src/services/compute_optimizer.jl +++ b/src/services/compute_optimizer.jl @@ -27,21 +27,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide. """ -function delete_recommendation_preferences( +delete_recommendation_preferences( recommendationPreferenceNames, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = compute_optimizer( + "DeleteRecommendationPreferences", + Dict{String,Any}( + "recommendationPreferenceNames" => recommendationPreferenceNames, + "resourceType" => resourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "DeleteRecommendationPreferences", - Dict{String,Any}( - "recommendationPreferenceNames" => recommendationPreferenceNames, - "resourceType" => resourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_recommendation_preferences( recommendationPreferenceNames, resourceType, @@ -86,15 +84,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the remaining results, make another request with the returned nextToken value. - `"nextToken"`: The token to advance to the next page of export jobs. """ -function describe_recommendation_export_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return compute_optimizer( +describe_recommendation_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "DescribeRecommendationExportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_recommendation_export_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -157,16 +152,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"recommendationPreferences"`: An object to specify the preferences for the Auto Scaling group recommendations to export. """ -function export_auto_scaling_group_recommendations( +export_auto_scaling_group_recommendations( s3DestinationConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "ExportAutoScalingGroupRecommendations", + Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "ExportAutoScalingGroupRecommendations", - Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_auto_scaling_group_recommendations( s3DestinationConfig, params::AbstractDict{String}; @@ -227,16 +220,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted. """ -function export_ebsvolume_recommendations( +export_ebsvolume_recommendations( s3DestinationConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "ExportEBSVolumeRecommendations", + Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "ExportEBSVolumeRecommendations", - Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_ebsvolume_recommendations( s3DestinationConfig, params::AbstractDict{String}; @@ -306,16 +297,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"recommendationPreferences"`: An object to specify the preferences for the Amazon EC2 instance recommendations to export. """ -function export_ec2_instance_recommendations( +export_ec2_instance_recommendations( s3DestinationConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "ExportEC2InstanceRecommendations", + Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "ExportEC2InstanceRecommendations", - Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_ec2_instance_recommendations( s3DestinationConfig, params::AbstractDict{String}; @@ -374,16 +363,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organization aren't included in the export file. If this parameter or the account ID parameter is omitted, recommendations for member accounts aren't included in the export. """ -function export_ecsservice_recommendations( +export_ecsservice_recommendations( s3DestinationConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "ExportECSServiceRecommendations", + Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "ExportECSServiceRecommendations", - Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_ecsservice_recommendations( s3DestinationConfig, params::AbstractDict{String}; @@ -444,16 +431,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted. """ -function export_lambda_function_recommendations( +export_lambda_function_recommendations( s3DestinationConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "ExportLambdaFunctionRecommendations", + Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "ExportLambdaFunctionRecommendations", - Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_lambda_function_recommendations( s3DestinationConfig, params::AbstractDict{String}; @@ -510,16 +495,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys accounts of the organization aren't included in the export file . This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive. """ -function export_license_recommendations( +export_license_recommendations( s3DestinationConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "ExportLicenseRecommendations", + Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "ExportLicenseRecommendations", - Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_license_recommendations( s3DestinationConfig, params::AbstractDict{String}; @@ -580,16 +563,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is omitted, recommendations for member accounts aren't included in the export. - `"recommendationPreferences"`: """ -function export_rdsdatabase_recommendations( +export_rdsdatabase_recommendations( s3DestinationConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "ExportRDSDatabaseRecommendations", + Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "ExportRDSDatabaseRecommendations", - Dict{String,Any}("s3DestinationConfig" => s3DestinationConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_rdsdatabase_recommendations( s3DestinationConfig, params::AbstractDict{String}; @@ -636,15 +617,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"recommendationPreferences"`: An object to specify the preferences for the Auto Scaling group recommendations to return in the response. """ -function get_auto_scaling_group_recommendations(; +get_auto_scaling_group_recommendations(; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "GetAutoScalingGroupRecommendations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "GetAutoScalingGroupRecommendations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_auto_scaling_group_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -680,13 +659,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"volumeArns"`: The Amazon Resource Name (ARN) of the volumes for which to return recommendations. """ -function get_ebsvolume_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return compute_optimizer( +get_ebsvolume_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "GetEBSVolumeRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_ebsvolume_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -724,15 +702,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"recommendationPreferences"`: An object to specify the preferences for the Amazon EC2 instance recommendations to return in the response. """ -function get_ec2_instance_recommendations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return compute_optimizer( +get_ec2_instance_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "GetEC2InstanceRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_ec2_instance_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -767,27 +742,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"recommendationPreferences"`: An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response. """ -function get_ec2_recommendation_projected_metrics( +get_ec2_recommendation_projected_metrics( endTime, instanceArn, period, startTime, stat; aws_config::AbstractAWSConfig=current_aws_config(), +) = compute_optimizer( + "GetEC2RecommendationProjectedMetrics", + Dict{String,Any}( + "endTime" => endTime, + "instanceArn" => instanceArn, + "period" => period, + "startTime" => startTime, + "stat" => stat, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "GetEC2RecommendationProjectedMetrics", - Dict{String,Any}( - "endTime" => endTime, - "instanceArn" => instanceArn, - "period" => period, - "startTime" => startTime, - "stat" => stat, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ec2_recommendation_projected_metrics( endTime, instanceArn, @@ -832,27 +805,25 @@ end - `stat`: The statistic of the projected metrics. """ -function get_ecsservice_recommendation_projected_metrics( +get_ecsservice_recommendation_projected_metrics( endTime, period, serviceArn, startTime, stat; aws_config::AbstractAWSConfig=current_aws_config(), +) = compute_optimizer( + "GetECSServiceRecommendationProjectedMetrics", + Dict{String,Any}( + "endTime" => endTime, + "period" => period, + "serviceArn" => serviceArn, + "startTime" => startTime, + "stat" => stat, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "GetECSServiceRecommendationProjectedMetrics", - Dict{String,Any}( - "endTime" => endTime, - "period" => period, - "serviceArn" => serviceArn, - "startTime" => startTime, - "stat" => stat, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ecsservice_recommendation_projected_metrics( endTime, period, @@ -908,15 +879,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceArns"`: The ARN that identifies the Amazon ECS service. The following is the format of the ARN: arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name """ -function get_ecsservice_recommendations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return compute_optimizer( +get_ecsservice_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "GetECSServiceRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_ecsservice_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -944,16 +912,14 @@ recommendation preferences that are in effect, or Active. currently supported. """ -function get_effective_recommendation_preferences( +get_effective_recommendation_preferences( resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "GetEffectiveRecommendationPreferences", + Dict{String,Any}("resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "GetEffectiveRecommendationPreferences", - Dict{String,Any}("resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_effective_recommendation_preferences( resourceArn, params::AbstractDict{String}; @@ -980,11 +946,10 @@ GetEnrollmentStatusesForOrganization action to get detailed information about th enrollment status of member accounts of an organization. """ -function get_enrollment_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return compute_optimizer( +get_enrollment_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "GetEnrollmentStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_enrollment_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1013,15 +978,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results, make another request with the returned nextToken value. - `"nextToken"`: The token to advance to the next page of account enrollment statuses. """ -function get_enrollment_statuses_for_organization(; +get_enrollment_statuses_for_organization(; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "GetEnrollmentStatusesForOrganization"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "GetEnrollmentStatusesForOrganization"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_enrollment_statuses_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1061,15 +1024,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys nextToken value. - `"nextToken"`: The token to advance to the next page of function recommendations. """ -function get_lambda_function_recommendations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return compute_optimizer( +get_lambda_function_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "GetLambdaFunctionRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_lambda_function_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1105,11 +1065,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceArns"`: The ARN that identifies the Amazon EC2 instance. The following is the format of the ARN: arn:aws:ec2:region:aws_account_id:instance/instance-id """ -function get_license_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return compute_optimizer( +get_license_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "GetLicenseRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_license_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1139,27 +1098,25 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"recommendationPreferences"`: """ -function get_rdsdatabase_recommendation_projected_metrics( +get_rdsdatabase_recommendation_projected_metrics( endTime, period, resourceArn, startTime, stat; aws_config::AbstractAWSConfig=current_aws_config(), +) = compute_optimizer( + "GetRDSDatabaseRecommendationProjectedMetrics", + Dict{String,Any}( + "endTime" => endTime, + "period" => period, + "resourceArn" => resourceArn, + "startTime" => startTime, + "stat" => stat, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "GetRDSDatabaseRecommendationProjectedMetrics", - Dict{String,Any}( - "endTime" => endTime, - "period" => period, - "resourceArn" => resourceArn, - "startTime" => startTime, - "stat" => stat, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_rdsdatabase_recommendation_projected_metrics( endTime, period, @@ -1215,15 +1172,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of the ARN: arn:aws:rds:{region}:{accountId}:db:{resourceName} The following is the format of a DB Cluster ARN: arn:aws:rds:{region}:{accountId}:cluster:{resourceName} """ -function get_rdsdatabase_recommendations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return compute_optimizer( +get_rdsdatabase_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "GetRDSDatabaseRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_rdsdatabase_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1263,16 +1217,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide. """ -function get_recommendation_preferences( +get_recommendation_preferences( resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "GetRecommendationPreferences", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "GetRecommendationPreferences", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recommendation_preferences( resourceType, params::AbstractDict{String}; @@ -1310,11 +1262,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys nextToken value. - `"nextToken"`: The token to advance to the next page of recommendation summaries. """ -function get_recommendation_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) - return compute_optimizer( +get_recommendation_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "GetRecommendationSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_recommendation_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1358,8 +1309,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Inferred workload types in the Compute Optimizer User Guide. - `"lookBackPeriod"`: The preference to control the number of days the utilization metrics of the Amazon Web Services resource are analyzed. When this preference isn't specified, we - use the default value DAYS_14. You can only set this preference for the Amazon EC2 - instance and Auto Scaling group resource types. + use the default value DAYS_14. You can only set this preference for the Amazon EC2 + instance and Auto Scaling group resource types. Amazon EC2 instance lookback + preferences can be set at the organization, account, and resource levels. Auto Scaling + group lookback preferences can only be set at the resource level. - `"preferredResources"`: The preference to control which resource type values are considered when generating rightsizing recommendations. You can specify this preference as a combination of include and exclude lists. You must specify either an includeList or @@ -1390,16 +1343,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You can only set CPU and memory utilization preferences for the Amazon EC2 instance resource type. The threshold setting isn’t available for memory utilization. """ -function put_recommendation_preferences( +put_recommendation_preferences( resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = compute_optimizer( + "PutRecommendationPreferences", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return compute_optimizer( - "PutRecommendationPreferences", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_recommendation_preferences( resourceType, params::AbstractDict{String}; @@ -1445,16 +1396,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includeMemberAccounts"`: Indicates whether to enroll member accounts of the organization if the account is the management account of an organization. """ -function update_enrollment_status( - status; aws_config::AbstractAWSConfig=current_aws_config() -) - return compute_optimizer( +update_enrollment_status(status; aws_config::AbstractAWSConfig=current_aws_config()) = + compute_optimizer( "UpdateEnrollmentStatus", Dict{String,Any}("status" => status); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_enrollment_status( status, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/config_service.jl b/src/services/config_service.jl index ea4ab1c4b..1056d3114 100644 --- a/src/services/config_service.jl +++ b/src/services/config_service.jl @@ -19,21 +19,19 @@ resources. The API does not return tags and relationships. - `resource_identifiers`: A list of aggregate ResourceIdentifiers objects. """ -function batch_get_aggregate_resource_config( +batch_get_aggregate_resource_config( ConfigurationAggregatorName, ResourceIdentifiers; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "BatchGetAggregateResourceConfig", + Dict{String,Any}( + "ConfigurationAggregatorName" => ConfigurationAggregatorName, + "ResourceIdentifiers" => ResourceIdentifiers, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "BatchGetAggregateResourceConfig", - Dict{String,Any}( - "ConfigurationAggregatorName" => ConfigurationAggregatorName, - "ResourceIdentifiers" => ResourceIdentifiers, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_aggregate_resource_config( ConfigurationAggregatorName, ResourceIdentifiers, @@ -73,16 +71,14 @@ section of the API response. element in the list consists of the resource type and resource ID. """ -function batch_get_resource_config( +batch_get_resource_config( resourceKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "BatchGetResourceConfig", + Dict{String,Any}("resourceKeys" => resourceKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "BatchGetResourceConfig", - Dict{String,Any}("resourceKeys" => resourceKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_resource_config( resourceKeys, params::AbstractDict{String}; @@ -111,21 +107,19 @@ specified region. - `authorized_aws_region`: The region authorized to collect aggregated data. """ -function delete_aggregation_authorization( +delete_aggregation_authorization( AuthorizedAccountId, AuthorizedAwsRegion; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "DeleteAggregationAuthorization", + Dict{String,Any}( + "AuthorizedAccountId" => AuthorizedAccountId, + "AuthorizedAwsRegion" => AuthorizedAwsRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteAggregationAuthorization", - Dict{String,Any}( - "AuthorizedAccountId" => AuthorizedAccountId, - "AuthorizedAwsRegion" => AuthorizedAwsRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_aggregation_authorization( AuthorizedAccountId, AuthorizedAwsRegion, @@ -163,16 +157,13 @@ DescribeConfigRules request. - `config_rule_name`: The name of the Config rule that you want to delete. """ -function delete_config_rule( - ConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +delete_config_rule(ConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DeleteConfigRule", Dict{String,Any}("ConfigRuleName" => ConfigRuleName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_config_rule( ConfigRuleName, params::AbstractDict{String}; @@ -199,16 +190,14 @@ aggregator. - `configuration_aggregator_name`: The name of the configuration aggregator. """ -function delete_configuration_aggregator( +delete_configuration_aggregator( ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteConfigurationAggregator", + Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteConfigurationAggregator", - Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_aggregator( ConfigurationAggregatorName, params::AbstractDict{String}; @@ -247,16 +236,14 @@ Config console until you create a new configuration recorder. DescribeConfigurationRecorders action. """ -function delete_configuration_recorder( +delete_configuration_recorder( ConfigurationRecorderName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteConfigurationRecorder", + Dict{String,Any}("ConfigurationRecorderName" => ConfigurationRecorderName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteConfigurationRecorder", - Dict{String,Any}("ConfigurationRecorderName" => ConfigurationRecorderName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_recorder( ConfigurationRecorderName, params::AbstractDict{String}; @@ -289,16 +276,14 @@ while it is in this state. - `conformance_pack_name`: Name of the conformance pack you want to delete. """ -function delete_conformance_pack( +delete_conformance_pack( ConformancePackName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteConformancePack", + Dict{String,Any}("ConformancePackName" => ConformancePackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteConformancePack", - Dict{String,Any}("ConformancePackName" => ConformancePackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_conformance_pack( ConformancePackName, params::AbstractDict{String}; @@ -329,16 +314,14 @@ configuration recorder by using the StopConfigurationRecorder action. - `delivery_channel_name`: The name of the delivery channel to delete. """ -function delete_delivery_channel( +delete_delivery_channel( DeliveryChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteDeliveryChannel", + Dict{String,Any}("DeliveryChannelName" => DeliveryChannelName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteDeliveryChannel", - Dict{String,Any}("DeliveryChannelName" => DeliveryChannelName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_delivery_channel( DeliveryChannelName, params::AbstractDict{String}; @@ -372,16 +355,14 @@ against the rule. evaluation results. """ -function delete_evaluation_results( +delete_evaluation_results( ConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteEvaluationResults", + Dict{String,Any}("ConfigRuleName" => ConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteEvaluationResults", - Dict{String,Any}("ConfigRuleName" => ConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_evaluation_results( ConfigRuleName, params::AbstractDict{String}; @@ -413,16 +394,14 @@ deletion is complete. You cannot update a rule while it is in this state. delete. """ -function delete_organization_config_rule( +delete_organization_config_rule( OrganizationConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteOrganizationConfigRule", + Dict{String,Any}("OrganizationConfigRuleName" => OrganizationConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteOrganizationConfigRule", - Dict{String,Any}("OrganizationConfigRuleName" => OrganizationConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_organization_config_rule( OrganizationConfigRuleName, params::AbstractDict{String}; @@ -461,18 +440,14 @@ pack while it is in this state. want to delete. """ -function delete_organization_conformance_pack( +delete_organization_conformance_pack( OrganizationConformancePackName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteOrganizationConformancePack", + Dict{String,Any}("OrganizationConformancePackName" => OrganizationConformancePackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteOrganizationConformancePack", - Dict{String,Any}( - "OrganizationConformancePackName" => OrganizationConformancePackName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_organization_conformance_pack( OrganizationConformancePackName, params::AbstractDict{String}; @@ -507,21 +482,19 @@ region. - `requester_aws_region`: The region requesting to aggregate data. """ -function delete_pending_aggregation_request( +delete_pending_aggregation_request( RequesterAccountId, RequesterAwsRegion; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "DeletePendingAggregationRequest", + Dict{String,Any}( + "RequesterAccountId" => RequesterAccountId, + "RequesterAwsRegion" => RequesterAwsRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeletePendingAggregationRequest", - Dict{String,Any}( - "RequesterAccountId" => RequesterAccountId, - "RequesterAwsRegion" => RequesterAwsRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_pending_aggregation_request( RequesterAccountId, RequesterAwsRegion, @@ -559,16 +532,14 @@ Deletes the remediation configuration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ResourceType"`: The type of a resource. """ -function delete_remediation_configuration( +delete_remediation_configuration( ConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteRemediationConfiguration", + Dict{String,Any}("ConfigRuleName" => ConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteRemediationConfiguration", - Dict{String,Any}("ConfigRuleName" => ConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_remediation_configuration( ConfigRuleName, params::AbstractDict{String}; @@ -601,18 +572,14 @@ cleared. exceptions for 3 resource keys. """ -function delete_remediation_exceptions( +delete_remediation_exceptions( ConfigRuleName, ResourceKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteRemediationExceptions", + Dict{String,Any}("ConfigRuleName" => ConfigRuleName, "ResourceKeys" => ResourceKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteRemediationExceptions", - Dict{String,Any}( - "ConfigRuleName" => ConfigRuleName, "ResourceKeys" => ResourceKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_remediation_exceptions( ConfigRuleName, ResourceKeys, @@ -648,16 +615,14 @@ ConfigurationItems recorded for this resource in your Config History. - `resource_type`: The type of the resource. """ -function delete_resource_config( +delete_resource_config( ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteResourceConfig", + Dict{String,Any}("ResourceId" => ResourceId, "ResourceType" => ResourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteResourceConfig", - Dict{String,Any}("ResourceId" => ResourceId, "ResourceType" => ResourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource_config( ResourceId, ResourceType, @@ -690,16 +655,14 @@ Deletes the retention configuration. - `retention_configuration_name`: The name of the retention configuration to delete. """ -function delete_retention_configuration( +delete_retention_configuration( RetentionConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeleteRetentionConfiguration", + Dict{String,Any}("RetentionConfigurationName" => RetentionConfigurationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeleteRetentionConfiguration", - Dict{String,Any}("RetentionConfigurationName" => RetentionConfigurationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_retention_configuration( RetentionConfigurationName, params::AbstractDict{String}; @@ -732,14 +695,13 @@ Services Region. - `query_name`: The name of the query that you want to delete. """ -function delete_stored_query(QueryName; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +delete_stored_query(QueryName; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DeleteStoredQuery", Dict{String,Any}("QueryName" => QueryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_stored_query( QueryName, params::AbstractDict{String}; @@ -770,16 +732,14 @@ successfully completed. Notification of delivery failure, if the delivery fail delivered. """ -function deliver_config_snapshot( +deliver_config_snapshot( deliveryChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DeliverConfigSnapshot", + Dict{String,Any}("deliveryChannelName" => deliveryChannelName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DeliverConfigSnapshot", - Dict{String,Any}("deliveryChannelName" => deliveryChannelName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deliver_config_snapshot( deliveryChannelName, params::AbstractDict{String}; @@ -819,16 +779,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function describe_aggregate_compliance_by_config_rules( +describe_aggregate_compliance_by_config_rules( ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeAggregateComplianceByConfigRules", + Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeAggregateComplianceByConfigRules", - Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_aggregate_compliance_by_config_rules( ConfigurationAggregatorName, params::AbstractDict{String}; @@ -871,16 +829,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function describe_aggregate_compliance_by_conformance_packs( +describe_aggregate_compliance_by_conformance_packs( ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeAggregateComplianceByConformancePacks", + Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeAggregateComplianceByConformancePacks", - Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_aggregate_compliance_by_conformance_packs( ConfigurationAggregatorName, params::AbstractDict{String}; @@ -915,15 +871,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function describe_aggregation_authorizations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_aggregation_authorizations(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeAggregationAuthorizations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_aggregation_authorizations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -960,15 +913,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function describe_compliance_by_config_rule(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_compliance_by_config_rule(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeComplianceByConfigRule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_compliance_by_config_rule( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1013,15 +963,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys compliance information (for example, AWS::EC2::Instance). For this action, you can specify that the resource type is an Amazon Web Services account by specifying AWS::::Account. """ -function describe_compliance_by_resource(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_compliance_by_resource(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeComplianceByResource"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_compliance_by_resource( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1053,15 +1000,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function describe_config_rule_evaluation_status(; +describe_config_rule_evaluation_status(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeConfigRuleEvaluationStatus"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeConfigRuleEvaluationStatus"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_config_rule_evaluation_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1089,11 +1034,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function describe_config_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +describe_config_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeConfigRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_config_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1127,16 +1071,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys moving data. Valid value SUCCEEDED indicates the data was successfully moved. Valid value OUTDATED indicates the data is not the most recent. """ -function describe_configuration_aggregator_sources_status( +describe_configuration_aggregator_sources_status( ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeConfigurationAggregatorSourcesStatus", + Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeConfigurationAggregatorSourcesStatus", - Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_configuration_aggregator_sources_status( ConfigurationAggregatorName, params::AbstractDict{String}; @@ -1174,15 +1116,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function describe_configuration_aggregators(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_configuration_aggregators(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeConfigurationAggregators"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_configuration_aggregators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1211,15 +1150,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not specified, the action returns the current status of all the configuration recorders associated with the account. """ -function describe_configuration_recorder_status(; +describe_configuration_recorder_status(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeConfigurationRecorderStatus"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeConfigurationRecorderStatus"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_configuration_recorder_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1244,15 +1181,12 @@ Amazon Web Services Region for each account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ConfigurationRecorderNames"`: A list of configuration recorder names. """ -function describe_configuration_recorders(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_configuration_recorders(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeConfigurationRecorders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_configuration_recorders( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1282,16 +1216,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned in a previous request that you use to request the next page of results in a paginated response. """ -function describe_conformance_pack_compliance( +describe_conformance_pack_compliance( ConformancePackName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeConformancePackCompliance", + Dict{String,Any}("ConformancePackName" => ConformancePackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeConformancePackCompliance", - Dict{String,Any}("ConformancePackName" => ConformancePackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_conformance_pack_compliance( ConformancePackName, params::AbstractDict{String}; @@ -1325,15 +1257,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned in a previous request that you use to request the next page of results in a paginated response. """ -function describe_conformance_pack_status(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_conformance_pack_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeConformancePackStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_conformance_pack_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1360,11 +1289,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned in a previous request that you use to request the next page of results in a paginated response. """ -function describe_conformance_packs(; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +describe_conformance_packs(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeConformancePacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_conformance_packs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1389,15 +1317,12 @@ account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DeliveryChannelNames"`: A list of delivery channel names. """ -function describe_delivery_channel_status(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_delivery_channel_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeDeliveryChannelStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_delivery_channel_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1421,11 +1346,10 @@ account. Currently, you can specify only one delivery channel per region in you Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DeliveryChannelNames"`: A list of delivery channel names. """ -function describe_delivery_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +describe_delivery_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeDeliveryChannels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_delivery_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1458,15 +1382,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys want status details. If you do not specify any names, Config returns details for all your organization Config rules. """ -function describe_organization_config_rule_statuses(; +describe_organization_config_rule_statuses(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeOrganizationConfigRuleStatuses"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeOrganizationConfigRuleStatuses"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_organization_config_rule_statuses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1506,15 +1428,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys want details. If you do not specify any names, Config returns details for all your organization Config rules. """ -function describe_organization_config_rules(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_organization_config_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeOrganizationConfigRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_organization_config_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1547,15 +1466,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you want status details. If you do not specify any names, Config returns details for all your organization conformance packs. """ -function describe_organization_conformance_pack_statuses(; +describe_organization_conformance_pack_statuses(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeOrganizationConformancePackStatuses"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeOrganizationConformancePackStatuses"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_organization_conformance_pack_statuses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1594,15 +1511,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OrganizationConformancePackNames"`: The name that you assign to an organization conformance pack. """ -function describe_organization_conformance_packs(; +describe_organization_conformance_packs(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeOrganizationConformancePacks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeOrganizationConformancePacks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_organization_conformance_packs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1627,15 +1542,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function describe_pending_aggregation_requests(; +describe_pending_aggregation_requests(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribePendingAggregationRequests"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribePendingAggregationRequests"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_pending_aggregation_requests( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1658,16 +1571,14 @@ Returns the details of one or more remediation configurations. you want details. """ -function describe_remediation_configurations( +describe_remediation_configurations( ConfigRuleNames; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeRemediationConfigurations", + Dict{String,Any}("ConfigRuleNames" => ConfigRuleNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeRemediationConfigurations", - Dict{String,Any}("ConfigRuleNames" => ConfigRuleNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_remediation_configurations( ConfigRuleNames, params::AbstractDict{String}; @@ -1711,16 +1622,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys current request. Config adds exception for each resource key. For example, Config adds 3 exceptions for 3 resource keys. """ -function describe_remediation_exceptions( +describe_remediation_exceptions( ConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeRemediationExceptions", + Dict{String,Any}("ConfigRuleName" => ConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeRemediationExceptions", - Dict{String,Any}("ConfigRuleName" => ConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_remediation_exceptions( ConfigRuleName, params::AbstractDict{String}; @@ -1757,16 +1666,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceKeys"`: A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID. """ -function describe_remediation_execution_status( +describe_remediation_execution_status( ConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "DescribeRemediationExecutionStatus", + Dict{String,Any}("ConfigRuleName" => ConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "DescribeRemediationExecutionStatus", - Dict{String,Any}("ConfigRuleName" => ConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_remediation_execution_status( ConfigRuleName, params::AbstractDict{String}; @@ -1800,15 +1707,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retention configurations for that account. Currently, Config supports only one retention configuration per region in your account. """ -function describe_retention_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +describe_retention_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "DescribeRetentionConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_retention_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1847,25 +1751,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_aggregate_compliance_details_by_config_rule( +get_aggregate_compliance_details_by_config_rule( AccountId, AwsRegion, ConfigRuleName, ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "GetAggregateComplianceDetailsByConfigRule", + Dict{String,Any}( + "AccountId" => AccountId, + "AwsRegion" => AwsRegion, + "ConfigRuleName" => ConfigRuleName, + "ConfigurationAggregatorName" => ConfigurationAggregatorName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetAggregateComplianceDetailsByConfigRule", - Dict{String,Any}( - "AccountId" => AccountId, - "AwsRegion" => AwsRegion, - "ConfigRuleName" => ConfigRuleName, - "ConfigurationAggregatorName" => ConfigurationAggregatorName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_aggregate_compliance_details_by_config_rule( AccountId, AwsRegion, @@ -1914,16 +1816,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_aggregate_config_rule_compliance_summary( +get_aggregate_config_rule_compliance_summary( ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetAggregateConfigRuleComplianceSummary", + Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetAggregateConfigRuleComplianceSummary", - Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_aggregate_config_rule_compliance_summary( ConfigurationAggregatorName, params::AbstractDict{String}; @@ -1968,16 +1868,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_aggregate_conformance_pack_compliance_summary( +get_aggregate_conformance_pack_compliance_summary( ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetAggregateConformancePackComplianceSummary", + Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetAggregateConformancePackComplianceSummary", - Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_aggregate_conformance_pack_compliance_summary( ConfigurationAggregatorName, params::AbstractDict{String}; @@ -2023,16 +1921,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_aggregate_discovered_resource_counts( +get_aggregate_discovered_resource_counts( ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetAggregateDiscoveredResourceCounts", + Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetAggregateDiscoveredResourceCounts", - Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_aggregate_discovered_resource_counts( ConfigurationAggregatorName, params::AbstractDict{String}; @@ -2066,21 +1962,19 @@ source account and region. - `resource_identifier`: An object that identifies aggregate resource. """ -function get_aggregate_resource_config( +get_aggregate_resource_config( ConfigurationAggregatorName, ResourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "GetAggregateResourceConfig", + Dict{String,Any}( + "ConfigurationAggregatorName" => ConfigurationAggregatorName, + "ResourceIdentifier" => ResourceIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetAggregateResourceConfig", - Dict{String,Any}( - "ConfigurationAggregatorName" => ConfigurationAggregatorName, - "ResourceIdentifier" => ResourceIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_aggregate_resource_config( ConfigurationAggregatorName, ResourceIdentifier, @@ -2125,16 +2019,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_compliance_details_by_config_rule( - ConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( - "GetComplianceDetailsByConfigRule", - Dict{String,Any}("ConfigRuleName" => ConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_compliance_details_by_config_rule( + ConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetComplianceDetailsByConfigRule", + Dict{String,Any}("ConfigRuleName" => ConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_compliance_details_by_config_rule( ConfigRuleName, params::AbstractDict{String}; @@ -2173,15 +2065,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceType"`: The type of the Amazon Web Services resource for which you want compliance information. """ -function get_compliance_details_by_resource(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +get_compliance_details_by_resource(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "GetComplianceDetailsByResource"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_compliance_details_by_resource( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2201,15 +2090,13 @@ Returns the number of Config rules that are compliant and noncompliant, up to a 25 for each. """ -function get_compliance_summary_by_config_rule(; +get_compliance_summary_by_config_rule(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetComplianceSummaryByConfigRule"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetComplianceSummaryByConfigRule"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_compliance_summary_by_config_rule( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2237,15 +2124,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You can specify that the resource type is an Amazon Web Services account by specifying AWS::::Account. """ -function get_compliance_summary_by_resource_type(; +get_compliance_summary_by_resource_type(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetComplianceSummaryByResourceType"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetComplianceSummaryByResourceType"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_compliance_summary_by_resource_type( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2275,16 +2160,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned in a previous request that you use to request the next page of results in a paginated response. """ -function get_conformance_pack_compliance_details( +get_conformance_pack_compliance_details( ConformancePackName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetConformancePackComplianceDetails", + Dict{String,Any}("ConformancePackName" => ConformancePackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetConformancePackComplianceDetails", - Dict{String,Any}("ConformancePackName" => ConformancePackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_conformance_pack_compliance_details( ConformancePackName, params::AbstractDict{String}; @@ -2320,16 +2203,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_conformance_pack_compliance_summary( +get_conformance_pack_compliance_summary( ConformancePackNames; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetConformancePackComplianceSummary", + Dict{String,Any}("ConformancePackNames" => ConformancePackNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetConformancePackComplianceSummary", - Dict{String,Any}("ConformancePackNames" => ConformancePackNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_conformance_pack_compliance_summary( ConformancePackNames, params::AbstractDict{String}; @@ -2359,11 +2240,10 @@ Returns the policy definition containing the logic for your Config Custom Policy Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ConfigRuleName"`: The name of your Config Custom Policy rule. """ -function get_custom_rule_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +get_custom_rule_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "GetCustomRulePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_custom_rule_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2410,15 +2290,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys recording a specific resource type (for example, S3 buckets), that resource type is not returned in the list of ResourceCount objects. """ -function get_discovered_resource_counts(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +get_discovered_resource_counts(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "GetDiscoveredResourceCounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_discovered_resource_counts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2449,16 +2326,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_organization_config_rule_detailed_status( +get_organization_config_rule_detailed_status( OrganizationConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetOrganizationConfigRuleDetailedStatus", + Dict{String,Any}("OrganizationConfigRuleName" => OrganizationConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetOrganizationConfigRuleDetailedStatus", - Dict{String,Any}("OrganizationConfigRuleName" => OrganizationConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_organization_config_rule_detailed_status( OrganizationConfigRuleName, params::AbstractDict{String}; @@ -2499,18 +2374,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_organization_conformance_pack_detailed_status( +get_organization_conformance_pack_detailed_status( OrganizationConformancePackName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetOrganizationConformancePackDetailedStatus", + Dict{String,Any}("OrganizationConformancePackName" => OrganizationConformancePackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetOrganizationConformancePackDetailedStatus", - Dict{String,Any}( - "OrganizationConformancePackName" => OrganizationConformancePackName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_organization_conformance_pack_detailed_status( OrganizationConformancePackName, params::AbstractDict{String}; @@ -2543,16 +2414,14 @@ Policy rule. - `organization_config_rule_name`: The name of your organization Config Custom Policy rule. """ -function get_organization_custom_rule_policy( +get_organization_custom_rule_policy( OrganizationConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetOrganizationCustomRulePolicy", + Dict{String,Any}("OrganizationConfigRuleName" => OrganizationConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetOrganizationCustomRulePolicy", - Dict{String,Any}("OrganizationConfigRuleName" => OrganizationConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_organization_custom_rule_policy( OrganizationConfigRuleName, params::AbstractDict{String}; @@ -2611,16 +2480,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function get_resource_config_history( +get_resource_config_history( resourceId, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetResourceConfigHistory", + Dict{String,Any}("resourceId" => resourceId, "resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetResourceConfigHistory", - Dict{String,Any}("resourceId" => resourceId, "resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_config_history( resourceId, resourceType, @@ -2660,16 +2527,14 @@ information, see the Examples section. execution for which you want to retrieve the evaluation summary. """ -function get_resource_evaluation_summary( +get_resource_evaluation_summary( ResourceEvaluationId; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "GetResourceEvaluationSummary", + Dict{String,Any}("ResourceEvaluationId" => ResourceEvaluationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "GetResourceEvaluationSummary", - Dict{String,Any}("ResourceEvaluationId" => ResourceEvaluationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_evaluation_summary( ResourceEvaluationId, params::AbstractDict{String}; @@ -2699,14 +2564,13 @@ Returns the details of a specific stored query. - `query_name`: The name of the query. """ -function get_stored_query(QueryName; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +get_stored_query(QueryName; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "GetStoredQuery", Dict{String,Any}("QueryName" => QueryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_stored_query( QueryName, params::AbstractDict{String}; @@ -2747,21 +2611,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function list_aggregate_discovered_resources( +list_aggregate_discovered_resources( ConfigurationAggregatorName, ResourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "ListAggregateDiscoveredResources", + Dict{String,Any}( + "ConfigurationAggregatorName" => ConfigurationAggregatorName, + "ResourceType" => ResourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "ListAggregateDiscoveredResources", - Dict{String,Any}( - "ConfigurationAggregatorName" => ConfigurationAggregatorName, - "ResourceType" => ResourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_aggregate_discovered_resources( ConfigurationAggregatorName, ResourceType, @@ -2816,15 +2678,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys conformance packs with a compliance score of INSUFFICIENT_DATA will be last when sorting by ascending order and first when sorting by descending order. """ -function list_conformance_pack_compliance_scores(; +list_conformance_pack_compliance_scores(; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "ListConformancePackComplianceScores"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "ListConformancePackComplianceScores"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_conformance_pack_compliance_scores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2871,16 +2731,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response. If you do not specify this parameter, Config lists all resources of the specified type that it has discovered. """ -function list_discovered_resources( +list_discovered_resources( resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "ListDiscoveredResources", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "ListDiscoveredResources", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_discovered_resources( resourceType, params::AbstractDict{String}; @@ -2910,11 +2768,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function list_resource_evaluations(; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +list_resource_evaluations(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "ListResourceEvaluations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_resource_evaluations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2939,11 +2796,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned in a previous request that you use to request the next page of results in a paginated response. """ -function list_stored_queries(; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( - "ListStoredQueries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_stored_queries(; aws_config::AbstractAWSConfig=current_aws_config()) = config_service( + "ListStoredQueries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_stored_queries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2970,16 +2825,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -3015,21 +2867,19 @@ different. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: An array of tag object. """ -function put_aggregation_authorization( +put_aggregation_authorization( AuthorizedAccountId, AuthorizedAwsRegion; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "PutAggregationAuthorization", + Dict{String,Any}( + "AuthorizedAccountId" => AuthorizedAccountId, + "AuthorizedAwsRegion" => AuthorizedAwsRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutAggregationAuthorization", - Dict{String,Any}( - "AuthorizedAccountId" => AuthorizedAccountId, - "AuthorizedAwsRegion" => AuthorizedAwsRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_aggregation_authorization( AuthorizedAccountId, AuthorizedAwsRegion, @@ -3092,14 +2942,13 @@ are different. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: An array of tag object. """ -function put_config_rule(ConfigRule; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +put_config_rule(ConfigRule; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "PutConfigRule", Dict{String,Any}("ConfigRule" => ConfigRule); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_config_rule( ConfigRule, params::AbstractDict{String}; @@ -3146,16 +2995,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OrganizationAggregationSource"`: An OrganizationAggregationSource object. - `"Tags"`: An array of tag object. """ -function put_configuration_aggregator( +put_configuration_aggregator( ConfigurationAggregatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutConfigurationAggregator", + Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutConfigurationAggregator", - Dict{String,Any}("ConfigurationAggregatorName" => ConfigurationAggregatorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_aggregator( ConfigurationAggregatorName, params::AbstractDict{String}; @@ -3193,16 +3040,14 @@ recordingGroup field specified, the default is to record all supported resource configuration changes for specified resource types. """ -function put_configuration_recorder( +put_configuration_recorder( ConfigurationRecorder; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutConfigurationRecorder", + Dict{String,Any}("ConfigurationRecorder" => ConfigurationRecorder); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutConfigurationRecorder", - Dict{String,Any}("ConfigurationRecorder" => ConfigurationRecorder); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_recorder( ConfigurationRecorder, params::AbstractDict{String}; @@ -3258,16 +3103,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Manager document (SSM document) and the version of the SSM document that is used to create a conformance pack. """ -function put_conformance_pack( +put_conformance_pack( ConformancePackName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutConformancePack", + Dict{String,Any}("ConformancePackName" => ConformancePackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutConformancePack", - Dict{String,Any}("ConformancePackName" => ConformancePackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_conformance_pack( ConformancePackName, params::AbstractDict{String}; @@ -3306,16 +3149,13 @@ not changed. You can have only one delivery channel per region in your account. configuration information to an Amazon S3 bucket and to an Amazon SNS topic. """ -function put_delivery_channel( - DeliveryChannel; aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +put_delivery_channel(DeliveryChannel; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "PutDeliveryChannel", Dict{String,Any}("DeliveryChannel" => DeliveryChannel); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_delivery_channel( DeliveryChannel, params::AbstractDict{String}; @@ -3355,14 +3195,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys true, PutEvaluations doesn't require a valid value for the ResultToken parameter, but the value cannot be null. """ -function put_evaluations(ResultToken; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +put_evaluations(ResultToken; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "PutEvaluations", Dict{String,Any}("ResultToken" => ResultToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_evaluations( ResultToken, params::AbstractDict{String}; @@ -3391,18 +3230,16 @@ check when the name of the Config rule is provided. compliance. """ -function put_external_evaluation( +put_external_evaluation( ConfigRuleName, ExternalEvaluation; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutExternalEvaluation", + Dict{String,Any}( + "ConfigRuleName" => ConfigRuleName, "ExternalEvaluation" => ExternalEvaluation + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutExternalEvaluation", - Dict{String,Any}( - "ConfigRuleName" => ConfigRuleName, "ExternalEvaluation" => ExternalEvaluation - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_external_evaluation( ConfigRuleName, ExternalEvaluation, @@ -3487,16 +3324,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services resource along with the rule identifier. It also provides the frequency with which you want Config to run evaluations for the rule if the trigger type is periodic. """ -function put_organization_config_rule( +put_organization_config_rule( OrganizationConfigRuleName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutOrganizationConfigRule", + Dict{String,Any}("OrganizationConfigRuleName" => OrganizationConfigRuleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutOrganizationConfigRule", - Dict{String,Any}("OrganizationConfigRuleName" => OrganizationConfigRuleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_organization_config_rule( OrganizationConfigRuleName, params::AbstractDict{String}; @@ -3563,18 +3398,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys bucket. In addition, in order to ensure a successful deployment, the template object must not be in an archived storage class if this parameter is passed. """ -function put_organization_conformance_pack( +put_organization_conformance_pack( OrganizationConformancePackName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutOrganizationConformancePack", + Dict{String,Any}("OrganizationConformancePackName" => OrganizationConformancePackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutOrganizationConformancePack", - Dict{String,Any}( - "OrganizationConformancePackName" => OrganizationConformancePackName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_organization_conformance_pack( OrganizationConformancePackName, params::AbstractDict{String}; @@ -3628,16 +3459,14 @@ compliance data snapshot. - `remediation_configurations`: A list of remediation configuration objects. """ -function put_remediation_configurations( +put_remediation_configurations( RemediationConfigurations; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutRemediationConfigurations", + Dict{String,Any}("RemediationConfigurations" => RemediationConfigurations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutRemediationConfigurations", - Dict{String,Any}("RemediationConfigurations" => RemediationConfigurations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_remediation_configurations( RemediationConfigurations, params::AbstractDict{String}; @@ -3700,18 +3529,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ExpirationTime"`: The exception is automatically deleted after the expiration date. - `"Message"`: The message contains an explanation of the exception. """ -function put_remediation_exceptions( +put_remediation_exceptions( ConfigRuleName, ResourceKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutRemediationExceptions", + Dict{String,Any}("ConfigRuleName" => ConfigRuleName, "ResourceKeys" => ResourceKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutRemediationExceptions", - Dict{String,Any}( - "ConfigRuleName" => ConfigRuleName, "ResourceKeys" => ResourceKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_remediation_exceptions( ConfigRuleName, ResourceKeys, @@ -3768,25 +3593,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys PutResourceConfig are tags that you supply for the configuration items of your custom resources. """ -function put_resource_config( +put_resource_config( Configuration, ResourceId, ResourceType, SchemaVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "PutResourceConfig", + Dict{String,Any}( + "Configuration" => Configuration, + "ResourceId" => ResourceId, + "ResourceType" => ResourceType, + "SchemaVersionId" => SchemaVersionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutResourceConfig", - Dict{String,Any}( - "Configuration" => Configuration, - "ResourceId" => ResourceId, - "ResourceType" => ResourceType, - "SchemaVersionId" => SchemaVersionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_config( Configuration, ResourceId, @@ -3829,16 +3652,14 @@ Currently, Config supports only one retention configuration per region in your a Currently, only applicable to the configuration item history. """ -function put_retention_configuration( +put_retention_configuration( RetentionPeriodInDays; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "PutRetentionConfiguration", + Dict{String,Any}("RetentionPeriodInDays" => RetentionPeriodInDays); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "PutRetentionConfiguration", - Dict{String,Any}("RetentionPeriodInDays" => RetentionPeriodInDays); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_retention_configuration( RetentionPeriodInDays, params::AbstractDict{String}; @@ -3880,14 +3701,13 @@ previous. In this case, tags will not be updated, even if they are different. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A list of Tags object. """ -function put_stored_query(StoredQuery; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +put_stored_query(StoredQuery; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "PutStoredQuery", Dict{String,Any}("StoredQuery" => StoredQuery); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_stored_query( StoredQuery, params::AbstractDict{String}; @@ -3931,21 +3751,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned in a previous request that you use to request the next page of results in a paginated response. """ -function select_aggregate_resource_config( +select_aggregate_resource_config( ConfigurationAggregatorName, Expression; aws_config::AbstractAWSConfig=current_aws_config(), +) = config_service( + "SelectAggregateResourceConfig", + Dict{String,Any}( + "ConfigurationAggregatorName" => ConfigurationAggregatorName, + "Expression" => Expression, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "SelectAggregateResourceConfig", - Dict{String,Any}( - "ConfigurationAggregatorName" => ConfigurationAggregatorName, - "Expression" => Expression, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function select_aggregate_resource_config( ConfigurationAggregatorName, Expression, @@ -3986,16 +3804,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The nextToken string returned in a previous request that you use to request the next page of results in a paginated response. """ -function select_resource_config( - Expression; aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +select_resource_config(Expression; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "SelectResourceConfig", Dict{String,Any}("Expression" => Expression); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function select_resource_config( Expression, params::AbstractDict{String}; @@ -4037,11 +3852,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ConfigRuleNames"`: The list of names of Config rules that you want to run evaluations for. """ -function start_config_rules_evaluation(; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +start_config_rules_evaluation(; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "StartConfigRulesEvaluation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function start_config_rules_evaluation( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4066,16 +3880,14 @@ channel to successfully start the configuration recorder. configuration change made to the resources. """ -function start_configuration_recorder( +start_configuration_recorder( ConfigurationRecorderName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "StartConfigurationRecorder", + Dict{String,Any}("ConfigurationRecorderName" => ConfigurationRecorderName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "StartConfigurationRecorder", - Dict{String,Any}("ConfigurationRecorderName" => ConfigurationRecorderName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_configuration_recorder( ConfigurationRecorderName, params::AbstractDict{String}; @@ -4112,18 +3924,14 @@ must complete before you can call the API again. element in the list consists of the resource type and resource ID. """ -function start_remediation_execution( +start_remediation_execution( ConfigRuleName, ResourceKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "StartRemediationExecution", + Dict{String,Any}("ConfigRuleName" => ConfigRuleName, "ResourceKeys" => ResourceKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "StartRemediationExecution", - Dict{String,Any}( - "ConfigRuleName" => ConfigRuleName, "ResourceKeys" => ResourceKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_remediation_execution( ConfigRuleName, ResourceKeys, @@ -4181,18 +3989,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EvaluationTimeout"`: The timeout for an evaluation. The default is 900 seconds. You cannot specify a number greater than 3600. If you specify 0, Config uses the default. """ -function start_resource_evaluation( +start_resource_evaluation( EvaluationMode, ResourceDetails; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "StartResourceEvaluation", + Dict{String,Any}( + "EvaluationMode" => EvaluationMode, "ResourceDetails" => ResourceDetails + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "StartResourceEvaluation", - Dict{String,Any}( - "EvaluationMode" => EvaluationMode, "ResourceDetails" => ResourceDetails - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_resource_evaluation( EvaluationMode, ResourceDetails, @@ -4227,16 +4033,14 @@ record in your Amazon Web Services account. configuration change made to the resources. """ -function stop_configuration_recorder( +stop_configuration_recorder( ConfigurationRecorderName; aws_config::AbstractAWSConfig=current_aws_config() +) = config_service( + "StopConfigurationRecorder", + Dict{String,Any}("ConfigurationRecorderName" => ConfigurationRecorderName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return config_service( - "StopConfigurationRecorder", - Dict{String,Any}("ConfigurationRecorderName" => ConfigurationRecorderName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_configuration_recorder( ConfigurationRecorderName, params::AbstractDict{String}; @@ -4272,14 +4076,13 @@ deleted, the tags associated with that resource are deleted as well. - `tags`: An array of tag object. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return config_service( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -4313,16 +4116,13 @@ Deletes specified tags from a resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return config_service( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + config_service( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, diff --git a/src/services/connect.jl b/src/services/connect.jl index 8a4f44da1..a87f15dac 100644 --- a/src/services/connect.jl +++ b/src/services/connect.jl @@ -19,20 +19,18 @@ form is activated, it is available to start new evaluations based on the form. ID in the Amazon Resource Name (ARN) of the instance. """ -function activate_evaluation_form( +activate_evaluation_form( EvaluationFormId, EvaluationFormVersion, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)/activate", + Dict{String,Any}("EvaluationFormVersion" => EvaluationFormVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)/activate", - Dict{String,Any}("EvaluationFormVersion" => EvaluationFormVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function activate_evaluation_form( EvaluationFormId, EvaluationFormVersion, @@ -75,17 +73,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by default this value is the Amazon Web Services account that has the Amazon Connect instance. """ -function associate_analytics_data_set( +associate_analytics_data_set( DataSetId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/analytics-data/instance/$(InstanceId)/association", + Dict{String,Any}("DataSetId" => DataSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/analytics-data/instance/$(InstanceId)/association", - Dict{String,Any}("DataSetId" => DataSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_analytics_data_set( DataSetId, InstanceId, @@ -116,17 +112,15 @@ approved origin to an Amazon Connect instance. - `origin`: The domain to add to your allow list. """ -function associate_approved_origin( +associate_approved_origin( InstanceId, Origin; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/instance/$(InstanceId)/approved-origin", + Dict{String,Any}("Origin" => Origin); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/instance/$(InstanceId)/approved-origin", - Dict{String,Any}("Origin" => Origin); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_approved_origin( InstanceId, Origin, @@ -158,14 +152,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LexBot"`: - `"LexV2Bot"`: The Amazon Lex V2 bot to associate with the instance. """ -function associate_bot(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "PUT", - "/instance/$(InstanceId)/bot"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +associate_bot(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "PUT", + "/instance/$(InstanceId)/bot"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function associate_bot( InstanceId, params::AbstractDict{String}; @@ -198,16 +190,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VocabularyId"`: The identifier of the custom vocabulary. If this is empty, the default is set to none. """ -function associate_default_vocabulary( +associate_default_vocabulary( InstanceId, LanguageCode; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/default-vocabulary/$(InstanceId)/$(LanguageCode)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/default-vocabulary/$(InstanceId)/$(LanguageCode)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_default_vocabulary( InstanceId, LanguageCode, @@ -237,23 +227,21 @@ Associates a connect resource to a flow. - `resource_type`: A valid resource type. """ -function associate_flow( +associate_flow( FlowId, InstanceId, ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/flow-associations/$(InstanceId)", + Dict{String,Any}( + "FlowId" => FlowId, "ResourceId" => ResourceId, "ResourceType" => ResourceType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/flow-associations/$(InstanceId)", - Dict{String,Any}( - "FlowId" => FlowId, "ResourceId" => ResourceId, "ResourceType" => ResourceType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_flow( FlowId, InstanceId, @@ -307,20 +295,18 @@ association. - `storage_config`: A valid storage type. """ -function associate_instance_storage_config( +associate_instance_storage_config( InstanceId, ResourceType, StorageConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/instance/$(InstanceId)/storage-config", + Dict{String,Any}("ResourceType" => ResourceType, "StorageConfig" => StorageConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/instance/$(InstanceId)/storage-config", - Dict{String,Any}("ResourceType" => ResourceType, "StorageConfig" => StorageConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_instance_storage_config( InstanceId, ResourceType, @@ -359,17 +345,15 @@ specified Amazon Connect instance to access the specified Lambda function. ID in the Amazon Resource Name (ARN) of the instance. """ -function associate_lambda_function( +associate_lambda_function( FunctionArn, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/instance/$(InstanceId)/lambda-function", + Dict{String,Any}("FunctionArn" => FunctionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/instance/$(InstanceId)/lambda-function", - Dict{String,Any}("FunctionArn" => FunctionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_lambda_function( FunctionArn, InstanceId, @@ -401,17 +385,14 @@ supports the association of Amazon Lex V1 bots. - `lex_bot`: The Amazon Lex bot to associate with the instance. """ -function associate_lex_bot( - InstanceId, LexBot; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +associate_lex_bot(InstanceId, LexBot; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "PUT", "/instance/$(InstanceId)/lex-bot", Dict{String,Any}("LexBot" => LexBot); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_lex_bot( InstanceId, LexBot, @@ -447,20 +428,18 @@ If a UUID is provided in this scenario, you will receive a ResourceNotFoundExcep - `phone_number_id`: A unique identifier for the phone number. """ -function associate_phone_number_contact_flow( +associate_phone_number_contact_flow( ContactFlowId, InstanceId, PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/phone-number/$(PhoneNumberId)/contact-flow", + Dict{String,Any}("ContactFlowId" => ContactFlowId, "InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/phone-number/$(PhoneNumberId)/contact-flow", - Dict{String,Any}("ContactFlowId" => ContactFlowId, "InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_phone_number_contact_flow( ContactFlowId, InstanceId, @@ -499,17 +478,15 @@ set of quick connects with a queue. - `quick_connect_ids`: The quick connects to associate with this queue. """ -function associate_queue_quick_connects( +associate_queue_quick_connects( InstanceId, QueueId, QuickConnectIds; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/queues/$(InstanceId)/$(QueueId)/associate-quick-connects", + Dict{String,Any}("QuickConnectIds" => QuickConnectIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/queues/$(InstanceId)/$(QueueId)/associate-quick-connects", - Dict{String,Any}("QuickConnectIds" => QuickConnectIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_queue_quick_connects( InstanceId, QueueId, @@ -543,20 +520,18 @@ Associates a set of queues with a routing profile. - `routing_profile_id`: The identifier of the routing profile. """ -function associate_routing_profile_queues( +associate_routing_profile_queues( InstanceId, QueueConfigs, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/associate-queues", + Dict{String,Any}("QueueConfigs" => QueueConfigs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/associate-queues", - Dict{String,Any}("QueueConfigs" => QueueConfigs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_routing_profile_queues( InstanceId, QueueConfigs, @@ -585,20 +560,18 @@ security key to the instance. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. -- `key`: A valid security key in PEM format. +- `key`: A valid security key in PEM format as a String. """ -function associate_security_key( +associate_security_key( InstanceId, Key; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/instance/$(InstanceId)/security-key", + Dict{String,Any}("Key" => Key); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/instance/$(InstanceId)/security-key", - Dict{String,Any}("Key" => Key); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_security_key( InstanceId, Key, @@ -630,20 +603,18 @@ Associates an agent with a traffic distribution group. - `user_id`: The identifier of the user account. This can be the ID or the ARN of the user. """ -function associate_traffic_distribution_group_user( +associate_traffic_distribution_group_user( InstanceId, TrafficDistributionGroupId, UserId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/traffic-distribution-group/$(TrafficDistributionGroupId)/user", + Dict{String,Any}("InstanceId" => InstanceId, "UserId" => UserId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/traffic-distribution-group/$(TrafficDistributionGroupId)/user", - Dict{String,Any}("InstanceId" => InstanceId, "UserId" => UserId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_traffic_distribution_group_user( InstanceId, TrafficDistributionGroupId, @@ -679,20 +650,18 @@ end - `user_proficiencies`: The proficiencies to associate with the user. """ -function associate_user_proficiencies( +associate_user_proficiencies( InstanceId, UserId, UserProficiencies; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/associate-proficiencies", + Dict{String,Any}("UserProficiencies" => UserProficiencies); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/associate-proficiencies", - Dict{String,Any}("UserProficiencies" => UserProficiencies); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_user_proficiencies( InstanceId, UserId, @@ -733,17 +702,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by default this value is the Amazon Web Services account that has the Amazon Connect instance. """ -function batch_associate_analytics_data_set( +batch_associate_analytics_data_set( DataSetIds, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/analytics-data/instance/$(InstanceId)/associations", + Dict{String,Any}("DataSetIds" => DataSetIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/analytics-data/instance/$(InstanceId)/associations", - Dict{String,Any}("DataSetIds" => DataSetIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_analytics_data_set( DataSetIds, InstanceId, @@ -781,17 +748,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified, by default this value is the Amazon Web Services account that has the Amazon Connect instance. """ -function batch_disassociate_analytics_data_set( +batch_disassociate_analytics_data_set( DataSetIds, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/analytics-data/instance/$(InstanceId)/associations", + Dict{String,Any}("DataSetIds" => DataSetIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/analytics-data/instance/$(InstanceId)/associations", - Dict{String,Any}("DataSetIds" => DataSetIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_analytics_data_set( DataSetIds, InstanceId, @@ -824,22 +789,20 @@ AssociatedResourceArn. to. Cases are the only current supported resource. This value must be a valid ARN. """ -function batch_get_attached_file_metadata( +batch_get_attached_file_metadata( FileIds, InstanceId, associatedResourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/attached-files/$(InstanceId)", + Dict{String,Any}( + "FileIds" => FileIds, "associatedResourceArn" => associatedResourceArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/attached-files/$(InstanceId)", - Dict{String,Any}( - "FileIds" => FileIds, "associatedResourceArn" => associatedResourceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_attached_file_metadata( FileIds, InstanceId, @@ -879,17 +842,15 @@ Retrieve the flow associations for the given resources. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ResourceType"`: The type of resource association. """ -function batch_get_flow_association( +batch_get_flow_association( InstanceId, ResourceIds; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/flow-associations-batch/$(InstanceId)", + Dict{String,Any}("ResourceIds" => ResourceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/flow-associations-batch/$(InstanceId)", - Dict{String,Any}("ResourceIds" => ResourceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_flow_association( InstanceId, ResourceIds, @@ -930,20 +891,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function batch_put_contact( +batch_put_contact( ContactDataRequestList, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/contact/batch/$(InstanceId)", + Dict{String,Any}( + "ContactDataRequestList" => ContactDataRequestList, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/contact/batch/$(InstanceId)", - Dict{String,Any}( - "ContactDataRequestList" => ContactDataRequestList, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_contact( ContactDataRequestList, InstanceId, @@ -1011,15 +970,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys distribution groups that phone number inbound traffic is routed through. You must enter InstanceId or TargetArn. """ -function claim_phone_number(PhoneNumber; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +claim_phone_number(PhoneNumber; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/phone-number/claim", Dict{String,Any}("PhoneNumber" => PhoneNumber, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function claim_phone_number( PhoneNumber, params::AbstractDict{String}; @@ -1051,25 +1009,23 @@ provided in the StartAttachedFileUpload API. # Arguments - `file_id`: The unique identifier of the attached file resource. -- `instance_id`: The unique identifier of the Connect instance. +- `instance_id`: The unique identifier of the Amazon Connect instance. - `associated_resource_arn`: The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. This value must be a valid ARN. """ -function complete_attached_file_upload( +complete_attached_file_upload( FileId, InstanceId, associatedResourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/attached-files/$(InstanceId)/$(FileId)", + Dict{String,Any}("associatedResourceArn" => associatedResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/attached-files/$(InstanceId)/$(FileId)", - Dict{String,Any}("associatedResourceArn" => associatedResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_attached_file_upload( FileId, InstanceId, @@ -1112,17 +1068,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_agent_status( +create_agent_status( InstanceId, Name, State; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/agent-status/$(InstanceId)", + Dict{String,Any}("Name" => Name, "State" => State); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/agent-status/$(InstanceId)", - Dict{String,Any}("Name" => Name, "State" => State); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_agent_status( InstanceId, Name, @@ -1166,17 +1120,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_contact_flow( +create_contact_flow( Content, InstanceId, Name, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/contact-flows/$(InstanceId)", + Dict{String,Any}("Content" => Content, "Name" => Name, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/contact-flows/$(InstanceId)", - Dict{String,Any}("Content" => Content, "Name" => Name, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_contact_flow( Content, InstanceId, @@ -1222,19 +1174,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_contact_flow_module( +create_contact_flow_module( Content, InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/contact-flow-modules/$(InstanceId)", + Dict{String,Any}( + "Content" => Content, "Name" => Name, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/contact-flow-modules/$(InstanceId)", - Dict{String,Any}( - "Content" => Content, "Name" => Name, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_contact_flow_module( Content, InstanceId, @@ -1283,19 +1233,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the evaluation form. - `"ScoringStrategy"`: A scoring strategy of the evaluation form. """ -function create_evaluation_form( +create_evaluation_form( InstanceId, Items, Title; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/evaluation-forms/$(InstanceId)", + Dict{String,Any}("Items" => Items, "Title" => Title, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/evaluation-forms/$(InstanceId)", - Dict{String,Any}( - "Items" => Items, "Title" => Title, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_evaluation_form( InstanceId, Items, @@ -1341,17 +1287,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_hours_of_operation( +create_hours_of_operation( Config, InstanceId, Name, TimeZone; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/hours-of-operations/$(InstanceId)", + Dict{String,Any}("Config" => Config, "Name" => Name, "TimeZone" => TimeZone); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/hours-of-operations/$(InstanceId)", - Dict{String,Any}("Config" => Config, "Name" => Name, "TimeZone" => TimeZone); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hours_of_operation( Config, InstanceId, @@ -1384,11 +1328,12 @@ end This API is in preview release for Amazon Connect and is subject to change. Initiates an Amazon Connect instance with all the supported channels enabled. It does not attach any storage, such as Amazon Simple Storage Service (Amazon S3) or Amazon Kinesis. It also does -not allow for any configurations on features, such as Contact Lens for Amazon Connect. -Amazon Connect enforces a limit on the total number of instances that you can create or -delete in 30 days. If you exceed this limit, you will get an error message indicating there -has been an excessive number of attempts at creating or deleting instances. You must wait -30 days before you can restart creating and deleting instances in your account. +not allow for any configurations on features, such as Contact Lens for Amazon Connect. For +more information, see Create an Amazon Connect instance in the Amazon Connect Administrator +Guide. Amazon Connect enforces a limit on the total number of instances that you can create +or delete in 30 days. If you exceed this limit, you will get an error message indicating +there has been an excessive number of attempts at creating or deleting instances. You must +wait 30 days before you can restart creating and deleting instances in your account. # Arguments - `identity_management_type`: The type of identity management for your Amazon Connect users. @@ -1403,24 +1348,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_instance( +create_instance( IdentityManagementType, InboundCallsEnabled, OutboundCallsEnabled; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/instance", + Dict{String,Any}( + "IdentityManagementType" => IdentityManagementType, + "InboundCallsEnabled" => InboundCallsEnabled, + "OutboundCallsEnabled" => OutboundCallsEnabled, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/instance", - Dict{String,Any}( - "IdentityManagementType" => IdentityManagementType, - "InboundCallsEnabled" => InboundCallsEnabled, - "OutboundCallsEnabled" => OutboundCallsEnabled, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instance( IdentityManagementType, InboundCallsEnabled, @@ -1472,22 +1415,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_integration_association( +create_integration_association( InstanceId, IntegrationArn, IntegrationType; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/instance/$(InstanceId)/integration-associations", + Dict{String,Any}( + "IntegrationArn" => IntegrationArn, "IntegrationType" => IntegrationType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/instance/$(InstanceId)/integration-associations", - Dict{String,Any}( - "IntegrationArn" => IntegrationArn, "IntegrationType" => IntegrationType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_integration_association( InstanceId, IntegrationArn, @@ -1533,25 +1474,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function create_participant( +create_participant( ContactId, InstanceId, ParticipantDetails; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/create-participant", + Dict{String,Any}( + "ContactId" => ContactId, + "InstanceId" => InstanceId, + "ParticipantDetails" => ParticipantDetails, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/create-participant", - Dict{String,Any}( - "ContactId" => ContactId, - "InstanceId" => InstanceId, - "ParticipantDetails" => ParticipantDetails, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_participant( ContactId, InstanceId, @@ -1626,23 +1565,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function create_persistent_contact_association( +create_persistent_contact_association( InitialContactId, InstanceId, RehydrationType, SourceContactId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/persistent-contact-association/$(InstanceId)/$(InitialContactId)", + Dict{String,Any}( + "RehydrationType" => RehydrationType, "SourceContactId" => SourceContactId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/persistent-contact-association/$(InstanceId)/$(InitialContactId)", - Dict{String,Any}( - "RehydrationType" => RehydrationType, "SourceContactId" => SourceContactId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_persistent_contact_association( InitialContactId, InstanceId, @@ -1673,7 +1610,10 @@ end create_predefined_attribute(instance_id, name, values) create_predefined_attribute(instance_id, name, values, params::Dict{String,<:Any}) -Creates a new predefined attribute for the specified Amazon Connect instance. +Creates a new predefined attribute for the specified Amazon Connect instance. Predefined +attributes are attributes in an Amazon Connect instance that can be used to route contacts +to an agent or pools of agents within a queue. For more information, see Create predefined +attributes for routing contacts to agents. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -1682,17 +1622,15 @@ Creates a new predefined attribute for the specified Amazon Connect instance. - `values`: The values of the predefined attribute. """ -function create_predefined_attribute( +create_predefined_attribute( InstanceId, Name, Values; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/predefined-attributes/$(InstanceId)", + Dict{String,Any}("Name" => Name, "Values" => Values); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/predefined-attributes/$(InstanceId)", - Dict{String,Any}("Name" => Name, "Values" => Values); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_predefined_attribute( InstanceId, Name, @@ -1731,17 +1669,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_prompt( - InstanceId, Name, S3Uri; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +create_prompt(InstanceId, Name, S3Uri; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "PUT", "/prompts/$(InstanceId)", Dict{String,Any}("Name" => Name, "S3Uri" => S3Uri); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_prompt( InstanceId, Name, @@ -1795,17 +1730,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_queue( +create_queue( HoursOfOperationId, InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/queues/$(InstanceId)", + Dict{String,Any}("HoursOfOperationId" => HoursOfOperationId, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/queues/$(InstanceId)", - Dict{String,Any}("HoursOfOperationId" => HoursOfOperationId, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_queue( HoursOfOperationId, InstanceId, @@ -1848,17 +1781,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_quick_connect( +create_quick_connect( InstanceId, Name, QuickConnectConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/quick-connects/$(InstanceId)", + Dict{String,Any}("Name" => Name, "QuickConnectConfig" => QuickConnectConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/quick-connects/$(InstanceId)", - Dict{String,Any}("Name" => Name, "QuickConnectConfig" => QuickConnectConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_quick_connect( InstanceId, Name, @@ -1911,27 +1842,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_routing_profile( +create_routing_profile( DefaultOutboundQueueId, Description, InstanceId, MediaConcurrencies, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/routing-profiles/$(InstanceId)", + Dict{String,Any}( + "DefaultOutboundQueueId" => DefaultOutboundQueueId, + "Description" => Description, + "MediaConcurrencies" => MediaConcurrencies, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/routing-profiles/$(InstanceId)", - Dict{String,Any}( - "DefaultOutboundQueueId" => DefaultOutboundQueueId, - "Description" => Description, - "MediaConcurrencies" => MediaConcurrencies, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_routing_profile( DefaultOutboundQueueId, Description, @@ -1983,7 +1912,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function create_rule( +create_rule( Actions, Function, InstanceId, @@ -1991,22 +1920,20 @@ function create_rule( PublishStatus, TriggerEventSource; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/rules/$(InstanceId)", + Dict{String,Any}( + "Actions" => Actions, + "Function" => Function, + "Name" => Name, + "PublishStatus" => PublishStatus, + "TriggerEventSource" => TriggerEventSource, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/rules/$(InstanceId)", - Dict{String,Any}( - "Actions" => Actions, - "Function" => Function, - "Name" => Name, - "PublishStatus" => PublishStatus, - "TriggerEventSource" => TriggerEventSource, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule( Actions, Function, @@ -2043,7 +1970,9 @@ end create_security_profile(instance_id, security_profile_name) create_security_profile(instance_id, security_profile_name, params::Dict{String,<:Any}) -Creates a security profile. +Creates a security profile. For information about security profiles, see Security Profiles +in the Amazon Connect Administrator Guide. For a mapping of the API name and user interface +name of the security profile permissions, see List of security profile permissions. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -2069,17 +1998,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_security_profile( +create_security_profile( InstanceId, SecurityProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/security-profiles/$(InstanceId)", + Dict{String,Any}("SecurityProfileName" => SecurityProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/security-profiles/$(InstanceId)", - Dict{String,Any}("SecurityProfileName" => SecurityProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_security_profile( InstanceId, SecurityProfileName, @@ -2128,19 +2055,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created. """ -function create_task_template( +create_task_template( Fields, InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/instance/$(InstanceId)/task/template", + Dict{String,Any}("Fields" => Fields, "Name" => Name, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/instance/$(InstanceId)/task/template", - Dict{String,Any}( - "Fields" => Fields, "Name" => Name, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_task_template( Fields, InstanceId, @@ -2191,19 +2114,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_traffic_distribution_group( +create_traffic_distribution_group( InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/traffic-distribution-group", + Dict{String,Any}( + "InstanceId" => InstanceId, "Name" => Name, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/traffic-distribution-group", - Dict{String,Any}( - "InstanceId" => InstanceId, "Name" => Name, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_traffic_distribution_group( InstanceId, Name, @@ -2247,20 +2168,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_use_case( +create_use_case( InstanceId, IntegrationAssociationId, UseCaseType; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/instance/$(InstanceId)/integration-associations/$(IntegrationAssociationId)/use-cases", + Dict{String,Any}("UseCaseType" => UseCaseType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/instance/$(InstanceId)/integration-associations/$(IntegrationAssociationId)/use-cases", - Dict{String,Any}("UseCaseType" => UseCaseType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_use_case( InstanceId, IntegrationAssociationId, @@ -2318,27 +2237,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_user( +create_user( InstanceId, PhoneConfig, RoutingProfileId, SecurityProfileIds, Username; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/users/$(InstanceId)", + Dict{String,Any}( + "PhoneConfig" => PhoneConfig, + "RoutingProfileId" => RoutingProfileId, + "SecurityProfileIds" => SecurityProfileIds, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/users/$(InstanceId)", - Dict{String,Any}( - "PhoneConfig" => PhoneConfig, - "RoutingProfileId" => RoutingProfileId, - "SecurityProfileIds" => SecurityProfileIds, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user( InstanceId, PhoneConfig, @@ -2386,17 +2303,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_user_hierarchy_group( +create_user_hierarchy_group( InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/user-hierarchy-groups/$(InstanceId)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/user-hierarchy-groups/$(InstanceId)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_hierarchy_group( InstanceId, Name, @@ -2441,17 +2356,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags can be used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_view( +create_view( Content, InstanceId, Name, Status; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/views/$(InstanceId)", + Dict{String,Any}("Content" => Content, "Name" => Name, "Status" => Status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/views/$(InstanceId)", - Dict{String,Any}("Content" => Content, "Name" => Name, "Status" => Status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_view( Content, InstanceId, @@ -2494,16 +2407,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionDescription"`: The description for the version being published. - `"ViewContentSha256"`: Indicates the checksum value of the latest published view content. """ -function create_view_version( +create_view_version( InstanceId, ViewId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/views/$(InstanceId)/$(ViewId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/views/$(InstanceId)/$(ViewId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_view_version( InstanceId, ViewId, @@ -2549,26 +2460,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_vocabulary( +create_vocabulary( Content, InstanceId, LanguageCode, VocabularyName; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/vocabulary/$(InstanceId)", + Dict{String,Any}( + "Content" => Content, + "LanguageCode" => LanguageCode, + "VocabularyName" => VocabularyName, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/vocabulary/$(InstanceId)", - Dict{String,Any}( - "Content" => Content, - "LanguageCode" => LanguageCode, - "VocabularyName" => VocabularyName, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vocabulary( Content, InstanceId, @@ -2613,20 +2522,18 @@ form. ID in the Amazon Resource Name (ARN) of the instance. """ -function deactivate_evaluation_form( +deactivate_evaluation_form( EvaluationFormId, EvaluationFormVersion, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)/deactivate", + Dict{String,Any}("EvaluationFormVersion" => EvaluationFormVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)/deactivate", - Dict{String,Any}("EvaluationFormVersion" => EvaluationFormVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deactivate_evaluation_form( EvaluationFormId, EvaluationFormVersion, @@ -2663,20 +2570,18 @@ permanently deleted if S3 bucket versioning is not enabled. to. Cases are the only current supported resource. This value must be a valid ARN. """ -function delete_attached_file( +delete_attached_file( FileId, InstanceId, associatedResourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "DELETE", + "/attached-files/$(InstanceId)/$(FileId)", + Dict{String,Any}("associatedResourceArn" => associatedResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/attached-files/$(InstanceId)/$(FileId)", - Dict{String,Any}("associatedResourceArn" => associatedResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_attached_file( FileId, InstanceId, @@ -2711,16 +2616,14 @@ Deletes a contact evaluation in the specified Amazon Connect instance. ID in the Amazon Resource Name (ARN) of the instance. """ -function delete_contact_evaluation( +delete_contact_evaluation( EvaluationId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/contact-evaluations/$(InstanceId)/$(EvaluationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/contact-evaluations/$(InstanceId)/$(EvaluationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_contact_evaluation( EvaluationId, InstanceId, @@ -2748,16 +2651,14 @@ Deletes a flow for the specified Amazon Connect instance. ID in the Amazon Resource Name (ARN) of the instance. """ -function delete_contact_flow( +delete_contact_flow( ContactFlowId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/contact-flows/$(InstanceId)/$(ContactFlowId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/contact-flows/$(InstanceId)/$(ContactFlowId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_contact_flow( ContactFlowId, InstanceId, @@ -2785,16 +2686,14 @@ Deletes the specified flow module. ID in the Amazon Resource Name (ARN) of the instance. """ -function delete_contact_flow_module( +delete_contact_flow_module( ContactFlowModuleId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/contact-flow-modules/$(InstanceId)/$(ContactFlowModuleId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/contact-flow-modules/$(InstanceId)/$(ContactFlowModuleId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_contact_flow_module( ContactFlowModuleId, InstanceId, @@ -2827,16 +2726,14 @@ version is provided, then the full form (all versions) is deleted. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"version"`: The unique identifier for the evaluation form. """ -function delete_evaluation_form( +delete_evaluation_form( EvaluationFormId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_evaluation_form( EvaluationFormId, InstanceId, @@ -2865,16 +2762,14 @@ hours of operation. ID in the Amazon Resource Name (ARN) of the instance. """ -function delete_hours_of_operation( +delete_hours_of_operation( HoursOfOperationId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/hours-of-operations/$(InstanceId)/$(HoursOfOperationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/hours-of-operations/$(InstanceId)/$(HoursOfOperationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_hours_of_operation( HoursOfOperationId, InstanceId, @@ -2895,25 +2790,24 @@ end delete_instance(instance_id, params::Dict{String,<:Any}) This API is in preview release for Amazon Connect and is subject to change. Deletes the -Amazon Connect instance. Amazon Connect enforces a limit on the total number of instances -that you can create or delete in 30 days. If you exceed this limit, you will get an error -message indicating there has been an excessive number of attempts at creating or deleting -instances. You must wait 30 days before you can restart creating and deleting instances in -your account. +Amazon Connect instance. For more information, see Delete your Amazon Connect instance in +the Amazon Connect Administrator Guide. Amazon Connect enforces a limit on the total number +of instances that you can create or delete in 30 days. If you exceed this limit, you will +get an error message indicating there has been an excessive number of attempts at creating +or deleting instances. You must wait 30 days before you can restart creating and deleting +instances in your account. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. """ -function delete_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "DELETE", - "/instance/$(InstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "DELETE", + "/instance/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_instance( InstanceId, params::AbstractDict{String}; @@ -2941,16 +2835,14 @@ association must not have any use cases associated with it. - `integration_association_id`: The identifier for the integration association. """ -function delete_integration_association( +delete_integration_association( InstanceId, IntegrationAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/instance/$(InstanceId)/integration-associations/$(IntegrationAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/instance/$(InstanceId)/integration-associations/$(IntegrationAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_integration_association( InstanceId, IntegrationAssociationId, @@ -2978,16 +2870,14 @@ Deletes a predefined attribute from the specified Amazon Connect instance. - `name`: The name of the predefined attribute. """ -function delete_predefined_attribute( +delete_predefined_attribute( InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/predefined-attributes/$(InstanceId)/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/predefined-attributes/$(InstanceId)/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_predefined_attribute( InstanceId, Name, @@ -3015,16 +2905,13 @@ Deletes a prompt. - `prompt_id`: A unique identifier for the prompt. """ -function delete_prompt( - InstanceId, PromptId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +delete_prompt(InstanceId, PromptId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "DELETE", "/prompts/$(InstanceId)/$(PromptId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_prompt( InstanceId, PromptId, @@ -3044,7 +2931,8 @@ end delete_queue(instance_id, queue_id) delete_queue(instance_id, queue_id, params::Dict{String,<:Any}) -Deletes a queue. +Deletes a queue. It isn't possible to delete a queue by using the Amazon Connect admin +website. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -3052,16 +2940,13 @@ Deletes a queue. - `queue_id`: The identifier for the queue. """ -function delete_queue( - InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +delete_queue(InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "DELETE", "/queues/$(InstanceId)/$(QueueId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_queue( InstanceId, QueueId, @@ -3094,16 +2979,14 @@ Resiliency. - `quick_connect_id`: The identifier for the quick connect. """ -function delete_quick_connect( +delete_quick_connect( InstanceId, QuickConnectId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/quick-connects/$(InstanceId)/$(QuickConnectId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/quick-connects/$(InstanceId)/$(QuickConnectId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_quick_connect( InstanceId, QuickConnectId, @@ -3131,16 +3014,14 @@ Deletes a routing profile. - `routing_profile_id`: The identifier of the routing profile. """ -function delete_routing_profile( +delete_routing_profile( InstanceId, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_routing_profile( InstanceId, RoutingProfileId, @@ -3168,14 +3049,13 @@ Deletes a rule for the specified Amazon Connect instance. - `rule_id`: A unique identifier for the rule. """ -function delete_rule(InstanceId, RuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +delete_rule(InstanceId, RuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "DELETE", "/rules/$(InstanceId)/$(RuleId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_rule( InstanceId, RuleId, @@ -3203,16 +3083,14 @@ Deletes a security profile. - `security_profile_id`: The identifier for the security profle. """ -function delete_security_profile( +delete_security_profile( InstanceId, SecurityProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/security-profiles/$(InstanceId)/$(SecurityProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/security-profiles/$(InstanceId)/$(SecurityProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_security_profile( InstanceId, SecurityProfileId, @@ -3240,16 +3118,14 @@ Deletes the task template. - `task_template_id`: A unique identifier for the task template. """ -function delete_task_template( +delete_task_template( InstanceId, TaskTemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/instance/$(InstanceId)/task/template/$(TaskTemplateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/instance/$(InstanceId)/task/template/$(TaskTemplateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_task_template( InstanceId, TaskTemplateId, @@ -3281,16 +3157,14 @@ Administrator Guide. Region. """ -function delete_traffic_distribution_group( +delete_traffic_distribution_group( TrafficDistributionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/traffic-distribution-group/$(TrafficDistributionGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/traffic-distribution-group/$(TrafficDistributionGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_traffic_distribution_group( TrafficDistributionGroupId, params::AbstractDict{String}; @@ -3318,19 +3192,17 @@ Deletes a use case from an integration association. - `use_case_id`: The identifier for the use case. """ -function delete_use_case( +delete_use_case( InstanceId, IntegrationAssociationId, UseCaseId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "DELETE", + "/instance/$(InstanceId)/integration-associations/$(IntegrationAssociationId)/use-cases/$(UseCaseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/instance/$(InstanceId)/integration-associations/$(IntegrationAssociationId)/use-cases/$(UseCaseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_use_case( InstanceId, IntegrationAssociationId, @@ -3366,14 +3238,13 @@ Amazon Connect Global Resiliency. - `user_id`: The identifier of the user. """ -function delete_user(InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +delete_user(InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "DELETE", "/users/$(InstanceId)/$(UserId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user( InstanceId, UserId, @@ -3402,16 +3273,14 @@ any active child groups. ID in the Amazon Resource Name (ARN) of the instance. """ -function delete_user_hierarchy_group( +delete_user_hierarchy_group( HierarchyGroupId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/user-hierarchy-groups/$(InstanceId)/$(HierarchyGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/user-hierarchy-groups/$(InstanceId)/$(HierarchyGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_hierarchy_group( HierarchyGroupId, InstanceId, @@ -3440,14 +3309,13 @@ aliases). - `view_id`: The identifier of the view. Both ViewArn and ViewId can be used. """ -function delete_view(InstanceId, ViewId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +delete_view(InstanceId, ViewId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "DELETE", "/views/$(InstanceId)/$(ViewId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_view( InstanceId, ViewId, @@ -3476,16 +3344,14 @@ Deletes the particular version specified in ViewVersion identifier. - `view_version`: The version number of the view. """ -function delete_view_version( +delete_view_version( InstanceId, ViewId, ViewVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/views/$(InstanceId)/$(ViewId)/versions/$(ViewVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/views/$(InstanceId)/$(ViewId)/versions/$(ViewVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_view_version( InstanceId, ViewId, @@ -3514,16 +3380,14 @@ Deletes the vocabulary that has the given identifier. - `vocabulary_id`: The identifier of the custom vocabulary. """ -function delete_vocabulary( +delete_vocabulary( InstanceId, VocabularyId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/vocabulary-remove/$(InstanceId)/$(VocabularyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/vocabulary-remove/$(InstanceId)/$(VocabularyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vocabulary( InstanceId, VocabularyId, @@ -3552,25 +3416,60 @@ agent status. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_agent_status( +describe_agent_status( AgentStatusId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/agent-status/$(InstanceId)/$(AgentStatusId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_agent_status( + AgentStatusId, + InstanceId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return connect( "GET", - "/agent-status/$(InstanceId)/$(AgentStatusId)"; + "/agent-status/$(InstanceId)/$(AgentStatusId)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function describe_agent_status( - AgentStatusId, + +""" + describe_authentication_profile(authentication_profile_id, instance_id) + describe_authentication_profile(authentication_profile_id, instance_id, params::Dict{String,<:Any}) + +This API is in preview release for Amazon Connect and is subject to change. To request +access to this API, contact Amazon Web Services Support. Describes the target +authentication profile. + +# Arguments +- `authentication_profile_id`: A unique identifier for the authentication profile. +- `instance_id`: The identifier of the Amazon Connect instance. You can find the instance + ID in the Amazon Resource Name (ARN) of the instance. + +""" +describe_authentication_profile( + AuthenticationProfileId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/authentication-profiles/$(InstanceId)/$(AuthenticationProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_authentication_profile( + AuthenticationProfileId, InstanceId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return connect( "GET", - "/agent-status/$(InstanceId)/$(AgentStatusId)", + "/authentication-profiles/$(InstanceId)/$(AuthenticationProfileId)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -3592,16 +3491,14 @@ API. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_contact( +describe_contact( ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/contacts/$(InstanceId)/$(ContactId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/contacts/$(InstanceId)/$(ContactId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_contact( ContactId, InstanceId, @@ -3629,16 +3526,14 @@ Describes a contact evaluation in the specified Amazon Connect instance. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_contact_evaluation( +describe_contact_evaluation( EvaluationId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/contact-evaluations/$(InstanceId)/$(EvaluationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/contact-evaluations/$(InstanceId)/$(EvaluationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_contact_evaluation( EvaluationId, InstanceId, @@ -3671,16 +3566,14 @@ SAVED | PUBLISHED - `instance_id`: The identifier of the Amazon Connect instance. """ -function describe_contact_flow( +describe_contact_flow( ContactFlowId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/contact-flows/$(InstanceId)/$(ContactFlowId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/contact-flows/$(InstanceId)/$(ContactFlowId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_contact_flow( ContactFlowId, InstanceId, @@ -3711,16 +3604,14 @@ published. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_contact_flow_module( +describe_contact_flow_module( ContactFlowModuleId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/contact-flow-modules/$(InstanceId)/$(ContactFlowModuleId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/contact-flow-modules/$(InstanceId)/$(ContactFlowModuleId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_contact_flow_module( ContactFlowModuleId, InstanceId, @@ -3752,16 +3643,14 @@ property is not provided, the latest version of the evaluation form is described Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"version"`: A version of the evaluation form. """ -function describe_evaluation_form( +describe_evaluation_form( EvaluationFormId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_evaluation_form( EvaluationFormId, InstanceId, @@ -3790,16 +3679,14 @@ hours of operation. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_hours_of_operation( +describe_hours_of_operation( HoursOfOperationId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/hours-of-operations/$(InstanceId)/$(HoursOfOperationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/hours-of-operations/$(InstanceId)/$(HoursOfOperationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_hours_of_operation( HoursOfOperationId, InstanceId, @@ -3831,14 +3718,12 @@ invoked. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", - "/instance/$(InstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "GET", + "/instance/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_instance( InstanceId, params::AbstractDict{String}; @@ -3866,16 +3751,14 @@ specified instance attribute. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_instance_attribute( +describe_instance_attribute( AttributeType, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/instance/$(InstanceId)/attribute/$(AttributeType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/instance/$(InstanceId)/attribute/$(AttributeType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_attribute( AttributeType, InstanceId, @@ -3907,20 +3790,18 @@ instance ID. - `resource_type`: A valid resource type. """ -function describe_instance_storage_config( +describe_instance_storage_config( AssociationId, InstanceId, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "GET", + "/instance/$(InstanceId)/storage-config/$(AssociationId)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/instance/$(InstanceId)/storage-config/$(AssociationId)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_storage_config( AssociationId, InstanceId, @@ -3956,16 +3837,13 @@ in this scenario, you will receive a ResourceNotFoundException. - `phone_number_id`: A unique identifier for the phone number. """ -function describe_phone_number( - PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +describe_phone_number(PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/phone-number/$(PhoneNumberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_phone_number( PhoneNumberId, params::AbstractDict{String}; @@ -3984,7 +3862,10 @@ end describe_predefined_attribute(instance_id, name) describe_predefined_attribute(instance_id, name, params::Dict{String,<:Any}) -Describes a predefined attribute for the specified Amazon Connect instance. +Describes a predefined attribute for the specified Amazon Connect instance. Predefined +attributes are attributes in an Amazon Connect instance that can be used to route contacts +to an agent or pools of agents within a queue. For more information, see Create predefined +attributes for routing contacts to agents. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -3992,16 +3873,14 @@ Describes a predefined attribute for the specified Amazon Connect instance. - `name`: The name of the predefined attribute. """ -function describe_predefined_attribute( +describe_predefined_attribute( InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/predefined-attributes/$(InstanceId)/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/predefined-attributes/$(InstanceId)/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_predefined_attribute( InstanceId, Name, @@ -4029,16 +3908,13 @@ Describes the prompt. - `prompt_id`: A unique identifier for the prompt. """ -function describe_prompt( - InstanceId, PromptId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +describe_prompt(InstanceId, PromptId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/prompts/$(InstanceId)/$(PromptId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_prompt( InstanceId, PromptId, @@ -4067,16 +3943,13 @@ specified queue. - `queue_id`: The identifier for the queue. """ -function describe_queue( - InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +describe_queue(InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/queues/$(InstanceId)/$(QueueId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_queue( InstanceId, QueueId, @@ -4104,16 +3977,14 @@ Describes the quick connect. - `quick_connect_id`: The identifier for the quick connect. """ -function describe_quick_connect( +describe_quick_connect( InstanceId, QuickConnectId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/quick-connects/$(InstanceId)/$(QuickConnectId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/quick-connects/$(InstanceId)/$(QuickConnectId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_quick_connect( InstanceId, QuickConnectId, @@ -4141,16 +4012,14 @@ Describes the specified routing profile. - `routing_profile_id`: The identifier of the routing profile. """ -function describe_routing_profile( +describe_routing_profile( InstanceId, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_routing_profile( InstanceId, RoutingProfileId, @@ -4178,16 +4047,13 @@ Describes a rule for the specified Amazon Connect instance. - `rule_id`: A unique identifier for the rule. """ -function describe_rule( - InstanceId, RuleId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +describe_rule(InstanceId, RuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/rules/$(InstanceId)/$(RuleId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_rule( InstanceId, RuleId, @@ -4207,7 +4073,10 @@ end describe_security_profile(instance_id, security_profile_id) describe_security_profile(instance_id, security_profile_id, params::Dict{String,<:Any}) -Gets basic information about the security profle. +Gets basic information about the security profile. For information about security profiles, +see Security Profiles in the Amazon Connect Administrator Guide. For a mapping of the API +name and user interface name of the security profile permissions, see List of security +profile permissions. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -4215,16 +4084,14 @@ Gets basic information about the security profle. - `security_profile_id`: The identifier for the security profle. """ -function describe_security_profile( +describe_security_profile( InstanceId, SecurityProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/security-profiles/$(InstanceId)/$(SecurityProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/security-profiles/$(InstanceId)/$(SecurityProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_security_profile( InstanceId, SecurityProfileId, @@ -4253,16 +4120,14 @@ Gets details and status of a traffic distribution group. Region. """ -function describe_traffic_distribution_group( +describe_traffic_distribution_group( TrafficDistributionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/traffic-distribution-group/$(TrafficDistributionGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/traffic-distribution-group/$(TrafficDistributionGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_traffic_distribution_group( TrafficDistributionGroupId, params::AbstractDict{String}; @@ -4291,16 +4156,13 @@ list the users and note the IDs provided in the output. - `user_id`: The identifier of the user account. """ -function describe_user( - InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +describe_user(InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/users/$(InstanceId)/$(UserId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_user( InstanceId, UserId, @@ -4328,16 +4190,14 @@ Describes the specified hierarchy group. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_user_hierarchy_group( +describe_user_hierarchy_group( HierarchyGroupId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/user-hierarchy-groups/$(InstanceId)/$(HierarchyGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/user-hierarchy-groups/$(InstanceId)/$(HierarchyGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_user_hierarchy_group( HierarchyGroupId, InstanceId, @@ -4364,16 +4224,14 @@ Describes the hierarchy structure of the specified Amazon Connect instance. ID in the Amazon Resource Name (ARN) of the instance. """ -function describe_user_hierarchy_structure( +describe_user_hierarchy_structure( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/user-hierarchy-structure/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/user-hierarchy-structure/$(InstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_user_hierarchy_structure( InstanceId, params::AbstractDict{String}; @@ -4407,16 +4265,13 @@ Version 1 is assumed for Amazon Web Services managed views. views. """ -function describe_view( - InstanceId, ViewId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +describe_view(InstanceId, ViewId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/views/$(InstanceId)/$(ViewId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_view( InstanceId, ViewId, @@ -4444,16 +4299,14 @@ Describes the specified vocabulary. - `vocabulary_id`: The identifier of the custom vocabulary. """ -function describe_vocabulary( +describe_vocabulary( InstanceId, VocabularyId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/vocabulary/$(InstanceId)/$(VocabularyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/vocabulary/$(InstanceId)/$(VocabularyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vocabulary( InstanceId, VocabularyId, @@ -4488,17 +4341,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by default this value is the Amazon Web Services account that has the Amazon Connect instance. """ -function disassociate_analytics_data_set( +disassociate_analytics_data_set( DataSetId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/analytics-data/instance/$(InstanceId)/association", + Dict{String,Any}("DataSetId" => DataSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/analytics-data/instance/$(InstanceId)/association", - Dict{String,Any}("DataSetId" => DataSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_analytics_data_set( DataSetId, InstanceId, @@ -4529,17 +4380,15 @@ to integrated applications from Amazon Connect. - `origin`: The domain URL of the integrated application. """ -function disassociate_approved_origin( +disassociate_approved_origin( InstanceId, origin; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/instance/$(InstanceId)/approved-origin", + Dict{String,Any}("origin" => origin); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/instance/$(InstanceId)/approved-origin", - Dict{String,Any}("origin" => origin); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_approved_origin( InstanceId, origin, @@ -4572,14 +4421,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LexBot"`: - `"LexV2Bot"`: The Amazon Lex V2 bot to disassociate from the instance. """ -function disassociate_bot(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "POST", - "/instance/$(InstanceId)/bot"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disassociate_bot(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "POST", + "/instance/$(InstanceId)/bot"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disassociate_bot( InstanceId, params::AbstractDict{String}; @@ -4607,16 +4454,14 @@ Disassociates a connect resource from a flow. - `resource_type`: A valid resource type. """ -function disassociate_flow( +disassociate_flow( InstanceId, ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/flow-associations/$(InstanceId)/$(ResourceId)/$(ResourceType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/flow-associations/$(InstanceId)/$(ResourceId)/$(ResourceType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_flow( InstanceId, ResourceId, @@ -4648,20 +4493,18 @@ storage type configurations for the specified resource type and association ID. - `resource_type`: A valid resource type. """ -function disassociate_instance_storage_config( +disassociate_instance_storage_config( AssociationId, InstanceId, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "DELETE", + "/instance/$(InstanceId)/storage-config/$(AssociationId)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/instance/$(InstanceId)/storage-config/$(AssociationId)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_instance_storage_config( AssociationId, InstanceId, @@ -4693,17 +4536,15 @@ Lambda function from the dropdown options available in the relevant flow blocks. - `function_arn`: The Amazon Resource Name (ARN) of the Lambda function being disassociated. """ -function disassociate_lambda_function( +disassociate_lambda_function( InstanceId, functionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/instance/$(InstanceId)/lambda-function", + Dict{String,Any}("functionArn" => functionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/instance/$(InstanceId)/lambda-function", - Dict{String,Any}("functionArn" => functionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_lambda_function( InstanceId, functionArn, @@ -4735,17 +4576,15 @@ authorization from the specified instance to access the specified Amazon Lex bot - `lex_region`: The Amazon Web Services Region in which the Amazon Lex bot has been created. """ -function disassociate_lex_bot( +disassociate_lex_bot( InstanceId, botName, lexRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/instance/$(InstanceId)/lex-bot", + Dict{String,Any}("botName" => botName, "lexRegion" => lexRegion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/instance/$(InstanceId)/lex-bot", - Dict{String,Any}("botName" => botName, "lexRegion" => lexRegion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_lex_bot( InstanceId, botName, @@ -4787,17 +4626,15 @@ If a UUID is provided in this scenario, you will receive a ResourceNotFoundExcep ID in the Amazon Resource Name (ARN) of the instance. """ -function disassociate_phone_number_contact_flow( +disassociate_phone_number_contact_flow( PhoneNumberId, instanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/phone-number/$(PhoneNumberId)/contact-flow", + Dict{String,Any}("instanceId" => instanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/phone-number/$(PhoneNumberId)/contact-flow", - Dict{String,Any}("instanceId" => instanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_phone_number_contact_flow( PhoneNumberId, instanceId, @@ -4829,17 +4666,15 @@ set of quick connects from a queue. - `quick_connect_ids`: The quick connects to disassociate from the queue. """ -function disassociate_queue_quick_connects( +disassociate_queue_quick_connects( InstanceId, QueueId, QuickConnectIds; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/queues/$(InstanceId)/$(QueueId)/disassociate-quick-connects", + Dict{String,Any}("QuickConnectIds" => QuickConnectIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/queues/$(InstanceId)/$(QueueId)/disassociate-quick-connects", - Dict{String,Any}("QuickConnectIds" => QuickConnectIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_queue_quick_connects( InstanceId, QueueId, @@ -4873,20 +4708,18 @@ Disassociates a set of queues from a routing profile. - `routing_profile_id`: The identifier of the routing profile. """ -function disassociate_routing_profile_queues( +disassociate_routing_profile_queues( InstanceId, QueueReferences, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/disassociate-queues", + Dict{String,Any}("QueueReferences" => QueueReferences); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/disassociate-queues", - Dict{String,Any}("QueueReferences" => QueueReferences); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_routing_profile_queues( InstanceId, QueueReferences, @@ -4921,16 +4754,14 @@ specified security key. ID in the Amazon Resource Name (ARN) of the instance. """ -function disassociate_security_key( +disassociate_security_key( AssociationId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/instance/$(InstanceId)/security-key/$(AssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/instance/$(InstanceId)/security-key/$(AssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_security_key( AssociationId, InstanceId, @@ -4962,20 +4793,18 @@ Disassociates an agent from a traffic distribution group. - `user_id`: The identifier for the user. This can be the ID or the ARN of the user. """ -function disassociate_traffic_distribution_group_user( +disassociate_traffic_distribution_group_user( InstanceId, TrafficDistributionGroupId, UserId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "DELETE", + "/traffic-distribution-group/$(TrafficDistributionGroupId)/user", + Dict{String,Any}("InstanceId" => InstanceId, "UserId" => UserId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/traffic-distribution-group/$(TrafficDistributionGroupId)/user", - Dict{String,Any}("InstanceId" => InstanceId, "UserId" => UserId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_traffic_distribution_group_user( InstanceId, TrafficDistributionGroupId, @@ -5011,20 +4840,18 @@ Disassociates a set of proficiencies from a user. - `user_proficiencies`: The proficiencies to disassociate from the user. """ -function disassociate_user_proficiencies( +disassociate_user_proficiencies( InstanceId, UserId, UserProficiencies; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/disassociate-proficiencies", + Dict{String,Any}("UserProficiencies" => UserProficiencies); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/disassociate-proficiencies", - Dict{String,Any}("UserProficiencies" => UserProficiencies); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_user_proficiencies( InstanceId, UserId, @@ -5060,17 +4887,15 @@ are in a MISSED, ERROR, ENDED, or REJECTED state in the Agent Event Stream. - `user_id`: The identifier of the user account. """ -function dismiss_user_contact( +dismiss_user_contact( ContactId, InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/contact", + Dict{String,Any}("ContactId" => ContactId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/contact", - Dict{String,Any}("ContactId" => ContactId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function dismiss_user_contact( ContactId, InstanceId, @@ -5108,20 +4933,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"urlExpiryInSeconds"`: Optional override for the expiry of the pre-signed S3 URL in seconds. The default value is 300. """ -function get_attached_file( +get_attached_file( FileId, InstanceId, associatedResourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "GET", + "/attached-files/$(InstanceId)/$(FileId)", + Dict{String,Any}("associatedResourceArn" => associatedResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/attached-files/$(InstanceId)/$(FileId)", - Dict{String,Any}("associatedResourceArn" => associatedResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_attached_file( FileId, InstanceId, @@ -5155,16 +4978,14 @@ Retrieves the contact attributes for the specified contact. - `instance_id`: The identifier of the Amazon Connect instance. """ -function get_contact_attributes( +get_contact_attributes( InitialContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/contact/attributes/$(InstanceId)/$(InitialContactId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/contact/attributes/$(InstanceId)/$(InitialContactId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_contact_attributes( InitialContactId, InstanceId, @@ -5243,17 +5064,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys metric collection is sorted based on the input metrics. Note the following: Sorting on SLOTS_ACTIVE and SLOTS_AVAILABLE is not supported. """ -function get_current_metric_data( +get_current_metric_data( CurrentMetrics, Filters, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/metrics/current/$(InstanceId)", + Dict{String,Any}("CurrentMetrics" => CurrentMetrics, "Filters" => Filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/metrics/current/$(InstanceId)", - Dict{String,Any}("CurrentMetrics" => CurrentMetrics, "Filters" => Filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_current_metric_data( CurrentMetrics, Filters, @@ -5298,17 +5117,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function get_current_user_data( +get_current_user_data( Filters, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/metrics/userdata/$(InstanceId)", + Dict{String,Any}("Filters" => Filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/metrics/userdata/$(InstanceId)", - Dict{String,Any}("Filters" => Filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_current_user_data( Filters, InstanceId, @@ -5341,16 +5158,13 @@ Principal: .... User: .... cannot be used for federation with Amazon Connect ID in the Amazon Resource Name (ARN) of the instance. """ -function get_federation_token( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +get_federation_token(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/user/federate/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_federation_token( InstanceId, params::AbstractDict{String}; @@ -5378,16 +5192,14 @@ Retrieves the flow associated for a given resource. - `resource_type`: A valid resource type. """ -function get_flow_association( +get_flow_association( InstanceId, ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/flow-associations/$(InstanceId)/$(ResourceId)/$(ResourceType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/flow-associations/$(InstanceId)/$(ResourceId)/$(ResourceType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_flow_association( InstanceId, ResourceId, @@ -5469,27 +5281,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function get_metric_data( +get_metric_data( EndTime, Filters, HistoricalMetrics, InstanceId, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/metrics/historical/$(InstanceId)", + Dict{String,Any}( + "EndTime" => EndTime, + "Filters" => Filters, + "HistoricalMetrics" => HistoricalMetrics, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/metrics/historical/$(InstanceId)", - Dict{String,Any}( - "EndTime" => EndTime, - "Filters" => Filters, - "HistoricalMetrics" => HistoricalMetrics, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_metric_data( EndTime, Filters, @@ -5536,32 +5346,35 @@ definitions in the Amazon Connect Administrator Guide. interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp. - `filters`: The filters to apply to returned metrics. You can filter on the following - resources: Agents Channels Feature Queues Routing profiles Routing step - expression User hierarchy groups At least one filter must be passed from queues, - routing profiles, agents, or user hierarchy groups. To filter by phone number, see Create a - historical metrics report in the Amazon Connect Administrator Guide. Note the following - limits: Filter keys: A maximum of 5 filter keys are supported in a single request. Valid - filter keys: AGENT | AGENT_HIERARCHY_LEVEL_ONE | AGENT_HIERARCHY_LEVEL_TWO | - AGENT_HIERARCHY_LEVEL_THREE | AGENT_HIERARCHY_LEVEL_FOUR | AGENT_HIERARCHY_LEVEL_FIVE | + resources: Agents Campaigns Channels Feature Queues Routing profiles Routing + step expression User hierarchy groups At least one filter must be passed from queues, + routing profiles, agents, or user hierarchy groups. For metrics for outbound campaigns + analytics, you can also use campaigns to satisfy at least one filter requirement. To filter + by phone number, see Create a historical metrics report in the Amazon Connect Administrator + Guide. Note the following limits: Filter keys: A maximum of 5 filter keys are supported + in a single request. Valid filter keys: AGENT | AGENT_HIERARCHY_LEVEL_ONE | + AGENT_HIERARCHY_LEVEL_TWO | AGENT_HIERARCHY_LEVEL_THREE | AGENT_HIERARCHY_LEVEL_FOUR | + AGENT_HIERARCHY_LEVEL_FIVE | ANSWERING_MACHINE_DETECTION_STATUS | CAMPAIGN | CASE_TEMPLATE_ARN | CASE_STATUS | CHANNEL | contact/segmentAttributes/connect:Subtype | - FEATURE | FLOW_TYPE | FLOWS_NEXT_RESOURCE_ID | FLOWS_NEXT_RESOURCE_QUEUE_ID | - FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | INITIATION_METHOD | RESOURCE_PUBLISHED_TIMESTAMP | - ROUTING_PROFILE | ROUTING_STEP_EXPRESSION | QUEUE | Q_CONNECT_ENABLED | Filter values: - A maximum of 100 filter values are supported in a single request. VOICE, CHAT, and TASK are - valid filterValue for the CHANNEL filter key. They do not count towards limitation of 100 - filter values. For example, a GetMetricDataV2 request can filter by 50 queues, 35 agents, - and 15 routing profiles for a total of 100 filter values, along with 3 channel filters. - contact_lens_conversational_analytics is a valid filterValue for the FEATURE filter key. It - is available only to contacts analyzed by Contact Lens conversational analytics. - connect:Chat, connect:SMS, connect:Telephony, and connect:WebRTC are valid filterValue - examples (not exhaustive) for the contact/segmentAttributes/connect:Subtype filter key. - ROUTING_STEP_EXPRESSION is a valid filter key with a filter value up to 3000 length. This - filter is case and order sensitive. JSON string fields must be sorted in ascending order - and JSON array order should be kept as is. Q_CONNECT_ENABLED. TRUE and FALSE are the only - valid filterValues for the Q_CONNECT_ENABLED filter key. TRUE includes all contacts that - had Amazon Q in Connect enabled as part of the flow. FALSE includes all contacts that did - not have Amazon Q in Connect enabled as part of the flow This filter is available only - for contact record-driven metrics. + DISCONNECT_REASON | FEATURE | FLOW_TYPE | FLOWS_NEXT_RESOURCE_ID | + FLOWS_NEXT_RESOURCE_QUEUE_ID | FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | INITIATION_METHOD | + RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE | ROUTING_STEP_EXPRESSION | QUEUE | + Q_CONNECT_ENABLED | Filter values: A maximum of 100 filter values are supported in a + single request. VOICE, CHAT, and TASK are valid filterValue for the CHANNEL filter key. + They do not count towards limitation of 100 filter values. For example, a GetMetricDataV2 + request can filter by 50 queues, 35 agents, and 15 routing profiles for a total of 100 + filter values, along with 3 channel filters. contact_lens_conversational_analytics is a + valid filterValue for the FEATURE filter key. It is available only to contacts analyzed by + Contact Lens conversational analytics. connect:Chat, connect:SMS, connect:Telephony, and + connect:WebRTC are valid filterValue examples (not exhaustive) for the + contact/segmentAttributes/connect:Subtype filter key. ROUTING_STEP_EXPRESSION is a valid + filter key with a filter value up to 3000 length. This filter is case and order sensitive. + JSON string fields must be sorted in ascending order and JSON array order should be kept as + is. Q_CONNECT_ENABLED. TRUE and FALSE are the only valid filterValues for the + Q_CONNECT_ENABLED filter key. TRUE includes all contacts that had Amazon Q in Connect + enabled as part of the flow. FALSE includes all contacts that did not have Amazon Q in + Connect enabled as part of the flow This filter is available only for contact + record-driven metrics. Campaign ARNs are valid filterValues for the CAMPAIGN filter key. - `metrics`: The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator Guide. @@ -5611,10 +5424,13 @@ definitions in the Amazon Connect Administrator Guide. Feature is a valid filter but not a valid grouping. AVG_CONVERSATION_DURATION Unit: Seconds Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect UI name: - Average conversation duration AVG_FLOW_TIME Unit: Seconds Valid groupings and filters: - Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, - Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource - ID, Initiation method, Resource published timestamp UI name: Average flow time + Average conversation duration AVG_DIALS_PER_MINUTE This metric is available only for + contacts analyzed by outbound campaigns analytics. Unit: Count Valid groupings and filters: + Campaign, Agent, Queue, Routing Profile UI name: Average dials per minute AVG_FLOW_TIME + Unit: Seconds Valid groupings and filters: Channel, + contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next + resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, + Initiation method, Resource published timestamp UI name: Average flow time AVG_GREETING_TIME_AGENT This metric is available only for contacts analyzed by Contact Lens conversational analytics. Unit: Seconds Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in @@ -5663,26 +5479,25 @@ definitions in the Amazon Connect Administrator Guide. AVG_TALK_TIME_CUSTOMER This metric is available only for contacts analyzed by Contact Lens conversational analytics. Unit: Seconds Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in - Connect UI name: Average customer talk time CASES_CREATED Unit: Count Required filter - key: CASE_TEMPLATE_ARN Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS UI name: - Cases created CONTACTS_ABANDONED Unit: Count Metric filter: Valid values: API| - Incoming | Outbound | Transfer | Callback | Queue_Transfer| Disconnect Valid groupings - and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, - contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect UI name: - Contact abandoned CONTACTS_ABANDONED_IN_X Unit: Count Valid groupings and filters: - Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect - Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in - seconds. For Comparison, you must enter LT (for \"Less than\"). UI name: Contacts - abandoned in X seconds CONTACTS_ANSWERED_IN_X Unit: Count Valid groupings and filters: - Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect - Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in - seconds. For Comparison, you must enter LT (for \"Less than\"). UI name: Contacts answered - in X seconds CONTACTS_CREATED Unit: Count Valid metric filter key: INITIATION_METHOD - Valid groupings and filters: Queue, Channel, Routing Profile, Feature, - contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Contacts created Feature - is a valid filter but not a valid grouping. CONTACTS_HANDLED Unit: Count Valid metric - filter key: INITIATION_METHOD, DISCONNECT_REASON Valid groupings and filters: Queue, - Channel, Routing Profile, Agent, Agent Hierarchy, Feature, + Connect UI name: Average customer talk time AVG_WAIT_TIME_AFTER_CUSTOMER_CONNECTION This + metric is available only for contacts analyzed by outbound campaigns analytics. Unit: + Seconds Valid groupings and filters: Campaign UI name: Average wait time after customer + connection CAMPAIGN_CONTACTS_ABANDONED_AFTER_X This metric is available only for + contacts analyzed by outbound campaigns analytics. Unit: Count Valid groupings and filters: + Campaign, Agent Threshold: For ThresholdValue, enter any whole number from 1 to 604800 + (inclusive), in seconds. For Comparison, you must enter GT (for Greater than). UI name: + Campaign contacts abandoned after X CAMPAIGN_CONTACTS_ABANDONED_AFTER_X_RATE This metric + is available only for contacts analyzed by outbound campaigns analytics. Unit: Percent + Valid groupings and filters: Campaign, Agent Threshold: For ThresholdValue, enter any + whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter GT + (for Greater than). UI name: Campaign contacts abandoned after X rate CASES_CREATED + Unit: Count Required filter key: CASE_TEMPLATE_ARN Valid groupings and filters: + CASE_TEMPLATE_ARN, CASE_STATUS UI name: Cases created CONTACTS_CREATED Unit: Count Valid + metric filter key: INITIATION_METHOD Valid groupings and filters: Queue, Channel, Routing + Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Contacts + created Feature is a valid filter but not a valid grouping. CONTACTS_HANDLED Unit: + Count Valid metric filter key: INITIATION_METHOD, DISCONNECT_REASON Valid groupings and + filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect UI name: API contacts handled Feature is a valid filter but not a valid grouping. CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT Unit: Count Valid metric filter key: @@ -5706,53 +5521,72 @@ definitions in the Amazon Connect Administrator Guide. contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Contacts queued CONTACTS_QUEUED_BY_ENQUEUE Unit: Count Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype UI name: Contacts queued - (enqueue timestamp) CONTACTS_RESOLVED_IN_X Unit: Count Valid groupings and filters: - Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect - Threshold: For ThresholdValue enter any whole number from 1 to 604800 (inclusive), in - seconds. For Comparison, you must enter LT (for \"Less than\"). UI name: Contacts resolved - in X CONTACTS_TRANSFERRED_OUT Unit: Count Valid groupings and filters: Queue, Channel, - Routing Profile, Agent, Agent Hierarchy, Feature, + (enqueue timestamp) CONTACTS_REMOVED_FROM_QUEUE_IN_X Unit: Count Valid groupings and + filters: Queue, Channel, Routing Profile, Q in Connect Threshold: For ThresholdValue, enter + any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter + LT (for \"Less than\"). UI name: Contacts removed from queue in X seconds + CONTACTS_RESOLVED_IN_X Unit: Count Valid groupings and filters: Queue, Channel, Routing + Profile, contact/segmentAttributes/connect:Subtype, Q in Connect Threshold: For + ThresholdValue enter any whole number from 1 to 604800 (inclusive), in seconds. For + Comparison, you must enter LT (for \"Less than\"). UI name: Contacts resolved in X + CONTACTS_TRANSFERRED_OUT Unit: Count Valid groupings and filters: Queue, Channel, Routing + Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + Connect UI name: Contacts transferred out Feature is a valid filter but not a valid + grouping. CONTACTS_TRANSFERRED_OUT_BY_AGENT Unit: Count Valid groupings and filters: + Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Contacts transferred out - Feature is a valid filter but not a valid grouping. CONTACTS_TRANSFERRED_OUT_BY_AGENT - Unit: Count Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent - Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Contacts - transferred out by agent CONTACTS_TRANSFERRED_OUT_FROM_QUEUE Unit: Count Valid groupings - and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + by agent CONTACTS_TRANSFERRED_OUT_FROM_QUEUE Unit: Count Valid groupings and filters: + Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Contacts transferred out queue CURRENT_CASES Unit: Count Required filter key: CASE_TEMPLATE_ARN Valid groupings - and filters: CASE_TEMPLATE_ARN, CASE_STATUS UI name: Current cases FLOWS_OUTCOME Unit: - Count Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow - type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows - outcome type, Flows resource ID, Initiation method, Resource published timestamp UI name: - Flows outcome FLOWS_STARTED Unit: Count Valid groupings and filters: Channel, + and filters: CASE_TEMPLATE_ARN, CASE_STATUS UI name: Current cases DELIVERY_ATTEMPTS + This metric is available only for contacts analyzed by outbound campaigns analytics. Unit: + Count Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS, DISCONNECT_REASON Valid + groupings and filters: Campaign, Agent, Queue, Routing Profile, Answering Machine Detection + Status, Disconnect Reason UI name: Delivery attempts DELIVERY_ATTEMPT_DISPOSITION_RATE + This metric is available only for contacts analyzed by outbound campaigns analytics, and + with the answering machine detection enabled. Unit: Percent Valid metric filter key: + ANSWERING_MACHINE_DETECTION_STATUS, DISCONNECT_REASON Valid groupings and filters: + Campaign, Agent, Answering Machine Detection Status, Disconnect Reason Answering Machine + Detection Status and Disconnect Reason are valid filters but not valid groupings. UI name: + Delivery attempt disposition rate FLOWS_OUTCOME Unit: Count Valid groupings and filters: + Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, + Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource + ID, Initiation method, Resource published timestamp UI name: Flows outcome FLOWS_STARTED + Unit: Count Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows resource ID, Initiation method, Resource published timestamp UI name: Flows started - MAX_FLOW_TIME Unit: Seconds Valid groupings and filters: Channel, + HUMAN_ANSWERED_CALLS This metric is available only for contacts analyzed by outbound + campaigns analytics, and with the answering machine detection enabled. Unit: Count Valid + groupings and filters: Campaign, Agent UI name: Human answered MAX_FLOW_TIME Unit: + Seconds Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, + Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, + Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp UI + name: Maximum flow time MAX_QUEUED_TIME Unit: Seconds Valid groupings and filters: + Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Maximum queued time + MIN_FLOW_TIME Unit: Seconds Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, - Initiation method, Resource published timestamp UI name: Maximum flow time - MAX_QUEUED_TIME Unit: Seconds Valid groupings and filters: Queue, Channel, Routing - Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect UI - name: Maximum queued time MIN_FLOW_TIME Unit: Seconds Valid groupings and filters: - Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, - Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource - ID, Initiation method, Resource published timestamp UI name: Minimum flow time + Initiation method, Resource published timestamp UI name: Minimum flow time PERCENT_CASES_FIRST_CONTACT_RESOLVED Unit: Percent Required filter key: CASE_TEMPLATE_ARN Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS UI name: Cases resolved on first contact PERCENT_CONTACTS_STEP_EXPIRED Unit: Percent Valid groupings and filters: - Queue, RoutingStepExpression UI name: Not available PERCENT_CONTACTS_STEP_JOINED Unit: - Percent Valid groupings and filters: Queue, RoutingStepExpression UI name: Not available - PERCENT_FLOWS_OUTCOME Unit: Percent Valid metric filter key: FLOWS_OUTCOME_TYPE Valid - groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows - module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome - type, Flows resource ID, Initiation method, Resource published timestamp UI name: Flows - outcome percentage. The FLOWS_OUTCOME_TYPE is not a valid grouping. - PERCENT_NON_TALK_TIME This metric is available only for contacts analyzed by Contact Lens - conversational analytics. Unit: Percentage Valid groupings and filters: Queue, Channel, - Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in - Connect UI name: Non-talk time percent PERCENT_TALK_TIME This metric is available only - for contacts analyzed by Contact Lens conversational analytics. Unit: Percentage Valid - groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + Queue, RoutingStepExpression UI name: This metric is available in Real-time Metrics UI but + not on the Historical Metrics UI. PERCENT_CONTACTS_STEP_JOINED Unit: Percent Valid + groupings and filters: Queue, RoutingStepExpression UI name: This metric is available in + Real-time Metrics UI but not on the Historical Metrics UI. PERCENT_FLOWS_OUTCOME Unit: + Percent Valid metric filter key: FLOWS_OUTCOME_TYPE Valid groupings and filters: Channel, + contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next + resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, + Initiation method, Resource published timestamp UI name: Flows outcome percentage. The + FLOWS_OUTCOME_TYPE is not a valid grouping. PERCENT_NON_TALK_TIME This metric is + available only for contacts analyzed by Contact Lens conversational analytics. Unit: + Percentage Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent + Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Non-talk time + percent PERCENT_TALK_TIME This metric is available only for contacts analyzed by Contact + Lens conversational analytics. Unit: Percentage Valid groupings and filters: Queue, + Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Talk time percent PERCENT_TALK_TIME_AGENT This metric is available only for contacts analyzed by Contact Lens conversational analytics. Unit: Percentage Valid groupings and filters: Queue, @@ -5770,27 +5604,40 @@ definitions in the Amazon Connect Administrator Guide. Channel, Routing Profile, Q in Connect Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \"Less than\"). UI name: Service level X STEP_CONTACTS_QUEUED Unit: Count Valid - groupings and filters: Queue, RoutingStepExpression UI name: Not available - SUM_AFTER_CONTACT_WORK_TIME Unit: Seconds Valid groupings and filters: Queue, Channel, - Routing Profile, Agent, Agent Hierarchy, Q in Connect UI name: After contact work time - SUM_CONNECTING_TIME_AGENT Unit: Seconds Valid metric filter key: INITIATION_METHOD. This - metric only supports the following filter keys as INITIATION_METHOD: INBOUND | OUTBOUND | - CALLBACK | API Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent - Hierarchy UI name: Agent API connecting time The Negate key in Metric Level Filters is - not applicable for this metric. SUM_CONTACT_FLOW_TIME Unit: Seconds Valid groupings and - filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect UI name: - Contact flow time SUM_CONTACT_TIME_AGENT Unit: Seconds Valid groupings and filters: - Queue, Channel, Routing Profile, Agent, Agent Hierarchy UI name: Agent on contact time - SUM_CONTACTS_DISCONNECTED Valid metric filter key: DISCONNECT_REASON Unit: Count Valid - groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, + groupings and filters: Queue, RoutingStepExpression UI name: This metric is available in + Real-time Metrics UI but not on the Historical Metrics UI. SUM_AFTER_CONTACT_WORK_TIME + Unit: Seconds Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent + Hierarchy, Q in Connect UI name: After contact work time SUM_CONNECTING_TIME_AGENT Unit: + Seconds Valid metric filter key: INITIATION_METHOD. This metric only supports the following + filter keys as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API Valid groupings and + filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy UI name: Agent API + connecting time The Negate key in Metric Level Filters is not applicable for this metric. + CONTACTS_ABANDONED Unit: Count Metric filter: Valid values: API| Incoming | Outbound + | Transfer | Callback | Queue_Transfer| Disconnect Valid groupings and filters: Queue, + Channel, Routing Profile, Agent, Agent Hierarchy, + contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect UI name: + Contact abandoned SUM_CONTACTS_ABANDONED_IN_X Unit: Count Valid groupings and filters: + Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect + Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in + seconds. For Comparison, you must enter LT (for \"Less than\"). UI name: Contacts + abandoned in X seconds SUM_CONTACTS_ANSWERED_IN_X Unit: Count Valid groupings and + filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in + Connect Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), + in seconds. For Comparison, you must enter LT (for \"Less than\"). UI name: Contacts + answered in X seconds SUM_CONTACT_FLOW_TIME Unit: Seconds Valid groupings and filters: + Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect UI name: Contact flow + time SUM_CONTACT_TIME_AGENT Unit: Seconds Valid groupings and filters: Routing Profile, + Agent, Agent Hierarchy UI name: Agent on contact time SUM_CONTACTS_DISCONNECTED Valid + metric filter key: DISCONNECT_REASON Unit: Count Valid groupings and filters: Queue, + Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect UI name: Contact disconnected - SUM_ERROR_STATUS_TIME_AGENT Unit: Seconds Valid groupings and filters: Queue, Channel, - Routing Profile, Agent, Agent Hierarchy UI name: Error status time SUM_HANDLE_TIME Unit: - Seconds Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent - Hierarchy, Q in Connect UI name: Contact handle time SUM_HOLD_TIME Unit: Count Valid + SUM_ERROR_STATUS_TIME_AGENT Unit: Seconds Valid groupings and filters: Routing Profile, + Agent, Agent Hierarchy UI name: Error status time SUM_HANDLE_TIME Unit: Seconds Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in - Connect UI name: Customer hold time SUM_IDLE_TIME_AGENT Unit: Seconds Valid groupings - and filters: Routing Profile, Agent, Agent Hierarchy UI name: Agent idle time + Connect UI name: Contact handle time SUM_HOLD_TIME Unit: Count Valid groupings and + filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect UI name: + Customer hold time SUM_IDLE_TIME_AGENT Unit: Seconds Valid groupings and filters: + Routing Profile, Agent, Agent Hierarchy UI name: Agent idle time SUM_INTERACTION_AND_HOLD_TIME Unit: Seconds Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect UI name: Agent interaction and hold time SUM_INTERACTION_TIME Unit: Seconds Valid groupings and filters: Queue, Channel, @@ -5816,8 +5663,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are returned apply to the metrics for each queue. They are not aggregated for all queues. If no grouping is specified, a summary of all metrics is returned. Valid grouping keys: AGENT | AGENT_HIERARCHY_LEVEL_ONE | AGENT_HIERARCHY_LEVEL_TWO | AGENT_HIERARCHY_LEVEL_THREE - | AGENT_HIERARCHY_LEVEL_FOUR | AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN | CASE_STATUS - | CHANNEL | contact/segmentAttributes/connect:Subtype | FLOWS_RESOURCE_ID | + | AGENT_HIERARCHY_LEVEL_FOUR | AGENT_HIERARCHY_LEVEL_FIVE | + ANSWERING_MACHINE_DETECTION_STATUS | CAMPAIGN | CASE_TEMPLATE_ARN | CASE_STATUS | CHANNEL | + contact/segmentAttributes/connect:Subtype | DISCONNECT_REASON | FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | FLOW_TYPE | FLOWS_OUTCOME_TYPE | INITIATION_METHOD | Q_CONNECT_ENABLED | QUEUE | RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE | ROUTING_STEP_EXPRESSION @@ -5839,28 +5687,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function get_metric_data_v2( +get_metric_data_v2( EndTime, Filters, Metrics, ResourceArn, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/metrics/data", + Dict{String,Any}( + "EndTime" => EndTime, + "Filters" => Filters, + "Metrics" => Metrics, + "ResourceArn" => ResourceArn, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/metrics/data", - Dict{String,Any}( - "EndTime" => EndTime, - "Filters" => Filters, - "Metrics" => Metrics, - "ResourceArn" => ResourceArn, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_metric_data_v2( EndTime, Filters, @@ -5903,16 +5749,13 @@ Gets the prompt file. - `prompt_id`: A unique identifier for the prompt. """ -function get_prompt_file( - InstanceId, PromptId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +get_prompt_file(InstanceId, PromptId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/prompts/$(InstanceId)/$(PromptId)/file"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_prompt_file( InstanceId, PromptId, @@ -5944,16 +5787,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"snapshotVersion"`: The system generated version of a task template that is associated with a task, when the task is created. """ -function get_task_template( +get_task_template( InstanceId, TaskTemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/instance/$(InstanceId)/task/template/$(TaskTemplateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/instance/$(InstanceId)/task/template/$(TaskTemplateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_task_template( InstanceId, TaskTemplateId, @@ -5981,14 +5822,12 @@ Retrieves the current traffic distribution for a given traffic distribution grou ARN must be provided if the call is from the replicated Region. """ -function get_traffic_distribution(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", - "/traffic-distribution/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_traffic_distribution(Id; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "GET", + "/traffic-distribution/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_traffic_distribution( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6007,7 +5846,20 @@ end Imports a claimed phone number from an external service, such as Amazon Pinpoint, into an Amazon Connect instance. You can call this API only in the same Amazon Web Services Region -where the Amazon Connect instance was created. +where the Amazon Connect instance was created. Call the DescribePhoneNumber API to verify +the status of a previous ImportPhoneNumber operation. If you plan to claim or import +numbers and then release numbers frequently, contact us for a service quota exception. +Otherwise, it is possible you will be blocked from claiming and releasing any more numbers +until up to 180 days past the oldest number released has expired. By default you can +claim or import and then release up to 200% of your maximum number of active phone numbers. +If you claim or import and then release phone numbers using the UI or API during a rolling +180 day cycle that exceeds 200% of your phone number service level quota, you will be +blocked from claiming or importing any more numbers until 180 days past the oldest number +released has expired. For example, if you already have 99 claimed or imported numbers and +a service level quota of 99 phone numbers, and in any 180 day period you release 99, claim +99, and then release 99, you will have exceeded the 200% limit. At that point you are +blocked from claiming any more numbers until you open an Amazon Web Services Support +ticket. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -6025,21 +5877,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function import_phone_number( +import_phone_number( InstanceId, SourcePhoneNumberArn; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/phone-number/import", + Dict{String,Any}( + "InstanceId" => InstanceId, + "SourcePhoneNumberArn" => SourcePhoneNumberArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/phone-number/import", - Dict{String,Any}( - "InstanceId" => InstanceId, - "SourcePhoneNumberArn" => SourcePhoneNumberArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_phone_number( InstanceId, SourcePhoneNumberArn, @@ -6083,14 +5933,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_agent_statuses(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +list_agent_statuses(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/agent-status/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_agent_statuses( InstanceId, params::AbstractDict{String}; @@ -6123,16 +5972,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_analytics_data_associations( +list_analytics_data_associations( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/analytics-data/instance/$(InstanceId)/association"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/analytics-data/instance/$(InstanceId)/association"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_analytics_data_associations( InstanceId, params::AbstractDict{String}; @@ -6164,24 +6011,61 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ +list_approved_origins(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( + "GET", + "/instance/$(InstanceId)/approved-origins"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) function list_approved_origins( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() + InstanceId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return connect( "GET", - "/instance/$(InstanceId)/approved-origins"; + "/instance/$(InstanceId)/approved-origins", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function list_approved_origins( + +""" + list_authentication_profiles(instance_id) + list_authentication_profiles(instance_id, params::Dict{String,<:Any}) + +This API is in preview release for Amazon Connect and is subject to change. To request +access to this API, contact Amazon Web Services Support. Provides summary information about +the authentication profiles in a specified Amazon Connect instance. + +# Arguments +- `instance_id`: The identifier of the Amazon Connect instance. You can find the instance + ID in the Amazon Resource Name (ARN) of the instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results to return per page. +- `"nextToken"`: The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of results. +""" +list_authentication_profiles( + InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/authentication-profiles-summary/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_authentication_profiles( InstanceId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return connect( "GET", - "/instance/$(InstanceId)/approved-origins", + "/authentication-profiles-summary/$(InstanceId)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -6208,17 +6092,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_bots( - InstanceId, lexVersion; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_bots(InstanceId, lexVersion; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/instance/$(InstanceId)/bots", Dict{String,Any}("lexVersion" => lexVersion); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_bots( InstanceId, lexVersion, @@ -6253,17 +6134,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. This is not expected to be set because the value returned in the previous response is always null. """ -function list_contact_evaluations( +list_contact_evaluations( InstanceId, contactId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/contact-evaluations/$(InstanceId)", + Dict{String,Any}("contactId" => contactId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/contact-evaluations/$(InstanceId)", - Dict{String,Any}("contactId" => contactId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_contact_evaluations( InstanceId, contactId, @@ -6298,16 +6177,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"state"`: The state of the flow module. """ -function list_contact_flow_modules( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_contact_flow_modules(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/contact-flow-modules-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_contact_flow_modules( InstanceId, params::AbstractDict{String}; @@ -6342,14 +6218,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_contact_flows(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +list_contact_flows(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/contact-flows-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_contact_flows( InstanceId, params::AbstractDict{String}; @@ -6385,20 +6260,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. This is not expected to be set, because the value returned in the previous response is always null. """ -function list_contact_references( +list_contact_references( ContactId, InstanceId, referenceTypes; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "GET", + "/contact/references/$(InstanceId)/$(ContactId)", + Dict{String,Any}("referenceTypes" => referenceTypes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/contact/references/$(InstanceId)/$(ContactId)", - Dict{String,Any}("referenceTypes" => referenceTypes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_contact_references( ContactId, InstanceId, @@ -6435,16 +6308,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_default_vocabularies( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_default_vocabularies(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/default-vocabulary-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_default_vocabularies( InstanceId, params::AbstractDict{String}; @@ -6476,16 +6346,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_evaluation_form_versions( +list_evaluation_form_versions( EvaluationFormId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_evaluation_form_versions( EvaluationFormId, InstanceId, @@ -6517,16 +6385,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_evaluation_forms( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_evaluation_forms(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/evaluation-forms/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_evaluation_forms( InstanceId, params::AbstractDict{String}; @@ -6558,16 +6423,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_flow_associations( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_flow_associations(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/flow-associations-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_flow_associations( InstanceId, params::AbstractDict{String}; @@ -6601,16 +6463,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_hours_of_operations( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_hours_of_operations(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/hours-of-operations-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_hours_of_operations( InstanceId, params::AbstractDict{String}; @@ -6642,16 +6501,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_instance_attributes( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_instance_attributes(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/instance/$(InstanceId)/attributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_instance_attributes( InstanceId, params::AbstractDict{String}; @@ -6684,17 +6540,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_instance_storage_configs( +list_instance_storage_configs( InstanceId, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/instance/$(InstanceId)/storage-configs", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/instance/$(InstanceId)/storage-configs", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_instance_storage_configs( InstanceId, resourceType, @@ -6727,11 +6581,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", "/instance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + connect("GET", "/instance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6759,16 +6610,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_integration_associations( +list_integration_associations( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/instance/$(InstanceId)/integration-associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/instance/$(InstanceId)/integration-associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_integration_associations( InstanceId, params::AbstractDict{String}; @@ -6801,16 +6650,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_lambda_functions( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_lambda_functions(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/instance/$(InstanceId)/lambda-functions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_lambda_functions( InstanceId, params::AbstractDict{String}; @@ -6844,14 +6690,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_lex_bots(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", - "/instance/$(InstanceId)/lex-bots"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_lex_bots(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "GET", + "/instance/$(InstanceId)/lex-bots"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_lex_bots( InstanceId, params::AbstractDict{String}; @@ -6896,14 +6740,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys return phone number types. While ListPhoneNumbers returns number types UIFN, SHARED, THIRD_PARTY_TF, and THIRD_PARTY_DID, it incorrectly lists them as TOLL_FREE or DID. """ -function list_phone_numbers(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +list_phone_numbers(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/phone-numbers-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_phone_numbers( InstanceId, params::AbstractDict{String}; @@ -6951,11 +6794,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Connect instances belonging to your account in the same Amazon Web Services Region as the request. """ -function list_phone_numbers_v2(; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "POST", "/phone-number/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_phone_numbers_v2(; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "POST", "/phone-number/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_phone_numbers_v2( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6972,7 +6813,10 @@ end list_predefined_attributes(instance_id) list_predefined_attributes(instance_id, params::Dict{String,<:Any}) -Lists predefined attributes for the specified Amazon Connect instance. +Lists predefined attributes for the specified Amazon Connect instance. Predefined +attributes are attributes in an Amazon Connect instance that can be used to route contacts +to an agent or pools of agents within a queue. For more information, see Create predefined +attributes for routing contacts to agents. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -6984,16 +6828,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_predefined_attributes( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_predefined_attributes(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/predefined-attributes/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_predefined_attributes( InstanceId, params::AbstractDict{String}; @@ -7024,14 +6865,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_prompts(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", - "/prompts-summary/$(InstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_prompts(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "GET", + "/prompts-summary/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_prompts( InstanceId, params::AbstractDict{String}; @@ -7065,16 +6904,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_queue_quick_connects( +list_queue_quick_connects( InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/queues/$(InstanceId)/$(QueueId)/quick-connects"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/queues/$(InstanceId)/$(QueueId)/quick-connects"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_queue_quick_connects( InstanceId, QueueId, @@ -7112,14 +6949,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"queueTypes"`: The type of queue. """ -function list_queues(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", - "/queues-summary/$(InstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_queues(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "GET", + "/queues-summary/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_queues( InstanceId, params::AbstractDict{String}; @@ -7154,14 +6989,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_quick_connects(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +list_quick_connects(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/quick-connects/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_quick_connects( InstanceId, params::AbstractDict{String}; @@ -7197,21 +7031,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_realtime_contact_analysis_segments_v2( +list_realtime_contact_analysis_segments_v2( ContactId, InstanceId, OutputType, SegmentTypes; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/list-real-time-analysis-segments-v2/$(InstanceId)/$(ContactId)", + Dict{String,Any}("OutputType" => OutputType, "SegmentTypes" => SegmentTypes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/list-real-time-analysis-segments-v2/$(InstanceId)/$(ContactId)", - Dict{String,Any}("OutputType" => OutputType, "SegmentTypes" => SegmentTypes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_realtime_contact_analysis_segments_v2( ContactId, InstanceId, @@ -7255,16 +7087,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_routing_profile_queues( +list_routing_profile_queues( InstanceId, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/queues"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/queues"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_routing_profile_queues( InstanceId, RoutingProfileId, @@ -7299,16 +7129,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_routing_profiles( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_routing_profiles(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/routing-profiles-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_routing_profiles( InstanceId, params::AbstractDict{String}; @@ -7341,14 +7168,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"publishStatus"`: The publish status of the rule. """ -function list_rules(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", - "/rules/$(InstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_rules(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "GET", + "/rules/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_rules( InstanceId, params::AbstractDict{String}; @@ -7380,14 +7205,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_security_keys(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +list_security_keys(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/instance/$(InstanceId)/security-keys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_security_keys( InstanceId, params::AbstractDict{String}; @@ -7419,16 +7243,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_security_profile_applications( +list_security_profile_applications( InstanceId, SecurityProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/security-profiles-applications/$(InstanceId)/$(SecurityProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/security-profiles-applications/$(InstanceId)/$(SecurityProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_security_profile_applications( InstanceId, SecurityProfileId, @@ -7448,7 +7270,10 @@ end list_security_profile_permissions(instance_id, security_profile_id) list_security_profile_permissions(instance_id, security_profile_id, params::Dict{String,<:Any}) -Lists the permissions granted to a security profile. +Lists the permissions granted to a security profile. For information about security +profiles, see Security Profiles in the Amazon Connect Administrator Guide. For a mapping of +the API name and user interface name of the security profile permissions, see List of +security profile permissions. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -7461,16 +7286,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_security_profile_permissions( +list_security_profile_permissions( InstanceId, SecurityProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/security-profiles-permissions/$(InstanceId)/$(SecurityProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/security-profiles-permissions/$(InstanceId)/$(SecurityProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_security_profile_permissions( InstanceId, SecurityProfileId, @@ -7492,7 +7315,8 @@ end Provides summary information about the security profiles for the specified Amazon Connect instance. For more information about security profiles, see Security Profiles in the Amazon -Connect Administrator Guide. +Connect Administrator Guide. For a mapping of the API name and user interface name of the +security profile permissions, see List of security profile permissions. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -7505,16 +7329,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_security_profiles( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_security_profiles(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/security-profiles-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_security_profiles( InstanceId, params::AbstractDict{String}; @@ -7542,16 +7363,13 @@ Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide for an instance, for example, see Find your Amazon Connect instance ID/ARN. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -7589,14 +7407,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created. """ -function list_task_templates(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +list_task_templates(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/instance/$(InstanceId)/task/template"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_task_templates( InstanceId, params::AbstractDict{String}; @@ -7629,16 +7446,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_traffic_distribution_group_users( +list_traffic_distribution_group_users( TrafficDistributionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/traffic-distribution-group/$(TrafficDistributionGroupId)/user"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/traffic-distribution-group/$(TrafficDistributionGroupId)/user"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_traffic_distribution_group_users( TrafficDistributionGroupId, params::AbstractDict{String}; @@ -7667,16 +7482,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_traffic_distribution_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_traffic_distribution_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/traffic-distribution-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_traffic_distribution_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7706,16 +7518,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_use_cases( +list_use_cases( InstanceId, IntegrationAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/instance/$(InstanceId)/integration-associations/$(IntegrationAssociationId)/use-cases"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/instance/$(InstanceId)/integration-associations/$(IntegrationAssociationId)/use-cases"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_use_cases( InstanceId, IntegrationAssociationId, @@ -7750,16 +7560,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_user_hierarchy_groups( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_user_hierarchy_groups(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/user-hierarchy-groups-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_user_hierarchy_groups( InstanceId, params::AbstractDict{String}; @@ -7791,16 +7598,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_user_proficiencies( +list_user_proficiencies( InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "GET", + "/users/$(InstanceId)/$(UserId)/proficiencies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "GET", - "/users/$(InstanceId)/$(UserId)/proficiencies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_user_proficiencies( InstanceId, UserId, @@ -7833,14 +7638,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_users(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", - "/users-summary/$(InstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_users(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "GET", + "/users-summary/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_users( InstanceId, params::AbstractDict{String}; @@ -7874,16 +7677,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_view_versions( - InstanceId, ViewId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +list_view_versions(InstanceId, ViewId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "GET", "/views/$(InstanceId)/$(ViewId)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_view_versions( InstanceId, ViewId, @@ -7918,14 +7718,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"type"`: The type of the view. """ -function list_views(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "GET", - "/views/$(InstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_views(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "GET", + "/views/$(InstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_views( InstanceId, params::AbstractDict{String}; @@ -7962,22 +7760,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function monitor_contact( +monitor_contact( ContactId, InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact/monitor", + Dict{String,Any}( + "ContactId" => ContactId, + "InstanceId" => InstanceId, + "UserId" => UserId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/monitor", - Dict{String,Any}( - "ContactId" => ContactId, - "InstanceId" => InstanceId, - "UserId" => UserId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function monitor_contact( ContactId, InstanceId, @@ -8020,17 +7816,14 @@ Allows pausing an ongoing task contact. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ContactFlowId"`: The identifier of the flow. """ -function pause_contact( - ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +pause_contact(ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/contact/pause", Dict{String,Any}("ContactId" => ContactId, "InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function pause_contact( ContactId, InstanceId, @@ -8067,17 +7860,15 @@ status and Set your next status in the Amazon Connect Administrator Guide. - `user_id`: The identifier of the user. """ -function put_user_status( +put_user_status( AgentStatusId, InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/users/$(InstanceId)/$(UserId)/status", + Dict{String,Any}("AgentStatusId" => AgentStatusId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/users/$(InstanceId)/$(UserId)/status", - Dict{String,Any}("AgentStatusId" => AgentStatusId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_user_status( AgentStatusId, InstanceId, @@ -8127,17 +7918,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function release_phone_number( - PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +release_phone_number(PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "DELETE", "/phone-number/$(PhoneNumberId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function release_phone_number( PhoneNumberId, params::AbstractDict{String}; @@ -8177,24 +7965,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function replicate_instance( +replicate_instance( InstanceId, ReplicaAlias, ReplicaRegion; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/instance/$(InstanceId)/replicate", + Dict{String,Any}( + "ReplicaAlias" => ReplicaAlias, + "ReplicaRegion" => ReplicaRegion, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/instance/$(InstanceId)/replicate", - Dict{String,Any}( - "ReplicaAlias" => ReplicaAlias, - "ReplicaRegion" => ReplicaRegion, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replicate_instance( InstanceId, ReplicaAlias, @@ -8236,17 +8022,14 @@ Allows resuming a task contact in a paused state. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ContactFlowId"`: The identifier of the flow. """ -function resume_contact( - ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +resume_contact(ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/contact/resume", Dict{String,Any}("ContactId" => ContactId, "InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resume_contact( ContactId, InstanceId, @@ -8285,24 +8068,22 @@ is enabled, then it would resume. Voice and screen recordings are supported. ID in the Amazon Resource Name (ARN) of the instance. """ -function resume_contact_recording( +resume_contact_recording( ContactId, InitialContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/resume-recording", + Dict{String,Any}( + "ContactId" => ContactId, + "InitialContactId" => InitialContactId, + "InstanceId" => InstanceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/resume-recording", - Dict{String,Any}( - "ContactId" => ContactId, - "InitialContactId" => InitialContactId, - "InstanceId" => InstanceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function resume_contact_recording( ContactId, InitialContactId, @@ -8329,6 +8110,48 @@ function resume_contact_recording( ) end +""" + search_agent_statuses(instance_id) + search_agent_statuses(instance_id, params::Dict{String,<:Any}) + +Searches AgentStatuses in an Amazon Connect instance, with optional filtering. + +# Arguments +- `instance_id`: The identifier of the Amazon Connect instance. You can find the instanceId + in the ARN of the instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"MaxResults"`: The maximum number of results to return per page. +- `"NextToken"`: The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of results. +- `"SearchCriteria"`: The search criteria to be used to return agent statuses. +- `"SearchFilter"`: Filters to be applied to search results. +""" +search_agent_statuses(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( + "POST", + "/search-agent-statuses", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function search_agent_statuses( + InstanceId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return connect( + "POST", + "/search-agent-statuses", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("InstanceId" => InstanceId), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ search_available_phone_numbers(phone_number_country_code, phone_number_type) search_available_phone_numbers(phone_number_country_code, phone_number_type, params::Dict{String,<:Any}) @@ -8356,22 +8179,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys distribution groups that phone number inbound traffic is routed through. You must enter InstanceId or TargetArn. """ -function search_available_phone_numbers( +search_available_phone_numbers( PhoneNumberCountryCode, PhoneNumberType; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/phone-number/search-available", + Dict{String,Any}( + "PhoneNumberCountryCode" => PhoneNumberCountryCode, + "PhoneNumberType" => PhoneNumberType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/phone-number/search-available", - Dict{String,Any}( - "PhoneNumberCountryCode" => PhoneNumberCountryCode, - "PhoneNumberType" => PhoneNumberType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_available_phone_numbers( PhoneNumberCountryCode, PhoneNumberType, @@ -8417,17 +8238,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys result in invalid results. - `"SearchFilter"`: Filters to be applied to search results. """ -function search_contact_flow_modules( +search_contact_flow_modules( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/search-contact-flow-modules", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/search-contact-flow-modules", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_contact_flow_modules( InstanceId, params::AbstractDict{String}; @@ -8465,17 +8284,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys result in invalid results. - `"SearchFilter"`: Filters to be applied to search results. """ -function search_contact_flows( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +search_contact_flows(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/search-contact-flows", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_contact_flows( InstanceId, params::AbstractDict{String}; @@ -8511,17 +8327,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SearchCriteria"`: The search criteria to be used to return contacts. - `"Sort"`: Specifies a field to sort by and a sort order. """ -function search_contacts( - InstanceId, TimeRange; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +search_contacts(InstanceId, TimeRange; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/search-contacts", Dict{String,Any}("InstanceId" => InstanceId, "TimeRange" => TimeRange); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_contacts( InstanceId, TimeRange, @@ -8561,17 +8374,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SearchCriteria"`: The search criteria to be used to return hours of operations. - `"SearchFilter"`: Filters to be applied to search results. """ -function search_hours_of_operations( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +search_hours_of_operations(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/search-hours-of-operations", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_hours_of_operations( InstanceId, params::AbstractDict{String}; @@ -8592,7 +8402,10 @@ end search_predefined_attributes(instance_id) search_predefined_attributes(instance_id, params::Dict{String,<:Any}) -Predefined attributes that meet certain criteria. +Searches predefined attributes that meet certain criteria. Predefined attributes are +attributes in an Amazon Connect instance that can be used to route contacts to an agent or +pools of agents within a queue. For more information, see Create predefined attributes for +routing contacts to agents. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -8605,17 +8418,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"SearchCriteria"`: The search criteria to be used to return predefined attributes. """ -function search_predefined_attributes( +search_predefined_attributes( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/search-predefined-attributes", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/search-predefined-attributes", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_predefined_attributes( InstanceId, params::AbstractDict{String}; @@ -8650,15 +8461,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SearchCriteria"`: The search criteria to be used to return prompts. - `"SearchFilter"`: Filters to be applied to search results. """ -function search_prompts(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "POST", - "/search-prompts", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_prompts(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "POST", + "/search-prompts", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_prompts( InstanceId, params::AbstractDict{String}; @@ -8696,15 +8505,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys throw invalid results. - `"SearchFilter"`: Filters to be applied to search results. """ -function search_queues(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "POST", - "/search-queues", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_queues(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "POST", + "/search-queues", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_queues( InstanceId, params::AbstractDict{String}; @@ -8739,17 +8546,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SearchCriteria"`: The search criteria to be used to return quick connects. - `"SearchFilter"`: Filters to be applied to search results. """ -function search_quick_connects( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +search_quick_connects(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/search-quick-connects", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_quick_connects( InstanceId, params::AbstractDict{String}; @@ -8783,20 +8587,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"ResourceTypes"`: The list of resource types to be used to search tags from. If not provided or if any empty list is provided, this API will search from all supported resource - types. + types. Supported resource types AGENT ROUTING_PROFILE STANDARD_QUEUE + SECURITY_PROFILE OPERATING_HOURS PROMPT CONTACT_FLOW FLOW_MODULE - `"SearchCriteria"`: The search criteria to be used to return tags. """ -function search_resource_tags( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +search_resource_tags(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/search-resource-tags", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_resource_tags( InstanceId, params::AbstractDict{String}; @@ -8834,17 +8636,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys throw invalid results. - `"SearchFilter"`: Filters to be applied to search results. """ -function search_routing_profiles( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +search_routing_profiles(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/search-routing-profiles", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_routing_profiles( InstanceId, params::AbstractDict{String}; @@ -8865,7 +8664,10 @@ end search_security_profiles(instance_id) search_security_profiles(instance_id, params::Dict{String,<:Any}) -Searches security profiles in an Amazon Connect instance, with optional filtering. +Searches security profiles in an Amazon Connect instance, with optional filtering. For +information about security profiles, see Security Profiles in the Amazon Connect +Administrator Guide. For a mapping of the API name and user interface name of the security +profile permissions, see List of security profile permissions. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -8882,25 +8684,67 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. The currently supported value for FieldName: name - `"SearchFilter"`: Filters to be applied to search results. """ +search_security_profiles(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( + "POST", + "/search-security-profiles", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) function search_security_profiles( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() + InstanceId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return connect( "POST", "/search-security-profiles", - Dict{String,Any}("InstanceId" => InstanceId); + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("InstanceId" => InstanceId), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function search_security_profiles( + +""" + search_user_hierarchy_groups(instance_id) + search_user_hierarchy_groups(instance_id, params::Dict{String,<:Any}) + +Searches UserHierarchyGroups in an Amazon Connect instance, with optional filtering. The +UserHierarchyGroup with \"LevelId\": \"0\" is the foundation for building levels on top of +an instance. It is not user-definable, nor is it visible in the UI. + +# Arguments +- `instance_id`: The identifier of the Amazon Connect instance. You can find the instanceId + in the ARN of the instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"MaxResults"`: The maximum number of results to return per page. +- `"NextToken"`: The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of results. +- `"SearchCriteria"`: The search criteria to be used to return UserHierarchyGroups. +- `"SearchFilter"`: Filters to be applied to search results. +""" +search_user_hierarchy_groups( + InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/search-user-hierarchy-groups", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function search_user_hierarchy_groups( InstanceId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return connect( "POST", - "/search-security-profiles", + "/search-user-hierarchy-groups", Dict{String,Any}( mergewith(_merge, Dict{String,Any}("InstanceId" => InstanceId), params) ); @@ -8929,15 +8773,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SearchCriteria"`: - `"SearchFilter"`: Filters to be applied to search results. """ -function search_users(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( - "POST", - "/search-users", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_users(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = connect( + "POST", + "/search-users", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_users( InstanceId, params::AbstractDict{String}; @@ -8975,14 +8817,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"State"`: The current state of the custom vocabulary. """ -function search_vocabularies(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +search_vocabularies(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/vocabulary-summary/$(InstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_vocabularies( InstanceId, params::AbstractDict{String}; @@ -9025,19 +8866,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Subtype"`: Classification of a channel. This is used in part to uniquely identify chat. Valid value: [\"connect:sms\"] """ -function send_chat_integration_event( +send_chat_integration_event( DestinationId, Event, SourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/chat-integration-event", + Dict{String,Any}( + "DestinationId" => DestinationId, "Event" => Event, "SourceId" => SourceId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/chat-integration-event", - Dict{String,Any}( - "DestinationId" => DestinationId, "Event" => Event, "SourceId" => SourceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_chat_integration_event( DestinationId, Event, @@ -9069,13 +8908,13 @@ end start_attached_file_upload(file_name, file_size_in_bytes, file_use_case_type, instance_id, associated_resource_arn, params::Dict{String,<:Any}) Provides a pre-signed Amazon S3 URL in response for uploading your content. You may only -use this API to upload attachments to a Connect Case. +use this API to upload attachments to an Amazon Connect Case. # Arguments - `file_name`: A case-sensitive name of the attached file being uploaded. - `file_size_in_bytes`: The size of the attached file in bytes. - `file_use_case_type`: The use case for the file. -- `instance_id`: The unique identifier of the Connect instance. +- `instance_id`: The unique identifier of the Amazon Connect instance. - `associated_resource_arn`: The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. This value must be a valid ARN. @@ -9090,28 +8929,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UrlExpiryInSeconds"`: Optional override for the expiry of the pre-signed S3 URL in seconds. The default value is 300. """ -function start_attached_file_upload( +start_attached_file_upload( FileName, FileSizeInBytes, FileUseCaseType, InstanceId, associatedResourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/attached-files/$(InstanceId)", + Dict{String,Any}( + "FileName" => FileName, + "FileSizeInBytes" => FileSizeInBytes, + "FileUseCaseType" => FileUseCaseType, + "associatedResourceArn" => associatedResourceArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/attached-files/$(InstanceId)", - Dict{String,Any}( - "FileName" => FileName, - "FileSizeInBytes" => FileSizeInBytes, - "FileUseCaseType" => FileUseCaseType, - "associatedResourceArn" => associatedResourceArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_attached_file_upload( FileName, FileSizeInBytes, @@ -9156,8 +8993,9 @@ throttling returns a TooManyRequests exception. The quota for concurrent activ exceeded. Active chat throttling returns a LimitExceededException. If you use the ChatDurationInMinutes parameter and receive a 400 error, your account may not support the ability to configure custom chat durations. For more information, contact Amazon Web -Services Support. For more information about chat, see Chat in the Amazon Connect -Administrator Guide. +Services Support. For more information about chat, see the following topics in the Amazon +Connect Administrator Guide: Concepts: Web and mobile messaging capabilities in Amazon +Connect Amazon Connect Chat security best practices # Arguments - `contact_flow_id`: The identifier of the flow for initiating the chat. To see the @@ -9207,28 +9045,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the following lists are valid because they contain text/plain: [text/plain, text/markdown, application/json], [text/markdown, text/plain], [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]. The type - application/vnd.amazonaws.connect.message.interactive is required to use the Show view flow - block. -""" -function start_chat_contact( - ContactFlowId, - InstanceId, - ParticipantDetails; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return connect( - "PUT", - "/contact/chat", - Dict{String,Any}( - "ContactFlowId" => ContactFlowId, - "InstanceId" => InstanceId, - "ParticipantDetails" => ParticipantDetails, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + application/vnd.amazonaws.connect.message.interactive is required to use the Show view flow + block. +""" +start_chat_contact( + ContactFlowId, + InstanceId, + ParticipantDetails; + aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/contact/chat", + Dict{String,Any}( + "ContactFlowId" => ContactFlowId, + "InstanceId" => InstanceId, + "ParticipantDetails" => ParticipantDetails, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_chat_contact( ContactFlowId, InstanceId, @@ -9278,24 +9114,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function start_contact_evaluation( +start_contact_evaluation( ContactId, EvaluationFormId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/contact-evaluations/$(InstanceId)", + Dict{String,Any}( + "ContactId" => ContactId, + "EvaluationFormId" => EvaluationFormId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/contact-evaluations/$(InstanceId)", - Dict{String,Any}( - "ContactId" => ContactId, - "EvaluationFormId" => EvaluationFormId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_contact_evaluation( ContactId, EvaluationFormId, @@ -9345,26 +9179,24 @@ in the Set recording behavior block. Only voice recordings are supported at this - `voice_recording_configuration`: The person being recorded. """ -function start_contact_recording( +start_contact_recording( ContactId, InitialContactId, InstanceId, VoiceRecordingConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/start-recording", + Dict{String,Any}( + "ContactId" => ContactId, + "InitialContactId" => InitialContactId, + "InstanceId" => InstanceId, + "VoiceRecordingConfiguration" => VoiceRecordingConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/start-recording", - Dict{String,Any}( - "ContactId" => ContactId, - "InitialContactId" => InitialContactId, - "InstanceId" => InstanceId, - "VoiceRecordingConfiguration" => VoiceRecordingConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_contact_recording( ContactId, InitialContactId, @@ -9399,7 +9231,9 @@ end Initiates real-time message streaming for a new chat contact. For more information about message streaming, see Enable real-time chat message streaming in the Amazon Connect -Administrator Guide. +Administrator Guide. For more information about chat, see the following topics in the +Amazon Connect Administrator Guide: Concepts: Web and mobile messaging capabilities in +Amazon Connect Amazon Connect Chat security best practices # Arguments - `chat_streaming_configuration`: The streaming configuration, such as the Amazon SNS @@ -9413,26 +9247,24 @@ Administrator Guide. ID in the Amazon Resource Name (ARN) of the instance. """ -function start_contact_streaming( +start_contact_streaming( ChatStreamingConfiguration, ClientToken, ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/start-streaming", + Dict{String,Any}( + "ChatStreamingConfiguration" => ChatStreamingConfiguration, + "ClientToken" => ClientToken, + "ContactId" => ContactId, + "InstanceId" => InstanceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/start-streaming", - Dict{String,Any}( - "ChatStreamingConfiguration" => ChatStreamingConfiguration, - "ClientToken" => ClientToken, - "ContactId" => ContactId, - "InstanceId" => InstanceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_contact_streaming( ChatStreamingConfiguration, ClientToken, @@ -9526,25 +9358,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys handled differently by Amazon Connect. The default value is GENERAL. Use CAMPAIGN if EnableAnswerMachineDetection is set to true. For all other cases, use GENERAL. """ -function start_outbound_voice_contact( +start_outbound_voice_contact( ContactFlowId, DestinationPhoneNumber, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/contact/outbound-voice", + Dict{String,Any}( + "ContactFlowId" => ContactFlowId, + "DestinationPhoneNumber" => DestinationPhoneNumber, + "InstanceId" => InstanceId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/contact/outbound-voice", - Dict{String,Any}( - "ContactFlowId" => ContactFlowId, - "DestinationPhoneNumber" => DestinationPhoneNumber, - "InstanceId" => InstanceId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_outbound_voice_contact( ContactFlowId, DestinationPhoneNumber, @@ -9641,10 +9471,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TaskTemplateId"`: A unique identifier for the task template. For more information about task templates, see Create task templates in the Amazon Connect Administrator Guide. """ -function start_task_contact( - InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +start_task_contact(InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "PUT", "/contact/task", Dict{String,Any}( @@ -9653,7 +9481,6 @@ function start_task_contact( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_task_contact( InstanceId, Name, @@ -9689,8 +9516,8 @@ Amazon Connect instance (specified as InstanceId). # Arguments - `contact_flow_id`: The identifier of the flow for the call. To see the ContactFlowId in - the Amazon Connect admin website, on the navigation menu go to Routing, Contact Flows. - Choose the flow. On the flow page, under the name of the flow, choose Show additional flow + the Amazon Connect admin website, on the navigation menu go to Routing, Flows. Choose the + flow. On the flow page, under the name of the flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold: arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact -flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx @@ -9719,25 +9546,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RelatedContactId"`: The unique identifier for an Amazon Connect contact. This identifier is related to the contact starting. """ -function start_web_rtccontact( +start_web_rtccontact( ContactFlowId, InstanceId, ParticipantDetails; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/contact/webrtc", + Dict{String,Any}( + "ContactFlowId" => ContactFlowId, + "InstanceId" => InstanceId, + "ParticipantDetails" => ParticipantDetails, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/contact/webrtc", - Dict{String,Any}( - "ContactFlowId" => ContactFlowId, - "InstanceId" => InstanceId, - "ParticipantDetails" => ParticipantDetails, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_web_rtccontact( ContactFlowId, InstanceId, @@ -9784,17 +9609,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DisconnectReason"`: The reason a contact can be disconnected. Only Amazon Connect outbound campaigns can provide this field. """ -function stop_contact( - ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +stop_contact(ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/contact/stop", Dict{String,Any}("ContactId" => ContactId, "InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_contact( ContactId, InstanceId, @@ -9835,24 +9657,22 @@ voice recordings are supported at this time. ID in the Amazon Resource Name (ARN) of the instance. """ -function stop_contact_recording( +stop_contact_recording( ContactId, InitialContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/stop-recording", + Dict{String,Any}( + "ContactId" => ContactId, + "InitialContactId" => InitialContactId, + "InstanceId" => InstanceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/stop-recording", - Dict{String,Any}( - "ContactId" => ContactId, - "InitialContactId" => InitialContactId, - "InstanceId" => InstanceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_contact_recording( ContactId, InitialContactId, @@ -9894,21 +9714,19 @@ contact, call the StartContactStreaming API. - `streaming_id`: The identifier of the streaming configuration enabled. """ -function stop_contact_streaming( +stop_contact_streaming( ContactId, InstanceId, StreamingId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact/stop-streaming", + Dict{String,Any}( + "ContactId" => ContactId, + "InstanceId" => InstanceId, + "StreamingId" => StreamingId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/stop-streaming", - Dict{String,Any}( - "ContactId" => ContactId, - "InstanceId" => InstanceId, - "StreamingId" => StreamingId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_contact_streaming( ContactId, InstanceId, @@ -9956,16 +9774,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Answers"`: A map of question identifiers to answer value. - `"Notes"`: A map of question identifiers to note value. """ -function submit_contact_evaluation( +submit_contact_evaluation( EvaluationId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact-evaluations/$(InstanceId)/$(EvaluationId)/submit"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact-evaluations/$(InstanceId)/$(EvaluationId)/submit"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function submit_contact_evaluation( EvaluationId, InstanceId, @@ -10001,24 +9817,22 @@ recordings are supported. ID in the Amazon Resource Name (ARN) of the instance. """ -function suspend_contact_recording( +suspend_contact_recording( ContactId, InitialContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/suspend-recording", + Dict{String,Any}( + "ContactId" => ContactId, + "InitialContactId" => InitialContactId, + "InstanceId" => InstanceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/suspend-recording", - Dict{String,Any}( - "ContactId" => ContactId, - "InitialContactId" => InitialContactId, - "InstanceId" => InstanceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function suspend_contact_recording( ContactId, InitialContactId, @@ -10060,19 +9874,15 @@ used, see Set up granular billing for a detailed view of your Amazon Connect usa {\"key1\":\"value1\", \"key2\":\"value2\"} }. Authorization is not supported by this tag. """ -function tag_contact( +tag_contact( ContactId, InstanceId, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact/tags", + Dict{String,Any}("ContactId" => ContactId, "InstanceId" => InstanceId, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/tags", - Dict{String,Any}( - "ContactId" => ContactId, "InstanceId" => InstanceId, "Tags" => Tags - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_contact( ContactId, InstanceId, @@ -10113,15 +9923,14 @@ Identity-Based Policy Examples in the Amazon Connect Administrator Guide. example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -10165,22 +9974,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"QueueId"`: The identifier for the queue. - `"UserId"`: The identifier for the user. This can be the ID or the ARN of the user. """ -function transfer_contact( +transfer_contact( ContactFlowId, ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact/transfer", + Dict{String,Any}( + "ContactFlowId" => ContactFlowId, + "ContactId" => ContactId, + "InstanceId" => InstanceId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/transfer", - Dict{String,Any}( - "ContactFlowId" => ContactFlowId, - "ContactId" => ContactId, - "InstanceId" => InstanceId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function transfer_contact( ContactFlowId, ContactId, @@ -10223,17 +10030,15 @@ is used, see Set up granular billing for a detailed view of your Amazon Connect this list will be removed. """ -function untag_contact( +untag_contact( ContactId, InstanceId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "DELETE", + "/contact/tags/$(InstanceId)/$(ContactId)", + Dict{String,Any}("TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "DELETE", - "/contact/tags/$(InstanceId)/$(ContactId)", - Dict{String,Any}("TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_contact( ContactId, InstanceId, @@ -10261,17 +10066,14 @@ Removes the specified tags from the specified resource. - `tag_keys`: The tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -10307,25 +10109,76 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResetOrderNumber"`: A number indicating the reset order of the agent status. - `"State"`: The state of the agent status. """ -function update_agent_status( +update_agent_status( AgentStatusId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/agent-status/$(InstanceId)/$(AgentStatusId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_agent_status( + AgentStatusId, + InstanceId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return connect( "POST", - "/agent-status/$(InstanceId)/$(AgentStatusId)"; + "/agent-status/$(InstanceId)/$(AgentStatusId)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function update_agent_status( - AgentStatusId, + +""" + update_authentication_profile(authentication_profile_id, instance_id) + update_authentication_profile(authentication_profile_id, instance_id, params::Dict{String,<:Any}) + +This API is in preview release for Amazon Connect and is subject to change. To request +access to this API, contact Amazon Web Services Support. Updates the selected +authentication profile. + +# Arguments +- `authentication_profile_id`: A unique identifier for the authentication profile. +- `instance_id`: The identifier of the Amazon Connect instance. You can find the instance + ID in the Amazon Resource Name (ARN) of the instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AllowedIps"`: A list of IP address range strings that are allowed to access the + instance. For more information on how to configure IP addresses, seeConfigure session + timeouts in the Amazon Connect Administrator Guide. +- `"BlockedIps"`: A list of IP address range strings that are blocked from accessing the + instance. For more information on how to configure IP addresses, For more information on + how to configure IP addresses, see Configure IP-based access control in the Amazon Connect + Administrator Guide. +- `"Description"`: The description for the authentication profile. +- `"Name"`: The name for the authentication profile. +- `"PeriodicSessionDuration"`: The short lived session duration configuration for users + logged in to Amazon Connect, in minutes. This value determines the maximum possible time + before an agent is authenticated. For more information, For more information on how to + configure IP addresses, see Configure session timeouts in the Amazon Connect Administrator + Guide. +""" +update_authentication_profile( + AuthenticationProfileId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/authentication-profiles/$(InstanceId)/$(AuthenticationProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_authentication_profile( + AuthenticationProfileId, InstanceId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return connect( "POST", - "/agent-status/$(InstanceId)/$(AgentStatusId)", + "/authentication-profiles/$(InstanceId)/$(AuthenticationProfileId)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -10354,16 +10207,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"References"`: Well-formed data on contact, shown to agents on Contact Control Panel (CCP). """ -function update_contact( - ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +update_contact(ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/contacts/$(InstanceId)/$(ContactId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_contact( ContactId, InstanceId, @@ -10412,24 +10262,22 @@ Administrator Guide. ID in the Amazon Resource Name (ARN) of the instance. """ -function update_contact_attributes( +update_contact_attributes( Attributes, InitialContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact/attributes", + Dict{String,Any}( + "Attributes" => Attributes, + "InitialContactId" => InitialContactId, + "InstanceId" => InstanceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/attributes", - Dict{String,Any}( - "Attributes" => Attributes, - "InitialContactId" => InitialContactId, - "InstanceId" => InstanceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_attributes( Attributes, InitialContactId, @@ -10475,16 +10323,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Answers"`: A map of question identifiers to answer value. - `"Notes"`: A map of question identifiers to note value. """ -function update_contact_evaluation( +update_contact_evaluation( EvaluationId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact-evaluations/$(InstanceId)/$(EvaluationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact-evaluations/$(InstanceId)/$(EvaluationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_evaluation( EvaluationId, InstanceId, @@ -10517,17 +10363,15 @@ needs to be supplied to view saved content that has not been published. - `instance_id`: The identifier of the Amazon Connect instance. """ -function update_contact_flow_content( +update_contact_flow_content( ContactFlowId, Content, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact-flows/$(InstanceId)/$(ContactFlowId)/content", + Dict{String,Any}("Content" => Content); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact-flows/$(InstanceId)/$(ContactFlowId)/content", - Dict{String,Any}("Content" => Content); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_flow_content( ContactFlowId, Content, @@ -10561,16 +10405,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the flow. - `"Name"`: The name of the flow. """ -function update_contact_flow_metadata( +update_contact_flow_metadata( ContactFlowId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact-flows/$(InstanceId)/$(ContactFlowId)/metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact-flows/$(InstanceId)/$(ContactFlowId)/metadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_flow_metadata( ContactFlowId, InstanceId, @@ -10603,20 +10445,18 @@ supplied to view saved content that has not been published. ID in the Amazon Resource Name (ARN) of the instance. """ -function update_contact_flow_module_content( +update_contact_flow_module_content( ContactFlowModuleId, Content, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/contact-flow-modules/$(InstanceId)/$(ContactFlowModuleId)/content", + Dict{String,Any}("Content" => Content); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact-flow-modules/$(InstanceId)/$(ContactFlowModuleId)/content", - Dict{String,Any}("Content" => Content); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_flow_module_content( ContactFlowModuleId, Content, @@ -10650,16 +10490,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name of the flow module. - `"State"`: The state of flow module. """ -function update_contact_flow_module_metadata( +update_contact_flow_module_metadata( ContactFlowModuleId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact-flow-modules/$(InstanceId)/$(ContactFlowModuleId)/metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact-flow-modules/$(InstanceId)/$(ContactFlowModuleId)/metadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_flow_module_metadata( ContactFlowModuleId, InstanceId, @@ -10691,16 +10529,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the flow. - `"Name"`: The name of the flow. """ -function update_contact_flow_name( +update_contact_flow_name( ContactFlowId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact-flows/$(InstanceId)/$(ContactFlowId)/name"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact-flows/$(InstanceId)/$(ContactFlowId)/name"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_flow_name( ContactFlowId, InstanceId, @@ -10745,17 +10581,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contact's routing age. Contacts are routed to agents on a first-come, first-serve basis. This means that changing their amount of time in queue compared to others also changes their position in queue. +- `"RoutingCriteria"`: Updates the routing criteria on the contact. These properties can be + used to change how a
 contact is routed within the queue. """ -function update_contact_routing_data( +update_contact_routing_data( ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contacts/$(InstanceId)/$(ContactId)/routing-data"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contacts/$(InstanceId)/$(ContactId)/routing-data"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_routing_data( ContactId, InstanceId, @@ -10786,21 +10622,19 @@ Updates the scheduled time of a task contact that is already scheduled. in future. """ -function update_contact_schedule( +update_contact_schedule( ContactId, InstanceId, ScheduledTime; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/contact/schedule", + Dict{String,Any}( + "ContactId" => ContactId, + "InstanceId" => InstanceId, + "ScheduledTime" => ScheduledTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/contact/schedule", - Dict{String,Any}( - "ContactId" => ContactId, - "InstanceId" => InstanceId, - "ScheduledTime" => ScheduledTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_schedule( ContactId, InstanceId, @@ -10854,27 +10688,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the evaluation form. - `"ScoringStrategy"`: A scoring strategy of the evaluation form. """ -function update_evaluation_form( +update_evaluation_form( EvaluationFormId, - EvaluationFormVersion, - InstanceId, - Items, - Title; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return connect( - "PUT", - "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)", - Dict{String,Any}( - "EvaluationFormVersion" => EvaluationFormVersion, - "Items" => Items, - "Title" => Title, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + EvaluationFormVersion, + InstanceId, + Items, + Title; + aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/evaluation-forms/$(InstanceId)/$(EvaluationFormId)", + Dict{String,Any}( + "EvaluationFormVersion" => EvaluationFormVersion, + "Items" => Items, + "Title" => Title, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_evaluation_form( EvaluationFormId, EvaluationFormVersion, @@ -10923,16 +10755,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name of the hours of operation. - `"TimeZone"`: The time zone of the hours of operation. """ -function update_hours_of_operation( +update_hours_of_operation( HoursOfOperationId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/hours-of-operations/$(InstanceId)/$(HoursOfOperationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/hours-of-operations/$(InstanceId)/$(HoursOfOperationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_hours_of_operation( HoursOfOperationId, InstanceId, @@ -10964,17 +10794,15 @@ value for the specified attribute type. - `value`: The value for the attribute. Maximum character limit is 100. """ -function update_instance_attribute( +update_instance_attribute( AttributeType, InstanceId, Value; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/instance/$(InstanceId)/attribute/$(AttributeType)", + Dict{String,Any}("Value" => Value); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/instance/$(InstanceId)/attribute/$(AttributeType)", - Dict{String,Any}("Value" => Value); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_instance_attribute( AttributeType, InstanceId, @@ -11007,21 +10835,19 @@ existing configuration for a resource type. This API is idempotent. - `resource_type`: A valid resource type. """ -function update_instance_storage_config( +update_instance_storage_config( AssociationId, InstanceId, StorageConfig, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/instance/$(InstanceId)/storage-config/$(AssociationId)", + Dict{String,Any}("StorageConfig" => StorageConfig, "resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/instance/$(InstanceId)/storage-config/$(AssociationId)", - Dict{String,Any}("StorageConfig" => StorageConfig, "resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_instance_storage_config( AssociationId, InstanceId, @@ -11064,20 +10890,18 @@ chat timeouts for human participants. ID in the Amazon Resource Name (ARN) of the instance. """ -function update_participant_role_config( +update_participant_role_config( ChannelConfiguration, ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/contact/participant-role-config/$(InstanceId)/$(ContactId)", + Dict{String,Any}("ChannelConfiguration" => ChannelConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/contact/participant-role-config/$(InstanceId)/$(ContactId)", - Dict{String,Any}("ChannelConfiguration" => ChannelConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_participant_role_config( ChannelConfiguration, ContactId, @@ -11128,17 +10952,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys distribution groups that phone number inbound traffic is routed through. You must enter InstanceId or TargetArn. """ -function update_phone_number( - PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +update_phone_number(PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "PUT", "/phone-number/$(PhoneNumberId)", Dict{String,Any}("ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_phone_number( PhoneNumberId, params::AbstractDict{String}; @@ -11172,17 +10993,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys field. For more information about idempotency, see Making retries safe with idempotent APIs. - `"PhoneNumberDescription"`: The description of the phone number. """ -function update_phone_number_metadata( +update_phone_number_metadata( PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "PUT", + "/phone-number/$(PhoneNumberId)/metadata", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/phone-number/$(PhoneNumberId)/metadata", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_phone_number_metadata( PhoneNumberId, params::AbstractDict{String}; @@ -11203,7 +11022,10 @@ end update_predefined_attribute(instance_id, name) update_predefined_attribute(instance_id, name, params::Dict{String,<:Any}) -Updates a predefined attribute for the specified Amazon Connect instance. +Updates a predefined attribute for the specified Amazon Connect instance. Predefined +attributes are attributes in an Amazon Connect instance that can be used to route contacts +to an agent or pools of agents within a queue. For more information, see Create predefined +attributes for routing contacts to agents. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -11214,16 +11036,14 @@ Updates a predefined attribute for the specified Amazon Connect instance. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Values"`: The values of the predefined attribute. """ -function update_predefined_attribute( +update_predefined_attribute( InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/predefined-attributes/$(InstanceId)/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/predefined-attributes/$(InstanceId)/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_predefined_attribute( InstanceId, Name, @@ -11257,16 +11077,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"S3Uri"`: The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. """ -function update_prompt( - InstanceId, PromptId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +update_prompt(InstanceId, PromptId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/prompts/$(InstanceId)/$(PromptId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_prompt( InstanceId, PromptId, @@ -11296,20 +11113,18 @@ hours of operation for the specified queue. - `queue_id`: The identifier for the queue. """ -function update_queue_hours_of_operation( +update_queue_hours_of_operation( HoursOfOperationId, InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/queues/$(InstanceId)/$(QueueId)/hours-of-operation", + Dict{String,Any}("HoursOfOperationId" => HoursOfOperationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/queues/$(InstanceId)/$(QueueId)/hours-of-operation", - Dict{String,Any}("HoursOfOperationId" => HoursOfOperationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_queue_hours_of_operation( HoursOfOperationId, InstanceId, @@ -11347,16 +11162,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxContacts"`: The maximum number of contacts that can be in the queue before it is considered full. """ -function update_queue_max_contacts( +update_queue_max_contacts( InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/queues/$(InstanceId)/$(QueueId)/max-contacts"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/queues/$(InstanceId)/$(QueueId)/max-contacts"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_queue_max_contacts( InstanceId, QueueId, @@ -11389,16 +11202,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the queue. - `"Name"`: The name of the queue. """ -function update_queue_name( - InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connect( +update_queue_name(InstanceId, QueueId; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "POST", "/queues/$(InstanceId)/$(QueueId)/name"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_queue_name( InstanceId, QueueId, @@ -11440,20 +11250,18 @@ group, see Allow or Deny queue API actions for phone numbers in a replica Region - `queue_id`: The identifier for the queue. """ -function update_queue_outbound_caller_config( +update_queue_outbound_caller_config( InstanceId, OutboundCallerConfig, QueueId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/queues/$(InstanceId)/$(QueueId)/outbound-caller-config", + Dict{String,Any}("OutboundCallerConfig" => OutboundCallerConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/queues/$(InstanceId)/$(QueueId)/outbound-caller-config", - Dict{String,Any}("OutboundCallerConfig" => OutboundCallerConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_queue_outbound_caller_config( InstanceId, OutboundCallerConfig, @@ -11490,17 +11298,15 @@ status of the queue. - `status`: The status of the queue. """ -function update_queue_status( +update_queue_status( InstanceId, QueueId, Status; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/queues/$(InstanceId)/$(QueueId)/status", + Dict{String,Any}("Status" => Status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/queues/$(InstanceId)/$(QueueId)/status", - Dict{String,Any}("Status" => Status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_queue_status( InstanceId, QueueId, @@ -11531,20 +11337,18 @@ Updates the configuration settings for the specified quick connect. - `quick_connect_id`: The identifier for the quick connect. """ -function update_quick_connect_config( +update_quick_connect_config( InstanceId, QuickConnectConfig, QuickConnectId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/quick-connects/$(InstanceId)/$(QuickConnectId)/config", + Dict{String,Any}("QuickConnectConfig" => QuickConnectConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/quick-connects/$(InstanceId)/$(QuickConnectId)/config", - Dict{String,Any}("QuickConnectConfig" => QuickConnectConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_quick_connect_config( InstanceId, QuickConnectConfig, @@ -11582,16 +11386,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the quick connect. - `"Name"`: The name of the quick connect. """ -function update_quick_connect_name( +update_quick_connect_name( InstanceId, QuickConnectId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/quick-connects/$(InstanceId)/$(QuickConnectId)/name"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/quick-connects/$(InstanceId)/$(QuickConnectId)/name"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_quick_connect_name( InstanceId, QuickConnectId, @@ -11623,20 +11425,18 @@ time since their last inbound contact or longest idle time. - `routing_profile_id`: The identifier of the routing profile. """ -function update_routing_profile_agent_availability_timer( +update_routing_profile_agent_availability_timer( AgentAvailabilityTimer, InstanceId, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/agent-availability-timer", + Dict{String,Any}("AgentAvailabilityTimer" => AgentAvailabilityTimer); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/agent-availability-timer", - Dict{String,Any}("AgentAvailabilityTimer" => AgentAvailabilityTimer); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_routing_profile_agent_availability_timer( AgentAvailabilityTimer, InstanceId, @@ -11674,20 +11474,18 @@ routing profile. - `routing_profile_id`: The identifier of the routing profile. """ -function update_routing_profile_concurrency( +update_routing_profile_concurrency( InstanceId, MediaConcurrencies, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/concurrency", + Dict{String,Any}("MediaConcurrencies" => MediaConcurrencies); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/concurrency", - Dict{String,Any}("MediaConcurrencies" => MediaConcurrencies); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_routing_profile_concurrency( InstanceId, MediaConcurrencies, @@ -11721,20 +11519,18 @@ Updates the default outbound queue of a routing profile. - `routing_profile_id`: The identifier of the routing profile. """ -function update_routing_profile_default_outbound_queue( +update_routing_profile_default_outbound_queue( DefaultOutboundQueueId, InstanceId, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/default-outbound-queue", + Dict{String,Any}("DefaultOutboundQueueId" => DefaultOutboundQueueId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/default-outbound-queue", - Dict{String,Any}("DefaultOutboundQueueId" => DefaultOutboundQueueId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_routing_profile_default_outbound_queue( DefaultOutboundQueueId, InstanceId, @@ -11775,16 +11571,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters. - `"Name"`: The name of the routing profile. Must not be more than 127 characters. """ -function update_routing_profile_name( +update_routing_profile_name( InstanceId, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/name"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/name"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_routing_profile_name( InstanceId, RoutingProfileId, @@ -11814,20 +11608,18 @@ Updates the properties associated with a set of queues for a routing profile. - `routing_profile_id`: The identifier of the routing profile. """ -function update_routing_profile_queues( +update_routing_profile_queues( InstanceId, QueueConfigs, RoutingProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/queues", + Dict{String,Any}("QueueConfigs" => QueueConfigs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/routing-profiles/$(InstanceId)/$(RoutingProfileId)/queues", - Dict{String,Any}("QueueConfigs" => QueueConfigs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_routing_profile_queues( InstanceId, QueueConfigs, @@ -11865,7 +11657,7 @@ to code conditions for the rule. - `rule_id`: A unique identifier for the rule. """ -function update_rule( +update_rule( Actions, Function, InstanceId, @@ -11873,20 +11665,18 @@ function update_rule( PublishStatus, RuleId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "PUT", + "/rules/$(InstanceId)/$(RuleId)", + Dict{String,Any}( + "Actions" => Actions, + "Function" => Function, + "Name" => Name, + "PublishStatus" => PublishStatus, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "PUT", - "/rules/$(InstanceId)/$(RuleId)", - Dict{String,Any}( - "Actions" => Actions, - "Function" => Function, - "Name" => Name, - "PublishStatus" => PublishStatus, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule( Actions, Function, @@ -11921,7 +11711,9 @@ end update_security_profile(instance_id, security_profile_id) update_security_profile(instance_id, security_profile_id, params::Dict{String,<:Any}) -Updates a security profile. +Updates a security profile. For information about security profiles, see Security Profiles +in the Amazon Connect Administrator Guide. For a mapping of the API name and user interface +name of the security profile permissions, see List of security profile permissions. # Arguments - `instance_id`: The identifier of the Amazon Connect instance. You can find the instance @@ -11943,16 +11735,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagRestrictedResources"`: The list of resources that a security profile applies tag restrictions to in Amazon Connect. """ -function update_security_profile( +update_security_profile( InstanceId, SecurityProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/security-profiles/$(InstanceId)/$(SecurityProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/security-profiles/$(InstanceId)/$(SecurityProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_security_profile( InstanceId, SecurityProfileId, @@ -11995,16 +11785,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created. """ -function update_task_template( +update_task_template( InstanceId, TaskTemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/instance/$(InstanceId)/task/template/$(TaskTemplateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/instance/$(InstanceId)/task/template/$(TaskTemplateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_task_template( InstanceId, TaskTemplateId, @@ -12044,14 +11832,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys should be used to sign in agents in to both the instance and its replica(s). - `"TelephonyConfig"`: The distribution of traffic between the instance and its replica(s). """ -function update_traffic_distribution(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return connect( +update_traffic_distribution(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + connect( "PUT", "/traffic-distribution/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_traffic_distribution( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12079,16 +11866,14 @@ Assigns the specified hierarchy group to the specified user. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"HierarchyGroupId"`: The identifier of the hierarchy group. """ -function update_user_hierarchy( +update_user_hierarchy( InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/hierarchy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/hierarchy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_hierarchy( InstanceId, UserId, @@ -12117,17 +11902,15 @@ Updates the name of the user hierarchy group. - `name`: The name of the hierarchy group. Must not be more than 100 characters. """ -function update_user_hierarchy_group_name( +update_user_hierarchy_group_name( HierarchyGroupId, InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/user-hierarchy-groups/$(InstanceId)/$(HierarchyGroupId)/name", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/user-hierarchy-groups/$(InstanceId)/$(HierarchyGroupId)/name", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_hierarchy_group_name( HierarchyGroupId, InstanceId, @@ -12156,17 +11939,15 @@ Updates the user hierarchy structure: add, remove, and rename user hierarchy lev ID in the Amazon Resource Name (ARN) of the instance. """ -function update_user_hierarchy_structure( +update_user_hierarchy_structure( HierarchyStructure, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/user-hierarchy-structure/$(InstanceId)", + Dict{String,Any}("HierarchyStructure" => HierarchyStructure); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/user-hierarchy-structure/$(InstanceId)", - Dict{String,Any}("HierarchyStructure" => HierarchyStructure); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_hierarchy_structure( HierarchyStructure, InstanceId, @@ -12204,17 +11985,15 @@ Practices for Security Profiles in the Amazon Connect Administrator Guide. - `user_id`: The identifier of the user account. """ -function update_user_identity_info( +update_user_identity_info( IdentityInfo, InstanceId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/identity-info", + Dict{String,Any}("IdentityInfo" => IdentityInfo); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/identity-info", - Dict{String,Any}("IdentityInfo" => IdentityInfo); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_identity_info( IdentityInfo, InstanceId, @@ -12246,17 +12025,15 @@ Updates the phone configuration settings for the specified user. - `user_id`: The identifier of the user account. """ -function update_user_phone_config( +update_user_phone_config( InstanceId, PhoneConfig, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/phone-config", + Dict{String,Any}("PhoneConfig" => PhoneConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/phone-config", - Dict{String,Any}("PhoneConfig" => PhoneConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_phone_config( InstanceId, PhoneConfig, @@ -12289,20 +12066,18 @@ Updates the properties associated with the proficiencies of a user. first be associated to the user. You can do this using AssociateUserProficiencies API. """ -function update_user_proficiencies( +update_user_proficiencies( InstanceId, UserId, UserProficiencies; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/proficiencies", + Dict{String,Any}("UserProficiencies" => UserProficiencies); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/proficiencies", - Dict{String,Any}("UserProficiencies" => UserProficiencies); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_proficiencies( InstanceId, UserId, @@ -12336,17 +12111,15 @@ Assigns the specified routing profile to the specified user. - `user_id`: The identifier of the user account. """ -function update_user_routing_profile( +update_user_routing_profile( InstanceId, RoutingProfileId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/routing-profile", + Dict{String,Any}("RoutingProfileId" => RoutingProfileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/routing-profile", - Dict{String,Any}("RoutingProfileId" => RoutingProfileId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_routing_profile( InstanceId, RoutingProfileId, @@ -12380,20 +12153,18 @@ Assigns the specified security profiles to the specified user. - `user_id`: The identifier of the user account. """ -function update_user_security_profiles( +update_user_security_profiles( InstanceId, SecurityProfileIds, UserId; aws_config::AbstractAWSConfig=current_aws_config(), +) = connect( + "POST", + "/users/$(InstanceId)/$(UserId)/security-profiles", + Dict{String,Any}("SecurityProfileIds" => SecurityProfileIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/users/$(InstanceId)/$(UserId)/security-profiles", - Dict{String,Any}("SecurityProfileIds" => SecurityProfileIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_security_profiles( InstanceId, SecurityProfileIds, @@ -12434,17 +12205,15 @@ be updated, but the LATEST alias' content will only be updated if Status is PUBL - `view_id`: The identifier of the view. Both ViewArn and ViewId can be used. """ -function update_view_content( +update_view_content( Content, InstanceId, Status, ViewId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/views/$(InstanceId)/$(ViewId)", + Dict{String,Any}("Content" => Content, "Status" => Status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/views/$(InstanceId)/$(ViewId)", - Dict{String,Any}("Content" => Content, "Status" => Status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_view_content( Content, InstanceId, @@ -12482,16 +12251,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the view. - `"Name"`: The name of the view. """ -function update_view_metadata( +update_view_metadata( InstanceId, ViewId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect( + "POST", + "/views/$(InstanceId)/$(ViewId)/metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect( - "POST", - "/views/$(InstanceId)/$(ViewId)/metadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_view_metadata( InstanceId, ViewId, diff --git a/src/services/connect_contact_lens.jl b/src/services/connect_contact_lens.jl index 0c39f5a68..8bd9bdf0e 100644 --- a/src/services/connect_contact_lens.jl +++ b/src/services/connect_contact_lens.jl @@ -16,21 +16,19 @@ Provides a list of analysis segments for a real-time analysis session. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"MaxResults"`: The maximimum number of results to return per page. +- `"MaxResults"`: The maximum number of results to return per page. - `"NextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_realtime_contact_analysis_segments( +list_realtime_contact_analysis_segments( ContactId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connect_contact_lens( + "POST", + "/realtime-contact-analysis/analysis-segments", + Dict{String,Any}("ContactId" => ContactId, "InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connect_contact_lens( - "POST", - "/realtime-contact-analysis/analysis-segments", - Dict{String,Any}("ContactId" => ContactId, "InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_realtime_contact_analysis_segments( ContactId, InstanceId, diff --git a/src/services/connectcampaigns.jl b/src/services/connectcampaigns.jl index 9a617ead0..d5512e6c1 100644 --- a/src/services/connectcampaigns.jl +++ b/src/services/connectcampaigns.jl @@ -20,26 +20,24 @@ Creates a campaign for the specified Amazon Connect account. This API is idempot Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: """ -function create_campaign( +create_campaign( connectInstanceId, dialerConfig, name, outboundCallConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = connectcampaigns( + "PUT", + "/campaigns", + Dict{String,Any}( + "connectInstanceId" => connectInstanceId, + "dialerConfig" => dialerConfig, + "name" => name, + "outboundCallConfig" => outboundCallConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "PUT", - "/campaigns", - Dict{String,Any}( - "connectInstanceId" => connectInstanceId, - "dialerConfig" => dialerConfig, - "name" => name, - "outboundCallConfig" => outboundCallConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_campaign( connectInstanceId, dialerConfig, @@ -78,11 +76,9 @@ Deletes a campaign from the specified Amazon Connect account. - `id`: """ -function delete_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( - "DELETE", "/campaigns/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) = connectcampaigns( + "DELETE", "/campaigns/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_campaign( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -105,16 +101,14 @@ Deletes a connect instance config from the specified AWS account. - `connect_instance_id`: """ -function delete_connect_instance_config( +delete_connect_instance_config( connectInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcampaigns( + "DELETE", + "/connect-instance/$(connectInstanceId)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "DELETE", - "/connect-instance/$(connectInstanceId)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_connect_instance_config( connectInstanceId, params::AbstractDict{String}; @@ -139,16 +133,14 @@ Delete the Connect Campaigns onboarding job for the specified Amazon Connect ins - `connect_instance_id`: """ -function delete_instance_onboarding_job( +delete_instance_onboarding_job( connectInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcampaigns( + "DELETE", + "/connect-instance/$(connectInstanceId)/onboarding"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "DELETE", - "/connect-instance/$(connectInstanceId)/onboarding"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_instance_onboarding_job( connectInstanceId, params::AbstractDict{String}; @@ -173,11 +165,10 @@ Describes the specific campaign. - `id`: """ -function describe_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( +describe_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcampaigns( "GET", "/campaigns/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_campaign( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -200,14 +191,13 @@ Get state of a campaign for the specified Amazon Connect account. - `id`: """ -function get_campaign_state(id; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( +get_campaign_state(id; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcampaigns( "GET", "/campaigns/$(id)/state"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_campaign_state( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -230,17 +220,14 @@ Get state of campaigns for the specified Amazon Connect account. - `campaign_ids`: """ -function get_campaign_state_batch( - campaignIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcampaigns( +get_campaign_state_batch(campaignIds; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcampaigns( "POST", "/campaigns-state", Dict{String,Any}("campaignIds" => campaignIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_campaign_state_batch( campaignIds, params::AbstractDict{String}; @@ -267,16 +254,14 @@ Get the specific Connect instance config. - `connect_instance_id`: """ -function get_connect_instance_config( +get_connect_instance_config( connectInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcampaigns( + "GET", + "/connect-instance/$(connectInstanceId)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "GET", - "/connect-instance/$(connectInstanceId)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_connect_instance_config( connectInstanceId, params::AbstractDict{String}; @@ -301,16 +286,14 @@ Get the specific instance onboarding job status. - `connect_instance_id`: """ -function get_instance_onboarding_job_status( +get_instance_onboarding_job_status( connectInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcampaigns( + "GET", + "/connect-instance/$(connectInstanceId)/onboarding"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "GET", - "/connect-instance/$(connectInstanceId)/onboarding"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_onboarding_job_status( connectInstanceId, params::AbstractDict{String}; @@ -337,11 +320,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: - `"nextToken"`: """ -function list_campaigns(; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( - "POST", "/campaigns-summary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_campaigns(; aws_config::AbstractAWSConfig=current_aws_config()) = connectcampaigns( + "POST", "/campaigns-summary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_campaigns( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -364,11 +345,10 @@ List tags for a resource. - `arn`: """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcampaigns( "GET", "/tags/$(arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -391,14 +371,12 @@ Pauses a campaign for the specified Amazon Connect account. - `id`: """ -function pause_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( - "POST", - "/campaigns/$(id)/pause"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +pause_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) = connectcampaigns( + "POST", + "/campaigns/$(id)/pause"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function pause_campaign( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -423,17 +401,15 @@ idempotent. - `id`: """ -function put_dial_request_batch( +put_dial_request_batch( dialRequests, id; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcampaigns( + "PUT", + "/campaigns/$(id)/dial-requests", + Dict{String,Any}("dialRequests" => dialRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "PUT", - "/campaigns/$(id)/dial-requests", - Dict{String,Any}("dialRequests" => dialRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_dial_request_batch( dialRequests, id, @@ -461,14 +437,12 @@ Stops a campaign for the specified Amazon Connect account. - `id`: """ -function resume_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( - "POST", - "/campaigns/$(id)/resume"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +resume_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) = connectcampaigns( + "POST", + "/campaigns/$(id)/resume"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function resume_campaign( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -491,14 +465,12 @@ Starts a campaign for the specified Amazon Connect account. - `id`: """ -function start_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( - "POST", - "/campaigns/$(id)/start"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) = connectcampaigns( + "POST", + "/campaigns/$(id)/start"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_campaign( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -522,17 +494,15 @@ Onboard the specific Amazon Connect instance to Connect Campaigns. - `encryption_config`: """ -function start_instance_onboarding_job( +start_instance_onboarding_job( connectInstanceId, encryptionConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcampaigns( + "PUT", + "/connect-instance/$(connectInstanceId)/onboarding", + Dict{String,Any}("encryptionConfig" => encryptionConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "PUT", - "/connect-instance/$(connectInstanceId)/onboarding", - Dict{String,Any}("encryptionConfig" => encryptionConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_instance_onboarding_job( connectInstanceId, encryptionConfig, @@ -562,14 +532,12 @@ Stops a campaign for the specified Amazon Connect account. - `id`: """ -function stop_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( - "POST", - "/campaigns/$(id)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_campaign(id; aws_config::AbstractAWSConfig=current_aws_config()) = connectcampaigns( + "POST", + "/campaigns/$(id)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_campaign( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -593,15 +561,14 @@ Tag a resource. - `tags`: """ -function tag_resource(arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( +tag_resource(arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcampaigns( "POST", "/tags/$(arn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( arn, tags, @@ -628,15 +595,14 @@ Untag a resource. - `tag_keys`: """ -function untag_resource(arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( +untag_resource(arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcampaigns( "DELETE", "/tags/$(arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( arn, tagKeys, @@ -663,17 +629,15 @@ Updates the dialer config of a campaign. This API is idempotent. - `id`: """ -function update_campaign_dialer_config( +update_campaign_dialer_config( dialerConfig, id; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcampaigns( + "POST", + "/campaigns/$(id)/dialer-config", + Dict{String,Any}("dialerConfig" => dialerConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "POST", - "/campaigns/$(id)/dialer-config", - Dict{String,Any}("dialerConfig" => dialerConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_campaign_dialer_config( dialerConfig, id, @@ -702,15 +666,14 @@ Updates the name of a campaign. This API is idempotent. - `name`: """ -function update_campaign_name(id, name; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcampaigns( +update_campaign_name(id, name; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcampaigns( "POST", "/campaigns/$(id)/name", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_campaign_name( id, name, @@ -741,16 +704,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"connectContactFlowId"`: - `"connectSourcePhoneNumber"`: """ -function update_campaign_outbound_call_config( +update_campaign_outbound_call_config( id; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcampaigns( + "POST", + "/campaigns/$(id)/outbound-call-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcampaigns( - "POST", - "/campaigns/$(id)/outbound-call-config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_campaign_outbound_call_config( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/connectcases.jl b/src/services/connectcases.jl index 95955b846..50985a37e 100644 --- a/src/services/connectcases.jl +++ b/src/services/connectcases.jl @@ -15,17 +15,14 @@ Returns the description for the list of fields in the request parameters. - `fields`: A list of unique field identifiers. """ -function batch_get_field( - domainId, fields; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +batch_get_field(domainId, fields; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/fields-batch", Dict{String,Any}("fields" => fields); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_field( domainId, fields, @@ -53,17 +50,15 @@ Creates and updates a set of field options for a single select field in a Cases - `options`: A list of FieldOption objects. """ -function batch_put_field_options( +batch_put_field_options( domainId, fieldId, options; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcases( + "PUT", + "/domains/$(domainId)/fields/$(fieldId)/options", + Dict{String,Any}("options" => options); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcases( - "PUT", - "/domains/$(domainId)/fields/$(fieldId)/options", - Dict{String,Any}("options" => options); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_field_options( domainId, fieldId, @@ -108,19 +103,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys field. For more information about idempotency, see Making retries safe with idempotent APIs. - `"performedBy"`: """ -function create_case( +create_case( domainId, fields, templateId; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcases( + "POST", + "/domains/$(domainId)/cases", + Dict{String,Any}( + "fields" => fields, "templateId" => templateId, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcases( - "POST", - "/domains/$(domainId)/cases", - Dict{String,Any}( - "fields" => fields, "templateId" => templateId, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_case( domainId, fields, @@ -162,15 +155,13 @@ associate the Cases domain. For more information, see Onboard to Cases. </im account. """ -function create_domain(name; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "POST", - "/domains", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_domain(name; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "POST", + "/domains", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_domain( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -199,17 +190,14 @@ Creates a field in the Cases domain. This field is used to define the case objec Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the field. """ -function create_field( - domainId, name, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +create_field(domainId, name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/fields", Dict{String,Any}("name" => name, "type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_field( domainId, name, @@ -244,17 +232,14 @@ configurable. - `name`: The name of the layout. It must be unique for the Cases domain. """ -function create_layout( - content, domainId, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +create_layout(content, domainId, name; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/layouts", Dict{String,Any}("content" => content, "name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_layout( content, domainId, @@ -297,17 +282,15 @@ must also have DescribeUser permission on the ARN of the user that you provide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"performedBy"`: Represents the creator of the related item. """ -function create_related_item( +create_related_item( caseId, content, domainId, type; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcases( + "POST", + "/domains/$(domainId)/cases/$(caseId)/related-items/", + Dict{String,Any}("content" => content, "type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcases( - "POST", - "/domains/$(domainId)/cases/$(caseId)/related-items/", - Dict{String,Any}("content" => content, "type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_related_item( caseId, content, @@ -352,15 +335,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys successfully created with this template. - `"status"`: The status of the template. """ -function create_template(domainId, name; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( +create_template(domainId, name; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/templates", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_template( domainId, name, @@ -390,14 +372,12 @@ ciation.html">DeleteIntegrationAssociation</a>.</p> </not - `domain_id`: The unique identifier of the Cases domain. """ -function delete_domain(domainId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "DELETE", - "/domains/$(domainId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_domain(domainId; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "DELETE", + "/domains/$(domainId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_domain( domainId, params::AbstractDict{String}; @@ -438,14 +418,13 @@ IDs for deleted fields. - `field_id`: Unique identifier of the field. """ -function delete_field(domainId, fieldId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( +delete_field(domainId, fieldId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "DELETE", "/domains/$(domainId)/fields/$(fieldId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_field( domainId, fieldId, @@ -479,16 +458,13 @@ response.</p> </li> </ul> - `layout_id`: The unique identifier of the layout. """ -function delete_layout( - domainId, layoutId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +delete_layout(domainId, layoutId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "DELETE", "/domains/$(domainId)/layouts/$(layoutId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_layout( domainId, layoutId, @@ -521,16 +497,13 @@ the template by calling <code>GetTemplate</code>.</p> </li& - `template_id`: A unique identifier of a template. """ -function delete_template( - domainId, templateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +delete_template(domainId, templateId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "DELETE", "/domains/$(domainId)/templates/$(templateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_template( domainId, templateId, @@ -562,17 +535,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function get_case( - caseId, domainId, fields; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +get_case(caseId, domainId, fields; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/cases/$(caseId)", Dict{String,Any}("fields" => fields); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_case( caseId, domainId, @@ -606,16 +576,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function get_case_audit_events( +get_case_audit_events( caseId, domainId; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcases( + "POST", + "/domains/$(domainId)/cases/$(caseId)/audit-history"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcases( - "POST", - "/domains/$(domainId)/cases/$(caseId)/audit-history"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_case_audit_events( caseId, domainId, @@ -641,16 +609,13 @@ Returns the case event publishing configuration. - `domain_id`: The unique identifier of the Cases domain. """ -function get_case_event_configuration( - domainId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +get_case_event_configuration(domainId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/case-event-configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_case_event_configuration( domainId, params::AbstractDict{String}; @@ -675,14 +640,12 @@ Returns information about a specific domain if it exists. - `domain_id`: The unique identifier of the Cases domain. """ -function get_domain(domainId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "POST", - "/domains/$(domainId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_domain(domainId; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "POST", + "/domains/$(domainId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_domain( domainId, params::AbstractDict{String}; @@ -708,14 +671,13 @@ Returns the details for the requested layout. - `layout_id`: The unique identifier of the layout. """ -function get_layout(domainId, layoutId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( +get_layout(domainId, layoutId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/layouts/$(layoutId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_layout( domainId, layoutId, @@ -742,16 +704,13 @@ Returns the details for the requested template. - `template_id`: A unique identifier of a template. """ -function get_template( - domainId, templateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +get_template(domainId, templateId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/templates/$(templateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_template( domainId, templateId, @@ -783,17 +742,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_cases_for_contact( +list_cases_for_contact( contactArn, domainId; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcases( + "POST", + "/domains/$(domainId)/list-cases-for-contact", + Dict{String,Any}("contactArn" => contactArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcases( - "POST", - "/domains/$(domainId)/list-cases-for-contact", - Dict{String,Any}("contactArn" => contactArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_cases_for_contact( contactArn, domainId, @@ -824,11 +781,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "POST", "/domains-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "POST", "/domains-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -858,16 +813,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"values"`: A list of FieldOption values to filter on for ListFieldOptions. """ -function list_field_options( - domainId, fieldId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +list_field_options(domainId, fieldId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/fields/$(fieldId)/options-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_field_options( domainId, fieldId, @@ -898,14 +850,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_fields(domainId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "POST", - "/domains/$(domainId)/fields-list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_fields(domainId; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "POST", + "/domains/$(domainId)/fields-list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_fields( domainId, params::AbstractDict{String}; @@ -936,14 +886,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_layouts(domainId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "POST", - "/domains/$(domainId)/layouts-list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_layouts(domainId; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "POST", + "/domains/$(domainId)/layouts-list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_layouts( domainId, params::AbstractDict{String}; @@ -968,11 +916,10 @@ Lists tags for a resource. - `arn`: The Amazon Resource Name (ARN) """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "GET", "/tags/$(arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1002,14 +949,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response in the next request to retrieve the next set of results. - `"status"`: A list of status values to filter on. """ -function list_templates(domainId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "POST", - "/domains/$(domainId)/templates-list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_templates(domainId; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "POST", + "/domains/$(domainId)/templates-list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_templates( domainId, params::AbstractDict{String}; @@ -1037,17 +982,15 @@ event message, see Create case fields in the Amazon Connect Administrator Guide what data is delivered. """ -function put_case_event_configuration( +put_case_event_configuration( domainId, eventBridge; aws_config::AbstractAWSConfig=current_aws_config() +) = connectcases( + "PUT", + "/domains/$(domainId)/case-event-configuration", + Dict{String,Any}("eventBridge" => eventBridge); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectcases( - "PUT", - "/domains/$(domainId)/case-event-configuration", - Dict{String,Any}("eventBridge" => eventBridge); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_case_event_configuration( domainId, eventBridge, @@ -1089,14 +1032,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sorts"`: A list of sorts where each sort specifies a field and their sort order to be applied to the results. """ -function search_cases(domainId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "POST", - "/domains/$(domainId)/cases-search"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_cases(domainId; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "POST", + "/domains/$(domainId)/cases-search"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_cases( domainId, params::AbstractDict{String}; @@ -1129,16 +1070,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function search_related_items( - caseId, domainId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +search_related_items(caseId, domainId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "POST", "/domains/$(domainId)/cases/$(caseId)/related-items-search"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_related_items( caseId, domainId, @@ -1166,15 +1104,13 @@ Adds tags to a resource. organize, track, or control access for this resource. """ -function tag_resource(arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( - "POST", - "/tags/$(arn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = connectcases( + "POST", + "/tags/$(arn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( arn, tags, @@ -1201,15 +1137,14 @@ Untags a resource. - `tag_keys`: List of tag keys. """ -function untag_resource(arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( +untag_resource(arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "DELETE", "/tags/$(arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( arn, tagKeys, @@ -1245,17 +1180,14 @@ successful, the service sends back an HTTP 200 response with an empty HTTP body. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"performedBy"`: """ -function update_case( - caseId, domainId, fields; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +update_case(caseId, domainId, fields; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "PUT", "/domains/$(domainId)/cases/$(caseId)", Dict{String,Any}("fields" => fields); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_case( caseId, domainId, @@ -1287,14 +1219,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of a field. - `"name"`: The name of the field. """ -function update_field(domainId, fieldId; aws_config::AbstractAWSConfig=current_aws_config()) - return connectcases( +update_field(domainId, fieldId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "PUT", "/domains/$(domainId)/fields/$(fieldId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_field( domainId, fieldId, @@ -1329,16 +1260,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the fields. - `"name"`: The name of the layout. It must be unique per domain. """ -function update_layout( - domainId, layoutId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +update_layout(domainId, layoutId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "PUT", "/domains/$(domainId)/layouts/$(layoutId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_layout( domainId, layoutId, @@ -1376,16 +1304,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys successfully created with this template. - `"status"`: The status of the template. """ -function update_template( - domainId, templateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectcases( +update_template(domainId, templateId; aws_config::AbstractAWSConfig=current_aws_config()) = + connectcases( "PUT", "/domains/$(domainId)/templates/$(templateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_template( domainId, templateId, diff --git a/src/services/connectparticipant.jl b/src/services/connectparticipant.jl index 201e984f1..ed5b74d07 100644 --- a/src/services/connectparticipant.jl +++ b/src/services/connectparticipant.jl @@ -22,24 +22,22 @@ Signature Version 4 authentication. - `x-_amz-_bearer`: The authentication token associated with the participant's connection. """ -function complete_attachment_upload( +complete_attachment_upload( AttachmentIds, ClientToken, X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = connectparticipant( + "POST", + "/participant/complete-attachment-upload", + Dict{String,Any}( + "AttachmentIds" => AttachmentIds, + "ClientToken" => ClientToken, + "headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectparticipant( - "POST", - "/participant/complete-attachment-upload", - Dict{String,Any}( - "AttachmentIds" => AttachmentIds, - "ClientToken" => ClientToken, - "headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_attachment_upload( AttachmentIds, ClientToken, @@ -99,17 +97,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: Type of connection information required. If you need CONNECTION_CREDENTIALS along with marking participant as connected, pass CONNECTION_CREDENTIALS in Type. """ -function create_participant_connection( +create_participant_connection( X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = connectparticipant( + "POST", + "/participant/connection", + Dict{String,Any}("headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectparticipant( - "POST", - "/participant/connection", - Dict{String,Any}("headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_participant_connection( X_Amz_Bearer, params::AbstractDict{String}; @@ -144,17 +140,14 @@ Retrieves the view for the specified view token. - `x-_amz-_bearer`: The connection token. """ -function describe_view( - ViewToken, X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectparticipant( +describe_view(ViewToken, X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config()) = + connectparticipant( "GET", "/participant/views/$(ViewToken)", Dict{String,Any}("headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_view( ViewToken, X_Amz_Bearer, @@ -195,10 +188,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function disconnect_participant( - X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectparticipant( +disconnect_participant(X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config()) = + connectparticipant( "POST", "/participant/disconnect", Dict{String,Any}( @@ -208,7 +199,6 @@ function disconnect_participant( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disconnect_participant( X_Amz_Bearer, params::AbstractDict{String}; @@ -246,20 +236,18 @@ Version 4 authentication. - `x-_amz-_bearer`: The authentication token associated with the participant's connection. """ -function get_attachment( +get_attachment( AttachmentId, X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = connectparticipant( + "POST", + "/participant/attachment", + Dict{String,Any}( + "AttachmentId" => AttachmentId, + "headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectparticipant( - "POST", - "/participant/attachment", - Dict{String,Any}( - "AttachmentId" => AttachmentId, - "headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_attachment( AttachmentId, X_Amz_Bearer, @@ -316,15 +304,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for the records. Default: DESCENDING. - `"StartPosition"`: A filtering option for where to start. """ -function get_transcript(X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config()) - return connectparticipant( +get_transcript(X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config()) = + connectparticipant( "POST", "/participant/transcript", Dict{String,Any}("headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_transcript( X_Amz_Bearer, params::AbstractDict{String}; @@ -377,10 +364,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys related to message receipts, this is supported in the form of a JSON string. Sample Content: \"{\"messageId\":\"11111111-aaaa-bbbb-cccc-EXAMPLE01234\"}\" """ -function send_event( - ContentType, X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config() -) - return connectparticipant( +send_event(ContentType, X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config()) = + connectparticipant( "POST", "/participant/event", Dict{String,Any}( @@ -391,7 +376,6 @@ function send_event( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_event( ContentType, X_Amz_Bearer, @@ -441,22 +425,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. """ -function send_message( +send_message( Content, ContentType, X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config() +) = connectparticipant( + "POST", + "/participant/message", + Dict{String,Any}( + "Content" => Content, + "ContentType" => ContentType, + "ClientToken" => string(uuid4()), + "headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectparticipant( - "POST", - "/participant/message", - Dict{String,Any}( - "Content" => Content, - "ContentType" => ContentType, - "ClientToken" => string(uuid4()), - "headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_message( Content, ContentType, @@ -503,28 +485,26 @@ Connect Participant Service APIs do not use Signature Version 4 authentication. - `x-_amz-_bearer`: The authentication token associated with the participant's connection. """ -function start_attachment_upload( +start_attachment_upload( AttachmentName, AttachmentSizeInBytes, ClientToken, ContentType, X_Amz_Bearer; aws_config::AbstractAWSConfig=current_aws_config(), +) = connectparticipant( + "POST", + "/participant/start-attachment-upload", + Dict{String,Any}( + "AttachmentName" => AttachmentName, + "AttachmentSizeInBytes" => AttachmentSizeInBytes, + "ClientToken" => ClientToken, + "ContentType" => ContentType, + "headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return connectparticipant( - "POST", - "/participant/start-attachment-upload", - Dict{String,Any}( - "AttachmentName" => AttachmentName, - "AttachmentSizeInBytes" => AttachmentSizeInBytes, - "ClientToken" => ClientToken, - "ContentType" => ContentType, - "headers" => Dict{String,Any}("X-Amz-Bearer" => X_Amz_Bearer), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_attachment_upload( AttachmentName, AttachmentSizeInBytes, diff --git a/src/services/controlcatalog.jl b/src/services/controlcatalog.jl index f60eb47c2..7499aa477 100644 --- a/src/services/controlcatalog.jl +++ b/src/services/controlcatalog.jl @@ -4,6 +4,51 @@ using AWS.AWSServices: controlcatalog using AWS.Compat using AWS.UUIDs +""" + get_control(control_arn) + get_control(control_arn, params::Dict{String,<:Any}) + +Returns details about a specific control, most notably a list of Amazon Web Services +Regions where this control is supported. Input a value for the ControlArn parameter, in ARN +form. GetControl accepts controltower or controlcatalog control ARNs as input. Returns a +controlcatalog ARN format. In the API response, controls that have the value GLOBAL in the +Scope field do not show the DeployableRegions field, because it does not apply. Controls +that have the value REGIONAL in the Scope field return a value for the DeployableRegions +field, as shown in the example. + +# Arguments +- `control_arn`: The Amazon Resource Name (ARN) of the control. It has one of the following + formats: Global format + arn:{PARTITION}:controlcatalog:::control/{CONTROL_CATALOG_OPAQUE_ID} Or Regional format + arn:{PARTITION}:controltower:{REGION}::control/{CONTROL_TOWER_OPAQUE_ID} Here is a more + general pattern that covers Amazon Web Services Control Tower and Control Catalog ARNs: + ^arn:(aws(?:[-a-z]*)?):(controlcatalog|controltower):[a-zA-Z0-9-]*::control/[0-9a-zA-Z_-]+ + +""" +get_control(ControlArn; aws_config::AbstractAWSConfig=current_aws_config()) = + controlcatalog( + "POST", + "/get-control", + Dict{String,Any}("ControlArn" => ControlArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function get_control( + ControlArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return controlcatalog( + "POST", + "/get-control", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("ControlArn" => ControlArn), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_common_controls() list_common_controls(params::Dict{String,<:Any}) @@ -20,17 +65,44 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results on a page or for an API request call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_common_controls(; aws_config::AbstractAWSConfig=current_aws_config()) +list_common_controls(; aws_config::AbstractAWSConfig=current_aws_config()) = controlcatalog( + "POST", "/common-controls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_common_controls( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return controlcatalog( - "POST", "/common-controls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "POST", + "/common-controls", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) end -function list_common_controls( + +""" + list_controls() + list_controls(params::Dict{String,<:Any}) + +Returns a paginated list of all available controls in the Amazon Web Services Control +Catalog library. Allows you to discover available controls. The list of controls is given +as structures of type controlSummary. The ARN is returned in the global controlcatalog +format, as shown in the examples. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results on a page or for an API request call. +- `"nextToken"`: The pagination token that's used to fetch the next set of results. +""" +list_controls(; aws_config::AbstractAWSConfig=current_aws_config()) = controlcatalog( + "POST", "/list-controls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_controls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return controlcatalog( "POST", - "/common-controls", + "/list-controls", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -48,11 +120,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results on a page or for an API request call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return controlcatalog( - "POST", "/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = controlcatalog( + "POST", "/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -77,11 +147,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results on a page or for an API request call. - `"nextToken"`: The pagination token that's used to fetch the next set of results. """ -function list_objectives(; aws_config::AbstractAWSConfig=current_aws_config()) - return controlcatalog( - "POST", "/objectives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_objectives(; aws_config::AbstractAWSConfig=current_aws_config()) = controlcatalog( + "POST", "/objectives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_objectives( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/controltower.jl b/src/services/controltower.jl index a75a0526e..a5195e3cf 100644 --- a/src/services/controltower.jl +++ b/src/services/controltower.jl @@ -20,17 +20,14 @@ configures a landing zone, based on the parameters specified in the manifest JSO Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: Tags to be applied to the landing zone. """ -function create_landing_zone( - manifest, version; aws_config::AbstractAWSConfig=current_aws_config() -) - return controltower( +create_landing_zone(manifest, version; aws_config::AbstractAWSConfig=current_aws_config()) = + controltower( "POST", "/create-landingzone", Dict{String,Any}("manifest" => manifest, "version" => version); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_landing_zone( manifest, version, @@ -64,17 +61,15 @@ Services Control Tower. - `landing_zone_identifier`: The unique identifier of the landing zone. """ -function delete_landing_zone( +delete_landing_zone( landingZoneIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/delete-landingzone", + Dict{String,Any}("landingZoneIdentifier" => landingZoneIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/delete-landingzone", - Dict{String,Any}("landingZoneIdentifier" => landingZoneIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_landing_zone( landingZoneIdentifier, params::AbstractDict{String}; @@ -109,17 +104,15 @@ Amazon Web Services Control Tower User Guide . deactivated, in ARN format. """ -function disable_baseline( +disable_baseline( enabledBaselineIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/disable-baseline", + Dict{String,Any}("enabledBaselineIdentifier" => enabledBaselineIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/disable-baseline", - Dict{String,Any}("enabledBaselineIdentifier" => enabledBaselineIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_baseline( enabledBaselineIdentifier, params::AbstractDict{String}; @@ -144,10 +137,10 @@ end disable_control(control_identifier, target_identifier) disable_control(control_identifier, target_identifier, params::Dict{String,<:Any}) -This API call turns off a control. It starts an asynchronous operation that deletes AWS -resources on the specified organizational unit and the accounts it contains. The resources -will vary according to the control that you specify. For usage examples, see the Amazon -Web Services Control Tower User Guide . +This API call turns off a control. It starts an asynchronous operation that deletes Amazon +Web Services resources on the specified organizational unit and the accounts it contains. +The resources will vary according to the control that you specify. For usage examples, see +the Controls Reference Guide . # Arguments - `control_identifier`: The ARN of the control. Only Strongly recommended and Elective @@ -157,19 +150,17 @@ Web Services Control Tower User Guide . the targetIdentifier, see the overview page. """ -function disable_control( +disable_control( controlIdentifier, targetIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/disable-control", + Dict{String,Any}( + "controlIdentifier" => controlIdentifier, "targetIdentifier" => targetIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/disable-control", - Dict{String,Any}( - "controlIdentifier" => controlIdentifier, "targetIdentifier" => targetIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_control( controlIdentifier, targetIdentifier, @@ -214,24 +205,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is a string and value is a document of any type. - `"tags"`: Tags associated with input to EnableBaseline. """ -function enable_baseline( +enable_baseline( baselineIdentifier, baselineVersion, targetIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = controltower( + "POST", + "/enable-baseline", + Dict{String,Any}( + "baselineIdentifier" => baselineIdentifier, + "baselineVersion" => baselineVersion, + "targetIdentifier" => targetIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/enable-baseline", - Dict{String,Any}( - "baselineIdentifier" => baselineIdentifier, - "baselineVersion" => baselineVersion, - "targetIdentifier" => targetIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_baseline( baselineIdentifier, baselineVersion, @@ -265,7 +254,7 @@ end This API call activates a control. It starts an asynchronous operation that creates Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources created will vary according to the control that you specify. For usage -examples, see the Amazon Web Services Control Tower User Guide . +examples, see the Controls Reference Guide . # Arguments - `control_identifier`: The ARN of the control. Only Strongly recommended and Elective @@ -280,19 +269,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys control when you enable it. - `"tags"`: Tags to be applied to the EnabledControl resource. """ -function enable_control( +enable_control( controlIdentifier, targetIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/enable-control", + Dict{String,Any}( + "controlIdentifier" => controlIdentifier, "targetIdentifier" => targetIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/enable-control", - Dict{String,Any}( - "controlIdentifier" => controlIdentifier, "targetIdentifier" => targetIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_control( controlIdentifier, targetIdentifier, @@ -328,17 +315,14 @@ usage examples, see the Amazon Web Services Control Tower User Guide . - `baseline_identifier`: The ARN of the Baseline resource to be retrieved. """ -function get_baseline( - baselineIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return controltower( +get_baseline(baselineIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + controltower( "POST", "/get-baseline", Dict{String,Any}("baselineIdentifier" => baselineIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_baseline( baselineIdentifier, params::AbstractDict{String}; @@ -371,17 +355,15 @@ Amazon Web Services Control Tower User Guide . (Enable, Disable, Update, Reset). """ -function get_baseline_operation( +get_baseline_operation( operationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/get-baseline-operation", + Dict{String,Any}("operationIdentifier" => operationIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/get-baseline-operation", - Dict{String,Any}("operationIdentifier" => operationIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_baseline_operation( operationIdentifier, params::AbstractDict{String}; @@ -408,24 +390,22 @@ end Returns the status of a particular EnableControl or DisableControl operation. Displays a message in case of error. Details for an operation are available for 90 days. For usage -examples, see the Amazon Web Services Control Tower User Guide . +examples, see the Controls Reference Guide . # Arguments - `operation_identifier`: The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days. """ -function get_control_operation( +get_control_operation( operationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/get-control-operation", + Dict{String,Any}("operationIdentifier" => operationIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/get-control-operation", - Dict{String,Any}("operationIdentifier" => operationIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_control_operation( operationIdentifier, params::AbstractDict{String}; @@ -457,17 +437,15 @@ Retrieve details of an EnabledBaseline resource by specifying its identifier. retrieved, in ARN format. """ -function get_enabled_baseline( +get_enabled_baseline( enabledBaselineIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/get-enabled-baseline", + Dict{String,Any}("enabledBaselineIdentifier" => enabledBaselineIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/get-enabled-baseline", - Dict{String,Any}("enabledBaselineIdentifier" => enabledBaselineIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_enabled_baseline( enabledBaselineIdentifier, params::AbstractDict{String}; @@ -492,24 +470,22 @@ end get_enabled_control(enabled_control_identifier) get_enabled_control(enabled_control_identifier, params::Dict{String,<:Any}) -Retrieves details about an enabled control. For usage examples, see the Amazon Web -Services Control Tower User Guide . +Retrieves details about an enabled control. For usage examples, see the Controls Reference +Guide . # Arguments - `enabled_control_identifier`: The controlIdentifier of the enabled control. """ -function get_enabled_control( +get_enabled_control( enabledControlIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/get-enabled-control", + Dict{String,Any}("enabledControlIdentifier" => enabledControlIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/get-enabled-control", - Dict{String,Any}("enabledControlIdentifier" => enabledControlIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_enabled_control( enabledControlIdentifier, params::AbstractDict{String}; @@ -540,17 +516,15 @@ Returns details about the landing zone. Displays a message in case of error. - `landing_zone_identifier`: The unique identifier of the landing zone. """ -function get_landing_zone( +get_landing_zone( landingZoneIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/get-landingzone", + Dict{String,Any}("landingZoneIdentifier" => landingZoneIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/get-landingzone", - Dict{String,Any}("landingZoneIdentifier" => landingZoneIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_landing_zone( landingZoneIdentifier, params::AbstractDict{String}; @@ -582,17 +556,15 @@ available for 90 days. - `operation_identifier`: A unique identifier assigned to a landing zone operation. """ -function get_landing_zone_operation( +get_landing_zone_operation( operationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/get-landingzone-operation", + Dict{String,Any}("operationIdentifier" => operationIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/get-landingzone-operation", - Dict{String,Any}("operationIdentifier" => operationIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_landing_zone_operation( operationIdentifier, params::AbstractDict{String}; @@ -625,11 +597,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be shown. - `"nextToken"`: A pagination token. """ -function list_baselines(; aws_config::AbstractAWSConfig=current_aws_config()) - return controltower( - "POST", "/list-baselines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_baselines(; aws_config::AbstractAWSConfig=current_aws_config()) = controltower( + "POST", "/list-baselines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_baselines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -646,7 +616,8 @@ end list_control_operations() list_control_operations(params::Dict{String,<:Any}) -Provides a list of operations in progress or queued. +Provides a list of operations in progress or queued. For usage examples, see +ListControlOperation examples. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -655,14 +626,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be shown. - `"nextToken"`: A pagination token. """ -function list_control_operations(; aws_config::AbstractAWSConfig=current_aws_config()) - return controltower( +list_control_operations(; aws_config::AbstractAWSConfig=current_aws_config()) = + controltower( "POST", "/list-control-operations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_control_operations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -690,14 +660,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be shown. - `"nextToken"`: A pagination token. """ -function list_enabled_baselines(; aws_config::AbstractAWSConfig=current_aws_config()) - return controltower( - "POST", - "/list-enabled-baselines"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_enabled_baselines(; aws_config::AbstractAWSConfig=current_aws_config()) = controltower( + "POST", + "/list-enabled-baselines"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_enabled_baselines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -715,12 +683,12 @@ end list_enabled_controls(params::Dict{String,<:Any}) Lists the controls enabled by Amazon Web Services Control Tower on the specified -organizational unit and the accounts it contains. For usage examples, see the Amazon Web -Services Control Tower User Guide . +organizational unit and the accounts it contains. For usage examples, see the Controls +Reference Guide . # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"filter"`: An input filter for the ListCEnabledControls API that lets you select the +- `"filter"`: An input filter for the ListEnabledControls API that lets you select the types of control operations to view. - `"maxResults"`: How many results to return per API call. - `"nextToken"`: The token to continue the list from a previous API call with the same @@ -728,20 +696,52 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"targetIdentifier"`: The ARN of the organizational unit. For information on how to find the targetIdentifier, see the overview page. """ -function list_enabled_controls(; aws_config::AbstractAWSConfig=current_aws_config()) +list_enabled_controls(; aws_config::AbstractAWSConfig=current_aws_config()) = controltower( + "POST", + "/list-enabled-controls"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_enabled_controls( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return controltower( "POST", - "/list-enabled-controls"; + "/list-enabled-controls", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function list_enabled_controls( + +""" + list_landing_zone_operations() + list_landing_zone_operations(params::Dict{String,<:Any}) + +Lists all landing zone operations from the past 90 days. Results are sorted by time, with +the most recent operation first. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"filter"`: An input filter for the ListLandingZoneOperations API that lets you select + the types of landing zone operations to view. +- `"maxResults"`: How many results to return per API call. +- `"nextToken"`: The token to continue the list from a previous API call with the same + parameters. +""" +list_landing_zone_operations(; aws_config::AbstractAWSConfig=current_aws_config()) = + controltower( + "POST", + "/list-landingzone-operations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_landing_zone_operations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return controltower( "POST", - "/list-enabled-controls", + "/list-landingzone-operations", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -762,11 +762,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to continue the list from a previous API call with the same parameters. """ -function list_landing_zones(; aws_config::AbstractAWSConfig=current_aws_config()) - return controltower( - "POST", "/list-landingzones"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_landing_zones(; aws_config::AbstractAWSConfig=current_aws_config()) = controltower( + "POST", "/list-landingzones"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_landing_zones( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -783,23 +781,20 @@ end list_tags_for_resource(resource_arn) list_tags_for_resource(resource_arn, params::Dict{String,<:Any}) -Returns a list of tags associated with the resource. For usage examples, see the Amazon -Web Services Control Tower User Guide . +Returns a list of tags associated with the resource. For usage examples, see the Controls +Reference Guide . # Arguments - `resource_arn`: The ARN of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return controltower( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + controltower( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -827,17 +822,15 @@ Amazon Web Services Control Tower User Guide . re-enabled, in ARN format. """ -function reset_enabled_baseline( +reset_enabled_baseline( enabledBaselineIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/reset-enabled-baseline", + Dict{String,Any}("enabledBaselineIdentifier" => enabledBaselineIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/reset-enabled-baseline", - Dict{String,Any}("enabledBaselineIdentifier" => enabledBaselineIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_enabled_baseline( enabledBaselineIdentifier, params::AbstractDict{String}; @@ -863,23 +856,24 @@ end reset_landing_zone(landing_zone_identifier, params::Dict{String,<:Any}) This API call resets a landing zone. It starts an asynchronous operation that resets the -landing zone to the parameters specified in its original configuration. +landing zone to the parameters specified in the original configuration, which you specified +in the manifest file. Nothing in the manifest file's original landing zone configuration is +changed during the reset process, by default. This API is not the same as a rollback of a +landing zone version, which is not a supported operation. # Arguments - `landing_zone_identifier`: The unique identifier of the landing zone. """ -function reset_landing_zone( +reset_landing_zone( landingZoneIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/reset-landingzone", + Dict{String,Any}("landingZoneIdentifier" => landingZoneIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/reset-landingzone", - Dict{String,Any}("landingZoneIdentifier" => landingZoneIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_landing_zone( landingZoneIdentifier, params::AbstractDict{String}; @@ -904,23 +898,21 @@ end tag_resource(resource_arn, tags) tag_resource(resource_arn, tags, params::Dict{String,<:Any}) -Applies tags to a resource. For usage examples, see the Amazon Web Services Control Tower -User Guide . +Applies tags to a resource. For usage examples, see the Controls Reference Guide . # Arguments - `resource_arn`: The ARN of the resource to be tagged. - `tags`: Tags to be applied to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return controltower( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + controltower( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -940,25 +932,21 @@ end untag_resource(resource_arn, tag_keys) untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any}) -Removes tags from a resource. For usage examples, see the Amazon Web Services Control -Tower User Guide . +Removes tags from a resource. For usage examples, see the Controls Reference Guide . # Arguments - `resource_arn`: The ARN of the resource. - `tag_keys`: Tag keys to be removed from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return controltower( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + controltower( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -990,22 +978,20 @@ see the Amazon Web Services Control Tower User Guide . Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"parameters"`: Parameters to apply when making an update. """ -function update_enabled_baseline( +update_enabled_baseline( baselineVersion, enabledBaselineIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = controltower( + "POST", + "/update-enabled-baseline", + Dict{String,Any}( + "baselineVersion" => baselineVersion, + "enabledBaselineIdentifier" => enabledBaselineIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/update-enabled-baseline", - Dict{String,Any}( - "baselineVersion" => baselineVersion, - "enabledBaselineIdentifier" => enabledBaselineIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_enabled_baseline( baselineVersion, enabledBaselineIdentifier, @@ -1038,31 +1024,29 @@ end EnablementStatus of SUCCEEDED, supply parameters that are different from the currently configured parameters. Otherwise, Amazon Web Services Control Tower will not accept the request. If the enabled control shows an EnablementStatus of FAILED, Amazon Web Services -Control Tower will update the control to match any valid parameters that you supply. If the +Control Tower updates the control to match any valid parameters that you supply. If the DriftSummary status for the control shows as DRIFTED, you cannot call this API. Instead, you can update the control by calling DisableControl and again calling EnableControl, or -you can run an extending governance operation. For usage examples, see the Amazon Web -Services Control Tower User Guide +you can run an extending governance operation. For usage examples, see the Controls +Reference Guide . # Arguments - `enabled_control_identifier`: The ARN of the enabled control that will be updated. - `parameters`: A key/value pair, where Key is of type String and Value is of type Document. """ -function update_enabled_control( +update_enabled_control( enabledControlIdentifier, parameters; aws_config::AbstractAWSConfig=current_aws_config() +) = controltower( + "POST", + "/update-enabled-control", + Dict{String,Any}( + "enabledControlIdentifier" => enabledControlIdentifier, + "parameters" => parameters, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/update-enabled-control", - Dict{String,Any}( - "enabledControlIdentifier" => enabledControlIdentifier, - "parameters" => parameters, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_enabled_control( enabledControlIdentifier, parameters, @@ -1097,29 +1081,29 @@ specified in the updated manifest file. # Arguments - `landing_zone_identifier`: The unique identifier of the landing zone. -- `manifest`: The manifest JSON file is a text file that describes your Amazon Web Services - resources. For examples, review Launch your landing zone. +- `manifest`: The manifest file (JSON) is a text file that describes your Amazon Web + Services resources. For an example, review Launch your landing zone. The example manifest + file contains each of the available parameters. The schema for the landing zone's JSON + manifest file is not published, by design. - `version`: The landing zone version, for example, 3.2. """ -function update_landing_zone( +update_landing_zone( landingZoneIdentifier, manifest, version; aws_config::AbstractAWSConfig=current_aws_config(), +) = controltower( + "POST", + "/update-landingzone", + Dict{String,Any}( + "landingZoneIdentifier" => landingZoneIdentifier, + "manifest" => manifest, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return controltower( - "POST", - "/update-landingzone", - Dict{String,Any}( - "landingZoneIdentifier" => landingZoneIdentifier, - "manifest" => manifest, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_landing_zone( landingZoneIdentifier, manifest, diff --git a/src/services/cost_and_usage_report_service.jl b/src/services/cost_and_usage_report_service.jl index dbe717802..5c644095f 100644 --- a/src/services/cost_and_usage_report_service.jl +++ b/src/services/cost_and_usage_report_service.jl @@ -15,16 +15,13 @@ Deletes the specified report. Any tags associated with the report are also delet is case sensitive, and can't include spaces. """ -function delete_report_definition( - ReportName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_and_usage_report_service( +delete_report_definition(ReportName; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_and_usage_report_service( "DeleteReportDefinition", Dict{String,Any}("ReportName" => ReportName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_report_definition( ReportName, params::AbstractDict{String}; @@ -51,11 +48,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function describe_report_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_and_usage_report_service( +describe_report_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_and_usage_report_service( "DescribeReportDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_report_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -77,16 +73,13 @@ Lists the tags associated with the specified report definition. - `report_name`: The report name of the report definition that tags are to be returned for. """ -function list_tags_for_resource( - ReportName; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_and_usage_report_service( +list_tags_for_resource(ReportName; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_and_usage_report_service( "ListTagsForResource", Dict{String,Any}("ReportName" => ReportName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ReportName, params::AbstractDict{String}; @@ -113,18 +106,14 @@ Allows you to programmatically update your report preferences. - `report_name`: """ -function modify_report_definition( +modify_report_definition( ReportDefinition, ReportName; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_and_usage_report_service( + "ModifyReportDefinition", + Dict{String,Any}("ReportDefinition" => ReportDefinition, "ReportName" => ReportName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_and_usage_report_service( - "ModifyReportDefinition", - Dict{String,Any}( - "ReportDefinition" => ReportDefinition, "ReportName" => ReportName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_report_definition( ReportDefinition, ReportName, @@ -161,16 +150,14 @@ Creates a new report using the description that you provide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the report definition resource. """ -function put_report_definition( +put_report_definition( ReportDefinition; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_and_usage_report_service( + "PutReportDefinition", + Dict{String,Any}("ReportDefinition" => ReportDefinition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_and_usage_report_service( - "PutReportDefinition", - Dict{String,Any}("ReportDefinition" => ReportDefinition); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_report_definition( ReportDefinition, params::AbstractDict{String}; @@ -200,14 +187,13 @@ Associates a set of tags with a report definition. - `tags`: The tags to be assigned to the report definition resource. """ -function tag_resource(ReportName, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_and_usage_report_service( +tag_resource(ReportName, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_and_usage_report_service( "TagResource", Dict{String,Any}("ReportName" => ReportName, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ReportName, Tags, @@ -238,16 +224,13 @@ Disassociates a set of tags from a report definition. - `tag_keys`: The tags to be disassociated from the report definition resource. """ -function untag_resource( - ReportName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_and_usage_report_service( +untag_resource(ReportName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_and_usage_report_service( "UntagResource", Dict{String,Any}("ReportName" => ReportName, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ReportName, TagKeys, diff --git a/src/services/cost_explorer.jl b/src/services/cost_explorer.jl index 323445ba6..9c06cc7d9 100644 --- a/src/services/cost_explorer.jl +++ b/src/services/cost_explorer.jl @@ -28,16 +28,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys whitespaces Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use """ -function create_anomaly_monitor( - AnomalyMonitor; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_explorer( +create_anomaly_monitor(AnomalyMonitor; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "CreateAnomalyMonitor", Dict{String,Any}("AnomalyMonitor" => AnomalyMonitor); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_anomaly_monitor( AnomalyMonitor, params::AbstractDict{String}; @@ -78,16 +75,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys whitespaces Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use """ -function create_anomaly_subscription( +create_anomaly_subscription( AnomalySubscription; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "CreateAnomalySubscription", + Dict{String,Any}("AnomalySubscription" => AnomalySubscription); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "CreateAnomalySubscription", - Dict{String,Any}("AnomalySubscription" => AnomalySubscription); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_anomaly_subscription( AnomalySubscription, params::AbstractDict{String}; @@ -138,16 +133,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SplitChargeRules"`: The split charge rules used to allocate your charges between your Cost Category values. """ -function create_cost_category_definition( +create_cost_category_definition( Name, RuleVersion, Rules; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "CreateCostCategoryDefinition", + Dict{String,Any}("Name" => Name, "RuleVersion" => RuleVersion, "Rules" => Rules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "CreateCostCategoryDefinition", - Dict{String,Any}("Name" => Name, "RuleVersion" => RuleVersion, "Rules" => Rules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cost_category_definition( Name, RuleVersion, @@ -181,16 +174,13 @@ Deletes a cost anomaly monitor. - `monitor_arn`: The unique identifier of the cost anomaly monitor that you want to delete. """ -function delete_anomaly_monitor( - MonitorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_explorer( +delete_anomaly_monitor(MonitorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "DeleteAnomalyMonitor", Dict{String,Any}("MonitorArn" => MonitorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_anomaly_monitor( MonitorArn, params::AbstractDict{String}; @@ -217,16 +207,14 @@ Deletes a cost anomaly subscription. to delete. """ -function delete_anomaly_subscription( +delete_anomaly_subscription( SubscriptionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "DeleteAnomalySubscription", + Dict{String,Any}("SubscriptionArn" => SubscriptionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "DeleteAnomalySubscription", - Dict{String,Any}("SubscriptionArn" => SubscriptionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_anomaly_subscription( SubscriptionArn, params::AbstractDict{String}; @@ -255,16 +243,14 @@ categorized with this Cost Category. - `cost_category_arn`: The unique identifier for your Cost Category. """ -function delete_cost_category_definition( +delete_cost_category_definition( CostCategoryArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "DeleteCostCategoryDefinition", + Dict{String,Any}("CostCategoryArn" => CostCategoryArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "DeleteCostCategoryDefinition", - Dict{String,Any}("CostCategoryArn" => CostCategoryArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cost_category_definition( CostCategoryArn, params::AbstractDict{String}; @@ -299,16 +285,14 @@ is still effective, EffectiveEnd is omitted in the response. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"EffectiveOn"`: The date when the Cost Category was effective. """ -function describe_cost_category_definition( +describe_cost_category_definition( CostCategoryArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "DescribeCostCategoryDefinition", + Dict{String,Any}("CostCategoryArn" => CostCategoryArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "DescribeCostCategoryDefinition", - Dict{String,Any}("CostCategoryArn" => CostCategoryArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cost_category_definition( CostCategoryArn, params::AbstractDict{String}; @@ -350,14 +334,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For example, you can filter anomalies GREATER_THAN 200.00 to retrieve anomalies, with an estimated dollar impact greater than 200. """ -function get_anomalies(DateInterval; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_explorer( +get_anomalies(DateInterval; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "GetAnomalies", Dict{String,Any}("DateInterval" => DateInterval); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_anomalies( DateInterval, params::AbstractDict{String}; @@ -388,11 +371,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provides the token when the response from a previous call has more results than the maximum page size. """ -function get_anomaly_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_explorer( - "GetAnomalyMonitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_anomaly_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) = cost_explorer( + "GetAnomalyMonitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_anomaly_monitors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -417,11 +398,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys page size. - `"SubscriptionArnList"`: A list of cost anomaly subscription ARNs. """ -function get_anomaly_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_explorer( +get_anomaly_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "GetAnomalySubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_anomaly_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -452,18 +432,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Services"`: The service metadata for the service or services you want to query. If not specified, all elements are returned. """ -function get_approximate_usage_records( +get_approximate_usage_records( ApproximationDimension, Granularity; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetApproximateUsageRecords", + Dict{String,Any}( + "ApproximationDimension" => ApproximationDimension, "Granularity" => Granularity + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetApproximateUsageRecords", - Dict{String,Any}( - "ApproximationDimension" => ApproximationDimension, "Granularity" => Granularity - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_approximate_usage_records( ApproximationDimension, Granularity, @@ -536,18 +514,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provides the token when the response from a previous call has more results than the maximum page size. """ -function get_cost_and_usage( +get_cost_and_usage( Granularity, Metrics, TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetCostAndUsage", + Dict{String,Any}( + "Granularity" => Granularity, "Metrics" => Metrics, "TimePeriod" => TimePeriod + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetCostAndUsage", - Dict{String,Any}( - "Granularity" => Granularity, "Metrics" => Metrics, "TimePeriod" => TimePeriod - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cost_and_usage( Granularity, Metrics, @@ -625,18 +601,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provides the token when the response from a previous call has more results than the maximum page size. """ -function get_cost_and_usage_with_resources( +get_cost_and_usage_with_resources( Filter, Granularity, TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetCostAndUsageWithResources", + Dict{String,Any}( + "Filter" => Filter, "Granularity" => Granularity, "TimePeriod" => TimePeriod + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetCostAndUsageWithResources", - Dict{String,Any}( - "Filter" => Filter, "Granularity" => Granularity, "TimePeriod" => TimePeriod - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cost_and_usage_with_resources( Filter, Granularity, @@ -695,14 +669,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DESCENDING. When you use the SortBy value, the NextPageToken and SearchString key values aren't supported. """ -function get_cost_categories(TimePeriod; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_explorer( +get_cost_categories(TimePeriod; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "GetCostCategories", Dict{String,Any}("TimePeriod" => TimePeriod); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cost_categories( TimePeriod, params::AbstractDict{String}; @@ -751,18 +724,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals. """ -function get_cost_forecast( +get_cost_forecast( Granularity, Metric, TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetCostForecast", + Dict{String,Any}( + "Granularity" => Granularity, "Metric" => Metric, "TimePeriod" => TimePeriod + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetCostForecast", - Dict{String,Any}( - "Granularity" => Granularity, "Metric" => Metric, "TimePeriod" => TimePeriod - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cost_forecast( Granularity, Metric, @@ -880,16 +851,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DESCENDING. When you specify a SortBy paramater, the context must be COST_AND_USAGE. Further, when using SortBy, NextPageToken and SearchString aren't supported. """ -function get_dimension_values( +get_dimension_values( Dimension, TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetDimensionValues", + Dict{String,Any}("Dimension" => Dimension, "TimePeriod" => TimePeriod); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetDimensionValues", - Dict{String,Any}("Dimension" => Dimension, "TimePeriod" => TimePeriod); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_dimension_values( Dimension, TimePeriod, @@ -962,16 +931,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys OnDemandNormalizedUnits ReservedNormalizedUnits TotalRunningNormalizedUnits Time Supported values for SortOrder are ASCENDING or DESCENDING. """ -function get_reservation_coverage( - TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_explorer( +get_reservation_coverage(TimePeriod; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "GetReservationCoverage", Dict{String,Any}("TimePeriod" => TimePeriod); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_reservation_coverage( TimePeriod, params::AbstractDict{String}; @@ -1029,16 +995,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys want recommendations for, such as standard or convertible Amazon EC2 instances. - `"TermInYears"`: The reservation term that you want recommendations for. """ -function get_reservation_purchase_recommendation( +get_reservation_purchase_recommendation( Service; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetReservationPurchaseRecommendation", + Dict{String,Any}("Service" => Service); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetReservationPurchaseRecommendation", - Dict{String,Any}("Service" => Service); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reservation_purchase_recommendation( Service, params::AbstractDict{String}; @@ -1094,16 +1058,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys RICostForUnusedHours RealizedSavings UnrealizedSavings The supported values for SortOrder are ASCENDING and DESCENDING. """ -function get_reservation_utilization( +get_reservation_utilization( TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetReservationUtilization", + Dict{String,Any}("TimePeriod" => TimePeriod); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetReservationUtilization", - Dict{String,Any}("TimePeriod" => TimePeriod); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reservation_utilization( TimePeriod, params::AbstractDict{String}; @@ -1146,16 +1108,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The number of recommendations that you want returned in a single response object. """ -function get_rightsizing_recommendation( +get_rightsizing_recommendation( Service; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetRightsizingRecommendation", + Dict{String,Any}("Service" => Service); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetRightsizingRecommendation", - Dict{String,Any}("Service" => Service); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_rightsizing_recommendation( Service, params::AbstractDict{String}; @@ -1181,16 +1141,14 @@ data-points that construct the cost, coverage, and utilization charts. recommendation. """ -function get_savings_plan_purchase_recommendation_details( +get_savings_plan_purchase_recommendation_details( RecommendationDetailId; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetSavingsPlanPurchaseRecommendationDetails", + Dict{String,Any}("RecommendationDetailId" => RecommendationDetailId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetSavingsPlanPurchaseRecommendationDetails", - Dict{String,Any}("RecommendationDetailId" => RecommendationDetailId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_savings_plan_purchase_recommendation_details( RecommendationDetailId, params::AbstractDict{String}; @@ -1250,16 +1208,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys TotalCost InstanceFamily Region Service The supported values for SortOrder are ASCENDING and DESCENDING. """ -function get_savings_plans_coverage( - TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_explorer( +get_savings_plans_coverage(TimePeriod; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "GetSavingsPlansCoverage", Dict{String,Any}("TimePeriod" => TimePeriod); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_savings_plans_coverage( TimePeriod, params::AbstractDict{String}; @@ -1310,25 +1265,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The number of recommendations that you want returned in a single response object. """ -function get_savings_plans_purchase_recommendation( +get_savings_plans_purchase_recommendation( LookbackPeriodInDays, PaymentOption, SavingsPlansType, TermInYears; aws_config::AbstractAWSConfig=current_aws_config(), +) = cost_explorer( + "GetSavingsPlansPurchaseRecommendation", + Dict{String,Any}( + "LookbackPeriodInDays" => LookbackPeriodInDays, + "PaymentOption" => PaymentOption, + "SavingsPlansType" => SavingsPlansType, + "TermInYears" => TermInYears, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetSavingsPlansPurchaseRecommendation", - Dict{String,Any}( - "LookbackPeriodInDays" => LookbackPeriodInDays, - "PaymentOption" => PaymentOption, - "SavingsPlansType" => SavingsPlansType, - "TermInYears" => TermInYears, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_savings_plans_purchase_recommendation( LookbackPeriodInDays, PaymentOption, @@ -1385,16 +1338,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UnusedCommitment NetSavings The supported values for SortOrder are ASCENDING and DESCENDING. """ -function get_savings_plans_utilization( +get_savings_plans_utilization( TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetSavingsPlansUtilization", + Dict{String,Any}("TimePeriod" => TimePeriod); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetSavingsPlansUtilization", - Dict{String,Any}("TimePeriod" => TimePeriod); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_savings_plans_utilization( TimePeriod, params::AbstractDict{String}; @@ -1446,16 +1397,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AmortizedUpfrontCommitment The supported values for SortOrder are ASCENDING and DESCENDING. """ -function get_savings_plans_utilization_details( +get_savings_plans_utilization_details( TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetSavingsPlansUtilizationDetails", + Dict{String,Any}("TimePeriod" => TimePeriod); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetSavingsPlansUtilizationDetails", - Dict{String,Any}("TimePeriod" => TimePeriod); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_savings_plans_utilization_details( TimePeriod, params::AbstractDict{String}; @@ -1502,14 +1451,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys When you use SortBy, NextPageToken and SearchString aren't supported. - `"TagKey"`: The key of the tag that you want to return values for. """ -function get_tags(TimePeriod; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_explorer( - "GetTags", - Dict{String,Any}("TimePeriod" => TimePeriod); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_tags(TimePeriod; aws_config::AbstractAWSConfig=current_aws_config()) = cost_explorer( + "GetTags", + Dict{String,Any}("TimePeriod" => TimePeriod); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_tags( TimePeriod, params::AbstractDict{String}; @@ -1560,18 +1507,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals. """ -function get_usage_forecast( +get_usage_forecast( Granularity, Metric, TimePeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "GetUsageForecast", + Dict{String,Any}( + "Granularity" => Granularity, "Metric" => Metric, "TimePeriod" => TimePeriod + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "GetUsageForecast", - Dict{String,Any}( - "Granularity" => Granularity, "Metric" => Metric, "TimePeriod" => TimePeriod - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_usage_forecast( Granularity, Metric, @@ -1610,15 +1555,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provides the token when the response from a previous call has more results than the maximum page size. """ -function list_cost_allocation_tag_backfill_history(; +list_cost_allocation_tag_backfill_history(; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "ListCostAllocationTagBackfillHistory"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "ListCostAllocationTagBackfillHistory"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_cost_allocation_tag_backfill_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1651,11 +1594,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Web Services resources for cost allocation purposes. The UserDefined type tags are tags that you define, create, and apply to resources. """ -function list_cost_allocation_tags(; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_explorer( +list_cost_allocation_tags(; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "ListCostAllocationTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_cost_allocation_tags( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1687,15 +1629,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provides the token when the response from a previous call has more results than the maximum page size. """ -function list_cost_category_definitions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_explorer( +list_cost_category_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "ListCostCategoryDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cost_category_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1721,15 +1660,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object. - `"RecommendationIds"`: The IDs for each specific recommendation. """ -function list_savings_plans_purchase_recommendation_generation(; +list_savings_plans_purchase_recommendation_generation(; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "ListSavingsPlansPurchaseRecommendationGeneration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "ListSavingsPlansPurchaseRecommendationGeneration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_savings_plans_purchase_recommendation_generation( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1753,16 +1690,13 @@ Resource Name (ARN). resources, see ResourceTag. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_explorer( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1790,16 +1724,14 @@ Modifies the feedback property of a given cost anomaly. it an anomaly. """ -function provide_anomaly_feedback( +provide_anomaly_feedback( AnomalyId, Feedback; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "ProvideAnomalyFeedback", + Dict{String,Any}("AnomalyId" => AnomalyId, "Feedback" => Feedback); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "ProvideAnomalyFeedback", - Dict{String,Any}("AnomalyId" => AnomalyId, "Feedback" => Feedback); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function provide_anomaly_feedback( AnomalyId, Feedback, @@ -1834,16 +1766,14 @@ made. You can request a backfill once every 24 hours. months, or in the future. """ -function start_cost_allocation_tag_backfill( +start_cost_allocation_tag_backfill( BackfillFrom; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "StartCostAllocationTagBackfill", + Dict{String,Any}("BackfillFrom" => BackfillFrom); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "StartCostAllocationTagBackfill", - Dict{String,Any}("BackfillFrom" => BackfillFrom); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_cost_allocation_tag_backfill( BackfillFrom, params::AbstractDict{String}; @@ -1871,15 +1801,13 @@ StartSavingsPlansPurchaseRecommendationGeneration has no request syntax because parameters are needed to support this operation. """ -function start_savings_plans_purchase_recommendation_generation(; +start_savings_plans_purchase_recommendation_generation(; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "StartSavingsPlansPurchaseRecommendationGeneration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "StartSavingsPlansPurchaseRecommendationGeneration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_savings_plans_purchase_recommendation_generation( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1917,16 +1845,14 @@ Services use. use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use """ -function tag_resource( +tag_resource( ResourceArn, ResourceTags; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "TagResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "ResourceTags" => ResourceTags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "TagResource", - Dict{String,Any}("ResourceArn" => ResourceArn, "ResourceTags" => ResourceTags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_resource( ResourceArn, ResourceTags, @@ -1965,18 +1891,14 @@ specify the value. for Amazon Web Services use. """ -function untag_resource( +untag_resource( ResourceArn, ResourceTagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "UntagResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "ResourceTagKeys" => ResourceTagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "UntagResource", - Dict{String,Any}( - "ResourceArn" => ResourceArn, "ResourceTagKeys" => ResourceTagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource( ResourceArn, ResourceTagKeys, @@ -2013,16 +1935,13 @@ doesn't change anomalies detected in the past. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MonitorName"`: The new name for the cost anomaly monitor. """ -function update_anomaly_monitor( - MonitorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_explorer( +update_anomaly_monitor(MonitorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_explorer( "UpdateAnomalyMonitor", Dict{String,Any}("MonitorArn" => MonitorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_anomaly_monitor( MonitorArn, params::AbstractDict{String}; @@ -2081,16 +2000,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } } ] } """ -function update_anomaly_subscription( +update_anomaly_subscription( SubscriptionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "UpdateAnomalySubscription", + Dict{String,Any}("SubscriptionArn" => SubscriptionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "UpdateAnomalySubscription", - Dict{String,Any}("SubscriptionArn" => SubscriptionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_anomaly_subscription( SubscriptionArn, params::AbstractDict{String}; @@ -2122,16 +2039,14 @@ tag). used to update cost allocation tags status for this request. """ -function update_cost_allocation_tags_status( +update_cost_allocation_tags_status( CostAllocationTagsStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "UpdateCostAllocationTagsStatus", + Dict{String,Any}("CostAllocationTagsStatus" => CostAllocationTagsStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "UpdateCostAllocationTagsStatus", - Dict{String,Any}("CostAllocationTagsStatus" => CostAllocationTagsStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cost_allocation_tags_status( CostAllocationTagsStatus, params::AbstractDict{String}; @@ -2174,20 +2089,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SplitChargeRules"`: The split charge rules used to allocate your charges between your Cost Category values. """ -function update_cost_category_definition( +update_cost_category_definition( CostCategoryArn, RuleVersion, Rules; aws_config::AbstractAWSConfig=current_aws_config() +) = cost_explorer( + "UpdateCostCategoryDefinition", + Dict{String,Any}( + "CostCategoryArn" => CostCategoryArn, + "RuleVersion" => RuleVersion, + "Rules" => Rules, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return cost_explorer( - "UpdateCostCategoryDefinition", - Dict{String,Any}( - "CostCategoryArn" => CostCategoryArn, - "RuleVersion" => RuleVersion, - "Rules" => Rules, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cost_category_definition( CostCategoryArn, RuleVersion, diff --git a/src/services/cost_optimization_hub.jl b/src/services/cost_optimization_hub.jl index bbf8b10eb..992d05c74 100644 --- a/src/services/cost_optimization_hub.jl +++ b/src/services/cost_optimization_hub.jl @@ -14,11 +14,10 @@ are presented—estimated savings after discounts or estimated savings before di for example. """ -function get_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_optimization_hub( +get_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_optimization_hub( "GetPreferences"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_preferences( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -40,16 +39,13 @@ ListRecommendations API. - `recommendation_id`: The ID for the recommendation. """ -function get_recommendation( - recommendationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_optimization_hub( +get_recommendation(recommendationId; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_optimization_hub( "GetRecommendation", Dict{String,Any}("recommendationId" => recommendationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_recommendation( recommendationId, params::AbstractDict{String}; @@ -82,11 +78,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects that are returned for the request. - `"nextToken"`: The token to retrieve the next set of results. """ -function list_enrollment_statuses(; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_optimization_hub( +list_enrollment_statuses(; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_optimization_hub( "ListEnrollmentStatuses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_enrollment_statuses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -112,19 +107,18 @@ for this API: recommendationIds, resourceArns, and resourceIds. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"filter"`: -- `"maxResults"`: The maximum number of recommendations that are returned for the request. +- `"maxResults"`: The maximum number of recommendations to be returned for the request. +- `"metrics"`: Additional metrics to be returned for the request. The only valid value is + savingsPercentage. - `"nextToken"`: The token to retrieve the next set of results. """ -function list_recommendation_summaries( - groupBy; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_optimization_hub( +list_recommendation_summaries(groupBy; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_optimization_hub( "ListRecommendationSummaries", Dict{String,Any}("groupBy" => groupBy); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_recommendation_summaries( groupBy, params::AbstractDict{String}; @@ -153,11 +147,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to retrieve the next set of results. - `"orderBy"`: The ordering of recommendations by a dimension. """ -function list_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_optimization_hub( +list_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_optimization_hub( "ListRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -174,11 +167,11 @@ end update_enrollment_status(status, params::Dict{String,<:Any}) Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization -Hub service. If the account is a management account of an organization, this action can -also be used to enroll member accounts of the organization. You must have the appropriate -permissions to opt in to Cost Optimization Hub and to view its recommendations. When you -opt in, Cost Optimization Hub automatically creates a service-linked role in your account -to access its data. +Hub service. If the account is a management account or delegated administrator of an +organization, this action can also be used to enroll member accounts of the organization. +You must have the appropriate permissions to opt in to Cost Optimization Hub and to view +its recommendations. When you opt in, Cost Optimization Hub automatically creates a +service-linked role in your account to access its data. # Arguments - `status`: Sets the account status. @@ -186,18 +179,15 @@ to access its data. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"includeMemberAccounts"`: Indicates whether to enroll member accounts of the - organization if the account is the management account. + organization if the account is the management account or delegated administrator. """ -function update_enrollment_status( - status; aws_config::AbstractAWSConfig=current_aws_config() -) - return cost_optimization_hub( +update_enrollment_status(status; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_optimization_hub( "UpdateEnrollmentStatus", Dict{String,Any}("status" => status); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_enrollment_status( status, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -223,11 +213,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys preference. - `"savingsEstimationMode"`: Sets the \"savings estimation mode\" preference. """ -function update_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) - return cost_optimization_hub( +update_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) = + cost_optimization_hub( "UpdatePreferences"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_preferences( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/customer_profiles.jl b/src/services/customer_profiles.jl index 0d2eaa166..f7ed7cfa7 100644 --- a/src/services/customer_profiles.jl +++ b/src/services/customer_profiles.jl @@ -24,23 +24,19 @@ used to identify the profile that it belongs to. - `values`: A list of key values. """ -function add_profile_key( +add_profile_key( DomainName, KeyName, ProfileId, Values; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/profiles/keys", + Dict{String,Any}("KeyName" => KeyName, "ProfileId" => ProfileId, "Values" => Values); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/profiles/keys", - Dict{String,Any}( - "KeyName" => KeyName, "ProfileId" => ProfileId, "Values" => Values - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_profile_key( DomainName, KeyName, @@ -91,21 +87,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DisplayName"`: The display name of the calculated attribute. - `"Tags"`: The tags used to organize, track, or control access for this resource. """ -function create_calculated_attribute_definition( +create_calculated_attribute_definition( AttributeDetails, CalculatedAttributeName, DomainName, Statistic; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/calculated-attributes/$(CalculatedAttributeName)", + Dict{String,Any}("AttributeDetails" => AttributeDetails, "Statistic" => Statistic); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/calculated-attributes/$(CalculatedAttributeName)", - Dict{String,Any}("AttributeDetails" => AttributeDetails, "Statistic" => Statistic); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_calculated_attribute_definition( AttributeDetails, CalculatedAttributeName, @@ -177,17 +171,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can download the results from S3. - `"Tags"`: The tags used to organize, track, or control access for this resource. """ -function create_domain( +create_domain( DefaultExpirationDays, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "POST", + "/domains/$(DomainName)", + Dict{String,Any}("DefaultExpirationDays" => DefaultExpirationDays); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)", - Dict{String,Any}("DefaultExpirationDays" => DefaultExpirationDays); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_domain( DefaultExpirationDays, DomainName, @@ -228,17 +220,15 @@ Services account as the customer profiles domain Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags used to organize, track, or control access for this resource. """ -function create_event_stream( +create_event_stream( DomainName, EventStreamName, Uri; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "POST", + "/domains/$(DomainName)/event-streams/$(EventStreamName)", + Dict{String,Any}("Uri" => Uri); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/event-streams/$(EventStreamName)", - Dict{String,Any}("Uri" => Uri); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_stream( DomainName, EventStreamName, @@ -275,27 +265,25 @@ sources are Salesforce, ServiceNow, and Marketo. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags used to organize, track, or control access for this resource. """ -function create_integration_workflow( +create_integration_workflow( DomainName, IntegrationConfig, ObjectTypeName, RoleArn, WorkflowType; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/workflows/integrations", + Dict{String,Any}( + "IntegrationConfig" => IntegrationConfig, + "ObjectTypeName" => ObjectTypeName, + "RoleArn" => RoleArn, + "WorkflowType" => WorkflowType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/workflows/integrations", - Dict{String,Any}( - "IntegrationConfig" => IntegrationConfig, - "ObjectTypeName" => ObjectTypeName, - "RoleArn" => RoleArn, - "WorkflowType" => WorkflowType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_integration_workflow( DomainName, IntegrationConfig, @@ -365,14 +353,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys home, or business number. - `"ShippingAddress"`: The customer’s shipping address. """ -function create_profile(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +create_profile(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "POST", "/domains/$(DomainName)/profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_profile( DomainName, params::AbstractDict{String}; @@ -401,16 +388,14 @@ CreateCalculatedAttributeDefinition API if you want it back. - `domain_name`: The unique name of the domain. """ -function delete_calculated_attribute_definition( +delete_calculated_attribute_definition( CalculatedAttributeName, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "DELETE", + "/domains/$(DomainName)/calculated-attributes/$(CalculatedAttributeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "DELETE", - "/domains/$(DomainName)/calculated-attributes/$(CalculatedAttributeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_calculated_attribute_definition( CalculatedAttributeName, DomainName, @@ -437,14 +422,13 @@ and their related objects. - `domain_name`: The unique name of the domain. """ -function delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "DELETE", "/domains/$(DomainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_domain( DomainName, params::AbstractDict{String}; @@ -470,16 +454,14 @@ Disables and deletes the specified event stream. - `event_stream_name`: The name of the event stream """ -function delete_event_stream( +delete_event_stream( DomainName, EventStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "DELETE", + "/domains/$(DomainName)/event-streams/$(EventStreamName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "DELETE", - "/domains/$(DomainName)/event-streams/$(EventStreamName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_stream( DomainName, EventStreamName, @@ -506,17 +488,14 @@ Removes an integration from a specific domain. - `uri`: The URI of the S3 bucket or any other type of data source. """ -function delete_integration( - DomainName, Uri; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +delete_integration(DomainName, Uri; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "POST", "/domains/$(DomainName)/integrations/delete", Dict{String,Any}("Uri" => Uri); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_integration( DomainName, Uri, @@ -543,17 +522,14 @@ Deletes the standard customer profile and all data pertaining to the profile. - `profile_id`: The unique identifier of a customer profile. """ -function delete_profile( - DomainName, ProfileId; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +delete_profile(DomainName, ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "POST", "/domains/$(DomainName)/profiles/delete", Dict{String,Any}("ProfileId" => ProfileId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_profile( DomainName, ProfileId, @@ -584,23 +560,19 @@ Removes a searchable key from a customer profile. - `values`: A list of key values. """ -function delete_profile_key( +delete_profile_key( DomainName, KeyName, ProfileId, Values; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/profiles/keys/delete", + Dict{String,Any}("KeyName" => KeyName, "ProfileId" => ProfileId, "Values" => Values); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/profiles/keys/delete", - Dict{String,Any}( - "KeyName" => KeyName, "ProfileId" => ProfileId, "Values" => Values - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_profile_key( DomainName, KeyName, @@ -640,25 +612,23 @@ Removes an object associated with a profile of a given ProfileObjectType. service. """ -function delete_profile_object( +delete_profile_object( DomainName, ObjectTypeName, ProfileId, ProfileObjectUniqueKey; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/profiles/objects/delete", + Dict{String,Any}( + "ObjectTypeName" => ObjectTypeName, + "ProfileId" => ProfileId, + "ProfileObjectUniqueKey" => ProfileObjectUniqueKey, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/profiles/objects/delete", - Dict{String,Any}( - "ObjectTypeName" => ObjectTypeName, - "ProfileId" => ProfileId, - "ProfileObjectUniqueKey" => ProfileObjectUniqueKey, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_profile_object( DomainName, ObjectTypeName, @@ -700,16 +670,14 @@ were populated from this ProfileObjectType. - `object_type_name`: The name of the profile object type. """ -function delete_profile_object_type( +delete_profile_object_type( DomainName, ObjectTypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "DELETE", + "/domains/$(DomainName)/object-types/$(ObjectTypeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "DELETE", - "/domains/$(DomainName)/object-types/$(ObjectTypeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_profile_object_type( DomainName, ObjectTypeName, @@ -737,16 +705,14 @@ process. - `workflow_id`: Unique identifier for the workflow. """ -function delete_workflow( +delete_workflow( DomainName, WorkflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "DELETE", + "/domains/$(DomainName)/workflows/$(WorkflowId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "DELETE", - "/domains/$(DomainName)/workflows/$(WorkflowId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workflow( DomainName, WorkflowId, @@ -773,17 +739,15 @@ The process of detecting profile object type mapping by using given objects. - `objects`: A string that is serialized from a JSON object. """ -function detect_profile_object_type( +detect_profile_object_type( DomainName, Objects; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "POST", + "/domains/$(DomainName)/detect/object-types", + Dict{String,Any}("Objects" => Objects); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/detect/object-types", - Dict{String,Any}("Objects" => Objects); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detect_profile_object_type( DomainName, Objects, @@ -825,22 +789,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MinAllowedConfidenceScoreForMerging"`: Minimum confidence score required for profiles within a matching group to be merged during the auto-merge process. """ -function get_auto_merging_preview( +get_auto_merging_preview( ConflictResolution, Consolidation, DomainName; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/identity-resolution-jobs/auto-merging-preview", + Dict{String,Any}( + "ConflictResolution" => ConflictResolution, "Consolidation" => Consolidation + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/identity-resolution-jobs/auto-merging-preview", - Dict{String,Any}( - "ConflictResolution" => ConflictResolution, "Consolidation" => Consolidation - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_auto_merging_preview( ConflictResolution, Consolidation, @@ -877,16 +839,14 @@ Provides more information on a calculated attribute definition for Customer Prof - `domain_name`: The unique name of the domain. """ -function get_calculated_attribute_definition( +get_calculated_attribute_definition( CalculatedAttributeName, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/domains/$(DomainName)/calculated-attributes/$(CalculatedAttributeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/calculated-attributes/$(CalculatedAttributeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_calculated_attribute_definition( CalculatedAttributeName, DomainName, @@ -914,19 +874,17 @@ Retrieve a calculated attribute for a customer profile. - `profile_id`: The unique identifier of a customer profile. """ -function get_calculated_attribute_for_profile( +get_calculated_attribute_for_profile( CalculatedAttributeName, DomainName, ProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "GET", + "/domains/$(DomainName)/profile/$(ProfileId)/calculated-attributes/$(CalculatedAttributeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/profile/$(ProfileId)/calculated-attributes/$(CalculatedAttributeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_calculated_attribute_for_profile( CalculatedAttributeName, DomainName, @@ -953,14 +911,13 @@ Returns information about a specific domain. - `domain_name`: The unique name of the domain. """ -function get_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +get_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/domains/$(DomainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_domain( DomainName, params::AbstractDict{String}; @@ -986,16 +943,14 @@ Returns information about the specified event stream in a specific domain. - `event_stream_name`: The name of the event stream provided during create operations. """ -function get_event_stream( +get_event_stream( DomainName, EventStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/domains/$(DomainName)/event-streams/$(EventStreamName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/event-streams/$(EventStreamName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_event_stream( DomainName, EventStreamName, @@ -1024,16 +979,14 @@ see Use Identity Resolution to consolidate similar profiles. - `job_id`: The unique identifier of the Identity Resolution Job. """ -function get_identity_resolution_job( +get_identity_resolution_job( DomainName, JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/domains/$(DomainName)/identity-resolution-jobs/$(JobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/identity-resolution-jobs/$(JobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_resolution_job( DomainName, JobId, @@ -1060,17 +1013,14 @@ Returns an integration for a domain. - `uri`: The URI of the S3 bucket or any other type of data source. """ -function get_integration( - DomainName, Uri; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +get_integration(DomainName, Uri; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "POST", "/domains/$(DomainName)/integrations", Dict{String,Any}("Uri" => Uri); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_integration( DomainName, Uri, @@ -1116,14 +1066,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function get_matches(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +get_matches(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/domains/$(DomainName)/matches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_matches( DomainName, params::AbstractDict{String}; @@ -1149,16 +1098,14 @@ Returns the object types for a specific domain. - `object_type_name`: The name of the profile object type. """ -function get_profile_object_type( +get_profile_object_type( DomainName, ObjectTypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/domains/$(DomainName)/object-types/$(ObjectTypeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/object-types/$(ObjectTypeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_profile_object_type( DomainName, ObjectTypeName, @@ -1187,16 +1134,14 @@ matches one of the TemplateIds, it uses the mappings from the template. - `template_id`: A unique identifier for the object template. """ -function get_profile_object_type_template( +get_profile_object_type_template( TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/templates/$(TemplateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/templates/$(TemplateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_profile_object_type_template( TemplateId, params::AbstractDict{String}; @@ -1230,23 +1175,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of objects returned per page. - `"next-token"`: The pagination token from the previous GetSimilarProfiles API call. """ -function get_similar_profiles( +get_similar_profiles( DomainName, MatchType, SearchKey, SearchValue; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/matches", + Dict{String,Any}( + "MatchType" => MatchType, "SearchKey" => SearchKey, "SearchValue" => SearchValue + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/matches", - Dict{String,Any}( - "MatchType" => MatchType, "SearchKey" => SearchKey, "SearchValue" => SearchValue - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_similar_profiles( DomainName, MatchType, @@ -1285,16 +1228,13 @@ Get details of specified workflow. - `workflow_id`: Unique identifier for the workflow. """ -function get_workflow( - DomainName, WorkflowId; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +get_workflow(DomainName, WorkflowId; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/domains/$(DomainName)/workflows/$(WorkflowId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_workflow( DomainName, WorkflowId, @@ -1326,16 +1266,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function get_workflow_steps( +get_workflow_steps( DomainName, WorkflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/domains/$(DomainName)/workflows/$(WorkflowId)/steps"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/workflows/$(WorkflowId)/steps"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workflow_steps( DomainName, WorkflowId, @@ -1367,15 +1305,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of objects returned per page. - `"next-token"`: The pagination token from the previous ListAccountIntegrations API call. """ -function list_account_integrations(Uri; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +list_account_integrations(Uri; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "POST", "/integrations", Dict{String,Any}("Uri" => Uri); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_account_integrations( Uri, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1403,16 +1340,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The pagination token from the previous call to ListCalculatedAttributeDefinitions. """ -function list_calculated_attribute_definitions( +list_calculated_attribute_definitions( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/domains/$(DomainName)/calculated-attributes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/calculated-attributes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_calculated_attribute_definitions( DomainName, params::AbstractDict{String}; @@ -1443,16 +1378,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The pagination token from the previous call to ListCalculatedAttributesForProfile. """ -function list_calculated_attributes_for_profile( +list_calculated_attributes_for_profile( DomainName, ProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/domains/$(DomainName)/profile/$(ProfileId)/calculated-attributes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/profile/$(ProfileId)/calculated-attributes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_calculated_attributes_for_profile( DomainName, ProfileId, @@ -1479,11 +1412,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of objects returned per page. - `"next-token"`: The pagination token from the previous ListDomain API call. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( - "GET", "/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = customer_profiles( + "GET", "/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1506,14 +1437,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of objects returned per page. - `"next-token"`: Identifies the next page of results to return. """ -function list_event_streams(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +list_event_streams(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/domains/$(DomainName)/event-streams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_event_streams( DomainName, params::AbstractDict{String}; @@ -1544,16 +1474,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_identity_resolution_jobs( +list_identity_resolution_jobs( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "GET", + "/domains/$(DomainName)/identity-resolution-jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "GET", - "/domains/$(DomainName)/identity-resolution-jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_identity_resolution_jobs( DomainName, params::AbstractDict{String}; @@ -1584,14 +1512,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of objects returned per page. - `"next-token"`: The pagination token from the previous ListIntegrations API call. """ -function list_integrations(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +list_integrations(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/domains/$(DomainName)/integrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_integrations( DomainName, params::AbstractDict{String}; @@ -1617,13 +1544,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of objects returned per page. - `"next-token"`: The pagination token from the previous ListObjectTypeTemplates API call. """ -function list_profile_object_type_templates(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +list_profile_object_type_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_profile_object_type_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1646,16 +1570,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of objects returned per page. - `"next-token"`: Identifies the next page of results to return. """ -function list_profile_object_types( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +list_profile_object_types(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/domains/$(DomainName)/object-types"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_profile_object_types( DomainName, params::AbstractDict{String}; @@ -1688,20 +1609,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of objects returned per page. - `"next-token"`: The pagination token from the previous call to ListProfileObjects. """ -function list_profile_objects( +list_profile_objects( DomainName, ObjectTypeName, ProfileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/profiles/objects", + Dict{String,Any}("ObjectTypeName" => ObjectTypeName, "ProfileId" => ProfileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/profiles/objects", - Dict{String,Any}("ObjectTypeName" => ObjectTypeName, "ProfileId" => ProfileId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_profile_objects( DomainName, ObjectTypeName, @@ -1740,16 +1659,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of MatchIds returned per page. - `"next-token"`: The pagination token from the previous ListRuleBasedMatches API call. """ -function list_rule_based_matches( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +list_rule_based_matches(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/domains/$(DomainName)/profiles/ruleBasedMatches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_rule_based_matches( DomainName, params::AbstractDict{String}; @@ -1775,16 +1691,13 @@ Customer Profiles, domains, profile object types, and integrations can be tagged - `resource_arn`: The ARN of the resource for which you want to view tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1818,14 +1731,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_workflows(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +list_workflows(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "POST", "/domains/$(DomainName)/workflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_workflows( DomainName, params::AbstractDict{String}; @@ -1869,22 +1781,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from Profile1 into MainProfile. This would be the identifier of the EmailAddress field in Profile1. """ -function merge_profiles( +merge_profiles( DomainName, MainProfileId, ProfileIdsToBeMerged; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "POST", + "/domains/$(DomainName)/profiles/objects/merge", + Dict{String,Any}( + "MainProfileId" => MainProfileId, "ProfileIdsToBeMerged" => ProfileIdsToBeMerged + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/profiles/objects/merge", - Dict{String,Any}( - "MainProfileId" => MainProfileId, "ProfileIdsToBeMerged" => ProfileIdsToBeMerged - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_profiles( DomainName, MainProfileId, @@ -1934,14 +1844,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for this resource. - `"Uri"`: The URI of the S3 bucket or any other type of data source. """ -function put_integration(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +put_integration(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "PUT", "/domains/$(DomainName)/integrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_integration( DomainName, params::AbstractDict{String}; @@ -1975,17 +1884,15 @@ ObjectType, which can be created using PutProfileObjectType. - `object_type_name`: The name of the profile object type. """ -function put_profile_object( +put_profile_object( DomainName, Object, ObjectTypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "PUT", + "/domains/$(DomainName)/profiles/objects", + Dict{String,Any}("Object" => Object, "ObjectTypeName" => ObjectTypeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "PUT", - "/domains/$(DomainName)/profiles/objects", - Dict{String,Any}("Object" => Object, "ObjectTypeName" => ObjectTypeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_profile_object( DomainName, Object, @@ -2044,20 +1951,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SourceLastUpdatedTimestampFormat, Fields, and Keys. For example, if AllowProfileCreation is set to true when TemplateId is set, the service may return a BadRequestException. """ -function put_profile_object_type( +put_profile_object_type( Description, DomainName, ObjectTypeName; aws_config::AbstractAWSConfig=current_aws_config(), +) = customer_profiles( + "PUT", + "/domains/$(DomainName)/object-types/$(ObjectTypeName)", + Dict{String,Any}("Description" => Description); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "PUT", - "/domains/$(DomainName)/object-types/$(ObjectTypeName)", - Dict{String,Any}("Description" => Description); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_profile_object_type( Description, DomainName, @@ -2114,17 +2019,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this parameter is not included in the request. - `"next-token"`: The pagination token from the previous SearchProfiles API call. """ -function search_profiles( +search_profiles( DomainName, KeyName, Values; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "POST", + "/domains/$(DomainName)/profiles/search", + Dict{String,Any}("KeyName" => KeyName, "Values" => Values); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "POST", - "/domains/$(DomainName)/profiles/search", - Dict{String,Any}("KeyName" => KeyName, "Values" => Values); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_profiles( DomainName, KeyName, @@ -2165,15 +2068,14 @@ value for that tag. You can associate as many as 50 tags with a resource. - `tags`: The tags used to organize, track, or control access for this resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2201,17 +2103,14 @@ Connect Customer Profiles, domains, profile object types, and integrations can b - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2246,16 +2145,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the calculated attribute. - `"DisplayName"`: The display name of the calculated attribute. """ -function update_calculated_attribute_definition( +update_calculated_attribute_definition( CalculatedAttributeName, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = customer_profiles( + "PUT", + "/domains/$(DomainName)/calculated-attributes/$(CalculatedAttributeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return customer_profiles( - "PUT", - "/domains/$(DomainName)/calculated-attributes/$(CalculatedAttributeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_calculated_attribute_definition( CalculatedAttributeName, DomainName, @@ -2313,14 +2210,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can download the results from S3. - `"Tags"`: The tags used to organize, track, or control access for this resource. """ -function update_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return customer_profiles( +update_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "PUT", "/domains/$(DomainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_domain( DomainName, params::AbstractDict{String}; @@ -2378,17 +2274,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys home, or business number. - `"ShippingAddress"`: The customer’s shipping address. """ -function update_profile( - DomainName, ProfileId; aws_config::AbstractAWSConfig=current_aws_config() -) - return customer_profiles( +update_profile(DomainName, ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = + customer_profiles( "PUT", "/domains/$(DomainName)/profiles", Dict{String,Any}("ProfileId" => ProfileId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_profile( DomainName, ProfileId, diff --git a/src/services/data_pipeline.jl b/src/services/data_pipeline.jl index b0d20ee99..0891d02ff 100644 --- a/src/services/data_pipeline.jl +++ b/src/services/data_pipeline.jl @@ -22,14 +22,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startTimestamp"`: The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution. """ -function activate_pipeline(pipelineId; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( +activate_pipeline(pipelineId; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "ActivatePipeline", Dict{String,Any}("pipelineId" => pipelineId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function activate_pipeline( pipelineId, params::AbstractDict{String}; @@ -56,14 +55,13 @@ Adds or modifies tags for the specified pipeline. - `tags`: The tags to add, as key/value pairs. """ -function add_tags(pipelineId, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( +add_tags(pipelineId, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "AddTags", Dict{String,Any}("pipelineId" => pipelineId, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_tags( pipelineId, tags, @@ -109,14 +107,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys access to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline Developer Guide. """ -function create_pipeline(name, uniqueId; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( +create_pipeline(name, uniqueId; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "CreatePipeline", Dict{String,Any}("name" => name, "uniqueId" => uniqueId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_pipeline( name, uniqueId, @@ -153,14 +150,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which sets the state of any running objects to CANCELED. If this value is false, the pipeline is deactivated after all running objects finish. """ -function deactivate_pipeline(pipelineId; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( +deactivate_pipeline(pipelineId; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "DeactivatePipeline", Dict{String,Any}("pipelineId" => pipelineId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deactivate_pipeline( pipelineId, params::AbstractDict{String}; @@ -191,14 +187,13 @@ by SetStatus can be resumed. - `pipeline_id`: The ID of the pipeline. """ -function delete_pipeline(pipelineId; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( +delete_pipeline(pipelineId; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "DeletePipeline", Dict{String,Any}("pipelineId" => pipelineId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_pipeline( pipelineId, params::AbstractDict{String}; @@ -234,16 +229,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value should be empty. As long as there are more results, continue to call DescribeObjects with the marker value from the previous call to retrieve the next set of results. """ -function describe_objects( +describe_objects( objectIds, pipelineId; aws_config::AbstractAWSConfig=current_aws_config() +) = data_pipeline( + "DescribeObjects", + Dict{String,Any}("objectIds" => objectIds, "pipelineId" => pipelineId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return data_pipeline( - "DescribeObjects", - Dict{String,Any}("objectIds" => objectIds, "pipelineId" => pipelineId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_objects( objectIds, pipelineId, @@ -280,14 +273,13 @@ full pipeline definition instead of metadata about the pipeline, call GetPipelin identifiers in a single call. To obtain pipeline IDs, call ListPipelines. """ -function describe_pipelines(pipelineIds; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( +describe_pipelines(pipelineIds; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "DescribePipelines", Dict{String,Any}("pipelineIds" => pipelineIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_pipelines( pipelineIds, params::AbstractDict{String}; @@ -316,18 +308,16 @@ object. For example, a task runner can evaluate SQL queries stored in Amazon S3. - `pipeline_id`: The ID of the pipeline. """ -function evaluate_expression( +evaluate_expression( expression, objectId, pipelineId; aws_config::AbstractAWSConfig=current_aws_config() +) = data_pipeline( + "EvaluateExpression", + Dict{String,Any}( + "expression" => expression, "objectId" => objectId, "pipelineId" => pipelineId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return data_pipeline( - "EvaluateExpression", - Dict{String,Any}( - "expression" => expression, "objectId" => objectId, "pipelineId" => pipelineId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function evaluate_expression( expression, objectId, @@ -369,16 +359,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys latest (default) to use the last definition saved to the pipeline or active to use the last definition that was activated. """ -function get_pipeline_definition( - pipelineId; aws_config::AbstractAWSConfig=current_aws_config() -) - return data_pipeline( +get_pipeline_definition(pipelineId; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "GetPipelineDefinition", Dict{String,Any}("pipelineId" => pipelineId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_pipeline_definition( pipelineId, params::AbstractDict{String}; @@ -406,11 +393,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value should be empty. As long as there are more results, continue to call ListPipelines with the marker value from the previous call to retrieve the next set of results. """ -function list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( - "ListPipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline("ListPipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -451,14 +435,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys your task runner is running on an EC2 instance, and ensures the proper AWS Data Pipeline service charges are applied to your pipeline. """ -function poll_for_task(workerGroup; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( +poll_for_task(workerGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "PollForTask", Dict{String,Any}("workerGroup" => workerGroup); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function poll_for_task( workerGroup, params::AbstractDict{String}; @@ -497,16 +480,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parameterObjects"`: The parameter objects used with the pipeline. - `"parameterValues"`: The parameter values used with the pipeline. """ -function put_pipeline_definition( +put_pipeline_definition( pipelineId, pipelineObjects; aws_config::AbstractAWSConfig=current_aws_config() +) = data_pipeline( + "PutPipelineDefinition", + Dict{String,Any}("pipelineId" => pipelineId, "pipelineObjects" => pipelineObjects); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return data_pipeline( - "PutPipelineDefinition", - Dict{String,Any}("pipelineId" => pipelineId, "pipelineObjects" => pipelineObjects); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_pipeline_definition( pipelineId, pipelineObjects, @@ -553,16 +534,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys String fields in the object. These filters can be applied to components, instances, and attempts. """ -function query_objects( - pipelineId, sphere; aws_config::AbstractAWSConfig=current_aws_config() -) - return data_pipeline( +query_objects(pipelineId, sphere; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "QueryObjects", Dict{String,Any}("pipelineId" => pipelineId, "sphere" => sphere); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function query_objects( pipelineId, sphere, @@ -594,16 +572,13 @@ Removes existing tags from the specified pipeline. - `tag_keys`: The keys of the tags to remove. """ -function remove_tags( - pipelineId, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return data_pipeline( +remove_tags(pipelineId, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "RemoveTags", Dict{String,Any}("pipelineId" => pipelineId, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_tags( pipelineId, tagKeys, @@ -647,14 +622,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"fields"`: Key-value pairs that define the properties of the ReportTaskProgressInput object. """ -function report_task_progress(taskId; aws_config::AbstractAWSConfig=current_aws_config()) - return data_pipeline( +report_task_progress(taskId; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "ReportTaskProgress", Dict{String,Any}("taskId" => taskId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function report_task_progress( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -690,16 +664,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can only specify a single value for workerGroup. There are no wildcard values permitted in workerGroup; the string must be an exact, case-sensitive, match. """ -function report_task_runner_heartbeat( +report_task_runner_heartbeat( taskrunnerId; aws_config::AbstractAWSConfig=current_aws_config() +) = data_pipeline( + "ReportTaskRunnerHeartbeat", + Dict{String,Any}("taskrunnerId" => taskrunnerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return data_pipeline( - "ReportTaskRunnerHeartbeat", - Dict{String,Any}("taskrunnerId" => taskrunnerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function report_task_runner_heartbeat( taskrunnerId, params::AbstractDict{String}; @@ -733,18 +705,16 @@ so returns InvalidRequestException. use PAUSE or RESUME. For instances, use TRY_CANCEL, RERUN, or MARK_FINISHED. """ -function set_status( +set_status( objectIds, pipelineId, status; aws_config::AbstractAWSConfig=current_aws_config() +) = data_pipeline( + "SetStatus", + Dict{String,Any}( + "objectIds" => objectIds, "pipelineId" => pipelineId, "status" => status + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return data_pipeline( - "SetStatus", - Dict{String,Any}( - "objectIds" => objectIds, "pipelineId" => pipelineId, "status" => status - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_status( objectIds, pipelineId, @@ -795,16 +765,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value. """ -function set_task_status( - taskId, taskStatus; aws_config::AbstractAWSConfig=current_aws_config() -) - return data_pipeline( +set_task_status(taskId, taskStatus; aws_config::AbstractAWSConfig=current_aws_config()) = + data_pipeline( "SetTaskStatus", Dict{String,Any}("taskId" => taskId, "taskStatus" => taskStatus); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_task_status( taskId, taskStatus, @@ -842,16 +809,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parameterObjects"`: The parameter objects used with the pipeline. - `"parameterValues"`: The parameter values used with the pipeline. """ -function validate_pipeline_definition( +validate_pipeline_definition( pipelineId, pipelineObjects; aws_config::AbstractAWSConfig=current_aws_config() +) = data_pipeline( + "ValidatePipelineDefinition", + Dict{String,Any}("pipelineId" => pipelineId, "pipelineObjects" => pipelineObjects); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return data_pipeline( - "ValidatePipelineDefinition", - Dict{String,Any}("pipelineId" => pipelineId, "pipelineObjects" => pipelineObjects); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_pipeline_definition( pipelineId, pipelineObjects, diff --git a/src/services/database_migration_service.jl b/src/services/database_migration_service.jl index 47bdbbdf6..8e41f817d 100644 --- a/src/services/database_migration_service.jl +++ b/src/services/database_migration_service.jl @@ -20,16 +20,14 @@ for DMS. For more information, see Tag data type description. - `tags`: One or more tags to be assigned to the resource. """ -function add_tags_to_resource( +add_tags_to_resource( ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "AddTagsToResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "AddTagsToResource", - Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_resource( ResourceArn, Tags, @@ -68,23 +66,21 @@ Applies a pending maintenance action to a resource (for example, to a replicatio pending maintenance action applies to. """ -function apply_pending_maintenance_action( +apply_pending_maintenance_action( ApplyAction, OptInType, ReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "ApplyPendingMaintenanceAction", + Dict{String,Any}( + "ApplyAction" => ApplyAction, + "OptInType" => OptInType, + "ReplicationInstanceArn" => ReplicationInstanceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ApplyPendingMaintenanceAction", - Dict{String,Any}( - "ApplyAction" => ApplyAction, - "OptInType" => OptInType, - "ReplicationInstanceArn" => ReplicationInstanceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_pending_maintenance_action( ApplyAction, OptInType, @@ -125,11 +121,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Data"`: Provides information about source databases to analyze. After this analysis, Fleet Advisor recommends target engines for each source database. """ -function batch_start_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +batch_start_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "BatchStartRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function batch_start_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -154,18 +149,14 @@ individual assessments that are currently running. assessment run to be canceled. """ -function cancel_replication_task_assessment_run( +cancel_replication_task_assessment_run( ReplicationTaskAssessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "CancelReplicationTaskAssessmentRun", + Dict{String,Any}("ReplicationTaskAssessmentRunArn" => ReplicationTaskAssessmentRunArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CancelReplicationTaskAssessmentRun", - Dict{String,Any}( - "ReplicationTaskAssessmentRunArn" => ReplicationTaskAssessmentRunArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_replication_task_assessment_run( ReplicationTaskAssessmentRunArn, params::AbstractDict{String}; @@ -207,16 +198,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A user-friendly description of the data provider. - `"Tags"`: One or more tags to be assigned to the data provider. """ -function create_data_provider( - Engine, Settings; aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +create_data_provider(Engine, Settings; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "CreateDataProvider", Dict{String,Any}("Engine" => Engine, "Settings" => Settings); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_data_provider( Engine, Settings, @@ -350,23 +338,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimestreamSettings"`: Settings in JSON format for the target Amazon Timestream endpoint. - `"Username"`: The user name to be used to log in to the endpoint database. """ -function create_endpoint( +create_endpoint( EndpointIdentifier, EndpointType, EngineName; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "CreateEndpoint", + Dict{String,Any}( + "EndpointIdentifier" => EndpointIdentifier, + "EndpointType" => EndpointType, + "EngineName" => EngineName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CreateEndpoint", - Dict{String,Any}( - "EndpointIdentifier" => EndpointIdentifier, - "EndpointType" => EndpointType, - "EngineName" => EngineName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint( EndpointIdentifier, EndpointType, @@ -432,18 +418,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys values: replication-instance | replication-task - `"Tags"`: One or more tags to be assigned to the event subscription. """ -function create_event_subscription( +create_event_subscription( SnsTopicArn, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "CreateEventSubscription", + Dict{String,Any}("SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CreateEventSubscription", - Dict{String,Any}( - "SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_subscription( SnsTopicArn, SubscriptionName, @@ -484,23 +466,21 @@ Creates a Fleet Advisor collector using the specified parameters. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A summary description of your Fleet Advisor collector. """ -function create_fleet_advisor_collector( +create_fleet_advisor_collector( CollectorName, S3BucketName, ServiceAccessRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "CreateFleetAdvisorCollector", + Dict{String,Any}( + "CollectorName" => CollectorName, + "S3BucketName" => S3BucketName, + "ServiceAccessRoleArn" => ServiceAccessRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CreateFleetAdvisorCollector", - Dict{String,Any}( - "CollectorName" => CollectorName, - "S3BucketName" => S3BucketName, - "ServiceAccessRoleArn" => ServiceAccessRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fleet_advisor_collector( CollectorName, S3BucketName, @@ -558,11 +538,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instance profile. The VPC security group must work with the VPC containing the instance profile. """ -function create_instance_profile(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +create_instance_profile(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "CreateInstanceProfile"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function create_instance_profile( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -603,23 +582,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify. For example, you can change an object name to lowercase or uppercase, add or remove a prefix or suffix, or rename objects. """ -function create_migration_project( +create_migration_project( InstanceProfileIdentifier, SourceDataProviderDescriptors, TargetDataProviderDescriptors; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "CreateMigrationProject", + Dict{String,Any}( + "InstanceProfileIdentifier" => InstanceProfileIdentifier, + "SourceDataProviderDescriptors" => SourceDataProviderDescriptors, + "TargetDataProviderDescriptors" => TargetDataProviderDescriptors, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CreateMigrationProject", - Dict{String,Any}( - "InstanceProfileIdentifier" => InstanceProfileIdentifier, - "SourceDataProviderDescriptors" => SourceDataProviderDescriptors, - "TargetDataProviderDescriptors" => TargetDataProviderDescriptors, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_migration_project( InstanceProfileIdentifier, SourceDataProviderDescriptors, @@ -686,7 +663,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: One or more optional tags associated with resources used by the DMS Serverless replication. For more information, see Tagging resources in Database Migration Service. """ -function create_replication_config( +create_replication_config( ComputeConfig, ReplicationConfigIdentifier, ReplicationType, @@ -694,21 +671,19 @@ function create_replication_config( TableMappings, TargetEndpointArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "CreateReplicationConfig", + Dict{String,Any}( + "ComputeConfig" => ComputeConfig, + "ReplicationConfigIdentifier" => ReplicationConfigIdentifier, + "ReplicationType" => ReplicationType, + "SourceEndpointArn" => SourceEndpointArn, + "TableMappings" => TableMappings, + "TargetEndpointArn" => TargetEndpointArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CreateReplicationConfig", - Dict{String,Any}( - "ComputeConfig" => ComputeConfig, - "ReplicationConfigIdentifier" => ReplicationConfigIdentifier, - "ReplicationType" => ReplicationType, - "SourceEndpointArn" => SourceEndpointArn, - "TableMappings" => TableMappings, - "TargetEndpointArn" => TargetEndpointArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_config( ComputeConfig, ReplicationConfigIdentifier, @@ -815,21 +790,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys replication instance. The VPC security group must work with the VPC containing the replication instance. """ -function create_replication_instance( +create_replication_instance( ReplicationInstanceClass, ReplicationInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "CreateReplicationInstance", + Dict{String,Any}( + "ReplicationInstanceClass" => ReplicationInstanceClass, + "ReplicationInstanceIdentifier" => ReplicationInstanceIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CreateReplicationInstance", - Dict{String,Any}( - "ReplicationInstanceClass" => ReplicationInstanceClass, - "ReplicationInstanceIdentifier" => ReplicationInstanceIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_instance( ReplicationInstanceClass, ReplicationInstanceIdentifier, @@ -878,23 +851,21 @@ DMS console, then choose your subnet group. Next, choose Delete from Actions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: One or more tags to be assigned to the subnet group. """ -function create_replication_subnet_group( +create_replication_subnet_group( ReplicationSubnetGroupDescription, ReplicationSubnetGroupIdentifier, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "CreateReplicationSubnetGroup", + Dict{String,Any}( + "ReplicationSubnetGroupDescription" => ReplicationSubnetGroupDescription, + "ReplicationSubnetGroupIdentifier" => ReplicationSubnetGroupIdentifier, + "SubnetIds" => SubnetIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CreateReplicationSubnetGroup", - Dict{String,Any}( - "ReplicationSubnetGroupDescription" => ReplicationSubnetGroupDescription, - "ReplicationSubnetGroupIdentifier" => ReplicationSubnetGroupIdentifier, - "SubnetIds" => SubnetIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_subnet_group( ReplicationSubnetGroupDescription, ReplicationSubnetGroupIdentifier, @@ -979,7 +950,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys certain source and target endpoints. For more information, see Specifying Supplemental Data for Task Settings in the Database Migration Service User Guide. """ -function create_replication_task( +create_replication_task( MigrationType, ReplicationInstanceArn, ReplicationTaskIdentifier, @@ -987,21 +958,19 @@ function create_replication_task( TableMappings, TargetEndpointArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "CreateReplicationTask", + Dict{String,Any}( + "MigrationType" => MigrationType, + "ReplicationInstanceArn" => ReplicationInstanceArn, + "ReplicationTaskIdentifier" => ReplicationTaskIdentifier, + "SourceEndpointArn" => SourceEndpointArn, + "TableMappings" => TableMappings, + "TargetEndpointArn" => TargetEndpointArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "CreateReplicationTask", - Dict{String,Any}( - "MigrationType" => MigrationType, - "ReplicationInstanceArn" => ReplicationInstanceArn, - "ReplicationTaskIdentifier" => ReplicationTaskIdentifier, - "SourceEndpointArn" => SourceEndpointArn, - "TableMappings" => TableMappings, - "TargetEndpointArn" => TargetEndpointArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_task( MigrationType, ReplicationInstanceArn, @@ -1043,16 +1012,13 @@ Deletes the specified certificate. - `certificate_arn`: The Amazon Resource Name (ARN) of the certificate. """ -function delete_certificate( - CertificateArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +delete_certificate(CertificateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DeleteCertificate", Dict{String,Any}("CertificateArn" => CertificateArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_certificate( CertificateArn, params::AbstractDict{String}; @@ -1080,18 +1046,16 @@ Deletes the connection between a replication instance and an endpoint. - `replication_instance_arn`: The Amazon Resource Name (ARN) of the replication instance. """ -function delete_connection( +delete_connection( EndpointArn, ReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteConnection", + Dict{String,Any}( + "EndpointArn" => EndpointArn, "ReplicationInstanceArn" => ReplicationInstanceArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteConnection", - Dict{String,Any}( - "EndpointArn" => EndpointArn, "ReplicationInstanceArn" => ReplicationInstanceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_connection( EndpointArn, ReplicationInstanceArn, @@ -1126,16 +1090,14 @@ provider must be deleted or modified before you can delete the data provider. - `data_provider_identifier`: The identifier of the data provider to delete. """ -function delete_data_provider( +delete_data_provider( DataProviderIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteDataProvider", + Dict{String,Any}("DataProviderIdentifier" => DataProviderIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteDataProvider", - Dict{String,Any}("DataProviderIdentifier" => DataProviderIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_provider( DataProviderIdentifier, params::AbstractDict{String}; @@ -1167,14 +1129,13 @@ before you can delete the endpoint. endpoint. """ -function delete_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +delete_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DeleteEndpoint", Dict{String,Any}("EndpointArn" => EndpointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_endpoint( EndpointArn, params::AbstractDict{String}; @@ -1200,16 +1161,14 @@ end - `subscription_name`: The name of the DMS event notification subscription to be deleted. """ -function delete_event_subscription( +delete_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -1237,16 +1196,14 @@ Deletes the specified Fleet Advisor collector. - `collector_referenced_id`: The reference ID of the Fleet Advisor collector to delete. """ -function delete_fleet_advisor_collector( +delete_fleet_advisor_collector( CollectorReferencedId; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteFleetAdvisorCollector", + Dict{String,Any}("CollectorReferencedId" => CollectorReferencedId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteFleetAdvisorCollector", - Dict{String,Any}("CollectorReferencedId" => CollectorReferencedId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_fleet_advisor_collector( CollectorReferencedId, params::AbstractDict{String}; @@ -1276,16 +1233,14 @@ Deletes the specified Fleet Advisor collector databases. - `database_ids`: The IDs of the Fleet Advisor collector databases to delete. """ -function delete_fleet_advisor_databases( +delete_fleet_advisor_databases( DatabaseIds; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteFleetAdvisorDatabases", + Dict{String,Any}("DatabaseIds" => DatabaseIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteFleetAdvisorDatabases", - Dict{String,Any}("DatabaseIds" => DatabaseIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_fleet_advisor_databases( DatabaseIds, params::AbstractDict{String}; @@ -1312,16 +1267,14 @@ instance profile must be deleted or modified before you can delete the instance - `instance_profile_identifier`: The identifier of the instance profile to delete. """ -function delete_instance_profile( +delete_instance_profile( InstanceProfileIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteInstanceProfile", + Dict{String,Any}("InstanceProfileIdentifier" => InstanceProfileIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteInstanceProfile", - Dict{String,Any}("InstanceProfileIdentifier" => InstanceProfileIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_instance_profile( InstanceProfileIdentifier, params::AbstractDict{String}; @@ -1353,16 +1306,14 @@ can delete it. project to delete. """ -function delete_migration_project( +delete_migration_project( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteMigrationProject", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteMigrationProject", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_migration_project( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -1397,16 +1348,14 @@ replication is in a non-RUNNING and non-STARTING state. - `replication_config_arn`: The replication config to delete. """ -function delete_replication_config( +delete_replication_config( ReplicationConfigArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteReplicationConfig", + Dict{String,Any}("ReplicationConfigArn" => ReplicationConfigArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteReplicationConfig", - Dict{String,Any}("ReplicationConfigArn" => ReplicationConfigArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_config( ReplicationConfigArn, params::AbstractDict{String}; @@ -1438,16 +1387,14 @@ associated with the replication instance before you can delete it. be deleted. """ -function delete_replication_instance( +delete_replication_instance( ReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteReplicationInstance", + Dict{String,Any}("ReplicationInstanceArn" => ReplicationInstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteReplicationInstance", - Dict{String,Any}("ReplicationInstanceArn" => ReplicationInstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_instance( ReplicationInstanceArn, params::AbstractDict{String}; @@ -1477,18 +1424,16 @@ Deletes a subnet group. - `replication_subnet_group_identifier`: The subnet group name of the replication instance. """ -function delete_replication_subnet_group( +delete_replication_subnet_group( ReplicationSubnetGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteReplicationSubnetGroup", + Dict{String,Any}( + "ReplicationSubnetGroupIdentifier" => ReplicationSubnetGroupIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteReplicationSubnetGroup", - Dict{String,Any}( - "ReplicationSubnetGroupIdentifier" => ReplicationSubnetGroupIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_subnet_group( ReplicationSubnetGroupIdentifier, params::AbstractDict{String}; @@ -1521,16 +1466,14 @@ Deletes the specified replication task. deleted. """ -function delete_replication_task( +delete_replication_task( ReplicationTaskArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteReplicationTask", + Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteReplicationTask", - Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_task( ReplicationTaskArn, params::AbstractDict{String}; @@ -1561,18 +1504,14 @@ untouched all information about this assessment run that is stored in your Amazo assessment run to be deleted. """ -function delete_replication_task_assessment_run( +delete_replication_task_assessment_run( ReplicationTaskAssessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DeleteReplicationTaskAssessmentRun", + Dict{String,Any}("ReplicationTaskAssessmentRunArn" => ReplicationTaskAssessmentRunArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DeleteReplicationTaskAssessmentRun", - Dict{String,Any}( - "ReplicationTaskAssessmentRunArn" => ReplicationTaskAssessmentRunArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_task_assessment_run( ReplicationTaskAssessmentRunArn, params::AbstractDict{String}; @@ -1607,11 +1546,10 @@ account identifier to name each artifact used by DMS in the given region. This c not take any parameters. """ -function describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1662,15 +1600,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetEngineName"`: Name of a database engine that the specified replication instance supports as a target. """ -function describe_applicable_individual_assessments(; +describe_applicable_individual_assessments(; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeApplicableIndividualAssessments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeApplicableIndividualAssessments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_applicable_individual_assessments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1699,11 +1635,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. Default: 10 """ -function describe_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1734,11 +1669,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1761,16 +1695,14 @@ Returns configuration parameters for a schema conversion project. conversion project to describe. """ -function describe_conversion_configuration( +describe_conversion_configuration( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeConversionConfiguration", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeConversionConfiguration", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_conversion_configuration( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -1812,11 +1744,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, DMS includes a pagination token in the response so that you can retrieve the remaining results. """ -function describe_data_providers(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_data_providers(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeDataProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_data_providers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1847,16 +1778,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. """ -function describe_endpoint_settings( - EngineName; aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_endpoint_settings(EngineName; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeEndpointSettings", Dict{String,Any}("EngineName" => EngineName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_endpoint_settings( EngineName, params::AbstractDict{String}; @@ -1890,11 +1818,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_endpoint_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_endpoint_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeEndpointTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_endpoint_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1924,11 +1851,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1952,11 +1878,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. """ -function describe_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_engine_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1982,11 +1907,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceType"`: The type of DMS resource that generates events. Valid values: replication-instance | replication-task """ -function describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_event_categories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2020,11 +1944,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Constraints: Minimum 20, maximum 100. - `"SubscriptionName"`: The name of the DMS event subscription to be described. """ -function describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_event_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2062,11 +1985,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys replication-instance | replication-task - `"StartTime"`: The start time for the events to be listed. """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2101,16 +2023,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, DMS includes a pagination token in the response so that you can retrieve the remaining results. """ -function describe_extension_pack_associations( +describe_extension_pack_associations( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeExtensionPackAssociations", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeExtensionPackAssociations", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_extension_pack_associations( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -2152,15 +2072,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_fleet_advisor_collectors(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_fleet_advisor_collectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeFleetAdvisorCollectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_fleet_advisor_collectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2193,15 +2110,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_fleet_advisor_databases(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_fleet_advisor_databases(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeFleetAdvisorDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_fleet_advisor_databases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2228,15 +2142,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_fleet_advisor_lsa_analysis(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_fleet_advisor_lsa_analysis(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeFleetAdvisorLsaAnalysis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_fleet_advisor_lsa_analysis( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2266,15 +2177,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_fleet_advisor_schema_object_summary(; +describe_fleet_advisor_schema_object_summary(; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeFleetAdvisorSchemaObjectSummary"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeFleetAdvisorSchemaObjectSummary"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fleet_advisor_schema_object_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2310,15 +2219,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_fleet_advisor_schemas(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_fleet_advisor_schemas(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeFleetAdvisorSchemas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_fleet_advisor_schemas( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2350,11 +2256,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, DMS includes a pagination token in the response so that you can retrieve the remaining results. """ -function describe_instance_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_instance_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeInstanceProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_instance_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2391,16 +2296,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, DMS includes a pagination token in the response so that you can retrieve the remaining results. """ -function describe_metadata_model_assessments( +describe_metadata_model_assessments( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeMetadataModelAssessments", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeMetadataModelAssessments", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_metadata_model_assessments( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -2445,16 +2348,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, DMS includes a pagination token in the response so that you can retrieve the remaining results. """ -function describe_metadata_model_conversions( +describe_metadata_model_conversions( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeMetadataModelConversions", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeMetadataModelConversions", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_metadata_model_conversions( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -2499,16 +2400,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, DMS includes a pagination token in the response so that you can retrieve the remaining results. """ -function describe_metadata_model_exports_as_script( +describe_metadata_model_exports_as_script( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeMetadataModelExportsAsScript", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeMetadataModelExportsAsScript", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_metadata_model_exports_as_script( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -2553,16 +2452,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, DMS includes a pagination token in the response so that you can retrieve the remaining results. """ -function describe_metadata_model_exports_to_target( +describe_metadata_model_exports_to_target( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeMetadataModelExportsToTarget", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeMetadataModelExportsToTarget", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_metadata_model_exports_to_target( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -2605,16 +2502,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned token and keeping all other arguments unchanged. - `"MaxRecords"`: A paginated list of metadata model imports. """ -function describe_metadata_model_imports( +describe_metadata_model_imports( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeMetadataModelImports", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeMetadataModelImports", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_metadata_model_imports( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -2656,11 +2551,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, DMS includes a pagination token in the response so that you can retrieve the remaining results. """ -function describe_migration_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_migration_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeMigrationProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_migration_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2689,15 +2583,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_orderable_replication_instances(; +describe_orderable_replication_instances(; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeOrderableReplicationInstances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeOrderableReplicationInstances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_orderable_replication_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2727,15 +2619,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Constraints: Minimum 20, maximum 100. - `"ReplicationInstanceArn"`: The Amazon Resource Name (ARN) of the replication instance. """ -function describe_pending_maintenance_actions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_pending_maintenance_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribePendingMaintenanceActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_pending_maintenance_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2767,15 +2656,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_recommendation_limitations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_recommendation_limitations(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeRecommendationLimitations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_recommendation_limitations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2807,11 +2693,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2834,16 +2719,14 @@ Returns the status of the RefreshSchemas operation. endpoint. """ -function describe_refresh_schemas_status( +describe_refresh_schemas_status( EndpointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeRefreshSchemasStatus", + Dict{String,Any}("EndpointArn" => EndpointArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeRefreshSchemasStatus", - Dict{String,Any}("EndpointArn" => EndpointArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_refresh_schemas_status( EndpointArn, params::AbstractDict{String}; @@ -2876,11 +2759,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. """ -function describe_replication_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_replication_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeReplicationConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_replication_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2911,16 +2793,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_replication_instance_task_logs( +describe_replication_instance_task_logs( ReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeReplicationInstanceTaskLogs", + Dict{String,Any}("ReplicationInstanceArn" => ReplicationInstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeReplicationInstanceTaskLogs", - Dict{String,Any}("ReplicationInstanceArn" => ReplicationInstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_replication_instance_task_logs( ReplicationInstanceArn, params::AbstractDict{String}; @@ -2959,15 +2839,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_replication_instances(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_replication_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeReplicationInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_replication_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2997,15 +2874,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_replication_subnet_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +describe_replication_subnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeReplicationSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_replication_subnet_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3037,16 +2911,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. """ -function describe_replication_table_statistics( +describe_replication_table_statistics( ReplicationConfigArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeReplicationTableStatistics", + Dict{String,Any}("ReplicationConfigArn" => ReplicationConfigArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeReplicationTableStatistics", - Dict{String,Any}("ReplicationConfigArn" => ReplicationConfigArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_replication_table_statistics( ReplicationConfigArn, params::AbstractDict{String}; @@ -3088,15 +2960,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the task. When this input parameter is specified, the API returns only one result and ignore the values of the MaxRecords and Marker parameters. """ -function describe_replication_task_assessment_results(; +describe_replication_task_assessment_results(; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeReplicationTaskAssessmentResults"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeReplicationTaskAssessmentResults"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_replication_task_assessment_results( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3130,15 +3000,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. """ -function describe_replication_task_assessment_runs(; +describe_replication_task_assessment_runs(; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeReplicationTaskAssessmentRuns"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeReplicationTaskAssessmentRuns"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_replication_task_assessment_runs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3170,15 +3038,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. """ -function describe_replication_task_individual_assessments(; +describe_replication_task_individual_assessments(; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeReplicationTaskIndividualAssessments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeReplicationTaskIndividualAssessments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_replication_task_individual_assessments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3212,11 +3078,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this to reduce overhead when setting information is too large. To use this option, choose true; otherwise, choose false (the default). """ -function describe_replication_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_replication_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeReplicationTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_replication_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3245,11 +3110,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. """ -function describe_replications(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_replications(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeReplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_replications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3281,14 +3145,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_schemas(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +describe_schemas(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "DescribeSchemas", Dict{String,Any}("EndpointArn" => EndpointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_schemas( EndpointArn, params::AbstractDict{String}; @@ -3329,16 +3192,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 500. """ -function describe_table_statistics( +describe_table_statistics( ReplicationTaskArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "DescribeTableStatistics", + Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "DescribeTableStatistics", - Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_table_statistics( ReplicationTaskArn, params::AbstractDict{String}; @@ -3372,21 +3233,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AssessmentReportTypes"`: The file format of the assessment file. - `"FileName"`: The name of the assessment file to create in your Amazon S3 bucket. """ -function export_metadata_model_assessment( +export_metadata_model_assessment( MigrationProjectIdentifier, SelectionRules; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "ExportMetadataModelAssessment", + Dict{String,Any}( + "MigrationProjectIdentifier" => MigrationProjectIdentifier, + "SelectionRules" => SelectionRules, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ExportMetadataModelAssessment", - Dict{String,Any}( - "MigrationProjectIdentifier" => MigrationProjectIdentifier, - "SelectionRules" => SelectionRules, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_metadata_model_assessment( MigrationProjectIdentifier, SelectionRules, @@ -3429,16 +3288,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys certificate inline. Example: filebase64(\"{path.root}/rds-ca-2019-root.sso\") - `"Tags"`: The tags associated with the certificate. """ -function import_certificate( +import_certificate( CertificateIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ImportCertificate", + Dict{String,Any}("CertificateIdentifier" => CertificateIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ImportCertificate", - Dict{String,Any}("CertificateIdentifier" => CertificateIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_certificate( CertificateIdentifier, params::AbstractDict{String}; @@ -3476,11 +3333,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys also returns each tag's associated ResourceArn value, which is the ARN of the resource for which each listed tag is created. """ -function list_tags_for_resource(; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +list_tags_for_resource(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "ListTagsForResource"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_tags_for_resource( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3503,21 +3359,19 @@ Modifies the specified schema conversion configuration using the provided parame - `migration_project_identifier`: The migration project name or Amazon Resource Name (ARN). """ -function modify_conversion_configuration( +modify_conversion_configuration( ConversionConfiguration, MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "ModifyConversionConfiguration", + Dict{String,Any}( + "ConversionConfiguration" => ConversionConfiguration, + "MigrationProjectIdentifier" => MigrationProjectIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyConversionConfiguration", - Dict{String,Any}( - "ConversionConfiguration" => ConversionConfiguration, - "MigrationProjectIdentifier" => MigrationProjectIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_conversion_configuration( ConversionConfiguration, MigrationProjectIdentifier, @@ -3569,16 +3423,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for settings with different names. - `"Settings"`: The settings in JSON format for a data provider. """ -function modify_data_provider( +modify_data_provider( DataProviderIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ModifyDataProvider", + Dict{String,Any}("DataProviderIdentifier" => DataProviderIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyDataProvider", - Dict{String,Any}("DataProviderIdentifier" => DataProviderIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_data_provider( DataProviderIdentifier, params::AbstractDict{String}; @@ -3712,14 +3564,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimestreamSettings"`: Settings in JSON format for the target Amazon Timestream endpoint. - `"Username"`: The user name to be used to login to the endpoint database. """ -function modify_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) - return database_migration_service( +modify_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "ModifyEndpoint", Dict{String,Any}("EndpointArn" => EndpointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_endpoint( EndpointArn, params::AbstractDict{String}; @@ -3755,16 +3606,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceType"`: The type of DMS resource that generates the events you want to subscribe to. Valid values: replication-instance | replication-task """ -function modify_event_subscription( +modify_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ModifyEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -3817,16 +3666,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroups"`: Specifies the VPC security groups to be used with the instance profile. The VPC security group must work with the VPC containing the instance profile. """ -function modify_instance_profile( +modify_instance_profile( InstanceProfileIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ModifyInstanceProfile", + Dict{String,Any}("InstanceProfileIdentifier" => InstanceProfileIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyInstanceProfile", - Dict{String,Any}("InstanceProfileIdentifier" => InstanceProfileIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_instance_profile( InstanceProfileIdentifier, params::AbstractDict{String}; @@ -3875,16 +3722,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify. For example, you can change an object name to lowercase or uppercase, add or remove a prefix or suffix, or rename objects. """ -function modify_migration_project( +modify_migration_project( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ModifyMigrationProject", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyMigrationProject", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_migration_project( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -3935,16 +3780,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetEndpointArn"`: The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration. """ -function modify_replication_config( +modify_replication_config( ReplicationConfigArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ModifyReplicationConfig", + Dict{String,Any}("ReplicationConfigArn" => ReplicationConfigArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyReplicationConfig", - Dict{String,Any}("ReplicationConfigArn" => ReplicationConfigArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_replication_config( ReplicationConfigArn, params::AbstractDict{String}; @@ -4018,16 +3861,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys replication instance. The VPC security group must work with the VPC containing the replication instance. """ -function modify_replication_instance( +modify_replication_instance( ReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ModifyReplicationInstance", + Dict{String,Any}("ReplicationInstanceArn" => ReplicationInstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyReplicationInstance", - Dict{String,Any}("ReplicationInstanceArn" => ReplicationInstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_replication_instance( ReplicationInstanceArn, params::AbstractDict{String}; @@ -4062,21 +3903,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReplicationSubnetGroupDescription"`: A description for the replication instance subnet group. """ -function modify_replication_subnet_group( +modify_replication_subnet_group( ReplicationSubnetGroupIdentifier, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "ModifyReplicationSubnetGroup", + Dict{String,Any}( + "ReplicationSubnetGroupIdentifier" => ReplicationSubnetGroupIdentifier, + "SubnetIds" => SubnetIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyReplicationSubnetGroup", - Dict{String,Any}( - "ReplicationSubnetGroupIdentifier" => ReplicationSubnetGroupIdentifier, - "SubnetIds" => SubnetIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_replication_subnet_group( ReplicationSubnetGroupIdentifier, SubnetIds, @@ -4147,16 +3986,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys certain source and target endpoints. For more information, see Specifying Supplemental Data for Task Settings in the Database Migration Service User Guide. """ -function modify_replication_task( +modify_replication_task( ReplicationTaskArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ModifyReplicationTask", + Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ModifyReplicationTask", - Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_replication_task( ReplicationTaskArn, params::AbstractDict{String}; @@ -4188,21 +4025,19 @@ be created with the same or later DMS version as the current replication instanc move the task to. """ -function move_replication_task( +move_replication_task( ReplicationTaskArn, TargetReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "MoveReplicationTask", + Dict{String,Any}( + "ReplicationTaskArn" => ReplicationTaskArn, + "TargetReplicationInstanceArn" => TargetReplicationInstanceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "MoveReplicationTask", - Dict{String,Any}( - "ReplicationTaskArn" => ReplicationTaskArn, - "TargetReplicationInstanceArn" => TargetReplicationInstanceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function move_replication_task( ReplicationTaskArn, TargetReplicationInstanceArn, @@ -4246,16 +4081,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the failover. If the instance isn''t configured for Multi-AZ, then you can't specify true. ( --force-planned-failover and --force-failover can't both be set to true.) """ -function reboot_replication_instance( +reboot_replication_instance( ReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "RebootReplicationInstance", + Dict{String,Any}("ReplicationInstanceArn" => ReplicationInstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "RebootReplicationInstance", - Dict{String,Any}("ReplicationInstanceArn" => ReplicationInstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_replication_instance( ReplicationInstanceArn, params::AbstractDict{String}; @@ -4289,18 +4122,16 @@ DescribeRefreshSchemasStatus operation. - `replication_instance_arn`: The Amazon Resource Name (ARN) of the replication instance. """ -function refresh_schemas( +refresh_schemas( EndpointArn, ReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "RefreshSchemas", + Dict{String,Any}( + "EndpointArn" => EndpointArn, "ReplicationInstanceArn" => ReplicationInstanceArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "RefreshSchemas", - Dict{String,Any}( - "EndpointArn" => EndpointArn, "ReplicationInstanceArn" => ReplicationInstanceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function refresh_schemas( EndpointArn, ReplicationInstanceArn, @@ -4343,19 +4174,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys re-validate it if validation is enabled. Specify validate-only to re-validate the table. This option applies only when validation is enabled for the replication. """ -function reload_replication_tables( +reload_replication_tables( ReplicationConfigArn, TablesToReload; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ReloadReplicationTables", + Dict{String,Any}( + "ReplicationConfigArn" => ReplicationConfigArn, + "TablesToReload" => TablesToReload, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ReloadReplicationTables", - Dict{String,Any}( - "ReplicationConfigArn" => ReplicationConfigArn, - "TablesToReload" => TablesToReload, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reload_replication_tables( ReplicationConfigArn, TablesToReload, @@ -4398,18 +4227,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This option applies only when validation is enabled for the task. Valid values: data-reload, validate-only Default value is data-reload. """ -function reload_tables( +reload_tables( ReplicationTaskArn, TablesToReload; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "ReloadTables", + Dict{String,Any}( + "ReplicationTaskArn" => ReplicationTaskArn, "TablesToReload" => TablesToReload + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "ReloadTables", - Dict{String,Any}( - "ReplicationTaskArn" => ReplicationTaskArn, "TablesToReload" => TablesToReload - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reload_tables( ReplicationTaskArn, TablesToReload, @@ -4446,16 +4273,14 @@ subnet group, and migration task. For more information, see Tag data type desc - `tag_keys`: The tag key (name) of the tag to be removed. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "RemoveTagsFromResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "RemoveTagsFromResource", - Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceArn, TagKeys, @@ -4483,13 +4308,10 @@ end Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account. """ -function run_fleet_advisor_lsa_analysis(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +run_fleet_advisor_lsa_analysis(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "RunFleetAdvisorLsaAnalysis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function run_fleet_advisor_lsa_analysis( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4513,16 +4335,14 @@ objects to the target database. - `migration_project_identifier`: The migration project name or Amazon Resource Name (ARN). """ -function start_extension_pack_association( +start_extension_pack_association( MigrationProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "StartExtensionPackAssociation", + Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartExtensionPackAssociation", - Dict{String,Any}("MigrationProjectIdentifier" => MigrationProjectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_extension_pack_association( MigrationProjectIdentifier, params::AbstractDict{String}; @@ -4558,21 +4378,19 @@ converted to the database engine of your target database instance. - `selection_rules`: A value that specifies the database objects to assess. """ -function start_metadata_model_assessment( +start_metadata_model_assessment( MigrationProjectIdentifier, SelectionRules; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "StartMetadataModelAssessment", + Dict{String,Any}( + "MigrationProjectIdentifier" => MigrationProjectIdentifier, + "SelectionRules" => SelectionRules, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartMetadataModelAssessment", - Dict{String,Any}( - "MigrationProjectIdentifier" => MigrationProjectIdentifier, - "SelectionRules" => SelectionRules, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_metadata_model_assessment( MigrationProjectIdentifier, SelectionRules, @@ -4607,21 +4425,19 @@ Converts your source database objects to a format compatible with the target dat - `selection_rules`: A value that specifies the database objects to convert. """ -function start_metadata_model_conversion( +start_metadata_model_conversion( MigrationProjectIdentifier, SelectionRules; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "StartMetadataModelConversion", + Dict{String,Any}( + "MigrationProjectIdentifier" => MigrationProjectIdentifier, + "SelectionRules" => SelectionRules, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartMetadataModelConversion", - Dict{String,Any}( - "MigrationProjectIdentifier" => MigrationProjectIdentifier, - "SelectionRules" => SelectionRules, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_metadata_model_conversion( MigrationProjectIdentifier, SelectionRules, @@ -4661,23 +4477,21 @@ bucket. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"FileName"`: The name of the model file to create in the Amazon S3 bucket. """ -function start_metadata_model_export_as_script( +start_metadata_model_export_as_script( MigrationProjectIdentifier, Origin, SelectionRules; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "StartMetadataModelExportAsScript", + Dict{String,Any}( + "MigrationProjectIdentifier" => MigrationProjectIdentifier, + "Origin" => Origin, + "SelectionRules" => SelectionRules, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartMetadataModelExportAsScript", - Dict{String,Any}( - "MigrationProjectIdentifier" => MigrationProjectIdentifier, - "Origin" => Origin, - "SelectionRules" => SelectionRules, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_metadata_model_export_as_script( MigrationProjectIdentifier, Origin, @@ -4719,21 +4533,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys extension pack is an add-on module that emulates functions present in a source database that are required when converting objects to the target database. """ -function start_metadata_model_export_to_target( +start_metadata_model_export_to_target( MigrationProjectIdentifier, SelectionRules; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "StartMetadataModelExportToTarget", + Dict{String,Any}( + "MigrationProjectIdentifier" => MigrationProjectIdentifier, + "SelectionRules" => SelectionRules, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartMetadataModelExportToTarget", - Dict{String,Any}( - "MigrationProjectIdentifier" => MigrationProjectIdentifier, - "SelectionRules" => SelectionRules, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_metadata_model_export_to_target( MigrationProjectIdentifier, SelectionRules, @@ -4774,23 +4586,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Refresh"`: If true, DMS loads metadata for the specified objects from the source database. """ -function start_metadata_model_import( +start_metadata_model_import( MigrationProjectIdentifier, Origin, SelectionRules; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "StartMetadataModelImport", + Dict{String,Any}( + "MigrationProjectIdentifier" => MigrationProjectIdentifier, + "Origin" => Origin, + "SelectionRules" => SelectionRules, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartMetadataModelImport", - Dict{String,Any}( - "MigrationProjectIdentifier" => MigrationProjectIdentifier, - "Origin" => Origin, - "SelectionRules" => SelectionRules, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_metadata_model_import( MigrationProjectIdentifier, Origin, @@ -4835,16 +4645,14 @@ BatchStartRecommendations. Dev/Test (Single-AZ deployments). """ -function start_recommendations( +start_recommendations( DatabaseId, Settings; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "StartRecommendations", + Dict{String,Any}("DatabaseId" => DatabaseId, "Settings" => Settings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartRecommendations", - Dict{String,Any}("DatabaseId" => DatabaseId, "Settings" => Settings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_recommendations( DatabaseId, Settings, @@ -4892,21 +4700,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CdcStopPosition"`: Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time. """ -function start_replication( +start_replication( ReplicationConfigArn, StartReplicationType; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "StartReplication", + Dict{String,Any}( + "ReplicationConfigArn" => ReplicationConfigArn, + "StartReplicationType" => StartReplicationType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartReplication", - Dict{String,Any}( - "ReplicationConfigArn" => ReplicationConfigArn, - "StartReplicationType" => StartReplicationType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_replication( ReplicationConfigArn, StartReplicationType, @@ -4973,21 +4779,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys --cdc-stop-position “server_time:2018-02-09T12:12:12” Commit time example: --cdc-stop-position “commit_time:2018-02-09T12:12:12“ """ -function start_replication_task( +start_replication_task( ReplicationTaskArn, StartReplicationTaskType; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "StartReplicationTask", + Dict{String,Any}( + "ReplicationTaskArn" => ReplicationTaskArn, + "StartReplicationTaskType" => StartReplicationTaskType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartReplicationTask", - Dict{String,Any}( - "ReplicationTaskArn" => ReplicationTaskArn, - "StartReplicationTaskType" => StartReplicationTaskType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_replication_task( ReplicationTaskArn, StartReplicationTaskType, @@ -5026,16 +4830,14 @@ report in the Database Migration Service User Guide. - `replication_task_arn`: The Amazon Resource Name (ARN) of the replication task. """ -function start_replication_task_assessment( +start_replication_task_assessment( ReplicationTaskArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "StartReplicationTaskAssessment", + Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartReplicationTaskAssessment", - Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_replication_task_assessment( ReplicationTaskArn, params::AbstractDict{String}; @@ -5101,25 +4903,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResultLocationFolder"`: Folder within an Amazon S3 bucket where you want DMS to store the results of this assessment run. """ -function start_replication_task_assessment_run( +start_replication_task_assessment_run( AssessmentRunName, ReplicationTaskArn, ResultLocationBucket, ServiceAccessRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = database_migration_service( + "StartReplicationTaskAssessmentRun", + Dict{String,Any}( + "AssessmentRunName" => AssessmentRunName, + "ReplicationTaskArn" => ReplicationTaskArn, + "ResultLocationBucket" => ResultLocationBucket, + "ServiceAccessRoleArn" => ServiceAccessRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StartReplicationTaskAssessmentRun", - Dict{String,Any}( - "AssessmentRunName" => AssessmentRunName, - "ReplicationTaskArn" => ReplicationTaskArn, - "ResultLocationBucket" => ResultLocationBucket, - "ServiceAccessRoleArn" => ServiceAccessRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_replication_task_assessment_run( AssessmentRunName, ReplicationTaskArn, @@ -5158,16 +4958,13 @@ Serverless replications. This command doesn't deprovision the stopped replicatio - `replication_config_arn`: The Amazon Resource Name of the replication to stop. """ -function stop_replication( - ReplicationConfigArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +stop_replication(ReplicationConfigArn; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "StopReplication", Dict{String,Any}("ReplicationConfigArn" => ReplicationConfigArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_replication( ReplicationConfigArn, params::AbstractDict{String}; @@ -5198,16 +4995,14 @@ Stops the replication task. stopped. """ -function stop_replication_task( +stop_replication_task( ReplicationTaskArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "StopReplicationTask", + Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "StopReplicationTask", - Dict{String,Any}("ReplicationTaskArn" => ReplicationTaskArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_replication_task( ReplicationTaskArn, params::AbstractDict{String}; @@ -5237,18 +5032,16 @@ Tests the connection between the replication instance and the endpoint. - `replication_instance_arn`: The Amazon Resource Name (ARN) of the replication instance. """ -function test_connection( +test_connection( EndpointArn, ReplicationInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = database_migration_service( + "TestConnection", + Dict{String,Any}( + "EndpointArn" => EndpointArn, "ReplicationInstanceArn" => ReplicationInstanceArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return database_migration_service( - "TestConnection", - Dict{String,Any}( - "EndpointArn" => EndpointArn, "ReplicationInstanceArn" => ReplicationInstanceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_connection( EndpointArn, ReplicationInstanceArn, @@ -5294,15 +5087,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys false, this operation runs only when all your replication instances are from DMS version 3.4.5 or higher. """ -function update_subscriptions_to_event_bridge(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return database_migration_service( +update_subscriptions_to_event_bridge(; aws_config::AbstractAWSConfig=current_aws_config()) = + database_migration_service( "UpdateSubscriptionsToEventBridge"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_subscriptions_to_event_bridge( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/databrew.jl b/src/services/databrew.jl index 800e45555..79f90cb5a 100644 --- a/src/services/databrew.jl +++ b/src/services/databrew.jl @@ -25,17 +25,15 @@ LATEST_WORKING will be listed as partial failure in the response. - `name`: The name of the recipe whose versions are to be deleted. """ -function batch_delete_recipe_version( +batch_delete_recipe_version( RecipeVersions, name; aws_config::AbstractAWSConfig=current_aws_config() +) = databrew( + "POST", + "/recipes/$(name)/batchDeleteRecipeVersion", + Dict{String,Any}("RecipeVersions" => RecipeVersions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return databrew( - "POST", - "/recipes/$(name)/batchDeleteRecipeVersion", - Dict{String,Any}("RecipeVersions" => RecipeVersions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_recipe_version( RecipeVersions, name, @@ -72,15 +70,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of the dataset. - `"Tags"`: Metadata tags to apply to this dataset. """ -function create_dataset(Input, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "POST", - "/datasets", - Dict{String,Any}("Input" => Input, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_dataset(Input, Name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "POST", + "/datasets", + Dict{String,Any}("Input" => Input, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_dataset( Input, Name, @@ -137,26 +133,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ValidationConfigurations"`: List of validation configurations that are applied to the profile job. """ -function create_profile_job( +create_profile_job( DatasetName, Name, OutputLocation, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = databrew( + "POST", + "/profileJobs", + Dict{String,Any}( + "DatasetName" => DatasetName, + "Name" => Name, + "OutputLocation" => OutputLocation, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return databrew( - "POST", - "/profileJobs", - Dict{String,Any}( - "DatasetName" => DatasetName, - "Name" => Name, - "OutputLocation" => OutputLocation, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_profile_job( DatasetName, Name, @@ -204,26 +198,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Sample"`: - `"Tags"`: Metadata tags to apply to this project. """ -function create_project( +create_project( DatasetName, Name, RecipeName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = databrew( + "POST", + "/projects", + Dict{String,Any}( + "DatasetName" => DatasetName, + "Name" => Name, + "RecipeName" => RecipeName, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return databrew( - "POST", - "/projects", - Dict{String,Any}( - "DatasetName" => DatasetName, - "Name" => Name, - "RecipeName" => RecipeName, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_project( DatasetName, Name, @@ -269,15 +261,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description for the recipe. - `"Tags"`: Metadata tags to apply to this recipe. """ -function create_recipe(Name, Steps; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "POST", - "/recipes", - Dict{String,Any}("Name" => Name, "Steps" => Steps); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_recipe(Name, Steps; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "POST", + "/recipes", + Dict{String,Any}("Name" => Name, "Steps" => Steps); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_recipe( Name, Steps, @@ -333,17 +323,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Timeout"`: The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of TIMEOUT. """ -function create_recipe_job( - Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return databrew( +create_recipe_job(Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "POST", "/recipeJobs", Dict{String,Any}("Name" => Name, "RoleArn" => RoleArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_recipe_job( Name, RoleArn, @@ -383,17 +370,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the ruleset. - `"Tags"`: Metadata tags to apply to the ruleset. """ -function create_ruleset( - Name, Rules, TargetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return databrew( +create_ruleset(Name, Rules, TargetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "POST", "/rulesets", Dict{String,Any}("Name" => Name, "Rules" => Rules, "TargetArn" => TargetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_ruleset( Name, Rules, @@ -436,17 +420,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"JobNames"`: The name or names of one or more jobs to be run. - `"Tags"`: Metadata tags to apply to this schedule. """ -function create_schedule( - CronExpression, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return databrew( +create_schedule(CronExpression, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "POST", "/schedules", Dict{String,Any}("CronExpression" => CronExpression, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_schedule( CronExpression, Name, @@ -478,14 +459,12 @@ Deletes a dataset from DataBrew. - `name`: The name of the dataset to be deleted. """ -function delete_dataset(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "DELETE", - "/datasets/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_dataset(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "DELETE", + "/datasets/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_dataset( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -508,11 +487,9 @@ Deletes the specified DataBrew job. - `name`: The name of the job to be deleted. """ -function delete_job(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "DELETE", "/jobs/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_job(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "DELETE", "/jobs/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_job( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -535,14 +512,12 @@ Deletes an existing DataBrew project. - `name`: The name of the project to be deleted. """ -function delete_project(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "DELETE", - "/projects/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_project(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "DELETE", + "/projects/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_project( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -567,16 +542,14 @@ Deletes a single version of a DataBrew recipe. versions (X.Y) or LATEST_WORKING. LATEST_PUBLISHED is not supported. """ -function delete_recipe_version( +delete_recipe_version( name, recipeVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = databrew( + "DELETE", + "/recipes/$(name)/recipeVersion/$(recipeVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return databrew( - "DELETE", - "/recipes/$(name)/recipeVersion/$(recipeVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_recipe_version( name, recipeVersion, @@ -602,14 +575,12 @@ Deletes a ruleset. - `name`: The name of the ruleset to be deleted. """ -function delete_ruleset(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "DELETE", - "/rulesets/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_ruleset(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "DELETE", + "/rulesets/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_ruleset( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -632,14 +603,12 @@ Deletes the specified DataBrew schedule. - `name`: The name of the schedule to be deleted. """ -function delete_schedule(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "DELETE", - "/schedules/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_schedule(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "DELETE", + "/schedules/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_schedule( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -662,11 +631,9 @@ Returns the definition of a specific DataBrew dataset. - `name`: The name of the dataset to be described. """ -function describe_dataset(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/datasets/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dataset(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "GET", "/datasets/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dataset( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -689,11 +656,8 @@ Returns the definition of a specific DataBrew job. - `name`: The name of the job to be described. """ -function describe_job(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/jobs/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_job(name; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew("GET", "/jobs/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_job( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -717,14 +681,13 @@ Represents one run of a DataBrew job. - `run_id`: The unique identifier of the job run. """ -function describe_job_run(name, runId; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( +describe_job_run(name, runId; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "GET", "/jobs/$(name)/jobRun/$(runId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_job_run( name, runId, @@ -750,11 +713,9 @@ Returns the definition of a specific DataBrew project. - `name`: The name of the project to be described. """ -function describe_project(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/projects/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_project(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "GET", "/projects/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_project( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -781,11 +742,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"recipeVersion"`: The recipe version identifier. If this parameter isn't specified, then the latest published version is returned. """ -function describe_recipe(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/recipes/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_recipe(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "GET", "/recipes/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_recipe( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -808,11 +767,9 @@ Retrieves detailed information about the ruleset. - `name`: The name of the ruleset to be described. """ -function describe_ruleset(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/rulesets/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_ruleset(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "GET", "/rulesets/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_ruleset( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -835,11 +792,9 @@ Returns the definition of a specific DataBrew schedule. - `name`: The name of the schedule to be described. """ -function describe_schedule(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/schedules/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_schedule(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "GET", "/schedules/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_schedule( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -863,11 +818,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/datasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew("GET", "/datasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_datasets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -890,14 +842,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_job_runs(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", - "/jobs/$(name)/jobRuns"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_job_runs(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "GET", + "/jobs/$(name)/jobRuns"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_job_runs( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -927,9 +877,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"projectName"`: The name of a project. Using this parameter indicates to return only those jobs that are associated with the specified project. """ -function list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew("GET", "/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew("GET", "/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -949,11 +898,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew("GET", "/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -976,15 +922,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_recipe_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", - "/recipeVersions", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_recipe_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "GET", + "/recipeVersions", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_recipe_versions( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1011,11 +955,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys or LATEST_PUBLISHED. If RecipeVersion is omitted, ListRecipes returns all of the LATEST_PUBLISHED recipe versions. Valid values: LATEST_WORKING | LATEST_PUBLISHED """ -function list_recipes(; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/recipes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_recipes(; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew("GET", "/recipes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_recipes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1041,11 +982,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter indicates to return only those rulesets that are associated with the specified resource. """ -function list_rulesets(; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/rulesets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rulesets(; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew("GET", "/rulesets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rulesets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1066,11 +1004,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_schedules(; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "GET", "/schedules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_schedules(; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew("GET", "/schedules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_schedules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1090,16 +1025,13 @@ Lists all the tags for a DataBrew resource. DataBrew resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return databrew( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1128,14 +1060,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the recipe to be published, for this version of the recipe. """ -function publish_recipe(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "POST", - "/recipes/$(name)/publishRecipe"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +publish_recipe(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "POST", + "/recipes/$(name)/publishRecipe"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function publish_recipe( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1168,16 +1098,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys earlier in the view frame stack. - `"ViewFrame"`: """ -function send_project_session_action( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return databrew( +send_project_session_action(name; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "PUT", "/projects/$(name)/sendProjectSessionAction"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_project_session_action( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1200,14 +1127,12 @@ Runs a DataBrew job. - `name`: The name of the job to be run. """ -function start_job_run(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "POST", - "/jobs/$(name)/startJobRun"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_job_run(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "POST", + "/jobs/$(name)/startJobRun"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_job_run( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1234,14 +1159,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AssumeControl"`: A value that, if true, enables you to take control of a session, even if a different client is currently accessing the project. """ -function start_project_session(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "PUT", - "/projects/$(name)/startProjectSession"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_project_session(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "PUT", + "/projects/$(name)/startProjectSession"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_project_session( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1265,14 +1188,12 @@ Stops a particular run of a job. - `run_id`: The ID of the job run to be stopped. """ -function stop_job_run(name, runId; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "POST", - "/jobs/$(name)/jobRun/$(runId)/stopJobRun"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_job_run(name, runId; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "POST", + "/jobs/$(name)/jobRun/$(runId)/stopJobRun"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_job_run( name, runId, @@ -1302,15 +1223,14 @@ schedule. - `tags`: One or more tags to be assigned to the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1338,17 +1258,14 @@ Removes metadata tags from a DataBrew resource. - `tag_keys`: The tag keys (names) of one or more tags to be removed. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return databrew( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1381,15 +1298,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PathOptions"`: A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset. """ -function update_dataset(Input, name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "PUT", - "/datasets/$(name)", - Dict{String,Any}("Input" => Input); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_dataset(Input, name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "PUT", + "/datasets/$(name)", + Dict{String,Any}("Input" => Input); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_dataset( Input, name, @@ -1441,17 +1356,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ValidationConfigurations"`: List of validation configurations that are applied to the profile job. """ -function update_profile_job( +update_profile_job( OutputLocation, RoleArn, name; aws_config::AbstractAWSConfig=current_aws_config() +) = databrew( + "PUT", + "/profileJobs/$(name)", + Dict{String,Any}("OutputLocation" => OutputLocation, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return databrew( - "PUT", - "/profileJobs/$(name)", - Dict{String,Any}("OutputLocation" => OutputLocation, "RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_profile_job( OutputLocation, RoleArn, @@ -1488,15 +1401,14 @@ Modifies the definition of an existing DataBrew project. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Sample"`: """ -function update_project(RoleArn, name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( +update_project(RoleArn, name; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "PUT", "/projects/$(name)", Dict{String,Any}("RoleArn" => RoleArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_project( RoleArn, name, @@ -1527,11 +1439,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Steps"`: One or more steps to be performed by the recipe. Each step consists of an action, and the conditions under which the action should succeed. """ -function update_recipe(name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "PUT", "/recipes/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_recipe(name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "PUT", "/recipes/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_recipe( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1575,17 +1485,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Timeout"`: The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of TIMEOUT. """ -function update_recipe_job( - RoleArn, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return databrew( +update_recipe_job(RoleArn, name; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "PUT", "/recipeJobs/$(name)", Dict{String,Any}("RoleArn" => RoleArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_recipe_job( RoleArn, name, @@ -1616,15 +1523,13 @@ Updates specified ruleset. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The description of the ruleset. """ -function update_ruleset(Rules, name; aws_config::AbstractAWSConfig=current_aws_config()) - return databrew( - "PUT", - "/rulesets/$(name)", - Dict{String,Any}("Rules" => Rules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_ruleset(Rules, name; aws_config::AbstractAWSConfig=current_aws_config()) = databrew( + "PUT", + "/rulesets/$(name)", + Dict{String,Any}("Rules" => Rules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_ruleset( Rules, name, @@ -1655,17 +1560,14 @@ Modifies the definition of an existing DataBrew schedule. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"JobNames"`: The name or names of one or more jobs to be run for this schedule. """ -function update_schedule( - CronExpression, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return databrew( +update_schedule(CronExpression, name; aws_config::AbstractAWSConfig=current_aws_config()) = + databrew( "PUT", "/schedules/$(name)", Dict{String,Any}("CronExpression" => CronExpression); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_schedule( CronExpression, name, diff --git a/src/services/dataexchange.jl b/src/services/dataexchange.jl index b1b3b8330..35570688f 100644 --- a/src/services/dataexchange.jl +++ b/src/services/dataexchange.jl @@ -14,14 +14,12 @@ This operation cancels a job. Jobs can be cancelled only when they are in the WA - `job_id`: The unique identifier for a job. """ -function cancel_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( - "DELETE", - "/v1/jobs/$(JobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = dataexchange( + "DELETE", + "/v1/jobs/$(JobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -53,19 +51,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions. """ -function create_data_set( +create_data_set( AssetType, Description, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = dataexchange( + "POST", + "/v1/data-sets", + Dict{String,Any}( + "AssetType" => AssetType, "Description" => Description, "Name" => Name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dataexchange( - "POST", - "/v1/data-sets", - Dict{String,Any}( - "AssetType" => AssetType, "Description" => Description, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_set( AssetType, Description, @@ -101,17 +97,14 @@ This operation creates an event action. - `event`: What occurs to start an action. """ -function create_event_action( - Action, Event; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +create_event_action(Action, Event; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "POST", "/v1/event-actions", Dict{String,Any}("Action" => Action, "Event" => Event); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_event_action( Action, Event, @@ -142,15 +135,14 @@ This operation creates a job. - `type`: The type of job to be created. """ -function create_job(Details, Type; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( +create_job(Details, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "POST", "/v1/jobs", Dict{String,Any}("Details" => Details, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_job( Details, Type, @@ -187,14 +179,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions. """ -function create_revision(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( +create_revision(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "POST", "/v1/data-sets/$(DataSetId)/revisions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_revision( DataSetId, params::AbstractDict{String}; @@ -221,16 +212,14 @@ This operation deletes an asset. - `revision_id`: The unique identifier for a revision. """ -function delete_asset( +delete_asset( AssetId, DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config() +) = dataexchange( + "DELETE", + "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/assets/$(AssetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dataexchange( - "DELETE", - "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/assets/$(AssetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_asset( AssetId, DataSetId, @@ -257,14 +246,13 @@ This operation deletes a data set. - `data_set_id`: The unique identifier for a data set. """ -function delete_data_set(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( +delete_data_set(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "DELETE", "/v1/data-sets/$(DataSetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_data_set( DataSetId, params::AbstractDict{String}; @@ -289,16 +277,13 @@ This operation deletes the event action. - `event_action_id`: The unique identifier for the event action. """ -function delete_event_action( - EventActionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +delete_event_action(EventActionId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "DELETE", "/v1/event-actions/$(EventActionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_event_action( EventActionId, params::AbstractDict{String}; @@ -324,16 +309,13 @@ This operation deletes a revision. - `revision_id`: The unique identifier for a revision. """ -function delete_revision( - DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +delete_revision(DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "DELETE", "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_revision( DataSetId, RevisionId, @@ -361,16 +343,14 @@ This operation returns information about an asset. - `revision_id`: The unique identifier for a revision. """ -function get_asset( +get_asset( AssetId, DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config() +) = dataexchange( + "GET", + "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/assets/$(AssetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dataexchange( - "GET", - "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/assets/$(AssetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_asset( AssetId, DataSetId, @@ -397,14 +377,12 @@ This operation returns information about a data set. - `data_set_id`: The unique identifier for a data set. """ -function get_data_set(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( - "GET", - "/v1/data-sets/$(DataSetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_data_set(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) = dataexchange( + "GET", + "/v1/data-sets/$(DataSetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_data_set( DataSetId, params::AbstractDict{String}; @@ -429,14 +407,13 @@ This operation retrieves information about an event action. - `event_action_id`: The unique identifier for the event action. """ -function get_event_action(EventActionId; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( +get_event_action(EventActionId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "GET", "/v1/event-actions/$(EventActionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_event_action( EventActionId, params::AbstractDict{String}; @@ -461,11 +438,9 @@ This operation returns information about a job. - `job_id`: The unique identifier for a job. """ -function get_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( - "GET", "/v1/jobs/$(JobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = dataexchange( + "GET", "/v1/jobs/$(JobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -489,16 +464,13 @@ This operation returns information about a revision. - `revision_id`: The unique identifier for a revision. """ -function get_revision( - DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +get_revision(DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "GET", "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_revision( DataSetId, RevisionId, @@ -529,16 +501,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_data_set_revisions( - DataSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +list_data_set_revisions(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "GET", "/v1/data-sets/$(DataSetId)/revisions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_data_set_revisions( DataSetId, params::AbstractDict{String}; @@ -569,11 +538,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"origin"`: A property that defines the data set as OWNED by the account (for providers) or ENTITLED to the account (for subscribers). """ -function list_data_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( - "GET", "/v1/data-sets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_data_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = dataexchange( + "GET", "/v1/data-sets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_data_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -599,11 +566,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_event_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( - "GET", "/v1/event-actions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_event_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = dataexchange( + "GET", "/v1/event-actions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_event_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -630,11 +595,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"revisionId"`: The unique identifier for a revision. """ -function list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( - "GET", "/v1/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange("GET", "/v1/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -659,16 +621,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token value retrieved from a previous call to access the next page of results. """ -function list_revision_assets( +list_revision_assets( DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config() +) = dataexchange( + "GET", + "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/assets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dataexchange( - "GET", - "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/assets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_revision_assets( DataSetId, RevisionId, @@ -694,16 +654,13 @@ This operation lists the tags on the resource. - `resource_arn`: An Amazon Resource Name (ARN) that uniquely identifies an AWS resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -731,20 +688,18 @@ This operation revokes subscribers' access to a revision. to the revision was revoked. """ -function revoke_revision( +revoke_revision( DataSetId, RevisionId, RevocationComment; aws_config::AbstractAWSConfig=current_aws_config(), +) = dataexchange( + "POST", + "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/revoke", + Dict{String,Any}("RevocationComment" => RevocationComment); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dataexchange( - "POST", - "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/revoke", - Dict{String,Any}("RevocationComment" => RevocationComment); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_revision( DataSetId, RevisionId, @@ -791,26 +746,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amzn-dataexchange-path"`: URI path value for the API request. Alternatively, you can set the URI path directly by invoking /v1/{pathValue}. """ -function send_api_asset( +send_api_asset( x_amzn_dataexchange_asset_id, x_amzn_dataexchange_data_set_id, x_amzn_dataexchange_revision_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = dataexchange( + "POST", + "/v1", + Dict{String,Any}( + "headers" => Dict{String,Any}( + "x-amzn-dataexchange-asset-id" => x_amzn_dataexchange_asset_id, + "x-amzn-dataexchange-data-set-id" => x_amzn_dataexchange_data_set_id, + "x-amzn-dataexchange-revision-id" => x_amzn_dataexchange_revision_id, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dataexchange( - "POST", - "/v1", - Dict{String,Any}( - "headers" => Dict{String,Any}( - "x-amzn-dataexchange-asset-id" => x_amzn_dataexchange_asset_id, - "x-amzn-dataexchange-data-set-id" => x_amzn_dataexchange_data_set_id, - "x-amzn-dataexchange-revision-id" => x_amzn_dataexchange_revision_id, - ), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_api_asset( x_amzn_dataexchange_asset_id, x_amzn_dataexchange_data_set_id, @@ -862,17 +815,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Scope"`: Affected scope of this notification such as the underlying resources affected by the notification event. """ -function send_data_set_notification( +send_data_set_notification( DataSetId, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = dataexchange( + "POST", + "/v1/data-sets/$(DataSetId)/notification", + Dict{String,Any}("Type" => Type, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dataexchange( - "POST", - "/v1/data-sets/$(DataSetId)/notification", - Dict{String,Any}("Type" => Type, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_data_set_notification( DataSetId, Type, @@ -904,11 +855,9 @@ This operation starts a job. - `job_id`: The unique identifier for a job. """ -function start_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( - "PATCH", "/v1/jobs/$(JobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +start_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = dataexchange( + "PATCH", "/v1/jobs/$(JobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function start_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -932,15 +881,14 @@ This operation tags a resource. - `tags`: A label that consists of a customer-defined key and an optional value. """ -function tag_resource(ResourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( +tag_resource(ResourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, tags, @@ -967,17 +915,14 @@ This operation removes one or more tags from a resource. - `tag_keys`: The key tags. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1012,17 +957,15 @@ This operation updates an asset. - `revision_id`: The unique identifier for a revision. """ -function update_asset( +update_asset( AssetId, DataSetId, Name, RevisionId; aws_config::AbstractAWSConfig=current_aws_config() +) = dataexchange( + "PATCH", + "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/assets/$(AssetId)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dataexchange( - "PATCH", - "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)/assets/$(AssetId)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_asset( AssetId, DataSetId, @@ -1054,14 +997,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description for the data set. - `"Name"`: The name of the data set. """ -function update_data_set(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return dataexchange( +update_data_set(DataSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "PATCH", "/v1/data-sets/$(DataSetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_data_set( DataSetId, params::AbstractDict{String}; @@ -1089,16 +1031,13 @@ This operation updates the event action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Action"`: What occurs after a certain event. """ -function update_event_action( - EventActionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +update_event_action(EventActionId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "PATCH", "/v1/event-actions/$(EventActionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_event_action( EventActionId, params::AbstractDict{String}; @@ -1130,16 +1069,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys assets in the revision are complete. After it's in this read-only state, you can publish the revision to your products. """ -function update_revision( - DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return dataexchange( +update_revision(DataSetId, RevisionId; aws_config::AbstractAWSConfig=current_aws_config()) = + dataexchange( "PATCH", "/v1/data-sets/$(DataSetId)/revisions/$(RevisionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_revision( DataSetId, RevisionId, diff --git a/src/services/datasync.jl b/src/services/datasync.jl index 61c76ad24..4140b0545 100644 --- a/src/services/datasync.jl +++ b/src/services/datasync.jl @@ -35,27 +35,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services resources. We recommend creating at least a name tag for your on-premises storage system. """ -function add_storage_system( +add_storage_system( AgentArns, ClientToken, Credentials, ServerConfiguration, SystemType; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "AddStorageSystem", + Dict{String,Any}( + "AgentArns" => AgentArns, + "ClientToken" => ClientToken, + "Credentials" => Credentials, + "ServerConfiguration" => ServerConfiguration, + "SystemType" => SystemType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "AddStorageSystem", - Dict{String,Any}( - "AgentArns" => AgentArns, - "ClientToken" => ClientToken, - "Credentials" => Credentials, - "ServerConfiguration" => ServerConfiguration, - "SystemType" => SystemType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_storage_system( AgentArns, ClientToken, @@ -101,16 +99,14 @@ start the next task execution. - `task_execution_arn`: The Amazon Resource Name (ARN) of the task execution to stop. """ -function cancel_task_execution( +cancel_task_execution( TaskExecutionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "CancelTaskExecution", + Dict{String,Any}("TaskExecutionArn" => TaskExecutionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CancelTaskExecution", - Dict{String,Any}("TaskExecutionArn" => TaskExecutionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_task_execution( TaskExecutionArn, params::AbstractDict{String}; @@ -159,14 +155,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys endpoint you use must include the DataSync service name (for example, com.amazonaws.us-east-2.datasync). """ -function create_agent(ActivationKey; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "CreateAgent", - Dict{String,Any}("ActivationKey" => ActivationKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_agent(ActivationKey; aws_config::AbstractAWSConfig=current_aws_config()) = datasync( + "CreateAgent", + Dict{String,Any}("ActivationKey" => ActivationKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_agent( ActivationKey, params::AbstractDict{String}; @@ -217,23 +211,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services resources. We recommend creating at least a name tag for your transfer location. """ -function create_location_azure_blob( +create_location_azure_blob( AgentArns, AuthenticationType, ContainerUrl; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateLocationAzureBlob", + Dict{String,Any}( + "AgentArns" => AgentArns, + "AuthenticationType" => AuthenticationType, + "ContainerUrl" => ContainerUrl, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationAzureBlob", - Dict{String,Any}( - "AgentArns" => AgentArns, - "AuthenticationType" => AuthenticationType, - "ContainerUrl" => ContainerUrl, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_azure_blob( AgentArns, AuthenticationType, @@ -290,16 +282,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location. """ -function create_location_efs( +create_location_efs( Ec2Config, EfsFilesystemArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "CreateLocationEfs", + Dict{String,Any}("Ec2Config" => Ec2Config, "EfsFilesystemArn" => EfsFilesystemArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationEfs", - Dict{String,Any}("Ec2Config" => Ec2Config, "EfsFilesystemArn" => EfsFilesystemArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_efs( Ec2Config, EfsFilesystemArn, @@ -344,18 +334,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location. """ -function create_location_fsx_lustre( +create_location_fsx_lustre( FsxFilesystemArn, SecurityGroupArns; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "CreateLocationFsxLustre", + Dict{String,Any}( + "FsxFilesystemArn" => FsxFilesystemArn, "SecurityGroupArns" => SecurityGroupArns + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationFsxLustre", - Dict{String,Any}( - "FsxFilesystemArn" => FsxFilesystemArn, "SecurityGroupArns" => SecurityGroupArns - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_fsx_lustre( FsxFilesystemArn, SecurityGroupArns, @@ -408,23 +396,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location. """ -function create_location_fsx_ontap( +create_location_fsx_ontap( Protocol, SecurityGroupArns, StorageVirtualMachineArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateLocationFsxOntap", + Dict{String,Any}( + "Protocol" => Protocol, + "SecurityGroupArns" => SecurityGroupArns, + "StorageVirtualMachineArn" => StorageVirtualMachineArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationFsxOntap", - Dict{String,Any}( - "Protocol" => Protocol, - "SecurityGroupArns" => SecurityGroupArns, - "StorageVirtualMachineArn" => StorageVirtualMachineArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_fsx_ontap( Protocol, SecurityGroupArns, @@ -474,23 +460,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location. """ -function create_location_fsx_open_zfs( +create_location_fsx_open_zfs( FsxFilesystemArn, Protocol, SecurityGroupArns; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateLocationFsxOpenZfs", + Dict{String,Any}( + "FsxFilesystemArn" => FsxFilesystemArn, + "Protocol" => Protocol, + "SecurityGroupArns" => SecurityGroupArns, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationFsxOpenZfs", - Dict{String,Any}( - "FsxFilesystemArn" => FsxFilesystemArn, - "Protocol" => Protocol, - "SecurityGroupArns" => SecurityGroupArns, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_fsx_open_zfs( FsxFilesystemArn, Protocol, @@ -552,25 +536,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location. """ -function create_location_fsx_windows( +create_location_fsx_windows( FsxFilesystemArn, Password, SecurityGroupArns, User; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateLocationFsxWindows", + Dict{String,Any}( + "FsxFilesystemArn" => FsxFilesystemArn, + "Password" => Password, + "SecurityGroupArns" => SecurityGroupArns, + "User" => User, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationFsxWindows", - Dict{String,Any}( - "FsxFilesystemArn" => FsxFilesystemArn, - "Password" => Password, - "SecurityGroupArns" => SecurityGroupArns, - "User" => User, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_fsx_windows( FsxFilesystemArn, Password, @@ -649,23 +631,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources. """ -function create_location_hdfs( +create_location_hdfs( AgentArns, AuthenticationType, NameNodes; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateLocationHdfs", + Dict{String,Any}( + "AgentArns" => AgentArns, + "AuthenticationType" => AuthenticationType, + "NameNodes" => NameNodes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationHdfs", - Dict{String,Any}( - "AgentArns" => AgentArns, - "AuthenticationType" => AuthenticationType, - "NameNodes" => NameNodes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_hdfs( AgentArns, AuthenticationType, @@ -718,23 +698,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location. """ -function create_location_nfs( +create_location_nfs( OnPremConfig, ServerHostname, Subdirectory; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateLocationNfs", + Dict{String,Any}( + "OnPremConfig" => OnPremConfig, + "ServerHostname" => ServerHostname, + "Subdirectory" => Subdirectory, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationNfs", - Dict{String,Any}( - "OnPremConfig" => OnPremConfig, - "ServerHostname" => ServerHostname, - "Subdirectory" => Subdirectory, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_nfs( OnPremConfig, ServerHostname, @@ -803,23 +781,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource. Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location. """ -function create_location_object_storage( +create_location_object_storage( AgentArns, BucketName, ServerHostname; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateLocationObjectStorage", + Dict{String,Any}( + "AgentArns" => AgentArns, + "BucketName" => BucketName, + "ServerHostname" => ServerHostname, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationObjectStorage", - Dict{String,Any}( - "AgentArns" => AgentArns, - "BucketName" => BucketName, - "ServerHostname" => ServerHostname, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_object_storage( AgentArns, BucketName, @@ -881,16 +857,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services resources. We recommend creating at least a name tag for your transfer location. """ -function create_location_s3( +create_location_s3( S3BucketArn, S3Config; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "CreateLocationS3", + Dict{String,Any}("S3BucketArn" => S3BucketArn, "S3Config" => S3Config); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationS3", - Dict{String,Any}("S3BucketArn" => S3BucketArn, "S3Config" => S3Config); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_s3( S3BucketArn, S3Config, @@ -948,27 +922,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location. """ -function create_location_smb( +create_location_smb( AgentArns, Password, ServerHostname, Subdirectory, User; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateLocationSmb", + Dict{String,Any}( + "AgentArns" => AgentArns, + "Password" => Password, + "ServerHostname" => ServerHostname, + "Subdirectory" => Subdirectory, + "User" => User, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateLocationSmb", - Dict{String,Any}( - "AgentArns" => AgentArns, - "Password" => Password, - "ServerHostname" => ServerHostname, - "Subdirectory" => Subdirectory, - "User" => User, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_location_smb( AgentArns, Password, @@ -1040,21 +1012,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission. """ -function create_task( +create_task( DestinationLocationArn, SourceLocationArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "CreateTask", + Dict{String,Any}( + "DestinationLocationArn" => DestinationLocationArn, + "SourceLocationArn" => SourceLocationArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "CreateTask", - Dict{String,Any}( - "DestinationLocationArn" => DestinationLocationArn, - "SourceLocationArn" => SourceLocationArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_task( DestinationLocationArn, SourceLocationArn, @@ -1092,14 +1062,12 @@ instance from your storage environment or reuse it to activate a new agent. operation to return a list of agents for your account and Amazon Web Services Region. """ -function delete_agent(AgentArn; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "DeleteAgent", - Dict{String,Any}("AgentArn" => AgentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_agent(AgentArn; aws_config::AbstractAWSConfig=current_aws_config()) = datasync( + "DeleteAgent", + Dict{String,Any}("AgentArn" => AgentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_agent( AgentArn, params::AbstractDict{String}; @@ -1125,14 +1093,12 @@ Deletes a transfer location resource from DataSync. - `location_arn`: The Amazon Resource Name (ARN) of the location to delete. """ -function delete_location(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "DeleteLocation", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_location(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = datasync( + "DeleteLocation", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_location( LocationArn, params::AbstractDict{String}; @@ -1158,14 +1124,12 @@ Deletes a transfer task resource from DataSync. - `task_arn`: Specifies the Amazon Resource Name (ARN) of the task that you want to delete. """ -function delete_task(TaskArn; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "DeleteTask", - Dict{String,Any}("TaskArn" => TaskArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_task(TaskArn; aws_config::AbstractAWSConfig=current_aws_config()) = datasync( + "DeleteTask", + Dict{String,Any}("TaskArn" => TaskArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_task( TaskArn, params::AbstractDict{String}; @@ -1191,14 +1155,12 @@ status. information about. """ -function describe_agent(AgentArn; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "DescribeAgent", - Dict{String,Any}("AgentArn" => AgentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_agent(AgentArn; aws_config::AbstractAWSConfig=current_aws_config()) = datasync( + "DescribeAgent", + Dict{String,Any}("AgentArn" => AgentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_agent( AgentArn, params::AbstractDict{String}; @@ -1225,16 +1187,14 @@ Returns information about a DataSync discovery job. you want information about. """ -function describe_discovery_job( +describe_discovery_job( DiscoveryJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeDiscoveryJob", + Dict{String,Any}("DiscoveryJobArn" => DiscoveryJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeDiscoveryJob", - Dict{String,Any}("DiscoveryJobArn" => DiscoveryJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_discovery_job( DiscoveryJobArn, params::AbstractDict{String}; @@ -1264,16 +1224,14 @@ is configured. transfer location. """ -function describe_location_azure_blob( +describe_location_azure_blob( LocationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeLocationAzureBlob", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeLocationAzureBlob", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_location_azure_blob( LocationArn, params::AbstractDict{String}; @@ -1301,16 +1259,13 @@ configured. that you want information about. """ -function describe_location_efs( - LocationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +describe_location_efs(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "DescribeLocationEfs", Dict{String,Any}("LocationArn" => LocationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_location_efs( LocationArn, params::AbstractDict{String}; @@ -1338,16 +1293,14 @@ system is configured. describe. """ -function describe_location_fsx_lustre( +describe_location_fsx_lustre( LocationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeLocationFsxLustre", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeLocationFsxLustre", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_location_fsx_lustre( LocationArn, params::AbstractDict{String}; @@ -1376,16 +1329,14 @@ operation doesn't actually return a Password. location that you want information about. """ -function describe_location_fsx_ontap( +describe_location_fsx_ontap( LocationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeLocationFsxOntap", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeLocationFsxOntap", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_location_fsx_ontap( LocationArn, params::AbstractDict{String}; @@ -1414,16 +1365,14 @@ DescribeLocationFsxOpenZfs operation. describe. """ -function describe_location_fsx_open_zfs( +describe_location_fsx_open_zfs( LocationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeLocationFsxOpenZfs", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeLocationFsxOpenZfs", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_location_fsx_open_zfs( LocationArn, params::AbstractDict{String}; @@ -1451,16 +1400,14 @@ Server file system is configured. Server location. """ -function describe_location_fsx_windows( +describe_location_fsx_windows( LocationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeLocationFsxWindows", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeLocationFsxWindows", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_location_fsx_windows( LocationArn, params::AbstractDict{String}; @@ -1487,16 +1434,13 @@ System (HDFS) is configured. - `location_arn`: Specifies the Amazon Resource Name (ARN) of the HDFS location. """ -function describe_location_hdfs( - LocationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +describe_location_hdfs(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "DescribeLocationHdfs", Dict{String,Any}("LocationArn" => LocationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_location_hdfs( LocationArn, params::AbstractDict{String}; @@ -1524,16 +1468,13 @@ file server is configured. want information about. """ -function describe_location_nfs( - LocationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +describe_location_nfs(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "DescribeLocationNfs", Dict{String,Any}("LocationArn" => LocationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_location_nfs( LocationArn, params::AbstractDict{String}; @@ -1561,16 +1502,14 @@ configured. location. """ -function describe_location_object_storage( +describe_location_object_storage( LocationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeLocationObjectStorage", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeLocationObjectStorage", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_location_object_storage( LocationArn, params::AbstractDict{String}; @@ -1596,16 +1535,13 @@ Provides details about how an DataSync transfer location for an S3 bucket is con - `location_arn`: Specifies the Amazon Resource Name (ARN) of the Amazon S3 location. """ -function describe_location_s3( - LocationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +describe_location_s3(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "DescribeLocationS3", Dict{String,Any}("LocationArn" => LocationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_location_s3( LocationArn, params::AbstractDict{String}; @@ -1633,16 +1569,13 @@ file server is configured. want information about. """ -function describe_location_smb( - LocationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +describe_location_smb(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "DescribeLocationSmb", Dict{String,Any}("LocationArn" => LocationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_location_smb( LocationArn, params::AbstractDict{String}; @@ -1670,16 +1603,14 @@ Discovery. system that you're using with DataSync Discovery. """ -function describe_storage_system( +describe_storage_system( StorageSystemArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeStorageSystem", + Dict{String,Any}("StorageSystemArn" => StorageSystemArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeStorageSystem", - Dict{String,Any}("StorageSystemArn" => StorageSystemArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_storage_system( StorageSystemArn, params::AbstractDict{String}; @@ -1722,23 +1653,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: Specifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with EndTime. """ -function describe_storage_system_resource_metrics( +describe_storage_system_resource_metrics( DiscoveryJobArn, ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "DescribeStorageSystemResourceMetrics", + Dict{String,Any}( + "DiscoveryJobArn" => DiscoveryJobArn, + "ResourceId" => ResourceId, + "ResourceType" => ResourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeStorageSystemResourceMetrics", - Dict{String,Any}( - "DiscoveryJobArn" => DiscoveryJobArn, - "ResourceId" => ResourceId, - "ResourceType" => ResourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_storage_system_resource_metrics( DiscoveryJobArn, ResourceId, @@ -1789,18 +1718,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys system resources that you want information about. You can't use this parameter in combination with the Filter parameter. """ -function describe_storage_system_resources( +describe_storage_system_resources( DiscoveryJobArn, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeStorageSystemResources", + Dict{String,Any}("DiscoveryJobArn" => DiscoveryJobArn, "ResourceType" => ResourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeStorageSystemResources", - Dict{String,Any}( - "DiscoveryJobArn" => DiscoveryJobArn, "ResourceType" => ResourceType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_storage_system_resources( DiscoveryJobArn, ResourceType, @@ -1834,14 +1759,12 @@ Provides information about a task, which defines where and how DataSync transfer information about. """ -function describe_task(TaskArn; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "DescribeTask", - Dict{String,Any}("TaskArn" => TaskArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_task(TaskArn; aws_config::AbstractAWSConfig=current_aws_config()) = datasync( + "DescribeTask", + Dict{String,Any}("TaskArn" => TaskArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_task( TaskArn, params::AbstractDict{String}; @@ -1867,16 +1790,14 @@ to help monitor the progress of an ongoing transfer or check the results of the you want information about. """ -function describe_task_execution( +describe_task_execution( TaskExecutionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "DescribeTaskExecution", + Dict{String,Any}("TaskExecutionArn" => TaskExecutionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "DescribeTaskExecution", - Dict{String,Any}("TaskExecutionArn" => TaskExecutionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_task_execution( TaskExecutionArn, params::AbstractDict{String}; @@ -1913,23 +1834,21 @@ the DescribeStorageSystemResources operation. recommendations on. """ -function generate_recommendations( +generate_recommendations( DiscoveryJobArn, ResourceIds, ResourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "GenerateRecommendations", + Dict{String,Any}( + "DiscoveryJobArn" => DiscoveryJobArn, + "ResourceIds" => ResourceIds, + "ResourceType" => ResourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "GenerateRecommendations", - Dict{String,Any}( - "DiscoveryJobArn" => DiscoveryJobArn, - "ResourceIds" => ResourceIds, - "ResourceType" => ResourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_recommendations( DiscoveryJobArn, ResourceIds, @@ -1976,9 +1895,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specifies an opaque string that indicates the position to begin the next list of results in the response. """ -function list_agents(; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync("ListAgents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_agents(; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync("ListAgents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_agents( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2003,11 +1921,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys system. Use this parameter if you only want to list the discovery jobs that are associated with a specific storage system. """ -function list_discovery_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "ListDiscoveryJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_discovery_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync("ListDiscoveryJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_discovery_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2034,9 +1949,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque string that indicates the position at which to begin the next list of locations. """ -function list_locations(; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync("ListLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_locations(; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync("ListLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_locations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2057,11 +1971,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specifies an opaque string that indicates the position to begin the next list of results in the response. """ -function list_storage_systems(; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "ListStorageSystems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_storage_systems(; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync("ListStorageSystems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_storage_systems( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2086,16 +1997,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specifies an opaque string that indicates the position to begin the next list of results in the response. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2125,11 +2033,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TaskArn"`: Specifies the Amazon Resource Name (ARN) of the task that you want execution information about. """ -function list_task_executions(; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "ListTaskExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_task_executions(; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync("ListTaskExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_task_executions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2153,9 +2058,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque string that indicates the position at which to begin the next list of tasks. """ -function list_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync("ListTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync("ListTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2176,16 +2080,14 @@ associated discovery jobs, collected data, and recommendations. you want to permanently remove from DataSync Discovery. """ -function remove_storage_system( +remove_storage_system( StorageSystemArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "RemoveStorageSystem", + Dict{String,Any}("StorageSystemArn" => StorageSystemArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "RemoveStorageSystem", - Dict{String,Any}("StorageSystemArn" => StorageSystemArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_storage_system( StorageSystemArn, params::AbstractDict{String}; @@ -2227,23 +2129,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. """ -function start_discovery_job( +start_discovery_job( ClientToken, CollectionDurationMinutes, StorageSystemArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "StartDiscoveryJob", + Dict{String,Any}( + "ClientToken" => ClientToken, + "CollectionDurationMinutes" => CollectionDurationMinutes, + "StorageSystemArn" => StorageSystemArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "StartDiscoveryJob", - Dict{String,Any}( - "ClientToken" => ClientToken, - "CollectionDurationMinutes" => CollectionDurationMinutes, - "StorageSystemArn" => StorageSystemArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_discovery_job( ClientToken, CollectionDurationMinutes, @@ -2309,14 +2209,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AWSDataSyncFullAccess policy includes this permission. To remove a task report configuration, specify this parameter as empty. """ -function start_task_execution(TaskArn; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( +start_task_execution(TaskArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "StartTaskExecution", Dict{String,Any}("TaskArn" => TaskArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_task_execution( TaskArn, params::AbstractDict{String}; @@ -2344,16 +2243,13 @@ use the GenerateRecommendations operation. you want to stop. """ -function stop_discovery_job( - DiscoveryJobArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +stop_discovery_job(DiscoveryJobArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "StopDiscoveryJob", Dict{String,Any}("DiscoveryJobArn" => DiscoveryJobArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_discovery_job( DiscoveryJobArn, params::AbstractDict{String}; @@ -2385,14 +2281,13 @@ as locations, tasks, and task executions. - `tags`: Specifies the tags that you want to apply to the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2425,16 +2320,13 @@ Removes tags from an Amazon Web Services resource. tags from. """ -function untag_resource( - Keys, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +untag_resource(Keys, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "UntagResource", Dict{String,Any}("Keys" => Keys, "ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( Keys, ResourceArn, @@ -2468,14 +2360,12 @@ Updates the name of an DataSync agent. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name that you want to use to configure the agent. """ -function update_agent(AgentArn; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "UpdateAgent", - Dict{String,Any}("AgentArn" => AgentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_agent(AgentArn; aws_config::AbstractAWSConfig=current_aws_config()) = datasync( + "UpdateAgent", + Dict{String,Any}("AgentArn" => AgentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_agent( AgentArn, params::AbstractDict{String}; @@ -2505,21 +2395,19 @@ Edits a DataSync discovery job configuration. you want to update. """ -function update_discovery_job( +update_discovery_job( CollectionDurationMinutes, DiscoveryJobArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = datasync( + "UpdateDiscoveryJob", + Dict{String,Any}( + "CollectionDurationMinutes" => CollectionDurationMinutes, + "DiscoveryJobArn" => DiscoveryJobArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "UpdateDiscoveryJob", - Dict{String,Any}( - "CollectionDurationMinutes" => CollectionDurationMinutes, - "DiscoveryJobArn" => DiscoveryJobArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_discovery_job( CollectionDurationMinutes, DiscoveryJobArn, @@ -2573,16 +2461,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Subdirectory"`: Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, /my/images). """ -function update_location_azure_blob( +update_location_azure_blob( LocationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "UpdateLocationAzureBlob", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "UpdateLocationAzureBlob", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_location_azure_blob( LocationArn, params::AbstractDict{String}; @@ -2638,16 +2524,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Subdirectory"`: A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster. """ -function update_location_hdfs( - LocationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +update_location_hdfs(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "UpdateLocationHdfs", Dict{String,Any}("LocationArn" => LocationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_location_hdfs( LocationArn, params::AbstractDict{String}; @@ -2684,16 +2567,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers. """ -function update_location_nfs( - LocationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +update_location_nfs(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "UpdateLocationNfs", Dict{String,Any}("LocationArn" => LocationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_location_nfs( LocationArn, params::AbstractDict{String}; @@ -2747,16 +2627,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix. """ -function update_location_object_storage( +update_location_object_storage( LocationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "UpdateLocationObjectStorage", + Dict{String,Any}("LocationArn" => LocationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "UpdateLocationObjectStorage", - Dict{String,Any}("LocationArn" => LocationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_location_object_storage( LocationArn, params::AbstractDict{String}; @@ -2805,16 +2683,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys user with the right level of access for your transfer, see required permissions for SMB locations. """ -function update_location_smb( - LocationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datasync( +update_location_smb(LocationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datasync( "UpdateLocationSmb", Dict{String,Any}("LocationArn" => LocationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_location_smb( LocationArn, params::AbstractDict{String}; @@ -2853,16 +2728,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServerConfiguration"`: Specifies the server name and network port required to connect with your on-premises storage system's management interface. """ -function update_storage_system( +update_storage_system( StorageSystemArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "UpdateStorageSystem", + Dict{String,Any}("StorageSystemArn" => StorageSystemArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "UpdateStorageSystem", - Dict{String,Any}("StorageSystemArn" => StorageSystemArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_storage_system( StorageSystemArn, params::AbstractDict{String}; @@ -2917,14 +2790,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AWSDataSyncFullAccess policy includes this permission. To remove a task report configuration, specify this parameter as empty. """ -function update_task(TaskArn; aws_config::AbstractAWSConfig=current_aws_config()) - return datasync( - "UpdateTask", - Dict{String,Any}("TaskArn" => TaskArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_task(TaskArn; aws_config::AbstractAWSConfig=current_aws_config()) = datasync( + "UpdateTask", + Dict{String,Any}("TaskArn" => TaskArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_task( TaskArn, params::AbstractDict{String}; @@ -2952,16 +2823,14 @@ for a running or queued task execution. you're updating. """ -function update_task_execution( +update_task_execution( Options, TaskExecutionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = datasync( + "UpdateTaskExecution", + Dict{String,Any}("Options" => Options, "TaskExecutionArn" => TaskExecutionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datasync( - "UpdateTaskExecution", - Dict{String,Any}("Options" => Options, "TaskExecutionArn" => TaskExecutionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_task_execution( Options, TaskExecutionArn, diff --git a/src/services/datazone.jl b/src/services/datazone.jl index d281b2386..ffc3494ca 100644 --- a/src/services/datazone.jl +++ b/src/services/datazone.jl @@ -24,17 +24,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request. This field is automatically populated if not provided. - `"revision"`: The revision that is to be made to the asset. """ -function accept_predictions( +accept_predictions( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/assets/$(identifier)/accept-predictions", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)/accept-predictions", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_predictions( domainIdentifier, identifier, @@ -65,29 +63,152 @@ Accepts a subscription request to a specific asset. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"assetScopes"`: The asset scopes of the accept subscription request. - `"decisionComment"`: A description that specifies the reason for accepting the specified subscription request. """ -function accept_subscription_request( +accept_subscription_request( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)/accept"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function accept_subscription_request( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "PUT", - "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)/accept"; + "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)/accept", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function accept_subscription_request( + +""" + add_entity_owner(domain_identifier, entity_identifier, entity_type, owner) + add_entity_owner(domain_identifier, entity_identifier, entity_type, owner, params::Dict{String,<:Any}) + +Adds the owner of an entity (a domain unit). + +# Arguments +- `domain_identifier`: The ID of the domain in which you want to add the entity owner. +- `entity_identifier`: The ID of the entity to which you want to add an owner. +- `entity_type`: The type of an entity. +- `owner`: The owner that you want to add to the entity. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. +""" +add_entity_owner( domainIdentifier, - identifier, + entityIdentifier, + entityType, + owner; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/addOwner", + Dict{String,Any}("owner" => owner, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function add_entity_owner( + domainIdentifier, + entityIdentifier, + entityType, + owner, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)/accept", - params; + "POST", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/addOwner", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("owner" => owner, "clientToken" => string(uuid4())), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + add_policy_grant(detail, domain_identifier, entity_identifier, entity_type, policy_type, principal) + add_policy_grant(detail, domain_identifier, entity_identifier, entity_type, policy_type, principal, params::Dict{String,<:Any}) + +Adds a policy grant (an authorization policy) to a specified entity, including domain +units, environment blueprint configurations, or environment profiles. + +# Arguments +- `detail`: The details of the policy grant. +- `domain_identifier`: The ID of the domain where you want to add a policy grant. +- `entity_identifier`: The ID of the entity (resource) to which you want to add a policy + grant. +- `entity_type`: The type of entity (resource) to which the grant is added. +- `policy_type`: The type of policy that you want to grant. +- `principal`: The principal to whom the permissions are granted. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. +""" +add_policy_grant( + detail, + domainIdentifier, + entityIdentifier, + entityType, + policyType, + principal; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/policies/managed/$(entityType)/$(entityIdentifier)/addGrant", + Dict{String,Any}( + "detail" => detail, + "policyType" => policyType, + "principal" => principal, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function add_policy_grant( + detail, + domainIdentifier, + entityIdentifier, + entityType, + policyType, + principal, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return datazone( + "POST", + "/v2/domains/$(domainIdentifier)/policies/managed/$(entityType)/$(entityIdentifier)/addGrant", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "detail" => detail, + "policyType" => policyType, + "principal" => principal, + "clientToken" => string(uuid4()), + ), + params, + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -106,19 +227,17 @@ Associates the environment role in Amazon DataZone. - `environment_role_arn`: The ARN of the environment role. """ -function associate_environment_role( +associate_environment_role( domainIdentifier, environmentIdentifier, environmentRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/roles/$(environmentRoleArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/roles/$(environmentRoleArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_environment_role( domainIdentifier, environmentIdentifier, @@ -147,16 +266,14 @@ Cancels the metadata generation run. - `identifier`: The ID of the metadata generation run. """ -function cancel_metadata_generation_run( +cancel_metadata_generation_run( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/metadata-generation-runs/$(identifier)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/metadata-generation-runs/$(identifier)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_metadata_generation_run( domainIdentifier, identifier, @@ -184,16 +301,14 @@ Cancels the subscription to the specified asset. - `identifier`: The unique identifier of the subscription that is being cancelled. """ -function cancel_subscription( +cancel_subscription( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/subscriptions/$(identifier)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/subscriptions/$(identifier)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_subscription( domainIdentifier, identifier, @@ -233,44 +348,104 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys business-friendly metadata for the asset. - `"typeRevision"`: The revision of this asset's type. """ -function create_asset( +create_asset( domainIdentifier, name, owningProjectIdentifier, typeIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/assets", + Dict{String,Any}( + "name" => name, + "owningProjectIdentifier" => owningProjectIdentifier, + "typeIdentifier" => typeIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_asset( + domainIdentifier, + name, + owningProjectIdentifier, + typeIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "POST", "/v2/domains/$(domainIdentifier)/assets", Dict{String,Any}( - "name" => name, - "owningProjectIdentifier" => owningProjectIdentifier, - "typeIdentifier" => typeIdentifier, - "clientToken" => string(uuid4()), + mergewith( + _merge, + Dict{String,Any}( + "name" => name, + "owningProjectIdentifier" => owningProjectIdentifier, + "typeIdentifier" => typeIdentifier, + "clientToken" => string(uuid4()), + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_asset( + +""" + create_asset_filter(asset_identifier, configuration, domain_identifier, name) + create_asset_filter(asset_identifier, configuration, domain_identifier, name, params::Dict{String,<:Any}) + +Creates a data asset filter. + +# Arguments +- `asset_identifier`: The ID of the data asset. +- `configuration`: The configuration of the asset filter. +- `domain_identifier`: The ID of the domain in which you want to create an asset filter. +- `name`: The name of the asset filter. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. +- `"description"`: The description of the asset filter. +""" +create_asset_filter( + assetIdentifier, + configuration, + domainIdentifier, + name; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters", + Dict{String,Any}( + "configuration" => configuration, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_asset_filter( + assetIdentifier, + configuration, domainIdentifier, name, - owningProjectIdentifier, - typeIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "POST", - "/v2/domains/$(domainIdentifier)/assets", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( + "configuration" => configuration, "name" => name, - "owningProjectIdentifier" => owningProjectIdentifier, - "typeIdentifier" => typeIdentifier, "clientToken" => string(uuid4()), ), params, @@ -304,17 +479,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys business-friendly metadata for the asset. - `"typeRevision"`: The revision type of the asset. """ -function create_asset_revision( +create_asset_revision( domainIdentifier, identifier, name; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/assets/$(identifier)/revisions", + Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)/revisions", - Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_asset_revision( domainIdentifier, identifier, @@ -355,28 +528,88 @@ Creates a custom asset type. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The descripton of the custom asset type. """ -function create_asset_type( +create_asset_type( domainIdentifier, formsInput, name, owningProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/asset-types", + Dict{String,Any}( + "formsInput" => formsInput, + "name" => name, + "owningProjectIdentifier" => owningProjectIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_asset_type( + domainIdentifier, + formsInput, + name, + owningProjectIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "POST", "/v2/domains/$(domainIdentifier)/asset-types", Dict{String,Any}( - "formsInput" => formsInput, - "name" => name, - "owningProjectIdentifier" => owningProjectIdentifier, + mergewith( + _merge, + Dict{String,Any}( + "formsInput" => formsInput, + "name" => name, + "owningProjectIdentifier" => owningProjectIdentifier, + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_asset_type( + +""" + create_data_product(domain_identifier, name, owning_project_identifier) + create_data_product(domain_identifier, name, owning_project_identifier, params::Dict{String,<:Any}) + +Creates a data product. + +# Arguments +- `domain_identifier`: The ID of the domain where the data product is created. +- `name`: The name of the data product. +- `owning_project_identifier`: The ID of the owning project of the data product. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. +- `"description"`: The description of the data product. +- `"formsInput"`: The metadata forms of the data product. +- `"glossaryTerms"`: The glossary terms of the data product. +- `"items"`: The data assets of the data product. +""" +create_data_product( + domainIdentifier, + name, + owningProjectIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/data-products", + Dict{String,Any}( + "name" => name, + "owningProjectIdentifier" => owningProjectIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_data_product( domainIdentifier, - formsInput, name, owningProjectIdentifier, params::AbstractDict{String}; @@ -384,14 +617,14 @@ function create_asset_type( ) return datazone( "POST", - "/v2/domains/$(domainIdentifier)/asset-types", + "/v2/domains/$(domainIdentifier)/data-products", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "formsInput" => formsInput, "name" => name, "owningProjectIdentifier" => owningProjectIdentifier, + "clientToken" => string(uuid4()), ), params, ), @@ -401,6 +634,57 @@ function create_asset_type( ) end +""" + create_data_product_revision(domain_identifier, identifier, name) + create_data_product_revision(domain_identifier, identifier, name, params::Dict{String,<:Any}) + +Creates a data product revision. + +# Arguments +- `domain_identifier`: The ID of the domain where the data product revision is created. +- `identifier`: The ID of the data product revision. +- `name`: The name of the data product revision. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. +- `"description"`: The description of the data product revision. +- `"formsInput"`: The metadata forms of the data product revision. +- `"glossaryTerms"`: The glossary terms of the data product revision. +- `"items"`: The data assets of the data product revision. +""" +create_data_product_revision( + domainIdentifier, identifier, name; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/data-products/$(identifier)/revisions", + Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_data_product_revision( + domainIdentifier, + identifier, + name, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return datazone( + "POST", + "/v2/domains/$(domainIdentifier)/data-products/$(identifier)/revisions", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("name" => name, "clientToken" => string(uuid4())), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ create_data_source(domain_identifier, environment_identifier, name, project_identifier, type) create_data_source(domain_identifier, environment_identifier, name, project_identifier, type, params::Dict{String,<:Any}) @@ -433,28 +717,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this data source. - `"schedule"`: The schedule of the data source runs. """ -function create_data_source( +create_data_source( domainIdentifier, environmentIdentifier, name, projectIdentifier, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/data-sources", + Dict{String,Any}( + "environmentIdentifier" => environmentIdentifier, + "name" => name, + "projectIdentifier" => projectIdentifier, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/data-sources", - Dict{String,Any}( - "environmentIdentifier" => environmentIdentifier, - "name" => name, - "projectIdentifier" => projectIdentifier, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_source( domainIdentifier, environmentIdentifier, @@ -507,36 +789,93 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"singleSignOn"`: The single-sign on configuration of the Amazon DataZone domain. - `"tags"`: The tags specified for the Amazon DataZone domain. """ -function create_domain( +create_domain( domainExecutionRole, name; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains", + Dict{String,Any}( + "domainExecutionRole" => domainExecutionRole, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_domain( + domainExecutionRole, + name, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "POST", "/v2/domains", Dict{String,Any}( - "domainExecutionRole" => domainExecutionRole, - "name" => name, - "clientToken" => string(uuid4()), + mergewith( + _merge, + Dict{String,Any}( + "domainExecutionRole" => domainExecutionRole, + "name" => name, + "clientToken" => string(uuid4()), + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_domain( - domainExecutionRole, + +""" + create_domain_unit(domain_identifier, name, parent_domain_unit_identifier) + create_domain_unit(domain_identifier, name, parent_domain_unit_identifier, params::Dict{String,<:Any}) + +Creates a domain unit in Amazon DataZone. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to crate a domain unit. +- `name`: The name of the domain unit. +- `parent_domain_unit_identifier`: The ID of the parent domain unit. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. +- `"description"`: The description of the domain unit. +""" +create_domain_unit( + domainIdentifier, name, + parentDomainUnitIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/domain-units", + Dict{String,Any}( + "name" => name, + "parentDomainUnitIdentifier" => parentDomainUnitIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_domain_unit( + domainIdentifier, + name, + parentDomainUnitIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "POST", - "/v2/domains", + "/v2/domains/$(domainIdentifier)/domain-units", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "domainExecutionRole" => domainExecutionRole, "name" => name, + "parentDomainUnitIdentifier" => parentDomainUnitIdentifier, "clientToken" => string(uuid4()), ), params, @@ -575,25 +914,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys environment. - `"userParameters"`: The user parameters of this Amazon DataZone environment. """ -function create_environment( +create_environment( domainIdentifier, environmentProfileIdentifier, name, projectIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/environments", + Dict{String,Any}( + "environmentProfileIdentifier" => environmentProfileIdentifier, + "name" => name, + "projectIdentifier" => projectIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/environments", - Dict{String,Any}( - "environmentProfileIdentifier" => environmentProfileIdentifier, - "name" => name, - "projectIdentifier" => projectIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment( domainIdentifier, environmentProfileIdentifier, @@ -641,21 +978,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the environment action that is being created in the environment. """ -function create_environment_action( +create_environment_action( domainIdentifier, environmentIdentifier, name, parameters; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions", + Dict{String,Any}("name" => name, "parameters" => parameters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions", - Dict{String,Any}("name" => name, "parameters" => parameters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment_action( domainIdentifier, environmentIdentifier, @@ -701,25 +1036,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of this Amazon DataZone environment profile. - `"userParameters"`: The user parameters of this Amazon DataZone environment profile. """ -function create_environment_profile( +create_environment_profile( domainIdentifier, environmentBlueprintIdentifier, name, projectIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/environment-profiles", + Dict{String,Any}( + "environmentBlueprintIdentifier" => environmentBlueprintIdentifier, + "name" => name, + "projectIdentifier" => projectIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/environment-profiles", - Dict{String,Any}( - "environmentBlueprintIdentifier" => environmentBlueprintIdentifier, - "name" => name, - "projectIdentifier" => projectIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment_profile( domainIdentifier, environmentBlueprintIdentifier, @@ -766,25 +1099,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of this Amazon DataZone metadata form type. - `"status"`: The status of this Amazon DataZone metadata form type. """ -function create_form_type( +create_form_type( domainIdentifier, model, name, owningProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/form-types", + Dict{String,Any}( + "model" => model, + "name" => name, + "owningProjectIdentifier" => owningProjectIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/form-types", - Dict{String,Any}( - "model" => model, - "name" => name, - "owningProjectIdentifier" => owningProjectIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_form_type( domainIdentifier, model, @@ -831,24 +1162,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of this business glossary. - `"status"`: The status of this business glossary. """ -function create_glossary( +create_glossary( domainIdentifier, name, owningProjectIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/glossaries", + Dict{String,Any}( + "name" => name, + "owningProjectIdentifier" => owningProjectIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/glossaries", - Dict{String,Any}( - "name" => name, - "owningProjectIdentifier" => owningProjectIdentifier, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_glossary( domainIdentifier, name, @@ -896,24 +1225,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of this business glossary term. - `"termRelations"`: The term relations of this business glossary term. """ -function create_glossary_term( +create_glossary_term( domainIdentifier, glossaryIdentifier, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/glossary-terms", + Dict{String,Any}( + "glossaryIdentifier" => glossaryIdentifier, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/glossary-terms", - Dict{String,Any}( - "glossaryIdentifier" => glossaryIdentifier, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_glossary_term( domainIdentifier, glossaryIdentifier, @@ -956,19 +1283,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. """ -function create_group_profile( +create_group_profile( domainIdentifier, groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/group-profiles", + Dict{String,Any}( + "groupIdentifier" => groupIdentifier, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/group-profiles", - Dict{String,Any}( - "groupIdentifier" => groupIdentifier, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_group_profile( domainIdentifier, groupIdentifier, @@ -1011,26 +1336,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. - `"entityRevision"`: The revision of an asset. """ -function create_listing_change_set( +create_listing_change_set( action, domainIdentifier, entityIdentifier, entityType; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/listings/change-set", + Dict{String,Any}( + "action" => action, + "entityIdentifier" => entityIdentifier, + "entityType" => entityType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/listings/change-set", - Dict{String,Any}( - "action" => action, - "entityIdentifier" => entityIdentifier, - "entityType" => entityType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_listing_change_set( action, domainIdentifier, @@ -1073,19 +1396,18 @@ Creates an Amazon DataZone project. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the Amazon DataZone project. +- `"domainUnitId"`: The ID of the domain unit. This parameter is not required and if it is + not specified, then the project is created at the root domain unit level. - `"glossaryTerms"`: The glossary terms that can be used in this Amazon DataZone project. """ -function create_project( - domainIdentifier, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return datazone( +create_project(domainIdentifier, name; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone( "POST", "/v2/domains/$(domainIdentifier)/projects", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_project( domainIdentifier, name, @@ -1115,21 +1437,19 @@ Creates a project membership in Amazon DataZone. - `project_identifier`: The ID of the project for which this project membership was created. """ -function create_project_membership( +create_project_membership( designation, domainIdentifier, member, projectIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/projects/$(projectIdentifier)/createMembership", + Dict{String,Any}("designation" => designation, "member" => member); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/projects/$(projectIdentifier)/createMembership", - Dict{String,Any}("designation" => designation, "member" => member); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_project_membership( designation, domainIdentifier, @@ -1174,26 +1494,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. """ -function create_subscription_grant( +create_subscription_grant( domainIdentifier, environmentIdentifier, grantedEntity, subscriptionTargetIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/subscription-grants", + Dict{String,Any}( + "environmentIdentifier" => environmentIdentifier, + "grantedEntity" => grantedEntity, + "subscriptionTargetIdentifier" => subscriptionTargetIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/subscription-grants", - Dict{String,Any}( - "environmentIdentifier" => environmentIdentifier, - "grantedEntity" => grantedEntity, - "subscriptionTargetIdentifier" => subscriptionTargetIdentifier, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subscription_grant( domainIdentifier, environmentIdentifier, @@ -1242,26 +1560,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. """ -function create_subscription_request( +create_subscription_request( domainIdentifier, requestReason, subscribedListings, subscribedPrincipals; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/subscription-requests", + Dict{String,Any}( + "requestReason" => requestReason, + "subscribedListings" => subscribedListings, + "subscribedPrincipals" => subscribedPrincipals, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/subscription-requests", - Dict{String,Any}( - "requestReason" => requestReason, - "subscribedListings" => subscribedListings, - "subscribedPrincipals" => subscribedPrincipals, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subscription_request( domainIdentifier, requestReason, @@ -1315,7 +1631,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. - `"provider"`: The provider of the subscription target. """ -function create_subscription_target( +create_subscription_target( applicableAssetTypes, authorizedPrincipals, domainIdentifier, @@ -1325,23 +1641,21 @@ function create_subscription_target( subscriptionTargetConfig, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets", + Dict{String,Any}( + "applicableAssetTypes" => applicableAssetTypes, + "authorizedPrincipals" => authorizedPrincipals, + "manageAccessRole" => manageAccessRole, + "name" => name, + "subscriptionTargetConfig" => subscriptionTargetConfig, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets", - Dict{String,Any}( - "applicableAssetTypes" => applicableAssetTypes, - "authorizedPrincipals" => authorizedPrincipals, - "manageAccessRole" => manageAccessRole, - "name" => name, - "subscriptionTargetConfig" => subscriptionTargetConfig, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subscription_target( applicableAssetTypes, authorizedPrincipals, @@ -1394,19 +1708,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. - `"userType"`: The user type of the user for which the user profile is created. """ -function create_user_profile( +create_user_profile( domainIdentifier, userIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/user-profiles", + Dict{String,Any}("userIdentifier" => userIdentifier, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/user-profiles", - Dict{String,Any}( - "userIdentifier" => userIdentifier, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_profile( domainIdentifier, userIdentifier, @@ -1434,24 +1744,61 @@ end delete_asset(domain_identifier, identifier) delete_asset(domain_identifier, identifier, params::Dict{String,<:Any}) -Delets an asset in Amazon DataZone. +Deletes an asset in Amazon DataZone. # Arguments - `domain_identifier`: The ID of the Amazon DataZone domain in which the asset is deleted. - `identifier`: The identifier of the asset that is deleted. """ -function delete_asset( +delete_asset( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/assets/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_asset( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "DELETE", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)"; + "/v2/domains/$(domainIdentifier)/assets/$(identifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function delete_asset( + +""" + delete_asset_filter(asset_identifier, domain_identifier, identifier) + delete_asset_filter(asset_identifier, domain_identifier, identifier, params::Dict{String,<:Any}) + +Deletes an asset filter. + +# Arguments +- `asset_identifier`: The ID of the data asset. +- `domain_identifier`: The ID of the domain where you want to delete an asset filter. +- `identifier`: The ID of the asset filter that you want to delete. + +""" +delete_asset_filter( + assetIdentifier, + domainIdentifier, + identifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_asset_filter( + assetIdentifier, domainIdentifier, identifier, params::AbstractDict{String}; @@ -1459,7 +1806,7 @@ function delete_asset( ) return datazone( "DELETE", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters/$(identifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1478,17 +1825,50 @@ Deletes an asset type in Amazon DataZone. - `identifier`: The identifier of the asset type that is deleted. """ -function delete_asset_type( +delete_asset_type( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/asset-types/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_asset_type( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "DELETE", - "/v2/domains/$(domainIdentifier)/asset-types/$(identifier)"; + "/v2/domains/$(domainIdentifier)/asset-types/$(identifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function delete_asset_type( + +""" + delete_data_product(domain_identifier, identifier) + delete_data_product(domain_identifier, identifier, params::Dict{String,<:Any}) + +Deletes a data product in Amazon DataZone. + +# Arguments +- `domain_identifier`: The ID of the Amazon DataZone domain in which the data product is + deleted. +- `identifier`: The identifier of the data product that is deleted. + +""" +delete_data_product( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/data-products/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_data_product( domainIdentifier, identifier, params::AbstractDict{String}; @@ -1496,7 +1876,7 @@ function delete_asset_type( ) return datazone( "DELETE", - "/v2/domains/$(domainIdentifier)/asset-types/$(identifier)", + "/v2/domains/$(domainIdentifier)/data-products/$(identifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1521,17 +1901,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retainPermissionsOnRevokeFailure"`: Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data source. """ -function delete_data_source( +delete_data_source( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/data-sources/$(identifier)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/data-sources/$(identifier)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_data_source( domainIdentifier, identifier, @@ -1565,26 +1943,58 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"skipDeletionCheck"`: Specifies the optional flag to delete all child entities within the domain. """ -function delete_domain(identifier; aws_config::AbstractAWSConfig=current_aws_config()) +delete_domain(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = datazone( + "DELETE", + "/v2/domains/$(identifier)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_domain( + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) return datazone( "DELETE", "/v2/domains/$(identifier)", - Dict{String,Any}("clientToken" => string(uuid4())); + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("clientToken" => string(uuid4())), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function delete_domain( + +""" + delete_domain_unit(domain_identifier, identifier) + delete_domain_unit(domain_identifier, identifier, params::Dict{String,<:Any}) + +Deletes a domain unit. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to delete a domain unit. +- `identifier`: The ID of the domain unit that you want to delete. + +""" +delete_domain_unit( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/domain-units/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_domain_unit( + domainIdentifier, identifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "DELETE", - "/v2/domains/$(identifier)", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("clientToken" => string(uuid4())), params) - ); + "/v2/domains/$(domainIdentifier)/domain-units/$(identifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -1602,16 +2012,14 @@ Deletes an environment in Amazon DataZone. - `identifier`: The identifier of the environment that is to be deleted. """ -function delete_environment( +delete_environment( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/environments/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/environments/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment( domainIdentifier, identifier, @@ -1642,19 +2050,17 @@ tool that is available in this environment. - `identifier`: The ID of the environment action that is deleted. """ -function delete_environment_action( +delete_environment_action( domainIdentifier, environmentIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment_action( domainIdentifier, environmentIdentifier, @@ -1684,18 +2090,16 @@ Deletes the blueprint configuration in Amazon DataZone. deleted. """ -function delete_environment_blueprint_configuration( +delete_environment_blueprint_configuration( domainIdentifier, environmentBlueprintIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations/$(environmentBlueprintIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations/$(environmentBlueprintIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment_blueprint_configuration( domainIdentifier, environmentBlueprintIdentifier, @@ -1723,16 +2127,14 @@ Deletes an environment profile in Amazon DataZone. - `identifier`: The ID of the environment profile that is deleted. """ -function delete_environment_profile( +delete_environment_profile( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/environment-profiles/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/environment-profiles/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment_profile( domainIdentifier, identifier, @@ -1760,16 +2162,14 @@ Delets and metadata form type in Amazon DataZone. - `form_type_identifier`: The ID of the metadata form type that is deleted. """ -function delete_form_type( +delete_form_type( domainIdentifier, formTypeIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/form-types/$(formTypeIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/form-types/$(formTypeIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_form_type( domainIdentifier, formTypeIdentifier, @@ -1797,16 +2197,14 @@ Deletes a business glossary in Amazon DataZone. - `identifier`: The ID of the business glossary that is deleted. """ -function delete_glossary( +delete_glossary( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/glossaries/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/glossaries/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_glossary( domainIdentifier, identifier, @@ -1834,16 +2232,14 @@ Deletes a business glossary term in Amazon DataZone. - `identifier`: The ID of the business glossary term that is deleted. """ -function delete_glossary_term( +delete_glossary_term( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/glossary-terms/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/glossary-terms/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_glossary_term( domainIdentifier, identifier, @@ -1870,16 +2266,14 @@ Deletes a listing (a record of an asset at a given time). - `identifier`: The ID of the listing to be deleted. """ -function delete_listing( +delete_listing( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/listings/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/listings/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_listing( domainIdentifier, identifier, @@ -1910,16 +2304,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"skipDeletionCheck"`: Specifies the optional flag to delete all child entities within the project. """ -function delete_project( +delete_project( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/projects/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/projects/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_project( domainIdentifier, identifier, @@ -1949,20 +2341,18 @@ Deletes project membership in Amazon DataZone. deleted. """ -function delete_project_membership( +delete_project_membership( domainIdentifier, member, projectIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/projects/$(projectIdentifier)/deleteMembership", + Dict{String,Any}("member" => member); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/projects/$(projectIdentifier)/deleteMembership", - Dict{String,Any}("member" => member); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_project_membership( domainIdentifier, member, @@ -1991,16 +2381,14 @@ Deletes and subscription grant in Amazon DataZone. - `identifier`: The ID of the subscription grant that is deleted. """ -function delete_subscription_grant( +delete_subscription_grant( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/subscription-grants/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/subscription-grants/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_subscription_grant( domainIdentifier, identifier, @@ -2028,16 +2416,14 @@ Deletes a subscription request in Amazon DataZone. - `identifier`: The ID of the subscription request that is deleted. """ -function delete_subscription_request( +delete_subscription_request( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_subscription_request( domainIdentifier, identifier, @@ -2067,19 +2453,17 @@ Deletes a subscription target in Amazon DataZone. - `identifier`: The ID of the subscription target that is deleted. """ -function delete_subscription_target( +delete_subscription_target( domainIdentifier, environmentIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_subscription_target( domainIdentifier, environmentIdentifier, @@ -2114,21 +2498,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided. """ -function delete_time_series_data_points( +delete_time_series_data_points( domainIdentifier, entityIdentifier, entityType, formName; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/time-series-data-points", + Dict{String,Any}("formName" => formName, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/time-series-data-points", - Dict{String,Any}("formName" => formName, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_time_series_data_points( domainIdentifier, entityIdentifier, @@ -2165,19 +2547,17 @@ Disassociates the environment role in Amazon DataZone. - `environment_role_arn`: The ARN of the environment role. """ -function disassociate_environment_role( +disassociate_environment_role( domainIdentifier, environmentIdentifier, environmentRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "DELETE", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/roles/$(environmentRoleArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "DELETE", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/roles/$(environmentRoleArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_environment_role( domainIdentifier, environmentIdentifier, @@ -2208,17 +2588,54 @@ Gets an Amazon DataZone asset. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"revision"`: The revision of the Amazon DataZone asset. """ -function get_asset( +get_asset( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/assets/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_asset( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)"; + "/v2/domains/$(domainIdentifier)/assets/$(identifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_asset( + +""" + get_asset_filter(asset_identifier, domain_identifier, identifier) + get_asset_filter(asset_identifier, domain_identifier, identifier, params::Dict{String,<:Any}) + +Gets an asset filter. + +# Arguments +- `asset_identifier`: The ID of the data asset. +- `domain_identifier`: The ID of the domain where you want to get an asset filter. +- `identifier`: The ID of the asset filter. + +""" +get_asset_filter( + assetIdentifier, + domainIdentifier, + identifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_asset_filter( + assetIdentifier, domainIdentifier, identifier, params::AbstractDict{String}; @@ -2226,7 +2643,7 @@ function get_asset( ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters/$(identifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -2247,17 +2664,52 @@ Gets an Amazon DataZone asset type. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"revision"`: The revision of the asset type. """ -function get_asset_type( +get_asset_type( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/asset-types/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_asset_type( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/asset-types/$(identifier)"; + "/v2/domains/$(domainIdentifier)/asset-types/$(identifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_asset_type( + +""" + get_data_product(domain_identifier, identifier) + get_data_product(domain_identifier, identifier, params::Dict{String,<:Any}) + +Gets the data product. + +# Arguments +- `domain_identifier`: The ID of the domain where the data product lives. +- `identifier`: The ID of the data product. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"revision"`: The revision of the data product. +""" +get_data_product( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/data-products/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_data_product( domainIdentifier, identifier, params::AbstractDict{String}; @@ -2265,7 +2717,7 @@ function get_asset_type( ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/asset-types/$(identifier)", + "/v2/domains/$(domainIdentifier)/data-products/$(identifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -2283,16 +2735,14 @@ Gets an Amazon DataZone data source. - `identifier`: The ID of the Amazon DataZone data source. """ -function get_data_source( +get_data_source( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/data-sources/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/data-sources/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_source( domainIdentifier, identifier, @@ -2319,16 +2769,14 @@ Gets an Amazon DataZone data source run. - `identifier`: The ID of the data source run. """ -function get_data_source_run( +get_data_source_run( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/data-source-runs/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/data-source-runs/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_source_run( domainIdentifier, identifier, @@ -2354,22 +2802,54 @@ Gets an Amazon DataZone domain. - `identifier`: The identifier of the specified Amazon DataZone domain. """ -function get_domain(identifier; aws_config::AbstractAWSConfig=current_aws_config()) +get_domain(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = datazone( + "GET", + "/v2/domains/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_domain( + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) return datazone( "GET", - "/v2/domains/$(identifier)"; + "/v2/domains/$(identifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_domain( + +""" + get_domain_unit(domain_identifier, identifier) + get_domain_unit(domain_identifier, identifier, params::Dict{String,<:Any}) + +Gets the details of the specified domain unit. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to get a domain unit. +- `identifier`: The identifier of the domain unit that you want to get. + +""" +get_domain_unit( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/domain-units/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_domain_unit( + domainIdentifier, identifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(identifier)", + "/v2/domains/$(domainIdentifier)/domain-units/$(identifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -2387,16 +2867,14 @@ Gets an Amazon DataZone environment. - `identifier`: The ID of the Amazon DataZone environment. """ -function get_environment( +get_environment( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environments/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environments/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_environment( domainIdentifier, identifier, @@ -2425,19 +2903,17 @@ Gets the specified environment action. - `identifier`: The ID of the environment action """ -function get_environment_action( +get_environment_action( domainIdentifier, environmentIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_environment_action( domainIdentifier, environmentIdentifier, @@ -2465,25 +2941,59 @@ Gets an Amazon DataZone blueprint. - `identifier`: The ID of this Amazon DataZone blueprint. """ -function get_environment_blueprint( +get_environment_blueprint( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environment-blueprints/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_environment_blueprint( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/environment-blueprints/$(identifier)"; + "/v2/domains/$(domainIdentifier)/environment-blueprints/$(identifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_environment_blueprint( + +""" + get_environment_blueprint_configuration(domain_identifier, environment_blueprint_identifier) + get_environment_blueprint_configuration(domain_identifier, environment_blueprint_identifier, params::Dict{String,<:Any}) + +Gets the blueprint configuration in Amazon DataZone. + +# Arguments +- `domain_identifier`: The ID of the Amazon DataZone domain where this blueprint exists. +- `environment_blueprint_identifier`: He ID of the blueprint. + +""" +get_environment_blueprint_configuration( domainIdentifier, - identifier, + environmentBlueprintIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations/$(environmentBlueprintIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_environment_blueprint_configuration( + domainIdentifier, + environmentBlueprintIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/environment-blueprints/$(identifier)", + "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations/$(environmentBlueprintIdentifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -2491,37 +3001,36 @@ function get_environment_blueprint( end """ - get_environment_blueprint_configuration(domain_identifier, environment_blueprint_identifier) - get_environment_blueprint_configuration(domain_identifier, environment_blueprint_identifier, params::Dict{String,<:Any}) + get_environment_credentials(domain_identifier, environment_identifier) + get_environment_credentials(domain_identifier, environment_identifier, params::Dict{String,<:Any}) -Gets the blueprint configuration in Amazon DataZone. +Gets the credentials of an environment in Amazon DataZone. # Arguments -- `domain_identifier`: The ID of the Amazon DataZone domain where this blueprint exists. -- `environment_blueprint_identifier`: He ID of the blueprint. +- `domain_identifier`: The ID of the Amazon DataZone domain in which this environment and + its credentials exist. +- `environment_identifier`: The ID of the environment whose credentials this operation gets. """ -function get_environment_blueprint_configuration( +get_environment_credentials( domainIdentifier, - environmentBlueprintIdentifier; + environmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/credentials"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations/$(environmentBlueprintIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function get_environment_blueprint_configuration( +function get_environment_credentials( domainIdentifier, - environmentBlueprintIdentifier, + environmentIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations/$(environmentBlueprintIdentifier)", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/credentials", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -2540,16 +3049,14 @@ Gets an evinronment profile in Amazon DataZone. - `identifier`: The ID of the environment profile. """ -function get_environment_profile( +get_environment_profile( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environment-profiles/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environment-profiles/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_environment_profile( domainIdentifier, identifier, @@ -2580,16 +3087,14 @@ Gets a metadata form type in Amazon DataZone. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"revision"`: The revision of this metadata form type. """ -function get_form_type( +get_form_type( domainIdentifier, formTypeIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/form-types/$(formTypeIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/form-types/$(formTypeIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_form_type( domainIdentifier, formTypeIdentifier, @@ -2617,16 +3122,14 @@ Gets a business glossary in Amazon DataZone. - `identifier`: The ID of the business glossary. """ -function get_glossary( +get_glossary( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/glossaries/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/glossaries/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_glossary( domainIdentifier, identifier, @@ -2654,16 +3157,14 @@ Gets a business glossary term in Amazon DataZone. - `identifier`: The ID of the business glossary term. """ -function get_glossary_term( +get_glossary_term( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/glossary-terms/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/glossary-terms/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_glossary_term( domainIdentifier, identifier, @@ -2691,16 +3192,14 @@ Gets a group profile in Amazon DataZone. - `group_identifier`: The identifier of the group profile. """ -function get_group_profile( +get_group_profile( domainIdentifier, groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/group-profiles/$(groupIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/group-profiles/$(groupIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_group_profile( domainIdentifier, groupIdentifier, @@ -2727,24 +3226,62 @@ Gets the data portal URL for the specified Amazon DataZone domain. want to get. """ -function get_iam_portal_login_url( +get_iam_portal_login_url( domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/get-portal-login-url"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_iam_portal_login_url( + domainIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "POST", - "/v2/domains/$(domainIdentifier)/get-portal-login-url"; + "/v2/domains/$(domainIdentifier)/get-portal-login-url", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_iam_portal_login_url( + +""" + get_lineage_node(domain_identifier, identifier) + get_lineage_node(domain_identifier, identifier, params::Dict{String,<:Any}) + +Gets the data lineage node. + +# Arguments +- `domain_identifier`: The ID of the domain in which you want to get the data lineage node. +- `identifier`: The ID of the data lineage node that you want to get. Both, a lineage node + identifier generated by Amazon DataZone and a sourceIdentifier of the lineage node are + supported. If sourceIdentifier is greater than 1800 characters, you can use lineage node + identifier generated by Amazon DataZone to get the node details. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"timestamp"`: The event time stamp for which you want to get the data lineage node. +""" +get_lineage_node( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/lineage/nodes/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_lineage_node( domainIdentifier, + identifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/get-portal-login-url", + "GET", + "/v2/domains/$(domainIdentifier)/lineage/nodes/$(identifier)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -2755,7 +3292,8 @@ end get_listing(domain_identifier, identifier) get_listing(domain_identifier, identifier, params::Dict{String,<:Any}) -Gets a listing (a record of an asset at a given time). +Gets a listing (a record of an asset at a given time). If you specify a listing version, +only details that are specific to that version are returned. # Arguments - `domain_identifier`: The ID of the Amazon DataZone domain. @@ -2765,16 +3303,14 @@ Gets a listing (a record of an asset at a given time). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"listingRevision"`: The revision of the listing. """ -function get_listing( +get_listing( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/listings/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/listings/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_listing( domainIdentifier, identifier, @@ -2802,16 +3338,14 @@ Gets a metadata generation run in Amazon DataZone. - `identifier`: The identifier of the metadata generation run. """ -function get_metadata_generation_run( +get_metadata_generation_run( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/metadata-generation-runs/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/metadata-generation-runs/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_metadata_generation_run( domainIdentifier, identifier, @@ -2838,16 +3372,14 @@ Gets a project in Amazon DataZone. - `identifier`: The ID of the project. """ -function get_project( +get_project( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/projects/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/projects/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_project( domainIdentifier, identifier, @@ -2875,16 +3407,14 @@ Gets a subscription in Amazon DataZone. - `identifier`: The ID of the subscription. """ -function get_subscription( +get_subscription( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/subscriptions/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/subscriptions/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_subscription( domainIdentifier, identifier, @@ -2912,16 +3442,14 @@ Gets the subscription grant in Amazon DataZone. - `identifier`: The ID of the subscription grant. """ -function get_subscription_grant( +get_subscription_grant( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/subscription-grants/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/subscription-grants/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_subscription_grant( domainIdentifier, identifier, @@ -2949,16 +3477,14 @@ Gets the details of the specified subscription request. - `identifier`: The identifier of the subscription request the details of which to get. """ -function get_subscription_request_details( +get_subscription_request_details( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_subscription_request_details( domainIdentifier, identifier, @@ -2988,19 +3514,17 @@ Gets the subscription target in Amazon DataZone. - `identifier`: The ID of the subscription target. """ -function get_subscription_target( +get_subscription_target( domainIdentifier, environmentIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_subscription_target( domainIdentifier, environmentIdentifier, @@ -3033,22 +3557,20 @@ Gets the existing data point for the asset. - `identifier`: The ID of the data point that you want to get. """ -function get_time_series_data_point( +get_time_series_data_point( domainIdentifier, entityIdentifier, entityType, formName, identifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/time-series-data-points/$(identifier)", + Dict{String,Any}("formName" => formName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/time-series-data-points/$(identifier)", - Dict{String,Any}("formName" => formName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_time_series_data_point( domainIdentifier, entityIdentifier, @@ -3084,25 +3606,69 @@ Gets a user profile in Amazon DataZone. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"type"`: The type of the user profile. """ -function get_user_profile( +get_user_profile( domainIdentifier, userIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/user-profiles/$(userIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_user_profile( + domainIdentifier, + userIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/user-profiles/$(userIdentifier)"; + "/v2/domains/$(domainIdentifier)/user-profiles/$(userIdentifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_user_profile( + +""" + list_asset_filters(asset_identifier, domain_identifier) + list_asset_filters(asset_identifier, domain_identifier, params::Dict{String,<:Any}) + +Lists asset filters. + +# Arguments +- `asset_identifier`: The ID of the data asset. +- `domain_identifier`: The ID of the domain where you want to list asset filters. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of asset filters to return in a single call to + ListAssetFilters. When the number of asset filters to be listed is greater than the value + of MaxResults, the response contains a NextToken value that you can use in a subsequent + call to ListAssetFilters to list the next set of asset filters. +- `"nextToken"`: When the number of asset filters is greater than the default value for the + MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than + the number of asset filters, the response includes a pagination token named NextToken. You + can specify this NextToken value in a subsequent call to ListAssetFilters to list the next + set of asset filters. +- `"status"`: The status of the asset filter. +""" +list_asset_filters( + assetIdentifier, domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_asset_filters( + assetIdentifier, domainIdentifier, - userIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/user-profiles/$(userIdentifier)", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -3131,17 +3697,61 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify this NextToken value in a subsequent call to ListAssetRevisions to list the next set of revisions. """ -function list_asset_revisions( +list_asset_revisions( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/assets/$(identifier)/revisions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_asset_revisions( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)/revisions"; + "/v2/domains/$(domainIdentifier)/assets/$(identifier)/revisions", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function list_asset_revisions( + +""" + list_data_product_revisions(domain_identifier, identifier) + list_data_product_revisions(domain_identifier, identifier, params::Dict{String,<:Any}) + +Lists data product revisions. + +# Arguments +- `domain_identifier`: The ID of the domain of the data product revisions that you want to + list. +- `identifier`: The ID of the data product revision. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of asset filters to return in a single call to + ListDataProductRevisions. When the number of data product revisions to be listed is greater + than the value of MaxResults, the response contains a NextToken value that you can use in a + subsequent call to ListDataProductRevisions to list the next set of data product revisions. +- `"nextToken"`: When the number of data product revisions is greater than the default + value for the MaxResults parameter, or if you explicitly specify a value for MaxResults + that is less than the number of data product revisions, the response includes a pagination + token named NextToken. You can specify this NextToken value in a subsequent call to + ListDataProductRevisions to list the next set of data product revisions. +""" +list_data_product_revisions( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/data-products/$(identifier)/revisions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_data_product_revisions( domainIdentifier, identifier, params::AbstractDict{String}; @@ -3149,7 +3759,7 @@ function list_asset_revisions( ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)/revisions", + "/v2/domains/$(domainIdentifier)/data-products/$(identifier)/revisions", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -3180,16 +3790,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the next set of activities. - `"status"`: The status of the data source run. """ -function list_data_source_run_activities( +list_data_source_run_activities( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/data-source-runs/$(identifier)/activities"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/data-source-runs/$(identifier)/activities"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_source_run_activities( domainIdentifier, identifier, @@ -3229,18 +3837,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set of runs. - `"status"`: The status of the data source. """ -function list_data_source_runs( +list_data_source_runs( dataSourceIdentifier, domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/data-sources/$(dataSourceIdentifier)/runs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/data-sources/$(dataSourceIdentifier)/runs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_source_runs( dataSourceIdentifier, domainIdentifier, @@ -3284,29 +3890,84 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the data source. - `"type"`: The type of the data source. """ -function list_data_sources( +list_data_sources( domainIdentifier, projectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/data-sources", + Dict{String,Any}("projectIdentifier" => projectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_data_sources( + domainIdentifier, + projectIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", "/v2/domains/$(domainIdentifier)/data-sources", - Dict{String,Any}("projectIdentifier" => projectIdentifier); + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("projectIdentifier" => projectIdentifier), params + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function list_data_sources( + +""" + list_domain_units_for_parent(domain_identifier, parent_domain_unit_identifier) + list_domain_units_for_parent(domain_identifier, parent_domain_unit_identifier, params::Dict{String,<:Any}) + +Lists child domain units for the specified parent domain unit. + +# Arguments +- `domain_identifier`: The ID of the domain in which you want to list domain units for a + parent domain unit. +- `parent_domain_unit_identifier`: The ID of the parent domain unit. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of domain units to return in a single call to + ListDomainUnitsForParent. When the number of domain units to be listed is greater than the + value of MaxResults, the response contains a NextToken value that you can use in a + subsequent call to ListDomainUnitsForParent to list the next set of domain units. +- `"nextToken"`: When the number of domain units is greater than the default value for the + MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than + the number of domain units, the response includes a pagination token named NextToken. You + can specify this NextToken value in a subsequent call to ListDomainUnitsForParent to list + the next set of domain units. +""" +list_domain_units_for_parent( domainIdentifier, - projectIdentifier, + parentDomainUnitIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/domain-units", + Dict{String,Any}("parentDomainUnitIdentifier" => parentDomainUnitIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_domain_units_for_parent( + domainIdentifier, + parentDomainUnitIdentifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/data-sources", + "/v2/domains/$(domainIdentifier)/domain-units", Dict{String,Any}( mergewith( - _merge, Dict{String,Any}("projectIdentifier" => projectIdentifier), params + _merge, + Dict{String,Any}( + "parentDomainUnitIdentifier" => parentDomainUnitIdentifier + ), + params, ), ); aws_config=aws_config, @@ -3333,16 +3994,63 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys domains. - `"status"`: The status of the data source. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone("GET", "/v2/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function list_domains( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return datazone( - "GET", "/v2/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "GET", "/v2/domains", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) end -function list_domains( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() + +""" + list_entity_owners(domain_identifier, entity_identifier, entity_type) + list_entity_owners(domain_identifier, entity_identifier, entity_type, params::Dict{String,<:Any}) + +Lists the entity (domain units) owners. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to list entity owners. +- `entity_identifier`: The ID of the entity that you want to list. +- `entity_type`: The type of the entity that you want to list. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of entities to return in a single call to + ListEntityOwners. When the number of entities to be listed is greater than the value of + MaxResults, the response contains a NextToken value that you can use in a subsequent call + to ListEntityOwners to list the next set of entities. +- `"nextToken"`: When the number of entities is greater than the default value for the + MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than + the number of entities, the response includes a pagination token named NextToken. You can + specify this NextToken value in a subsequent call to ListEntityOwners to list the next set + of entities. +""" +list_entity_owners( + domainIdentifier, + entityIdentifier, + entityType; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/owners"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_entity_owners( + domainIdentifier, + entityIdentifier, + entityType, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( - "GET", "/v2/domains", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "GET", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/owners", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) end @@ -3369,18 +4077,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken. You can specify this NextToken value in a subsequent call to ListEnvironmentActions to list the next set of environment actions. """ -function list_environment_actions( +list_environment_actions( domainIdentifier, environmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_actions( domainIdentifier, environmentIdentifier, @@ -3418,16 +4124,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys named NextToken. You can specify this NextToken value in a subsequent call to ListEnvironmentBlueprintConfigurations to list the next set of configurations. """ -function list_environment_blueprint_configurations( +list_environment_blueprint_configurations( domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_blueprint_configurations( domainIdentifier, params::AbstractDict{String}; @@ -3465,16 +4169,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListEnvironmentBlueprintsto list the next set of blueprints. """ -function list_environment_blueprints( +list_environment_blueprints( domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environment-blueprints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environment-blueprints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_blueprints( domainIdentifier, params::AbstractDict{String}; @@ -3518,16 +4220,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListEnvironmentProfiles to list the next set of environment profiles. - `"projectIdentifier"`: The identifier of the Amazon DataZone project. """ -function list_environment_profiles( +list_environment_profiles( domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environment-profiles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environment-profiles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_profiles( domainIdentifier, params::AbstractDict{String}; @@ -3572,17 +4272,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"provider"`: The provider of the environment. - `"status"`: The status of the environments that you want to list. """ -function list_environments( +list_environments( domainIdentifier, projectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environments", + Dict{String,Any}("projectIdentifier" => projectIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environments", - Dict{String,Any}("projectIdentifier" => projectIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environments( domainIdentifier, projectIdentifier, @@ -3602,6 +4300,60 @@ function list_environments( ) end +""" + list_lineage_node_history(domain_identifier, identifier) + list_lineage_node_history(domain_identifier, identifier, params::Dict{String,<:Any}) + +Lists the history of the specified data lineage node. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to list the history of the + specified data lineage node. +- `identifier`: The ID of the data lineage node whose history you want to list. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"direction"`: The direction of the data lineage node refers to the lineage node having + neighbors in that direction. For example, if direction is UPSTREAM, the + ListLineageNodeHistory API responds with historical versions with upstream neighbors only. +- `"maxResults"`: The maximum number of history items to return in a single call to + ListLineageNodeHistory. When the number of memberships to be listed is greater than the + value of MaxResults, the response contains a NextToken value that you can use in a + subsequent call to ListLineageNodeHistory to list the next set of items. +- `"nextToken"`: When the number of history items is greater than the default value for the + MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than + the number of items, the response includes a pagination token named NextToken. You can + specify this NextToken value in a subsequent call to ListLineageNodeHistory to list the + next set of items. +- `"sortOrder"`: The order by which you want data lineage node history to be sorted. +- `"timestampGTE"`: Specifies whether the action is to return data lineage node history + from the time after the event timestamp. +- `"timestampLTE"`: Specifies whether the action is to return data lineage node history + from the time prior of the event timestamp. +""" +list_lineage_node_history( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/lineage/nodes/$(identifier)/history"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_lineage_node_history( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return datazone( + "GET", + "/v2/domains/$(domainIdentifier)/lineage/nodes/$(identifier)/history", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_metadata_generation_runs(domain_identifier) list_metadata_generation_runs(domain_identifier, params::Dict{String,<:Any}) @@ -3626,16 +4378,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the metadata generation runs. - `"type"`: The type of the metadata generation runs. """ -function list_metadata_generation_runs( +list_metadata_generation_runs( domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/metadata-generation-runs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/metadata-generation-runs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_metadata_generation_runs( domainIdentifier, params::AbstractDict{String}; @@ -3676,27 +4426,81 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subjects"`: The subjects of notifications. - `"taskStatus"`: The task status of notifications. """ -function list_notifications( +list_notifications( domainIdentifier, type; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/notifications", + Dict{String,Any}("type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_notifications( + domainIdentifier, + type, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", "/v2/domains/$(domainIdentifier)/notifications", - Dict{String,Any}("type" => type); + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("type" => type), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function list_notifications( + +""" + list_policy_grants(domain_identifier, entity_identifier, entity_type, policy_type) + list_policy_grants(domain_identifier, entity_identifier, entity_type, policy_type, params::Dict{String,<:Any}) + +Lists policy grants. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to list policy grants. +- `entity_identifier`: The ID of the entity for which you want to list policy grants. +- `entity_type`: The type of entity for which you want to list policy grants. +- `policy_type`: The type of policy that you want to list. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of grants to return in a single call to + ListPolicyGrants. When the number of grants to be listed is greater than the value of + MaxResults, the response contains a NextToken value that you can use in a subsequent call + to ListPolicyGrants to list the next set of grants. +- `"nextToken"`: When the number of grants is greater than the default value for the + MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than + the number of grants, the response includes a pagination token named NextToken. You can + specify this NextToken value in a subsequent call to ListPolicyGrants to list the next set + of grants. +""" +list_policy_grants( domainIdentifier, - type, + entityIdentifier, + entityType, + policyType; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/policies/managed/$(entityType)/$(entityIdentifier)/grants", + Dict{String,Any}("policyType" => policyType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_policy_grants( + domainIdentifier, + entityIdentifier, + entityType, + policyType, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "GET", - "/v2/domains/$(domainIdentifier)/notifications", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("type" => type), params)); + "/v2/domains/$(domainIdentifier)/policies/managed/$(entityType)/$(entityIdentifier)/grants", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("policyType" => policyType), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -3727,16 +4531,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: The method by which you want to sort the project memberships. - `"sortOrder"`: The sort order of the project memberships. """ -function list_project_memberships( +list_project_memberships( domainIdentifier, projectIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/projects/$(projectIdentifier)/memberships"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/projects/$(projectIdentifier)/memberships"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_project_memberships( domainIdentifier, projectIdentifier, @@ -3776,14 +4578,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys projects. - `"userIdentifier"`: The identifier of the Amazon DataZone user. """ -function list_projects(domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return datazone( +list_projects(domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone( "GET", "/v2/domains/$(domainIdentifier)/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_projects( domainIdentifier, params::AbstractDict{String}; @@ -3819,22 +4620,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys less than the number of subscription grants, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListSubscriptionGrants to list the next set of subscription grants. +- `"owningProjectId"`: The ID of the owning project of the subscription grants. - `"sortBy"`: Specifies the way of sorting the results of this action. - `"sortOrder"`: Specifies the sort order of this action. - `"subscribedListingId"`: The identifier of the subscribed listing. - `"subscriptionId"`: The identifier of the subscription. - `"subscriptionTargetId"`: The identifier of the subscription target. """ -function list_subscription_grants( +list_subscription_grants( domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/subscription-grants"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/subscription-grants"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_subscription_grants( domainIdentifier, params::AbstractDict{String}; @@ -3873,19 +4673,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"owningProjectId"`: The identifier of the project for the subscription requests. - `"sortBy"`: Specifies the way to sort the results of this action. - `"sortOrder"`: Specifies the sort order for the results of this action. -- `"status"`: Specifies the status of the subscription requests. +- `"status"`: Specifies the status of the subscription requests. This is not a required + parameter, but if not specified, by default, Amazon DataZone returns only PENDING + subscription requests. - `"subscribedListingId"`: The identifier of the subscribed listing. """ -function list_subscription_requests( +list_subscription_requests( domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/subscription-requests"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/subscription-requests"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_subscription_requests( domainIdentifier, params::AbstractDict{String}; @@ -3926,18 +4726,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: Specifies the way in which the results of this action are to be sorted. - `"sortOrder"`: Specifies the sort order for the results of this action. """ -function list_subscription_targets( +list_subscription_targets( domainIdentifier, environmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_subscription_targets( domainIdentifier, environmentIdentifier, @@ -3977,22 +4775,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"owningProjectId"`: The identifier of the owning project. - `"sortBy"`: Specifies the way in which the results of this action are to be sorted. - `"sortOrder"`: Specifies the sort order for the results of this action. -- `"status"`: The status of the subscriptions that you want to list. +- `"status"`: The status of the subscriptions that you want to list. This is not a + required parameter, but if not provided, by default, Amazon DataZone returns only APPROVED + subscriptions. - `"subscribedListingId"`: The identifier of the subscribed listing for the subscriptions that you want to list. - `"subscriptionRequestIdentifier"`: The identifier of the subscription request for the subscriptions that you want to list. """ -function list_subscriptions( - domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return datazone( +list_subscriptions(domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone( "GET", "/v2/domains/$(domainIdentifier)/subscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_subscriptions( domainIdentifier, params::AbstractDict{String}; @@ -4017,16 +4814,13 @@ Lists tags for the specified resource in Amazon DataZone. - `resource_arn`: The ARN of the resource whose tags you want to list. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return datazone( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -4068,21 +4862,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the next set of data points. - `"startedAt"`: The timestamp at which the data points that you want to list started. """ -function list_time_series_data_points( +list_time_series_data_points( domainIdentifier, entityIdentifier, entityType, formName; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "GET", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/time-series-data-points", + Dict{String,Any}("formName" => formName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "GET", - "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/time-series-data-points", - Dict{String,Any}("formName" => formName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_time_series_data_points( domainIdentifier, entityIdentifier, @@ -4102,6 +4894,52 @@ function list_time_series_data_points( ) end +""" + post_lineage_event(domain_identifier, event) + post_lineage_event(domain_identifier, event, params::Dict{String,<:Any}) + +Posts a data lineage event. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to post a data lineage event. +- `event`: The data lineage event that you want to post. Only open-lineage run event are + supported as events. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. +""" +post_lineage_event( + domainIdentifier, event; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/lineage/events", + Dict{String,Any}("event" => event, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function post_lineage_event( + domainIdentifier, + event, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return datazone( + "POST", + "/v2/domains/$(domainIdentifier)/lineage/events", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("event" => event, "clientToken" => string(uuid4())), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ post_time_series_data_points(domain_identifier, entity_identifier, entity_type, forms) post_time_series_data_points(domain_identifier, entity_identifier, entity_type, forms, params::Dict{String,<:Any}) @@ -4121,21 +4959,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. """ -function post_time_series_data_points( +post_time_series_data_points( domainIdentifier, entityIdentifier, entityType, forms; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/time-series-data-points", + Dict{String,Any}("forms" => forms, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/time-series-data-points", - Dict{String,Any}("forms" => forms, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function post_time_series_data_points( domainIdentifier, entityIdentifier, @@ -4173,23 +5009,22 @@ Writes the configuration for the specified environment blueprint in Amazon DataZ # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"manageAccessRoleArn"`: The ARN of the manage access role. +- `"provisioningConfigurations"`: The provisioning configuration of a blueprint. - `"provisioningRoleArn"`: The ARN of the provisioning role. - `"regionalParameters"`: The regional parameters in the environment blueprint. """ -function put_environment_blueprint_configuration( +put_environment_blueprint_configuration( domainIdentifier, enabledRegions, environmentBlueprintIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations/$(environmentBlueprintIdentifier)", + Dict{String,Any}("enabledRegions" => enabledRegions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/environment-blueprint-configurations/$(environmentBlueprintIdentifier)", - Dict{String,Any}("enabledRegions" => enabledRegions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_environment_blueprint_configuration( domainIdentifier, enabledRegions, @@ -4228,28 +5063,118 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys rejected. - `"revision"`: The revision that is to be made to the asset. """ -function reject_predictions( +reject_predictions( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/assets/$(identifier)/reject-predictions", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function reject_predictions( + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "PUT", "/v2/domains/$(domainIdentifier)/assets/$(identifier)/reject-predictions", - Dict{String,Any}("clientToken" => string(uuid4())); + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("clientToken" => string(uuid4())), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function reject_predictions( + +""" + reject_subscription_request(domain_identifier, identifier) + reject_subscription_request(domain_identifier, identifier, params::Dict{String,<:Any}) + +Rejects the specified subscription request. + +# Arguments +- `domain_identifier`: The identifier of the Amazon DataZone domain in which the + subscription request was rejected. +- `identifier`: The identifier of the subscription request that was rejected. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"decisionComment"`: The decision comment of the rejected subscription request. +""" +reject_subscription_request( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)/reject"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function reject_subscription_request( domainIdentifier, identifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/assets/$(identifier)/reject-predictions", + "PUT", + "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)/reject", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + remove_entity_owner(domain_identifier, entity_identifier, entity_type, owner) + remove_entity_owner(domain_identifier, entity_identifier, entity_type, owner, params::Dict{String,<:Any}) + +Removes an owner from an entity. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to remove an owner from an + entity. +- `entity_identifier`: The ID of the entity from which you want to remove an owner. +- `entity_type`: The type of the entity from which you want to remove an owner. +- `owner`: The owner that you want to remove from an entity. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. +""" +remove_entity_owner( + domainIdentifier, + entityIdentifier, + entityType, + owner; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/removeOwner", + Dict{String,Any}("owner" => owner, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function remove_entity_owner( + domainIdentifier, + entityIdentifier, + entityType, + owner, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return datazone( + "POST", + "/v2/domains/$(domainIdentifier)/entities/$(entityType)/$(entityIdentifier)/removeOwner", Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("clientToken" => string(uuid4())), params) + mergewith( + _merge, + Dict{String,Any}("owner" => owner, "clientToken" => string(uuid4())), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -4257,40 +5182,64 @@ function reject_predictions( end """ - reject_subscription_request(domain_identifier, identifier) - reject_subscription_request(domain_identifier, identifier, params::Dict{String,<:Any}) + remove_policy_grant(domain_identifier, entity_identifier, entity_type, policy_type, principal) + remove_policy_grant(domain_identifier, entity_identifier, entity_type, policy_type, principal, params::Dict{String,<:Any}) -Rejects the specified subscription request. +Removes a policy grant. # Arguments -- `domain_identifier`: The identifier of the Amazon DataZone domain in which the - subscription request was rejected. -- `identifier`: The identifier of the subscription request that was rejected. +- `domain_identifier`: The ID of the domain where you want to remove a policy grant. +- `entity_identifier`: The ID of the entity from which you want to remove a policy grant. +- `entity_type`: The type of the entity from which you want to remove a policy grant. +- `policy_type`: The type of the policy that you want to remove. +- `principal`: The principal from which you want to remove a policy grant. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"decisionComment"`: The decision comment of the rejected subscription request. +- `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the + idempotency of the request. """ -function reject_subscription_request( - domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)/reject"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function reject_subscription_request( +remove_policy_grant( domainIdentifier, - identifier, + entityIdentifier, + entityType, + policyType, + principal; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/policies/managed/$(entityType)/$(entityIdentifier)/removeGrant", + Dict{String,Any}( + "policyType" => policyType, + "principal" => principal, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function remove_policy_grant( + domainIdentifier, + entityIdentifier, + entityType, + policyType, + principal, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)/reject", - params; + "POST", + "/v2/domains/$(domainIdentifier)/policies/managed/$(entityType)/$(entityIdentifier)/removeGrant", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "policyType" => policyType, + "principal" => principal, + "clientToken" => string(uuid4()), + ), + params, + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -4312,16 +5261,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retainPermissions"`: Specifies whether permissions are retained when the subscription is revoked. """ -function revoke_subscription( +revoke_subscription( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/subscriptions/$(identifier)/revoke"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/subscriptions/$(identifier)/revoke"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_subscription( domainIdentifier, identifier, @@ -4365,17 +5312,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"searchText"`: Specifies the text for which to search. - `"sort"`: Specifies the way in which the search results are to be sorted. """ -function search( - domainIdentifier, searchScope; aws_config::AbstractAWSConfig=current_aws_config() -) - return datazone( +search(domainIdentifier, searchScope; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone( "POST", "/v2/domains/$(domainIdentifier)/search", Dict{String,Any}("searchScope" => searchScope); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search( domainIdentifier, searchScope, @@ -4417,17 +5361,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set of results. - `"searchText"`: Specifies the text for which to search. """ -function search_group_profiles( +search_group_profiles( domainIdentifier, groupType; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/search-group-profiles", + Dict{String,Any}("groupType" => groupType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/search-group-profiles", - Dict{String,Any}("groupType" => groupType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_group_profiles( domainIdentifier, groupType, @@ -4471,16 +5413,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"searchText"`: Specifies the text for which to search. - `"sort"`: Specifies the way for sorting the search results. """ -function search_listings( - domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return datazone( +search_listings(domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone( "POST", "/v2/domains/$(domainIdentifier)/listings/search"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_listings( domainIdentifier, params::AbstractDict{String}; @@ -4523,20 +5462,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"searchText"`: Specifies the text for which to search. - `"sort"`: The specifies the way to sort the SearchTypes results. """ -function search_types( +search_types( domainIdentifier, managed, searchScope; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/types-search", + Dict{String,Any}("managed" => managed, "searchScope" => searchScope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/types-search", - Dict{String,Any}("managed" => managed, "searchScope" => searchScope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_types( domainIdentifier, managed, @@ -4583,17 +5520,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set of results. - `"searchText"`: Specifies the text for which to search. """ -function search_user_profiles( +search_user_profiles( domainIdentifier, userType; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/search-user-profiles", + Dict{String,Any}("userType" => userType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/search-user-profiles", - Dict{String,Any}("userType" => userType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_user_profiles( domainIdentifier, userType, @@ -4627,19 +5562,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. """ -function start_data_source_run( +start_data_source_run( dataSourceIdentifier, domainIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/data-sources/$(dataSourceIdentifier)/runs", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/data-sources/$(dataSourceIdentifier)/runs", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_data_source_run( dataSourceIdentifier, domainIdentifier, @@ -4676,26 +5609,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided. """ -function start_metadata_generation_run( +start_metadata_generation_run( domainIdentifier, owningProjectIdentifier, target, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "POST", + "/v2/domains/$(domainIdentifier)/metadata-generation-runs", + Dict{String,Any}( + "owningProjectIdentifier" => owningProjectIdentifier, + "target" => target, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "POST", - "/v2/domains/$(domainIdentifier)/metadata-generation-runs", - Dict{String,Any}( - "owningProjectIdentifier" => owningProjectIdentifier, - "target" => target, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_metadata_generation_run( domainIdentifier, owningProjectIdentifier, @@ -4735,15 +5666,14 @@ Tags a resource in Amazon DataZone. - `tags`: Specifies the tags for the TagResource action. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return datazone( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -4770,17 +5700,14 @@ Untags a resource in Amazon DataZone. - `tag_keys`: Specifies the tag keys for the UntagResource action. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return datazone( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + datazone( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -4796,6 +5723,50 @@ function untag_resource( ) end +""" + update_asset_filter(asset_identifier, domain_identifier, identifier) + update_asset_filter(asset_identifier, domain_identifier, identifier, params::Dict{String,<:Any}) + +Updates an asset filter. + +# Arguments +- `asset_identifier`: The ID of the data asset. +- `domain_identifier`: The ID of the domain where you want to update an asset filter. +- `identifier`: The ID of the asset filter. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"configuration"`: The configuration of the asset filter. +- `"description"`: The description of the asset filter. +- `"name"`: The name of the asset filter. +""" +update_asset_filter( + assetIdentifier, + domainIdentifier, + identifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_asset_filter( + assetIdentifier, + domainIdentifier, + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/assets/$(assetIdentifier)/filters/$(identifier)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ update_data_source(domain_identifier, identifier) update_data_source(domain_identifier, identifier, params::Dict{String,<:Any}) @@ -4822,16 +5793,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in case of a self-subscribe functionality failure for a data source. - `"schedule"`: The schedule to be updated as part of the UpdateDataSource action. """ -function update_data_source( +update_data_source( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/data-sources/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/data-sources/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_source( domainIdentifier, identifier, @@ -4867,26 +5836,62 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"singleSignOn"`: The single sign-on option to be updated as part of the UpdateDomain action. """ -function update_domain(identifier; aws_config::AbstractAWSConfig=current_aws_config()) +update_domain(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = datazone( + "PUT", + "/v2/domains/$(identifier)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_domain( + identifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) return datazone( "PUT", "/v2/domains/$(identifier)", - Dict{String,Any}("clientToken" => string(uuid4())); + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("clientToken" => string(uuid4())), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function update_domain( + +""" + update_domain_unit(domain_identifier, identifier) + update_domain_unit(domain_identifier, identifier, params::Dict{String,<:Any}) + +Updates the domain unit. + +# Arguments +- `domain_identifier`: The ID of the domain where you want to update a domain unit. +- `identifier`: The ID of the domain unit that you want to update. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"description"`: The description of the domain unit that you want to update. +- `"name"`: The name of the domain unit that you want to update. +""" +update_domain_unit( + domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/domain-units/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_domain_unit( + domainIdentifier, identifier, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return datazone( "PUT", - "/v2/domains/$(identifier)", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("clientToken" => string(uuid4())), params) - ); + "/v2/domains/$(domainIdentifier)/domain-units/$(identifier)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -4910,16 +5915,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action. - `"name"`: The name to be updated as part of the UpdateEnvironment action. """ -function update_environment( +update_environment( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/environments/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/environments/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment( domainIdentifier, identifier, @@ -4952,19 +5955,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the environment action. - `"parameters"`: The parameters of the environment action. """ -function update_environment_action( +update_environment_action( domainIdentifier, environmentIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/actions/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment_action( domainIdentifier, environmentIdentifier, @@ -5004,16 +6005,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"userParameters"`: The user parameters to be updated as part of the UpdateEnvironmentProfile action. """ -function update_environment_profile( +update_environment_profile( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/environment-profiles/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/environment-profiles/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment_profile( domainIdentifier, identifier, @@ -5048,17 +6047,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name to be updated as part of the UpdateGlossary action. - `"status"`: The status to be updated as part of the UpdateGlossary action. """ -function update_glossary( +update_glossary( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/glossaries/$(identifier)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/glossaries/$(identifier)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_glossary( domainIdentifier, identifier, @@ -5100,16 +6097,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"termRelations"`: The term relations to be updated as part of the UpdateGlossaryTerm action. """ -function update_glossary_term( +update_glossary_term( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/glossary-terms/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/glossary-terms/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_glossary_term( domainIdentifier, identifier, @@ -5138,20 +6133,18 @@ Updates the specified group profile in Amazon DataZone. - `status`: The status of the group profile that is updated. """ -function update_group_profile( +update_group_profile( domainIdentifier, groupIdentifier, status; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/group-profiles/$(groupIdentifier)", + Dict{String,Any}("status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/group-profiles/$(groupIdentifier)", - Dict{String,Any}("status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_group_profile( domainIdentifier, groupIdentifier, @@ -5175,8 +6168,8 @@ end Updates the specified project in Amazon DataZone. # Arguments -- `domain_identifier`: The identifier of the Amazon DataZone domain in which a project is - to be updated. +- `domain_identifier`: The ID of the Amazon DataZone domain where a project is being + updated. - `identifier`: The identifier of the project that is to be updated. # Optional Parameters @@ -5185,16 +6178,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"glossaryTerms"`: The glossary terms to be updated as part of the UpdateProject action. - `"name"`: The name to be updated as part of the UpdateProject action. """ -function update_project( +update_project( domainIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/projects/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/projects/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_project( domainIdentifier, identifier, @@ -5232,21 +6223,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"targetName"`: The target name to be updated as part of the UpdateSubscriptionGrantStatus action. """ -function update_subscription_grant_status( +update_subscription_grant_status( assetIdentifier, domainIdentifier, identifier, status; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/subscription-grants/$(identifier)/status/$(assetIdentifier)", + Dict{String,Any}("status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/subscription-grants/$(identifier)/status/$(assetIdentifier)", - Dict{String,Any}("status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_subscription_grant_status( assetIdentifier, domainIdentifier, @@ -5277,20 +6266,18 @@ Updates a specified subscription request in Amazon DataZone. - `request_reason`: The reason for the UpdateSubscriptionRequest action. """ -function update_subscription_request( +update_subscription_request( domainIdentifier, identifier, requestReason; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)", + Dict{String,Any}("requestReason" => requestReason); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/subscription-requests/$(identifier)", - Dict{String,Any}("requestReason" => requestReason); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_subscription_request( domainIdentifier, identifier, @@ -5335,19 +6322,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subscriptionTargetConfig"`: The configuration to be updated as part of the UpdateSubscriptionTarget action. """ -function update_subscription_target( +update_subscription_target( domainIdentifier, environmentIdentifier, identifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PATCH", + "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PATCH", - "/v2/domains/$(domainIdentifier)/environments/$(environmentIdentifier)/subscription-targets/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_subscription_target( domainIdentifier, environmentIdentifier, @@ -5380,20 +6365,18 @@ Updates the specified user profile in Amazon DataZone. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"type"`: The type of the user profile that are to be updated. """ -function update_user_profile( +update_user_profile( domainIdentifier, status, userIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = datazone( + "PUT", + "/v2/domains/$(domainIdentifier)/user-profiles/$(userIdentifier)", + Dict{String,Any}("status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return datazone( - "PUT", - "/v2/domains/$(domainIdentifier)/user-profiles/$(userIdentifier)", - Dict{String,Any}("status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_profile( domainIdentifier, status, diff --git a/src/services/dax.jl b/src/services/dax.jl index d1165fa01..9a2f1a1ae 100644 --- a/src/services/dax.jl +++ b/src/services/dax.jl @@ -57,25 +57,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in a subnet group must exist in the same VPC. - `"Tags"`: A set of tags to associate with the DAX cluster. """ -function create_cluster( +create_cluster( ClusterName, IamRoleArn, NodeType, ReplicationFactor; aws_config::AbstractAWSConfig=current_aws_config(), +) = dax( + "CreateCluster", + Dict{String,Any}( + "ClusterName" => ClusterName, + "IamRoleArn" => IamRoleArn, + "NodeType" => NodeType, + "ReplicationFactor" => ReplicationFactor, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "CreateCluster", - Dict{String,Any}( - "ClusterName" => ClusterName, - "IamRoleArn" => IamRoleArn, - "NodeType" => NodeType, - "ReplicationFactor" => ReplicationFactor, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster( ClusterName, IamRoleArn, @@ -118,16 +116,14 @@ apply to all of the nodes in a DAX cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description of the parameter group. """ -function create_parameter_group( +create_parameter_group( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = dax( + "CreateParameterGroup", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "CreateParameterGroup", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_parameter_group( ParameterGroupName, params::AbstractDict{String}; @@ -160,16 +156,14 @@ Creates a new subnet group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description for the subnet group """ -function create_subnet_group( +create_subnet_group( SubnetGroupName, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config() +) = dax( + "CreateSubnetGroup", + Dict{String,Any}("SubnetGroupName" => SubnetGroupName, "SubnetIds" => SubnetIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "CreateSubnetGroup", - Dict{String,Any}("SubnetGroupName" => SubnetGroupName, "SubnetIds" => SubnetIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subnet_group( SubnetGroupName, SubnetIds, @@ -208,18 +202,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AvailabilityZones"`: The Availability Zone(s) from which to remove nodes. - `"NodeIdsToRemove"`: The unique identifiers of the nodes to be removed from the cluster. """ -function decrease_replication_factor( +decrease_replication_factor( ClusterName, NewReplicationFactor; aws_config::AbstractAWSConfig=current_aws_config() +) = dax( + "DecreaseReplicationFactor", + Dict{String,Any}( + "ClusterName" => ClusterName, "NewReplicationFactor" => NewReplicationFactor + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "DecreaseReplicationFactor", - Dict{String,Any}( - "ClusterName" => ClusterName, "NewReplicationFactor" => NewReplicationFactor - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function decrease_replication_factor( ClusterName, NewReplicationFactor, @@ -256,14 +248,12 @@ action. - `cluster_name`: The name of the cluster to be deleted. """ -function delete_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return dax( - "DeleteCluster", - Dict{String,Any}("ClusterName" => ClusterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = dax( + "DeleteCluster", + Dict{String,Any}("ClusterName" => ClusterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_cluster( ClusterName, params::AbstractDict{String}; @@ -290,16 +280,14 @@ associated with any DAX clusters. - `parameter_group_name`: The name of the parameter group to delete. """ -function delete_parameter_group( +delete_parameter_group( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = dax( + "DeleteParameterGroup", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "DeleteParameterGroup", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_parameter_group( ParameterGroupName, params::AbstractDict{String}; @@ -328,16 +316,13 @@ clusters. - `subnet_group_name`: The name of the subnet group to delete. """ -function delete_subnet_group( - SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return dax( +delete_subnet_group(SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + dax( "DeleteSubnetGroup", Dict{String,Any}("SubnetGroupName" => SubnetGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_subnet_group( SubnetGroupName, params::AbstractDict{String}; @@ -379,9 +364,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. """ -function describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return dax("DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + dax("DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -405,11 +389,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. """ -function describe_default_parameters(; aws_config::AbstractAWSConfig=current_aws_config()) - return dax( - "DescribeDefaultParameters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_default_parameters(; aws_config::AbstractAWSConfig=current_aws_config()) = + dax("DescribeDefaultParameters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_default_parameters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -448,9 +429,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: The beginning of the time interval to retrieve events for, specified in ISO 8601 format. """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return dax("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + dax("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -476,11 +456,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys includes only results beyond the token, up to the value specified by MaxResults. - `"ParameterGroupNames"`: The names of the parameter groups. """ -function describe_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return dax( - "DescribeParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + dax("DescribeParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_parameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -512,16 +489,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Source"`: How the parameter is defined. For example, system denotes a system-defined parameter. """ -function describe_parameters( +describe_parameters( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = dax( + "DescribeParameters", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "DescribeParameters", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_parameters( ParameterGroupName, params::AbstractDict{String}; @@ -556,11 +531,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys includes only results beyond the token, up to the value specified by MaxResults. - `"SubnetGroupNames"`: The name of the subnet group. """ -function describe_subnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return dax( - "DescribeSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_subnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + dax("DescribeSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_subnet_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -588,18 +560,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys created. All nodes belonging to the cluster are placed in these Availability Zones. Use this parameter if you want to distribute the nodes across multiple AZs. """ -function increase_replication_factor( +increase_replication_factor( ClusterName, NewReplicationFactor; aws_config::AbstractAWSConfig=current_aws_config() +) = dax( + "IncreaseReplicationFactor", + Dict{String,Any}( + "ClusterName" => ClusterName, "NewReplicationFactor" => NewReplicationFactor + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "IncreaseReplicationFactor", - Dict{String,Any}( - "ClusterName" => ClusterName, "NewReplicationFactor" => NewReplicationFactor - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function increase_replication_factor( ClusterName, NewReplicationFactor, @@ -639,14 +609,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination of results from this action. If this parameter is specified, the response includes only results beyond the token. """ -function list_tags(ResourceName; aws_config::AbstractAWSConfig=current_aws_config()) - return dax( - "ListTags", - Dict{String,Any}("ResourceName" => ResourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(ResourceName; aws_config::AbstractAWSConfig=current_aws_config()) = dax( + "ListTags", + Dict{String,Any}("ResourceName" => ResourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( ResourceName, params::AbstractDict{String}; @@ -675,16 +643,12 @@ engine process and does not remove the contents of the cache. - `node_id`: The system-assigned ID of the node to be rebooted. """ -function reboot_node( - ClusterName, NodeId; aws_config::AbstractAWSConfig=current_aws_config() +reboot_node(ClusterName, NodeId; aws_config::AbstractAWSConfig=current_aws_config()) = dax( + "RebootNode", + Dict{String,Any}("ClusterName" => ClusterName, "NodeId" => NodeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "RebootNode", - Dict{String,Any}("ClusterName" => ClusterName, "NodeId" => NodeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_node( ClusterName, NodeId, @@ -717,16 +681,12 @@ second, per account. - `tags`: The tags to be assigned to the DAX resource. """ -function tag_resource( - ResourceName, Tags; aws_config::AbstractAWSConfig=current_aws_config() +tag_resource(ResourceName, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = dax( + "TagResource", + Dict{String,Any}("ResourceName" => ResourceName, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "TagResource", - Dict{String,Any}("ResourceName" => ResourceName, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_resource( ResourceName, Tags, @@ -760,16 +720,13 @@ times per second, per account. tags are removed from the cluster. """ -function untag_resource( - ResourceName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return dax( +untag_resource(ResourceName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + dax( "UntagResource", Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceName, TagKeys, @@ -815,14 +772,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys node in the DAX cluster. If this parameter is not specified, DAX assigns the default VPC security group to each node. """ -function update_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return dax( - "UpdateCluster", - Dict{String,Any}("ClusterName" => ClusterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = dax( + "UpdateCluster", + Dict{String,Any}("ClusterName" => ClusterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_cluster( ClusterName, params::AbstractDict{String}; @@ -853,21 +808,19 @@ single request by submitting a list parameter name and value pairs. TTL Settings. """ -function update_parameter_group( +update_parameter_group( ParameterGroupName, ParameterNameValues; aws_config::AbstractAWSConfig=current_aws_config(), +) = dax( + "UpdateParameterGroup", + Dict{String,Any}( + "ParameterGroupName" => ParameterGroupName, + "ParameterNameValues" => ParameterNameValues, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dax( - "UpdateParameterGroup", - Dict{String,Any}( - "ParameterGroupName" => ParameterGroupName, - "ParameterNameValues" => ParameterNameValues, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_parameter_group( ParameterGroupName, ParameterNameValues, @@ -905,16 +858,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the subnet group. - `"SubnetIds"`: A list of subnet IDs in the subnet group. """ -function update_subnet_group( - SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return dax( +update_subnet_group(SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + dax( "UpdateSubnetGroup", Dict{String,Any}("SubnetGroupName" => SubnetGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_subnet_group( SubnetGroupName, params::AbstractDict{String}; diff --git a/src/services/deadline.jl b/src/services/deadline.jl index 58bf16a92..1680fcbdb 100644 --- a/src/services/deadline.jl +++ b/src/services/deadline.jl @@ -18,26 +18,24 @@ Assigns a farm membership level to a member. - `principal_type`: The principal type of the member to associate with the farm. """ -function associate_member_to_farm( +associate_member_to_farm( farmId, identityStoreId, membershipLevel, principalId, principalType; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "PUT", + "/2023-10-12/farms/$(farmId)/members/$(principalId)", + Dict{String,Any}( + "identityStoreId" => identityStoreId, + "membershipLevel" => membershipLevel, + "principalType" => principalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PUT", - "/2023-10-12/farms/$(farmId)/members/$(principalId)", - Dict{String,Any}( - "identityStoreId" => identityStoreId, - "membershipLevel" => membershipLevel, - "principalType" => principalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_member_to_farm( farmId, identityStoreId, @@ -81,7 +79,7 @@ Assigns a fleet membership level to a member. - `principal_type`: The member's principal type to associate with the fleet. """ -function associate_member_to_fleet( +associate_member_to_fleet( farmId, fleetId, identityStoreId, @@ -89,19 +87,17 @@ function associate_member_to_fleet( principalId, principalType; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "PUT", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/members/$(principalId)", + Dict{String,Any}( + "identityStoreId" => identityStoreId, + "membershipLevel" => membershipLevel, + "principalType" => principalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PUT", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/members/$(principalId)", - Dict{String,Any}( - "identityStoreId" => identityStoreId, - "membershipLevel" => membershipLevel, - "principalType" => principalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_member_to_fleet( farmId, fleetId, @@ -147,7 +143,7 @@ Assigns a job membership level to a member - `queue_id`: The queue ID to associate to the member. """ -function associate_member_to_job( +associate_member_to_job( farmId, identityStoreId, jobId, @@ -156,19 +152,17 @@ function associate_member_to_job( principalType, queueId; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "PUT", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/members/$(principalId)", + Dict{String,Any}( + "identityStoreId" => identityStoreId, + "membershipLevel" => membershipLevel, + "principalType" => principalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PUT", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/members/$(principalId)", - Dict{String,Any}( - "identityStoreId" => identityStoreId, - "membershipLevel" => membershipLevel, - "principalType" => principalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_member_to_job( farmId, identityStoreId, @@ -214,7 +208,7 @@ Assigns a queue membership level to a member - `queue_id`: The ID of the queue to associate to the member. """ -function associate_member_to_queue( +associate_member_to_queue( farmId, identityStoreId, membershipLevel, @@ -222,19 +216,17 @@ function associate_member_to_queue( principalType, queueId; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "PUT", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/members/$(principalId)", + Dict{String,Any}( + "identityStoreId" => identityStoreId, + "membershipLevel" => membershipLevel, + "principalType" => principalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PUT", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/members/$(principalId)", - Dict{String,Any}( - "identityStoreId" => identityStoreId, - "membershipLevel" => membershipLevel, - "principalType" => principalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_member_to_queue( farmId, identityStoreId, @@ -276,16 +268,14 @@ credentials are scoped down to have read-only access. - `fleet_id`: The fleet ID. """ -function assume_fleet_role_for_read( +assume_fleet_role_for_read( farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/read-roles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/read-roles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_fleet_role_for_read( farmId, fleetId, @@ -313,16 +303,14 @@ Get credentials from the fleet role for a worker. - `worker_id`: The ID of the worker assuming the fleet role. """ -function assume_fleet_role_for_worker( +assume_fleet_role_for_worker( farmId, fleetId, workerId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/fleet-roles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/fleet-roles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_fleet_role_for_worker( farmId, fleetId, @@ -351,16 +339,14 @@ credentials are scoped down to have read-only access. - `queue_id`: The queue ID. """ -function assume_queue_role_for_read( +assume_queue_role_for_read( farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/read-roles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/read-roles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_queue_role_for_read( farmId, queueId, @@ -387,16 +373,14 @@ Allows a user to assume a role for a queue. - `queue_id`: The queue ID of the queue that the user assumes the role for. """ -function assume_queue_role_for_user( +assume_queue_role_for_user( farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/user-roles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/user-roles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_queue_role_for_user( farmId, queueId, @@ -425,17 +409,15 @@ Allows a worker to assume a queue role. - `worker_id`: The worker ID of the worker assuming the queue role. """ -function assume_queue_role_for_worker( +assume_queue_role_for_worker( farmId, fleetId, queueId, workerId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/queue-roles", + Dict{String,Any}("queueId" => queueId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/queue-roles", - Dict{String,Any}("queueId" => queueId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_queue_role_for_worker( farmId, fleetId, @@ -468,21 +450,19 @@ Get batched job details for a worker. - `worker_id`: The worker ID of the worker containing the job details to get. """ -function batch_get_job_entity( +batch_get_job_entity( farmId, fleetId, identifiers, workerId; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/batchGetJobEntity", + Dict{String,Any}("identifiers" => identifiers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/batchGetJobEntity", - Dict{String,Any}("identifiers" => identifiers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_job_entity( farmId, fleetId, @@ -516,21 +496,19 @@ Copies a job template to an Amazon S3 bucket. copy of the job template. """ -function copy_job_template( +copy_job_template( farmId, jobId, queueId, targetS3Location; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/template", + Dict{String,Any}("targetS3Location" => targetS3Location); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/template", - Dict{String,Any}("targetS3Location" => targetS3Location); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_job_template( farmId, jobId, @@ -561,7 +539,9 @@ Creates a budget to set spending thresholds for your rendering activity. # Arguments - `actions`: The budget actions to specify what happens when the budget runs out. - `approximate_dollar_limit`: The dollar limit based on consumed usage. -- `display_name`: The display name of the budget. +- `display_name`: The display name of the budget. This field can store any content. Escape + or encode this content before displaying it on a webpage or any other system that might + interpret the content of this field. - `farm_id`: The farm ID to include in this budget. - `schedule`: The schedule to associate with this budget. - `usage_tracking_resource`: The queue ID provided to this budget to track usage. @@ -570,9 +550,11 @@ Creates a budget to set spending thresholds for your rendering activity. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. -- `"description"`: The description of the budget. +- `"description"`: The description of the budget. This field can store any content. Escape + or encode this content before displaying it on a webpage or any other system that might + interpret the content of this field. """ -function create_budget( +create_budget( actions, approximateDollarLimit, displayName, @@ -580,22 +562,20 @@ function create_budget( schedule, usageTrackingResource; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/budgets", + Dict{String,Any}( + "actions" => actions, + "approximateDollarLimit" => approximateDollarLimit, + "displayName" => displayName, + "schedule" => schedule, + "usageTrackingResource" => usageTrackingResource, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/budgets", - Dict{String,Any}( - "actions" => actions, - "approximateDollarLimit" => approximateDollarLimit, - "displayName" => displayName, - "schedule" => schedule, - "usageTrackingResource" => usageTrackingResource, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_budget( actions, approximateDollarLimit, @@ -638,28 +618,28 @@ budgets and allow you to enforce permissions. Deadline Cloud farms are a useful for large projects. # Arguments -- `display_name`: The display name of the farm. +- `display_name`: The display name of the farm. This field can store any content. Escape + or encode this content before displaying it on a webpage or any other system that might + interpret the content of this field. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. -- `"description"`: The description of the farm. +- `"description"`: The description of the farm. This field can store any content. Escape + or encode this content before displaying it on a webpage or any other system that might + interpret the content of this field. - `"kmsKeyArn"`: The ARN of the KMS key to use on the farm. - `"tags"`: The tags to add to your farm. Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings. """ -function create_farm(displayName; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "POST", - "/2023-10-12/farms", - Dict{String,Any}( - "displayName" => displayName, "X-Amz-Client-Token" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_farm(displayName; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "POST", + "/2023-10-12/farms", + Dict{String,Any}("displayName" => displayName, "X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_farm( displayName, params::AbstractDict{String}; @@ -693,7 +673,9 @@ managed by Deadline Cloud. # Arguments - `configuration`: The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 fleets are managed by Deadline Cloud. -- `display_name`: The display name of the fleet. +- `display_name`: The display name of the fleet. This field can store any content. Escape + or encode this content before displaying it on a webpage or any other system that might + interpret the content of this field. - `farm_id`: The farm ID of the farm to connect to the fleet. - `max_worker_count`: The maximum number of workers for the fleet. - `role_arn`: The IAM role ARN for the role that the fleet's workers will use. @@ -702,33 +684,33 @@ managed by Deadline Cloud. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. -- `"description"`: The description of the fleet. +- `"description"`: The description of the fleet. This field can store any content. Escape + or encode this content before displaying it on a webpage or any other system that might + interpret the content of this field. - `"minWorkerCount"`: The minimum number of workers for the fleet. - `"tags"`: Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings. """ -function create_fleet( +create_fleet( configuration, displayName, farmId, maxWorkerCount, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/fleets", + Dict{String,Any}( + "configuration" => configuration, + "displayName" => displayName, + "maxWorkerCount" => maxWorkerCount, + "roleArn" => roleArn, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/fleets", - Dict{String,Any}( - "configuration" => configuration, - "displayName" => displayName, - "maxWorkerCount" => maxWorkerCount, - "roleArn" => roleArn, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fleet( configuration, displayName, @@ -763,12 +745,13 @@ end create_job(farm_id, priority, queue_id, template, template_type) create_job(farm_id, priority, queue_id, template, template_type, params::Dict{String,<:Any}) -Creates a job. A job is a render submission submitted by a user. It contains specific job -properties outlined as steps and tasks. +Creates a job. A job is a set of instructions that AWS Deadline Cloud uses to schedule and +run work on available workers. For more information, see Deadline Cloud jobs. # Arguments - `farm_id`: The farm ID of the farm to connect to the job. -- `priority`: The priority of the job on a scale of 1 to 100. The highest priority is 1. +- `priority`: The priority of the job on a scale of 0 to 100. The highest priority (first + scheduled) is 100. When two jobs have the same priority, the oldest job is scheduled first. - `queue_id`: The ID of the queue that the job is submitted to. - `template`: The job template to use for this job. - `template_type`: The file type for the job template. @@ -781,34 +764,32 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a render job. - `"maxFailedTasksCount"`: The number of task failures before the job stops running and is marked as FAILED. -- `"maxRetriesPerTask"`: The maximum number of retries for a job. +- `"maxRetriesPerTask"`: The maximum number of retries for each task. - `"parameters"`: The parameters for the job. - `"storageProfileId"`: The storage profile ID for the storage profile to connect to the job. -- `"targetTaskRunStatus"`: The initial status of the job's tasks when they are created. - Tasks that are created with a SUSPENDED status will not run until you update their status. +- `"targetTaskRunStatus"`: The initial job status when it is created. Jobs that are created + with a SUSPENDED status will not run until manually requeued. """ -function create_job( +create_job( farmId, priority, queueId, template, templateType; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs", + Dict{String,Any}( + "priority" => priority, + "template" => template, + "templateType" => templateType, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs", - Dict{String,Any}( - "priority" => priority, - "template" => template, - "templateType" => templateType, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_job( farmId, priority, @@ -857,22 +838,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings. """ -function create_license_endpoint( +create_license_endpoint( securityGroupIds, subnetIds, vpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "POST", + "/2023-10-12/license-endpoints", + Dict{String,Any}( + "securityGroupIds" => securityGroupIds, + "subnetIds" => subnetIds, + "vpcId" => vpcId, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/license-endpoints", - Dict{String,Any}( - "securityGroupIds" => securityGroupIds, - "subnetIds" => subnetIds, - "vpcId" => vpcId, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_license_endpoint( securityGroupIds, subnetIds, @@ -910,7 +889,9 @@ steps that make up the job, and then download the job's results. # Arguments - `display_name`: The name that you give the monitor that is displayed in the Deadline - Cloud console. + Cloud console. This field can store any content. Escape or encode this content before + displaying it on a webpage or any other system that might interpret the content of this + field. - `identity_center_instance_arn`: The Amazon Resource Name (ARN) of the IAM Identity Center instance that authenticates monitor users. - `role_arn`: The Amazon Resource Name (ARN) of the IAM role that the monitor uses to @@ -924,27 +905,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. """ -function create_monitor( +create_monitor( displayName, identityCenterInstanceArn, roleArn, subdomain; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "POST", + "/2023-10-12/monitors", + Dict{String,Any}( + "displayName" => displayName, + "identityCenterInstanceArn" => identityCenterInstanceArn, + "roleArn" => roleArn, + "subdomain" => subdomain, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/monitors", - Dict{String,Any}( - "displayName" => displayName, - "identityCenterInstanceArn" => identityCenterInstanceArn, - "roleArn" => roleArn, - "subdomain" => subdomain, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_monitor( displayName, identityCenterInstanceArn, @@ -982,7 +961,9 @@ Creates a queue to coordinate the order in which jobs run on a farm. A queue can specify where to pull resources and indicate where to output completed jobs. # Arguments -- `display_name`: The display name of the queue. +- `display_name`: The display name of the queue. This field can store any content. Escape + or encode this content before displaying it on a webpage or any other system that might + interpret the content of this field. - `farm_id`: The farm ID of the farm to connect to the queue. # Optional Parameters @@ -992,7 +973,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"allowedStorageProfileIds"`: The storage profile IDs to include in the queue. - `"defaultBudgetAction"`: The default action to take on a queue if a budget isn't configured. -- `"description"`: The description of the queue. +- `"description"`: The description of the queue. This field can store any content. Escape + or encode this content before displaying it on a webpage or any other system that might + interpret the content of this field. - `"jobAttachmentSettings"`: The job attachment settings for the queue. These are the Amazon S3 bucket name and the Amazon S3 prefix. - `"jobRunAsUser"`: The jobs in the queue run as the specified POSIX user. @@ -1002,10 +985,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings. """ -function create_queue( - displayName, farmId; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +create_queue(displayName, farmId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "POST", "/2023-10-12/farms/$(farmId)/queues", Dict{String,Any}( @@ -1014,7 +995,6 @@ function create_queue( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_queue( displayName, farmId, @@ -1058,27 +1038,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. """ -function create_queue_environment( +create_queue_environment( farmId, priority, queueId, template, templateType; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments", + Dict{String,Any}( + "priority" => priority, + "template" => template, + "templateType" => templateType, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments", - Dict{String,Any}( - "priority" => priority, - "template" => template, - "templateType" => templateType, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_queue_environment( farmId, priority, @@ -1120,17 +1098,15 @@ Creates an association between a queue and a fleet. - `queue_id`: The queue ID. """ -function create_queue_fleet_association( +create_queue_fleet_association( farmId, fleetId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "PUT", + "/2023-10-12/farms/$(farmId)/queue-fleet-associations", + Dict{String,Any}("fleetId" => fleetId, "queueId" => queueId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PUT", - "/2023-10-12/farms/$(farmId)/queue-fleet-associations", - Dict{String,Any}("fleetId" => fleetId, "queueId" => queueId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_queue_fleet_association( farmId, fleetId, @@ -1159,7 +1135,9 @@ Creates a storage profile that specifies the operating system, file type, and fi of resources used on a farm. # Arguments -- `display_name`: The display name of the storage profile. +- `display_name`: The display name of the storage profile. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. - `farm_id`: The farm ID of the farm to connect to the storage profile. - `os_family`: The type of operating system (OS) for the storage profile. @@ -1169,21 +1147,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the same request. - `"fileSystemLocations"`: File system paths to include in the storage profile. """ -function create_storage_profile( +create_storage_profile( displayName, farmId, osFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/storage-profiles", + Dict{String,Any}( + "displayName" => displayName, + "osFamily" => osFamily, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/storage-profiles", - Dict{String,Any}( - "displayName" => displayName, - "osFamily" => osFamily, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_storage_profile( displayName, farmId, @@ -1229,15 +1205,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the same request. - `"hostProperties"`: The IP address and host name of the worker. """ -function create_worker(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +create_worker(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "POST", "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers", Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_worker( farmId, fleetId, @@ -1268,14 +1243,13 @@ Deletes a budget. - `farm_id`: The farm ID of the farm to remove from the budget. """ -function delete_budget(budgetId, farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +delete_budget(budgetId, farmId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "DELETE", "/2023-10-12/farms/$(farmId)/budgets/$(budgetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_budget( budgetId, farmId, @@ -1301,14 +1275,12 @@ Deletes a farm. - `farm_id`: The farm ID of the farm to delete. """ -function delete_farm(farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_farm(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_farm( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1336,15 +1308,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. """ -function delete_fleet(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +delete_fleet(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "DELETE", "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)", Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_fleet( farmId, fleetId, @@ -1374,16 +1345,14 @@ Deletes a license endpoint. - `license_endpoint_id`: The license endpoint ID of the license endpoint to delete. """ -function delete_license_endpoint( +delete_license_endpoint( licenseEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/license-endpoints/$(licenseEndpointId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/license-endpoints/$(licenseEndpointId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_license_endpoint( licenseEndpointId, params::AbstractDict{String}; @@ -1410,16 +1379,14 @@ Deletes a metered product. - `product_id`: The product ID to remove from the license endpoint. """ -function delete_metered_product( +delete_metered_product( licenseEndpointId, productId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/license-endpoints/$(licenseEndpointId)/metered-products/$(productId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/license-endpoints/$(licenseEndpointId)/metered-products/$(productId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_metered_product( licenseEndpointId, productId, @@ -1447,14 +1414,12 @@ attach farms to the monitor. CreateMonitor operation, and is included in the response to the GetMonitor operation. """ -function delete_monitor(monitorId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "DELETE", - "/2023-10-12/monitors/$(monitorId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_monitor(monitorId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "DELETE", + "/2023-10-12/monitors/$(monitorId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_monitor( monitorId, params::AbstractDict{String}; @@ -1473,21 +1438,21 @@ end delete_queue(farm_id, queue_id) delete_queue(farm_id, queue_id, params::Dict{String,<:Any}) -Deletes a queue. +Deletes a queue. You can't recover the jobs in a queue if you delete the queue. Deleting +the queue also deletes the jobs in that queue. # Arguments - `farm_id`: The ID of the farm from which to remove the queue. - `queue_id`: The queue ID of the queue to delete. """ -function delete_queue(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +delete_queue(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "DELETE", "/2023-10-12/farms/$(farmId)/queues/$(queueId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_queue( farmId, queueId, @@ -1515,16 +1480,14 @@ Deletes a queue environment. - `queue_id`: The queue ID of the queue environment to delete. """ -function delete_queue_environment( +delete_queue_environment( farmId, queueEnvironmentId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments/$(queueEnvironmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments/$(queueEnvironmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_queue_environment( farmId, queueEnvironmentId, @@ -1553,16 +1516,14 @@ Deletes a queue-fleet association. - `queue_id`: The queue ID of the queue-fleet association. """ -function delete_queue_fleet_association( +delete_queue_fleet_association( farmId, fleetId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)/queue-fleet-associations/$(queueId)/$(fleetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)/queue-fleet-associations/$(queueId)/$(fleetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_queue_fleet_association( farmId, fleetId, @@ -1590,16 +1551,14 @@ Deletes a storage profile. - `storage_profile_id`: The storage profile ID of the storage profile to delete. """ -function delete_storage_profile( +delete_storage_profile( farmId, storageProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)/storage-profiles/$(storageProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)/storage-profiles/$(storageProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_storage_profile( farmId, storageProfileId, @@ -1627,16 +1586,14 @@ Deletes a worker. - `worker_id`: The worker ID of the worker to delete. """ -function delete_worker( +delete_worker( farmId, fleetId, workerId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_worker( farmId, fleetId, @@ -1664,16 +1621,14 @@ Disassociates a member from a farm. - `principal_id`: A member's principal ID to disassociate from a farm. """ -function disassociate_member_from_farm( +disassociate_member_from_farm( farmId, principalId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)/members/$(principalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)/members/$(principalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_member_from_farm( farmId, principalId, @@ -1701,16 +1656,14 @@ Disassociates a member from a fleet. - `principal_id`: A member's principal ID to disassociate from a fleet. """ -function disassociate_member_from_fleet( +disassociate_member_from_fleet( farmId, fleetId, principalId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/members/$(principalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/members/$(principalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_member_from_fleet( farmId, fleetId, @@ -1740,16 +1693,14 @@ Disassociates a member from a job. - `queue_id`: The queue ID connected to a job for which you're disassociating a member. """ -function disassociate_member_from_job( +disassociate_member_from_job( farmId, jobId, principalId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/members/$(principalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/members/$(principalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_member_from_job( farmId, jobId, @@ -1779,16 +1730,14 @@ Disassociates a member from a queue. - `queue_id`: The queue ID of the queue in which you're disassociating from a member. """ -function disassociate_member_from_queue( +disassociate_member_from_queue( farmId, principalId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "DELETE", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/members/$(principalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "DELETE", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/members/$(principalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_member_from_queue( farmId, principalId, @@ -1816,14 +1765,12 @@ Get a budget. - `farm_id`: The farm ID of the farm connected to the budget. """ -function get_budget(budgetId, farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/budgets/$(budgetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_budget(budgetId, farmId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/budgets/$(budgetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_budget( budgetId, farmId, @@ -1849,14 +1796,12 @@ Get a farm. - `farm_id`: The farm ID of the farm. """ -function get_farm(farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_farm(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_farm( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1880,14 +1825,12 @@ Get a fleet. - `fleet_id`: The fleet ID of the fleet to get. """ -function get_fleet(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_fleet(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_fleet( farmId, fleetId, @@ -1915,14 +1858,13 @@ Gets a Deadline Cloud job. - `queue_id`: The queue ID associated with the job. """ -function get_job(farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +get_job(farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_job( farmId, jobId, @@ -1949,16 +1891,14 @@ Gets a licence endpoint. - `license_endpoint_id`: The license endpoint ID. """ -function get_license_endpoint( +get_license_endpoint( licenseEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/license-endpoints/$(licenseEndpointId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/license-endpoints/$(licenseEndpointId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_license_endpoint( licenseEndpointId, params::AbstractDict{String}; @@ -1984,14 +1924,12 @@ Gets information about the specified monitor. CreateMonitor operation. """ -function get_monitor(monitorId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/monitors/$(monitorId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_monitor(monitorId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/monitors/$(monitorId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_monitor( monitorId, params::AbstractDict{String}; @@ -2017,14 +1955,12 @@ Gets a queue. - `queue_id`: The queue ID for the queue to retrieve. """ -function get_queue(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_queue(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_queue( farmId, queueId, @@ -2052,16 +1988,14 @@ Gets a queue environment. - `queue_id`: The queue ID for the queue environment. """ -function get_queue_environment( +get_queue_environment( farmId, queueEnvironmentId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments/$(queueEnvironmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments/$(queueEnvironmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_queue_environment( farmId, queueEnvironmentId, @@ -2090,16 +2024,14 @@ Gets a queue-fleet association. - `queue_id`: The queue ID for the queue-fleet association. """ -function get_queue_fleet_association( +get_queue_fleet_association( farmId, fleetId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queue-fleet-associations/$(queueId)/$(fleetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queue-fleet-associations/$(queueId)/$(fleetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_queue_fleet_association( farmId, fleetId, @@ -2129,16 +2061,14 @@ Gets a session. - `session_id`: The session ID. """ -function get_session( +get_session( farmId, jobId, queueId, sessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/sessions/$(sessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/sessions/$(sessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_session( farmId, jobId, @@ -2169,20 +2099,18 @@ Gets a session action for the job. - `session_action_id`: The session action ID for the session. """ -function get_session_action( +get_session_action( farmId, jobId, queueId, sessionActionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/session-actions/$(sessionActionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/session-actions/$(sessionActionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_session_action( farmId, jobId, @@ -2221,17 +2149,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function get_sessions_statistics_aggregation( +get_sessions_statistics_aggregation( aggregationId, farmId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/sessions-statistics-aggregation", + Dict{String,Any}("aggregationId" => aggregationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/sessions-statistics-aggregation", - Dict{String,Any}("aggregationId" => aggregationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sessions_statistics_aggregation( aggregationId, farmId, @@ -2262,16 +2188,14 @@ Gets a step. - `step_id`: The step ID. """ -function get_step( +get_step( farmId, jobId, queueId, stepId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_step( farmId, jobId, @@ -2300,16 +2224,14 @@ Gets a storage profile. - `storage_profile_id`: The storage profile ID. """ -function get_storage_profile( +get_storage_profile( farmId, storageProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/storage-profiles/$(storageProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/storage-profiles/$(storageProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_storage_profile( farmId, storageProfileId, @@ -2337,16 +2259,14 @@ Gets a storage profile for a queue. - `storage_profile_id`: The storage profile ID for the storage profile in the queue. """ -function get_storage_profile_for_queue( +get_storage_profile_for_queue( farmId, queueId, storageProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/storage-profiles/$(storageProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/storage-profiles/$(storageProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_storage_profile_for_queue( farmId, queueId, @@ -2377,21 +2297,19 @@ Gets a task. - `task_id`: The task ID. """ -function get_task( +get_task( farmId, jobId, queueId, stepId, taskId; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/tasks/$(taskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/tasks/$(taskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_task( farmId, jobId, @@ -2422,16 +2340,13 @@ Gets a worker. - `worker_id`: The worker ID. """ -function get_worker( - farmId, fleetId, workerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +get_worker(farmId, fleetId, workerId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_worker( farmId, fleetId, @@ -2460,16 +2375,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_available_metered_products(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +list_available_metered_products(; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/metered-products"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_available_metered_products( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2498,14 +2410,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null to start from the beginning. - `"status"`: The status to list for the budgets. """ -function list_budgets(farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/budgets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_budgets(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/budgets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_budgets( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2533,14 +2443,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_farm_members(farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/members"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_farm_members(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/members"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_farm_members( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2566,11 +2474,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null to start from the beginning. - `"principalId"`: The principal ID of the member to list on the farm. """ -function list_farms(; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", "/2023-10-12/farms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_farms(; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", "/2023-10-12/farms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_farms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2599,16 +2505,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_fleet_members( - farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +list_fleet_members(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/members"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_fleet_members( farmId, fleetId, @@ -2635,21 +2538,21 @@ Lists fleets. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"displayName"`: The display names of a list of fleets. +- `"displayName"`: The display names of a list of fleets. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. - `"maxResults"`: The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. - `"principalId"`: The principal ID of the members to include in the fleet. - `"status"`: The status of the fleet. """ -function list_fleets(farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/fleets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_fleets(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/fleets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_fleets( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2679,16 +2582,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_job_members( +list_job_members( farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/members"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/members"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_job_members( farmId, jobId, @@ -2722,14 +2623,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null to start from the beginning. - `"principalId"`: The principal ID of the members on the jobs. """ -function list_jobs(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_jobs(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_jobs( farmId, queueId, @@ -2757,14 +2656,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_license_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/license-endpoints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_license_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/license-endpoints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_license_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2792,16 +2689,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_metered_products( +list_metered_products( licenseEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/license-endpoints/$(licenseEndpointId)/metered-products"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/license-endpoints/$(licenseEndpointId)/metered-products"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_metered_products( licenseEndpointId, params::AbstractDict{String}; @@ -2828,14 +2723,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/monitors"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/monitors"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_monitors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2864,16 +2757,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_queue_environments( +list_queue_environments( farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_queue_environments( farmId, queueId, @@ -2906,16 +2797,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null to start from the beginning. - `"queueId"`: The queue ID for the queue-fleet association list. """ -function list_queue_fleet_associations( - farmId; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +list_queue_fleet_associations(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/queue-fleet-associations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_queue_fleet_associations( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2944,16 +2832,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_queue_members( - farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +list_queue_members(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/queues/$(queueId)/members"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_queue_members( farmId, queueId, @@ -2983,20 +2868,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. -- `"principalId"`: The principal ID. This filter is only valid when using Nimble Studio - credentials and should match the user ID in the credentials of the caller. +- `"principalId"`: The principal IDs to include in the list of queues. - `"status"`: The status of the queues listed. ACTIVE–The queues are active. SCHEDULING–The queues are scheduling. SCHEDULING_BLOCKED–The queue scheduling is blocked for these queues. """ -function list_queues(farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_queues(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_queues( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3028,16 +2910,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sessionId"`: The session ID to include on the sessions action list. - `"taskId"`: The task ID for the session actions list. """ -function list_session_actions( +list_session_actions( farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/session-actions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/session-actions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_session_actions( farmId, jobId, @@ -3071,16 +2951,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_sessions( - farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +list_sessions(farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/sessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_sessions( farmId, jobId, @@ -3114,16 +2991,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_sessions_for_worker( +list_sessions_for_worker( farmId, fleetId, workerId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/sessions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/sessions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_sessions_for_worker( farmId, fleetId, @@ -3158,16 +3033,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_step_consumers( +list_step_consumers( farmId, jobId, queueId, stepId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/consumers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/consumers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_step_consumers( farmId, jobId, @@ -3203,16 +3076,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_step_dependencies( +list_step_dependencies( farmId, jobId, queueId, stepId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/dependencies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/dependencies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_step_dependencies( farmId, jobId, @@ -3247,16 +3118,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_steps( - farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +list_steps(farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_steps( farmId, jobId, @@ -3288,14 +3156,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_storage_profiles(farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +list_storage_profiles(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/storage-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_storage_profiles( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3324,16 +3191,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_storage_profiles_for_queue( +list_storage_profiles_for_queue( farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/storage-profiles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/storage-profiles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_storage_profiles_for_queue( farmId, queueId, @@ -3359,16 +3224,13 @@ Lists tags for a resource. - `resource_arn`: The resource ARN to list tags for. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -3401,16 +3263,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_tasks( +list_tasks( farmId, jobId, queueId, stepId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "GET", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/tasks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "GET", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/tasks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tasks( farmId, jobId, @@ -3444,14 +3304,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken to get results as a set of sequential pages. - `"nextToken"`: The token for the next set of results, or null to start from the beginning. """ -function list_workers(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +list_workers(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "GET", "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_workers( farmId, fleetId, @@ -3478,16 +3337,14 @@ Adds a metered product. - `product_id`: The product ID to add to the metered product. """ -function put_metered_product( +put_metered_product( licenseEndpointId, productId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "PUT", + "/2023-10-12/license-endpoints/$(licenseEndpointId)/metered-products/$(productId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PUT", - "/2023-10-12/license-endpoints/$(licenseEndpointId)/metered-products/$(productId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_metered_product( licenseEndpointId, productId, @@ -3522,17 +3379,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pageSize"`: Specifies the number of items per page for the resource. - `"sortExpressions"`: The search terms for a resource. """ -function search_jobs( +search_jobs( farmId, itemOffset, queueIds; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/search/jobs", + Dict{String,Any}("itemOffset" => itemOffset, "queueIds" => queueIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/search/jobs", - Dict{String,Any}("itemOffset" => itemOffset, "queueIds" => queueIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_jobs( farmId, itemOffset, @@ -3575,17 +3430,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pageSize"`: Specifies the number of items per page for the resource. - `"sortExpressions"`: The search terms for a resource. """ -function search_steps( +search_steps( farmId, itemOffset, queueIds; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/search/steps", + Dict{String,Any}("itemOffset" => itemOffset, "queueIds" => queueIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/search/steps", - Dict{String,Any}("itemOffset" => itemOffset, "queueIds" => queueIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_steps( farmId, itemOffset, @@ -3628,17 +3481,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pageSize"`: Specifies the number of items per page for the resource. - `"sortExpressions"`: The search terms for a resource. """ -function search_tasks( +search_tasks( farmId, itemOffset, queueIds; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/search/tasks", + Dict{String,Any}("itemOffset" => itemOffset, "queueIds" => queueIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/search/tasks", - Dict{String,Any}("itemOffset" => itemOffset, "queueIds" => queueIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_tasks( farmId, itemOffset, @@ -3680,17 +3531,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pageSize"`: Specifies the number of items per page for the resource. - `"sortExpressions"`: The search terms for a resource. """ -function search_workers( +search_workers( farmId, fleetIds, itemOffset; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/search/workers", + Dict{String,Any}("fleetIds" => fleetIds, "itemOffset" => itemOffset); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/search/workers", - Dict{String,Any}("fleetIds" => fleetIds, "itemOffset" => itemOffset); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_workers( farmId, fleetIds, @@ -3718,8 +3567,11 @@ end start_sessions_statistics_aggregation(end_time, farm_id, group_by, resource_ids, start_time, statistics, params::Dict{String,<:Any}) Starts an asynchronous request for getting aggregated statistics about queues and farms. -Get the statistics using the GetSessionsStatisticsAggregation operation. Statistics are -available for 1 hour after you call the StartSessionsStatisticsAggregation operation. +Get the statistics using the GetSessionsStatisticsAggregation operation. You can only have +one running aggregation for your Deadline Cloud farm. Call the +GetSessionsStatisticsAggregation operation and check the status field to see if an +aggregation is running. Statistics are available for 1 hour after you call the +StartSessionsStatisticsAggregation operation. # Arguments - `end_time`: The Linux timestamp of the date and time that the statistics end. @@ -3735,7 +3587,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"period"`: The period to aggregate the statistics. - `"timezone"`: The timezone to use for the statistics. Use UTC notation such as \"UTC+8.\" """ -function start_sessions_statistics_aggregation( +start_sessions_statistics_aggregation( endTime, farmId, groupBy, @@ -3743,21 +3595,19 @@ function start_sessions_statistics_aggregation( startTime, statistics; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "POST", + "/2023-10-12/farms/$(farmId)/sessions-statistics-aggregation", + Dict{String,Any}( + "endTime" => endTime, + "groupBy" => groupBy, + "resourceIds" => resourceIds, + "startTime" => startTime, + "statistics" => statistics, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "POST", - "/2023-10-12/farms/$(farmId)/sessions-statistics-aggregation", - Dict{String,Any}( - "endTime" => endTime, - "groupBy" => groupBy, - "resourceIds" => resourceIds, - "startTime" => startTime, - "statistics" => statistics, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_sessions_statistics_aggregation( endTime, farmId, @@ -3803,14 +3653,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings. """ -function tag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "POST", - "/2023-10-12/tags/$(resourceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "POST", + "/2023-10-12/tags/$(resourceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, params::AbstractDict{String}; @@ -3836,17 +3684,14 @@ Removes a tag from a resource using the resource's ARN and tag to remove. - `tag_keys`: They keys of the tag. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "DELETE", "/2023-10-12/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -3881,22 +3726,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"actionsToRemove"`: The budget actions to remove from the budget. - `"approximateDollarLimit"`: The dollar limit to update on the budget. Based on consumed usage. -- `"description"`: The description of the budget to update. -- `"displayName"`: The display name of the budget to update. +- `"description"`: The description of the budget to update. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. +- `"displayName"`: The display name of the budget to update. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. - `"schedule"`: The schedule to update. - `"status"`: Updates the status of the budget. ACTIVE–The budget is being evaluated. INACTIVE–The budget is inactive. This can include Expired, Canceled, or deleted Deleted statuses. """ -function update_budget(budgetId, farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +update_budget(budgetId, farmId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "PATCH", "/2023-10-12/farms/$(farmId)/budgets/$(budgetId)", Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_budget( budgetId, farmId, @@ -3927,17 +3775,19 @@ Updates a farm. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"description"`: The description of the farm to update. -- `"displayName"`: The display name of the farm to update. -""" -function update_farm(farmId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +- `"description"`: The description of the farm to update. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. +- `"displayName"`: The display name of the farm to update. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. +""" +update_farm(farmId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_farm( farmId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3965,21 +3815,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. - `"configuration"`: The fleet configuration to update. -- `"description"`: The description of the fleet to update. -- `"displayName"`: The display name of the fleet to update. +- `"description"`: The description of the fleet to update. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. +- `"displayName"`: The display name of the fleet to update. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. - `"maxWorkerCount"`: The maximum number of workers in the fleet. - `"minWorkerCount"`: The minimum number of workers in the fleet. - `"roleArn"`: The IAM role ARN that the fleet's workers assume while running jobs. """ -function update_fleet(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +update_fleet(farmId, fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "PATCH", "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)", Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_fleet( farmId, fleetId, @@ -4003,7 +3856,9 @@ end update_job(farm_id, job_id, queue_id) update_job(farm_id, job_id, queue_id, params::Dict{String,<:Any}) -Updates a job. +Updates a job. When you change the status of the job to ARCHIVED, the job can't be +scheduled or archived. An archived jobs and its steps and tasks are deleted after 120 +days. The job can't be recovered. # Arguments - `farm_id`: The farm ID of the job to update. @@ -4014,24 +3869,23 @@ Updates a job. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. -- `"lifecycleStatus"`: The status of a job in its lifecycle. +- `"lifecycleStatus"`: The status of a job in its lifecycle. When you change the status of + the job to ARCHIVED, the job can't be scheduled or archived. An archived jobs and its + steps and tasks are deleted after 120 days. The job can't be recovered. - `"maxFailedTasksCount"`: The number of task failures before the job stops running and is marked as FAILED. - `"maxRetriesPerTask"`: The maximum number of retries for a job. - `"priority"`: The job priority to update. - `"targetTaskRunStatus"`: The task status to update the job's tasks to. """ -function update_job( - farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config() -) - return deadline( +update_job(farmId, jobId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "PATCH", "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)", Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_job( farmId, jobId, @@ -4064,18 +3918,18 @@ settings when you call UpdateMonitor. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"displayName"`: The new value to use for the monitor's display name. +- `"displayName"`: The new value to use for the monitor's display name. This field can + store any content. Escape or encode this content before displaying it on a webpage or any + other system that might interpret the content of this field. - `"roleArn"`: The Amazon Resource Name (ARN) of the new IAM role to use with the monitor. - `"subdomain"`: The new value of the subdomain to use when forming the monitor URL. """ -function update_monitor(monitorId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( - "PATCH", - "/2023-10-12/monitors/$(monitorId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_monitor(monitorId; aws_config::AbstractAWSConfig=current_aws_config()) = deadline( + "PATCH", + "/2023-10-12/monitors/$(monitorId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_monitor( monitorId, params::AbstractDict{String}; @@ -4107,8 +3961,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"allowedStorageProfileIdsToRemove"`: The storage profile ID to remove. - `"defaultBudgetAction"`: The default action to take for a queue update if a budget isn't configured. -- `"description"`: The description of the queue to update. -- `"displayName"`: The display name of the queue to update. +- `"description"`: The description of the queue to update. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. +- `"displayName"`: The display name of the queue to update. This field can store any + content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. - `"jobAttachmentSettings"`: The job attachment settings to update for the queue. - `"jobRunAsUser"`: Update the jobs in the queue to run as a specified POSIX user. - `"requiredFileSystemLocationNamesToAdd"`: The required file system location names to add @@ -4117,15 +3975,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remove from the queue. - `"roleArn"`: The IAM role ARN that's used to run jobs from this queue. """ -function update_queue(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) - return deadline( +update_queue(farmId, queueId; aws_config::AbstractAWSConfig=current_aws_config()) = + deadline( "PATCH", "/2023-10-12/farms/$(farmId)/queues/$(queueId)", Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_queue( farmId, queueId, @@ -4164,17 +4021,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"template"`: The template to update. - `"templateType"`: The template type to update. """ -function update_queue_environment( +update_queue_environment( farmId, queueEnvironmentId, queueId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments/$(queueEnvironmentId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/environments/$(queueEnvironmentId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_queue_environment( farmId, queueEnvironmentId, @@ -4208,17 +4063,15 @@ Updates a queue-fleet association. - `status`: The status to update. """ -function update_queue_fleet_association( +update_queue_fleet_association( farmId, fleetId, queueId, status; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)/queue-fleet-associations/$(queueId)/$(fleetId)", + Dict{String,Any}("status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)/queue-fleet-associations/$(queueId)/$(fleetId)", - Dict{String,Any}("status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_queue_fleet_association( farmId, fleetId, @@ -4254,25 +4107,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. """ -function update_session( +update_session( farmId, jobId, queueId, sessionId, targetLifecycleStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/sessions/$(sessionId)", + Dict{String,Any}( + "targetLifecycleStatus" => targetLifecycleStatus, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/sessions/$(sessionId)", - Dict{String,Any}( - "targetLifecycleStatus" => targetLifecycleStatus, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_session( farmId, jobId, @@ -4318,25 +4169,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. """ -function update_step( +update_step( farmId, jobId, queueId, stepId, targetTaskRunStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)", + Dict{String,Any}( + "targetTaskRunStatus" => targetTaskRunStatus, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)", - Dict{String,Any}( - "targetTaskRunStatus" => targetTaskRunStatus, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_step( farmId, jobId, @@ -4378,22 +4227,22 @@ Updates a storage profile. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. -- `"displayName"`: The display name of the storage profile to update. +- `"displayName"`: The display name of the storage profile to update. This field can store + any content. Escape or encode this content before displaying it on a webpage or any other + system that might interpret the content of this field. - `"fileSystemLocationsToAdd"`: The file system location names to add. - `"fileSystemLocationsToRemove"`: The file system location names to remove. - `"osFamily"`: The OS system to update. """ -function update_storage_profile( +update_storage_profile( farmId, storageProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)/storage-profiles/$(storageProfileId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)/storage-profiles/$(storageProfileId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_storage_profile( farmId, storageProfileId, @@ -4432,7 +4281,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Client-Token"`: The unique token which the server uses to recognize retries of the same request. """ -function update_task( +update_task( farmId, jobId, queueId, @@ -4440,17 +4289,15 @@ function update_task( targetRunStatus, taskId; aws_config::AbstractAWSConfig=current_aws_config(), +) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/tasks/$(taskId)", + Dict{String,Any}( + "targetRunStatus" => targetRunStatus, "X-Amz-Client-Token" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)/queues/$(queueId)/jobs/$(jobId)/steps/$(stepId)/tasks/$(taskId)", - Dict{String,Any}( - "targetRunStatus" => targetRunStatus, "X-Amz-Client-Token" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_task( farmId, jobId, @@ -4496,16 +4343,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"hostProperties"`: The host properties to update. - `"status"`: The worker status to update. """ -function update_worker( +update_worker( farmId, fleetId, workerId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_worker( farmId, fleetId, @@ -4538,16 +4383,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"updatedSessionActions"`: The session actions associated with the worker schedule to update. """ -function update_worker_schedule( +update_worker_schedule( farmId, fleetId, workerId; aws_config::AbstractAWSConfig=current_aws_config() +) = deadline( + "PATCH", + "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/schedule"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return deadline( - "PATCH", - "/2023-10-12/farms/$(farmId)/fleets/$(fleetId)/workers/$(workerId)/schedule"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_worker_schedule( farmId, fleetId, diff --git a/src/services/detective.jl b/src/services/detective.jl index f77fcf772..cdbd8e691 100644 --- a/src/services/detective.jl +++ b/src/services/detective.jl @@ -17,15 +17,13 @@ behavior graph. The member account status in the graph must be INVITED. invitation for. The member account status in the behavior graph must be INVITED. """ -function accept_invitation(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( - "PUT", - "/invitation", - Dict{String,Any}("GraphArn" => GraphArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +accept_invitation(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = detective( + "PUT", + "/invitation", + Dict{String,Any}("GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function accept_invitation( GraphArn, params::AbstractDict{String}; @@ -54,17 +52,15 @@ Gets data source package information for the behavior graph. - `graph_arn`: The ARN of the behavior graph. """ -function batch_get_graph_member_datasources( +batch_get_graph_member_datasources( AccountIds, GraphArn; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/graph/datasources/get", + Dict{String,Any}("AccountIds" => AccountIds, "GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/graph/datasources/get", - Dict{String,Any}("AccountIds" => AccountIds, "GraphArn" => GraphArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_graph_member_datasources( AccountIds, GraphArn, @@ -96,17 +92,15 @@ Gets information on the data source package history for an account. - `graph_arns`: The ARN of the behavior graph. """ -function batch_get_membership_datasources( +batch_get_membership_datasources( GraphArns; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/membership/datasources/get", + Dict{String,Any}("GraphArns" => GraphArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/membership/datasources/get", - Dict{String,Any}("GraphArns" => GraphArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_membership_datasources( GraphArns, params::AbstractDict{String}; @@ -142,11 +136,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys each tag, you provide the tag key and the tag value. Each tag key can contain up to 128 characters. Each tag value can contain up to 256 characters. """ -function create_graph(; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( - "POST", "/graph"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_graph(; aws_config::AbstractAWSConfig=current_aws_config()) = + detective("POST", "/graph"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_graph( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -195,17 +186,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Message"`: Customized message text to include in the invitation email message to the invited member accounts. """ -function create_members( - Accounts, GraphArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +create_members(Accounts, GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/graph/members", Dict{String,Any}("Accounts" => Accounts, "GraphArn" => GraphArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_members( Accounts, GraphArn, @@ -239,15 +227,13 @@ only be called by the administrator account for a behavior graph. - `graph_arn`: The ARN of the behavior graph to disable. """ -function delete_graph(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( - "POST", - "/graph/removal", - Dict{String,Any}("GraphArn" => GraphArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_graph(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = detective( + "POST", + "/graph/removal", + Dict{String,Any}("GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_graph( GraphArn, params::AbstractDict{String}; @@ -287,17 +273,14 @@ API method. - `graph_arn`: The ARN of the behavior graph to remove members from. """ -function delete_members( - AccountIds, GraphArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +delete_members(AccountIds, GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/graph/members/removal", Dict{String,Any}("AccountIds" => AccountIds, "GraphArn" => GraphArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_members( AccountIds, GraphArn, @@ -331,17 +314,15 @@ only be called by the Detective administrator account for the organization. - `graph_arn`: The ARN of the organization behavior graph. """ -function describe_organization_configuration( +describe_organization_configuration( GraphArn; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/orgs/describeOrganizationConfiguration", + Dict{String,Any}("GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/orgs/describeOrganizationConfiguration", - Dict{String,Any}("GraphArn" => GraphArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_organization_configuration( GraphArn, params::AbstractDict{String}; @@ -371,16 +352,13 @@ Detective administrator account in all Regions, except for Regions where the Det administrator account is the organization management account. """ -function disable_organization_admin_account(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +disable_organization_admin_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/orgs/disableAdminAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_organization_admin_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -408,17 +386,14 @@ organization accounts to enable or disable as member accounts. account's member status in the behavior graph must be ENABLED. """ -function disassociate_membership( - GraphArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +disassociate_membership(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/membership/removal", Dict{String,Any}("GraphArn" => GraphArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_membership( GraphArn, params::AbstractDict{String}; @@ -456,17 +431,15 @@ account. the Detective administrator account for the organization. """ -function enable_organization_admin_account( +enable_organization_admin_account( AccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/orgs/enableAdminAccount", + Dict{String,Any}("AccountId" => AccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/orgs/enableAdminAccount", - Dict{String,Any}("AccountId" => AccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_organization_admin_account( AccountId, params::AbstractDict{String}; @@ -498,17 +471,15 @@ investigation for a behavior graph. - `investigation_id`: The investigation ID of the investigation report. """ -function get_investigation( +get_investigation( GraphArn, InvestigationId; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/investigations/getInvestigation", + Dict{String,Any}("GraphArn" => GraphArn, "InvestigationId" => InvestigationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/investigations/getInvestigation", - Dict{String,Any}("GraphArn" => GraphArn, "InvestigationId" => InvestigationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_investigation( GraphArn, InvestigationId, @@ -546,17 +517,14 @@ Returns the membership details for specified member accounts for a behavior grap - `graph_arn`: The ARN of the behavior graph for which to request the member details. """ -function get_members( - AccountIds, GraphArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +get_members(AccountIds, GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/graph/members/get", Dict{String,Any}("AccountIds" => AccountIds, "GraphArn" => GraphArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_members( AccountIds, GraphArn, @@ -594,17 +562,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys was returned with the previous set of results. The initial request does not include a pagination token. """ -function list_datasource_packages( - GraphArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +list_datasource_packages(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/graph/datasources/list", Dict{String,Any}("GraphArn" => GraphArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_datasource_packages( GraphArn, params::AbstractDict{String}; @@ -638,11 +603,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys was returned with the previous set of results. The initial request does not include a pagination token. """ -function list_graphs(; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( - "POST", "/graphs/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_graphs(; aws_config::AbstractAWSConfig=current_aws_config()) = detective( + "POST", "/graphs/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_graphs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -677,17 +640,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation Exception error. """ -function list_indicators( +list_indicators( GraphArn, InvestigationId; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/investigations/listIndicators", + Dict{String,Any}("GraphArn" => GraphArn, "InvestigationId" => InvestigationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/investigations/listIndicators", - Dict{String,Any}("GraphArn" => GraphArn, "InvestigationId" => InvestigationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_indicators( GraphArn, InvestigationId, @@ -734,15 +695,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hours. Using an expired pagination token will return a Validation Exception error. - `"SortCriteria"`: Sorts the investigation results based on a criteria. """ -function list_investigations(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( +list_investigations(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/investigations/listInvestigations", Dict{String,Any}("GraphArn" => GraphArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_investigations( GraphArn, params::AbstractDict{String}; @@ -778,11 +738,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that was returned with the previous page of results. The initial request does not include a pagination token. """ -function list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( - "POST", "/invitations/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) = detective( + "POST", "/invitations/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_invitations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -817,15 +775,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token that was returned with the previous page of results. The initial request does not include a pagination token. """ -function list_members(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( - "POST", - "/graph/members/list", - Dict{String,Any}("GraphArn" => GraphArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_members(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = detective( + "POST", + "/graph/members/list", + Dict{String,Any}("GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_members( GraphArn, params::AbstractDict{String}; @@ -856,16 +812,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys was returned with the previous set of results. The initial request does not include a pagination token. """ -function list_organization_admin_accounts(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +list_organization_admin_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/orgs/adminAccountslist"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_organization_admin_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -888,16 +841,13 @@ Returns the tag values that are assigned to a behavior graph. - `resource_arn`: The ARN of the behavior graph for which to retrieve the tag values. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -926,15 +876,13 @@ organization behavior graph, organization accounts do not receive an invitation. account's current member status in the behavior graph must be INVITED. """ -function reject_invitation(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( - "POST", - "/invitation/removal", - Dict{String,Any}("GraphArn" => GraphArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +reject_invitation(GraphArn; aws_config::AbstractAWSConfig=current_aws_config()) = detective( + "POST", + "/invitation/removal", + Dict{String,Any}("GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function reject_invitation( GraphArn, params::AbstractDict{String}; @@ -970,26 +918,24 @@ in a behavior graph. ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z. """ -function start_investigation( +start_investigation( EntityArn, GraphArn, ScopeEndTime, ScopeStartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = detective( + "POST", + "/investigations/startInvestigation", + Dict{String,Any}( + "EntityArn" => EntityArn, + "GraphArn" => GraphArn, + "ScopeEndTime" => ScopeEndTime, + "ScopeStartTime" => ScopeStartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/investigations/startInvestigation", - Dict{String,Any}( - "EntityArn" => EntityArn, - "GraphArn" => GraphArn, - "ScopeEndTime" => ScopeEndTime, - "ScopeStartTime" => ScopeStartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_investigation( EntityArn, GraphArn, @@ -1033,17 +979,15 @@ enable the member account, the status remains ACCEPTED_BUT_DISABLED. - `graph_arn`: The ARN of the behavior graph. """ -function start_monitoring_member( +start_monitoring_member( AccountId, GraphArn; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/graph/member/monitoringstate", + Dict{String,Any}("AccountId" => AccountId, "GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/graph/member/monitoringstate", - Dict{String,Any}("AccountId" => AccountId, "GraphArn" => GraphArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_monitoring_member( AccountId, GraphArn, @@ -1078,15 +1022,14 @@ Applies tag values to a behavior graph. characters. Each tag value can contain up to 256 characters. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return detective( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1114,17 +1057,14 @@ Removes tags from a behavior graph. to 50 tags at a time. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return detective( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + detective( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1151,19 +1091,15 @@ Starts a data source packages for the behavior graph. - `graph_arn`: The ARN of the behavior graph. """ -function update_datasource_packages( +update_datasource_packages( DatasourcePackages, GraphArn; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/graph/datasources/update", + Dict{String,Any}("DatasourcePackages" => DatasourcePackages, "GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/graph/datasources/update", - Dict{String,Any}( - "DatasourcePackages" => DatasourcePackages, "GraphArn" => GraphArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_datasource_packages( DatasourcePackages, GraphArn, @@ -1200,19 +1136,17 @@ Updates the state of an investigation. have completed reviewing the investigation. """ -function update_investigation_state( +update_investigation_state( GraphArn, InvestigationId, State; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/investigations/updateInvestigationState", + Dict{String,Any}( + "GraphArn" => GraphArn, "InvestigationId" => InvestigationId, "State" => State + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/investigations/updateInvestigationState", - Dict{String,Any}( - "GraphArn" => GraphArn, "InvestigationId" => InvestigationId, "State" => State - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_investigation_state( GraphArn, InvestigationId, @@ -1254,17 +1188,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AutoEnable"`: Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph. """ -function update_organization_configuration( +update_organization_configuration( GraphArn; aws_config::AbstractAWSConfig=current_aws_config() +) = detective( + "POST", + "/orgs/updateOrganizationConfiguration", + Dict{String,Any}("GraphArn" => GraphArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return detective( - "POST", - "/orgs/updateOrganizationConfiguration", - Dict{String,Any}("GraphArn" => GraphArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_organization_configuration( GraphArn, params::AbstractDict{String}; diff --git a/src/services/device_farm.jl b/src/services/device_farm.jl index c83ec6c13..7cc1d8f9f 100644 --- a/src/services/device_farm.jl +++ b/src/services/device_farm.jl @@ -24,16 +24,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys might contain fewer devices than the value for this parameter. By specifying the maximum number of devices, you can control the costs that you incur by running tests. """ -function create_device_pool( +create_device_pool( name, projectArn, rules; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "CreateDevicePool", + Dict{String,Any}("name" => name, "projectArn" => projectArn, "rules" => rules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "CreateDevicePool", - Dict{String,Any}("name" => name, "projectArn" => projectArn, "rules" => rules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_device_pool( name, projectArn, @@ -77,14 +75,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"rebootAfterUse"`: When set to true, Device Farm reboots the instance after a test run. The default value is true. """ -function create_instance_profile(name; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +create_instance_profile(name; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "CreateInstanceProfile", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_instance_profile( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -128,16 +125,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"uplinkLossPercent"`: Proportion of transmitted packets that fail to arrive from 0 to 100 percent. """ -function create_network_profile( +create_network_profile( name, projectArn; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "CreateNetworkProfile", + Dict{String,Any}("name" => name, "projectArn" => projectArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "CreateNetworkProfile", - Dict{String,Any}("name" => name, "projectArn" => projectArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network_profile( name, projectArn, @@ -172,14 +167,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys overridden when scheduling a run. - `"vpcConfig"`: The VPC security groups and subnets that are attached to a project. """ -function create_project(name; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "CreateProject", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_project(name; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "CreateProject", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_project( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -233,16 +226,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys connecting to remote devices in your remote debugging session. This key is required only if remoteDebugEnabled is set to true. Remote debugging is no longer supported. """ -function create_remote_access_session( +create_remote_access_session( deviceArn, projectArn; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "CreateRemoteAccessSession", + Dict{String,Any}("deviceArn" => deviceArn, "projectArn" => projectArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "CreateRemoteAccessSession", - Dict{String,Any}("deviceArn" => deviceArn, "projectArn" => projectArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_remote_access_session( deviceArn, projectArn, @@ -277,14 +268,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Human-readable description of the project. - `"vpcConfig"`: The VPC security groups and subnets that are attached to a project. """ -function create_test_grid_project(name; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +create_test_grid_project(name; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "CreateTestGridProject", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_test_grid_project( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -309,18 +299,14 @@ constructor. the short-term URL. """ -function create_test_grid_url( +create_test_grid_url( expiresInSeconds, projectArn; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "CreateTestGridUrl", + Dict{String,Any}("expiresInSeconds" => expiresInSeconds, "projectArn" => projectArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "CreateTestGridUrl", - Dict{String,Any}( - "expiresInSeconds" => expiresInSeconds, "projectArn" => projectArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_test_grid_url( expiresInSeconds, projectArn, @@ -360,9 +346,8 @@ Uploads an app or test scripts. APPIUM_JAVA_TESTNG_TEST_PACKAGE APPIUM_PYTHON_TEST_PACKAGE APPIUM_NODE_TEST_PACKAGE APPIUM_RUBY_TEST_PACKAGE APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE APPIUM_WEB_PYTHON_TEST_PACKAGE - APPIUM_WEB_NODE_TEST_PACKAGE APPIUM_WEB_RUBY_TEST_PACKAGE CALABASH_TEST_PACKAGE - INSTRUMENTATION_TEST_PACKAGE UIAUTOMATION_TEST_PACKAGE UIAUTOMATOR_TEST_PACKAGE - XCTEST_TEST_PACKAGE XCTEST_UI_TEST_PACKAGE APPIUM_JAVA_JUNIT_TEST_SPEC + APPIUM_WEB_NODE_TEST_PACKAGE APPIUM_WEB_RUBY_TEST_PACKAGE INSTRUMENTATION_TEST_PACKAGE + XCTEST_TEST_PACKAGE XCTEST_UI_TEST_PACKAGE APPIUM_JAVA_JUNIT_TEST_SPEC APPIUM_JAVA_TESTNG_TEST_SPEC APPIUM_PYTHON_TEST_SPEC APPIUM_NODE_TEST_SPEC APPIUM_RUBY_TEST_SPEC APPIUM_WEB_JAVA_JUNIT_TEST_SPEC APPIUM_WEB_JAVA_TESTNG_TEST_SPEC APPIUM_WEB_PYTHON_TEST_SPEC APPIUM_WEB_NODE_TEST_SPEC APPIUM_WEB_RUBY_TEST_SPEC @@ -373,16 +358,13 @@ Uploads an app or test scripts. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"contentType"`: The upload's content type (for example, application/octet-stream). """ -function create_upload( - name, projectArn, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +create_upload(name, projectArn, type; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "CreateUpload", Dict{String,Any}("name" => name, "projectArn" => projectArn, "type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_upload( name, projectArn, @@ -426,23 +408,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpceConfigurationDescription"`: An optional description that provides details about your VPC endpoint configuration. """ -function create_vpceconfiguration( +create_vpceconfiguration( serviceDnsName, vpceConfigurationName, vpceServiceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = device_farm( + "CreateVPCEConfiguration", + Dict{String,Any}( + "serviceDnsName" => serviceDnsName, + "vpceConfigurationName" => vpceConfigurationName, + "vpceServiceName" => vpceServiceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "CreateVPCEConfiguration", - Dict{String,Any}( - "serviceDnsName" => serviceDnsName, - "vpceConfigurationName" => vpceConfigurationName, - "vpceServiceName" => vpceServiceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpceconfiguration( serviceDnsName, vpceConfigurationName, @@ -479,14 +459,12 @@ the system. - `arn`: Represents the Amazon Resource Name (ARN) of the Device Farm device pool to delete. """ -function delete_device_pool(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "DeleteDevicePool", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_device_pool(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "DeleteDevicePool", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_device_pool( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -509,14 +487,13 @@ Deletes a profile that can be applied to one or more private device instances. delete. """ -function delete_instance_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +delete_instance_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "DeleteInstanceProfile", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_instance_profile( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -538,14 +515,13 @@ Deletes a network profile. - `arn`: The ARN of the network profile to delete. """ -function delete_network_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +delete_network_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "DeleteNetworkProfile", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_network_profile( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -568,14 +544,12 @@ stop an in-progress run. - `arn`: Represents the Amazon Resource Name (ARN) of the Device Farm project to delete. """ -function delete_project(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "DeleteProject", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_project(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "DeleteProject", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_project( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -598,16 +572,13 @@ Deletes a completed remote access session and its results. access. """ -function delete_remote_access_session( - arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +delete_remote_access_session(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "DeleteRemoteAccessSession", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_remote_access_session( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -630,14 +601,12 @@ run. - `arn`: The Amazon Resource Name (ARN) for the run to delete. """ -function delete_run(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "DeleteRun", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_run(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "DeleteRun", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_run( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -661,16 +630,13 @@ this operation. You cannot delete a project if it has active sessions. ListTestGridProjects. """ -function delete_test_grid_project( - projectArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +delete_test_grid_project(projectArn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "DeleteTestGridProject", Dict{String,Any}("projectArn" => projectArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_test_grid_project( projectArn, params::AbstractDict{String}; @@ -696,14 +662,12 @@ Deletes an upload given the upload ARN. - `arn`: Represents the Amazon Resource Name (ARN) of the Device Farm upload to delete. """ -function delete_upload(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "DeleteUpload", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_upload(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "DeleteUpload", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_upload( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -726,14 +690,13 @@ Deletes a configuration for your Amazon Virtual Private Cloud (VPC) endpoint. delete. """ -function delete_vpceconfiguration(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +delete_vpceconfiguration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "DeleteVPCEConfiguration", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpceconfiguration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -753,11 +716,9 @@ Returns the number of unmetered iOS or unmetered Android devices that have been by the account. """ -function get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -776,14 +737,12 @@ Gets information about a unique device type. - `arn`: The device type's ARN. """ -function get_device(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetDevice", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_device(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetDevice", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_device( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -805,14 +764,12 @@ Returns information about a device instance that belongs to a private device fle - `arn`: The Amazon Resource Name (ARN) of the instance you're requesting information about. """ -function get_device_instance(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetDeviceInstance", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_device_instance(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetDeviceInstance", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_device_instance( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -834,14 +791,12 @@ Gets information about a device pool. - `arn`: The device pool's ARN. """ -function get_device_pool(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetDevicePool", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_device_pool(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetDevicePool", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_device_pool( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -868,23 +823,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"configuration"`: An object that contains information about the settings for a run. - `"test"`: Information about the uploaded test to be run against the device pool. - `"testType"`: The test type for the specified device pool. Allowed values include the - following: BUILTIN_FUZZ. BUILTIN_EXPLORER. For Android, an app explorer that traverses - an Android app, interacting with it and capturing screenshots at the same time. - APPIUM_JAVA_JUNIT. APPIUM_JAVA_TESTNG. APPIUM_PYTHON. APPIUM_NODE. APPIUM_RUBY. - APPIUM_WEB_JAVA_JUNIT. APPIUM_WEB_JAVA_TESTNG. APPIUM_WEB_PYTHON. APPIUM_WEB_NODE. - APPIUM_WEB_RUBY. CALABASH. INSTRUMENTATION. UIAUTOMATION. UIAUTOMATOR. XCTEST. + following: BUILTIN_FUZZ. APPIUM_JAVA_JUNIT. APPIUM_JAVA_TESTNG. APPIUM_PYTHON. + APPIUM_NODE. APPIUM_RUBY. APPIUM_WEB_JAVA_JUNIT. APPIUM_WEB_JAVA_TESTNG. + APPIUM_WEB_PYTHON. APPIUM_WEB_NODE. APPIUM_WEB_RUBY. INSTRUMENTATION. XCTEST. XCTEST_UI. """ -function get_device_pool_compatibility( +get_device_pool_compatibility( devicePoolArn; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "GetDevicePoolCompatibility", + Dict{String,Any}("devicePoolArn" => devicePoolArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "GetDevicePoolCompatibility", - Dict{String,Any}("devicePoolArn" => devicePoolArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_device_pool_compatibility( devicePoolArn, params::AbstractDict{String}; @@ -910,14 +861,12 @@ Returns information about the specified instance profile. - `arn`: The Amazon Resource Name (ARN) of an instance profile. """ -function get_instance_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetInstanceProfile", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_instance_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetInstanceProfile", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_instance_profile( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -939,14 +888,12 @@ Gets information about a job. - `arn`: The job's ARN. """ -function get_job(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetJob", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetJob", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -968,14 +915,12 @@ Returns information about a network profile. - `arn`: The ARN of the network profile to return information about. """ -function get_network_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetNetworkProfile", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_network_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetNetworkProfile", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_network_profile( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1002,11 +947,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function get_offering_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetOfferingStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_offering_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm("GetOfferingStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_offering_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1025,14 +967,12 @@ Gets information about a project. - `arn`: The project's ARN. """ -function get_project(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetProject", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_project(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetProject", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_project( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1055,14 +995,13 @@ Returns a link to a currently running remote access session. to get session information. """ -function get_remote_access_session(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +get_remote_access_session(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "GetRemoteAccessSession", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_remote_access_session( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1084,14 +1023,12 @@ Gets information about a run. - `arn`: The run's ARN. """ -function get_run(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetRun", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_run(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetRun", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_run( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1113,14 +1050,12 @@ Gets information about a suite. - `arn`: The suite's ARN. """ -function get_suite(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetSuite", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_suite(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetSuite", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_suite( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1142,14 +1077,12 @@ Gets information about a test. - `arn`: The test's ARN. """ -function get_test(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetTest", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_test(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetTest", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_test( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1172,16 +1105,13 @@ Retrieves information about a Selenium testing project. or ListTestGridProjects. """ -function get_test_grid_project( - projectArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +get_test_grid_project(projectArn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "GetTestGridProject", Dict{String,Any}("projectArn" => projectArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_test_grid_project( projectArn, params::AbstractDict{String}; @@ -1213,11 +1143,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sessionArn"`: An ARN that uniquely identifies a TestGridSession. - `"sessionId"`: An ID associated with this session. """ -function get_test_grid_session(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetTestGridSession"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_test_grid_session(; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetTestGridSession"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_test_grid_session( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1236,14 +1164,12 @@ Gets information about an upload. - `arn`: The upload's ARN. """ -function get_upload(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "GetUpload", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_upload(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "GetUpload", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_upload( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1267,14 +1193,13 @@ Returns information about the configuration settings for your Amazon Virtual Pri describe. """ -function get_vpceconfiguration(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +get_vpceconfiguration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "GetVPCEConfiguration", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_vpceconfiguration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1299,18 +1224,16 @@ the file must be in .apk format. For iOS applications, the file must be in .ipa about which you are requesting information. """ -function install_to_remote_access_session( +install_to_remote_access_session( appArn, remoteAccessSessionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "InstallToRemoteAccessSession", + Dict{String,Any}( + "appArn" => appArn, "remoteAccessSessionArn" => remoteAccessSessionArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "InstallToRemoteAccessSession", - Dict{String,Any}( - "appArn" => appArn, "remoteAccessSessionArn" => remoteAccessSessionArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function install_to_remote_access_session( appArn, remoteAccessSessionArn, @@ -1348,14 +1271,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_artifacts(arn, type; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListArtifacts", - Dict{String,Any}("arn" => arn, "type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_artifacts(arn, type; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListArtifacts", + Dict{String,Any}("arn" => arn, "type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_artifacts( arn, type, @@ -1386,11 +1307,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_device_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListDeviceInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_device_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListDeviceInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_device_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1419,14 +1338,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is created and managed by AWS Device Farm. PRIVATE: A device pool that is created and managed by the device pool developer. """ -function list_device_pools(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListDevicePools", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_device_pools(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListDevicePools", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_device_pools( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1475,11 +1392,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListDevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm("ListDevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1501,11 +1415,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_instance_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListInstanceProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_instance_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListInstanceProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_instance_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1531,14 +1443,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_jobs(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListJobs", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_jobs(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListJobs", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_jobs( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1567,14 +1477,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"type"`: The type of network profile to return information about. Valid values are listed here. """ -function list_network_profiles(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +list_network_profiles(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "ListNetworkProfiles", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_network_profiles( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1600,11 +1509,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_offering_promotions(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +list_offering_promotions(; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "ListOfferingPromotions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_offering_promotions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1631,11 +1539,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_offering_transactions(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +list_offering_transactions(; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "ListOfferingTransactions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_offering_transactions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1661,11 +1568,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListOfferings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm("ListOfferings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1687,11 +1591,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm("ListProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1715,16 +1616,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_remote_access_sessions( - arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +list_remote_access_sessions(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "ListRemoteAccessSessions", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_remote_access_sessions( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1750,14 +1648,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_runs(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListRuns", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_runs(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListRuns", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_runs( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1783,14 +1679,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_samples(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListSamples", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_samples(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListSamples", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_samples( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1816,14 +1710,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_suites(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListSuites", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_suites(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListSuites", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_suites( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1848,16 +1740,13 @@ List the tags for an AWS Device Farm resource. VPCE_CONFIGURATION. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1884,11 +1773,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResult"`: Return no more than this number of results. - `"nextToken"`: From a response, used to continue a paginated listing. """ -function list_test_grid_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListTestGridProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_test_grid_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListTestGridProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_test_grid_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1914,16 +1801,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResult"`: The maximum number of sessions to return per response. - `"nextToken"`: Pagination token. """ -function list_test_grid_session_actions( +list_test_grid_session_actions( sessionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "ListTestGridSessionActions", + Dict{String,Any}("sessionArn" => sessionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "ListTestGridSessionActions", - Dict{String,Any}("sessionArn" => sessionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_test_grid_session_actions( sessionArn, params::AbstractDict{String}; @@ -1954,16 +1839,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Pagination token. - `"type"`: Limit results to a specified type of artifact. """ -function list_test_grid_session_artifacts( +list_test_grid_session_artifacts( sessionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "ListTestGridSessionArtifacts", + Dict{String,Any}("sessionArn" => sessionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "ListTestGridSessionArtifacts", - Dict{String,Any}("sessionArn" => sessionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_test_grid_session_artifacts( sessionArn, params::AbstractDict{String}; @@ -1998,16 +1881,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Pagination token. - `"status"`: Return only sessions in this state. """ -function list_test_grid_sessions( - projectArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +list_test_grid_sessions(projectArn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "ListTestGridSessions", Dict{String,Any}("projectArn" => projectArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_test_grid_sessions( projectArn, params::AbstractDict{String}; @@ -2037,14 +1917,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_tests(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListTests", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tests(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListTests", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tests( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2074,14 +1952,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_unique_problems(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListUniqueProblems", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_unique_problems(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListUniqueProblems", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_unique_problems( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2111,22 +1987,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys APPIUM_JAVA_TESTNG_TEST_PACKAGE APPIUM_PYTHON_TEST_PACKAGE APPIUM_NODE_TEST_PACKAGE APPIUM_RUBY_TEST_PACKAGE APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE APPIUM_WEB_PYTHON_TEST_PACKAGE - APPIUM_WEB_NODE_TEST_PACKAGE APPIUM_WEB_RUBY_TEST_PACKAGE CALABASH_TEST_PACKAGE - INSTRUMENTATION_TEST_PACKAGE UIAUTOMATION_TEST_PACKAGE UIAUTOMATOR_TEST_PACKAGE - XCTEST_TEST_PACKAGE XCTEST_UI_TEST_PACKAGE APPIUM_JAVA_JUNIT_TEST_SPEC + APPIUM_WEB_NODE_TEST_PACKAGE APPIUM_WEB_RUBY_TEST_PACKAGE INSTRUMENTATION_TEST_PACKAGE + XCTEST_TEST_PACKAGE XCTEST_UI_TEST_PACKAGE APPIUM_JAVA_JUNIT_TEST_SPEC APPIUM_JAVA_TESTNG_TEST_SPEC APPIUM_PYTHON_TEST_SPEC APPIUM_NODE_TEST_SPEC APPIUM_RUBY_TEST_SPEC APPIUM_WEB_JAVA_JUNIT_TEST_SPEC APPIUM_WEB_JAVA_TESTNG_TEST_SPEC APPIUM_WEB_PYTHON_TEST_SPEC APPIUM_WEB_NODE_TEST_SPEC APPIUM_WEB_RUBY_TEST_SPEC INSTRUMENTATION_TEST_SPEC XCTEST_UI_TEST_SPEC """ -function list_uploads(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListUploads", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_uploads(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListUploads", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_uploads( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2152,11 +2025,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. """ -function list_vpceconfigurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "ListVPCEConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_vpceconfigurations(; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "ListVPCEConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_vpceconfigurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2185,16 +2056,14 @@ to invoke this operation, contact aws-devicefarm-support@amazon.com. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"offeringPromotionId"`: The ID of the offering promotion to be applied to the purchase. """ -function purchase_offering( +purchase_offering( offeringId, quantity; aws_config::AbstractAWSConfig=current_aws_config() +) = device_farm( + "PurchaseOffering", + Dict{String,Any}("offeringId" => offeringId, "quantity" => quantity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return device_farm( - "PurchaseOffering", - Dict{String,Any}("offeringId" => offeringId, "quantity" => quantity); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_offering( offeringId, quantity, @@ -2229,16 +2098,13 @@ aws-devicefarm-support@amazon.com. - `quantity`: The quantity requested in an offering renewal. """ -function renew_offering( - offeringId, quantity; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +renew_offering(offeringId, quantity; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "RenewOffering", Dict{String,Any}("offeringId" => offeringId, "quantity" => quantity); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function renew_offering( offeringId, quantity, @@ -2282,14 +2148,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the execution timeout (in minutes). - `"name"`: The name for the run to be scheduled. """ -function schedule_run(projectArn, test; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +schedule_run(projectArn, test; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "ScheduleRun", Dict{String,Any}("projectArn" => projectArn, "test" => test); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function schedule_run( projectArn, test, @@ -2322,14 +2187,12 @@ completed. - `arn`: Represents the Amazon Resource Name (ARN) of the Device Farm job to stop. """ -function stop_job(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "StopJob", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_job(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "StopJob", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_job( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2351,14 +2214,13 @@ Ends a specified remote access session. - `arn`: The Amazon Resource Name (ARN) of the remote access session to stop. """ -function stop_remote_access_session(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +stop_remote_access_session(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "StopRemoteAccessSession", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_remote_access_session( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2384,14 +2246,12 @@ progress or already completed. - `arn`: Represents the Amazon Resource Name (ARN) of the Device Farm run to stop. """ -function stop_run(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "StopRun", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_run(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "StopRun", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_run( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2421,14 +2281,13 @@ a resource is deleted, the tags associated with that resource are also deleted. of 256 characters. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -2463,16 +2322,13 @@ Deletes the specified tags from a resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -2508,14 +2364,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"profileArn"`: The ARN of the profile that you want to associate with the device instance. """ -function update_device_instance(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +update_device_instance(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "UpdateDeviceInstance", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_device_instance( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2558,14 +2413,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"rules"`: Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules. """ -function update_device_pool(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "UpdateDevicePool", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_device_pool(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "UpdateDevicePool", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_device_pool( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2598,14 +2451,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"rebootAfterUse"`: The updated choice for whether you want to reboot the device after use. The default value is true. """ -function update_instance_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +update_instance_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "UpdateInstanceProfile", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_instance_profile( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2651,14 +2503,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"uplinkLossPercent"`: Proportion of transmitted packets that fail to arrive from 0 to 100 percent. """ -function update_network_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +update_network_profile(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "UpdateNetworkProfile", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_network_profile( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2686,14 +2537,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: A string that represents the new name of the project that you are updating. - `"vpcConfig"`: The VPC security groups and subnets that are attached to a project. """ -function update_project(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "UpdateProject", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_project(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "UpdateProject", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_project( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2720,16 +2569,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: Human-readable name for the project. - `"vpcConfig"`: The VPC security groups and subnets that are attached to a project. """ -function update_test_grid_project( - projectArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return device_farm( +update_test_grid_project(projectArn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "UpdateTestGridProject", Dict{String,Any}("projectArn" => projectArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_test_grid_project( projectArn, params::AbstractDict{String}; @@ -2762,14 +2608,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The upload's test spec file name. The name must not contain any forward slashes (/). The test spec file name must end with the .yaml or .yml file extension. """ -function update_upload(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( - "UpdateUpload", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_upload(arn; aws_config::AbstractAWSConfig=current_aws_config()) = device_farm( + "UpdateUpload", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_upload( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2802,14 +2646,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpceServiceName"`: The name of the VPC endpoint service running in your AWS account that you want Device Farm to test. """ -function update_vpceconfiguration(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return device_farm( +update_vpceconfiguration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + device_farm( "UpdateVPCEConfiguration", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_vpceconfiguration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/devops_guru.jl b/src/services/devops_guru.jl index 142261126..b4224d2e9 100644 --- a/src/services/devops_guru.jl +++ b/src/services/devops_guru.jl @@ -24,17 +24,14 @@ see Permissions for Amazon Web Services KMS–encrypted Amazon SNS topics. Service (Amazon SNS). """ -function add_notification_channel( - Config; aws_config::AbstractAWSConfig=current_aws_config() -) - return devops_guru( +add_notification_channel(Config; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "PUT", "/channels", Dict{String,Any}("Config" => Config); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_notification_channel( Config, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -57,11 +54,9 @@ Deletes the insight along with the associated anomalies, events and recommendati - `id`: The ID of the insight. """ -function delete_insight(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "DELETE", "/insights/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_insight(Id; aws_config::AbstractAWSConfig=current_aws_config()) = devops_guru( + "DELETE", "/insights/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_insight( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -83,11 +78,9 @@ the number of metrics analyzed in your Amazon Web Services account. Use these nu gauge the health of operations in your Amazon Web Services account. """ -function describe_account_health(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "GET", "/accounts/health"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_account_health(; aws_config::AbstractAWSConfig=current_aws_config()) = devops_guru( + "GET", "/accounts/health"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_account_health( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -119,17 +112,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used. """ -function describe_account_overview( - FromTime; aws_config::AbstractAWSConfig=current_aws_config() -) - return devops_guru( +describe_account_overview(FromTime; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/accounts/overview", Dict{String,Any}("FromTime" => FromTime); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_account_overview( FromTime, params::AbstractDict{String}; @@ -159,11 +149,9 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The ID of the member account. """ -function describe_anomaly(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "GET", "/anomalies/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_anomaly(Id; aws_config::AbstractAWSConfig=current_aws_config()) = devops_guru( + "GET", "/anomalies/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_anomaly( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -186,11 +174,10 @@ Profiler, which can produce proactive recommendations which can be stored and vi DevOps Guru. """ -function describe_event_sources_config(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( +describe_event_sources_config(; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/event-sources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_event_sources_config( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -214,11 +201,8 @@ Region. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InsightId"`: The ID of the insight for which the feedback was provided. """ -function describe_feedback(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "POST", "/feedback"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_feedback(; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru("POST", "/feedback"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_feedback( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -240,11 +224,9 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AccountId"`: The ID of the member account in the organization. """ -function describe_insight(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "GET", "/insights/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_insight(Id; aws_config::AbstractAWSConfig=current_aws_config()) = devops_guru( + "GET", "/insights/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_insight( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -268,14 +250,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AccountIds"`: The ID of the Amazon Web Services account. - `"OrganizationalUnitIds"`: The ID of the organizational unit. """ -function describe_organization_health(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( +describe_organization_health(; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/organization/health"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_organization_health( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -308,17 +289,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used. """ -function describe_organization_overview( +describe_organization_overview( FromTime; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "POST", + "/organization/overview", + Dict{String,Any}("FromTime" => FromTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "POST", - "/organization/overview", - Dict{String,Any}("FromTime" => FromTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_organization_overview( FromTime, params::AbstractDict{String}; @@ -360,19 +339,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If this value is null, it retrieves the first page. - `"OrganizationalUnitIds"`: The ID of the organizational unit. """ -function describe_organization_resource_collection_health( +describe_organization_resource_collection_health( OrganizationResourceCollectionType; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "POST", + "/organization/health/resource-collection", + Dict{String,Any}( + "OrganizationResourceCollectionType" => OrganizationResourceCollectionType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "POST", - "/organization/health/resource-collection", - Dict{String,Any}( - "OrganizationResourceCollectionType" => OrganizationResourceCollectionType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_organization_resource_collection_health( OrganizationResourceCollectionType, params::AbstractDict{String}; @@ -423,16 +400,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function describe_resource_collection_health( +describe_resource_collection_health( ResourceCollectionType; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "GET", + "/accounts/health/resource-collection/$(ResourceCollectionType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "GET", - "/accounts/health/resource-collection/$(ResourceCollectionType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_resource_collection_health( ResourceCollectionType, params::AbstractDict{String}; @@ -456,14 +431,13 @@ service that can be integrated with DevOps Guru is Amazon Web Services Systems M which can be used to create an OpsItem for each generated insight. """ -function describe_service_integration(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( +describe_service_integration(; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "GET", "/service-integrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_service_integration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -489,11 +463,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function get_cost_estimation(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "GET", "/cost-estimation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_cost_estimation(; aws_config::AbstractAWSConfig=current_aws_config()) = devops_guru( + "GET", "/cost-estimation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_cost_estimation( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -527,16 +499,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function get_resource_collection( +get_resource_collection( ResourceCollectionType; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "GET", + "/resource-collections/$(ResourceCollectionType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "GET", - "/resource-collections/$(ResourceCollectionType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_collection( ResourceCollectionType, params::AbstractDict{String}; @@ -571,16 +541,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTimeRange"`: A time range used to specify when the requested anomalies started. All returned anomalies started during this time range. """ -function list_anomalies_for_insight( - InsightId; aws_config::AbstractAWSConfig=current_aws_config() -) - return devops_guru( +list_anomalies_for_insight(InsightId; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/anomalies/insight/$(InsightId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_anomalies_for_insight( InsightId, params::AbstractDict{String}; @@ -611,17 +578,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_anomalous_log_groups( - InsightId; aws_config::AbstractAWSConfig=current_aws_config() -) - return devops_guru( +list_anomalous_log_groups(InsightId; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/list-log-anomalies", Dict{String,Any}("InsightId" => InsightId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_anomalous_log_groups( InsightId, params::AbstractDict{String}; @@ -656,15 +620,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_events(Filters; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "POST", - "/events", - Dict{String,Any}("Filters" => Filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_events(Filters; aws_config::AbstractAWSConfig=current_aws_config()) = devops_guru( + "POST", + "/events", + Dict{String,Any}("Filters" => Filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_events( Filters, params::AbstractDict{String}; @@ -697,15 +659,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_insights(StatusFilter; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( +list_insights(StatusFilter; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/insights", Dict{String,Any}("StatusFilter" => StatusFilter); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_insights( StatusFilter, params::AbstractDict{String}; @@ -737,14 +698,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_monitored_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( +list_monitored_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/monitoredResources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_monitored_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -771,11 +731,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_notification_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "POST", "/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_notification_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru("POST", "/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_notification_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -802,17 +759,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If this value is null, it retrieves the first page. - `"OrganizationalUnitIds"`: The ID of the organizational unit. """ -function list_organization_insights( +list_organization_insights( StatusFilter; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "POST", + "/organization/insights", + Dict{String,Any}("StatusFilter" => StatusFilter); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "POST", - "/organization/insights", - Dict{String,Any}("StatusFilter" => StatusFilter); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_organization_insights( StatusFilter, params::AbstractDict{String}; @@ -846,15 +801,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_recommendations(InsightId; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( +list_recommendations(InsightId; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/recommendations", Dict{String,Any}("InsightId" => InsightId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_recommendations( InsightId, params::AbstractDict{String}; @@ -882,11 +836,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InsightFeedback"`: The feedback from customers is about the recommendations in this insight. """ -function put_feedback(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( - "PUT", "/feedback"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +put_feedback(; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru("PUT", "/feedback"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function put_feedback( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -907,11 +858,10 @@ your operations. - `id`: The ID of the notification channel to be removed. """ -function remove_notification_channel(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( +remove_notification_channel(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "DELETE", "/channels/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function remove_notification_channel( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -948,17 +898,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function search_insights( - StartTimeRange, Type; aws_config::AbstractAWSConfig=current_aws_config() -) - return devops_guru( +search_insights(StartTimeRange, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "POST", "/insights/search", Dict{String,Any}("StartTimeRange" => StartTimeRange, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_insights( StartTimeRange, Type, @@ -1004,19 +951,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function search_organization_insights( +search_organization_insights( AccountIds, StartTimeRange, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "POST", + "/organization/insights/search", + Dict{String,Any}( + "AccountIds" => AccountIds, "StartTimeRange" => StartTimeRange, "Type" => Type + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "POST", - "/organization/insights/search", - Dict{String,Any}( - "AccountIds" => AccountIds, "StartTimeRange" => StartTimeRange, "Type" => Type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_organization_insights( AccountIds, StartTimeRange, @@ -1058,19 +1003,17 @@ resources. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: The idempotency token used to identify each cost estimate request. """ -function start_cost_estimation( +start_cost_estimation( ResourceCollection; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "PUT", + "/cost-estimation", + Dict{String,Any}( + "ResourceCollection" => ResourceCollection, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "PUT", - "/cost-estimation", - Dict{String,Any}( - "ResourceCollection" => ResourceCollection, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_cost_estimation( ResourceCollection, params::AbstractDict{String}; @@ -1107,11 +1050,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventSources"`: Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service. """ -function update_event_sources_config(; aws_config::AbstractAWSConfig=current_aws_config()) - return devops_guru( +update_event_sources_config(; aws_config::AbstractAWSConfig=current_aws_config()) = + devops_guru( "PUT", "/event-sources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_event_sources_config( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1142,17 +1084,15 @@ use DevOps Guru. - `resource_collection`: """ -function update_resource_collection( +update_resource_collection( Action, ResourceCollection; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "PUT", + "/resource-collections", + Dict{String,Any}("Action" => Action, "ResourceCollection" => ResourceCollection); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "PUT", - "/resource-collections", - Dict{String,Any}("Action" => Action, "ResourceCollection" => ResourceCollection); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_collection( Action, ResourceCollection, @@ -1189,17 +1129,15 @@ Manager, which can be used to create an OpsItem for each generated insight. service you want to update, and whether you want to update it to enabled or disabled. """ -function update_service_integration( +update_service_integration( ServiceIntegration; aws_config::AbstractAWSConfig=current_aws_config() +) = devops_guru( + "PUT", + "/service-integrations", + Dict{String,Any}("ServiceIntegration" => ServiceIntegration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return devops_guru( - "PUT", - "/service-integrations", - Dict{String,Any}("ServiceIntegration" => ServiceIntegration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_integration( ServiceIntegration, params::AbstractDict{String}; diff --git a/src/services/direct_connect.jl b/src/services/direct_connect.jl index 73161116e..be1e19e80 100644 --- a/src/services/direct_connect.jl +++ b/src/services/direct_connect.jl @@ -23,23 +23,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys advertised to the Direct Connect gateway. For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide. """ -function accept_direct_connect_gateway_association_proposal( +accept_direct_connect_gateway_association_proposal( associatedGatewayOwnerAccount, directConnectGatewayId, proposalId; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "AcceptDirectConnectGatewayAssociationProposal", + Dict{String,Any}( + "associatedGatewayOwnerAccount" => associatedGatewayOwnerAccount, + "directConnectGatewayId" => directConnectGatewayId, + "proposalId" => proposalId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AcceptDirectConnectGatewayAssociationProposal", - Dict{String,Any}( - "associatedGatewayOwnerAccount" => associatedGatewayOwnerAccount, - "directConnectGatewayId" => directConnectGatewayId, - "proposalId" => proposalId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_direct_connect_gateway_association_proposal( associatedGatewayOwnerAccount, directConnectGatewayId, @@ -69,7 +67,7 @@ end allocate_connection_on_interconnect(bandwidth, connection_name, interconnect_id, owner_account, vlan) allocate_connection_on_interconnect(bandwidth, connection_name, interconnect_id, owner_account, vlan, params::Dict{String,<:Any}) -Deprecated. Use AllocateHostedConnection instead. Creates a hosted connection on an + Deprecated. Use AllocateHostedConnection instead. Creates a hosted connection on an interconnect. Allocates a VLAN number and a specified amount of bandwidth for use by a hosted connection on the specified interconnect. Intended for use by Direct Connect Partners only. @@ -86,27 +84,25 @@ Partners only. - `vlan`: The dedicated VLAN provisioned to the connection. """ -function allocate_connection_on_interconnect( +allocate_connection_on_interconnect( bandwidth, connectionName, interconnectId, ownerAccount, vlan; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "AllocateConnectionOnInterconnect", + Dict{String,Any}( + "bandwidth" => bandwidth, + "connectionName" => connectionName, + "interconnectId" => interconnectId, + "ownerAccount" => ownerAccount, + "vlan" => vlan, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AllocateConnectionOnInterconnect", - Dict{String,Any}( - "bandwidth" => bandwidth, - "connectionName" => connectionName, - "interconnectId" => interconnectId, - "ownerAccount" => ownerAccount, - "vlan" => vlan, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function allocate_connection_on_interconnect( bandwidth, connectionName, @@ -149,9 +145,9 @@ Intended for use by Direct Connect Partners only. # Arguments - `bandwidth`: The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, - 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those - Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, - 2Gbps, 5Gbps or 10Gbps hosted connection. + 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps, and 25Gbps. Note that only + those Direct Connect Partners who have met specific requirements are allowed to create a + 1Gbps, 2Gbps, 5Gbps, 10Gbps, or 25Gbps hosted connection. - `connection_id`: The ID of the interconnect or LAG. - `connection_name`: The name of the hosted connection. - `owner_account`: The ID of the Amazon Web Services account ID of the customer for the @@ -162,27 +158,25 @@ Intended for use by Direct Connect Partners only. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The tags associated with the connection. """ -function allocate_hosted_connection( +allocate_hosted_connection( bandwidth, connectionId, connectionName, ownerAccount, vlan; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "AllocateHostedConnection", + Dict{String,Any}( + "bandwidth" => bandwidth, + "connectionId" => connectionId, + "connectionName" => connectionName, + "ownerAccount" => ownerAccount, + "vlan" => vlan, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AllocateHostedConnection", - Dict{String,Any}( - "bandwidth" => bandwidth, - "connectionId" => connectionId, - "connectionName" => connectionName, - "ownerAccount" => ownerAccount, - "vlan" => vlan, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function allocate_hosted_connection( bandwidth, connectionId, @@ -230,23 +224,21 @@ state and is not available to handle traffic. interface. """ -function allocate_private_virtual_interface( +allocate_private_virtual_interface( connectionId, newPrivateVirtualInterfaceAllocation, ownerAccount; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "AllocatePrivateVirtualInterface", + Dict{String,Any}( + "connectionId" => connectionId, + "newPrivateVirtualInterfaceAllocation" => newPrivateVirtualInterfaceAllocation, + "ownerAccount" => ownerAccount, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AllocatePrivateVirtualInterface", - Dict{String,Any}( - "connectionId" => connectionId, - "newPrivateVirtualInterfaceAllocation" => newPrivateVirtualInterfaceAllocation, - "ownerAccount" => ownerAccount, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function allocate_private_virtual_interface( connectionId, newPrivateVirtualInterfaceAllocation, @@ -295,23 +287,21 @@ IPv6 addresses. interface. """ -function allocate_public_virtual_interface( +allocate_public_virtual_interface( connectionId, newPublicVirtualInterfaceAllocation, ownerAccount; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "AllocatePublicVirtualInterface", + Dict{String,Any}( + "connectionId" => connectionId, + "newPublicVirtualInterfaceAllocation" => newPublicVirtualInterfaceAllocation, + "ownerAccount" => ownerAccount, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AllocatePublicVirtualInterface", - Dict{String,Any}( - "connectionId" => connectionId, - "newPublicVirtualInterfaceAllocation" => newPublicVirtualInterfaceAllocation, - "ownerAccount" => ownerAccount, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function allocate_public_virtual_interface( connectionId, newPublicVirtualInterfaceAllocation, @@ -359,23 +349,21 @@ available to handle traffic. interface. """ -function allocate_transit_virtual_interface( +allocate_transit_virtual_interface( connectionId, newTransitVirtualInterfaceAllocation, ownerAccount; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "AllocateTransitVirtualInterface", + Dict{String,Any}( + "connectionId" => connectionId, + "newTransitVirtualInterfaceAllocation" => newTransitVirtualInterfaceAllocation, + "ownerAccount" => ownerAccount, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AllocateTransitVirtualInterface", - Dict{String,Any}( - "connectionId" => connectionId, - "newTransitVirtualInterfaceAllocation" => newTransitVirtualInterfaceAllocation, - "ownerAccount" => ownerAccount, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function allocate_transit_virtual_interface( connectionId, newTransitVirtualInterfaceAllocation, @@ -424,16 +412,14 @@ with a different LAG, the hosted connections remain associated with the original - `lag_id`: The ID of the LAG with which to associate the connection. """ -function associate_connection_with_lag( +associate_connection_with_lag( connectionId, lagId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "AssociateConnectionWithLag", + Dict{String,Any}("connectionId" => connectionId, "lagId" => lagId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AssociateConnectionWithLag", - Dict{String,Any}("connectionId" => connectionId, "lagId" => lagId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_connection_with_lag( connectionId, lagId, @@ -469,18 +455,16 @@ migrated. Intended for use by Direct Connect Partners only. - `parent_connection_id`: The ID of the interconnect or the LAG. """ -function associate_hosted_connection( +associate_hosted_connection( connectionId, parentConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "AssociateHostedConnection", + Dict{String,Any}( + "connectionId" => connectionId, "parentConnectionId" => parentConnectionId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AssociateHostedConnection", - Dict{String,Any}( - "connectionId" => connectionId, "parentConnectionId" => parentConnectionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_hosted_connection( connectionId, parentConnectionId, @@ -533,16 +517,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the MAC Security (MACsec) secret key. If you use this request parameter, you do not use the ckn and cak request parameters. """ -function associate_mac_sec_key( - connectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return direct_connect( +associate_mac_sec_key(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "AssociateMacSecKey", Dict{String,Any}("connectionId" => connectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_mac_sec_key( connectionId, params::AbstractDict{String}; @@ -578,18 +559,16 @@ connection or LAG for the association. - `virtual_interface_id`: The ID of the virtual interface. """ -function associate_virtual_interface( +associate_virtual_interface( connectionId, virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "AssociateVirtualInterface", + Dict{String,Any}( + "connectionId" => connectionId, "virtualInterfaceId" => virtualInterfaceId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "AssociateVirtualInterface", - Dict{String,Any}( - "connectionId" => connectionId, "virtualInterfaceId" => virtualInterfaceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_virtual_interface( connectionId, virtualInterfaceId, @@ -625,16 +604,13 @@ the owner confirms creation of the hosted connection. - `connection_id`: The ID of the hosted connection. """ -function confirm_connection( - connectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return direct_connect( +confirm_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "ConfirmConnection", Dict{String,Any}("connectionId" => connectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function confirm_connection( connectionId, params::AbstractDict{String}; @@ -661,11 +637,10 @@ group (LAG). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"agreementName"`: The name of the customer agreement. """ -function confirm_customer_agreement(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +confirm_customer_agreement(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "ConfirmCustomerAgreement"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function confirm_customer_agreement( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -694,16 +669,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"directConnectGatewayId"`: The ID of the Direct Connect gateway. - `"virtualGatewayId"`: The ID of the virtual private gateway. """ -function confirm_private_virtual_interface( +confirm_private_virtual_interface( virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "ConfirmPrivateVirtualInterface", + Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "ConfirmPrivateVirtualInterface", - Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function confirm_private_virtual_interface( virtualInterfaceId, params::AbstractDict{String}; @@ -733,16 +706,14 @@ is created and made available to handle traffic. - `virtual_interface_id`: The ID of the virtual interface. """ -function confirm_public_virtual_interface( +confirm_public_virtual_interface( virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "ConfirmPublicVirtualInterface", + Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "ConfirmPublicVirtualInterface", - Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function confirm_public_virtual_interface( virtualInterfaceId, params::AbstractDict{String}; @@ -773,21 +744,19 @@ transit virtual interface is created and made available to handle traffic. - `virtual_interface_id`: The ID of the virtual interface. """ -function confirm_transit_virtual_interface( +confirm_transit_virtual_interface( directConnectGatewayId, virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "ConfirmTransitVirtualInterface", + Dict{String,Any}( + "directConnectGatewayId" => directConnectGatewayId, + "virtualInterfaceId" => virtualInterfaceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "ConfirmTransitVirtualInterface", - Dict{String,Any}( - "directConnectGatewayId" => directConnectGatewayId, - "virtualInterfaceId" => virtualInterfaceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function confirm_transit_virtual_interface( directConnectGatewayId, virtualInterfaceId, @@ -835,11 +804,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"newBGPPeer"`: Information about the BGP peer. - `"virtualInterfaceId"`: The ID of the virtual interface. """ -function create_bgppeer(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( - "CreateBGPPeer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_bgppeer(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect("CreateBGPPeer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_bgppeer( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -877,20 +843,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys User Guide. - `"tags"`: The tags to associate with the lag. """ -function create_connection( +create_connection( bandwidth, connectionName, location; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "CreateConnection", + Dict{String,Any}( + "bandwidth" => bandwidth, + "connectionName" => connectionName, + "location" => location, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreateConnection", - Dict{String,Any}( - "bandwidth" => bandwidth, - "connectionName" => connectionName, - "location" => location, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connection( bandwidth, connectionName, @@ -937,16 +901,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512. """ -function create_direct_connect_gateway( +create_direct_connect_gateway( directConnectGatewayName; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "CreateDirectConnectGateway", + Dict{String,Any}("directConnectGatewayName" => directConnectGatewayName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreateDirectConnectGateway", - Dict{String,Any}("directConnectGatewayName" => directConnectGatewayName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_direct_connect_gateway( directConnectGatewayName, params::AbstractDict{String}; @@ -986,16 +948,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"gatewayId"`: The ID of the virtual private gateway or transit gateway. - `"virtualGatewayId"`: The ID of the virtual private gateway. """ -function create_direct_connect_gateway_association( +create_direct_connect_gateway_association( directConnectGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "CreateDirectConnectGatewayAssociation", + Dict{String,Any}("directConnectGatewayId" => directConnectGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreateDirectConnectGatewayAssociation", - Dict{String,Any}("directConnectGatewayId" => directConnectGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_direct_connect_gateway_association( directConnectGatewayId, params::AbstractDict{String}; @@ -1037,23 +997,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"removeAllowedPrefixesToDirectConnectGateway"`: The Amazon VPC prefixes to no longer advertise to the Direct Connect gateway. """ -function create_direct_connect_gateway_association_proposal( +create_direct_connect_gateway_association_proposal( directConnectGatewayId, directConnectGatewayOwnerAccount, gatewayId; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "CreateDirectConnectGatewayAssociationProposal", + Dict{String,Any}( + "directConnectGatewayId" => directConnectGatewayId, + "directConnectGatewayOwnerAccount" => directConnectGatewayOwnerAccount, + "gatewayId" => gatewayId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreateDirectConnectGatewayAssociationProposal", - Dict{String,Any}( - "directConnectGatewayId" => directConnectGatewayId, - "directConnectGatewayOwnerAccount" => directConnectGatewayOwnerAccount, - "gatewayId" => gatewayId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_direct_connect_gateway_association_proposal( directConnectGatewayId, directConnectGatewayOwnerAccount, @@ -1100,7 +1058,7 @@ the VLAN assigned to them by the Direct Connect Partner. Intended for use by Di Connect Partners only. # Arguments -- `bandwidth`: The port bandwidth, in Gbps. The possible values are 1 and 10. +- `bandwidth`: The port bandwidth, in Gbps. The possible values are 1, 10, and 100. - `interconnect_name`: The name of the interconnect. - `location`: The location of the interconnect. @@ -1110,23 +1068,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"providerName"`: The name of the service provider associated with the interconnect. - `"tags"`: The tags to associate with the interconnect. """ -function create_interconnect( +create_interconnect( bandwidth, interconnectName, location; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "CreateInterconnect", + Dict{String,Any}( + "bandwidth" => bandwidth, + "interconnectName" => interconnectName, + "location" => location, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreateInterconnect", - Dict{String,Any}( - "bandwidth" => bandwidth, - "interconnectName" => interconnectName, - "location" => location, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_interconnect( bandwidth, interconnectName, @@ -1160,28 +1116,28 @@ Creates a link aggregation group (LAG) with the specified number of bundled phys dedicated connections between the customer network and a specific Direct Connect location. A LAG is a logical interface that uses the Link Aggregation Control Protocol (LACP) to aggregate multiple interfaces, enabling you to treat them as a single interface. All -connections in a LAG must use the same bandwidth (either 1Gbps or 10Gbps) and must -terminate at the same Direct Connect endpoint. You can have up to 10 dedicated connections -per LAG. Regardless of this limit, if you request more connections for the LAG than Direct -Connect can allocate on a single endpoint, no LAG is created. You can specify an existing -physical dedicated connection or interconnect to include in the LAG (which counts towards -the total number of connections). Doing so interrupts the current physical dedicated -connection, and re-establishes them as a member of the LAG. The LAG will be created on the -same Direct Connect endpoint to which the dedicated connection terminates. Any virtual -interfaces associated with the dedicated connection are automatically disassociated and -re-associated with the LAG. The connection ID does not change. If the Amazon Web Services -account used to create a LAG is a registered Direct Connect Partner, the LAG is -automatically enabled to host sub-connections. For a LAG owned by a partner, any associated -virtual interfaces cannot be directly configured. +connections in a LAG must use the same bandwidth (either 1Gbps, 10Gbps, 100Gbps, or +400Gbps) and must terminate at the same Direct Connect endpoint. You can have up to 10 +dedicated connections per location. Regardless of this limit, if you request more +connections for the LAG than Direct Connect can allocate on a single endpoint, no LAG is +created.. You can specify an existing physical dedicated connection or interconnect to +include in the LAG (which counts towards the total number of connections). Doing so +interrupts the current physical dedicated connection, and re-establishes them as a member +of the LAG. The LAG will be created on the same Direct Connect endpoint to which the +dedicated connection terminates. Any virtual interfaces associated with the dedicated +connection are automatically disassociated and re-associated with the LAG. The connection +ID does not change. If the Amazon Web Services account used to create a LAG is a registered +Direct Connect Partner, the LAG is automatically enabled to host sub-connections. For a LAG +owned by a partner, any associated virtual interfaces cannot be directly configured. # Arguments - `connections_bandwidth`: The bandwidth of the individual physical dedicated connections - bundled by the LAG. The possible values are 1Gbps and 10Gbps. + bundled by the LAG. The possible values are 1Gbps,10Gbps, 100Gbps, and 400Gbps. - `lag_name`: The name of the LAG. - `location`: The location for the LAG. - `number_of_connections`: The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum of four connections when the - port speed is 1G or 10G, or two when the port speed is 100G. + port speed is 1Gbps or 10Gbps, or two when the port speed is 100Gbps or 400Gbps. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1194,25 +1150,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Direct Connect User Guide. - `"tags"`: The tags to associate with the LAG. """ -function create_lag( +create_lag( connectionsBandwidth, lagName, location, numberOfConnections; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "CreateLag", + Dict{String,Any}( + "connectionsBandwidth" => connectionsBandwidth, + "lagName" => lagName, + "location" => location, + "numberOfConnections" => numberOfConnections, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreateLag", - Dict{String,Any}( - "connectionsBandwidth" => connectionsBandwidth, - "lagName" => lagName, - "location" => location, - "numberOfConnections" => numberOfConnections, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lag( connectionsBandwidth, lagName, @@ -1250,7 +1204,7 @@ gateway or a Virtual Private Gateway (VGW). Connecting the private virtual inter Direct Connect gateway enables the possibility for connecting to multiple VPCs, including VPCs in different Amazon Web Services Regions. Connecting the private virtual interface to a VGW only provides access to a single VPC within the same Region. Setting the MTU of a -virtual interface to 9001 (jumbo frames) can cause an update to the underlying physical +virtual interface to 8500 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call DescribeConnections. @@ -1262,21 +1216,19 @@ DescribeVirtualInterfaces. - `new_private_virtual_interface`: Information about the private virtual interface. """ -function create_private_virtual_interface( +create_private_virtual_interface( connectionId, newPrivateVirtualInterface; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "CreatePrivateVirtualInterface", + Dict{String,Any}( + "connectionId" => connectionId, + "newPrivateVirtualInterface" => newPrivateVirtualInterface, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreatePrivateVirtualInterface", - Dict{String,Any}( - "connectionId" => connectionId, - "newPrivateVirtualInterface" => newPrivateVirtualInterface, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_private_virtual_interface( connectionId, newPrivateVirtualInterface, @@ -1315,21 +1267,19 @@ auto-assigned IPv6 space. Custom IPv6 addresses are not supported. - `new_public_virtual_interface`: Information about the public virtual interface. """ -function create_public_virtual_interface( +create_public_virtual_interface( connectionId, newPublicVirtualInterface; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "CreatePublicVirtualInterface", + Dict{String,Any}( + "connectionId" => connectionId, + "newPublicVirtualInterface" => newPublicVirtualInterface, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreatePublicVirtualInterface", - Dict{String,Any}( - "connectionId" => connectionId, - "newPublicVirtualInterface" => newPublicVirtualInterface, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_public_virtual_interface( connectionId, newPublicVirtualInterface, @@ -1377,21 +1327,19 @@ DescribeVirtualInterfaces. - `new_transit_virtual_interface`: Information about the transit virtual interface. """ -function create_transit_virtual_interface( +create_transit_virtual_interface( connectionId, newTransitVirtualInterface; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "CreateTransitVirtualInterface", + Dict{String,Any}( + "connectionId" => connectionId, + "newTransitVirtualInterface" => newTransitVirtualInterface, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "CreateTransitVirtualInterface", - Dict{String,Any}( - "connectionId" => connectionId, - "newTransitVirtualInterface" => newTransitVirtualInterface, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_virtual_interface( connectionId, newTransitVirtualInterface, @@ -1430,11 +1378,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"customerAddress"`: The IP address assigned to the customer interface. - `"virtualInterfaceId"`: The ID of the virtual interface. """ -function delete_bgppeer(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( - "DeleteBGPPeer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_bgppeer(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect("DeleteBGPPeer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_bgppeer( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1455,14 +1400,13 @@ with the Direct Connect location, you must cancel your service with them separat - `connection_id`: The ID of the connection. """ -function delete_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +delete_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DeleteConnection", Dict{String,Any}("connectionId" => connectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connection( connectionId, params::AbstractDict{String}; @@ -1490,16 +1434,14 @@ gateways associated with the Direct Connect gateway. - `direct_connect_gateway_id`: The ID of the Direct Connect gateway. """ -function delete_direct_connect_gateway( +delete_direct_connect_gateway( directConnectGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DeleteDirectConnectGateway", + Dict{String,Any}("directConnectGatewayId" => directConnectGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DeleteDirectConnectGateway", - Dict{String,Any}("directConnectGatewayId" => directConnectGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_direct_connect_gateway( directConnectGatewayId, params::AbstractDict{String}; @@ -1534,15 +1476,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"directConnectGatewayId"`: The ID of the Direct Connect gateway. - `"virtualGatewayId"`: The ID of the virtual private gateway. """ -function delete_direct_connect_gateway_association(; +delete_direct_connect_gateway_association(; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DeleteDirectConnectGatewayAssociation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DeleteDirectConnectGatewayAssociation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_direct_connect_gateway_association( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1565,16 +1505,14 @@ virtual private gateway or transit gateway. - `proposal_id`: The ID of the proposal. """ -function delete_direct_connect_gateway_association_proposal( +delete_direct_connect_gateway_association_proposal( proposalId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DeleteDirectConnectGatewayAssociationProposal", + Dict{String,Any}("proposalId" => proposalId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DeleteDirectConnectGatewayAssociationProposal", - Dict{String,Any}("proposalId" => proposalId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_direct_connect_gateway_association_proposal( proposalId, params::AbstractDict{String}; @@ -1600,16 +1538,13 @@ Deletes the specified interconnect. Intended for use by Direct Connect Partners - `interconnect_id`: The ID of the interconnect. """ -function delete_interconnect( - interconnectId; aws_config::AbstractAWSConfig=current_aws_config() -) - return direct_connect( +delete_interconnect(interconnectId; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DeleteInterconnect", Dict{String,Any}("interconnectId" => interconnectId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_interconnect( interconnectId, params::AbstractDict{String}; @@ -1636,14 +1571,12 @@ active virtual interfaces or hosted connections. - `lag_id`: The ID of the LAG. """ -function delete_lag(lagId; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( - "DeleteLag", - Dict{String,Any}("lagId" => lagId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_lag(lagId; aws_config::AbstractAWSConfig=current_aws_config()) = direct_connect( + "DeleteLag", + Dict{String,Any}("lagId" => lagId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_lag( lagId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1665,16 +1598,14 @@ Deletes a virtual interface. - `virtual_interface_id`: The ID of the virtual interface. """ -function delete_virtual_interface( +delete_virtual_interface( virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DeleteVirtualInterface", + Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DeleteVirtualInterface", - Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_virtual_interface( virtualInterfaceId, params::AbstractDict{String}; @@ -1696,7 +1627,7 @@ end describe_connection_loa(connection_id) describe_connection_loa(connection_id, params::Dict{String,<:Any}) -Deprecated. Use DescribeLoa instead. Gets the LOA-CFA for a connection. The Letter of + Deprecated. Use DescribeLoa instead. Gets the LOA-CFA for a connection. The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is a document that your APN partner or service provider uses when establishing your cross connect to Amazon Web Services at the colocation facility. For more information, see Requesting Cross Connects at @@ -1713,16 +1644,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect. """ -function describe_connection_loa( - connectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return direct_connect( +describe_connection_loa(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DescribeConnectionLoa", Dict{String,Any}("connectionId" => connectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_connection_loa( connectionId, params::AbstractDict{String}; @@ -1748,11 +1676,9 @@ Displays the specified connection or all connections in this Region. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"connectionId"`: The ID of the connection. """ -function describe_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( - "DescribeConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = direct_connect( + "DescribeConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1768,7 +1694,7 @@ end describe_connections_on_interconnect(interconnect_id) describe_connections_on_interconnect(interconnect_id, params::Dict{String,<:Any}) -Deprecated. Use DescribeHostedConnections instead. Lists the connections that have been + Deprecated. Use DescribeHostedConnections instead. Lists the connections that have been provisioned on the specified interconnect. Intended for use by Direct Connect Partners only. @@ -1776,16 +1702,14 @@ only. - `interconnect_id`: The ID of the interconnect. """ -function describe_connections_on_interconnect( +describe_connections_on_interconnect( interconnectId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DescribeConnectionsOnInterconnect", + Dict{String,Any}("interconnectId" => interconnectId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DescribeConnectionsOnInterconnect", - Dict{String,Any}("interconnectId" => interconnectId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_connections_on_interconnect( interconnectId, params::AbstractDict{String}; @@ -1809,11 +1733,10 @@ Get and view a list of customer agreements, along with their signed status and w customer is an NNIPartner, NNIPartnerV2, or a nonPartner. """ -function describe_customer_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +describe_customer_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DescribeCustomerMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_customer_metadata( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1842,15 +1765,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next page of results. - `"proposalId"`: The ID of the proposal. """ -function describe_direct_connect_gateway_association_proposals(; +describe_direct_connect_gateway_association_proposals(; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DescribeDirectConnectGatewayAssociationProposals"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DescribeDirectConnectGatewayAssociationProposals"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_direct_connect_gateway_association_proposals( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1887,15 +1808,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token provided in the previous call to retrieve the next page. - `"virtualGatewayId"`: The ID of the virtual private gateway or transit gateway. """ -function describe_direct_connect_gateway_associations(; +describe_direct_connect_gateway_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DescribeDirectConnectGatewayAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DescribeDirectConnectGatewayAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_direct_connect_gateway_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1927,15 +1846,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token provided in the previous call to retrieve the next page. - `"virtualInterfaceId"`: The ID of the virtual interface. """ -function describe_direct_connect_gateway_attachments(; +describe_direct_connect_gateway_attachments(; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DescribeDirectConnectGatewayAttachments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DescribeDirectConnectGatewayAttachments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_direct_connect_gateway_attachments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1962,15 +1879,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is given a value larger than 100, only 100 results are returned. - `"nextToken"`: The token provided in the previous call to retrieve the next page. """ -function describe_direct_connect_gateways(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return direct_connect( +describe_direct_connect_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DescribeDirectConnectGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_direct_connect_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1993,16 +1907,14 @@ link aggregation group (LAG). Intended for use by Direct Connect Partners only. - `connection_id`: The ID of the interconnect or LAG. """ -function describe_hosted_connections( +describe_hosted_connections( connectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DescribeHostedConnections", + Dict{String,Any}("connectionId" => connectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DescribeHostedConnections", - Dict{String,Any}("connectionId" => connectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_hosted_connections( connectionId, params::AbstractDict{String}; @@ -2022,7 +1934,7 @@ end describe_interconnect_loa(interconnect_id) describe_interconnect_loa(interconnect_id, params::Dict{String,<:Any}) -Deprecated. Use DescribeLoa instead. Gets the LOA-CFA for the specified interconnect. The + Deprecated. Use DescribeLoa instead. Gets the LOA-CFA for the specified interconnect. The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is a document that is used when establishing your cross connect to Amazon Web Services at the colocation facility. For more information, see Requesting Cross Connects at Direct Connect Locations @@ -2039,16 +1951,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys behalf. If you supply this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect. """ -function describe_interconnect_loa( +describe_interconnect_loa( interconnectId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DescribeInterconnectLoa", + Dict{String,Any}("interconnectId" => interconnectId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DescribeInterconnectLoa", - Dict{String,Any}("interconnectId" => interconnectId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_interconnect_loa( interconnectId, params::AbstractDict{String}; @@ -2075,11 +1985,10 @@ interconnect. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"interconnectId"`: The ID of the interconnect. """ -function describe_interconnects(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +describe_interconnects(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DescribeInterconnects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_interconnects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2101,11 +2010,8 @@ Describes all your link aggregation groups (LAG) or the specified LAG. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"lagId"`: The ID of the LAG. """ -function describe_lags(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( - "DescribeLags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_lags(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect("DescribeLags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_lags( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2135,14 +2041,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect. """ -function describe_loa(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +describe_loa(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DescribeLoa", Dict{String,Any}("connectionId" => connectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_loa( connectionId, params::AbstractDict{String}; @@ -2166,11 +2071,9 @@ Lists the Direct Connect locations in the current Amazon Web Services Region. Th locations that can be selected when calling CreateConnection or CreateInterconnect. """ -function describe_locations(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( - "DescribeLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_locations(; aws_config::AbstractAWSConfig=current_aws_config()) = direct_connect( + "DescribeLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_locations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2193,16 +2096,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"routerTypeIdentifier"`: Identifies the router by a combination of vendor, platform, and software version. For example, CiscoSystemsInc-2900SeriesRouters-IOS124. """ -function describe_router_configuration( +describe_router_configuration( virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DescribeRouterConfiguration", + Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DescribeRouterConfiguration", - Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_router_configuration( virtualInterfaceId, params::AbstractDict{String}; @@ -2230,14 +2131,13 @@ Describes the tags associated with the specified Direct Connect resources. - `resource_arns`: The Amazon Resource Names (ARNs) of the resources. """ -function describe_tags(resourceArns; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +describe_tags(resourceArns; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DescribeTags", Dict{String,Any}("resourceArns" => resourceArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_tags( resourceArns, params::AbstractDict{String}; @@ -2257,15 +2157,16 @@ end describe_virtual_gateways() describe_virtual_gateways(params::Dict{String,<:Any}) -Lists the virtual private gateways owned by the Amazon Web Services account. You can create -one or more Direct Connect private virtual interfaces linked to a virtual private gateway. + Deprecated. Use DescribeVpnGateways instead. See DescribeVPNGateways in the Amazon Elastic +Compute Cloud API Reference. Lists the virtual private gateways owned by the Amazon Web +Services account. You can create one or more Direct Connect private virtual interfaces +linked to a virtual private gateway. """ -function describe_virtual_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +describe_virtual_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DescribeVirtualGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_virtual_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2293,11 +2194,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"connectionId"`: The ID of the connection. - `"virtualInterfaceId"`: The ID of the virtual interface. """ -function describe_virtual_interfaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +describe_virtual_interfaces(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "DescribeVirtualInterfaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_virtual_interfaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2328,16 +2228,14 @@ exist as an empty LAG with no physical connections. - `lag_id`: The ID of the LAG. """ -function disassociate_connection_from_lag( +disassociate_connection_from_lag( connectionId, lagId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DisassociateConnectionFromLag", + Dict{String,Any}("connectionId" => connectionId, "lagId" => lagId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DisassociateConnectionFromLag", - Dict{String,Any}("connectionId" => connectionId, "lagId" => lagId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_connection_from_lag( connectionId, lagId, @@ -2372,16 +2270,14 @@ dedicated connection. can use DescribeConnections to retrieve the ARN of the MAC Security (MACsec) secret key. """ -function disassociate_mac_sec_key( +disassociate_mac_sec_key( connectionId, secretARN; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "DisassociateMacSecKey", + Dict{String,Any}("connectionId" => connectionId, "secretARN" => secretARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "DisassociateMacSecKey", - Dict{String,Any}("connectionId" => connectionId, "secretARN" => secretARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_mac_sec_key( connectionId, secretARN, @@ -2420,15 +2316,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"testId"`: The ID of the virtual interface failover test. - `"virtualInterfaceId"`: The ID of the virtual interface that was tested. """ -function list_virtual_interface_test_history(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return direct_connect( +list_virtual_interface_test_history(; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "ListVirtualInterfaceTestHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_virtual_interface_test_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2460,16 +2353,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"testDurationInMinutes"`: The time in minutes that the virtual interface failover test will last. Maximum value: 4,320 minutes (72 hours). Default: 180 minutes (3 hours). """ -function start_bgp_failover_test( +start_bgp_failover_test( virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "StartBgpFailoverTest", + Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "StartBgpFailoverTest", - Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_bgp_failover_test( virtualInterfaceId, params::AbstractDict{String}; @@ -2497,16 +2388,14 @@ Stops the virtual interface failover test. - `virtual_interface_id`: The ID of the virtual interface you no longer want to test. """ -function stop_bgp_failover_test( +stop_bgp_failover_test( virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "StopBgpFailoverTest", + Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "StopBgpFailoverTest", - Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_bgp_failover_test( virtualInterfaceId, params::AbstractDict{String}; @@ -2537,14 +2426,13 @@ same key is already associated with the resource, this action updates its value. - `tags`: The tags to add. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2576,16 +2464,13 @@ Removes one or more tags from the specified Direct Connect resource. - `tag_keys`: The tag keys of the tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return direct_connect( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2624,14 +2509,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"encryptionMode"`: The connection MAC Security (MACsec) encryption mode. The valid values are no_encrypt, should_encrypt, and must_encrypt. """ -function update_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( +update_connection(connectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + direct_connect( "UpdateConnection", Dict{String,Any}("connectionId" => connectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_connection( connectionId, params::AbstractDict{String}; @@ -2658,21 +2542,19 @@ Updates the name of a current Direct Connect gateway. - `new_direct_connect_gateway_name`: The new name for the Direct Connect gateway. """ -function update_direct_connect_gateway( +update_direct_connect_gateway( directConnectGatewayId, newDirectConnectGatewayName; aws_config::AbstractAWSConfig=current_aws_config(), +) = direct_connect( + "UpdateDirectConnectGateway", + Dict{String,Any}( + "directConnectGatewayId" => directConnectGatewayId, + "newDirectConnectGatewayName" => newDirectConnectGatewayName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "UpdateDirectConnectGateway", - Dict{String,Any}( - "directConnectGatewayId" => directConnectGatewayId, - "newDirectConnectGatewayName" => newDirectConnectGatewayName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_direct_connect_gateway( directConnectGatewayId, newDirectConnectGatewayName, @@ -2711,15 +2593,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"removeAllowedPrefixesToDirectConnectGateway"`: The Amazon VPC prefixes to no longer advertise to the Direct Connect gateway. """ -function update_direct_connect_gateway_association(; +update_direct_connect_gateway_association(; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "UpdateDirectConnectGatewayAssociation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "UpdateDirectConnectGatewayAssociation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_direct_connect_gateway_association( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2754,14 +2634,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"minimumLinks"`: The minimum number of physical connections that must be operational for the LAG itself to be operational. """ -function update_lag(lagId; aws_config::AbstractAWSConfig=current_aws_config()) - return direct_connect( - "UpdateLag", - Dict{String,Any}("lagId" => lagId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_lag(lagId; aws_config::AbstractAWSConfig=current_aws_config()) = direct_connect( + "UpdateLag", + Dict{String,Any}("lagId" => lagId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_lag( lagId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2778,7 +2656,7 @@ end update_virtual_interface_attributes(virtual_interface_id, params::Dict{String,<:Any}) Updates the specified attributes of the specified virtual private interface. Setting the -MTU of a virtual interface to 9001 (jumbo frames) can cause an update to the underlying +MTU of a virtual interface to 8500 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call @@ -2792,19 +2670,17 @@ DescribeVirtualInterfaces. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"enableSiteLink"`: Indicates whether to enable or disable SiteLink. - `"mtu"`: The maximum transmission unit (MTU), in bytes. The supported values are 1500 and - 9001. The default value is 1500. + 8500. The default value is 1500. - `"virtualInterfaceName"`: The name of the virtual private interface. """ -function update_virtual_interface_attributes( +update_virtual_interface_attributes( virtualInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = direct_connect( + "UpdateVirtualInterfaceAttributes", + Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return direct_connect( - "UpdateVirtualInterfaceAttributes", - Dict{String,Any}("virtualInterfaceId" => virtualInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_virtual_interface_attributes( virtualInterfaceId, params::AbstractDict{String}; diff --git a/src/services/directory_service.jl b/src/services/directory_service.jl index 1b6013e7b..2eb9caa2b 100644 --- a/src/services/directory_service.jl +++ b/src/services/directory_service.jl @@ -15,16 +15,14 @@ Accepts a directory sharing request that was sent from the directory owner accou account. This identifier is different for each directory owner account. """ -function accept_shared_directory( +accept_shared_directory( SharedDirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "AcceptSharedDirectory", + Dict{String,Any}("SharedDirectoryId" => SharedDirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "AcceptSharedDirectory", - Dict{String,Any}("SharedDirectoryId" => SharedDirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_shared_directory( SharedDirectoryId, params::AbstractDict{String}; @@ -82,16 +80,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Destination: 0.0.0.0/0 These security rules impact an internal network interface that is not exposed publicly. """ -function add_ip_routes( - DirectoryId, IpRoutes; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +add_ip_routes(DirectoryId, IpRoutes; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "AddIpRoutes", Dict{String,Any}("DirectoryId" => DirectoryId, "IpRoutes" => IpRoutes); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_ip_routes( DirectoryId, IpRoutes, @@ -126,20 +121,18 @@ Adds two domain controllers in the specified Region for the specified directory. - `vpcsettings`: """ -function add_region( +add_region( DirectoryId, RegionName, VPCSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "AddRegion", + Dict{String,Any}( + "DirectoryId" => DirectoryId, + "RegionName" => RegionName, + "VPCSettings" => VPCSettings, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "AddRegion", - Dict{String,Any}( - "DirectoryId" => DirectoryId, - "RegionName" => RegionName, - "VPCSettings" => VPCSettings, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_region( DirectoryId, RegionName, @@ -178,16 +171,13 @@ to each resource. - `tags`: The tags to be assigned to the directory. """ -function add_tags_to_resource( - ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +add_tags_to_resource(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "AddTagsToResource", Dict{String,Any}("ResourceId" => ResourceId, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_tags_to_resource( ResourceId, Tags, @@ -220,18 +210,16 @@ Initializing, CreatingSnapshot, and UpdatingSchema. - `schema_extension_id`: The identifier of the schema extension that will be canceled. """ -function cancel_schema_extension( +cancel_schema_extension( DirectoryId, SchemaExtensionId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "CancelSchemaExtension", + Dict{String,Any}( + "DirectoryId" => DirectoryId, "SchemaExtensionId" => SchemaExtensionId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "CancelSchemaExtension", - Dict{String,Any}( - "DirectoryId" => DirectoryId, "SchemaExtensionId" => SchemaExtensionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_schema_extension( DirectoryId, SchemaExtensionId, @@ -277,25 +265,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ShortName"`: The NetBIOS name of your self-managed directory, such as CORP. - `"Tags"`: The tags to be assigned to AD Connector. """ -function connect_directory( +connect_directory( ConnectSettings, Name, Password, Size; aws_config::AbstractAWSConfig=current_aws_config(), +) = directory_service( + "ConnectDirectory", + Dict{String,Any}( + "ConnectSettings" => ConnectSettings, + "Name" => Name, + "Password" => Password, + "Size" => Size, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "ConnectDirectory", - Dict{String,Any}( - "ConnectSettings" => ConnectSettings, - "Name" => Name, - "Password" => Password, - "Size" => Size, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function connect_directory( ConnectSettings, Name, @@ -339,16 +325,13 @@ only be used when absolutely necessary. - `directory_id`: The identifier of the directory for which to create the alias. """ -function create_alias( - Alias, DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +create_alias(Alias, DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "CreateAlias", Dict{String,Any}("Alias" => Alias, "DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_alias( Alias, DirectoryId, @@ -388,20 +371,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OrganizationalUnitDistinguishedName"`: The fully-qualified distinguished name of the organizational unit to place the computer account in. """ -function create_computer( +create_computer( ComputerName, DirectoryId, Password; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "CreateComputer", + Dict{String,Any}( + "ComputerName" => ComputerName, + "DirectoryId" => DirectoryId, + "Password" => Password, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "CreateComputer", - Dict{String,Any}( - "ComputerName" => ComputerName, - "DirectoryId" => DirectoryId, - "Password" => Password, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_computer( ComputerName, DirectoryId, @@ -444,23 +425,21 @@ domain. The conditional forwarder points to the trusted domain. which you will set up a trust relationship. """ -function create_conditional_forwarder( +create_conditional_forwarder( DirectoryId, DnsIpAddrs, RemoteDomainName; aws_config::AbstractAWSConfig=current_aws_config(), +) = directory_service( + "CreateConditionalForwarder", + Dict{String,Any}( + "DirectoryId" => DirectoryId, + "DnsIpAddrs" => DnsIpAddrs, + "RemoteDomainName" => RemoteDomainName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "CreateConditionalForwarder", - Dict{String,Any}( - "DirectoryId" => DirectoryId, - "DnsIpAddrs" => DnsIpAddrs, - "RemoteDomainName" => RemoteDomainName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_conditional_forwarder( DirectoryId, DnsIpAddrs, @@ -520,16 +499,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSettings"`: A DirectoryVpcSettings object that contains additional information for the operation. """ -function create_directory( - Name, Password, Size; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +create_directory(Name, Password, Size; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "CreateDirectory", Dict{String,Any}("Name" => Name, "Password" => Password, "Size" => Size); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_directory( Name, Password, @@ -565,16 +541,14 @@ logs to the specified Amazon CloudWatch log group in your Amazon Web Services ac controller logs are forwarded. """ -function create_log_subscription( +create_log_subscription( DirectoryId, LogGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "CreateLogSubscription", + Dict{String,Any}("DirectoryId" => DirectoryId, "LogGroupName" => LogGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "CreateLogSubscription", - Dict{String,Any}("DirectoryId" => DirectoryId, "LogGroupName" => LogGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_log_subscription( DirectoryId, LogGroupName, @@ -629,18 +603,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for the directory DNS corp.example.com. - `"Tags"`: The tags to be assigned to the Managed Microsoft AD directory. """ -function create_microsoft_ad( +create_microsoft_ad( Name, Password, VpcSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "CreateMicrosoftAD", + Dict{String,Any}("Name" => Name, "Password" => Password, "VpcSettings" => VpcSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "CreateMicrosoftAD", - Dict{String,Any}( - "Name" => Name, "Password" => Password, "VpcSettings" => VpcSettings - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_microsoft_ad( Name, Password, @@ -678,14 +648,13 @@ cloud. You cannot take snapshots of AD Connector directories. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The descriptive name to apply to the snapshot. """ -function create_snapshot(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +create_snapshot(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "CreateSnapshot", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_snapshot( DirectoryId, params::AbstractDict{String}; @@ -729,25 +698,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SelectiveAuth"`: Optional parameter to enable selective authentication for the trust. - `"TrustType"`: The trust relationship type. Forest is the default. """ -function create_trust( +create_trust( DirectoryId, RemoteDomainName, TrustDirection, TrustPassword; aws_config::AbstractAWSConfig=current_aws_config(), +) = directory_service( + "CreateTrust", + Dict{String,Any}( + "DirectoryId" => DirectoryId, + "RemoteDomainName" => RemoteDomainName, + "TrustDirection" => TrustDirection, + "TrustPassword" => TrustPassword, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "CreateTrust", - Dict{String,Any}( - "DirectoryId" => DirectoryId, - "RemoteDomainName" => RemoteDomainName, - "TrustDirection" => TrustDirection, - "TrustPassword" => TrustPassword, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_trust( DirectoryId, RemoteDomainName, @@ -787,18 +754,14 @@ Deletes a conditional forwarder that has been set up for your Amazon Web Service which you are deleting the conditional forwarder. """ -function delete_conditional_forwarder( +delete_conditional_forwarder( DirectoryId, RemoteDomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DeleteConditionalForwarder", + Dict{String,Any}("DirectoryId" => DirectoryId, "RemoteDomainName" => RemoteDomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DeleteConditionalForwarder", - Dict{String,Any}( - "DirectoryId" => DirectoryId, "RemoteDomainName" => RemoteDomainName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_conditional_forwarder( DirectoryId, RemoteDomainName, @@ -834,14 +797,13 @@ API Permissions: Actions, Resources, and Conditions Reference. - `directory_id`: The identifier of the directory to delete. """ -function delete_directory(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +delete_directory(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DeleteDirectory", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_directory( DirectoryId, params::AbstractDict{String}; @@ -867,16 +829,13 @@ Deletes the specified log subscription. - `directory_id`: Identifier of the directory whose log subscription you want to delete. """ -function delete_log_subscription( - DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +delete_log_subscription(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DeleteLogSubscription", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_log_subscription( DirectoryId, params::AbstractDict{String}; @@ -902,14 +861,13 @@ Deletes a directory snapshot. - `snapshot_id`: The identifier of the directory snapshot to be deleted. """ -function delete_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +delete_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DeleteSnapshot", Dict{String,Any}("SnapshotId" => SnapshotId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_snapshot( SnapshotId, params::AbstractDict{String}; @@ -940,14 +898,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeleteAssociatedConditionalForwarder"`: Delete a conditional forwarder as part of a DeleteTrustRequest. """ -function delete_trust(TrustId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +delete_trust(TrustId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DeleteTrust", Dict{String,Any}("TrustId" => TrustId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_trust( TrustId, params::AbstractDict{String}; @@ -973,16 +930,14 @@ certificate authentication. - `directory_id`: The identifier of the directory. """ -function deregister_certificate( +deregister_certificate( CertificateId, DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DeregisterCertificate", + Dict{String,Any}("CertificateId" => CertificateId, "DirectoryId" => DirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DeregisterCertificate", - Dict{String,Any}("CertificateId" => CertificateId, "DirectoryId" => DirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_certificate( CertificateId, DirectoryId, @@ -1018,16 +973,14 @@ Removes the specified directory as a publisher to the specified Amazon SNS topic publisher. """ -function deregister_event_topic( +deregister_event_topic( DirectoryId, TopicName; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DeregisterEventTopic", + Dict{String,Any}("DirectoryId" => DirectoryId, "TopicName" => TopicName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DeregisterEventTopic", - Dict{String,Any}("DirectoryId" => DirectoryId, "TopicName" => TopicName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_event_topic( DirectoryId, TopicName, @@ -1060,16 +1013,14 @@ authentication. - `directory_id`: The identifier of the directory. """ -function describe_certificate( +describe_certificate( CertificateId, DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DescribeCertificate", + Dict{String,Any}("CertificateId" => CertificateId, "DirectoryId" => DirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DescribeCertificate", - Dict{String,Any}("CertificateId" => CertificateId, "DirectoryId" => DirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_certificate( CertificateId, DirectoryId, @@ -1114,16 +1065,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is specified, a list of all client authentication types that are supported for the specified directory is retrieved. """ -function describe_client_authentication_settings( +describe_client_authentication_settings( DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DescribeClientAuthenticationSettings", + Dict{String,Any}("DirectoryId" => DirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DescribeClientAuthenticationSettings", - Dict{String,Any}("DirectoryId" => DirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_client_authentication_settings( DirectoryId, params::AbstractDict{String}; @@ -1157,16 +1106,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which to get the list of associated conditional forwarders. If this member is null, all conditional forwarders are returned. """ -function describe_conditional_forwarders( +describe_conditional_forwarders( DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DescribeConditionalForwarders", + Dict{String,Any}("DirectoryId" => DirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DescribeConditionalForwarders", - Dict{String,Any}("DirectoryId" => DirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_conditional_forwarders( DirectoryId, params::AbstractDict{String}; @@ -1205,11 +1152,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call. """ -function describe_directories(; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +describe_directories(; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DescribeDirectories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_directories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1239,16 +1185,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The DescribeDomainControllers.NextToken value from a previous call to DescribeDomainControllers. Pass null if this is the first call. """ -function describe_domain_controllers( +describe_domain_controllers( DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DescribeDomainControllers", + Dict{String,Any}("DirectoryId" => DirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DescribeDomainControllers", - Dict{String,Any}("DirectoryId" => DirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_domain_controllers( DirectoryId, params::AbstractDict{String}; @@ -1280,11 +1224,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this member is null, all associations for the specified Directory ID are returned. An empty list results in an InvalidParameterException being thrown. """ -function describe_event_topics(; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +describe_event_topics(; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DescribeEventTopics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_event_topics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1312,16 +1255,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: The type of LDAP security to enable. Currently only the value Client is supported. """ -function describe_ldapssettings( - DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +describe_ldapssettings(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DescribeLDAPSSettings", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_ldapssettings( DirectoryId, params::AbstractDict{String}; @@ -1352,14 +1292,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DescribeRegions. Pass null if this is the first call. - `"RegionName"`: The name of the Region. For example, us-east-1. """ -function describe_regions(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +describe_regions(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DescribeRegions", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_regions( DirectoryId, params::AbstractDict{String}; @@ -1390,14 +1329,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DescribeSettings. Pass null if this is the first call. - `"Status"`: The status of the directory settings for which to retrieve information. """ -function describe_settings(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +describe_settings(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DescribeSettings", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_settings( DirectoryId, params::AbstractDict{String}; @@ -1430,16 +1368,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to DescribeSharedDirectories. Pass null if this is the first call. - `"SharedDirectoryIds"`: A list of identifiers of all shared directories in your account. """ -function describe_shared_directories( +describe_shared_directories( OwnerDirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DescribeSharedDirectories", + Dict{String,Any}("OwnerDirectoryId" => OwnerDirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DescribeSharedDirectories", - Dict{String,Any}("OwnerDirectoryId" => OwnerDirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_shared_directories( OwnerDirectoryId, params::AbstractDict{String}; @@ -1478,11 +1414,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this member is null or empty, all snapshots are returned using the Limit and NextToken members. """ -function describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1510,11 +1445,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information. If this member is null, all trust relationships that belong to the current account are returned. An empty list results in an InvalidParameterException being thrown. """ -function describe_trusts(; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( - "DescribeTrusts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_trusts(; aws_config::AbstractAWSConfig=current_aws_config()) = directory_service( + "DescribeTrusts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_trusts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1539,16 +1472,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to DescribeUpdateDirectory. Pass null if this is the first call. - `"RegionName"`: The name of the Region. """ -function describe_update_directory( +describe_update_directory( DirectoryId, UpdateType; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DescribeUpdateDirectory", + Dict{String,Any}("DirectoryId" => DirectoryId, "UpdateType" => UpdateType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DescribeUpdateDirectory", - Dict{String,Any}("DirectoryId" => DirectoryId, "UpdateType" => UpdateType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_update_directory( DirectoryId, UpdateType, @@ -1581,16 +1512,14 @@ Disables alternative client authentication methods for the specified directory. SmartCard is supported. """ -function disable_client_authentication( +disable_client_authentication( DirectoryId, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "DisableClientAuthentication", + Dict{String,Any}("DirectoryId" => DirectoryId, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "DisableClientAuthentication", - Dict{String,Any}("DirectoryId" => DirectoryId, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_client_authentication( DirectoryId, Type, @@ -1622,16 +1551,13 @@ Deactivates LDAP secure calls for the specified directory. - `type`: The type of LDAP security to enable. Currently only the value Client is supported. """ -function disable_ldaps( - DirectoryId, Type; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +disable_ldaps(DirectoryId, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DisableLDAPS", Dict{String,Any}("DirectoryId" => DirectoryId, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_ldaps( DirectoryId, Type, @@ -1663,14 +1589,13 @@ Service (RADIUS) server for an AD Connector or Microsoft AD directory. - `directory_id`: The identifier of the directory for which to disable MFA. """ -function disable_radius(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +disable_radius(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DisableRadius", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_radius( DirectoryId, params::AbstractDict{String}; @@ -1706,14 +1631,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Password parameters. These credentials are only used to disable single sign-on and are not stored by the service. The AD Connector service account is not changed. """ -function disable_sso(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +disable_sso(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "DisableSso", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_sso( DirectoryId, params::AbstractDict{String}; @@ -1742,16 +1666,14 @@ Enables alternative client authentication methods for the specified directory. Constrained Delegation for the Service User to the LDAP service in your self-managed AD. """ -function enable_client_authentication( +enable_client_authentication( DirectoryId, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "EnableClientAuthentication", + Dict{String,Any}("DirectoryId" => DirectoryId, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "EnableClientAuthentication", - Dict{String,Any}("DirectoryId" => DirectoryId, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_client_authentication( DirectoryId, Type, @@ -1783,14 +1705,13 @@ Activates the switch for the specific directory to always use LDAP secure calls. - `type`: The type of LDAP security to enable. Currently only the value Client is supported. """ -function enable_ldaps(DirectoryId, Type; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +enable_ldaps(DirectoryId, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "EnableLDAPS", Dict{String,Any}("DirectoryId" => DirectoryId, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_ldaps( DirectoryId, Type, @@ -1824,16 +1745,14 @@ Service (RADIUS) server for an AD Connector or Microsoft AD directory. server. """ -function enable_radius( +enable_radius( DirectoryId, RadiusSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "EnableRadius", + Dict{String,Any}("DirectoryId" => DirectoryId, "RadiusSettings" => RadiusSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "EnableRadius", - Dict{String,Any}("DirectoryId" => DirectoryId, "RadiusSettings" => RadiusSettings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_radius( DirectoryId, RadiusSettings, @@ -1878,14 +1797,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Password parameters. These credentials are only used to enable single sign-on and are not stored by the service. The AD Connector service account is not changed. """ -function enable_sso(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +enable_sso(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "EnableSso", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_sso( DirectoryId, params::AbstractDict{String}; @@ -1908,11 +1826,10 @@ end Obtains directory limit information for the current Region. """ -function get_directory_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +get_directory_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "GetDirectoryLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_directory_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1931,16 +1848,13 @@ Obtains the manual snapshot limits for a directory. - `directory_id`: Contains the identifier of the directory to obtain the limits for. """ -function get_snapshot_limits( - DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +get_snapshot_limits(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "GetSnapshotLimits", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_snapshot_limits( DirectoryId, params::AbstractDict{String}; @@ -1974,14 +1888,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned NextToken element in your request until the token comes back as null. Pass null if this is the first call. """ -function list_certificates(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +list_certificates(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "ListCertificates", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_certificates( DirectoryId, params::AbstractDict{String}; @@ -2014,14 +1927,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The ListIpRoutes.NextToken value from a previous call to ListIpRoutes. Pass null if this is the first call. """ -function list_ip_routes(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +list_ip_routes(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "ListIpRoutes", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_ip_routes( DirectoryId, params::AbstractDict{String}; @@ -2052,11 +1964,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: The maximum number of items returned. - `"NextToken"`: The token for the next set of items to return. """ -function list_log_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +list_log_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "ListLogSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_log_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2084,16 +1995,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The ListSchemaExtensions.NextToken value from a previous call to ListSchemaExtensions. Pass null if this is the first call. """ -function list_schema_extensions( - DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +list_schema_extensions(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "ListSchemaExtensions", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_schema_extensions( DirectoryId, params::AbstractDict{String}; @@ -2123,16 +2031,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: Reserved for future use. - `"NextToken"`: Reserved for future use. """ -function list_tags_for_resource( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +list_tags_for_resource(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "ListTagsForResource", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceId, params::AbstractDict{String}; @@ -2165,18 +2070,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: The function that the registered certificate performs. Valid values include ClientLDAPS or ClientCertAuth. The default value is ClientLDAPS. """ -function register_certificate( +register_certificate( CertificateData, DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "RegisterCertificate", + Dict{String,Any}("CertificateData" => CertificateData, "DirectoryId" => DirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "RegisterCertificate", - Dict{String,Any}( - "CertificateData" => CertificateData, "DirectoryId" => DirectoryId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_certificate( CertificateData, DirectoryId, @@ -2216,16 +2117,14 @@ when the directory returns to an Active status. messages. This Amazon SNS topic must be in the same region as the specified Directory ID. """ -function register_event_topic( +register_event_topic( DirectoryId, TopicName; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "RegisterEventTopic", + Dict{String,Any}("DirectoryId" => DirectoryId, "TopicName" => TopicName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "RegisterEventTopic", - Dict{String,Any}("DirectoryId" => DirectoryId, "TopicName" => TopicName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_event_topic( DirectoryId, TopicName, @@ -2257,16 +2156,14 @@ Rejects a directory sharing request that was sent from the directory owner accou account. This identifier is different for each directory owner account. """ -function reject_shared_directory( +reject_shared_directory( SharedDirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "RejectSharedDirectory", + Dict{String,Any}("SharedDirectoryId" => SharedDirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "RejectSharedDirectory", - Dict{String,Any}("SharedDirectoryId" => SharedDirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_shared_directory( SharedDirectoryId, params::AbstractDict{String}; @@ -2296,16 +2193,13 @@ Removes IP address blocks from a directory. addresses. """ -function remove_ip_routes( - CidrIps, DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +remove_ip_routes(CidrIps, DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "RemoveIpRoutes", Dict{String,Any}("CidrIps" => CidrIps, "DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_ip_routes( CidrIps, DirectoryId, @@ -2338,14 +2232,13 @@ cannot remove the primary Region with this operation. Instead, use the DeleteDir replication. """ -function remove_region(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +remove_region(DirectoryId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "RemoveRegion", Dict{String,Any}("DirectoryId" => DirectoryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_region( DirectoryId, params::AbstractDict{String}; @@ -2372,16 +2265,14 @@ Removes tags from a directory. - `tag_keys`: The tag key (name) of the tag to be removed. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "RemoveTagsFromResource", + Dict{String,Any}("ResourceId" => ResourceId, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "RemoveTagsFromResource", - Dict{String,Any}("ResourceId" => ResourceId, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceId, TagKeys, @@ -2423,20 +2314,18 @@ Directory Service Administration Guide. - `user_name`: The user name of the user whose password will be reset. """ -function reset_user_password( +reset_user_password( DirectoryId, NewPassword, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "ResetUserPassword", + Dict{String,Any}( + "DirectoryId" => DirectoryId, + "NewPassword" => NewPassword, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "ResetUserPassword", - Dict{String,Any}( - "DirectoryId" => DirectoryId, - "NewPassword" => NewPassword, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_user_password( DirectoryId, NewPassword, @@ -2477,16 +2366,13 @@ restore operation is complete. - `snapshot_id`: The identifier of the snapshot to restore from. """ -function restore_from_snapshot( - SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +restore_from_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "RestoreFromSnapshot", Dict{String,Any}("SnapshotId" => SnapshotId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_from_snapshot( SnapshotId, params::AbstractDict{String}; @@ -2535,23 +2421,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation. """ -function share_directory( +share_directory( DirectoryId, ShareMethod, ShareTarget; aws_config::AbstractAWSConfig=current_aws_config(), +) = directory_service( + "ShareDirectory", + Dict{String,Any}( + "DirectoryId" => DirectoryId, + "ShareMethod" => ShareMethod, + "ShareTarget" => ShareTarget, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "ShareDirectory", - Dict{String,Any}( - "DirectoryId" => DirectoryId, - "ShareMethod" => ShareMethod, - "ShareTarget" => ShareTarget, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function share_directory( DirectoryId, ShareMethod, @@ -2594,25 +2478,23 @@ Applies a schema extension to a Microsoft AD directory. request below for more details. The file size can be no larger than 1MB. """ -function start_schema_extension( +start_schema_extension( CreateSnapshotBeforeSchemaExtension, Description, DirectoryId, LdifContent; aws_config::AbstractAWSConfig=current_aws_config(), +) = directory_service( + "StartSchemaExtension", + Dict{String,Any}( + "CreateSnapshotBeforeSchemaExtension" => CreateSnapshotBeforeSchemaExtension, + "Description" => Description, + "DirectoryId" => DirectoryId, + "LdifContent" => LdifContent, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "StartSchemaExtension", - Dict{String,Any}( - "CreateSnapshotBeforeSchemaExtension" => CreateSnapshotBeforeSchemaExtension, - "Description" => Description, - "DirectoryId" => DirectoryId, - "LdifContent" => LdifContent, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_schema_extension( CreateSnapshotBeforeSchemaExtension, Description, @@ -2654,16 +2536,14 @@ Stops the directory sharing between the directory owner and consumer accounts. has to be unshared. """ -function unshare_directory( +unshare_directory( DirectoryId, UnshareTarget; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "UnshareDirectory", + Dict{String,Any}("DirectoryId" => DirectoryId, "UnshareTarget" => UnshareTarget); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "UnshareDirectory", - Dict{String,Any}("DirectoryId" => DirectoryId, "UnshareTarget" => UnshareTarget); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unshare_directory( DirectoryId, UnshareTarget, @@ -2701,23 +2581,21 @@ Updates a conditional forwarder that has been set up for your Amazon Web Service which you will set up a trust relationship. """ -function update_conditional_forwarder( +update_conditional_forwarder( DirectoryId, DnsIpAddrs, RemoteDomainName; aws_config::AbstractAWSConfig=current_aws_config(), +) = directory_service( + "UpdateConditionalForwarder", + Dict{String,Any}( + "DirectoryId" => DirectoryId, + "DnsIpAddrs" => DnsIpAddrs, + "RemoteDomainName" => RemoteDomainName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "UpdateConditionalForwarder", - Dict{String,Any}( - "DirectoryId" => DirectoryId, - "DnsIpAddrs" => DnsIpAddrs, - "RemoteDomainName" => RemoteDomainName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_conditional_forwarder( DirectoryId, DnsIpAddrs, @@ -2761,16 +2639,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OSUpdateSettings"`: The settings for the OS update that needs to be performed on the directory. """ -function update_directory_setup( +update_directory_setup( DirectoryId, UpdateType; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "UpdateDirectorySetup", + Dict{String,Any}("DirectoryId" => DirectoryId, "UpdateType" => UpdateType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "UpdateDirectorySetup", - Dict{String,Any}("DirectoryId" => DirectoryId, "UpdateType" => UpdateType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_directory_setup( DirectoryId, UpdateType, @@ -2807,16 +2683,14 @@ time, you cannot make another update request. or removed. """ -function update_number_of_domain_controllers( +update_number_of_domain_controllers( DesiredNumber, DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "UpdateNumberOfDomainControllers", + Dict{String,Any}("DesiredNumber" => DesiredNumber, "DirectoryId" => DirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "UpdateNumberOfDomainControllers", - Dict{String,Any}("DesiredNumber" => DesiredNumber, "DirectoryId" => DirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_number_of_domain_controllers( DesiredNumber, DirectoryId, @@ -2853,16 +2727,14 @@ AD Connector or Microsoft AD directory. server. """ -function update_radius( +update_radius( DirectoryId, RadiusSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = directory_service( + "UpdateRadius", + Dict{String,Any}("DirectoryId" => DirectoryId, "RadiusSettings" => RadiusSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return directory_service( - "UpdateRadius", - Dict{String,Any}("DirectoryId" => DirectoryId, "RadiusSettings" => RadiusSettings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_radius( DirectoryId, RadiusSettings, @@ -2896,16 +2768,13 @@ Updates the configurable settings for the specified directory. - `settings`: The list of Setting objects. """ -function update_settings( - DirectoryId, Settings; aws_config::AbstractAWSConfig=current_aws_config() -) - return directory_service( +update_settings(DirectoryId, Settings; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "UpdateSettings", Dict{String,Any}("DirectoryId" => DirectoryId, "Settings" => Settings); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_settings( DirectoryId, Settings, @@ -2940,14 +2809,13 @@ self-managed Active Directory. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SelectiveAuth"`: Updates selective authentication for the trust. """ -function update_trust(TrustId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +update_trust(TrustId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "UpdateTrust", Dict{String,Any}("TrustId" => TrustId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_trust( TrustId, params::AbstractDict{String}; @@ -2973,14 +2841,13 @@ directory and an external domain. - `trust_id`: The unique Trust ID of the trust relationship to verify. """ -function verify_trust(TrustId; aws_config::AbstractAWSConfig=current_aws_config()) - return directory_service( +verify_trust(TrustId; aws_config::AbstractAWSConfig=current_aws_config()) = + directory_service( "VerifyTrust", Dict{String,Any}("TrustId" => TrustId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function verify_trust( TrustId, params::AbstractDict{String}; diff --git a/src/services/dlm.jl b/src/services/dlm.jl index cc9b7ee85..1217b0401 100644 --- a/src/services/dlm.jl +++ b/src/services/dlm.jl @@ -63,21 +63,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 7 - `"Tags"`: The tags to apply to the lifecycle policy during creation. """ -function create_lifecycle_policy( +create_lifecycle_policy( Description, ExecutionRoleArn, State; aws_config::AbstractAWSConfig=current_aws_config() +) = dlm( + "POST", + "/policies", + Dict{String,Any}( + "Description" => Description, + "ExecutionRoleArn" => ExecutionRoleArn, + "State" => State, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dlm( - "POST", - "/policies", - Dict{String,Any}( - "Description" => Description, - "ExecutionRoleArn" => ExecutionRoleArn, - "State" => State, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lifecycle_policy( Description, ExecutionRoleArn, @@ -115,16 +113,12 @@ specified. For more information about deleting a policy, see Delete lifecycle po - `policy_id`: The identifier of the lifecycle policy. """ -function delete_lifecycle_policy( - policyId; aws_config::AbstractAWSConfig=current_aws_config() +delete_lifecycle_policy(policyId; aws_config::AbstractAWSConfig=current_aws_config()) = dlm( + "DELETE", + "/policies/$(policyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dlm( - "DELETE", - "/policies/$(policyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_lifecycle_policy( policyId, params::AbstractDict{String}; @@ -160,9 +154,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services-added lifecycle tags. - `"targetTags"`: The target tag for a policy. Tags are strings in the format key=value. """ -function get_lifecycle_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return dlm("GET", "/policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_lifecycle_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + dlm("GET", "/policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_lifecycle_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -181,14 +174,12 @@ Gets detailed information about the specified lifecycle policy. - `policy_id`: The identifier of the lifecycle policy. """ -function get_lifecycle_policy(policyId; aws_config::AbstractAWSConfig=current_aws_config()) - return dlm( - "GET", - "/policies/$(policyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_lifecycle_policy(policyId; aws_config::AbstractAWSConfig=current_aws_config()) = dlm( + "GET", + "/policies/$(policyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_lifecycle_policy( policyId, params::AbstractDict{String}; @@ -213,16 +204,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return dlm( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + dlm( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -248,15 +236,13 @@ Adds the specified tags to the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return dlm( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = dlm( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( Tags, resourceArn, @@ -283,17 +269,14 @@ Removes the specified tags from the specified resource. - `tag_keys`: The tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return dlm( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + dlm( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -354,16 +337,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys least 1 snapshot or AMI at any given time. - `"State"`: The desired activation state of the lifecycle policy after creation. """ -function update_lifecycle_policy( - policyId; aws_config::AbstractAWSConfig=current_aws_config() +update_lifecycle_policy(policyId; aws_config::AbstractAWSConfig=current_aws_config()) = dlm( + "PATCH", + "/policies/$(policyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dlm( - "PATCH", - "/policies/$(policyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_lifecycle_policy( policyId, params::AbstractDict{String}; diff --git a/src/services/docdb.jl b/src/services/docdb.jl index 3a1d890ad..1f5777225 100644 --- a/src/services/docdb.jl +++ b/src/services/docdb.jl @@ -20,18 +20,16 @@ Adds a source identifier to an existing event notification subscription. that you want to add a source identifier to. """ -function add_source_identifier_to_subscription( +add_source_identifier_to_subscription( SourceIdentifier, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "AddSourceIdentifierToSubscription", + Dict{String,Any}( + "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "AddSourceIdentifierToSubscription", - Dict{String,Any}( - "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_source_identifier_to_subscription( SourceIdentifier, SubscriptionName, @@ -73,16 +71,14 @@ DocumentDB. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the Amazon DocumentDB resource. """ -function add_tags_to_resource( +add_tags_to_resource( ResourceName, Tag; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "AddTagsToResource", + Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "AddTagsToResource", - Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_resource( ResourceName, Tag, @@ -122,23 +118,21 @@ instance). maintenance action applies to. """ -function apply_pending_maintenance_action( +apply_pending_maintenance_action( ApplyAction, OptInType, ResourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "ApplyPendingMaintenanceAction", + Dict{String,Any}( + "ApplyAction" => ApplyAction, + "OptInType" => OptInType, + "ResourceIdentifier" => ResourceIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "ApplyPendingMaintenanceAction", - Dict{String,Any}( - "ApplyAction" => ApplyAction, - "OptInType" => OptInType, - "ResourceIdentifier" => ResourceIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_pending_maintenance_action( ApplyAction, OptInType, @@ -190,26 +184,24 @@ Copies the specified cluster parameter group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags that are to be assigned to the parameter group. """ -function copy_dbcluster_parameter_group( +copy_dbcluster_parameter_group( SourceDBClusterParameterGroupIdentifier, TargetDBClusterParameterGroupDescription, TargetDBClusterParameterGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "CopyDBClusterParameterGroup", + Dict{String,Any}( + "SourceDBClusterParameterGroupIdentifier" => + SourceDBClusterParameterGroupIdentifier, + "TargetDBClusterParameterGroupDescription" => + TargetDBClusterParameterGroupDescription, + "TargetDBClusterParameterGroupIdentifier" => + TargetDBClusterParameterGroupIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CopyDBClusterParameterGroup", - Dict{String,Any}( - "SourceDBClusterParameterGroupIdentifier" => - SourceDBClusterParameterGroupIdentifier, - "TargetDBClusterParameterGroupDescription" => - TargetDBClusterParameterGroupDescription, - "TargetDBClusterParameterGroupIdentifier" => - TargetDBClusterParameterGroupIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbcluster_parameter_group( SourceDBClusterParameterGroupIdentifier, TargetDBClusterParameterGroupDescription, @@ -300,21 +292,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys created. This parameter isn't case sensitive. - `"Tags"`: The tags to be assigned to the cluster snapshot. """ -function copy_dbcluster_snapshot( +copy_dbcluster_snapshot( SourceDBClusterSnapshotIdentifier, TargetDBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "CopyDBClusterSnapshot", + Dict{String,Any}( + "SourceDBClusterSnapshotIdentifier" => SourceDBClusterSnapshotIdentifier, + "TargetDBClusterSnapshotIdentifier" => TargetDBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CopyDBClusterSnapshot", - Dict{String,Any}( - "SourceDBClusterSnapshotIdentifier" => SourceDBClusterSnapshotIdentifier, - "TargetDBClusterSnapshotIdentifier" => TargetDBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbcluster_snapshot( SourceDBClusterSnapshotIdentifier, TargetDBClusterSnapshotIdentifier, @@ -416,16 +406,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with this cluster. """ -function create_dbcluster( +create_dbcluster( DBClusterIdentifier, Engine; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "CreateDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "Engine" => Engine); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CreateDBCluster", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "Engine" => Engine); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster( DBClusterIdentifier, Engine, @@ -474,23 +462,21 @@ information, see Modifying Amazon DocumentDB Cluster Parameter Groups. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the cluster parameter group. """ -function create_dbcluster_parameter_group( +create_dbcluster_parameter_group( DBClusterParameterGroupName, DBParameterGroupFamily, Description; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "CreateDBClusterParameterGroup", + Dict{String,Any}( + "DBClusterParameterGroupName" => DBClusterParameterGroupName, + "DBParameterGroupFamily" => DBParameterGroupFamily, + "Description" => Description, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CreateDBClusterParameterGroup", - Dict{String,Any}( - "DBClusterParameterGroupName" => DBClusterParameterGroupName, - "DBParameterGroupFamily" => DBParameterGroupFamily, - "Description" => Description, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster_parameter_group( DBClusterParameterGroupName, DBParameterGroupFamily, @@ -535,21 +521,19 @@ Creates a snapshot of a cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the cluster snapshot. """ -function create_dbcluster_snapshot( +create_dbcluster_snapshot( DBClusterIdentifier, DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "CreateDBClusterSnapshot", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CreateDBClusterSnapshot", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster_snapshot( DBClusterIdentifier, DBClusterSnapshotIdentifier, @@ -622,25 +606,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to be assigned to the instance. You can assign up to 10 tags to an instance. """ -function create_dbinstance( +create_dbinstance( DBClusterIdentifier, DBInstanceClass, DBInstanceIdentifier, Engine; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "CreateDBInstance", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "DBInstanceClass" => DBInstanceClass, + "DBInstanceIdentifier" => DBInstanceIdentifier, + "Engine" => Engine, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CreateDBInstance", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "DBInstanceClass" => DBInstanceClass, - "DBInstanceIdentifier" => DBInstanceIdentifier, - "Engine" => Engine, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbinstance( DBClusterIdentifier, DBInstanceClass, @@ -687,23 +669,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubnetIds"`: The Amazon EC2 subnet IDs for the subnet group. - `"Tags"`: The tags to be assigned to the subnet group. """ -function create_dbsubnet_group( +create_dbsubnet_group( DBSubnetGroupDescription, DBSubnetGroupName, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "CreateDBSubnetGroup", + Dict{String,Any}( + "DBSubnetGroupDescription" => DBSubnetGroupDescription, + "DBSubnetGroupName" => DBSubnetGroupName, + "SubnetIdentifier" => SubnetIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CreateDBSubnetGroup", - Dict{String,Any}( - "DBSubnetGroupDescription" => DBSubnetGroupDescription, - "DBSubnetGroupName" => DBSubnetGroupName, - "SubnetIdentifier" => SubnetIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbsubnet_group( DBSubnetGroupDescription, DBSubnetGroupName, @@ -776,18 +756,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys db-instance, db-cluster, db-parameter-group, db-security-group, db-cluster-snapshot - `"Tags"`: The tags to be assigned to the event subscription. """ -function create_event_subscription( +create_event_subscription( SnsTopicArn, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "CreateEventSubscription", + Dict{String,Any}("SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CreateEventSubscription", - Dict{String,Any}( - "SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_subscription( SnsTopicArn, SubscriptionName, @@ -839,16 +815,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cluster of the global cluster. This parameter is optional. - `"StorageEncrypted"`: The storage encryption setting for the new global cluster. """ -function create_global_cluster( +create_global_cluster( GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "CreateGlobalCluster", + Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "CreateGlobalCluster", - Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_global_cluster( GlobalClusterIdentifier, params::AbstractDict{String}; @@ -893,16 +867,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SkipFinalSnapshot is false, you must specify a FinalDBSnapshotIdentifier parameter. Default: false """ -function delete_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb( +delete_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb( "DeleteDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -935,16 +906,14 @@ can't be associated with any clusters. cluster parameter group. Cannot be associated with any clusters. """ -function delete_dbcluster_parameter_group( +delete_dbcluster_parameter_group( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DeleteDBClusterParameterGroup", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DeleteDBClusterParameterGroup", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_parameter_group( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -978,16 +947,14 @@ terminated. The cluster snapshot must be in the available state to be deleted. Constraints: Must be the name of an existing cluster snapshot in the available state. """ -function delete_dbcluster_snapshot( +delete_dbcluster_snapshot( DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DeleteDBClusterSnapshot", + Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DeleteDBClusterSnapshot", - Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_snapshot( DBClusterSnapshotIdentifier, params::AbstractDict{String}; @@ -1021,16 +988,14 @@ Deletes a previously provisioned instance. """ -function delete_dbinstance( +delete_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DeleteDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DeleteDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -1063,16 +1028,14 @@ any DB instances. Must not be default. Example: mySubnetgroup """ -function delete_dbsubnet_group( +delete_dbsubnet_group( DBSubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DeleteDBSubnetGroup", + Dict{String,Any}("DBSubnetGroupName" => DBSubnetGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DeleteDBSubnetGroup", - Dict{String,Any}("DBSubnetGroupName" => DBSubnetGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbsubnet_group( DBSubnetGroupName, params::AbstractDict{String}; @@ -1101,16 +1064,14 @@ Deletes an Amazon DocumentDB event notification subscription. that you want to delete. """ -function delete_event_subscription( +delete_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DeleteEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DeleteEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -1140,16 +1101,14 @@ DocumentDB clusters. - `global_cluster_identifier`: The cluster identifier of the global cluster being deleted. """ -function delete_global_cluster( +delete_global_cluster( GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DeleteGlobalCluster", + Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DeleteGlobalCluster", - Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_global_cluster( GlobalClusterIdentifier, params::AbstractDict{String}; @@ -1191,11 +1150,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum: 20 Maximum: 100 """ -function describe_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb("DescribeCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1229,15 +1185,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbcluster_parameter_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb( +describe_dbcluster_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb( "DescribeDBClusterParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dbcluster_parameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1273,16 +1226,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Source"`: A value that indicates to return only parameters for a specific source. Parameter sources can be engine, service, or customer. """ -function describe_dbcluster_parameters( +describe_dbcluster_parameters( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DescribeDBClusterParameters", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DescribeDBClusterParameters", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbcluster_parameters( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -1321,16 +1272,14 @@ accounts. attributes for. """ -function describe_dbcluster_snapshot_attributes( +describe_dbcluster_snapshot_attributes( DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DescribeDBClusterSnapshotAttributes", + Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DescribeDBClusterSnapshotAttributes", - Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbcluster_snapshot_attributes( DBClusterSnapshotIdentifier, params::AbstractDict{String}; @@ -1397,11 +1346,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IncludePublic parameter doesn't apply when SnapshotType is set to shared. The IncludeShared parameter doesn't apply when SnapshotType is set to public. """ -function describe_dbcluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeDBClusterSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbcluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = docdb( + "DescribeDBClusterSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dbcluster_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1439,11 +1386,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbclusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeDBClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbclusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb("DescribeDBClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbclusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1481,11 +1425,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbengine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeDBEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbengine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = docdb( + "DescribeDBEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dbengine_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1524,11 +1466,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbinstances(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeDBInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbinstances(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb("DescribeDBInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbinstances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1559,11 +1498,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbsubnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeDBSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbsubnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb("DescribeDBSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbsubnet_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1596,16 +1532,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_engine_default_cluster_parameters( +describe_engine_default_cluster_parameters( DBParameterGroupFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DescribeEngineDefaultClusterParameters", + Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DescribeEngineDefaultClusterParameters", - Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_engine_default_cluster_parameters( DBParameterGroupFamily, params::AbstractDict{String}; @@ -1638,11 +1572,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceType"`: The type of source that is generating the events. Valid values: db-instance, db-parameter-group, db-security-group """ -function describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb("DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_event_categories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1676,11 +1607,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubscriptionName"`: The name of the Amazon DocumentDB event notification subscription that you want to describe. """ -function describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = docdb( + "DescribeEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_event_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1729,9 +1658,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: The beginning of the time interval to retrieve events for, specified in ISO 8601 format. Example: 2009-07-08T18:00Z """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1763,11 +1691,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results. """ -function describe_global_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "DescribeGlobalClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_global_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb("DescribeGlobalClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_global_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1807,16 +1732,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Vpc"`: The virtual private cloud (VPC) filter value. Specify this parameter to show only the available VPC or non-VPC offerings. """ -function describe_orderable_dbinstance_options( +describe_orderable_dbinstance_options( Engine; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "DescribeOrderableDBInstanceOptions", + Dict{String,Any}("Engine" => Engine); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "DescribeOrderableDBInstanceOptions", - Dict{String,Any}("Engine" => Engine); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_orderable_dbinstance_options( Engine, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1852,15 +1775,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Minimum 20, maximum 100. - `"ResourceIdentifier"`: The ARN of a resource to return pending maintenance actions for. """ -function describe_pending_maintenance_actions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb( +describe_pending_maintenance_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb( "DescribePendingMaintenanceActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_pending_maintenance_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1890,11 +1810,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instance. You must specify the instance identifier for an Amazon DocumentDB replica in the cluster. For example, mydbcluster-replica1. """ -function failover_dbcluster(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb( - "FailoverDBCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +failover_dbcluster(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb("FailoverDBCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function failover_dbcluster( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1903,6 +1820,76 @@ function failover_dbcluster( ) end +""" + failover_global_cluster(global_cluster_identifier, target_db_cluster_identifier) + failover_global_cluster(global_cluster_identifier, target_db_cluster_identifier, params::Dict{String,<:Any}) + +Promotes the specified secondary DB cluster to be the primary DB cluster in the global +cluster when failing over a global cluster occurs. Use this operation to respond to an +unplanned event, such as a regional disaster in the primary region. Failing over can result +in a loss of write transaction data that wasn't replicated to the chosen secondary before +the failover event occurred. However, the recovery process that promotes a DB instance on +the chosen seconday DB cluster to be the primary writer DB instance guarantees that the +data is in a transactionally consistent state. + +# Arguments +- `global_cluster_identifier`: The identifier of the Amazon DocumentDB global cluster to + apply this operation. The identifier is the unique key assigned by the user when the + cluster is created. In other words, it's the name of the global cluster. Constraints: + Must match the identifier of an existing global cluster. Minimum length of 1. Maximum + length of 255. Pattern: [A-Za-z][0-9A-Za-z-:._]* +- `target_db_cluster_identifier`: The identifier of the secondary Amazon DocumentDB cluster + that you want to promote to the primary for the global cluster. Use the Amazon Resource + Name (ARN) for the identifier so that Amazon DocumentDB can locate the cluster in its + Amazon Web Services region. Constraints: Must match the identifier of an existing + secondary cluster. Minimum length of 1. Maximum length of 255. Pattern: + [A-Za-z][0-9A-Za-z-:._]* + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AllowDataLoss"`: Specifies whether to allow data loss for this global cluster + operation. Allowing data loss triggers a global failover operation. If you don't specify + AllowDataLoss, the global cluster operation defaults to a switchover. Constraints: Can't + be specified together with the Switchover parameter. +- `"Switchover"`: Specifies whether to switch over this global database cluster. + Constraints: Can't be specified together with the AllowDataLoss parameter. +""" +failover_global_cluster( + GlobalClusterIdentifier, + TargetDbClusterIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "FailoverGlobalCluster", + Dict{String,Any}( + "GlobalClusterIdentifier" => GlobalClusterIdentifier, + "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function failover_global_cluster( + GlobalClusterIdentifier, + TargetDbClusterIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return docdb( + "FailoverGlobalCluster", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "GlobalClusterIdentifier" => GlobalClusterIdentifier, + "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_tags_for_resource(resource_name) list_tags_for_resource(resource_name, params::Dict{String,<:Any}) @@ -1917,16 +1904,13 @@ Lists all tags on an Amazon DocumentDB resource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Filters"`: This parameter is not currently supported. """ -function list_tags_for_resource( - ResourceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb( +list_tags_for_resource(ResourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb( "ListTagsForResource", Dict{String,Any}("ResourceName" => ResourceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceName, params::AbstractDict{String}; @@ -2014,16 +1998,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of virtual private cloud (VPC) security groups that the cluster will belong to. """ -function modify_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb( +modify_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb( "ModifyDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -2067,21 +2048,19 @@ character_set_database parameter. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Parameters"`: A list of parameters in the cluster parameter group to modify. """ -function modify_dbcluster_parameter_group( +modify_dbcluster_parameter_group( DBClusterParameterGroupName, Parameter; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "ModifyDBClusterParameterGroup", + Dict{String,Any}( + "DBClusterParameterGroupName" => DBClusterParameterGroupName, + "Parameter" => Parameter, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "ModifyDBClusterParameterGroup", - Dict{String,Any}( - "DBClusterParameterGroupName" => DBClusterParameterGroupName, - "Parameter" => Parameter, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbcluster_parameter_group( DBClusterParameterGroupName, Parameter, @@ -2143,21 +2122,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore a manual cluster snapshot. """ -function modify_dbcluster_snapshot_attribute( +modify_dbcluster_snapshot_attribute( AttributeName, DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "ModifyDBClusterSnapshotAttribute", + Dict{String,Any}( + "AttributeName" => AttributeName, + "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "ModifyDBClusterSnapshotAttribute", - Dict{String,Any}( - "AttributeName" => AttributeName, - "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbcluster_snapshot_attribute( AttributeName, DBClusterSnapshotIdentifier, @@ -2245,16 +2222,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is promoted to the primary instance after a failure of the existing primary instance. Default: 1 Valid values: 0-15 """ -function modify_dbinstance( +modify_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "ModifyDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "ModifyDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -2292,18 +2267,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DBSubnetGroupDescription"`: The description for the subnet group. - `"SubnetIds"`: The Amazon EC2 subnet IDs for the subnet group. """ -function modify_dbsubnet_group( +modify_dbsubnet_group( DBSubnetGroupName, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "ModifyDBSubnetGroup", + Dict{String,Any}( + "DBSubnetGroupName" => DBSubnetGroupName, "SubnetIdentifier" => SubnetIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "ModifyDBSubnetGroup", - Dict{String,Any}( - "DBSubnetGroupName" => DBSubnetGroupName, "SubnetIdentifier" => SubnetIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbsubnet_group( DBSubnetGroupName, SubnetIdentifier, @@ -2348,16 +2321,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If this value is not specified, all events are returned. Valid values: db-instance, db-parameter-group, db-security-group """ -function modify_event_subscription( +modify_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "ModifyEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "ModifyEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -2398,16 +2369,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys letters, numbers, or hyphens The first character must be a letter Can't end with a hyphen or contain two consecutive hyphens Example: my-cluster2 """ -function modify_global_cluster( +modify_global_cluster( GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "ModifyGlobalCluster", + Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "ModifyGlobalCluster", - Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_global_cluster( GlobalClusterIdentifier, params::AbstractDict{String}; @@ -2446,16 +2415,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ForceFailover"`: When true, the reboot is conducted through a Multi-AZ failover. Constraint: You can't specify true if the instance is not configured for Multi-AZ. """ -function reboot_dbinstance( +reboot_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "RebootDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "RebootDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -2491,21 +2458,19 @@ clusters. global cluster. """ -function remove_from_global_cluster( +remove_from_global_cluster( DbClusterIdentifier, GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "RemoveFromGlobalCluster", + Dict{String,Any}( + "DbClusterIdentifier" => DbClusterIdentifier, + "GlobalClusterIdentifier" => GlobalClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "RemoveFromGlobalCluster", - Dict{String,Any}( - "DbClusterIdentifier" => DbClusterIdentifier, - "GlobalClusterIdentifier" => GlobalClusterIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_from_global_cluster( DbClusterIdentifier, GlobalClusterIdentifier, @@ -2543,18 +2508,16 @@ subscription. that you want to remove a source identifier from. """ -function remove_source_identifier_from_subscription( +remove_source_identifier_from_subscription( SourceIdentifier, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "RemoveSourceIdentifierFromSubscription", + Dict{String,Any}( + "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "RemoveSourceIdentifierFromSubscription", - Dict{String,Any}( - "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_source_identifier_from_subscription( SourceIdentifier, SubscriptionName, @@ -2590,16 +2553,14 @@ Removes metadata tags from an Amazon DocumentDB resource. - `tag_keys`: The tag key (name) of the tag to be removed. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "RemoveTagsFromResource", + Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "RemoveTagsFromResource", - Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceName, TagKeys, @@ -2643,16 +2604,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cluster parameter group to their default values, and false otherwise. You can't use this parameter if there is a list of parameter names specified for the Parameters parameter. """ -function reset_dbcluster_parameter_group( +reset_dbcluster_parameter_group( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb( + "ResetDBClusterParameterGroup", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "ResetDBClusterParameterGroup", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_dbcluster_parameter_group( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -2736,23 +2695,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of virtual private cloud (VPC) security groups that the new cluster will belong to. """ -function restore_dbcluster_from_snapshot( +restore_dbcluster_from_snapshot( DBClusterIdentifier, Engine, SnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "RestoreDBClusterFromSnapshot", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "Engine" => Engine, + "SnapshotIdentifier" => SnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "RestoreDBClusterFromSnapshot", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "Engine" => Engine, - "SnapshotIdentifier" => SnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbcluster_from_snapshot( DBClusterIdentifier, Engine, @@ -2840,21 +2797,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified if the RestoreToTime parameter is provided. - `"VpcSecurityGroupIds"`: A list of VPC security groups that the new cluster belongs to. """ -function restore_dbcluster_to_point_in_time( +restore_dbcluster_to_point_in_time( DBClusterIdentifier, SourceDBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "RestoreDBClusterToPointInTime", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "SourceDBClusterIdentifier" => SourceDBClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "RestoreDBClusterToPointInTime", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "SourceDBClusterIdentifier" => SourceDBClusterIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbcluster_to_point_in_time( DBClusterIdentifier, SourceDBClusterIdentifier, @@ -2890,16 +2845,13 @@ information, see Stopping and Starting an Amazon DocumentDB Cluster. docdb-2019-05-28-15-24-52 """ -function start_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb( +start_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb( "StartDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -2932,16 +2884,13 @@ Cluster. docdb-2019-05-28-15-24-52 """ -function stop_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb( +stop_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb( "StopDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -2982,21 +2931,19 @@ Amazon DocumentDB cluster in the global database cluster. Minimum length of 1. Maximum length of 255. Pattern: [A-Za-z][0-9A-Za-z-:._]* """ -function switchover_global_cluster( +switchover_global_cluster( GlobalClusterIdentifier, TargetDbClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb( + "SwitchoverGlobalCluster", + Dict{String,Any}( + "GlobalClusterIdentifier" => GlobalClusterIdentifier, + "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb( - "SwitchoverGlobalCluster", - Dict{String,Any}( - "GlobalClusterIdentifier" => GlobalClusterIdentifier, - "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function switchover_global_cluster( GlobalClusterIdentifier, TargetDbClusterIdentifier, diff --git a/src/services/docdb_elastic.jl b/src/services/docdb_elastic.jl index 10e27a068..2242709a0 100644 --- a/src/services/docdb_elastic.jl +++ b/src/services/docdb_elastic.jl @@ -38,17 +38,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and specify a value for the KmsKeyId parameter, an error is returned. - `"tags"`: The tags to be assigned to the elastic cluster snapshot. """ -function copy_cluster_snapshot( +copy_cluster_snapshot( snapshotArn, targetSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb_elastic( + "POST", + "/cluster-snapshot/$(snapshotArn)/copy", + Dict{String,Any}("targetSnapshotName" => targetSnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb_elastic( - "POST", - "/cluster-snapshot/$(snapshotArn)/copy", - Dict{String,Any}("targetSnapshotName" => targetSnapshotName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_cluster_snapshot( snapshotArn, targetSnapshotName, @@ -118,7 +116,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with the new elastic cluster. """ -function create_cluster( +create_cluster( adminUserName, adminUserPassword, authType, @@ -126,23 +124,21 @@ function create_cluster( shardCapacity, shardCount; aws_config::AbstractAWSConfig=current_aws_config(), +) = docdb_elastic( + "POST", + "/cluster", + Dict{String,Any}( + "adminUserName" => adminUserName, + "adminUserPassword" => adminUserPassword, + "authType" => authType, + "clusterName" => clusterName, + "shardCapacity" => shardCapacity, + "shardCount" => shardCount, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb_elastic( - "POST", - "/cluster", - Dict{String,Any}( - "adminUserName" => adminUserName, - "adminUserPassword" => adminUserPassword, - "authType" => authType, - "clusterName" => clusterName, - "shardCapacity" => shardCapacity, - "shardCount" => shardCount, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster( adminUserName, adminUserPassword, @@ -191,17 +187,15 @@ Creates a snapshot of an elastic cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The tags to be assigned to the new elastic cluster snapshot. """ -function create_cluster_snapshot( +create_cluster_snapshot( clusterArn, snapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb_elastic( + "POST", + "/cluster-snapshot", + Dict{String,Any}("clusterArn" => clusterArn, "snapshotName" => snapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb_elastic( - "POST", - "/cluster-snapshot", - Dict{String,Any}("clusterArn" => clusterArn, "snapshotName" => snapshotName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster_snapshot( clusterArn, snapshotName, @@ -235,14 +229,13 @@ Delete an elastic cluster. - `cluster_arn`: The ARN identifier of the elastic cluster that is to be deleted. """ -function delete_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb_elastic( +delete_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "DELETE", "/cluster/$(clusterArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cluster( clusterArn, params::AbstractDict{String}; @@ -267,16 +260,13 @@ Delete an elastic cluster snapshot. - `snapshot_arn`: The ARN identifier of the elastic cluster snapshot that is to be deleted. """ -function delete_cluster_snapshot( - snapshotArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb_elastic( +delete_cluster_snapshot(snapshotArn; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "DELETE", "/cluster-snapshot/$(snapshotArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cluster_snapshot( snapshotArn, params::AbstractDict{String}; @@ -301,14 +291,12 @@ Returns information about a specific elastic cluster. - `cluster_arn`: The ARN identifier of the elastic cluster. """ -function get_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb_elastic( - "GET", - "/cluster/$(clusterArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = docdb_elastic( + "GET", + "/cluster/$(clusterArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_cluster( clusterArn, params::AbstractDict{String}; @@ -333,16 +321,13 @@ Returns information about a specific elastic cluster snapshot - `snapshot_arn`: The ARN identifier of the elastic cluster snapshot. """ -function get_cluster_snapshot( - snapshotArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb_elastic( +get_cluster_snapshot(snapshotArn; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "GET", "/cluster-snapshot/$(snapshotArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cluster_snapshot( snapshotArn, params::AbstractDict{String}; @@ -377,11 +362,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys has automatically created for your Amazon Web Services account. manual - Return all cluster snapshots that you have manually created for your Amazon Web Services account. """ -function list_cluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb_elastic( +list_cluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "GET", "/cluster-snapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_cluster_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -409,11 +393,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by max-results. If there is no more data in the responce, the nextToken will not be returned. """ -function list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb_elastic( - "GET", "/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = docdb_elastic( + "GET", "/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -432,16 +414,13 @@ Lists all tags on a elastic cluster resource - `resource_arn`: The ARN identifier of the elastic cluster resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb_elastic( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -487,17 +466,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with the elastic cluster. """ -function restore_cluster_from_snapshot( +restore_cluster_from_snapshot( clusterName, snapshotArn; aws_config::AbstractAWSConfig=current_aws_config() +) = docdb_elastic( + "POST", + "/cluster-snapshot/$(snapshotArn)/restore", + Dict{String,Any}("clusterName" => clusterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return docdb_elastic( - "POST", - "/cluster-snapshot/$(snapshotArn)/restore", - Dict{String,Any}("clusterName" => clusterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_cluster_from_snapshot( clusterName, snapshotArn, @@ -525,14 +502,13 @@ Restarts the stopped elastic cluster that is specified by clusterARN. - `cluster_arn`: The ARN identifier of the elastic cluster. """ -function start_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb_elastic( +start_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "POST", "/cluster/$(clusterArn)/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_cluster( clusterArn, params::AbstractDict{String}; @@ -558,14 +534,13 @@ be in the available state. - `cluster_arn`: The ARN identifier of the elastic cluster. """ -function stop_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb_elastic( +stop_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "POST", "/cluster/$(clusterArn)/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_cluster( clusterArn, params::AbstractDict{String}; @@ -591,15 +566,14 @@ Adds metadata tags to an elastic cluster resource - `tags`: The tags that are assigned to the elastic cluster resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb_elastic( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -626,17 +600,14 @@ Removes metadata tags from an elastic cluster resource - `tag_keys`: The tag keys to be removed from the elastic cluster resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return docdb_elastic( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -689,15 +660,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with the elastic cluster. """ -function update_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return docdb_elastic( +update_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + docdb_elastic( "PUT", "/cluster/$(clusterArn)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_cluster( clusterArn, params::AbstractDict{String}; diff --git a/src/services/drs.jl b/src/services/drs.jl index e1d8d0b19..d05bd08c3 100644 --- a/src/services/drs.jl +++ b/src/services/drs.jl @@ -16,19 +16,15 @@ to use this network. Can be used for reverting to previously deployed CloudForma - `source_network_id`: The Source Network ID to associate with CloudFormation template. """ -function associate_source_network_stack( +associate_source_network_stack( cfnStackName, sourceNetworkID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/AssociateSourceNetworkStack", + Dict{String,Any}("cfnStackName" => cfnStackName, "sourceNetworkID" => sourceNetworkID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/AssociateSourceNetworkStack", - Dict{String,Any}( - "cfnStackName" => cfnStackName, "sourceNetworkID" => sourceNetworkID - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_source_network_stack( cfnStackName, sourceNetworkID, @@ -67,17 +63,15 @@ staging account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A list of tags associated with the extended source server. """ -function create_extended_source_server( +create_extended_source_server( sourceServerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/CreateExtendedSourceServer", + Dict{String,Any}("sourceServerArn" => sourceServerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/CreateExtendedSourceServer", - Dict{String,Any}("sourceServerArn" => sourceServerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_extended_source_server( sourceServerArn, params::AbstractDict{String}; @@ -116,16 +110,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Request to associate tags during creation of a Launch Configuration Template. - `"targetInstanceTypeRightSizingMethod"`: Target instance type right-sizing method. """ -function create_launch_configuration_template(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return drs( +create_launch_configuration_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + drs( "POST", "/CreateLaunchConfigurationTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_launch_configuration_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -173,7 +164,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A set of tags to be associated with the Replication Configuration Template resource. """ -function create_replication_configuration_template( +create_replication_configuration_template( associateDefaultSecurityGroup, bandwidthThrottling, createPublicIP, @@ -187,28 +178,26 @@ function create_replication_configuration_template( stagingAreaTags, useDedicatedReplicationServer; aws_config::AbstractAWSConfig=current_aws_config(), +) = drs( + "POST", + "/CreateReplicationConfigurationTemplate", + Dict{String,Any}( + "associateDefaultSecurityGroup" => associateDefaultSecurityGroup, + "bandwidthThrottling" => bandwidthThrottling, + "createPublicIP" => createPublicIP, + "dataPlaneRouting" => dataPlaneRouting, + "defaultLargeStagingDiskType" => defaultLargeStagingDiskType, + "ebsEncryption" => ebsEncryption, + "pitPolicy" => pitPolicy, + "replicationServerInstanceType" => replicationServerInstanceType, + "replicationServersSecurityGroupsIDs" => replicationServersSecurityGroupsIDs, + "stagingAreaSubnetId" => stagingAreaSubnetId, + "stagingAreaTags" => stagingAreaTags, + "useDedicatedReplicationServer" => useDedicatedReplicationServer, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/CreateReplicationConfigurationTemplate", - Dict{String,Any}( - "associateDefaultSecurityGroup" => associateDefaultSecurityGroup, - "bandwidthThrottling" => bandwidthThrottling, - "createPublicIP" => createPublicIP, - "dataPlaneRouting" => dataPlaneRouting, - "defaultLargeStagingDiskType" => defaultLargeStagingDiskType, - "ebsEncryption" => ebsEncryption, - "pitPolicy" => pitPolicy, - "replicationServerInstanceType" => replicationServerInstanceType, - "replicationServersSecurityGroupsIDs" => replicationServersSecurityGroupsIDs, - "stagingAreaSubnetId" => stagingAreaSubnetId, - "stagingAreaTags" => stagingAreaTags, - "useDedicatedReplicationServer" => useDedicatedReplicationServer, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_configuration_template( associateDefaultSecurityGroup, bandwidthThrottling, @@ -269,21 +258,19 @@ Create a new Source Network resource for a provided VPC ID. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A set of tags to be associated with the Source Network resource. """ -function create_source_network( +create_source_network( originAccountID, originRegion, vpcID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/CreateSourceNetwork", + Dict{String,Any}( + "originAccountID" => originAccountID, + "originRegion" => originRegion, + "vpcID" => vpcID, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/CreateSourceNetwork", - Dict{String,Any}( - "originAccountID" => originAccountID, - "originRegion" => originRegion, - "vpcID" => vpcID, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_source_network( originAccountID, originRegion, @@ -320,15 +307,13 @@ Deletes a single Job by ID. - `job_id`: The ID of the Job to be deleted. """ -function delete_job(jobID; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", - "/DeleteJob", - Dict{String,Any}("jobID" => jobID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_job(jobID; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/DeleteJob", + Dict{String,Any}("jobID" => jobID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_job( jobID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -352,17 +337,15 @@ Deletes a resource launch action. - `resource_id`: """ -function delete_launch_action( +delete_launch_action( actionId, resourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DeleteLaunchAction", + Dict{String,Any}("actionId" => actionId, "resourceId" => resourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DeleteLaunchAction", - Dict{String,Any}("actionId" => actionId, "resourceId" => resourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_launch_action( actionId, resourceId, @@ -395,17 +378,15 @@ Deletes a single Launch Configuration Template by ID. deleted. """ -function delete_launch_configuration_template( +delete_launch_configuration_template( launchConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DeleteLaunchConfigurationTemplate", + Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DeleteLaunchConfigurationTemplate", - Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_launch_configuration_template( launchConfigurationTemplateID, params::AbstractDict{String}; @@ -440,17 +421,15 @@ delete it. - `recovery_instance_id`: The ID of the Recovery Instance to be deleted. """ -function delete_recovery_instance( +delete_recovery_instance( recoveryInstanceID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DeleteRecoveryInstance", + Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DeleteRecoveryInstance", - Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_recovery_instance( recoveryInstanceID, params::AbstractDict{String}; @@ -480,19 +459,17 @@ Deletes a single Replication Configuration Template by ID to be deleted. """ -function delete_replication_configuration_template( +delete_replication_configuration_template( replicationConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DeleteReplicationConfigurationTemplate", + Dict{String,Any}( + "replicationConfigurationTemplateID" => replicationConfigurationTemplateID + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DeleteReplicationConfigurationTemplate", - Dict{String,Any}( - "replicationConfigurationTemplateID" => replicationConfigurationTemplateID - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_configuration_template( replicationConfigurationTemplateID, params::AbstractDict{String}; @@ -526,17 +503,14 @@ Delete Source Network resource. - `source_network_id`: ID of the Source Network to delete. """ -function delete_source_network( - sourceNetworkID; aws_config::AbstractAWSConfig=current_aws_config() -) - return drs( +delete_source_network(sourceNetworkID; aws_config::AbstractAWSConfig=current_aws_config()) = + drs( "POST", "/DeleteSourceNetwork", Dict{String,Any}("sourceNetworkID" => sourceNetworkID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_source_network( sourceNetworkID, params::AbstractDict{String}; @@ -565,17 +539,14 @@ Deletes a single Source Server by ID. The Source Server must be disconnected fir - `source_server_id`: The ID of the Source Server to be deleted. """ -function delete_source_server( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() -) - return drs( +delete_source_server(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = + drs( "POST", "/DeleteSourceServer", Dict{String,Any}("sourceServerID" => sourceServerID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_source_server( sourceServerID, params::AbstractDict{String}; @@ -606,15 +577,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum number of Job log items to retrieve. - `"nextToken"`: The token of the next Job log items to retrieve. """ -function describe_job_log_items(jobID; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", - "/DescribeJobLogItems", - Dict{String,Any}("jobID" => jobID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_job_log_items(jobID; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/DescribeJobLogItems", + Dict{String,Any}("jobID" => jobID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_job_log_items( jobID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -643,11 +612,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum number of Jobs to retrieve. - `"nextToken"`: The token of the next Job to retrieve. """ -function describe_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", "/DescribeJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + drs("POST", "/DescribeJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -673,16 +639,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum results to be returned in DescribeLaunchConfigurationTemplates. - `"nextToken"`: The token of the next Launch Configuration Template to retrieve. """ -function describe_launch_configuration_templates(; +describe_launch_configuration_templates(; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DescribeLaunchConfigurationTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DescribeLaunchConfigurationTemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_launch_configuration_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -707,14 +671,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum number of Recovery Instances to retrieve. - `"nextToken"`: The token of the next Recovery Instance to retrieve. """ -function describe_recovery_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", - "/DescribeRecoveryInstances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_recovery_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/DescribeRecoveryInstances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_recovery_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -743,17 +705,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token of the next Recovery Snapshot to retrieve. - `"order"`: The sorted ordering by which to return Recovery Snapshots. """ -function describe_recovery_snapshots( +describe_recovery_snapshots( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DescribeRecoverySnapshots", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DescribeRecoverySnapshots", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_recovery_snapshots( sourceServerID, params::AbstractDict{String}; @@ -783,16 +743,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"replicationConfigurationTemplateIDs"`: The IDs of the Replication Configuration Templates to retrieve. An empty list means all Replication Configuration Templates. """ -function describe_replication_configuration_templates(; +describe_replication_configuration_templates(; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DescribeReplicationConfigurationTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DescribeReplicationConfigurationTemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_replication_configuration_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -817,14 +775,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum number of Source Networks to retrieve. - `"nextToken"`: The token of the next Source Networks to retrieve. """ -function describe_source_networks(; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", - "/DescribeSourceNetworks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_source_networks(; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/DescribeSourceNetworks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_source_networks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -849,14 +805,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum number of Source Servers to retrieve. - `"nextToken"`: The token of the next Source Server to retrieve. """ -function describe_source_servers(; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", - "/DescribeSourceServers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_source_servers(; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/DescribeSourceServers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_source_servers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -888,17 +842,15 @@ nullified. - `recovery_instance_id`: The ID of the Recovery Instance to disconnect. """ -function disconnect_recovery_instance( +disconnect_recovery_instance( recoveryInstanceID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DisconnectRecoveryInstance", + Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DisconnectRecoveryInstance", - Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disconnect_recovery_instance( recoveryInstanceID, params::AbstractDict{String}; @@ -936,17 +888,15 @@ dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be null - `source_server_id`: The ID of the Source Server to disconnect. """ -function disconnect_source_server( +disconnect_source_server( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/DisconnectSourceServer", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/DisconnectSourceServer", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disconnect_source_server( sourceServerID, params::AbstractDict{String}; @@ -974,17 +924,15 @@ Export the Source Network CloudFormation template to an S3 bucket. bucket. """ -function export_source_network_cfn_template( +export_source_network_cfn_template( sourceNetworkID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/ExportSourceNetworkCfnTemplate", + Dict{String,Any}("sourceNetworkID" => sourceNetworkID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/ExportSourceNetworkCfnTemplate", - Dict{String,Any}("sourceNetworkID" => sourceNetworkID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_source_network_cfn_template( sourceNetworkID, params::AbstractDict{String}; @@ -1014,17 +962,15 @@ Lists all Failback ReplicationConfigurations, filtered by Recovery Instance ID. configuration should be returned. """ -function get_failback_replication_configuration( +get_failback_replication_configuration( recoveryInstanceID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/GetFailbackReplicationConfiguration", + Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/GetFailbackReplicationConfiguration", - Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_failback_replication_configuration( recoveryInstanceID, params::AbstractDict{String}; @@ -1054,17 +1000,15 @@ Gets a LaunchConfiguration, filtered by Source Server IDs. Configuration for. """ -function get_launch_configuration( +get_launch_configuration( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/GetLaunchConfiguration", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/GetLaunchConfiguration", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_launch_configuration( sourceServerID, params::AbstractDict{String}; @@ -1091,17 +1035,15 @@ Gets a ReplicationConfiguration, filtered by Source Server ID. - `source_server_id`: The ID of the Source Serve for this Replication Configuration.r """ -function get_replication_configuration( +get_replication_configuration( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/GetReplicationConfiguration", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/GetReplicationConfiguration", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_replication_configuration( sourceServerID, params::AbstractDict{String}; @@ -1125,11 +1067,9 @@ end Initialize Elastic Disaster Recovery. """ -function initialize_service(; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", "/InitializeService"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +initialize_service(; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", "/InitializeService"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function initialize_service( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1159,17 +1099,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of extensible source servers to retrieve. - `"nextToken"`: The token of the next extensible source server to retrieve. """ -function list_extensible_source_servers( +list_extensible_source_servers( stagingAccountID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/ListExtensibleSourceServers", + Dict{String,Any}("stagingAccountID" => stagingAccountID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/ListExtensibleSourceServers", - Dict{String,Any}("stagingAccountID" => stagingAccountID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_extensible_source_servers( stagingAccountID, params::AbstractDict{String}; @@ -1203,15 +1141,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum amount of items to return when listing resource launch actions. - `"nextToken"`: Next token to use when listing resource launch actions. """ -function list_launch_actions(resourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", - "/ListLaunchActions", - Dict{String,Any}("resourceId" => resourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_launch_actions(resourceId; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/ListLaunchActions", + Dict{String,Any}("resourceId" => resourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_launch_actions( resourceId, params::AbstractDict{String}; @@ -1239,14 +1175,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of staging Accounts to retrieve. - `"nextToken"`: The token of the next staging Account to retrieve. """ -function list_staging_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "GET", - "/ListStagingAccounts"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_staging_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "GET", + "/ListStagingAccounts"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_staging_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1269,16 +1203,13 @@ List all tags for your Elastic Disaster Recovery resources. - `resource_arn`: The ARN of the resource whose tags should be returned. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return drs( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + drs( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1315,7 +1246,7 @@ Puts a resource launch action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"parameters"`: """ -function put_launch_action( +put_launch_action( actionCode, actionId, actionVersion, @@ -1327,26 +1258,24 @@ function put_launch_action( order, resourceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = drs( + "POST", + "/PutLaunchAction", + Dict{String,Any}( + "actionCode" => actionCode, + "actionId" => actionId, + "actionVersion" => actionVersion, + "active" => active, + "category" => category, + "description" => description, + "name" => name, + "optional" => optional, + "order" => order, + "resourceId" => resourceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/PutLaunchAction", - Dict{String,Any}( - "actionCode" => actionCode, - "actionId" => actionId, - "actionVersion" => actionVersion, - "active" => active, - "category" => category, - "description" => description, - "name" => name, - "optional" => optional, - "order" => order, - "resourceId" => resourceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_launch_action( actionCode, actionId, @@ -1400,17 +1329,14 @@ Source Server is stalled or is in a DISCONNECTED or STOPPED state. - `source_server_id`: The ID of the Source Server whose data replication should be retried. """ -function retry_data_replication( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() -) - return drs( +retry_data_replication(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = + drs( "POST", "/RetryDataReplication", Dict{String,Any}("sourceServerID" => sourceServerID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function retry_data_replication( sourceServerID, params::AbstractDict{String}; @@ -1441,17 +1367,15 @@ region to re-protect them. replication for. """ -function reverse_replication( +reverse_replication( recoveryInstanceID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/ReverseReplication", + Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/ReverseReplication", - Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reverse_replication( recoveryInstanceID, params::AbstractDict{String}; @@ -1486,17 +1410,15 @@ machine, thus completing the failback process. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The tags to be associated with the failback launch Job. """ -function start_failback_launch( +start_failback_launch( recoveryInstanceIDs; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/StartFailbackLaunch", + Dict{String,Any}("recoveryInstanceIDs" => recoveryInstanceIDs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/StartFailbackLaunch", - Dict{String,Any}("recoveryInstanceIDs" => recoveryInstanceIDs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_failback_launch( recoveryInstanceIDs, params::AbstractDict{String}; @@ -1532,15 +1454,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"isDrill"`: Whether this Source Server Recovery operation is a drill or not. - `"tags"`: The tags to be associated with the Recovery Job. """ -function start_recovery(sourceServers; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", - "/StartRecovery", - Dict{String,Any}("sourceServers" => sourceServers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_recovery(sourceServers; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/StartRecovery", + Dict{String,Any}("sourceServers" => sourceServers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_recovery( sourceServers, params::AbstractDict{String}; @@ -1568,17 +1488,13 @@ protected again and restart billing for it. - `source_server_id`: The ID of the Source Server to start replication for. """ -function start_replication( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +start_replication(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/StartReplication", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/StartReplication", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_replication( sourceServerID, params::AbstractDict{String}; @@ -1611,17 +1527,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys new stack. - `"tags"`: The tags to be associated with the Source Network recovery Job. """ -function start_source_network_recovery( +start_source_network_recovery( sourceNetworks; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/StartSourceNetworkRecovery", + Dict{String,Any}("sourceNetworks" => sourceNetworks); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/StartSourceNetworkRecovery", - Dict{String,Any}("sourceNetworks" => sourceNetworks); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_source_network_recovery( sourceNetworks, params::AbstractDict{String}; @@ -1649,17 +1563,15 @@ protected. - `source_network_id`: ID of the Source Network to replicate. """ -function start_source_network_replication( +start_source_network_replication( sourceNetworkID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/StartSourceNetworkReplication", + Dict{String,Any}("sourceNetworkID" => sourceNetworkID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/StartSourceNetworkReplication", - Dict{String,Any}("sourceNetworkID" => sourceNetworkID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_source_network_replication( sourceNetworkID, params::AbstractDict{String}; @@ -1689,17 +1601,13 @@ State of the Recovery Instance back to FAILBACK_NOT_STARTED. - `recovery_instance_id`: The ID of the Recovery Instance we want to stop failback for. """ -function stop_failback( - recoveryInstanceID; aws_config::AbstractAWSConfig=current_aws_config() +stop_failback(recoveryInstanceID; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/StopFailback", + Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/StopFailback", - Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_failback( recoveryInstanceID, params::AbstractDict{String}; @@ -1729,17 +1637,13 @@ unprotected, delete its existing snapshots and stop billing for it. - `source_server_id`: The ID of the Source Server to stop replication for. """ -function stop_replication( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +stop_replication(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/StopReplication", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/StopReplication", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_replication( sourceServerID, params::AbstractDict{String}; @@ -1767,17 +1671,15 @@ unprotected. - `source_network_id`: ID of the Source Network to stop replication. """ -function stop_source_network_replication( +stop_source_network_replication( sourceNetworkID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/StopSourceNetworkReplication", + Dict{String,Any}("sourceNetworkID" => sourceNetworkID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/StopSourceNetworkReplication", - Dict{String,Any}("sourceNetworkID" => sourceNetworkID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_source_network_replication( sourceNetworkID, params::AbstractDict{String}; @@ -1810,15 +1712,13 @@ optional value. - `tags`: Array of tags to be added or updated. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return drs( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = drs( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -1846,17 +1746,15 @@ service. - `recovery_instance_ids`: The IDs of the Recovery Instances that should be terminated. """ -function terminate_recovery_instances( +terminate_recovery_instances( recoveryInstanceIDs; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/TerminateRecoveryInstances", + Dict{String,Any}("recoveryInstanceIDs" => recoveryInstanceIDs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/TerminateRecoveryInstances", - Dict{String,Any}("recoveryInstanceIDs" => recoveryInstanceIDs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function terminate_recovery_instances( recoveryInstanceIDs, params::AbstractDict{String}; @@ -1889,17 +1787,14 @@ resources. - `tag_keys`: Array of tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return drs( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + drs( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1932,17 +1827,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"usePrivateIP"`: Whether to use Private IP for the failback replication of the Recovery Instance. """ -function update_failback_replication_configuration( +update_failback_replication_configuration( recoveryInstanceID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/UpdateFailbackReplicationConfiguration", + Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/UpdateFailbackReplicationConfiguration", - Dict{String,Any}("recoveryInstanceID" => recoveryInstanceID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_failback_replication_configuration( recoveryInstanceID, params::AbstractDict{String}; @@ -1988,17 +1881,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys automatically choose the instance type that best matches the OS, CPU, and RAM of your Source Server. """ -function update_launch_configuration( +update_launch_configuration( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/UpdateLaunchConfiguration", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/UpdateLaunchConfiguration", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_launch_configuration( sourceServerID, params::AbstractDict{String}; @@ -2037,17 +1928,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"postLaunchEnabled"`: Whether we want to activate post-launch actions. - `"targetInstanceTypeRightSizingMethod"`: Target instance type right-sizing method. """ -function update_launch_configuration_template( +update_launch_configuration_template( launchConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/UpdateLaunchConfigurationTemplate", + Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/UpdateLaunchConfigurationTemplate", - Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_launch_configuration_template( launchConfigurationTemplateID, params::AbstractDict{String}; @@ -2107,17 +1996,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"useDedicatedReplicationServer"`: Whether to use a dedicated Replication Server in the replication staging area. """ -function update_replication_configuration( +update_replication_configuration( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/UpdateReplicationConfiguration", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/UpdateReplicationConfiguration", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_replication_configuration( sourceServerID, params::AbstractDict{String}; @@ -2170,19 +2057,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"useDedicatedReplicationServer"`: Whether to use a dedicated Replication Server in the replication staging area. """ -function update_replication_configuration_template( +update_replication_configuration_template( replicationConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = drs( + "POST", + "/UpdateReplicationConfigurationTemplate", + Dict{String,Any}( + "replicationConfigurationTemplateID" => replicationConfigurationTemplateID + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return drs( - "POST", - "/UpdateReplicationConfigurationTemplate", - Dict{String,Any}( - "replicationConfigurationTemplateID" => replicationConfigurationTemplateID - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_replication_configuration_template( replicationConfigurationTemplateID, params::AbstractDict{String}; diff --git a/src/services/dynamodb.jl b/src/services/dynamodb.jl index 68ab632ae..044343740 100644 --- a/src/services/dynamodb.jl +++ b/src/services/dynamodb.jl @@ -11,11 +11,11 @@ using AWS.UUIDs This operation allows you to perform batch reads or writes on data stored in DynamoDB, using PartiQL. Each read statement in a BatchExecuteStatement must specify an equality condition on all key attributes. This enforces that each SELECT statement in a batch -returns at most a single item. The entire batch must consist of either read statements or -write statements, you cannot mix both in one batch. A HTTP 200 response does not mean -that all statements in the BatchExecuteStatement succeeded. Error details for individual -statements can be found under the Error field of the BatchStatementResponse for each -statement. +returns at most a single item. For more information, see Running batch operations with +PartiQL for DynamoDB . The entire batch must consist of either read statements or write +statements, you cannot mix both in one batch. A HTTP 200 response does not mean that all +statements in the BatchExecuteStatement succeeded. Error details for individual statements +can be found under the Error field of the BatchStatementResponse for each statement. # Arguments - `statements`: The list of PartiQL statements representing the batch to run. @@ -24,16 +24,13 @@ statement. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ReturnConsumedCapacity"`: """ -function batch_execute_statement( - Statements; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +batch_execute_statement(Statements; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "BatchExecuteStatement", Dict{String,Any}("Statements" => Statements); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_execute_statement( Statements, params::AbstractDict{String}; @@ -123,14 +120,12 @@ Working with Tables in the Amazon DynamoDB Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ReturnConsumedCapacity"`: """ -function batch_get_item(RequestItems; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "BatchGetItem", - Dict{String,Any}("RequestItems" => RequestItems); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_item(RequestItems; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "BatchGetItem", + Dict{String,Any}("RequestItems" => RequestItems); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_item( RequestItems, params::AbstractDict{String}; @@ -165,9 +160,12 @@ internal processing failure occurs, the failed operations are returned in the UnprocessedItems response parameter. You can investigate and optionally resend the requests. Typically, you would call BatchWriteItem in a loop. Each iteration would check for unprocessed items and submit a new BatchWriteItem request with those unprocessed items -until all items have been processed. If none of the items can be processed due to -insufficient provisioned throughput on all of the tables in the request, then -BatchWriteItem returns a ProvisionedThroughputExceededException. If DynamoDB returns any +until all items have been processed. For tables and indexes with provisioned capacity, if +none of the items can be processed due to insufficient provisioned throughput on all of the +tables in the request, then BatchWriteItem returns a +ProvisionedThroughputExceededException. For all tables and indexes, if none of the items +can be processed due to other throttling scenarios (such as exceeding partition level +limits), then BatchWriteItem returns a ThrottlingException. If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to @@ -225,14 +223,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned. """ -function batch_write_item(RequestItems; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( +batch_write_item(RequestItems; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "BatchWriteItem", Dict{String,Any}("RequestItems" => RequestItems); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_write_item( RequestItems, params::AbstractDict{String}; @@ -273,16 +270,13 @@ write capacity of the table in this parameter. """ -function create_backup( - BackupName, TableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +create_backup(BackupName, TableName; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "CreateBackup", Dict{String,Any}("BackupName" => BackupName, "TableName" => TableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_backup( BackupName, TableName, @@ -338,18 +332,16 @@ secondary indexes across your global table. - `replication_group`: The Regions where the global table needs to be created. """ -function create_global_table( +create_global_table( GlobalTableName, ReplicationGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "CreateGlobalTable", + Dict{String,Any}( + "GlobalTableName" => GlobalTableName, "ReplicationGroup" => ReplicationGroup + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "CreateGlobalTable", - Dict{String,Any}( - "GlobalTableName" => GlobalTableName, "ReplicationGroup" => ReplicationGroup - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_global_table( GlobalTableName, ReplicationGroup, @@ -487,23 +479,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of key-value pairs to label the table. For more information, see Tagging for DynamoDB. """ -function create_table( +create_table( AttributeDefinitions, KeySchema, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = dynamodb( + "CreateTable", + Dict{String,Any}( + "AttributeDefinitions" => AttributeDefinitions, + "KeySchema" => KeySchema, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "CreateTable", - Dict{String,Any}( - "AttributeDefinitions" => AttributeDefinitions, - "KeySchema" => KeySchema, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_table( AttributeDefinitions, KeySchema, @@ -540,14 +530,12 @@ times per second. - `backup_arn`: The ARN associated with the backup. """ -function delete_backup(BackupArn; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DeleteBackup", - Dict{String,Any}("BackupArn" => BackupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_backup(BackupArn; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "DeleteBackup", + Dict{String,Any}("BackupArn" => BackupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_backup( BackupArn, params::AbstractDict{String}; @@ -640,14 +628,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed. """ -function delete_item(Key, TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DeleteItem", - Dict{String,Any}("Key" => Key, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_item(Key, TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "DeleteItem", + Dict{String,Any}("Key" => Key, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_item( Key, TableName, @@ -696,16 +682,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys on the resource doesn't match or if there's no policy attached to the resource, the request will fail and return a PolicyNotFoundException. """ -function delete_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +delete_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "DeleteResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -733,25 +716,23 @@ does not exist, DynamoDB returns a ResourceNotFoundException. If table is alread DELETING state, no error is returned. For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version). DynamoDB might continue to accept data read and write operations, such as GetItem and PutItem, on a table in the -DELETING state until the table deletion is complete. When you delete a table, any indexes -on that table are also deleted. If you have DynamoDB Streams enabled on the table, then the -corresponding stream on that table goes into the DISABLED state, and the stream is -automatically deleted after 24 hours. Use the DescribeTable action to check the status of -the table. +DELETING state until the table deletion is complete. For the full list of table states, see +TableStatus. When you delete a table, any indexes on that table are also deleted. If you +have DynamoDB Streams enabled on the table, then the corresponding stream on that table +goes into the DISABLED state, and the stream is automatically deleted after 24 hours. Use +the DescribeTable action to check the status of the table. # Arguments - `table_name`: The name of the table to delete. You can also provide the Amazon Resource Name (ARN) of the table in this parameter. """ -function delete_table(TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DeleteTable", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_table(TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "DeleteTable", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_table( TableName, params::AbstractDict{String}; @@ -778,14 +759,12 @@ Describes an existing backup of a table. You can call DescribeBackup at a maximu - `backup_arn`: The Amazon Resource Name (ARN) associated with the backup. """ -function describe_backup(BackupArn; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DescribeBackup", - Dict{String,Any}("BackupArn" => BackupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_backup(BackupArn; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "DescribeBackup", + Dict{String,Any}("BackupArn" => BackupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_backup( BackupArn, params::AbstractDict{String}; @@ -820,16 +799,13 @@ time during the last 35 days. You can call DescribeContinuousBackups at a maxim (ARN) of the table in this parameter. """ -function describe_continuous_backups( - TableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +describe_continuous_backups(TableName; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "DescribeContinuousBackups", Dict{String,Any}("TableName" => TableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_continuous_backups( TableName, params::AbstractDict{String}; @@ -859,16 +835,14 @@ Returns information about contributor insights for a given table or global secon Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"IndexName"`: The name of the global secondary index to describe, if applicable. """ -function describe_contributor_insights( +describe_contributor_insights( TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "DescribeContributorInsights", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "DescribeContributorInsights", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_contributor_insights( TableName, params::AbstractDict{String}; @@ -892,11 +866,8 @@ Returns the regional endpoint information. For more information on policy permis please see Internetwork traffic privacy. """ -function describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DescribeEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb("DescribeEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -915,14 +886,12 @@ Describes an existing table export. - `export_arn`: The Amazon Resource Name (ARN) associated with the export. """ -function describe_export(ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DescribeExport", - Dict{String,Any}("ExportArn" => ExportArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_export(ExportArn; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "DescribeExport", + Dict{String,Any}("ExportArn" => ExportArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_export( ExportArn, params::AbstractDict{String}; @@ -954,16 +923,13 @@ table version you are using. To update existing global tables from version 2017. - `global_table_name`: The name of the global table. """ -function describe_global_table( - GlobalTableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +describe_global_table(GlobalTableName; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "DescribeGlobalTable", Dict{String,Any}("GlobalTableName" => GlobalTableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_global_table( GlobalTableName, params::AbstractDict{String}; @@ -997,16 +963,14 @@ table version you are using. To update existing global tables from version 2017. - `global_table_name`: The name of the global table to describe. """ -function describe_global_table_settings( +describe_global_table_settings( GlobalTableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "DescribeGlobalTableSettings", + Dict{String,Any}("GlobalTableName" => GlobalTableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "DescribeGlobalTableSettings", - Dict{String,Any}("GlobalTableName" => GlobalTableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_global_table_settings( GlobalTableName, params::AbstractDict{String}; @@ -1035,14 +999,12 @@ end to. """ -function describe_import(ImportArn; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DescribeImport", - Dict{String,Any}("ImportArn" => ImportArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_import(ImportArn; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "DescribeImport", + Dict{String,Any}("ImportArn" => ImportArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_import( ImportArn, params::AbstractDict{String}; @@ -1069,16 +1031,14 @@ Returns information about the status of Kinesis streaming. Resource Name (ARN) of the table in this parameter. """ -function describe_kinesis_streaming_destination( +describe_kinesis_streaming_destination( TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "DescribeKinesisStreamingDestination", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "DescribeKinesisStreamingDestination", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_kinesis_streaming_destination( TableName, params::AbstractDict{String}; @@ -1130,11 +1090,8 @@ periodically. You can expect throttling errors if you call it more than once in The DescribeLimits Request element has no content. """ -function describe_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DescribeLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb("DescribeLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1160,14 +1117,12 @@ Wait for a few seconds, and then try the DescribeTable request again. Name (ARN) of the table in this parameter. """ -function describe_table(TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "DescribeTable", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_table(TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "DescribeTable", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_table( TableName, params::AbstractDict{String}; @@ -1196,16 +1151,14 @@ version). of the table in this parameter. """ -function describe_table_replica_auto_scaling( +describe_table_replica_auto_scaling( TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "DescribeTableReplicaAutoScaling", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "DescribeTableReplicaAutoScaling", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_table_replica_auto_scaling( TableName, params::AbstractDict{String}; @@ -1232,16 +1185,13 @@ Gives a description of the Time to Live (TTL) status on the specified table. Resource Name (ARN) of the table in this parameter. """ -function describe_time_to_live( - TableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +describe_time_to_live(TableName; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "DescribeTimeToLive", Dict{String,Any}("TableName" => TableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_time_to_live( TableName, params::AbstractDict{String}; @@ -1274,16 +1224,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnableKinesisStreamingConfiguration"`: The source for the Kinesis streaming information that is being enabled. """ -function disable_kinesis_streaming_destination( +disable_kinesis_streaming_destination( StreamArn, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "DisableKinesisStreamingDestination", + Dict{String,Any}("StreamArn" => StreamArn, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "DisableKinesisStreamingDestination", - Dict{String,Any}("StreamArn" => StreamArn, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_kinesis_streaming_destination( StreamArn, TableName, @@ -1323,16 +1271,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnableKinesisStreamingConfiguration"`: The source for the Kinesis streaming information that is being enabled. """ -function enable_kinesis_streaming_destination( +enable_kinesis_streaming_destination( StreamArn, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "EnableKinesisStreamingDestination", + Dict{String,Any}("StreamArn" => StreamArn, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "EnableKinesisStreamingDestination", - Dict{String,Any}("StreamArn" => StreamArn, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_kinesis_streaming_destination( StreamArn, TableName, @@ -1391,14 +1337,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed. """ -function execute_statement(Statement; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "ExecuteStatement", - Dict{String,Any}("Statement" => Statement); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +execute_statement(Statement; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "ExecuteStatement", + Dict{String,Any}("Statement" => Statement); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function execute_statement( Statement, params::AbstractDict{String}; @@ -1435,19 +1379,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys on-demand throughput consumption that is returned in the response. For more information, see TransactGetItems and TransactWriteItems. """ -function execute_transaction( +execute_transaction( TransactStatements; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "ExecuteTransaction", + Dict{String,Any}( + "TransactStatements" => TransactStatements, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "ExecuteTransaction", - Dict{String,Any}( - "TransactStatements" => TransactStatements, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_transaction( TransactStatements, params::AbstractDict{String}; @@ -1512,18 +1454,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"S3SseKmsKeyId"`: The ID of the KMS managed key used to encrypt the S3 bucket where export data will be stored (if applicable). """ -function export_table_to_point_in_time( +export_table_to_point_in_time( S3Bucket, TableArn; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "ExportTableToPointInTime", + Dict{String,Any}( + "S3Bucket" => S3Bucket, "TableArn" => TableArn, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "ExportTableToPointInTime", - Dict{String,Any}( - "S3Bucket" => S3Bucket, "TableArn" => TableArn, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_table_to_point_in_time( S3Bucket, TableArn, @@ -1598,14 +1538,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Attributes in the Amazon DynamoDB Developer Guide. - `"ReturnConsumedCapacity"`: """ -function get_item(Key, TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "GetItem", - Dict{String,Any}("Key" => Key, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_item(Key, TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "GetItem", + Dict{String,Any}("Key" => Key, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_item( Key, TableName, @@ -1651,16 +1589,13 @@ CreateTable request will always be applied to all requests for that table. policy is attached. The resources you can specify include tables and streams. """ -function get_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +get_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "GetResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -1702,24 +1637,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys imported table. - `"InputFormatOptions"`: Additional properties that specify how the input is formatted, """ -function import_table( +import_table( InputFormat, S3BucketSource, TableCreationParameters; aws_config::AbstractAWSConfig=current_aws_config(), +) = dynamodb( + "ImportTable", + Dict{String,Any}( + "InputFormat" => InputFormat, + "S3BucketSource" => S3BucketSource, + "TableCreationParameters" => TableCreationParameters, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "ImportTable", - Dict{String,Any}( - "InputFormat" => InputFormat, - "S3BucketSource" => S3BucketSource, - "TableCreationParameters" => TableCreationParameters, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_table( InputFormat, S3BucketSource, @@ -1777,9 +1710,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimeRangeUpperBound"`: Only backups created before this time are listed. TimeRangeUpperBound is exclusive. """ -function list_backups(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb("ListBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_backups(; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb("ListBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_backups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1802,11 +1734,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TableName"`: The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter. """ -function list_contributor_insights(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "ListContributorInsights"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_contributor_insights(; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "ListContributorInsights"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_contributor_insights( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1832,9 +1762,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of results. - `"TableArn"`: The Amazon Resource Name (ARN) associated with the exported table. """ -function list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb("ListExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb("ListExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1866,11 +1795,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ExclusiveStartGlobalTableName parameter. - `"RegionName"`: Lists the global tables in a specific Region. """ -function list_global_tables(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "ListGlobalTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_global_tables(; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb("ListGlobalTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_global_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1894,9 +1820,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TableArn"`: The Amazon Resource Name (ARN) associated with the table that was imported to. """ -function list_imports(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb("ListImports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_imports(; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb("ListImports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_imports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1920,9 +1845,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: A maximum number of table names to return. If this parameter is not specified, the limit is 100. """ -function list_tables(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb("ListTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_tables(; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb("ListTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1949,16 +1873,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call to ListTagOfResource. When provided in this manner, this API fetches the next page of results. """ -function list_tags_of_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +list_tags_of_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "ListTagsOfResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_of_resource( ResourceArn, params::AbstractDict{String}; @@ -2066,14 +1987,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed. """ -function put_item(Item, TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "PutItem", - Dict{String,Any}("Item" => Item, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_item(Item, TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "PutItem", + Dict{String,Any}("Item" => Item, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_item( Item, TableName, @@ -2136,16 +2055,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys attach a policy when no policy exists for the resource, specify NO_POLICY for the revision ID. """ -function put_resource_policy( +put_resource_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "PutResourcePolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "PutResourcePolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( Policy, ResourceArn, @@ -2345,14 +2262,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter, then the value for Select can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an error. """ -function query(TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "Query", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +query(TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "Query", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function query( TableName, params::AbstractDict{String}; @@ -2396,16 +2311,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SSESpecificationOverride"`: The new server-side encryption settings for the restored table. """ -function restore_table_from_backup( +restore_table_from_backup( BackupArn, TargetTableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "RestoreTableFromBackup", + Dict{String,Any}("BackupArn" => BackupArn, "TargetTableName" => TargetTableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "RestoreTableFromBackup", - Dict{String,Any}("BackupArn" => BackupArn, "TargetTableName" => TargetTableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_table_from_backup( BackupArn, TargetTableName, @@ -2468,16 +2381,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UseLatestRestorableTime"`: Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time. """ -function restore_table_to_point_in_time( +restore_table_to_point_in_time( TargetTableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "RestoreTableToPointInTime", + Dict{String,Any}("TargetTableName" => TargetTableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "RestoreTableToPointInTime", - Dict{String,Any}("TargetTableName" => TargetTableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_table_to_point_in_time( TargetTableName, params::AbstractDict{String}; @@ -2647,14 +2558,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation will be sequential rather than parallel. If you specify TotalSegments, you must also specify Segment. """ -function scan(TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "Scan", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +scan(TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "Scan", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function scan( TableName, params::AbstractDict{String}; @@ -2686,14 +2595,13 @@ DynamoDB Developer Guide. - `tags`: The tags to be assigned to the Amazon DynamoDB resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2740,16 +2648,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned, and a value of NONE prevents that information from being returned. No other value is valid. """ -function transact_get_items( - TransactItems; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +transact_get_items(TransactItems; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "TransactGetItems", Dict{String,Any}("TransactItems" => TransactItems); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function transact_get_items( TransactItems, params::AbstractDict{String}; @@ -2828,10 +2733,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys modified during the operation and are returned in the response. If set to NONE (the default), no statistics are returned. """ -function transact_write_items( - TransactItems; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +transact_write_items(TransactItems; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "TransactWriteItems", Dict{String,Any}( "TransactItems" => TransactItems, "ClientRequestToken" => string(uuid4()) @@ -2839,7 +2742,6 @@ function transact_write_items( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function transact_write_items( TransactItems, params::AbstractDict{String}; @@ -2877,16 +2779,13 @@ DynamoDB resources, see Tagging for DynamoDB in the Amazon DynamoDB Developer Gu this list will be removed from the DynamoDB resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return dynamodb( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2927,21 +2826,19 @@ your table to any point in time during the last 35 days. of the table in this parameter. """ -function update_continuous_backups( +update_continuous_backups( PointInTimeRecoverySpecification, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = dynamodb( + "UpdateContinuousBackups", + Dict{String,Any}( + "PointInTimeRecoverySpecification" => PointInTimeRecoverySpecification, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "UpdateContinuousBackups", - Dict{String,Any}( - "PointInTimeRecoverySpecification" => PointInTimeRecoverySpecification, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_continuous_backups( PointInTimeRecoverySpecification, TableName, @@ -2986,19 +2883,17 @@ for this table. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"IndexName"`: The global secondary index name, if applicable. """ -function update_contributor_insights( +update_contributor_insights( ContributorInsightsAction, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "UpdateContributorInsights", + Dict{String,Any}( + "ContributorInsightsAction" => ContributorInsightsAction, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "UpdateContributorInsights", - Dict{String,Any}( - "ContributorInsightsAction" => ContributorInsightsAction, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contributor_insights( ContributorInsightsAction, TableName, @@ -3051,18 +2946,16 @@ global secondary indexes must have the same provisioned and maximum write capaci table. """ -function update_global_table( +update_global_table( GlobalTableName, ReplicaUpdates; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "UpdateGlobalTable", + Dict{String,Any}( + "GlobalTableName" => GlobalTableName, "ReplicaUpdates" => ReplicaUpdates + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "UpdateGlobalTable", - Dict{String,Any}( - "GlobalTableName" => GlobalTableName, "ReplicaUpdates" => ReplicaUpdates - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_global_table( GlobalTableName, ReplicaUpdates, @@ -3117,16 +3010,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReplicaSettingsUpdate"`: Represents the settings for a global table in a Region that will be modified. """ -function update_global_table_settings( +update_global_table_settings( GlobalTableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "UpdateGlobalTableSettings", + Dict{String,Any}("GlobalTableName" => GlobalTableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "UpdateGlobalTableSettings", - Dict{String,Any}("GlobalTableName" => GlobalTableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_global_table_settings( GlobalTableName, params::AbstractDict{String}; @@ -3264,14 +3155,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide. """ -function update_item(Key, TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "UpdateItem", - Dict{String,Any}("Key" => Key, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_item(Key, TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "UpdateItem", + Dict{String,Any}("Key" => Key, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_item( Key, TableName, @@ -3306,16 +3195,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UpdateKinesisStreamingConfiguration"`: The command to update the Kinesis stream configuration. """ -function update_kinesis_streaming_destination( +update_kinesis_streaming_destination( StreamArn, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "UpdateKinesisStreamingDestination", + Dict{String,Any}("StreamArn" => StreamArn, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "UpdateKinesisStreamingDestination", - Dict{String,Any}("StreamArn" => StreamArn, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_kinesis_streaming_destination( StreamArn, TableName, @@ -3392,14 +3279,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TableClass"`: The table class of the table to be updated. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. """ -function update_table(TableName; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb( - "UpdateTable", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_table(TableName; aws_config::AbstractAWSConfig=current_aws_config()) = dynamodb( + "UpdateTable", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_table( TableName, params::AbstractDict{String}; @@ -3434,16 +3319,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReplicaUpdates"`: Represents the auto scaling settings of replicas of the table that will be modified. """ -function update_table_replica_auto_scaling( +update_table_replica_auto_scaling( TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "UpdateTableReplicaAutoScaling", + Dict{String,Any}("TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "UpdateTableReplicaAutoScaling", - Dict{String,Any}("TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_table_replica_auto_scaling( TableName, params::AbstractDict{String}; @@ -3487,18 +3370,16 @@ Guide. Live for the specified table. """ -function update_time_to_live( +update_time_to_live( TableName, TimeToLiveSpecification; aws_config::AbstractAWSConfig=current_aws_config() +) = dynamodb( + "UpdateTimeToLive", + Dict{String,Any}( + "TableName" => TableName, "TimeToLiveSpecification" => TimeToLiveSpecification + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb( - "UpdateTimeToLive", - Dict{String,Any}( - "TableName" => TableName, "TimeToLiveSpecification" => TimeToLiveSpecification - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_time_to_live( TableName, TimeToLiveSpecification, diff --git a/src/services/dynamodb_streams.jl b/src/services/dynamodb_streams.jl index 9241dd735..5d98b715b 100644 --- a/src/services/dynamodb_streams.jl +++ b/src/services/dynamodb_streams.jl @@ -26,14 +26,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. - `"Limit"`: The maximum number of shard objects to return. The upper limit is 100. """ -function describe_stream(StreamArn; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb_streams( +describe_stream(StreamArn; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb_streams( "DescribeStream", Dict{String,Any}("StreamArn" => StreamArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_stream( StreamArn, params::AbstractDict{String}; @@ -70,14 +69,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: The maximum number of records to return from the shard. The upper limit is 1000. """ -function get_records(ShardIterator; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb_streams( +get_records(ShardIterator; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb_streams( "GetRecords", Dict{String,Any}("ShardIterator" => ShardIterator); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_records( ShardIterator, params::AbstractDict{String}; @@ -120,23 +118,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SequenceNumber"`: The sequence number of a stream record in the shard from which to start reading. """ -function get_shard_iterator( +get_shard_iterator( ShardId, ShardIteratorType, StreamArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = dynamodb_streams( + "GetShardIterator", + Dict{String,Any}( + "ShardId" => ShardId, + "ShardIteratorType" => ShardIteratorType, + "StreamArn" => StreamArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return dynamodb_streams( - "GetShardIterator", - Dict{String,Any}( - "ShardId" => ShardId, - "ShardIteratorType" => ShardIteratorType, - "StreamArn" => StreamArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_shard_iterator( ShardId, ShardIteratorType, @@ -179,11 +175,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TableName"`: If this parameter is provided, then only the streams associated with this table name are returned. """ -function list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return dynamodb_streams( - "ListStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = + dynamodb_streams("ListStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/ebs.jl b/src/services/ebs.jl index 2bdc2575c..0d0754909 100644 --- a/src/services/ebs.jl +++ b/src/services/ebs.jl @@ -31,20 +31,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-Checksum-Algorithm"`: The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256. """ -function complete_snapshot( +complete_snapshot( snapshotId, x_amz_ChangedBlocksCount; aws_config::AbstractAWSConfig=current_aws_config() +) = ebs( + "POST", + "/snapshots/completion/$(snapshotId)", + Dict{String,Any}( + "headers" => + Dict{String,Any}("x-amz-ChangedBlocksCount" => x_amz_ChangedBlocksCount), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ebs( - "POST", - "/snapshots/completion/$(snapshotId)", - Dict{String,Any}( - "headers" => - Dict{String,Any}("x-amz-ChangedBlocksCount" => x_amz_ChangedBlocksCount), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_snapshot( snapshotId, x_amz_ChangedBlocksCount, @@ -92,17 +90,15 @@ the Amazon Elastic Compute Cloud User Guide. Elastic Compute Cloud User Guide. """ -function get_snapshot_block( +get_snapshot_block( blockIndex, blockToken, snapshotId; aws_config::AbstractAWSConfig=current_aws_config() +) = ebs( + "GET", + "/snapshots/$(snapshotId)/blocks/$(blockIndex)", + Dict{String,Any}("blockToken" => blockToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ebs( - "GET", - "/snapshots/$(snapshotId)/blocks/$(blockIndex)", - Dict{String,Any}("blockToken" => blockToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_snapshot_block( blockIndex, blockToken, @@ -152,16 +148,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response will start from this block index or the next valid block index in the snapshots. If you specify NextToken, then StartingBlockIndex is ignored. """ -function list_changed_blocks( - secondSnapshotId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ebs( +list_changed_blocks(secondSnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = + ebs( "GET", "/snapshots/$(secondSnapshotId)/changedblocks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_changed_blocks( secondSnapshotId, params::AbstractDict{String}; @@ -201,16 +194,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will start from this block index or the next valid block index in the snapshot. If you specify NextToken, then StartingBlockIndex is ignored. """ -function list_snapshot_blocks( - snapshotId; aws_config::AbstractAWSConfig=current_aws_config() +list_snapshot_blocks(snapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = ebs( + "GET", + "/snapshots/$(snapshotId)/blocks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ebs( - "GET", - "/snapshots/$(snapshotId)/blocks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_snapshot_blocks( snapshotId, params::AbstractDict{String}; @@ -264,7 +253,7 @@ Compute Cloud User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-Progress"`: The progress of the write process, as a percentage. """ -function put_snapshot_block( +put_snapshot_block( BlockData, blockIndex, snapshotId, @@ -272,22 +261,20 @@ function put_snapshot_block( x_amz_Checksum_Algorithm, x_amz_Data_Length; aws_config::AbstractAWSConfig=current_aws_config(), +) = ebs( + "PUT", + "/snapshots/$(snapshotId)/blocks/$(blockIndex)", + Dict{String,Any}( + "BlockData" => BlockData, + "headers" => Dict{String,Any}( + "x-amz-Checksum" => x_amz_Checksum, + "x-amz-Checksum-Algorithm" => x_amz_Checksum_Algorithm, + "x-amz-Data-Length" => x_amz_Data_Length, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ebs( - "PUT", - "/snapshots/$(snapshotId)/blocks/$(blockIndex)", - Dict{String,Any}( - "BlockData" => BlockData, - "headers" => Dict{String,Any}( - "x-amz-Checksum" => x_amz_Checksum, - "x-amz-Checksum-Algorithm" => x_amz_Checksum_Algorithm, - "x-amz-Data-Length" => x_amz_Data_Length, - ), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_snapshot_block( BlockData, blockIndex, @@ -377,15 +364,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys after writing the last block of data. If no value is specified, the timeout defaults to 60 minutes. """ -function start_snapshot(VolumeSize; aws_config::AbstractAWSConfig=current_aws_config()) - return ebs( - "POST", - "/snapshots", - Dict{String,Any}("VolumeSize" => VolumeSize, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_snapshot(VolumeSize; aws_config::AbstractAWSConfig=current_aws_config()) = ebs( + "POST", + "/snapshots", + Dict{String,Any}("VolumeSize" => VolumeSize, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_snapshot( VolumeSize, params::AbstractDict{String}; diff --git a/src/services/ec2.jl b/src/services/ec2.jl index 8b2df8328..6154e14b2 100644 --- a/src/services/ec2.jl +++ b/src/services/ec2.jl @@ -24,16 +24,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value. """ -function accept_address_transfer( - Address; aws_config::AbstractAWSConfig=current_aws_config() +accept_address_transfer(Address; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "AcceptAddressTransfer", + Dict{String,Any}("Address" => Address); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AcceptAddressTransfer", - Dict{String,Any}("Address" => Address); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_address_transfer( Address, params::AbstractDict{String}; @@ -66,16 +62,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetConfiguration"`: The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances. """ -function accept_reserved_instances_exchange_quote( +accept_reserved_instances_exchange_quote( ReservedInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AcceptReservedInstancesExchangeQuote", + Dict{String,Any}("ReservedInstanceId" => ReservedInstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AcceptReservedInstancesExchangeQuote", - Dict{String,Any}("ReservedInstanceId" => ReservedInstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_reserved_instances_exchange_quote( ReservedInstanceId, params::AbstractDict{String}; @@ -109,15 +103,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TransitGatewayAttachmentId"`: The ID of the transit gateway attachment. - `"TransitGatewayMulticastDomainId"`: The ID of the transit gateway multicast domain. """ -function accept_transit_gateway_multicast_domain_associations(; +accept_transit_gateway_multicast_domain_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AcceptTransitGatewayMulticastDomainAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AcceptTransitGatewayMulticastDomainAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_transit_gateway_multicast_domain_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -145,16 +137,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function accept_transit_gateway_peering_attachment( +accept_transit_gateway_peering_attachment( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AcceptTransitGatewayPeeringAttachment", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AcceptTransitGatewayPeeringAttachment", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_transit_gateway_peering_attachment( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -194,16 +184,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function accept_transit_gateway_vpc_attachment( +accept_transit_gateway_vpc_attachment( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AcceptTransitGatewayVpcAttachment", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AcceptTransitGatewayVpcAttachment", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_transit_gateway_vpc_attachment( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -241,16 +229,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function accept_vpc_endpoint_connections( +accept_vpc_endpoint_connections( ServiceId, VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AcceptVpcEndpointConnections", + Dict{String,Any}("ServiceId" => ServiceId, "VpcEndpointId" => VpcEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AcceptVpcEndpointConnections", - Dict{String,Any}("ServiceId" => ServiceId, "VpcEndpointId" => VpcEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_vpc_endpoint_connections( ServiceId, VpcEndpointId, @@ -293,16 +279,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function accept_vpc_peering_connection( +accept_vpc_peering_connection( vpcPeeringConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AcceptVpcPeeringConnection", + Dict{String,Any}("vpcPeeringConnectionId" => vpcPeeringConnectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AcceptVpcPeeringConnection", - Dict{String,Any}("vpcPeeringConnectionId" => vpcPeeringConnectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_vpc_peering_connection( vpcPeeringConnectionId, params::AbstractDict{String}; @@ -355,14 +339,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys us-west-2-lax-1 us-west-2-phx-2 You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this time. """ -function advertise_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "AdvertiseByoipCidr", - Dict{String,Any}("Cidr" => Cidr); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +advertise_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "AdvertiseByoipCidr", + Dict{String,Any}("Cidr" => Cidr); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function advertise_byoip_cidr( Cidr, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -401,6 +383,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys let Amazon EC2 select an address from the address pool. Alternatively, specify a specific address from the address pool. - `"Domain"`: The network (vpc). +- `"IpamPoolId"`: The ID of an IPAM pool. - `"NetworkBorderGroup"`: A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups. @@ -412,9 +395,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function allocate_address(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("AllocateAddress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +allocate_address(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("AllocateAddress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function allocate_address( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -474,16 +456,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys on each specified hardware asset. If you specify both AssetIds and Quantity, then the value that you specify for Quantity must be equal to the number of asset IDs specified. """ -function allocate_hosts( - availabilityZone; aws_config::AbstractAWSConfig=current_aws_config() +allocate_hosts(availabilityZone; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "AllocateHosts", + Dict{String,Any}("availabilityZone" => availabilityZone); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AllocateHosts", - Dict{String,Any}("availabilityZone" => availabilityZone); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function allocate_hosts( availabilityZone, params::AbstractDict{String}; @@ -542,16 +520,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys addresses are 0 - 128. - `"PreviewNextCidr"`: A preview of the next available CIDR in a pool. """ -function allocate_ipam_pool_cidr( - IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +allocate_ipam_pool_cidr(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "AllocateIpamPoolCidr", Dict{String,Any}("IpamPoolId" => IpamPoolId, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function allocate_ipam_pool_cidr( IpamPoolId, params::AbstractDict{String}; @@ -593,23 +568,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function apply_security_groups_to_client_vpn_target_network( +apply_security_groups_to_client_vpn_target_network( ClientVpnEndpointId, SecurityGroupId, VpcId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ApplySecurityGroupsToClientVpnTargetNetwork", + Dict{String,Any}( + "ClientVpnEndpointId" => ClientVpnEndpointId, + "SecurityGroupId" => SecurityGroupId, + "VpcId" => VpcId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ApplySecurityGroupsToClientVpnTargetNetwork", - Dict{String,Any}( - "ClientVpnEndpointId" => ClientVpnEndpointId, - "SecurityGroupId" => SecurityGroupId, - "VpcId" => VpcId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_security_groups_to_client_vpn_target_network( ClientVpnEndpointId, SecurityGroupId, @@ -667,16 +640,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ipv6Addresses"`: The IPv6 addresses to be assigned to the network interface. You can't use this option if you're specifying a number of IPv6 addresses. """ -function assign_ipv6_addresses( +assign_ipv6_addresses( networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssignIpv6Addresses", + Dict{String,Any}("networkInterfaceId" => networkInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssignIpv6Addresses", - Dict{String,Any}("networkInterfaceId" => networkInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assign_ipv6_addresses( networkInterfaceId, params::AbstractDict{String}; @@ -734,16 +705,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys network interface. You can't specify this parameter when also specifying private IP addresses. """ -function assign_private_ip_addresses( +assign_private_ip_addresses( networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssignPrivateIpAddresses", + Dict{String,Any}("networkInterfaceId" => networkInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssignPrivateIpAddresses", - Dict{String,Any}("networkInterfaceId" => networkInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assign_private_ip_addresses( networkInterfaceId, params::AbstractDict{String}; @@ -781,16 +750,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PrivateIpAddressCount"`: The number of private IP addresses to assign to the NAT gateway. You can't specify this parameter when also specifying private IP addresses. """ -function assign_private_nat_gateway_address( +assign_private_nat_gateway_address( NatGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssignPrivateNatGatewayAddress", + Dict{String,Any}("NatGatewayId" => NatGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssignPrivateNatGatewayAddress", - Dict{String,Any}("NatGatewayId" => NatGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assign_private_nat_gateway_address( NatGatewayId, params::AbstractDict{String}; @@ -843,9 +810,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address. """ -function associate_address(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("AssociateAddress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +associate_address(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("AssociateAddress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function associate_address( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -879,20 +845,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function associate_client_vpn_target_network( +associate_client_vpn_target_network( ClientVpnEndpointId, SubnetId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssociateClientVpnTargetNetwork", + Dict{String,Any}( + "ClientVpnEndpointId" => ClientVpnEndpointId, + "SubnetId" => SubnetId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateClientVpnTargetNetwork", - Dict{String,Any}( - "ClientVpnEndpointId" => ClientVpnEndpointId, - "SubnetId" => SubnetId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_client_vpn_target_network( ClientVpnEndpointId, SubnetId, @@ -940,16 +904,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function associate_dhcp_options( +associate_dhcp_options( DhcpOptionsId, VpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssociateDhcpOptions", + Dict{String,Any}("DhcpOptionsId" => DhcpOptionsId, "VpcId" => VpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateDhcpOptions", - Dict{String,Any}("DhcpOptionsId" => DhcpOptionsId, "VpcId" => VpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_dhcp_options( DhcpOptionsId, VpcId, @@ -999,16 +961,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function associate_enclave_certificate_iam_role( +associate_enclave_certificate_iam_role( CertificateArn, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssociateEnclaveCertificateIamRole", + Dict{String,Any}("CertificateArn" => CertificateArn, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateEnclaveCertificateIamRole", - Dict{String,Any}("CertificateArn" => CertificateArn, "RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_enclave_certificate_iam_role( CertificateArn, RoleArn, @@ -1041,18 +1001,16 @@ more than one IAM instance profile with an instance. - `instance_id`: The ID of the instance. """ -function associate_iam_instance_profile( +associate_iam_instance_profile( IamInstanceProfile, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssociateIamInstanceProfile", + Dict{String,Any}( + "IamInstanceProfile" => IamInstanceProfile, "InstanceId" => InstanceId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateIamInstanceProfile", - Dict{String,Any}( - "IamInstanceProfile" => IamInstanceProfile, "InstanceId" => InstanceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_iam_instance_profile( IamInstanceProfile, InstanceId, @@ -1093,21 +1051,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function associate_instance_event_window( +associate_instance_event_window( AssociationTarget, InstanceEventWindowId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "AssociateInstanceEventWindow", + Dict{String,Any}( + "AssociationTarget" => AssociationTarget, + "InstanceEventWindowId" => InstanceEventWindowId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateInstanceEventWindow", - Dict{String,Any}( - "AssociationTarget" => AssociationTarget, - "InstanceEventWindowId" => InstanceEventWindowId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_instance_event_window( AssociationTarget, InstanceEventWindowId, @@ -1151,16 +1107,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function associate_ipam_byoasn( - Asn, Cidr; aws_config::AbstractAWSConfig=current_aws_config() +associate_ipam_byoasn(Asn, Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "AssociateIpamByoasn", + Dict{String,Any}("Asn" => Asn, "Cidr" => Cidr); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateIpamByoasn", - Dict{String,Any}("Asn" => Asn, "Cidr" => Cidr); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_ipam_byoasn( Asn, Cidr, @@ -1197,20 +1149,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: Tag specifications. """ -function associate_ipam_resource_discovery( +associate_ipam_resource_discovery( IpamId, IpamResourceDiscoveryId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssociateIpamResourceDiscovery", + Dict{String,Any}( + "IpamId" => IpamId, + "IpamResourceDiscoveryId" => IpamResourceDiscoveryId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateIpamResourceDiscovery", - Dict{String,Any}( - "IpamId" => IpamId, - "IpamResourceDiscoveryId" => IpamResourceDiscoveryId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_ipam_resource_discovery( IpamId, IpamResourceDiscoveryId, @@ -1265,16 +1215,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PrivateIpAddress"`: The private IPv4 addresses that you want to assign to the NAT gateway. """ -function associate_nat_gateway_address( +associate_nat_gateway_address( AllocationId, NatGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssociateNatGatewayAddress", + Dict{String,Any}("AllocationId" => AllocationId, "NatGatewayId" => NatGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateNatGatewayAddress", - Dict{String,Any}("AllocationId" => AllocationId, "NatGatewayId" => NatGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_nat_gateway_address( AllocationId, NatGatewayId, @@ -1319,16 +1267,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"subnetId"`: The ID of the subnet. """ -function associate_route_table( - routeTableId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +associate_route_table(routeTableId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "AssociateRouteTable", Dict{String,Any}("routeTableId" => routeTableId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_route_table( routeTableId, params::AbstractDict{String}; @@ -1360,16 +1305,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Ipv6NetmaskLength"`: An IPv6 netmask length. - `"ipv6CidrBlock"`: The IPv6 CIDR block for your subnet. """ -function associate_subnet_cidr_block( - subnetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +associate_subnet_cidr_block(subnetId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "AssociateSubnetCidrBlock", Dict{String,Any}("subnetId" => subnetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_subnet_cidr_block( subnetId, params::AbstractDict{String}; @@ -1408,23 +1350,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubnetIds"`: The IDs of the subnets to associate with the transit gateway multicast domain. """ -function associate_transit_gateway_multicast_domain( +associate_transit_gateway_multicast_domain( TransitGatewayAttachmentId, TransitGatewayMulticastDomainId, item; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "AssociateTransitGatewayMulticastDomain", + Dict{String,Any}( + "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, + "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId, + "item" => item, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateTransitGatewayMulticastDomain", - Dict{String,Any}( - "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, - "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId, - "item" => item, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_transit_gateway_multicast_domain( TransitGatewayAttachmentId, TransitGatewayMulticastDomainId, @@ -1468,21 +1408,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function associate_transit_gateway_policy_table( +associate_transit_gateway_policy_table( TransitGatewayAttachmentId, TransitGatewayPolicyTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "AssociateTransitGatewayPolicyTable", + Dict{String,Any}( + "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, + "TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateTransitGatewayPolicyTable", - Dict{String,Any}( - "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, - "TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_transit_gateway_policy_table( TransitGatewayAttachmentId, TransitGatewayPolicyTableId, @@ -1523,21 +1461,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function associate_transit_gateway_route_table( +associate_transit_gateway_route_table( TransitGatewayAttachmentId, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "AssociateTransitGatewayRouteTable", + Dict{String,Any}( + "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateTransitGatewayRouteTable", - Dict{String,Any}( - "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_transit_gateway_route_table( TransitGatewayAttachmentId, TransitGatewayRouteTableId, @@ -1584,20 +1520,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GreKey"`: The application key. This applies to the GRE protocol. - `"VlanId"`: The ID of the VLAN. This applies to the VLAN protocol. """ -function associate_trunk_interface( +associate_trunk_interface( BranchInterfaceId, TrunkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AssociateTrunkInterface", + Dict{String,Any}( + "BranchInterfaceId" => BranchInterfaceId, + "TrunkInterfaceId" => TrunkInterfaceId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AssociateTrunkInterface", - Dict{String,Any}( - "BranchInterfaceId" => BranchInterfaceId, - "TrunkInterfaceId" => TrunkInterfaceId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_trunk_interface( BranchInterfaceId, TrunkInterfaceId, @@ -1663,14 +1597,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys prefix length for the VPC. You cannot specify the range of IPv6 addresses or the size of the CIDR block. """ -function associate_vpc_cidr_block(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "AssociateVpcCidrBlock", - Dict{String,Any}("vpcId" => vpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +associate_vpc_cidr_block(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "AssociateVpcCidrBlock", + Dict{String,Any}("vpcId" => vpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function associate_vpc_cidr_block( vpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1707,20 +1639,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function attach_classic_link_vpc( +attach_classic_link_vpc( SecurityGroupId, instanceId, vpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AttachClassicLinkVpc", + Dict{String,Any}( + "SecurityGroupId" => SecurityGroupId, + "instanceId" => instanceId, + "vpcId" => vpcId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AttachClassicLinkVpc", - Dict{String,Any}( - "SecurityGroupId" => SecurityGroupId, - "instanceId" => instanceId, - "vpcId" => vpcId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_classic_link_vpc( SecurityGroupId, instanceId, @@ -1764,16 +1694,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function attach_internet_gateway( +attach_internet_gateway( internetGatewayId, vpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AttachInternetGateway", + Dict{String,Any}("internetGatewayId" => internetGatewayId, "vpcId" => vpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AttachInternetGateway", - Dict{String,Any}("internetGatewayId" => internetGatewayId, "vpcId" => vpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_internet_gateway( internetGatewayId, vpcId, @@ -1818,23 +1746,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function attach_network_interface( +attach_network_interface( deviceIndex, instanceId, networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "AttachNetworkInterface", + Dict{String,Any}( + "deviceIndex" => deviceIndex, + "instanceId" => instanceId, + "networkInterfaceId" => networkInterfaceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AttachNetworkInterface", - Dict{String,Any}( - "deviceIndex" => deviceIndex, - "instanceId" => instanceId, - "networkInterfaceId" => networkInterfaceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_network_interface( deviceIndex, instanceId, @@ -1879,22 +1805,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function attach_verified_access_trust_provider( +attach_verified_access_trust_provider( VerifiedAccessInstanceId, VerifiedAccessTrustProviderId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "AttachVerifiedAccessTrustProvider", + Dict{String,Any}( + "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, + "VerifiedAccessTrustProviderId" => VerifiedAccessTrustProviderId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AttachVerifiedAccessTrustProvider", - Dict{String,Any}( - "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, - "VerifiedAccessTrustProviderId" => VerifiedAccessTrustProviderId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_verified_access_trust_provider( VerifiedAccessInstanceId, VerifiedAccessTrustProviderId, @@ -1947,24 +1871,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function attach_volume( +attach_volume( Device, InstanceId, VolumeId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( - "AttachVolume", - Dict{String,Any}( - "Device" => Device, "InstanceId" => InstanceId, "VolumeId" => VolumeId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function attach_volume( - Device, - InstanceId, - VolumeId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "AttachVolume", + Dict{String,Any}( + "Device" => Device, "InstanceId" => InstanceId, "VolumeId" => VolumeId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function attach_volume( + Device, + InstanceId, + VolumeId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return ec2( "AttachVolume", @@ -2000,16 +1922,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function attach_vpn_gateway( +attach_vpn_gateway( VpcId, VpnGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AttachVpnGateway", + Dict{String,Any}("VpcId" => VpcId, "VpnGatewayId" => VpnGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AttachVpnGateway", - Dict{String,Any}("VpcId" => VpcId, "VpnGatewayId" => VpnGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_vpn_gateway( VpcId, VpnGatewayId, @@ -2059,22 +1979,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function authorize_client_vpn_ingress( +authorize_client_vpn_ingress( ClientVpnEndpointId, TargetNetworkCidr; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "AuthorizeClientVpnIngress", + Dict{String,Any}( + "ClientVpnEndpointId" => ClientVpnEndpointId, + "TargetNetworkCidr" => TargetNetworkCidr, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AuthorizeClientVpnIngress", - Dict{String,Any}( - "ClientVpnEndpointId" => ClientVpnEndpointId, - "TargetNetworkCidr" => TargetNetworkCidr, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_client_vpn_ingress( ClientVpnEndpointId, TargetNetworkCidr, @@ -2134,16 +2052,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sourceSecurityGroupOwnerId"`: Not supported. Use IP permissions instead. - `"toPort"`: Not supported. Use IP permissions instead. """ -function authorize_security_group_egress( +authorize_security_group_egress( groupId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "AuthorizeSecurityGroupEgress", + Dict{String,Any}("groupId" => groupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "AuthorizeSecurityGroupEgress", - Dict{String,Any}("groupId" => groupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_security_group_egress( groupId, params::AbstractDict{String}; @@ -2209,15 +2125,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function authorize_security_group_ingress(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +authorize_security_group_ingress(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "AuthorizeSecurityGroupIngress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function authorize_security_group_ingress( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2250,16 +2163,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function bundle_instance( - InstanceId, Storage; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +bundle_instance(InstanceId, Storage; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "BundleInstance", Dict{String,Any}("InstanceId" => InstanceId, "Storage" => Storage); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function bundle_instance( InstanceId, Storage, @@ -2295,14 +2205,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function cancel_bundle_task(BundleId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CancelBundleTask", - Dict{String,Any}("BundleId" => BundleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_bundle_task(BundleId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CancelBundleTask", + Dict{String,Any}("BundleId" => BundleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_bundle_task( BundleId, params::AbstractDict{String}; @@ -2338,16 +2246,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function cancel_capacity_reservation( +cancel_capacity_reservation( CapacityReservationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CancelCapacityReservation", + Dict{String,Any}("CapacityReservationId" => CapacityReservationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CancelCapacityReservation", - Dict{String,Any}("CapacityReservationId" => CapacityReservationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_capacity_reservation( CapacityReservationId, params::AbstractDict{String}; @@ -2386,16 +2292,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function cancel_capacity_reservation_fleets( +cancel_capacity_reservation_fleets( CapacityReservationFleetId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CancelCapacityReservationFleets", + Dict{String,Any}("CapacityReservationFleetId" => CapacityReservationFleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CancelCapacityReservationFleets", - Dict{String,Any}("CapacityReservationFleetId" => CapacityReservationFleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_capacity_reservation_fleets( CapacityReservationFleetId, params::AbstractDict{String}; @@ -2437,16 +2341,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"reasonMessage"`: The reason for canceling the conversion task. """ -function cancel_conversion_task( +cancel_conversion_task( conversionTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CancelConversionTask", + Dict{String,Any}("conversionTaskId" => conversionTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CancelConversionTask", - Dict{String,Any}("conversionTaskId" => conversionTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_conversion_task( conversionTaskId, params::AbstractDict{String}; @@ -2477,16 +2379,12 @@ process of transferring the final disk image, the command fails and returns an e CreateInstanceExportTask and ExportImage operations. """ -function cancel_export_task( - exportTaskId; aws_config::AbstractAWSConfig=current_aws_config() +cancel_export_task(exportTaskId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CancelExportTask", + Dict{String,Any}("exportTaskId" => exportTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CancelExportTask", - Dict{String,Any}("exportTaskId" => exportTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_export_task( exportTaskId, params::AbstractDict{String}; @@ -2519,16 +2417,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function cancel_image_launch_permission( +cancel_image_launch_permission( ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CancelImageLaunchPermission", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CancelImageLaunchPermission", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_image_launch_permission( ImageId, params::AbstractDict{String}; @@ -2556,9 +2452,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"ImportTaskId"`: The ID of the import image or import snapshot task to be canceled. """ -function cancel_import_task(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("CancelImportTask"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +cancel_import_task(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("CancelImportTask"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function cancel_import_task( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2579,16 +2474,14 @@ Guide. - `reserved_instances_listing_id`: The ID of the Reserved Instance listing. """ -function cancel_reserved_instances_listing( +cancel_reserved_instances_listing( reservedInstancesListingId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CancelReservedInstancesListing", + Dict{String,Any}("reservedInstancesListingId" => reservedInstancesListingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CancelReservedInstancesListing", - Dict{String,Any}("reservedInstancesListingId" => reservedInstancesListingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_reserved_instances_listing( reservedInstancesListingId, params::AbstractDict{String}; @@ -2636,21 +2529,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function cancel_spot_fleet_requests( +cancel_spot_fleet_requests( spotFleetRequestId, terminateInstances; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CancelSpotFleetRequests", + Dict{String,Any}( + "spotFleetRequestId" => spotFleetRequestId, + "terminateInstances" => terminateInstances, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CancelSpotFleetRequests", - Dict{String,Any}( - "spotFleetRequestId" => spotFleetRequestId, - "terminateInstances" => terminateInstances, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_spot_fleet_requests( spotFleetRequestId, terminateInstances, @@ -2690,16 +2581,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function cancel_spot_instance_requests( +cancel_spot_instance_requests( SpotInstanceRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CancelSpotInstanceRequests", + Dict{String,Any}("SpotInstanceRequestId" => SpotInstanceRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CancelSpotInstanceRequests", - Dict{String,Any}("SpotInstanceRequestId" => SpotInstanceRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_spot_instance_requests( SpotInstanceRequestId, params::AbstractDict{String}; @@ -2737,16 +2626,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function confirm_product_instance( +confirm_product_instance( InstanceId, ProductCode; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ConfirmProductInstance", + Dict{String,Any}("InstanceId" => InstanceId, "ProductCode" => ProductCode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ConfirmProductInstance", - Dict{String,Any}("InstanceId" => InstanceId, "ProductCode" => ProductCode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function confirm_product_instance( InstanceId, ProductCode, @@ -2787,18 +2674,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"Name"`: The name for the new AFI. The default is the name of the source AFI. """ -function copy_fpga_image( +copy_fpga_image( SourceFpgaImageId, SourceRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CopyFpgaImage", + Dict{String,Any}( + "SourceFpgaImageId" => SourceFpgaImageId, "SourceRegion" => SourceRegion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CopyFpgaImage", - Dict{String,Any}( - "SourceFpgaImageId" => SourceFpgaImageId, "SourceRegion" => SourceRegion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_fpga_image( SourceFpgaImageId, SourceRegion, @@ -2825,21 +2710,15 @@ end copy_image(name, source_image_id, source_region) copy_image(name, source_image_id, source_region, params::Dict{String,<:Any}) -Initiates the copy of an AMI. You can copy an AMI from one Region to another, or from a +Initiates an AMI copy operation. You can copy an AMI from one Region to another, or from a Region to an Outpost. You can't copy an AMI from an Outpost to a Region, from one Outpost to another, or within the same Outpost. To copy an AMI to another partition, see -CreateStoreImageTask. To copy an AMI from one Region to another, specify the source Region -using the SourceRegion parameter, and specify the destination Region using its endpoint. -Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted -backing snapshots remain unencrypted, unless you set Encrypted during the copy operation. -You cannot create an unencrypted copy of an encrypted backing snapshot. To copy an AMI from -a Region to an Outpost, specify the source Region using the SourceRegion parameter, and -specify the ARN of the destination Outpost using DestinationOutpostArn. Backing snapshots -copied to an Outpost are encrypted by default using the default encryption key for the -Region, or a different key that you specify in the request using KmsKeyId. Outposts do not -support unencrypted snapshots. For more information, Amazon EBS local snapshots on -Outposts in the Amazon EBS User Guide. For more information about the prerequisites and -limits when copying an AMI, see Copy an AMI in the Amazon EC2 User Guide. +CreateStoreImageTask. When you copy an AMI from one Region to another, the destination +Region is the current Region. When you copy an AMI from a Region to an Outpost, specify the +ARN of the Outpost as the destination. Backing snapshots copied to an Outpost are encrypted +by default using the default encryption key for the Region or the key that you specify. +Outposts do not support unencrypted snapshots. For information about the prerequisites when +copying an AMI, see Copy an AMI in the Amazon EC2 User Guide. # Arguments - `name`: The name of the new AMI in the destination Region. @@ -2873,7 +2752,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot create an unencrypted copy of an encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a non-default Key Management Service (KMS) KMS key using KmsKeyId. For - more information, see Amazon EBS encryption in the Amazon EBS User Guide. + more information, see Use encryption with EBS-backed AMIs in the Amazon EC2 User Guide. - `"kmsKeyId"`: The identifier of the symmetric Key Management Service (KMS) KMS key to use when creating encrypted volumes. If this parameter is not specified, your Amazon Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, you must also @@ -2886,18 +2765,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not valid, the action can appear to complete, but eventually fails. The specified KMS key must exist in the destination Region. Amazon EBS does not support asymmetric KMS keys. """ -function copy_image( +copy_image( Name, SourceImageId, SourceRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CopyImage", + Dict{String,Any}( + "Name" => Name, "SourceImageId" => SourceImageId, "SourceRegion" => SourceRegion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CopyImage", - Dict{String,Any}( - "Name" => Name, "SourceImageId" => SourceImageId, "SourceRegion" => SourceRegion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_image( Name, SourceImageId, @@ -2992,18 +2869,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state. """ -function copy_snapshot( +copy_snapshot( SourceRegion, SourceSnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CopySnapshot", + Dict{String,Any}( + "SourceRegion" => SourceRegion, "SourceSnapshotId" => SourceSnapshotId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CopySnapshot", - Dict{String,Any}( - "SourceRegion" => SourceRegion, "SourceSnapshotId" => SourceSnapshotId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_snapshot( SourceRegion, SourceSnapshotId, @@ -3104,39 +2979,98 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account. """ -function create_capacity_reservation( +create_capacity_reservation( InstanceCount, InstancePlatform, InstanceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateCapacityReservation", + Dict{String,Any}( + "InstanceCount" => InstanceCount, + "InstancePlatform" => InstancePlatform, + "InstanceType" => InstanceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_capacity_reservation( + InstanceCount, + InstancePlatform, + InstanceType, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return ec2( "CreateCapacityReservation", Dict{String,Any}( - "InstanceCount" => InstanceCount, - "InstancePlatform" => InstancePlatform, - "InstanceType" => InstanceType, + mergewith( + _merge, + Dict{String,Any}( + "InstanceCount" => InstanceCount, + "InstancePlatform" => InstancePlatform, + "InstanceType" => InstanceType, + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_capacity_reservation( + +""" + create_capacity_reservation_by_splitting(instance_count, source_capacity_reservation_id) + create_capacity_reservation_by_splitting(instance_count, source_capacity_reservation_id, params::Dict{String,<:Any}) + + Create a new Capacity Reservation by splitting the available capacity of the source +Capacity Reservation. The new Capacity Reservation will have the same attributes as the +source Capacity Reservation except for tags. The source Capacity Reservation must be active +and owned by your Amazon Web Services account. + +# Arguments +- `instance_count`: The number of instances to split from the source Capacity Reservation. +- `source_capacity_reservation_id`: The ID of the Capacity Reservation from which you want + to split the available capacity. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ClientToken"`: Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see Ensure Idempotency. +- `"DryRun"`: Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have the required + permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"TagSpecification"`: The tags to apply to the new Capacity Reservation. +""" +create_capacity_reservation_by_splitting( InstanceCount, - InstancePlatform, - InstanceType, + SourceCapacityReservationId; + aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateCapacityReservationBySplitting", + Dict{String,Any}( + "InstanceCount" => InstanceCount, + "SourceCapacityReservationId" => SourceCapacityReservationId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_capacity_reservation_by_splitting( + InstanceCount, + SourceCapacityReservationId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return ec2( - "CreateCapacityReservation", + "CreateCapacityReservationBySplitting", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( "InstanceCount" => InstanceCount, - "InstancePlatform" => InstancePlatform, - "InstanceType" => InstanceType, + "SourceCapacityReservationId" => SourceCapacityReservationId, + "ClientToken" => string(uuid4()), ), params, ), @@ -3193,22 +3127,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Capacity Reservations are created on single-tenant hardware that is dedicated to a single Amazon Web Services account. """ -function create_capacity_reservation_fleet( +create_capacity_reservation_fleet( InstanceTypeSpecification, TotalTargetCapacity; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateCapacityReservationFleet", + Dict{String,Any}( + "InstanceTypeSpecification" => InstanceTypeSpecification, + "TotalTargetCapacity" => TotalTargetCapacity, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateCapacityReservationFleet", - Dict{String,Any}( - "InstanceTypeSpecification" => InstanceTypeSpecification, - "TotalTargetCapacity" => TotalTargetCapacity, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_capacity_reservation_fleet( InstanceTypeSpecification, TotalTargetCapacity, @@ -3252,14 +3184,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to associate with the carrier gateway. """ -function create_carrier_gateway(VpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateCarrierGateway", - Dict{String,Any}("VpcId" => VpcId, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_carrier_gateway(VpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateCarrierGateway", + Dict{String,Any}("VpcId" => VpcId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_carrier_gateway( VpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3333,26 +3263,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpnPort"`: The port number to assign to the Client VPN endpoint for TCP and UDP traffic. Valid Values: 443 | 1194 Default Value: 443 """ -function create_client_vpn_endpoint( +create_client_vpn_endpoint( Authentication, ClientCidrBlock, ConnectionLogOptions, ServerCertificateArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateClientVpnEndpoint", + Dict{String,Any}( + "Authentication" => Authentication, + "ClientCidrBlock" => ClientCidrBlock, + "ConnectionLogOptions" => ConnectionLogOptions, + "ServerCertificateArn" => ServerCertificateArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateClientVpnEndpoint", - Dict{String,Any}( - "Authentication" => Authentication, - "ClientCidrBlock" => ClientCidrBlock, - "ConnectionLogOptions" => ConnectionLogOptions, - "ServerCertificateArn" => ServerCertificateArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_client_vpn_endpoint( Authentication, ClientCidrBlock, @@ -3409,24 +3337,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_client_vpn_route( +create_client_vpn_route( ClientVpnEndpointId, DestinationCidrBlock, TargetVpcSubnetId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateClientVpnRoute", + Dict{String,Any}( + "ClientVpnEndpointId" => ClientVpnEndpointId, + "DestinationCidrBlock" => DestinationCidrBlock, + "TargetVpcSubnetId" => TargetVpcSubnetId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateClientVpnRoute", - Dict{String,Any}( - "ClientVpnEndpointId" => ClientVpnEndpointId, - "DestinationCidrBlock" => DestinationCidrBlock, - "TargetVpcSubnetId" => TargetVpcSubnetId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_client_vpn_route( ClientVpnEndpointId, DestinationCidrBlock, @@ -3469,16 +3395,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_coip_cidr( - Cidr, CoipPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +create_coip_cidr(Cidr, CoipPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "CreateCoipCidr", Dict{String,Any}("Cidr" => Cidr, "CoipPoolId" => CoipPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_coip_cidr( Cidr, CoipPoolId, @@ -3513,16 +3436,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to assign to the CoIP address pool. """ -function create_coip_pool( +create_coip_pool( LocalGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateCoipPool", + Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateCoipPool", - Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_coip_pool( LocalGatewayRouteTableId, params::AbstractDict{String}; @@ -3586,14 +3507,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_customer_gateway(Type; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateCustomerGateway", - Dict{String,Any}("Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_customer_gateway(Type; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateCustomerGateway", + Dict{String,Any}("Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_customer_gateway( Type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3625,16 +3544,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet. """ -function create_default_subnet( +create_default_subnet( AvailabilityZone; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateDefaultSubnet", + Dict{String,Any}("AvailabilityZone" => AvailabilityZone); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateDefaultSubnet", - Dict{String,Any}("AvailabilityZone" => AvailabilityZone); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_default_subnet( AvailabilityZone, params::AbstractDict{String}; @@ -3668,9 +3585,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_default_vpc(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("CreateDefaultVpc"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_default_vpc(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("CreateDefaultVpc"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_default_vpc( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3720,16 +3636,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_dhcp_options( - dhcpConfiguration; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +create_dhcp_options(dhcpConfiguration; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "CreateDhcpOptions", Dict{String,Any}("dhcpConfiguration" => dhcpConfiguration); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_dhcp_options( dhcpConfiguration, params::AbstractDict{String}; @@ -3768,19 +3681,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to assign to the egress-only internet gateway. """ -function create_egress_only_internet_gateway( +create_egress_only_internet_gateway( VpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateEgressOnlyInternetGateway", + Dict{String,Any}("VpcId" => VpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_egress_only_internet_gateway( + VpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) - return ec2( - "CreateEgressOnlyInternetGateway", - Dict{String,Any}("VpcId" => VpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function create_egress_only_internet_gateway( - VpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) return ec2( "CreateEgressOnlyInternetGateway", Dict{String,Any}(mergewith(_merge, Dict{String,Any}("VpcId" => VpcId), params)); @@ -3843,18 +3754,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it. """ -function create_fleet( +create_fleet( TargetCapacitySpecification, item; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateFleet", + Dict{String,Any}( + "TargetCapacitySpecification" => TargetCapacitySpecification, "item" => item + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateFleet", - Dict{String,Any}( - "TargetCapacitySpecification" => TargetCapacitySpecification, "item" => item - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fleet( TargetCapacitySpecification, item, @@ -3943,16 +3852,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys all traffic). This parameter is not supported for transit gateway resource types. It is required for the other resource types. """ -function create_flow_logs( +create_flow_logs( ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateFlowLogs", + Dict{String,Any}("ResourceId" => ResourceId, "ResourceType" => ResourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateFlowLogs", - Dict{String,Any}("ResourceId" => ResourceId, "ResourceType" => ResourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_flow_logs( ResourceId, ResourceType, @@ -4001,16 +3908,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: A name for the AFI. - `"TagSpecification"`: The tags to apply to the FPGA image during creation. """ -function create_fpga_image( +create_fpga_image( InputStorageLocation; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateFpgaImage", + Dict{String,Any}("InputStorageLocation" => InputStorageLocation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateFpgaImage", - Dict{String,Any}("InputStorageLocation" => InputStorageLocation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fpga_image( InputStorageLocation, params::AbstractDict{String}; @@ -4077,14 +3982,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys image. This ensures that all buffered data and data in memory is written to the volumes before the snapshots are created. Default: false """ -function create_image(instanceId, name; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateImage", - Dict{String,Any}("instanceId" => instanceId, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_image(instanceId, name; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateImage", + Dict{String,Any}("instanceId" => instanceId, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_image( instanceId, name, @@ -4122,26 +4025,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. -- `"PreserveClientIp"`: Indicates whether your client's IP address is preserved as the - source. The value is true or false. If true, your client's IP address is used when you - connect to a resource. If false, the elastic network interface IP address is used when - you connect to a resource. Default: true +- `"PreserveClientIp"`: Indicates whether the client IP address is preserved as the source. + The following are the possible values. true - Use the client IP address as the source. + false - Use the network interface IP address as the source. Default: false - `"SecurityGroupId"`: One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint. - `"TagSpecification"`: The tags to apply to the EC2 Instance Connect Endpoint during creation. """ -function create_instance_connect_endpoint( +create_instance_connect_endpoint( SubnetId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateInstanceConnectEndpoint", + Dict{String,Any}("SubnetId" => SubnetId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateInstanceConnectEndpoint", - Dict{String,Any}("SubnetId" => SubnetId, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instance_connect_endpoint( SubnetId, params::AbstractDict{String}; @@ -4196,11 +4096,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimeRange"`: The time range for the event window. If you specify a time range, you can't specify a cron expression. """ -function create_instance_event_window(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateInstanceEventWindow"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_instance_event_window(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("CreateInstanceEventWindow"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_instance_event_window( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4232,23 +4129,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description for the conversion task or the resource being exported. The maximum length is 255 characters. """ -function create_instance_export_task( +create_instance_export_task( exportToS3, instanceId, targetEnvironment; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateInstanceExportTask", + Dict{String,Any}( + "exportToS3" => exportToS3, + "instanceId" => instanceId, + "targetEnvironment" => targetEnvironment, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateInstanceExportTask", - Dict{String,Any}( - "exportToS3" => exportToS3, - "instanceId" => instanceId, - "targetEnvironment" => targetEnvironment, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instance_export_task( exportToS3, instanceId, @@ -4289,11 +4184,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_internet_gateway(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateInternetGateway"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_internet_gateway(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("CreateInternetGateway"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_internet_gateway( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4323,6 +4215,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"EnablePrivateGua"`: Enable this option to use your own GUA ranges as private IPv6 + addresses. This option is disabled by default. - `"OperatingRegion"`: The operating Regions for the IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions. @@ -4336,21 +4230,65 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the features available in each tier and the costs associated with the tiers, see Amazon VPC pricing > IPAM tab. """ -function create_ipam(; aws_config::AbstractAWSConfig=current_aws_config()) +create_ipam(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateIpam", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_ipam( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return ec2( "CreateIpam", - Dict{String,Any}("ClientToken" => string(uuid4())); + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("ClientToken" => string(uuid4())), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_ipam( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() + +""" + create_ipam_external_resource_verification_token(ipam_id) + create_ipam_external_resource_verification_token(ipam_id, params::Dict{String,<:Any}) + +Create a verification token. A verification token is an Amazon Web Services-generated +random value that you can use to prove ownership of an external resource. For example, you +can use a verification token to validate that you control a public IP address range when +you bring an IP address range to Amazon Web Services (BYOIP). + +# Arguments +- `ipam_id`: The ID of the IPAM that will create the token. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ClientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see Ensuring idempotency. +- `"DryRun"`: A check for whether you have the required permissions for the action without + actually making the request and provides an error response. If you have the required + permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"TagSpecification"`: Token tags. +""" +create_ipam_external_resource_verification_token( + IpamId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateIpamExternalResourceVerificationToken", + Dict{String,Any}("IpamId" => IpamId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_ipam_external_resource_verification_token( + IpamId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return ec2( - "CreateIpam", + "CreateIpamExternalResourceVerificationToken", Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("ClientToken" => string(uuid4())), params) + mergewith( + _merge, + Dict{String,Any}("IpamId" => IpamId, "ClientToken" => string(uuid4())), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -4406,13 +4344,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. -- `"Locale"`: In IPAM, the locale is the Amazon Web Services Region where you want to make - an IPAM pool available for allocations. Only resources in the same Region as the locale of - the pool can get IP address allocations from the pool. You can only allocate a CIDR for a - VPC, for example, from an IPAM pool that shares a locale with the VPC’s Region. Note that - once you choose a Locale for a pool, you cannot modify it. If you do not choose a locale, - resources in Regions others than the IPAM's home region cannot use CIDRs from this pool. - Possible values: Any Amazon Web Services Region, such as us-east-1. +- `"Locale"`: The locale for the pool should be one of the following: An Amazon Web + Services Region where you want this IPAM pool to be available for allocations. The + network border group for an Amazon Web Services Local Zone where you want this IPAM pool to + be available for allocations (supported Local Zones). This option is only available for + IPAM IPv4 pools in the public scope. If you do not choose a locale, resources in Regions + others than the IPAM's home region cannot use CIDRs from this pool. Possible values: Any + Amazon Web Services Region or supported Amazon Web Services Local Zone. - `"PublicIpSource"`: The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is byoip. For more information, see Create IPv6 pools in the Amazon VPC IPAM User Guide. By default, you can @@ -4430,20 +4368,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value. """ -function create_ipam_pool( +create_ipam_pool( AddressFamily, IpamScopeId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateIpamPool", + Dict{String,Any}( + "AddressFamily" => AddressFamily, + "IpamScopeId" => IpamScopeId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateIpamPool", - Dict{String,Any}( - "AddressFamily" => AddressFamily, - "IpamScopeId" => IpamScopeId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ipam_pool( AddressFamily, IpamScopeId, @@ -4488,16 +4424,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operating Regions. - `"TagSpecification"`: Tag specifications for the IPAM resource discovery. """ -function create_ipam_resource_discovery(; - aws_config::AbstractAWSConfig=current_aws_config() +create_ipam_resource_discovery(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateIpamResourceDiscovery", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateIpamResourceDiscovery", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ipam_resource_discovery( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4538,14 +4470,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value. """ -function create_ipam_scope(IpamId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateIpamScope", - Dict{String,Any}("IpamId" => IpamId, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_ipam_scope(IpamId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateIpamScope", + Dict{String,Any}("IpamId" => IpamId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_ipam_scope( IpamId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4590,14 +4520,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_key_pair(KeyName; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateKeyPair", - Dict{String,Any}("KeyName" => KeyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_key_pair(KeyName; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateKeyPair", + Dict{String,Any}("KeyName" => KeyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_key_pair( KeyName, params::AbstractDict{String}; @@ -4641,21 +4569,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter in the launch template data structure. - `"VersionDescription"`: A description for the first version of the launch template. """ -function create_launch_template( +create_launch_template( LaunchTemplateData, LaunchTemplateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateLaunchTemplate", + Dict{String,Any}( + "LaunchTemplateData" => LaunchTemplateData, + "LaunchTemplateName" => LaunchTemplateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateLaunchTemplate", - Dict{String,Any}( - "LaunchTemplateData" => LaunchTemplateData, - "LaunchTemplateName" => LaunchTemplateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_launch_template( LaunchTemplateData, LaunchTemplateName, @@ -4719,16 +4645,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys only the launch parameters that you specify for the new version. - `"VersionDescription"`: A description for the version of the launch template. """ -function create_launch_template_version( +create_launch_template_version( LaunchTemplateData; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateLaunchTemplateVersion", + Dict{String,Any}("LaunchTemplateData" => LaunchTemplateData); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateLaunchTemplateVersion", - Dict{String,Any}("LaunchTemplateData" => LaunchTemplateData); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_launch_template_version( LaunchTemplateData, params::AbstractDict{String}; @@ -4769,16 +4693,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LocalGatewayVirtualInterfaceGroupId"`: The ID of the virtual interface group. - `"NetworkInterfaceId"`: The ID of the network interface. """ -function create_local_gateway_route( +create_local_gateway_route( LocalGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateLocalGatewayRoute", + Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateLocalGatewayRoute", - Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_local_gateway_route( LocalGatewayRouteTableId, params::AbstractDict{String}; @@ -4815,16 +4737,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Mode"`: The mode of the local gateway route table. - `"TagSpecification"`: The tags assigned to the local gateway route table. """ -function create_local_gateway_route_table( +create_local_gateway_route_table( LocalGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateLocalGatewayRouteTable", + Dict{String,Any}("LocalGatewayId" => LocalGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateLocalGatewayRouteTable", - Dict{String,Any}("LocalGatewayId" => LocalGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_local_gateway_route_table( LocalGatewayId, params::AbstractDict{String}; @@ -4859,21 +4779,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagSpecification"`: The tags assigned to the local gateway route table virtual interface group association. """ -function create_local_gateway_route_table_virtual_interface_group_association( +create_local_gateway_route_table_virtual_interface_group_association( LocalGatewayRouteTableId, LocalGatewayVirtualInterfaceGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", + Dict{String,Any}( + "LocalGatewayRouteTableId" => LocalGatewayRouteTableId, + "LocalGatewayVirtualInterfaceGroupId" => LocalGatewayVirtualInterfaceGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", - Dict{String,Any}( - "LocalGatewayRouteTableId" => LocalGatewayRouteTableId, - "LocalGatewayVirtualInterfaceGroupId" => LocalGatewayVirtualInterfaceGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_local_gateway_route_table_virtual_interface_group_association( LocalGatewayRouteTableId, LocalGatewayVirtualInterfaceGroupId, @@ -4915,18 +4833,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to assign to the local gateway route table VPC association. """ -function create_local_gateway_route_table_vpc_association( +create_local_gateway_route_table_vpc_association( LocalGatewayRouteTableId, VpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateLocalGatewayRouteTableVpcAssociation", + Dict{String,Any}( + "LocalGatewayRouteTableId" => LocalGatewayRouteTableId, "VpcId" => VpcId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateLocalGatewayRouteTableVpcAssociation", - Dict{String,Any}( - "LocalGatewayRouteTableId" => LocalGatewayRouteTableId, "VpcId" => VpcId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_local_gateway_route_table_vpc_association( LocalGatewayRouteTableId, VpcId, @@ -4973,24 +4889,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Entry"`: One or more entries for the prefix list. - `"TagSpecification"`: The tags to apply to the prefix list during creation. """ -function create_managed_prefix_list( +create_managed_prefix_list( AddressFamily, MaxEntries, PrefixListName; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateManagedPrefixList", + Dict{String,Any}( + "AddressFamily" => AddressFamily, + "MaxEntries" => MaxEntries, + "PrefixListName" => PrefixListName, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateManagedPrefixList", - Dict{String,Any}( - "AddressFamily" => AddressFamily, - "MaxEntries" => MaxEntries, - "PrefixListName" => PrefixListName, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_managed_prefix_list( AddressFamily, MaxEntries, @@ -5066,14 +4980,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide. - `"TagSpecification"`: The tags to assign to the NAT gateway. """ -function create_nat_gateway(SubnetId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateNatGateway", - Dict{String,Any}("SubnetId" => SubnetId, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_nat_gateway(SubnetId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateNatGateway", + Dict{String,Any}("SubnetId" => SubnetId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_nat_gateway( SubnetId, params::AbstractDict{String}; @@ -5113,14 +5025,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_network_acl(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateNetworkAcl", - Dict{String,Any}("vpcId" => vpcId, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_network_acl(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateNetworkAcl", + Dict{String,Any}("vpcId" => vpcId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_network_acl( vpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5184,27 +5094,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"portRange"`: TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP). """ -function create_network_acl_entry( +create_network_acl_entry( egress, networkAclId, protocol, ruleAction, ruleNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateNetworkAclEntry", + Dict{String,Any}( + "egress" => egress, + "networkAclId" => networkAclId, + "protocol" => protocol, + "ruleAction" => ruleAction, + "ruleNumber" => ruleNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateNetworkAclEntry", - Dict{String,Any}( - "egress" => egress, - "networkAclId" => networkAclId, - "protocol" => protocol, - "ruleAction" => ruleAction, - "ruleNumber" => ruleNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network_acl_entry( egress, networkAclId, @@ -5256,16 +5164,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MatchPath"`: The paths to match. - `"TagSpecification"`: The tags to apply. """ -function create_network_insights_access_scope( +create_network_insights_access_scope( ClientToken; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateNetworkInsightsAccessScope", + Dict{String,Any}("ClientToken" => ClientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateNetworkInsightsAccessScope", - Dict{String,Any}("ClientToken" => ClientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network_insights_access_scope( ClientToken, params::AbstractDict{String}; @@ -5314,18 +5220,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceIp"`: The IP address of the source. - `"TagSpecification"`: The tags to add to the path. """ -function create_network_insights_path( +create_network_insights_path( ClientToken, Protocol, Source; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateNetworkInsightsPath", + Dict{String,Any}( + "ClientToken" => ClientToken, "Protocol" => Protocol, "Source" => Source + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateNetworkInsightsPath", - Dict{String,Any}( - "ClientToken" => ClientToken, "Protocol" => Protocol, "Source" => Source - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network_insights_path( ClientToken, Protocol, @@ -5424,16 +5328,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes. """ -function create_network_interface( - subnetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +create_network_interface(subnetId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "CreateNetworkInterface", Dict{String,Any}("subnetId" => subnetId, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_network_interface( subnetId, params::AbstractDict{String}; @@ -5468,23 +5369,21 @@ Services account only, and only one account at a time. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AwsAccountId"`: The Amazon Web Services account ID. -- `"AwsService"`: The Amazon Web Service. Currently not supported. +- `"AwsService"`: The Amazon Web Services service. Currently not supported. - `"DryRun"`: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_network_interface_permission( +create_network_interface_permission( NetworkInterfaceId, Permission; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateNetworkInterfacePermission", + Dict{String,Any}( + "NetworkInterfaceId" => NetworkInterfaceId, "Permission" => Permission + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateNetworkInterfacePermission", - Dict{String,Any}( - "NetworkInterfaceId" => NetworkInterfaceId, "Permission" => Permission - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network_interface_permission( NetworkInterfaceId, Permission, @@ -5534,11 +5433,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account for the Region. Constraints: Up to 255 ASCII characters - `"strategy"`: The placement strategy. """ -function create_placement_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreatePlacementGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_placement_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("CreatePlacementGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_placement_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5564,16 +5460,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"NetworkBorderGroup"`: The Availability Zone (AZ) or Local Zone (LZ) network border + group that the resource that the IP address is assigned to is in. Defaults to an AZ network + border group. For more information on available Local Zones, see Local Zone availability in + the Amazon EC2 User Guide. - `"TagSpecification"`: The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value. """ -function create_public_ipv4_pool(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreatePublicIpv4Pool"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_public_ipv4_pool(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("CreatePublicIpv4Pool"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_public_ipv4_pool( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5621,16 +5518,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter. - `"TagSpecification"`: The tags to apply to the root volume replacement task. """ -function create_replace_root_volume_task( +create_replace_root_volume_task( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateReplaceRootVolumeTask", + Dict{String,Any}("InstanceId" => InstanceId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateReplaceRootVolumeTask", - Dict{String,Any}("InstanceId" => InstanceId, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replace_root_volume_task( InstanceId, params::AbstractDict{String}; @@ -5685,25 +5580,23 @@ Guide. - `reserved_instances_id`: The ID of the active Standard Reserved Instance. """ -function create_reserved_instances_listing( +create_reserved_instances_listing( clientToken, instanceCount, priceSchedules, reservedInstancesId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateReservedInstancesListing", + Dict{String,Any}( + "clientToken" => clientToken, + "instanceCount" => instanceCount, + "priceSchedules" => priceSchedules, + "reservedInstancesId" => reservedInstancesId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateReservedInstancesListing", - Dict{String,Any}( - "clientToken" => clientToken, - "instanceCount" => instanceCount, - "priceSchedules" => priceSchedules, - "reservedInstancesId" => reservedInstancesId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_reserved_instances_listing( clientToken, instanceCount, @@ -5758,16 +5651,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys image. To tag the snapshots, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created. """ -function create_restore_image_task( +create_restore_image_task( Bucket, ObjectKey; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateRestoreImageTask", + Dict{String,Any}("Bucket" => Bucket, "ObjectKey" => ObjectKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateRestoreImageTask", - Dict{String,Any}("Bucket" => Bucket, "ObjectKey" => ObjectKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_restore_image_task( Bucket, ObjectKey, @@ -5835,14 +5726,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"networkInterfaceId"`: The ID of a network interface. - `"vpcPeeringConnectionId"`: The ID of a VPC peering connection. """ -function create_route(routeTableId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateRoute", - Dict{String,Any}("routeTableId" => routeTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_route(routeTableId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateRoute", + Dict{String,Any}("routeTableId" => routeTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_route( routeTableId, params::AbstractDict{String}; @@ -5878,14 +5767,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_route_table(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateRouteTable", - Dict{String,Any}("vpcId" => vpcId, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_route_table(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateRouteTable", + Dict{String,Any}("vpcId" => vpcId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_route_table( vpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5935,16 +5822,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_security_group( +create_security_group( GroupDescription, GroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateSecurityGroup", + Dict{String,Any}("GroupDescription" => GroupDescription, "GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateSecurityGroup", - Dict{String,Any}("GroupDescription" => GroupDescription, "GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_security_group( GroupDescription, GroupName, @@ -6013,14 +5898,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_snapshot(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateSnapshot", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_snapshot(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateSnapshot", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_snapshot( VolumeId, params::AbstractDict{String}; @@ -6073,16 +5956,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon EBS User Guide. - `"TagSpecification"`: Tags to apply to every snapshot specified by the instance. """ -function create_snapshots( +create_snapshots( InstanceSpecification; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateSnapshots", + Dict{String,Any}("InstanceSpecification" => InstanceSpecification); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateSnapshots", - Dict{String,Any}("InstanceSpecification" => InstanceSpecification); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_snapshots( InstanceSpecification, params::AbstractDict{String}; @@ -6122,16 +6003,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"prefix"`: The prefix for the data feed file names. """ -function create_spot_datafeed_subscription( +create_spot_datafeed_subscription( bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateSpotDatafeedSubscription", + Dict{String,Any}("bucket" => bucket); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateSpotDatafeedSubscription", - Dict{String,Any}("bucket" => bucket); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_spot_datafeed_subscription( bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6166,16 +6045,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"S3ObjectTag"`: The tags to apply to the AMI object that will be stored in the Amazon S3 bucket. """ -function create_store_image_task( +create_store_image_task( Bucket, ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateStoreImageTask", + Dict{String,Any}("Bucket" => Bucket, "ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateStoreImageTask", - Dict{String,Any}("Bucket" => Bucket, "ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_store_image_task( Bucket, ImageId, @@ -6244,14 +6121,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_subnet(VpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateSubnet", - Dict{String,Any}("VpcId" => VpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_subnet(VpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateSubnet", + Dict{String,Any}("VpcId" => VpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_subnet( VpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6287,18 +6162,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to assign to the subnet CIDR reservation. """ -function create_subnet_cidr_reservation( +create_subnet_cidr_reservation( Cidr, ReservationType, SubnetId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateSubnetCidrReservation", + Dict{String,Any}( + "Cidr" => Cidr, "ReservationType" => ReservationType, "SubnetId" => SubnetId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateSubnetCidrReservation", - Dict{String,Any}( - "Cidr" => Cidr, "ReservationType" => ReservationType, "SubnetId" => SubnetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subnet_cidr_reservation( Cidr, ReservationType, @@ -6349,14 +6222,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_tags(ResourceId, Tag; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateTags", - Dict{String,Any}("ResourceId" => ResourceId, "Tag" => Tag); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_tags(ResourceId, Tag; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateTags", + Dict{String,Any}("ResourceId" => ResourceId, "Tag" => Tag); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_tags( ResourceId, Tag, @@ -6395,14 +6266,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to assign to a Traffic Mirror filter. """ -function create_traffic_mirror_filter(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateTrafficMirrorFilter", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_traffic_mirror_filter(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateTrafficMirrorFilter", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_traffic_mirror_filter( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6448,7 +6317,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourcePortRange"`: The source port range. - `"TagSpecification"`: Traffic Mirroring tags specifications. """ -function create_traffic_mirror_filter_rule( +create_traffic_mirror_filter_rule( DestinationCidrBlock, RuleAction, RuleNumber, @@ -6456,22 +6325,20 @@ function create_traffic_mirror_filter_rule( TrafficDirection, TrafficMirrorFilterId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateTrafficMirrorFilterRule", + Dict{String,Any}( + "DestinationCidrBlock" => DestinationCidrBlock, + "RuleAction" => RuleAction, + "RuleNumber" => RuleNumber, + "SourceCidrBlock" => SourceCidrBlock, + "TrafficDirection" => TrafficDirection, + "TrafficMirrorFilterId" => TrafficMirrorFilterId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTrafficMirrorFilterRule", - Dict{String,Any}( - "DestinationCidrBlock" => DestinationCidrBlock, - "RuleAction" => RuleAction, - "RuleNumber" => RuleNumber, - "SourceCidrBlock" => SourceCidrBlock, - "TrafficDirection" => TrafficDirection, - "TrafficMirrorFilterId" => TrafficMirrorFilterId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_traffic_mirror_filter_rule( DestinationCidrBlock, RuleAction, @@ -6546,26 +6413,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys about the VXLAN protocol, see RFC 7348. If you do not specify a VirtualNetworkId, an account-wide unique ID is chosen at random. """ -function create_traffic_mirror_session( +create_traffic_mirror_session( NetworkInterfaceId, SessionNumber, TrafficMirrorFilterId, TrafficMirrorTargetId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateTrafficMirrorSession", + Dict{String,Any}( + "NetworkInterfaceId" => NetworkInterfaceId, + "SessionNumber" => SessionNumber, + "TrafficMirrorFilterId" => TrafficMirrorFilterId, + "TrafficMirrorTargetId" => TrafficMirrorTargetId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTrafficMirrorSession", - Dict{String,Any}( - "NetworkInterfaceId" => NetworkInterfaceId, - "SessionNumber" => SessionNumber, - "TrafficMirrorFilterId" => TrafficMirrorFilterId, - "TrafficMirrorTargetId" => TrafficMirrorTargetId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_traffic_mirror_session( NetworkInterfaceId, SessionNumber, @@ -6619,14 +6484,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that is associated with the target. - `"TagSpecification"`: The tags to assign to the Traffic Mirror target. """ -function create_traffic_mirror_target(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateTrafficMirrorTarget", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_traffic_mirror_target(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateTrafficMirrorTarget", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_traffic_mirror_target( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6668,11 +6531,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Options"`: The transit gateway options. - `"TagSpecification"`: The tags to apply to the transit gateway. """ -function create_transit_gateway(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateTransitGateway"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_transit_gateway(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("CreateTransitGateway"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_transit_gateway( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6705,21 +6565,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to apply to the Connect attachment. """ -function create_transit_gateway_connect( +create_transit_gateway_connect( Options, TransportTransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateTransitGatewayConnect", + Dict{String,Any}( + "Options" => Options, + "TransportTransitGatewayAttachmentId" => TransportTransitGatewayAttachmentId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayConnect", - Dict{String,Any}( - "Options" => Options, - "TransportTransitGatewayAttachmentId" => TransportTransitGatewayAttachmentId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_connect( Options, TransportTransitGatewayAttachmentId, @@ -6778,23 +6636,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys block. If not specified, Amazon automatically assigns the first available IP address from the transit gateway CIDR block. """ -function create_transit_gateway_connect_peer( +create_transit_gateway_connect_peer( PeerAddress, TransitGatewayAttachmentId, item; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateTransitGatewayConnectPeer", + Dict{String,Any}( + "PeerAddress" => PeerAddress, + "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, + "item" => item, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayConnectPeer", - Dict{String,Any}( - "PeerAddress" => PeerAddress, - "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, - "item" => item, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_connect_peer( PeerAddress, TransitGatewayAttachmentId, @@ -6839,16 +6695,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Options"`: The options for the transit gateway multicast domain. - `"TagSpecification"`: The tags for the transit gateway multicast domain. """ -function create_transit_gateway_multicast_domain( +create_transit_gateway_multicast_domain( TransitGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateTransitGatewayMulticastDomain", + Dict{String,Any}("TransitGatewayId" => TransitGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayMulticastDomain", - Dict{String,Any}("TransitGatewayId" => TransitGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_multicast_domain( TransitGatewayId, params::AbstractDict{String}; @@ -6891,25 +6745,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Options"`: Requests a transit gateway peering attachment. - `"TagSpecification"`: The tags to apply to the transit gateway peering attachment. """ -function create_transit_gateway_peering_attachment( +create_transit_gateway_peering_attachment( PeerAccountId, PeerRegion, PeerTransitGatewayId, TransitGatewayId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateTransitGatewayPeeringAttachment", + Dict{String,Any}( + "PeerAccountId" => PeerAccountId, + "PeerRegion" => PeerRegion, + "PeerTransitGatewayId" => PeerTransitGatewayId, + "TransitGatewayId" => TransitGatewayId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayPeeringAttachment", - Dict{String,Any}( - "PeerAccountId" => PeerAccountId, - "PeerRegion" => PeerRegion, - "PeerTransitGatewayId" => PeerTransitGatewayId, - "TransitGatewayId" => TransitGatewayId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_peering_attachment( PeerAccountId, PeerRegion, @@ -6954,16 +6806,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagSpecifications"`: The tags specification for the transit gateway policy table created during the request. """ -function create_transit_gateway_policy_table( +create_transit_gateway_policy_table( TransitGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateTransitGatewayPolicyTable", + Dict{String,Any}("TransitGatewayId" => TransitGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayPolicyTable", - Dict{String,Any}("TransitGatewayId" => TransitGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_policy_table( TransitGatewayId, params::AbstractDict{String}; @@ -6999,21 +6849,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TransitGatewayAttachmentId"`: The ID of the attachment to which traffic is routed. """ -function create_transit_gateway_prefix_list_reference( +create_transit_gateway_prefix_list_reference( PrefixListId, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateTransitGatewayPrefixListReference", + Dict{String,Any}( + "PrefixListId" => PrefixListId, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayPrefixListReference", - Dict{String,Any}( - "PrefixListId" => PrefixListId, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_prefix_list_reference( PrefixListId, TransitGatewayRouteTableId, @@ -7056,21 +6904,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TransitGatewayAttachmentId"`: The ID of the attachment. """ -function create_transit_gateway_route( +create_transit_gateway_route( DestinationCidrBlock, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateTransitGatewayRoute", + Dict{String,Any}( + "DestinationCidrBlock" => DestinationCidrBlock, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayRoute", - Dict{String,Any}( - "DestinationCidrBlock" => DestinationCidrBlock, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_route( DestinationCidrBlock, TransitGatewayRouteTableId, @@ -7110,16 +6956,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecifications"`: The tags to apply to the transit gateway route table. """ -function create_transit_gateway_route_table( +create_transit_gateway_route_table( TransitGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateTransitGatewayRouteTable", + Dict{String,Any}("TransitGatewayId" => TransitGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayRouteTable", - Dict{String,Any}("TransitGatewayId" => TransitGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_route_table( TransitGatewayId, params::AbstractDict{String}; @@ -7155,21 +6999,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagSpecification"`: The tags specifications applied to the transit gateway route table announcement. """ -function create_transit_gateway_route_table_announcement( +create_transit_gateway_route_table_announcement( PeeringAttachmentId, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateTransitGatewayRouteTableAnnouncement", + Dict{String,Any}( + "PeeringAttachmentId" => PeeringAttachmentId, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayRouteTableAnnouncement", - Dict{String,Any}( - "PeeringAttachmentId" => PeeringAttachmentId, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_route_table_announcement( PeeringAttachmentId, TransitGatewayRouteTableId, @@ -7221,18 +7063,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified subnet. - `"TagSpecifications"`: The tags to apply to the VPC attachment. """ -function create_transit_gateway_vpc_attachment( +create_transit_gateway_vpc_attachment( TransitGatewayId, VpcId, item; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateTransitGatewayVpcAttachment", + Dict{String,Any}( + "TransitGatewayId" => TransitGatewayId, "VpcId" => VpcId, "item" => item + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateTransitGatewayVpcAttachment", - Dict{String,Any}( - "TransitGatewayId" => TransitGatewayId, "VpcId" => VpcId, "item" => item - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_vpc_attachment( TransitGatewayId, VpcId, @@ -7293,7 +7133,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SseSpecification"`: The options for server side encryption. - `"TagSpecification"`: The tags to assign to the Verified Access endpoint. """ -function create_verified_access_endpoint( +create_verified_access_endpoint( ApplicationDomain, AttachmentType, DomainCertificateArn, @@ -7301,22 +7141,20 @@ function create_verified_access_endpoint( EndpointType, VerifiedAccessGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateVerifiedAccessEndpoint", + Dict{String,Any}( + "ApplicationDomain" => ApplicationDomain, + "AttachmentType" => AttachmentType, + "DomainCertificateArn" => DomainCertificateArn, + "EndpointDomainPrefix" => EndpointDomainPrefix, + "EndpointType" => EndpointType, + "VerifiedAccessGroupId" => VerifiedAccessGroupId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVerifiedAccessEndpoint", - Dict{String,Any}( - "ApplicationDomain" => ApplicationDomain, - "AttachmentType" => AttachmentType, - "DomainCertificateArn" => DomainCertificateArn, - "EndpointDomainPrefix" => EndpointDomainPrefix, - "EndpointType" => EndpointType, - "VerifiedAccessGroupId" => VerifiedAccessGroupId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_verified_access_endpoint( ApplicationDomain, AttachmentType, @@ -7374,19 +7212,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SseSpecification"`: The options for server side encryption. - `"TagSpecification"`: The tags to assign to the Verified Access group. """ -function create_verified_access_group( +create_verified_access_group( VerifiedAccessInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateVerifiedAccessGroup", + Dict{String,Any}( + "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVerifiedAccessGroup", - Dict{String,Any}( - "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_verified_access_group( VerifiedAccessInstanceId, params::AbstractDict{String}; @@ -7428,16 +7264,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (FIPS) on the instance. - `"TagSpecification"`: The tags to assign to the Verified Access instance. """ -function create_verified_access_instance(; - aws_config::AbstractAWSConfig=current_aws_config() +create_verified_access_instance(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateVerifiedAccessInstance", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVerifiedAccessInstance", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_verified_access_instance( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7483,22 +7315,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserTrustProviderType"`: The type of user-based trust provider. This parameter is required when the provider type is user. """ -function create_verified_access_trust_provider( +create_verified_access_trust_provider( PolicyReferenceName, TrustProviderType; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateVerifiedAccessTrustProvider", + Dict{String,Any}( + "PolicyReferenceName" => PolicyReferenceName, + "TrustProviderType" => TrustProviderType, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVerifiedAccessTrustProvider", - Dict{String,Any}( - "PolicyReferenceName" => PolicyReferenceName, - "TrustProviderType" => TrustProviderType, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_verified_access_trust_provider( PolicyReferenceName, TrustProviderType, @@ -7567,7 +7397,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys enable Multi-Attach, you can attach the volume to up to 16 Instances built on the Nitro System in the same Availability Zone. This parameter is supported with io1 and io2 volumes only. For more information, see Amazon EBS Multi-Attach in the Amazon EBS User Guide. -- `"OutpostArn"`: The Amazon Resource Name (ARN) of the Outpost. +- `"OutpostArn"`: The Amazon Resource Name (ARN) of the Outpost on which to create the + volume. If you intend to use a volume with an instance running on an outpost, then you must + create the volume on the same outpost as the instance. You can't use a volume created in an + Amazon Web Services Region with an instance on an Amazon Web Services outpost, or the other + way around. - `"Size"`: The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size. The following are the @@ -7595,16 +7429,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Supported instance types. """ -function create_volume(AvailabilityZone; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateVolume", - Dict{String,Any}( - "AvailabilityZone" => AvailabilityZone, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_volume(AvailabilityZone; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateVolume", + Dict{String,Any}( + "AvailabilityZone" => AvailabilityZone, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_volume( AvailabilityZone, params::AbstractDict{String}; @@ -7680,9 +7512,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys dedicated or host into a dedicated tenancy VPC. Important: The host value cannot be used with this parameter. Use the default or dedicated values only. Default: default """ -function create_vpc(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("CreateVpc"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_vpc(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("CreateVpc"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_vpc( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7735,16 +7566,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagSpecification"`: The tags to associate with the endpoint. - `"VpcEndpointType"`: The type of endpoint. Default: Gateway """ -function create_vpc_endpoint( +create_vpc_endpoint( ServiceName, VpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateVpcEndpoint", + Dict{String,Any}("ServiceName" => ServiceName, "VpcId" => VpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVpcEndpoint", - Dict{String,Any}("ServiceName" => ServiceName, "VpcId" => VpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_endpoint( ServiceName, VpcId, @@ -7792,18 +7621,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServiceId"`: The ID of the endpoint service. - `"VpcEndpointId"`: The ID of the endpoint. """ -function create_vpc_endpoint_connection_notification( +create_vpc_endpoint_connection_notification( ConnectionNotificationArn, item; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateVpcEndpointConnectionNotification", + Dict{String,Any}( + "ConnectionNotificationArn" => ConnectionNotificationArn, "item" => item + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVpcEndpointConnectionNotification", - Dict{String,Any}( - "ConnectionNotificationArn" => ConnectionNotificationArn, "item" => item - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_endpoint_connection_notification( ConnectionNotificationArn, item, @@ -7857,15 +7684,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and ipv6. - `"TagSpecification"`: The tags to associate with the service. """ -function create_vpc_endpoint_service_configuration(; +create_vpc_endpoint_service_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateVpcEndpointServiceConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVpcEndpointServiceConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_endpoint_service_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7909,16 +7734,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"peerVpcId"`: The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. """ -function create_vpc_peering_connection( - vpcId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +create_vpc_peering_connection(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "CreateVpcPeeringConnection", Dict{String,Any}("vpcId" => vpcId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_vpc_peering_connection( vpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7961,16 +7783,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"options"`: The options for the VPN connection. """ -function create_vpn_connection( +create_vpn_connection( CustomerGatewayId, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "CreateVpnConnection", + Dict{String,Any}("CustomerGatewayId" => CustomerGatewayId, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVpnConnection", - Dict{String,Any}("CustomerGatewayId" => CustomerGatewayId, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpn_connection( CustomerGatewayId, Type, @@ -8006,21 +7826,19 @@ Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide - `vpn_connection_id`: The ID of the VPN connection. """ -function create_vpn_connection_route( +create_vpn_connection_route( DestinationCidrBlock, VpnConnectionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "CreateVpnConnectionRoute", + Dict{String,Any}( + "DestinationCidrBlock" => DestinationCidrBlock, + "VpnConnectionId" => VpnConnectionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "CreateVpnConnectionRoute", - Dict{String,Any}( - "DestinationCidrBlock" => DestinationCidrBlock, - "VpnConnectionId" => VpnConnectionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpn_connection_route( DestinationCidrBlock, VpnConnectionId, @@ -8067,14 +7885,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function create_vpn_gateway(Type; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "CreateVpnGateway", - Dict{String,Any}("Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_vpn_gateway(Type; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "CreateVpnGateway", + Dict{String,Any}("Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_vpn_gateway( Type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8103,16 +7919,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_carrier_gateway( +delete_carrier_gateway( CarrierGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteCarrierGateway", + Dict{String,Any}("CarrierGatewayId" => CarrierGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteCarrierGateway", - Dict{String,Any}("CarrierGatewayId" => CarrierGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_carrier_gateway( CarrierGatewayId, params::AbstractDict{String}; @@ -8146,16 +7960,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_client_vpn_endpoint( +delete_client_vpn_endpoint( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteClientVpnEndpoint", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteClientVpnEndpoint", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_client_vpn_endpoint( ClientVpnEndpointId, params::AbstractDict{String}; @@ -8197,21 +8009,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TargetVpcSubnetId"`: The ID of the target subnet used by the route. """ -function delete_client_vpn_route( +delete_client_vpn_route( ClientVpnEndpointId, DestinationCidrBlock; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DeleteClientVpnRoute", + Dict{String,Any}( + "ClientVpnEndpointId" => ClientVpnEndpointId, + "DestinationCidrBlock" => DestinationCidrBlock, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteClientVpnRoute", - Dict{String,Any}( - "ClientVpnEndpointId" => ClientVpnEndpointId, - "DestinationCidrBlock" => DestinationCidrBlock, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_client_vpn_route( ClientVpnEndpointId, DestinationCidrBlock, @@ -8251,16 +8061,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_coip_cidr( - Cidr, CoipPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +delete_coip_cidr(Cidr, CoipPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DeleteCoipCidr", Dict{String,Any}("Cidr" => Cidr, "CoipPoolId" => CoipPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_coip_cidr( Cidr, CoipPoolId, @@ -8294,14 +8101,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_coip_pool(CoipPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteCoipPool", - Dict{String,Any}("CoipPoolId" => CoipPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_coip_pool(CoipPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteCoipPool", + Dict{String,Any}("CoipPoolId" => CoipPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_coip_pool( CoipPoolId, params::AbstractDict{String}; @@ -8333,16 +8138,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_customer_gateway( +delete_customer_gateway( CustomerGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteCustomerGateway", + Dict{String,Any}("CustomerGatewayId" => CustomerGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteCustomerGateway", - Dict{String,Any}("CustomerGatewayId" => CustomerGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_customer_gateway( CustomerGatewayId, params::AbstractDict{String}; @@ -8377,16 +8180,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_dhcp_options( - DhcpOptionsId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +delete_dhcp_options(DhcpOptionsId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DeleteDhcpOptions", Dict{String,Any}("DhcpOptionsId" => DhcpOptionsId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dhcp_options( DhcpOptionsId, params::AbstractDict{String}; @@ -8417,16 +8217,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_egress_only_internet_gateway( +delete_egress_only_internet_gateway( EgressOnlyInternetGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteEgressOnlyInternetGateway", + Dict{String,Any}("EgressOnlyInternetGatewayId" => EgressOnlyInternetGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteEgressOnlyInternetGateway", - Dict{String,Any}("EgressOnlyInternetGatewayId" => EgressOnlyInternetGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_egress_only_internet_gateway( EgressOnlyInternetGatewayId, params::AbstractDict{String}; @@ -8481,16 +8279,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_fleets( +delete_fleets( FleetId, TerminateInstances; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteFleets", + Dict{String,Any}("FleetId" => FleetId, "TerminateInstances" => TerminateInstances); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteFleets", - Dict{String,Any}("FleetId" => FleetId, "TerminateInstances" => TerminateInstances); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_fleets( FleetId, TerminateInstances, @@ -8528,14 +8324,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_flow_logs(FlowLogId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteFlowLogs", - Dict{String,Any}("FlowLogId" => FlowLogId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_flow_logs(FlowLogId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteFlowLogs", + Dict{String,Any}("FlowLogId" => FlowLogId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_flow_logs( FlowLogId, params::AbstractDict{String}; @@ -8566,14 +8360,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_fpga_image(FpgaImageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteFpgaImage", - Dict{String,Any}("FpgaImageId" => FpgaImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fpga_image(FpgaImageId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteFpgaImage", + Dict{String,Any}("FpgaImageId" => FpgaImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fpga_image( FpgaImageId, params::AbstractDict{String}; @@ -8604,16 +8396,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_instance_connect_endpoint( +delete_instance_connect_endpoint( InstanceConnectEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteInstanceConnectEndpoint", + Dict{String,Any}("InstanceConnectEndpointId" => InstanceConnectEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteInstanceConnectEndpoint", - Dict{String,Any}("InstanceConnectEndpointId" => InstanceConnectEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_instance_connect_endpoint( InstanceConnectEndpointId, params::AbstractDict{String}; @@ -8651,16 +8441,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ForceDelete"`: Specify true to force delete the event window. Use the force delete parameter if the event window is currently associated with targets. """ -function delete_instance_event_window( +delete_instance_event_window( InstanceEventWindowId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteInstanceEventWindow", + Dict{String,Any}("InstanceEventWindowId" => InstanceEventWindowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteInstanceEventWindow", - Dict{String,Any}("InstanceEventWindowId" => InstanceEventWindowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_instance_event_window( InstanceEventWindowId, params::AbstractDict{String}; @@ -8696,16 +8484,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_internet_gateway( +delete_internet_gateway( internetGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteInternetGateway", + Dict{String,Any}("internetGatewayId" => internetGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteInternetGateway", - Dict{String,Any}("internetGatewayId" => internetGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_internet_gateway( internetGatewayId, params::AbstractDict{String}; @@ -8749,20 +8535,70 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_ipam(IpamId; aws_config::AbstractAWSConfig=current_aws_config()) +delete_ipam(IpamId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteIpam", + Dict{String,Any}("IpamId" => IpamId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_ipam( + IpamId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return ec2( "DeleteIpam", - Dict{String,Any}("IpamId" => IpamId); + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("IpamId" => IpamId), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function delete_ipam( - IpamId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() + +""" + delete_ipam_external_resource_verification_token(ipam_external_resource_verification_token_id) + delete_ipam_external_resource_verification_token(ipam_external_resource_verification_token_id, params::Dict{String,<:Any}) + +Delete a verification token. A verification token is an Amazon Web Services-generated +random value that you can use to prove ownership of an external resource. For example, you +can use a verification token to validate that you control a public IP address range when +you bring an IP address range to Amazon Web Services (BYOIP). + +# Arguments +- `ipam_external_resource_verification_token_id`: The token ID. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"DryRun"`: A check for whether you have the required permissions for the action without + actually making the request and provides an error response. If you have the required + permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +""" +delete_ipam_external_resource_verification_token( + IpamExternalResourceVerificationTokenId; + aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DeleteIpamExternalResourceVerificationToken", + Dict{String,Any}( + "IpamExternalResourceVerificationTokenId" => + IpamExternalResourceVerificationTokenId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_ipam_external_resource_verification_token( + IpamExternalResourceVerificationTokenId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return ec2( - "DeleteIpam", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("IpamId" => IpamId), params)); + "DeleteIpamExternalResourceVerificationToken", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "IpamExternalResourceVerificationTokenId" => + IpamExternalResourceVerificationTokenId, + ), + params, + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -8791,14 +8627,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_ipam_pool(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteIpamPool", - Dict{String,Any}("IpamPoolId" => IpamPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_ipam_pool(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteIpamPool", + Dict{String,Any}("IpamPoolId" => IpamPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_ipam_pool( IpamPoolId, params::AbstractDict{String}; @@ -8830,16 +8664,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_ipam_resource_discovery( +delete_ipam_resource_discovery( IpamResourceDiscoveryId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteIpamResourceDiscovery", + Dict{String,Any}("IpamResourceDiscoveryId" => IpamResourceDiscoveryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteIpamResourceDiscovery", - Dict{String,Any}("IpamResourceDiscoveryId" => IpamResourceDiscoveryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_ipam_resource_discovery( IpamResourceDiscoveryId, params::AbstractDict{String}; @@ -8875,14 +8707,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_ipam_scope(IpamScopeId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteIpamScope", - Dict{String,Any}("IpamScopeId" => IpamScopeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_ipam_scope(IpamScopeId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteIpamScope", + Dict{String,Any}("IpamScopeId" => IpamScopeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_ipam_scope( IpamScopeId, params::AbstractDict{String}; @@ -8912,9 +8742,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_key_pair(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DeleteKeyPair"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +delete_key_pair(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DeleteKeyPair"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_key_pair( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8939,11 +8768,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LaunchTemplateName"`: The name of the launch template. You must specify either the launch template ID or the launch template name, but not both. """ -function delete_launch_template(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteLaunchTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_launch_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DeleteLaunchTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_launch_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8981,16 +8807,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LaunchTemplateName"`: The name of the launch template. You must specify either the launch template ID or the launch template name, but not both. """ -function delete_launch_template_versions( +delete_launch_template_versions( LaunchTemplateVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteLaunchTemplateVersions", + Dict{String,Any}("LaunchTemplateVersion" => LaunchTemplateVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteLaunchTemplateVersions", - Dict{String,Any}("LaunchTemplateVersion" => LaunchTemplateVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_launch_template_versions( LaunchTemplateVersion, params::AbstractDict{String}; @@ -9029,16 +8853,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_local_gateway_route( +delete_local_gateway_route( LocalGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteLocalGatewayRoute", + Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteLocalGatewayRoute", - Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_local_gateway_route( LocalGatewayRouteTableId, params::AbstractDict{String}; @@ -9073,16 +8895,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_local_gateway_route_table( +delete_local_gateway_route_table( LocalGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteLocalGatewayRouteTable", + Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteLocalGatewayRouteTable", - Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_local_gateway_route_table( LocalGatewayRouteTableId, params::AbstractDict{String}; @@ -9118,20 +8938,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_local_gateway_route_table_virtual_interface_group_association( +delete_local_gateway_route_table_virtual_interface_group_association( LocalGatewayRouteTableVirtualInterfaceGroupAssociationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", + Dict{String,Any}( + "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" => + LocalGatewayRouteTableVirtualInterfaceGroupAssociationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", - Dict{String,Any}( - "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" => - LocalGatewayRouteTableVirtualInterfaceGroupAssociationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_local_gateway_route_table_virtual_interface_group_association( LocalGatewayRouteTableVirtualInterfaceGroupAssociationId, params::AbstractDict{String}; @@ -9169,20 +8987,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_local_gateway_route_table_vpc_association( +delete_local_gateway_route_table_vpc_association( LocalGatewayRouteTableVpcAssociationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DeleteLocalGatewayRouteTableVpcAssociation", + Dict{String,Any}( + "LocalGatewayRouteTableVpcAssociationId" => + LocalGatewayRouteTableVpcAssociationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteLocalGatewayRouteTableVpcAssociation", - Dict{String,Any}( - "LocalGatewayRouteTableVpcAssociationId" => - LocalGatewayRouteTableVpcAssociationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_local_gateway_route_table_vpc_association( LocalGatewayRouteTableVpcAssociationId, params::AbstractDict{String}; @@ -9221,16 +9037,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_managed_prefix_list( +delete_managed_prefix_list( PrefixListId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteManagedPrefixList", + Dict{String,Any}("PrefixListId" => PrefixListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteManagedPrefixList", - Dict{String,Any}("PrefixListId" => PrefixListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_managed_prefix_list( PrefixListId, params::AbstractDict{String}; @@ -9263,16 +9077,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_nat_gateway( - NatGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +delete_nat_gateway(NatGatewayId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteNatGateway", + Dict{String,Any}("NatGatewayId" => NatGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNatGateway", - Dict{String,Any}("NatGatewayId" => NatGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_nat_gateway( NatGatewayId, params::AbstractDict{String}; @@ -9304,16 +9114,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_network_acl( - networkAclId; aws_config::AbstractAWSConfig=current_aws_config() +delete_network_acl(networkAclId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteNetworkAcl", + Dict{String,Any}("networkAclId" => networkAclId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNetworkAcl", - Dict{String,Any}("networkAclId" => networkAclId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_acl( networkAclId, params::AbstractDict{String}; @@ -9346,18 +9152,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_network_acl_entry( +delete_network_acl_entry( egress, networkAclId, ruleNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteNetworkAclEntry", + Dict{String,Any}( + "egress" => egress, "networkAclId" => networkAclId, "ruleNumber" => ruleNumber + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNetworkAclEntry", - Dict{String,Any}( - "egress" => egress, "networkAclId" => networkAclId, "ruleNumber" => ruleNumber - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_acl_entry( egress, networkAclId, @@ -9398,16 +9202,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_network_insights_access_scope( +delete_network_insights_access_scope( NetworkInsightsAccessScopeId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteNetworkInsightsAccessScope", + Dict{String,Any}("NetworkInsightsAccessScopeId" => NetworkInsightsAccessScopeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNetworkInsightsAccessScope", - Dict{String,Any}("NetworkInsightsAccessScopeId" => NetworkInsightsAccessScopeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_insights_access_scope( NetworkInsightsAccessScopeId, params::AbstractDict{String}; @@ -9444,18 +9246,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_network_insights_access_scope_analysis( +delete_network_insights_access_scope_analysis( NetworkInsightsAccessScopeAnalysisId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteNetworkInsightsAccessScopeAnalysis", + Dict{String,Any}( + "NetworkInsightsAccessScopeAnalysisId" => NetworkInsightsAccessScopeAnalysisId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNetworkInsightsAccessScopeAnalysis", - Dict{String,Any}( - "NetworkInsightsAccessScopeAnalysisId" => NetworkInsightsAccessScopeAnalysisId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_insights_access_scope_analysis( NetworkInsightsAccessScopeAnalysisId, params::AbstractDict{String}; @@ -9493,16 +9293,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_network_insights_analysis( +delete_network_insights_analysis( NetworkInsightsAnalysisId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteNetworkInsightsAnalysis", + Dict{String,Any}("NetworkInsightsAnalysisId" => NetworkInsightsAnalysisId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNetworkInsightsAnalysis", - Dict{String,Any}("NetworkInsightsAnalysisId" => NetworkInsightsAnalysisId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_insights_analysis( NetworkInsightsAnalysisId, params::AbstractDict{String}; @@ -9537,16 +9335,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_network_insights_path( +delete_network_insights_path( NetworkInsightsPathId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteNetworkInsightsPath", + Dict{String,Any}("NetworkInsightsPathId" => NetworkInsightsPathId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNetworkInsightsPath", - Dict{String,Any}("NetworkInsightsPathId" => NetworkInsightsPathId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_insights_path( NetworkInsightsPathId, params::AbstractDict{String}; @@ -9582,16 +9378,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_network_interface( +delete_network_interface( networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteNetworkInterface", + Dict{String,Any}("networkInterfaceId" => networkInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNetworkInterface", - Dict{String,Any}("networkInterfaceId" => networkInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_interface( networkInterfaceId, params::AbstractDict{String}; @@ -9628,16 +9422,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Force"`: Specify true to remove the permission even if the network interface is attached to an instance. """ -function delete_network_interface_permission( +delete_network_interface_permission( NetworkInterfacePermissionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteNetworkInterfacePermission", + Dict{String,Any}("NetworkInterfacePermissionId" => NetworkInterfacePermissionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteNetworkInterfacePermission", - Dict{String,Any}("NetworkInterfacePermissionId" => NetworkInterfacePermissionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_interface_permission( NetworkInterfacePermissionId, params::AbstractDict{String}; @@ -9676,16 +9468,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_placement_group( - groupName; aws_config::AbstractAWSConfig=current_aws_config() +delete_placement_group(groupName; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeletePlacementGroup", + Dict{String,Any}("groupName" => groupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeletePlacementGroup", - Dict{String,Any}("groupName" => groupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_placement_group( groupName, params::AbstractDict{String}; @@ -9717,15 +9505,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"NetworkBorderGroup"`: The Availability Zone (AZ) or Local Zone (LZ) network border + group that the resource that the IP address is assigned to is in. Defaults to an AZ network + border group. For more information on available Local Zones, see Local Zone availability in + the Amazon EC2 User Guide. """ -function delete_public_ipv4_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeletePublicIpv4Pool", - Dict{String,Any}("PoolId" => PoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_public_ipv4_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeletePublicIpv4Pool", + Dict{String,Any}("PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_public_ipv4_pool( PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9752,16 +9542,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_queued_reserved_instances( +delete_queued_reserved_instances( ReservedInstancesId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteQueuedReservedInstances", + Dict{String,Any}("ReservedInstancesId" => ReservedInstancesId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteQueuedReservedInstances", - Dict{String,Any}("ReservedInstancesId" => ReservedInstancesId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_queued_reserved_instances( ReservedInstancesId, params::AbstractDict{String}; @@ -9801,14 +9589,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_route(routeTableId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteRoute", - Dict{String,Any}("routeTableId" => routeTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_route(routeTableId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteRoute", + Dict{String,Any}("routeTableId" => routeTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_route( routeTableId, params::AbstractDict{String}; @@ -9840,16 +9626,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_route_table( - routeTableId; aws_config::AbstractAWSConfig=current_aws_config() +delete_route_table(routeTableId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteRouteTable", + Dict{String,Any}("routeTableId" => routeTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteRouteTable", - Dict{String,Any}("routeTableId" => routeTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_route_table( routeTableId, params::AbstractDict{String}; @@ -9870,8 +9652,8 @@ end delete_security_group(params::Dict{String,<:Any}) Deletes a security group. If you attempt to delete a security group that is associated with -an instance or network interface or is referenced by another security group, the operation -fails with DependencyViolation. +an instance or network interface or is referenced by another security group in the same +VPC, the operation fails with DependencyViolation. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -9883,11 +9665,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_security_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteSecurityGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_security_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DeleteSecurityGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_security_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9921,14 +9700,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteSnapshot", - Dict{String,Any}("SnapshotId" => SnapshotId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteSnapshot", + Dict{String,Any}("SnapshotId" => SnapshotId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_snapshot( SnapshotId, params::AbstractDict{String}; @@ -9956,15 +9733,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_spot_datafeed_subscription(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +delete_spot_datafeed_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DeleteSpotDatafeedSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_spot_datafeed_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9992,14 +9766,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_subnet(SubnetId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteSubnet", - Dict{String,Any}("SubnetId" => SubnetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_subnet(SubnetId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteSubnet", + Dict{String,Any}("SubnetId" => SubnetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_subnet( SubnetId, params::AbstractDict{String}; @@ -10030,16 +9802,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_subnet_cidr_reservation( +delete_subnet_cidr_reservation( SubnetCidrReservationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteSubnetCidrReservation", + Dict{String,Any}("SubnetCidrReservationId" => SubnetCidrReservationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteSubnetCidrReservation", - Dict{String,Any}("SubnetCidrReservationId" => SubnetCidrReservationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_subnet_cidr_reservation( SubnetCidrReservationId, params::AbstractDict{String}; @@ -10083,14 +9853,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys we delete all user-defined tags for the specified resources. We do not delete Amazon Web Services-generated tags (tags that have the aws: prefix). Constraints: Up to 1000 tags. """ -function delete_tags(resourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteTags", - Dict{String,Any}("resourceId" => resourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_tags(resourceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteTags", + Dict{String,Any}("resourceId" => resourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_tags( resourceId, params::AbstractDict{String}; @@ -10122,16 +9890,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_traffic_mirror_filter( +delete_traffic_mirror_filter( TrafficMirrorFilterId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTrafficMirrorFilter", + Dict{String,Any}("TrafficMirrorFilterId" => TrafficMirrorFilterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTrafficMirrorFilter", - Dict{String,Any}("TrafficMirrorFilterId" => TrafficMirrorFilterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_traffic_mirror_filter( TrafficMirrorFilterId, params::AbstractDict{String}; @@ -10166,16 +9932,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_traffic_mirror_filter_rule( +delete_traffic_mirror_filter_rule( TrafficMirrorFilterRuleId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTrafficMirrorFilterRule", + Dict{String,Any}("TrafficMirrorFilterRuleId" => TrafficMirrorFilterRuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTrafficMirrorFilterRule", - Dict{String,Any}("TrafficMirrorFilterRuleId" => TrafficMirrorFilterRuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_traffic_mirror_filter_rule( TrafficMirrorFilterRuleId, params::AbstractDict{String}; @@ -10210,16 +9974,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_traffic_mirror_session( +delete_traffic_mirror_session( TrafficMirrorSessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTrafficMirrorSession", + Dict{String,Any}("TrafficMirrorSessionId" => TrafficMirrorSessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTrafficMirrorSession", - Dict{String,Any}("TrafficMirrorSessionId" => TrafficMirrorSessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_traffic_mirror_session( TrafficMirrorSessionId, params::AbstractDict{String}; @@ -10255,16 +10017,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_traffic_mirror_target( +delete_traffic_mirror_target( TrafficMirrorTargetId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTrafficMirrorTarget", + Dict{String,Any}("TrafficMirrorTargetId" => TrafficMirrorTargetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTrafficMirrorTarget", - Dict{String,Any}("TrafficMirrorTargetId" => TrafficMirrorTargetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_traffic_mirror_target( TrafficMirrorTargetId, params::AbstractDict{String}; @@ -10299,16 +10059,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway( +delete_transit_gateway( TransitGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTransitGateway", + Dict{String,Any}("TransitGatewayId" => TransitGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGateway", - Dict{String,Any}("TransitGatewayId" => TransitGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway( TransitGatewayId, params::AbstractDict{String}; @@ -10342,16 +10100,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_connect( +delete_transit_gateway_connect( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTransitGatewayConnect", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayConnect", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_connect( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -10388,16 +10144,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_connect_peer( +delete_transit_gateway_connect_peer( TransitGatewayConnectPeerId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTransitGatewayConnectPeer", + Dict{String,Any}("TransitGatewayConnectPeerId" => TransitGatewayConnectPeerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayConnectPeer", - Dict{String,Any}("TransitGatewayConnectPeerId" => TransitGatewayConnectPeerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_connect_peer( TransitGatewayConnectPeerId, params::AbstractDict{String}; @@ -10434,18 +10188,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_multicast_domain( +delete_transit_gateway_multicast_domain( TransitGatewayMulticastDomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTransitGatewayMulticastDomain", + Dict{String,Any}("TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayMulticastDomain", - Dict{String,Any}( - "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_multicast_domain( TransitGatewayMulticastDomainId, params::AbstractDict{String}; @@ -10482,16 +10232,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_peering_attachment( +delete_transit_gateway_peering_attachment( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTransitGatewayPeeringAttachment", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayPeeringAttachment", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_peering_attachment( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -10528,16 +10276,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_policy_table( +delete_transit_gateway_policy_table( TransitGatewayPolicyTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTransitGatewayPolicyTable", + Dict{String,Any}("TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayPolicyTable", - Dict{String,Any}("TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_policy_table( TransitGatewayPolicyTableId, params::AbstractDict{String}; @@ -10575,21 +10321,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_prefix_list_reference( +delete_transit_gateway_prefix_list_reference( PrefixListId, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DeleteTransitGatewayPrefixListReference", + Dict{String,Any}( + "PrefixListId" => PrefixListId, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayPrefixListReference", - Dict{String,Any}( - "PrefixListId" => PrefixListId, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_prefix_list_reference( PrefixListId, TransitGatewayRouteTableId, @@ -10630,21 +10374,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_route( +delete_transit_gateway_route( DestinationCidrBlock, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DeleteTransitGatewayRoute", + Dict{String,Any}( + "DestinationCidrBlock" => DestinationCidrBlock, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayRoute", - Dict{String,Any}( - "DestinationCidrBlock" => DestinationCidrBlock, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_route( DestinationCidrBlock, TransitGatewayRouteTableId, @@ -10686,16 +10428,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_route_table( +delete_transit_gateway_route_table( TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTransitGatewayRouteTable", + Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayRouteTable", - Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_route_table( TransitGatewayRouteTableId, params::AbstractDict{String}; @@ -10733,20 +10473,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_route_table_announcement( +delete_transit_gateway_route_table_announcement( TransitGatewayRouteTableAnnouncementId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DeleteTransitGatewayRouteTableAnnouncement", + Dict{String,Any}( + "TransitGatewayRouteTableAnnouncementId" => + TransitGatewayRouteTableAnnouncementId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayRouteTableAnnouncement", - Dict{String,Any}( - "TransitGatewayRouteTableAnnouncementId" => - TransitGatewayRouteTableAnnouncementId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_route_table_announcement( TransitGatewayRouteTableAnnouncementId, params::AbstractDict{String}; @@ -10784,16 +10522,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_transit_gateway_vpc_attachment( +delete_transit_gateway_vpc_attachment( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteTransitGatewayVpcAttachment", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteTransitGatewayVpcAttachment", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transit_gateway_vpc_attachment( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -10832,19 +10568,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_verified_access_endpoint( +delete_verified_access_endpoint( VerifiedAccessEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteVerifiedAccessEndpoint", + Dict{String,Any}( + "VerifiedAccessEndpointId" => VerifiedAccessEndpointId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVerifiedAccessEndpoint", - Dict{String,Any}( - "VerifiedAccessEndpointId" => VerifiedAccessEndpointId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_verified_access_endpoint( VerifiedAccessEndpointId, params::AbstractDict{String}; @@ -10884,19 +10618,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_verified_access_group( +delete_verified_access_group( VerifiedAccessGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteVerifiedAccessGroup", + Dict{String,Any}( + "VerifiedAccessGroupId" => VerifiedAccessGroupId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVerifiedAccessGroup", - Dict{String,Any}( - "VerifiedAccessGroupId" => VerifiedAccessGroupId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_verified_access_group( VerifiedAccessGroupId, params::AbstractDict{String}; @@ -10936,19 +10668,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_verified_access_instance( +delete_verified_access_instance( VerifiedAccessInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteVerifiedAccessInstance", + Dict{String,Any}( + "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVerifiedAccessInstance", - Dict{String,Any}( - "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_verified_access_instance( VerifiedAccessInstanceId, params::AbstractDict{String}; @@ -10988,19 +10718,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_verified_access_trust_provider( +delete_verified_access_trust_provider( VerifiedAccessTrustProviderId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteVerifiedAccessTrustProvider", + Dict{String,Any}( + "VerifiedAccessTrustProviderId" => VerifiedAccessTrustProviderId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVerifiedAccessTrustProvider", - Dict{String,Any}( - "VerifiedAccessTrustProviderId" => VerifiedAccessTrustProviderId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_verified_access_trust_provider( VerifiedAccessTrustProviderId, params::AbstractDict{String}; @@ -11040,14 +10768,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteVolume", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteVolume", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_volume( VolumeId, params::AbstractDict{String}; @@ -11083,14 +10809,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_vpc(VpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeleteVpc", - Dict{String,Any}("VpcId" => VpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_vpc(VpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteVpc", + Dict{String,Any}("VpcId" => VpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_vpc( VpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11117,16 +10841,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_vpc_endpoint_connection_notifications( +delete_vpc_endpoint_connection_notifications( ConnectionNotificationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteVpcEndpointConnectionNotifications", + Dict{String,Any}("ConnectionNotificationId" => ConnectionNotificationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVpcEndpointConnectionNotifications", - Dict{String,Any}("ConnectionNotificationId" => ConnectionNotificationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpc_endpoint_connection_notifications( ConnectionNotificationId, params::AbstractDict{String}; @@ -11163,16 +10885,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_vpc_endpoint_service_configurations( +delete_vpc_endpoint_service_configurations( ServiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteVpcEndpointServiceConfigurations", + Dict{String,Any}("ServiceId" => ServiceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVpcEndpointServiceConfigurations", - Dict{String,Any}("ServiceId" => ServiceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpc_endpoint_service_configurations( ServiceId, params::AbstractDict{String}; @@ -11207,16 +10927,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_vpc_endpoints( - VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +delete_vpc_endpoints(VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DeleteVpcEndpoints", Dict{String,Any}("VpcEndpointId" => VpcEndpointId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpc_endpoints( VpcEndpointId, params::AbstractDict{String}; @@ -11250,16 +10967,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_vpc_peering_connection( +delete_vpc_peering_connection( vpcPeeringConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeleteVpcPeeringConnection", + Dict{String,Any}("vpcPeeringConnectionId" => vpcPeeringConnectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVpcPeeringConnection", - Dict{String,Any}("vpcPeeringConnectionId" => vpcPeeringConnectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpc_peering_connection( vpcPeeringConnectionId, params::AbstractDict{String}; @@ -11303,16 +11018,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_vpn_connection( - VpnConnectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +delete_vpn_connection(VpnConnectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DeleteVpnConnection", Dict{String,Any}("VpnConnectionId" => VpnConnectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpn_connection( VpnConnectionId, params::AbstractDict{String}; @@ -11344,21 +11056,19 @@ routed from the virtual private gateway to the VPN customer gateway. - `vpn_connection_id`: The ID of the VPN connection. """ -function delete_vpn_connection_route( +delete_vpn_connection_route( DestinationCidrBlock, VpnConnectionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DeleteVpnConnectionRoute", + Dict{String,Any}( + "DestinationCidrBlock" => DestinationCidrBlock, + "VpnConnectionId" => VpnConnectionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVpnConnectionRoute", - Dict{String,Any}( - "DestinationCidrBlock" => DestinationCidrBlock, - "VpnConnectionId" => VpnConnectionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpn_connection_route( DestinationCidrBlock, VpnConnectionId, @@ -11399,16 +11109,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function delete_vpn_gateway( - VpnGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +delete_vpn_gateway(VpnGatewayId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeleteVpnGateway", + Dict{String,Any}("VpnGatewayId" => VpnGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeleteVpnGateway", - Dict{String,Any}("VpnGatewayId" => VpnGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpn_gateway( VpnGatewayId, params::AbstractDict{String}; @@ -11444,14 +11150,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function deprovision_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeprovisionByoipCidr", - Dict{String,Any}("Cidr" => Cidr); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +deprovision_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeprovisionByoipCidr", + Dict{String,Any}("Cidr" => Cidr); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function deprovision_byoip_cidr( Cidr, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11482,16 +11186,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function deprovision_ipam_byoasn( - Asn, IpamId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +deprovision_ipam_byoasn(Asn, IpamId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DeprovisionIpamByoasn", Dict{String,Any}("Asn" => Asn, "IpamId" => IpamId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deprovision_ipam_byoasn( Asn, IpamId, @@ -11526,16 +11227,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function deprovision_ipam_pool_cidr( - IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +deprovision_ipam_pool_cidr(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DeprovisionIpamPoolCidr", Dict{String,Any}("IpamPoolId" => IpamPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deprovision_ipam_pool_cidr( IpamPoolId, params::AbstractDict{String}; @@ -11570,16 +11268,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function deprovision_public_ipv4_pool_cidr( +deprovision_public_ipv4_pool_cidr( Cidr, PoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeprovisionPublicIpv4PoolCidr", + Dict{String,Any}("Cidr" => Cidr, "PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeprovisionPublicIpv4PoolCidr", - Dict{String,Any}("Cidr" => Cidr, "PoolId" => PoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deprovision_public_ipv4_pool_cidr( Cidr, PoolId, @@ -11619,14 +11315,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function deregister_image(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DeregisterImage", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +deregister_image(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DeregisterImage", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function deregister_image( ImageId, params::AbstractDict{String}; @@ -11656,16 +11350,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function deregister_instance_event_notification_attributes( +deregister_instance_event_notification_attributes( InstanceTagAttribute; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeregisterInstanceEventNotificationAttributes", + Dict{String,Any}("InstanceTagAttribute" => InstanceTagAttribute); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeregisterInstanceEventNotificationAttributes", - Dict{String,Any}("InstanceTagAttribute" => InstanceTagAttribute); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_instance_event_notification_attributes( InstanceTagAttribute, params::AbstractDict{String}; @@ -11701,15 +11393,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkInterfaceIds"`: The IDs of the group members' network interfaces. - `"TransitGatewayMulticastDomainId"`: The ID of the transit gateway multicast domain. """ -function deregister_transit_gateway_multicast_group_members(; +deregister_transit_gateway_multicast_group_members(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeregisterTransitGatewayMulticastGroupMembers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeregisterTransitGatewayMulticastGroupMembers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_transit_gateway_multicast_group_members( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11737,15 +11427,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkInterfaceIds"`: The IDs of the group sources' network interfaces. - `"TransitGatewayMulticastDomainId"`: The ID of the transit gateway multicast domain. """ -function deregister_transit_gateway_multicast_group_sources(; +deregister_transit_gateway_multicast_group_sources(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DeregisterTransitGatewayMulticastGroupSources"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DeregisterTransitGatewayMulticastGroupSources"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_transit_gateway_multicast_group_sources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11780,11 +11468,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_account_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11807,7 +11492,7 @@ source account starts the transfer, the transfer account has seven days to accep Elastic IP address transfer. During those seven days, the source account can view the pending transfer by using this action. After seven days, the transfer expires and ownership of the Elastic IP address returns to the source account. Accepted transfers are visible to -the source account for three days after the transfers have been accepted. +the source account for 14 days after the transfers have been accepted. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -11819,11 +11504,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function describe_address_transfers(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeAddressTransfers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_address_transfers(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeAddressTransfers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_address_transfers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11864,9 +11546,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_addresses(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeAddresses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_addresses(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeAddresses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_addresses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11893,11 +11574,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_addresses_attribute(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeAddressesAttribute"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_addresses_attribute(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeAddressesAttribute"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_addresses_attribute( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11931,11 +11610,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_aggregate_id_format(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeAggregateIdFormat"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_aggregate_id_format(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeAggregateIdFormat"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_aggregate_id_format( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11985,11 +11661,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_availability_zones(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeAvailabilityZones"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_availability_zones(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeAvailabilityZones"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_availability_zones( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12017,15 +11690,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_aws_network_performance_metric_subscriptions(; +describe_aws_network_performance_metric_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeAwsNetworkPerformanceMetricSubscriptions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeAwsNetworkPerformanceMetricSubscriptions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_aws_network_performance_metric_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12063,11 +11734,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_bundle_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeBundleTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_bundle_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeBundleTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_bundle_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12098,16 +11766,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"NextToken"`: The token for the next page of results. """ -function describe_byoip_cidrs( - MaxResults; aws_config::AbstractAWSConfig=current_aws_config() +describe_byoip_cidrs(MaxResults; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeByoipCidrs", + Dict{String,Any}("MaxResults" => MaxResults); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeByoipCidrs", - Dict{String,Any}("MaxResults" => MaxResults); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_byoip_cidrs( MaxResults, params::AbstractDict{String}; @@ -12149,23 +11813,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. - `"StartDateRange"`: The earliest start date for the Capacity Block offering. """ -function describe_capacity_block_offerings( +describe_capacity_block_offerings( CapacityDurationHours, InstanceCount, InstanceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DescribeCapacityBlockOfferings", + Dict{String,Any}( + "CapacityDurationHours" => CapacityDurationHours, + "InstanceCount" => InstanceCount, + "InstanceType" => InstanceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeCapacityBlockOfferings", - Dict{String,Any}( - "CapacityDurationHours" => CapacityDurationHours, - "InstanceCount" => InstanceCount, - "InstanceType" => InstanceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_capacity_block_offerings( CapacityDurationHours, InstanceCount, @@ -12214,15 +11876,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Pagination. - `"NextToken"`: The token to use to retrieve the next page of results. """ -function describe_capacity_reservation_fleets(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_capacity_reservation_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeCapacityReservationFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_capacity_reservation_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12289,15 +11948,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Pagination. - `"NextToken"`: The token to use to retrieve the next page of results. """ -function describe_capacity_reservations(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_capacity_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeCapacityReservations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeCapacityReservations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_capacity_reservations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12335,11 +11990,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_carrier_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeCarrierGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_carrier_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeCarrierGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_carrier_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12380,15 +12032,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_classic_link_instances(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_classic_link_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeClassicLinkInstances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeClassicLinkInstances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_classic_link_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12422,16 +12070,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The remaining results can be seen by sending another request with the nextToken value. - `"NextToken"`: The token to retrieve the next page of results. """ -function describe_client_vpn_authorization_rules( +describe_client_vpn_authorization_rules( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeClientVpnAuthorizationRules", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeClientVpnAuthorizationRules", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_client_vpn_authorization_rules( ClientVpnEndpointId, params::AbstractDict{String}; @@ -12473,16 +12119,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The remaining results can be seen by sending another request with the nextToken value. - `"NextToken"`: The token to retrieve the next page of results. """ -function describe_client_vpn_connections( +describe_client_vpn_connections( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeClientVpnConnections", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeClientVpnConnections", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_client_vpn_connections( ClientVpnEndpointId, params::AbstractDict{String}; @@ -12521,11 +12165,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The remaining results can be seen by sending another request with the nextToken value. - `"NextToken"`: The token to retrieve the next page of results. """ -function describe_client_vpn_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeClientVpnEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_client_vpn_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeClientVpnEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_client_vpn_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12559,16 +12201,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The remaining results can be seen by sending another request with the nextToken value. - `"NextToken"`: The token to retrieve the next page of results. """ -function describe_client_vpn_routes( +describe_client_vpn_routes( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeClientVpnRoutes", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeClientVpnRoutes", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_client_vpn_routes( ClientVpnEndpointId, params::AbstractDict{String}; @@ -12611,16 +12251,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The remaining results can be seen by sending another request with the nextToken value. - `"NextToken"`: The token to retrieve the next page of results. """ -function describe_client_vpn_target_networks( +describe_client_vpn_target_networks( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeClientVpnTargetNetworks", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeClientVpnTargetNetworks", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_client_vpn_target_networks( ClientVpnEndpointId, params::AbstractDict{String}; @@ -12659,9 +12297,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"PoolId"`: The IDs of the address pools. """ -function describe_coip_pools(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeCoipPools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_coip_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeCoipPools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_coip_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12685,11 +12322,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_conversion_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeConversionTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_conversion_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeConversionTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_conversion_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12727,11 +12361,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_customer_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeCustomerGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_customer_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeCustomerGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_customer_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12773,11 +12404,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_dhcp_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeDhcpOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dhcp_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeDhcpOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dhcp_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12816,15 +12444,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_egress_only_internet_gateways(; +describe_egress_only_internet_gateways(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeEgressOnlyInternetGateways"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeEgressOnlyInternetGateways"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_egress_only_internet_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12861,11 +12487,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys between 5 and 1000. - `"NextToken"`: The token to request the next page of results. """ -function describe_elastic_gpus(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeElasticGpus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_elastic_gpus(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeElasticGpus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_elastic_gpus( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12894,11 +12517,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in a single call. - `"NextToken"`: A token that indicates the next page of results. """ -function describe_export_image_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeExportImageTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_export_image_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeExportImageTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_export_image_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12921,11 +12541,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Filter"`: the filters for the export tasks. - `"exportTaskId"`: The export task IDs. """ -function describe_export_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeExportTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_export_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeExportTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_export_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12958,11 +12575,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_fast_launch_images(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeFastLaunchImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_fast_launch_images(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeFastLaunchImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_fast_launch_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12996,15 +12610,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_fast_snapshot_restores(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_fast_snapshot_restores(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeFastSnapshotRestores"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeFastSnapshotRestores"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fast_snapshot_restores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13043,16 +12653,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_fleet_history( +describe_fleet_history( FleetId, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeFleetHistory", + Dict{String,Any}("FleetId" => FleetId, "StartTime" => StartTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeFleetHistory", - Dict{String,Any}("FleetId" => FleetId, "StartTime" => StartTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fleet_history( FleetId, StartTime, @@ -13097,16 +12705,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_fleet_instances( - FleetId; aws_config::AbstractAWSConfig=current_aws_config() +describe_fleet_instances(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeFleetInstances", + Dict{String,Any}("FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeFleetInstances", - Dict{String,Any}("FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fleet_instances( FleetId, params::AbstractDict{String}; @@ -13150,9 +12754,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13192,9 +12795,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to request the next page of items. Pagination continues from the end of the items returned by the previous request. """ -function describe_flow_logs(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeFlowLogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_flow_logs(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeFlowLogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_flow_logs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13219,16 +12821,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_fpga_image_attribute( +describe_fpga_image_attribute( Attribute, FpgaImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeFpgaImageAttribute", + Dict{String,Any}("Attribute" => Attribute, "FpgaImageId" => FpgaImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeFpgaImageAttribute", - Dict{String,Any}("Attribute" => Attribute, "FpgaImageId" => FpgaImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fpga_image_attribute( Attribute, FpgaImageId, @@ -13281,9 +12881,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (owner is the sender of the request), or an Amazon Web Services owner alias (valid values are amazon | aws-marketplace). """ -function describe_fpga_images(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeFpgaImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_fpga_images(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeFpgaImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_fpga_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13323,15 +12922,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. - `"OfferingId"`: The ID of the reservation offering. """ -function describe_host_reservation_offerings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_host_reservation_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeHostReservationOfferings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_host_reservation_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13367,11 +12963,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive an error. - `"NextToken"`: The token to use to retrieve the next page of results. """ -function describe_host_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeHostReservations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_host_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeHostReservations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_host_reservations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13412,9 +13005,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys same request. - `"nextToken"`: The token to use to retrieve the next page of results. """ -function describe_hosts(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeHosts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_hosts(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeHosts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_hosts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13440,15 +13032,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_iam_instance_profile_associations(; +describe_iam_instance_profile_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeIamInstanceProfileAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeIamInstanceProfileAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_iam_instance_profile_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13491,9 +13081,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway """ -function describe_id_format(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeIdFormat"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_id_format(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeIdFormat"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_id_format( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13535,16 +13124,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway """ -function describe_identity_id_format( +describe_identity_id_format( principalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeIdentityIdFormat", + Dict{String,Any}("principalArn" => principalArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeIdentityIdFormat", - Dict{String,Any}("principalArn" => principalArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_identity_id_format( principalArn, params::AbstractDict{String}; @@ -13581,16 +13168,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_image_attribute( +describe_image_attribute( Attribute, ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeImageAttribute", + Dict{String,Any}("Attribute" => Attribute, "ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeImageAttribute", - Dict{String,Any}("Attribute" => Attribute, "ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_image_attribute( Attribute, ImageId, @@ -13695,9 +13280,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_images(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_images(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13723,12 +13307,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ImportTaskId"`: The IDs of the import image tasks. - `"MaxResults"`: The maximum number of results to return in a single call. - `"NextToken"`: A token that indicates the next page of results. -""" -function describe_import_image_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeImportImageTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +""" +describe_import_image_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeImportImageTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_import_image_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13757,15 +13338,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results, make another call with the returned NextToken value. - `"NextToken"`: A token that indicates the next page of results. """ -function describe_import_snapshot_tasks(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_import_snapshot_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeImportSnapshotTasks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeImportSnapshotTasks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_import_snapshot_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13798,16 +13375,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_instance_attribute( +describe_instance_attribute( attribute, instanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeInstanceAttribute", + Dict{String,Any}("attribute" => attribute, "instanceId" => instanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeInstanceAttribute", - Dict{String,Any}("attribute" => attribute, "instanceId" => instanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_attribute( attribute, instanceId, @@ -13860,15 +13435,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_instance_connect_endpoints(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_instance_connect_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeInstanceConnectEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_instance_connect_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13914,15 +13486,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_instance_credit_specifications(; +describe_instance_credit_specifications(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeInstanceCreditSpecifications"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeInstanceCreditSpecifications"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_credit_specifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13947,15 +13517,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_instance_event_notification_attributes(; +describe_instance_event_notification_attributes(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeInstanceEventNotificationAttributes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeInstanceEventNotificationAttributes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_event_notification_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14005,15 +13573,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the same call. - `"NextToken"`: The token to request the next page of results. """ -function describe_instance_event_windows(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_instance_event_windows(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeInstanceEventWindows"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeInstanceEventWindows"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_event_windows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14064,7 +13628,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys system-status.reachability - Filters on system status where the name is reachability (passed | failed | initializing | insufficient-data). system-status.status - The system status of the instance (ok | impaired | initializing | insufficient-data | not-applicable). - + attached-ebs-status.status - The status of the attached EBS volume for the instance (ok + | impaired | initializing | insufficient-data | not-applicable). - `"InstanceId"`: The instance IDs. Default: Describes all your instances. Constraints: Maximum 100 explicitly specified instance IDs. - `"MaxResults"`: The maximum number of items to return for this request. To get the next @@ -14079,11 +13644,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includeAllInstances"`: When true, includes the health status for all instances. When false, includes the health status for running instances only. Default: false """ -function describe_instance_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeInstanceStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_instance_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeInstanceStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_instance_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14131,11 +13693,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_instance_topology(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeInstanceTopology"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_instance_topology(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeInstanceTopology"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_instance_topology( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14174,15 +13733,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_instance_type_offerings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_instance_type_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeInstanceTypeOfferings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_instance_type_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14277,11 +13833,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_instance_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeInstanceTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_instance_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeInstanceTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_instance_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14509,9 +14062,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14551,11 +14103,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"internetGatewayId"`: The IDs of the internet gateways. Default: Describes all your internet gateways. """ -function describe_internet_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeInternetGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_internet_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeInternetGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_internet_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14584,9 +14133,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_ipam_byoasn(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeIpamByoasn"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_ipam_byoasn(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeIpamByoasn"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ipam_byoasn( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14595,6 +14143,47 @@ function describe_ipam_byoasn( ) end +""" + describe_ipam_external_resource_verification_tokens() + describe_ipam_external_resource_verification_tokens(params::Dict{String,<:Any}) + +Describe verification tokens. A verification token is an Amazon Web Services-generated +random value that you can use to prove ownership of an external resource. For example, you +can use a verification token to validate that you control a public IP address range when +you bring an IP address range to Amazon Web Services (BYOIP). + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"DryRun"`: A check for whether you have the required permissions for the action without + actually making the request and provides an error response. If you have the required + permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"Filter"`: One or more filters for the request. For more information about filtering, + see Filtering CLI output. Available filters: ipam-arn + ipam-external-resource-verification-token-arn + ipam-external-resource-verification-token-id ipam-id ipam-region state + status token-name token-value +- `"IpamExternalResourceVerificationTokenId"`: Verification token IDs. +- `"MaxResults"`: The maximum number of tokens to return in one page of results. +- `"NextToken"`: The token for the next page of results. +""" +describe_ipam_external_resource_verification_tokens(; + aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeIpamExternalResourceVerificationTokens"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_ipam_external_resource_verification_tokens( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ec2( + "DescribeIpamExternalResourceVerificationTokens", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ describe_ipam_pools() describe_ipam_pools(params::Dict{String,<:Any}) @@ -14612,9 +14201,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in the request. - `"NextToken"`: The token for the next page of results. """ -function describe_ipam_pools(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeIpamPools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_ipam_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeIpamPools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ipam_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14642,15 +14230,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function describe_ipam_resource_discoveries(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_ipam_resource_discoveries(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeIpamResourceDiscoveries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_ipam_resource_discoveries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14681,15 +14266,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function describe_ipam_resource_discovery_associations(; +describe_ipam_resource_discovery_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeIpamResourceDiscoveryAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeIpamResourceDiscoveryAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_ipam_resource_discovery_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14718,9 +14301,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in the request. - `"NextToken"`: The token for the next page of results. """ -function describe_ipam_scopes(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeIpamScopes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_ipam_scopes(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeIpamScopes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ipam_scopes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14747,9 +14329,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in the request. - `"NextToken"`: The token for the next page of results. """ -function describe_ipams(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeIpams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_ipams(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeIpams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ipams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14780,9 +14361,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"PoolId"`: The IDs of the IPv6 address pools. """ -function describe_ipv6_pools(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeIpv6Pools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_ipv6_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeIpv6Pools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ipv6_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14816,9 +14396,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_key_pairs(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeKeyPairs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_key_pairs(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeKeyPairs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_key_pairs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14881,15 +14460,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon EC2 User Guide. Default: false """ -function describe_launch_template_versions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_launch_template_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeLaunchTemplateVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_launch_template_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14927,11 +14503,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys between 1 and 200. - `"NextToken"`: The token to request the next page of results. """ -function describe_launch_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeLaunchTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_launch_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeLaunchTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_launch_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14968,15 +14541,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_local_gateway_route_table_virtual_interface_group_associations(; +describe_local_gateway_route_table_virtual_interface_group_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_local_gateway_route_table_virtual_interface_group_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15011,15 +14582,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_local_gateway_route_table_vpc_associations(; +describe_local_gateway_route_table_vpc_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeLocalGatewayRouteTableVpcAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeLocalGatewayRouteTableVpcAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_local_gateway_route_table_vpc_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15054,15 +14623,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_local_gateway_route_tables(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_local_gateway_route_tables(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeLocalGatewayRouteTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_local_gateway_route_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15094,15 +14660,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_local_gateway_virtual_interface_groups(; +describe_local_gateway_virtual_interface_groups(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeLocalGatewayVirtualInterfaceGroups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeLocalGatewayVirtualInterfaceGroups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_local_gateway_virtual_interface_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15136,15 +14700,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_local_gateway_virtual_interfaces(; +describe_local_gateway_virtual_interfaces(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeLocalGatewayVirtualInterfaces"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeLocalGatewayVirtualInterfaces"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_local_gateway_virtual_interfaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15177,11 +14739,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_local_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeLocalGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_local_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeLocalGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_local_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15213,11 +14772,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the end of the items returned by the previous request. - `"SnapshotId"`: The IDs of the snapshots for which to view the lock status. """ -function describe_locked_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeLockedSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_locked_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeLockedSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_locked_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15247,9 +14803,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive an error. - `"NextToken"`: The token to use to retrieve the next page of results. """ -function describe_mac_hosts(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeMacHosts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_mac_hosts(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeMacHosts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_mac_hosts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15278,11 +14833,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"PrefixListId"`: One or more prefix list IDs. """ -function describe_managed_prefix_lists(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeManagedPrefixLists"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_managed_prefix_lists(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeManagedPrefixLists"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_managed_prefix_lists( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15317,11 +14870,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next page of results. - `"publicIp"`: One or more Elastic IP addresses. """ -function describe_moving_addresses(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeMovingAddresses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_moving_addresses(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeMovingAddresses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_moving_addresses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15362,11 +14912,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_nat_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeNatGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_nat_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeNatGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_nat_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15420,11 +14967,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_network_acls(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeNetworkAcls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_network_acls(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeNetworkAcls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_network_acls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15458,15 +15002,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkInsightsAccessScopeId"`: The ID of the Network Access Scope. - `"NextToken"`: The token for the next page of results. """ -function describe_network_insights_access_scope_analyses(; +describe_network_insights_access_scope_analyses(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeNetworkInsightsAccessScopeAnalyses"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeNetworkInsightsAccessScopeAnalyses"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_network_insights_access_scope_analyses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15495,15 +15037,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkInsightsAccessScopeId"`: The IDs of the Network Access Scopes. - `"NextToken"`: The token for the next page of results. """ -function describe_network_insights_access_scopes(; +describe_network_insights_access_scopes(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeNetworkInsightsAccessScopes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeNetworkInsightsAccessScopes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_network_insights_access_scopes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15539,15 +15079,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys analysis IDs. - `"NextToken"`: The token for the next page of results. """ -function describe_network_insights_analyses(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_network_insights_analyses(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeNetworkInsightsAnalyses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_network_insights_analyses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15585,15 +15122,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkInsightsPathId"`: The IDs of the paths. - `"NextToken"`: The token for the next page of results. """ -function describe_network_insights_paths(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_network_insights_paths(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeNetworkInsightsPaths"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeNetworkInsightsPaths"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_network_insights_paths( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15621,16 +15154,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_network_interface_attribute( +describe_network_interface_attribute( networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeNetworkInterfaceAttribute", + Dict{String,Any}("networkInterfaceId" => networkInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeNetworkInterfaceAttribute", - Dict{String,Any}("networkInterfaceId" => networkInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_network_interface_attribute( networkInterfaceId, params::AbstractDict{String}; @@ -15660,7 +15191,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys network-interface-permission.network-interface-permission-id - The ID of the permission. network-interface-permission.network-interface-id - The ID of the network interface. network-interface-permission.aws-account-id - The Amazon Web Services account ID. - network-interface-permission.aws-service - The Amazon Web Service. + network-interface-permission.aws-service - The Amazon Web Services service. network-interface-permission.permission - The type of permission (INSTANCE-ATTACH | EIP-ASSOCIATE). - `"MaxResults"`: The maximum number of items to return for this request. To get the next @@ -15671,15 +15202,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_network_interface_permissions(; +describe_network_interface_permissions(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeNetworkInterfacePermissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeNetworkInterfacePermissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_network_interface_permissions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15748,8 +15277,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (IPv4). private-ip-address - The private IPv4 address or addresses of the network interface. requester-id - The alias or Amazon Web Services account ID of the principal or service that created the network interface. requester-managed - Indicates whether the - network interface is being managed by an Amazon Web Service (for example, Amazon Web - Services Management Console, Auto Scaling, and so on). source-dest-check - Indicates + network interface is being managed by an Amazon Web Services service (for example, Amazon + Web Services Management Console, Auto Scaling, and so on). source-dest-check - Indicates whether the network interface performs source/destination checking. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC. status - @@ -15763,11 +15292,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. vpc-id - The ID of the VPC for the network interface. """ -function describe_network_interfaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeNetworkInterfaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_network_interfaces(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeNetworkInterfaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_network_interfaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15783,8 +15309,11 @@ end describe_placement_groups() describe_placement_groups(params::Dict{String,<:Any}) -Describes the specified placement groups or all of your placement groups. For more -information, see Placement groups in the Amazon EC2 User Guide. +Describes the specified placement groups or all of your placement groups. To describe a +specific placement group that is shared with your account, you must specify the ID of the +placement group using the GroupId parameter. Specifying the name of a shared placement +group using the GroupNames parameter will result in an error. For more information, see +Placement groups in the Amazon EC2 User Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -15802,14 +15331,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"dryRun"`: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. -- `"groupName"`: The names of the placement groups. Default: Describes all your placement - groups, or only those otherwise specified. +- `"groupName"`: The names of the placement groups. Constraints: You can specify a name + only if the placement group is owned by your account. If a placement group is shared with + your account, specifying the name results in an error. You must use the GroupId parameter + instead. """ -function describe_placement_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribePlacementGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_placement_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribePlacementGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_placement_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15841,11 +15369,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"PrefixListId"`: One or more prefix list IDs. """ -function describe_prefix_lists(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribePrefixLists"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_prefix_lists(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribePrefixLists"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_prefix_lists( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15890,11 +15415,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway """ -function describe_principal_id_format(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribePrincipalIdFormat"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_principal_id_format(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribePrincipalIdFormat"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_principal_id_format( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15925,11 +15447,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"PoolId"`: The IDs of the address pools. """ -function describe_public_ipv4_pools(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribePublicIpv4Pools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_public_ipv4_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribePublicIpv4Pools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_public_ipv4_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15966,9 +15485,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_regions(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeRegions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_regions(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeRegions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_regions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -15998,15 +15516,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the end of the items returned by the previous request. - `"ReplaceRootVolumeTaskId"`: The ID of the root volume replacement task to view. """ -function describe_replace_root_volume_tasks(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_replace_root_volume_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeReplaceRootVolumeTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_replace_root_volume_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16059,11 +15574,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys predate the 2011-11-01 API version, you only have access to the Medium Utilization Reserved Instance offering type. """ -function describe_reserved_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeReservedInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_reserved_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeReservedInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_reserved_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16104,15 +15616,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reservedInstancesId"`: One or more Reserved Instance IDs. - `"reservedInstancesListingId"`: One or more Reserved Instance listing IDs. """ -function describe_reserved_instances_listings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_reserved_instances_listings(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeReservedInstancesListings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_reserved_instances_listings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16154,15 +15663,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReservedInstancesModificationId"`: IDs for the submitted modification request. - `"nextToken"`: The token to retrieve the next page of results. """ -function describe_reserved_instances_modifications(; +describe_reserved_instances_modifications(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeReservedInstancesModifications"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeReservedInstancesModifications"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_reserved_instances_modifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16235,15 +15742,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys predate the 2011-11-01 API version, you only have access to the Medium Utilization Reserved Instance offering type. """ -function describe_reserved_instances_offerings(; +describe_reserved_instances_offerings(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeReservedInstancesOfferings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeReservedInstancesOfferings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_reserved_instances_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16279,26 +15784,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the route table. route-table-id - The ID of the route table. route.destination-cidr-block - The IPv4 CIDR range specified in a route in the table. route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in a route in the route - table. route.destination-prefix-list-id - The ID (prefix) of the Amazon Web Service - specified in a route in the table. route.egress-only-internet-gateway-id - The ID of an - egress-only Internet gateway specified in a route in the route table. route.gateway-id - - The ID of a gateway specified in a route in the table. route.instance-id - The ID of an - instance specified in a route in the table. route.nat-gateway-id - The ID of a NAT - gateway. route.transit-gateway-id - The ID of a transit gateway. route.origin - - Describes how the route was created. CreateRouteTable indicates that the route was - automatically created when the route table was created; CreateRoute indicates that the - route was manually added to the route table; EnableVgwRoutePropagation indicates that the - route was propagated by route propagation. route.state - The state of a route in the - route table (active | blackhole). The blackhole state indicates that the route's target - isn't available (for example, the specified gateway isn't attached to the VPC, the - specified NAT instance has been terminated, and so on). route.vpc-peering-connection-id - - The ID of a VPC peering connection specified in a route in the table. tag:<key> - - The key/value combination of a tag assigned to the resource. Use the tag key in the - filter name and the tag value as the filter value. For example, to find all resources that - have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name - and TeamA for the filter value. tag-key - The key of a tag assigned to the resource. Use - this filter to find all resources assigned a tag with a specific key, regardless of the tag - value. vpc-id - The ID of the VPC for the route table. + table. route.destination-prefix-list-id - The ID (prefix) of the Amazon Web Services + service specified in a route in the table. route.egress-only-internet-gateway-id - The + ID of an egress-only Internet gateway specified in a route in the route table. + route.gateway-id - The ID of a gateway specified in a route in the table. + route.instance-id - The ID of an instance specified in a route in the table. + route.nat-gateway-id - The ID of a NAT gateway. route.transit-gateway-id - The ID of a + transit gateway. route.origin - Describes how the route was created. CreateRouteTable + indicates that the route was automatically created when the route table was created; + CreateRoute indicates that the route was manually added to the route table; + EnableVgwRoutePropagation indicates that the route was propagated by route propagation. + route.state - The state of a route in the route table (active | blackhole). The blackhole + state indicates that the route's target isn't available (for example, the specified gateway + isn't attached to the VPC, the specified NAT instance has been terminated, and so on). + route.vpc-peering-connection-id - The ID of a VPC peering connection specified in a route + in the table. tag:<key> - The key/value combination of a tag assigned to the + resource. Use the tag key in the filter name and the tag value as the filter value. For + example, to find all resources that have a tag with the key Owner and the value TeamA, + specify tag:Owner for the filter name and TeamA for the filter value. tag-key - The key + of a tag assigned to the resource. Use this filter to find all resources assigned a tag + with a specific key, regardless of the tag value. vpc-id - The ID of the VPC for the + route table. - `"MaxResults"`: The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination. @@ -16309,11 +15815,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_route_tables(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeRouteTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_route_tables(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeRouteTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_route_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16359,18 +15862,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hours. - `"NextToken"`: The token for the next set of results. """ -function describe_scheduled_instance_availability( +describe_scheduled_instance_availability( FirstSlotStartTimeRange, Recurrence; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeScheduledInstanceAvailability", + Dict{String,Any}( + "FirstSlotStartTimeRange" => FirstSlotStartTimeRange, "Recurrence" => Recurrence + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeScheduledInstanceAvailability", - Dict{String,Any}( - "FirstSlotStartTimeRange" => FirstSlotStartTimeRange, "Recurrence" => Recurrence - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scheduled_instance_availability( FirstSlotStartTimeRange, Recurrence, @@ -16415,11 +15916,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ScheduledInstanceId"`: The Scheduled Instance IDs. - `"SlotStartTimeRange"`: The time period for the first schedule to start. """ -function describe_scheduled_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeScheduledInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_scheduled_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeScheduledInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_scheduled_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16448,16 +15947,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"GroupId"`: The IDs of the security groups in your account. """ -function describe_security_group_references( +describe_security_group_references( item; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeSecurityGroupReferences", + Dict{String,Any}("item" => item); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeSecurityGroupReferences", - Dict{String,Any}("item" => item); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_security_group_references( item, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16494,11 +15991,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the end of the items returned by the previous request. - `"SecurityGroupRuleId"`: The IDs of the security group rules. """ -function describe_security_group_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeSecurityGroupRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_security_group_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeSecurityGroupRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_security_group_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16569,11 +16064,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_security_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeSecurityGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_security_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeSecurityGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_security_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16603,16 +16095,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_snapshot_attribute( +describe_snapshot_attribute( Attribute, SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeSnapshotAttribute", + Dict{String,Any}("Attribute" => Attribute, "SnapshotId" => SnapshotId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeSnapshotAttribute", - Dict{String,Any}("Attribute" => Attribute, "SnapshotId" => SnapshotId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_snapshot_attribute( Attribute, SnapshotId, @@ -16655,11 +16145,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_snapshot_tier_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeSnapshotTierStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_snapshot_tier_status(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeSnapshotTierStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_snapshot_tier_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16737,9 +16225,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16761,15 +16248,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_spot_datafeed_subscription(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_spot_datafeed_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeSpotDatafeedSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_spot_datafeed_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16801,16 +16285,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to include in another request to get the next page of items. This value is null when there are no more items to return. """ -function describe_spot_fleet_instances( +describe_spot_fleet_instances( spotFleetRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeSpotFleetInstances", + Dict{String,Any}("spotFleetRequestId" => spotFleetRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeSpotFleetInstances", - Dict{String,Any}("spotFleetRequestId" => spotFleetRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_spot_fleet_instances( spotFleetRequestId, params::AbstractDict{String}; @@ -16855,18 +16337,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to include in another request to get the next page of items. This value is null when there are no more items to return. """ -function describe_spot_fleet_request_history( +describe_spot_fleet_request_history( spotFleetRequestId, startTime; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeSpotFleetRequestHistory", + Dict{String,Any}("spotFleetRequestId" => spotFleetRequestId, "startTime" => startTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeSpotFleetRequestHistory", - Dict{String,Any}( - "spotFleetRequestId" => spotFleetRequestId, "startTime" => startTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_spot_fleet_request_history( spotFleetRequestId, startTime, @@ -16908,11 +16386,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This value is null when there are no more items to return. - `"spotFleetRequestId"`: The IDs of the Spot Fleet requests. """ -function describe_spot_fleet_requests(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeSpotFleetRequests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_spot_fleet_requests(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeSpotFleetRequests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_spot_fleet_requests( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -16996,15 +16471,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_spot_instance_requests(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_spot_instance_requests(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeSpotInstanceRequests"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeSpotInstanceRequests"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_spot_instance_requests( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17052,11 +16523,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startTime"`: The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). """ -function describe_spot_price_history(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeSpotPriceHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_spot_price_history(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeSpotPriceHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_spot_price_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17073,9 +16541,9 @@ end describe_stale_security_groups(vpc_id, params::Dict{String,<:Any}) Describes the stale security group rules for security groups in a specified VPC. Rules are -stale when they reference a deleted security group in the same VPC or peered VPC. Rules can -also be stale if they reference a security group in a peer VPC for which the VPC peering -connection has been deleted. +stale when they reference a deleted security group in a peered VPC. Rules can also be stale +if they reference a security group in a peer VPC for which the VPC peering connection has +been deleted. # Arguments - `vpc_id`: The ID of the VPC. @@ -17091,16 +16559,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_stale_security_groups( - VpcId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_stale_security_groups(VpcId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeStaleSecurityGroups", Dict{String,Any}("VpcId" => VpcId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_stale_security_groups( VpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17145,11 +16610,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_store_image_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeStoreImageTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_store_image_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeStoreImageTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_store_image_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17221,9 +16683,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_subnets(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeSubnets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_subnets(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeSubnets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_subnets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17259,9 +16720,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_tags(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_tags(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_tags( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17296,15 +16756,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TrafficMirrorFilterId"`: Traffic filter ID. - `"TrafficMirrorFilterRuleId"`: Traffic filter rule IDs. """ -function describe_traffic_mirror_filter_rules(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_traffic_mirror_filter_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeTrafficMirrorFilterRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_traffic_mirror_filter_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17335,15 +16792,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TrafficMirrorFilterId"`: The ID of the Traffic Mirror filter. """ -function describe_traffic_mirror_filters(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_traffic_mirror_filters(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeTrafficMirrorFilters"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTrafficMirrorFilters"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_traffic_mirror_filters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17380,15 +16833,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TrafficMirrorSessionId"`: The ID of the Traffic Mirror session. """ -function describe_traffic_mirror_sessions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_traffic_mirror_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeTrafficMirrorSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_traffic_mirror_sessions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17422,15 +16872,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TrafficMirrorTargetId"`: The ID of the Traffic Mirror targets. """ -function describe_traffic_mirror_targets(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_traffic_mirror_targets(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeTrafficMirrorTargets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTrafficMirrorTargets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_traffic_mirror_targets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17471,15 +16917,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TransitGatewayAttachmentIds"`: The IDs of the attachments. """ -function describe_transit_gateway_attachments(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_transit_gateway_attachments(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeTransitGatewayAttachments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_transit_gateway_attachments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17510,15 +16953,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TransitGatewayConnectPeerIds"`: The IDs of the Connect peers. """ -function describe_transit_gateway_connect_peers(; +describe_transit_gateway_connect_peers(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeTransitGatewayConnectPeers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTransitGatewayConnectPeers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_transit_gateway_connect_peers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17553,15 +16994,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TransitGatewayAttachmentIds"`: The IDs of the attachments. """ -function describe_transit_gateway_connects(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_transit_gateway_connects(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeTransitGatewayConnects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_transit_gateway_connects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17593,15 +17031,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TransitGatewayMulticastDomainIds"`: The ID of the transit gateway multicast domain. """ -function describe_transit_gateway_multicast_domains(; +describe_transit_gateway_multicast_domains(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeTransitGatewayMulticastDomains"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTransitGatewayMulticastDomains"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_transit_gateway_multicast_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17643,15 +17079,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TransitGatewayAttachmentIds"`: One or more IDs of the transit gateway peering attachments. """ -function describe_transit_gateway_peering_attachments(; +describe_transit_gateway_peering_attachments(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeTransitGatewayPeeringAttachments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTransitGatewayPeeringAttachments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_transit_gateway_peering_attachments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17680,15 +17114,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TransitGatewayPolicyTableIds"`: The IDs of the transit gateway policy tables. """ -function describe_transit_gateway_policy_tables(; +describe_transit_gateway_policy_tables(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeTransitGatewayPolicyTables"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTransitGatewayPolicyTables"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_transit_gateway_policy_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17718,15 +17150,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TransitGatewayRouteTableAnnouncementIds"`: The IDs of the transit gateway route tables that are being advertised. """ -function describe_transit_gateway_route_table_announcements(; +describe_transit_gateway_route_table_announcements(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeTransitGatewayRouteTableAnnouncements"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTransitGatewayRouteTableAnnouncements"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_transit_gateway_route_table_announcements( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17762,15 +17192,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TransitGatewayRouteTableIds"`: The IDs of the transit gateway route tables. """ -function describe_transit_gateway_route_tables(; +describe_transit_gateway_route_tables(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeTransitGatewayRouteTables"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTransitGatewayRouteTables"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_transit_gateway_route_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17804,15 +17232,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TransitGatewayAttachmentIds"`: The IDs of the attachments. """ -function describe_transit_gateway_vpc_attachments(; +describe_transit_gateway_vpc_attachments(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeTransitGatewayVpcAttachments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTransitGatewayVpcAttachments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_transit_gateway_vpc_attachments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17859,11 +17285,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"TransitGatewayIds"`: The IDs of the transit gateways. """ -function describe_transit_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeTransitGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_transit_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeTransitGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_transit_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17893,15 +17316,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function describe_trunk_interface_associations(; +describe_trunk_interface_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeTrunkInterfaceAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeTrunkInterfaceAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trunk_interface_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17932,15 +17353,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VerifiedAccessGroupId"`: The ID of the Verified Access group. - `"VerifiedAccessInstanceId"`: The ID of the Verified Access instance. """ -function describe_verified_access_endpoints(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_verified_access_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeVerifiedAccessEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_verified_access_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -17970,15 +17388,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VerifiedAccessGroupId"`: The ID of the Verified Access groups. - `"VerifiedAccessInstanceId"`: The ID of the Verified Access instance. """ -function describe_verified_access_groups(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_verified_access_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeVerifiedAccessGroups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVerifiedAccessGroups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_verified_access_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18007,15 +17421,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"VerifiedAccessInstanceId"`: The IDs of the Verified Access instances. """ -function describe_verified_access_instance_logging_configurations(; +describe_verified_access_instance_logging_configurations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeVerifiedAccessInstanceLoggingConfigurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVerifiedAccessInstanceLoggingConfigurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_verified_access_instance_logging_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18044,15 +17456,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"VerifiedAccessInstanceId"`: The IDs of the Verified Access instances. """ -function describe_verified_access_instances(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_verified_access_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeVerifiedAccessInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_verified_access_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18081,15 +17490,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next page of results. - `"VerifiedAccessTrustProviderId"`: The IDs of the Verified Access trust providers. """ -function describe_verified_access_trust_providers(; +describe_verified_access_trust_providers(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeVerifiedAccessTrustProviders"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVerifiedAccessTrustProviders"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_verified_access_trust_providers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18119,16 +17526,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_volume_attribute( +describe_volume_attribute( Attribute, VolumeId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeVolumeAttribute", + Dict{String,Any}("Attribute" => Attribute, "VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVolumeAttribute", - Dict{String,Any}("Attribute" => Attribute, "VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_volume_attribute( Attribute, VolumeId, @@ -18205,11 +17610,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_volume_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeVolumeStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_volume_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeVolumeStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_volume_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18255,7 +17657,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys assigned a tag with a specific key, regardless of the tag value. volume-id - The volume ID. volume-type - The Amazon EBS volume type (gp2 | gp3 | io1 | io2 | st1 | sc1| standard) -- `"VolumeId"`: The volume IDs. +- `"VolumeId"`: The volume IDs. If not specified, then all volumes are included in the + response. - `"dryRun"`: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. @@ -18265,9 +17668,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_volumes(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeVolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_volumes(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeVolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_volumes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18280,11 +17682,9 @@ end describe_volumes_modifications() describe_volumes_modifications(params::Dict{String,<:Any}) -Describes the most recent volume modification request for the specified EBS volumes. If a -volume has never been modified, some information in the output will be null. If a volume -has been modified more than once, the output includes only the most recent modification -request. For more information, see Monitor the progress of volume modifications in the -Amazon EBS User Guide. +Describes the most recent volume modification request for the specified EBS volumes. For +more information, see Monitor the progress of volume modifications in the Amazon EBS User +Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -18307,15 +17707,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the end of the items returned by the previous request. - `"VolumeId"`: The IDs of the volumes. """ -function describe_volumes_modifications(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_volumes_modifications(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeVolumesModifications"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVolumesModifications"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_volumes_modifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18344,16 +17740,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_vpc_attribute( +describe_vpc_attribute( Attribute, VpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeVpcAttribute", + Dict{String,Any}("Attribute" => Attribute, "VpcId" => VpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVpcAttribute", - Dict{String,Any}("Attribute" => Attribute, "VpcId" => VpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpc_attribute( Attribute, VpcId, @@ -18392,11 +17786,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_vpc_classic_link(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeVpcClassicLink"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_vpc_classic_link(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeVpcClassicLink"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_vpc_classic_link( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18427,15 +17818,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function describe_vpc_classic_link_dns_support(; +describe_vpc_classic_link_dns_support(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeVpcClassicLinkDnsSupport"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVpcClassicLinkDnsSupport"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpc_classic_link_dns_support( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18468,15 +17857,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results, make another request with the returned NextToken value. - `"NextToken"`: The token to request the next page of results. """ -function describe_vpc_endpoint_connection_notifications(; +describe_vpc_endpoint_connection_notifications(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeVpcEndpointConnectionNotifications"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVpcEndpointConnectionNotifications"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpc_endpoint_connection_notifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18511,15 +17898,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a value larger than 1,000, only 1,000 results are returned. - `"NextToken"`: The token to retrieve the next page of results. """ -function describe_vpc_endpoint_connections(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_vpc_endpoint_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeVpcEndpointConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_vpc_endpoint_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18558,15 +17942,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to retrieve the next page of results. - `"ServiceId"`: The IDs of the endpoint services. """ -function describe_vpc_endpoint_service_configurations(; +describe_vpc_endpoint_service_configurations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeVpcEndpointServiceConfigurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVpcEndpointServiceConfigurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpc_endpoint_service_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18601,16 +17983,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a value larger than 1,000, only 1,000 results are returned. - `"NextToken"`: The token to retrieve the next page of results. """ -function describe_vpc_endpoint_service_permissions( +describe_vpc_endpoint_service_permissions( ServiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DescribeVpcEndpointServicePermissions", + Dict{String,Any}("ServiceId" => ServiceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVpcEndpointServicePermissions", - Dict{String,Any}("ServiceId" => ServiceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpc_endpoint_service_permissions( ServiceId, params::AbstractDict{String}; @@ -18658,15 +18038,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from a prior call.) - `"ServiceName"`: The service names. """ -function describe_vpc_endpoint_services(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_vpc_endpoint_services(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DescribeVpcEndpointServices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DescribeVpcEndpointServices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpc_endpoint_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18709,11 +18085,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from a prior call.) - `"VpcEndpointId"`: The IDs of the VPC endpoints. """ -function describe_vpc_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeVpcEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_vpc_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeVpcEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_vpc_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18763,15 +18136,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_vpc_peering_connections(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +describe_vpc_peering_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DescribeVpcPeeringConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_vpc_peering_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18823,9 +18193,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_vpcs(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("DescribeVpcs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_vpcs(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeVpcs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_vpcs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18866,11 +18235,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_vpn_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeVpnConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_vpn_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeVpnConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_vpn_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18910,11 +18276,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function describe_vpn_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DescribeVpnGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_vpn_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DescribeVpnGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_vpn_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -18944,16 +18307,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function detach_classic_link_vpc( +detach_classic_link_vpc( instanceId, vpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DetachClassicLinkVpc", + Dict{String,Any}("instanceId" => instanceId, "vpcId" => vpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DetachClassicLinkVpc", - Dict{String,Any}("instanceId" => instanceId, "vpcId" => vpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_classic_link_vpc( instanceId, vpcId, @@ -18992,16 +18353,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function detach_internet_gateway( +detach_internet_gateway( internetGatewayId, vpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DetachInternetGateway", + Dict{String,Any}("internetGatewayId" => internetGatewayId, "vpcId" => vpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DetachInternetGateway", - Dict{String,Any}("internetGatewayId" => internetGatewayId, "vpcId" => vpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_internet_gateway( internetGatewayId, vpcId, @@ -19047,16 +18406,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys interface might still be visible. The instance metadata will get updated when you stop and start the instance. """ -function detach_network_interface( - attachmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +detach_network_interface(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DetachNetworkInterface", Dict{String,Any}("attachmentId" => attachmentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detach_network_interface( attachmentId, params::AbstractDict{String}; @@ -19091,22 +18447,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function detach_verified_access_trust_provider( +detach_verified_access_trust_provider( VerifiedAccessInstanceId, VerifiedAccessTrustProviderId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DetachVerifiedAccessTrustProvider", + Dict{String,Any}( + "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, + "VerifiedAccessTrustProviderId" => VerifiedAccessTrustProviderId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DetachVerifiedAccessTrustProvider", - Dict{String,Any}( - "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, - "VerifiedAccessTrustProviderId" => VerifiedAccessTrustProviderId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_verified_access_trust_provider( VerifiedAccessInstanceId, VerifiedAccessTrustProviderId, @@ -19166,14 +18520,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function detach_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DetachVolume", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +detach_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DetachVolume", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function detach_volume( VolumeId, params::AbstractDict{String}; @@ -19210,16 +18562,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function detach_vpn_gateway( +detach_vpn_gateway( VpcId, VpnGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DetachVpnGateway", + Dict{String,Any}("VpcId" => VpcId, "VpnGatewayId" => VpnGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DetachVpnGateway", - Dict{String,Any}("VpcId" => VpcId, "VpnGatewayId" => VpnGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_vpn_gateway( VpcId, VpnGatewayId, @@ -19256,16 +18606,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_address_transfer( - AllocationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +disable_address_transfer(AllocationId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DisableAddressTransfer", Dict{String,Any}("AllocationId" => AllocationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_address_transfer( AllocationId, params::AbstractDict{String}; @@ -19299,15 +18646,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys disabled for. For example, us-east-1. - `"Statistic"`: The statistic used for the disabled subscription. """ -function disable_aws_network_performance_metric_subscription(; +disable_aws_network_performance_metric_subscription(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisableAwsNetworkPerformanceMetricSubscription"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisableAwsNetworkPerformanceMetricSubscription"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_aws_network_performance_metric_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -19335,15 +18680,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_ebs_encryption_by_default(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +disable_ebs_encryption_by_default(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DisableEbsEncryptionByDefault"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_ebs_encryption_by_default( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -19377,14 +18719,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AMI. This parameter overrides any errors that are encountered while cleaning up resources in your account. """ -function disable_fast_launch(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DisableFastLaunch", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_fast_launch(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DisableFastLaunch", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_fast_launch( ImageId, params::AbstractDict{String}; @@ -19416,18 +18756,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_fast_snapshot_restores( +disable_fast_snapshot_restores( AvailabilityZone, SourceSnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisableFastSnapshotRestores", + Dict{String,Any}( + "AvailabilityZone" => AvailabilityZone, "SourceSnapshotId" => SourceSnapshotId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisableFastSnapshotRestores", - Dict{String,Any}( - "AvailabilityZone" => AvailabilityZone, "SourceSnapshotId" => SourceSnapshotId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_fast_snapshot_restores( AvailabilityZone, SourceSnapshotId, @@ -19472,14 +18810,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_image(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DisableImage", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_image(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DisableImage", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_image( ImageId, params::AbstractDict{String}; @@ -19511,15 +18847,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_image_block_public_access(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +disable_image_block_public_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DisableImageBlockPublicAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_image_block_public_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -19547,16 +18880,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_image_deprecation( - ImageId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +disable_image_deprecation(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DisableImageDeprecation", Dict{String,Any}("ImageId" => ImageId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_image_deprecation( ImageId, params::AbstractDict{String}; @@ -19589,16 +18919,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_image_deregistration_protection( +disable_image_deregistration_protection( ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisableImageDeregistrationProtection", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisableImageDeregistrationProtection", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_image_deregistration_protection( ImageId, params::AbstractDict{String}; @@ -19629,16 +18957,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_ipam_organization_admin_account( +disable_ipam_organization_admin_account( DelegatedAdminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisableIpamOrganizationAdminAccount", + Dict{String,Any}("DelegatedAdminAccountId" => DelegatedAdminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisableIpamOrganizationAdminAccount", - Dict{String,Any}("DelegatedAdminAccountId" => DelegatedAdminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_ipam_organization_admin_account( DelegatedAdminAccountId, params::AbstractDict{String}; @@ -19672,11 +18998,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_serial_console_access(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DisableSerialConsoleAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +disable_serial_console_access(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DisableSerialConsoleAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function disable_serial_console_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -19694,11 +19018,13 @@ end Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you disable block public access for snapshots -in a Region, users can publicly share snapshots in that Region. If block public access is -enabled in block-all-sharing mode, and you disable block public access, all snapshots that -were previously publicly shared are no longer treated as private and they become publicly -accessible again. For more information, see Block public access for snapshots in the -Amazon EBS User Guide . +in a Region, users can publicly share snapshots in that Region. Enabling block public +access for snapshots in block-all-sharing mode does not change the permissions for +snapshots that are already publicly shared. Instead, it prevents these snapshots from be +publicly visible and publicly accessible. Therefore, the attributes for these snapshots +still indicate that they are publicly shared, even though they are not publicly available. +If you disable block public access , these snapshots will become publicly available again. +For more information, see Block public access for snapshots in the Amazon EBS User Guide . # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -19706,15 +19032,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_snapshot_block_public_access(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +disable_snapshot_block_public_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DisableSnapshotBlockPublicAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_snapshot_block_public_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -19744,16 +19067,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TransitGatewayAttachmentId"`: The ID of the attachment. - `"TransitGatewayRouteTableAnnouncementId"`: The ID of the route table announcement. """ -function disable_transit_gateway_route_table_propagation( +disable_transit_gateway_route_table_propagation( TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisableTransitGatewayRouteTablePropagation", + Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisableTransitGatewayRouteTablePropagation", - Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_transit_gateway_route_table_propagation( TransitGatewayRouteTableId, params::AbstractDict{String}; @@ -19792,16 +19113,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_vgw_route_propagation( +disable_vgw_route_propagation( GatewayId, RouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisableVgwRoutePropagation", + Dict{String,Any}("GatewayId" => GatewayId, "RouteTableId" => RouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisableVgwRoutePropagation", - Dict{String,Any}("GatewayId" => GatewayId, "RouteTableId" => RouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_vgw_route_propagation( GatewayId, RouteTableId, @@ -19838,14 +19157,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disable_vpc_classic_link(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DisableVpcClassicLink", - Dict{String,Any}("vpcId" => vpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_vpc_classic_link(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "DisableVpcClassicLink", + Dict{String,Any}("vpcId" => vpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_vpc_classic_link( vpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -19870,15 +19187,12 @@ request. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"VpcId"`: The ID of the VPC. """ -function disable_vpc_classic_link_dns_support(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +disable_vpc_classic_link_dns_support(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DisableVpcClassicLinkDnsSupport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_vpc_classic_link_dns_support( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -19906,11 +19220,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_address(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "DisassociateAddress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +disassociate_address(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("DisassociateAddress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function disassociate_address( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -19943,18 +19254,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_client_vpn_target_network( +disassociate_client_vpn_target_network( AssociationId, ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateClientVpnTargetNetwork", + Dict{String,Any}( + "AssociationId" => AssociationId, "ClientVpnEndpointId" => ClientVpnEndpointId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateClientVpnTargetNetwork", - Dict{String,Any}( - "AssociationId" => AssociationId, "ClientVpnEndpointId" => ClientVpnEndpointId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_client_vpn_target_network( AssociationId, ClientVpnEndpointId, @@ -19998,16 +19307,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_enclave_certificate_iam_role( +disassociate_enclave_certificate_iam_role( CertificateArn, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateEnclaveCertificateIamRole", + Dict{String,Any}("CertificateArn" => CertificateArn, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateEnclaveCertificateIamRole", - Dict{String,Any}("CertificateArn" => CertificateArn, "RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_enclave_certificate_iam_role( CertificateArn, RoleArn, @@ -20039,16 +19346,14 @@ DescribeIamInstanceProfileAssociations to get the association ID. - `association_id`: The ID of the IAM instance profile association. """ -function disassociate_iam_instance_profile( +disassociate_iam_instance_profile( AssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateIamInstanceProfile", + Dict{String,Any}("AssociationId" => AssociationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateIamInstanceProfile", - Dict{String,Any}("AssociationId" => AssociationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_iam_instance_profile( AssociationId, params::AbstractDict{String}; @@ -20081,21 +19386,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_instance_event_window( +disassociate_instance_event_window( AssociationTarget, InstanceEventWindowId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DisassociateInstanceEventWindow", + Dict{String,Any}( + "AssociationTarget" => AssociationTarget, + "InstanceEventWindowId" => InstanceEventWindowId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateInstanceEventWindow", - Dict{String,Any}( - "AssociationTarget" => AssociationTarget, - "InstanceEventWindowId" => InstanceEventWindowId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_instance_event_window( AssociationTarget, InstanceEventWindowId, @@ -20137,16 +19440,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_ipam_byoasn( - Asn, Cidr; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +disassociate_ipam_byoasn(Asn, Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "DisassociateIpamByoasn", Dict{String,Any}("Asn" => Asn, "Cidr" => Cidr); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_ipam_byoasn( Asn, Cidr, @@ -20180,18 +19480,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_ipam_resource_discovery( +disassociate_ipam_resource_discovery( IpamResourceDiscoveryAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateIpamResourceDiscovery", + Dict{String,Any}( + "IpamResourceDiscoveryAssociationId" => IpamResourceDiscoveryAssociationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateIpamResourceDiscovery", - Dict{String,Any}( - "IpamResourceDiscoveryAssociationId" => IpamResourceDiscoveryAssociationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_ipam_resource_discovery( IpamResourceDiscoveryAssociationId, params::AbstractDict{String}; @@ -20242,16 +19540,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys forcibly releasing the IP addresses if connections are still in progress. Default value is 350 seconds. """ -function disassociate_nat_gateway_address( +disassociate_nat_gateway_address( AssociationId, NatGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateNatGatewayAddress", + Dict{String,Any}("AssociationId" => AssociationId, "NatGatewayId" => NatGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateNatGatewayAddress", - Dict{String,Any}("AssociationId" => AssociationId, "NatGatewayId" => NatGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_nat_gateway_address( AssociationId, NatGatewayId, @@ -20293,16 +19589,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_route_table( +disassociate_route_table( associationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateRouteTable", + Dict{String,Any}("associationId" => associationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateRouteTable", - Dict{String,Any}("associationId" => associationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_route_table( associationId, params::AbstractDict{String}; @@ -20330,16 +19624,14 @@ the CIDR block before you can disassociate it. - `association_id`: The association ID for the CIDR block. """ -function disassociate_subnet_cidr_block( +disassociate_subnet_cidr_block( associationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateSubnetCidrBlock", + Dict{String,Any}("associationId" => associationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateSubnetCidrBlock", - Dict{String,Any}("associationId" => associationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_subnet_cidr_block( associationId, params::AbstractDict{String}; @@ -20373,23 +19665,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"SubnetIds"`: The IDs of the subnets; """ -function disassociate_transit_gateway_multicast_domain( +disassociate_transit_gateway_multicast_domain( TransitGatewayAttachmentId, TransitGatewayMulticastDomainId, item; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DisassociateTransitGatewayMulticastDomain", + Dict{String,Any}( + "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, + "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId, + "item" => item, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateTransitGatewayMulticastDomain", - Dict{String,Any}( - "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, - "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId, - "item" => item, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_transit_gateway_multicast_domain( TransitGatewayAttachmentId, TransitGatewayMulticastDomainId, @@ -20432,21 +19722,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_transit_gateway_policy_table( +disassociate_transit_gateway_policy_table( TransitGatewayAttachmentId, TransitGatewayPolicyTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DisassociateTransitGatewayPolicyTable", + Dict{String,Any}( + "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, + "TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateTransitGatewayPolicyTable", - Dict{String,Any}( - "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, - "TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_transit_gateway_policy_table( TransitGatewayAttachmentId, TransitGatewayPolicyTableId, @@ -20486,21 +19774,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_transit_gateway_route_table( +disassociate_transit_gateway_route_table( TransitGatewayAttachmentId, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "DisassociateTransitGatewayRouteTable", + Dict{String,Any}( + "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateTransitGatewayRouteTable", - Dict{String,Any}( - "TransitGatewayAttachmentId" => TransitGatewayAttachmentId, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_transit_gateway_route_table( TransitGatewayAttachmentId, TransitGatewayRouteTableId, @@ -20541,18 +19827,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function disassociate_trunk_interface( +disassociate_trunk_interface( AssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateTrunkInterface", + Dict{String,Any}("AssociationId" => AssociationId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateTrunkInterface", - Dict{String,Any}( - "AssociationId" => AssociationId, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_trunk_interface( AssociationId, params::AbstractDict{String}; @@ -20588,16 +19870,14 @@ the VPC (the primary CIDR block). - `association_id`: The association ID for the CIDR block. """ -function disassociate_vpc_cidr_block( +disassociate_vpc_cidr_block( associationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "DisassociateVpcCidrBlock", + Dict{String,Any}("associationId" => associationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "DisassociateVpcCidrBlock", - Dict{String,Any}("associationId" => associationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_vpc_cidr_block( associationId, params::AbstractDict{String}; @@ -20631,18 +19911,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_address_transfer( +enable_address_transfer( AllocationId, TransferAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableAddressTransfer", + Dict{String,Any}( + "AllocationId" => AllocationId, "TransferAccountId" => TransferAccountId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableAddressTransfer", - Dict{String,Any}( - "AllocationId" => AllocationId, "TransferAccountId" => TransferAccountId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_address_transfer( AllocationId, TransferAccountId, @@ -20685,15 +19963,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Destination Availability Zones must be in the same Region. - `"Statistic"`: The statistic used for the enabled subscription. """ -function enable_aws_network_performance_metric_subscription(; +enable_aws_network_performance_metric_subscription(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableAwsNetworkPerformanceMetricSubscription"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableAwsNetworkPerformanceMetricSubscription"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_aws_network_performance_metric_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -20725,15 +20001,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_ebs_encryption_by_default(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +enable_ebs_encryption_by_default(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "EnableEbsEncryptionByDefault"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_ebs_encryption_by_default( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -20777,14 +20050,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that are used for pre-provisioning the AMI for Windows fast launch. The associated ResourceType must be snapshot. """ -function enable_fast_launch(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "EnableFastLaunch", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_fast_launch(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "EnableFastLaunch", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_fast_launch( ImageId, params::AbstractDict{String}; @@ -20821,18 +20092,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_fast_snapshot_restores( +enable_fast_snapshot_restores( AvailabilityZone, SourceSnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableFastSnapshotRestores", + Dict{String,Any}( + "AvailabilityZone" => AvailabilityZone, "SourceSnapshotId" => SourceSnapshotId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableFastSnapshotRestores", - Dict{String,Any}( - "AvailabilityZone" => AvailabilityZone, "SourceSnapshotId" => SourceSnapshotId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_fast_snapshot_restores( AvailabilityZone, SourceSnapshotId, @@ -20876,14 +20145,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_image(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "EnableImage", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_image(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "EnableImage", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_image( ImageId, params::AbstractDict{String}; @@ -20920,16 +20187,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_image_block_public_access( +enable_image_block_public_access( ImageBlockPublicAccessState; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( - "EnableImageBlockPublicAccess", - Dict{String,Any}("ImageBlockPublicAccessState" => ImageBlockPublicAccessState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +) = ec2( + "EnableImageBlockPublicAccess", + Dict{String,Any}("ImageBlockPublicAccessState" => ImageBlockPublicAccessState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_image_block_public_access( ImageBlockPublicAccessState, params::AbstractDict{String}; @@ -20972,16 +20237,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_image_deprecation( +enable_image_deprecation( DeprecateAt, ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableImageDeprecation", + Dict{String,Any}("DeprecateAt" => DeprecateAt, "ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableImageDeprecation", - Dict{String,Any}("DeprecateAt" => DeprecateAt, "ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_image_deprecation( DeprecateAt, ImageId, @@ -21022,16 +20285,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WithCooldown"`: If true, enforces deregistration protection for 24 hours after deregistration protection is disabled. """ -function enable_image_deregistration_protection( +enable_image_deregistration_protection( ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableImageDeregistrationProtection", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableImageDeregistrationProtection", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_image_deregistration_protection( ImageId, params::AbstractDict{String}; @@ -21063,16 +20324,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_ipam_organization_admin_account( +enable_ipam_organization_admin_account( DelegatedAdminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableIpamOrganizationAdminAccount", + Dict{String,Any}("DelegatedAdminAccountId" => DelegatedAdminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableIpamOrganizationAdminAccount", - Dict{String,Any}("DelegatedAdminAccountId" => DelegatedAdminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_ipam_organization_admin_account( DelegatedAdminAccountId, params::AbstractDict{String}; @@ -21108,15 +20367,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_reachability_analyzer_organization_sharing(; +enable_reachability_analyzer_organization_sharing(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableReachabilityAnalyzerOrganizationSharing"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableReachabilityAnalyzerOrganizationSharing"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_reachability_analyzer_organization_sharing( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -21142,11 +20399,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_serial_console_access(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "EnableSerialConsoleAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +enable_serial_console_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("EnableSerialConsoleAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function enable_serial_console_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -21166,26 +20420,24 @@ Enables or modifies the block public access for snapshots setting at the account the specified Amazon Web Services Region. After you enable block public access for snapshots in a Region, users can no longer request public sharing for snapshots in that Region. Snapshots that are already publicly shared are either treated as private or they -remain publicly shared, depending on the State that you specify. If block public access is -enabled in block-all-sharing mode, and you change the mode to block-new-sharing, all -snapshots that were previously publicly shared are no longer treated as private and they -become publicly accessible again. For more information, see Block public access for -snapshots in the Amazon EBS User Guide. +remain publicly shared, depending on the State that you specify. Enabling block public +access for snapshots in block all sharing mode does not change the permissions for +snapshots that are already publicly shared. Instead, it prevents these snapshots from be +publicly visible and publicly accessible. Therefore, the attributes for these snapshots +still indicate that they are publicly shared, even though they are not publicly available. +If you later disable block public access or change the mode to block new sharing, these +snapshots will become publicly available again. For more information, see Block public +access for snapshots in the Amazon EBS User Guide. # Arguments - `state`: The mode in which to enable block public access for snapshots for the Region. Specify one of the following values: block-all-sharing - Prevents all public sharing of snapshots in the Region. Users in the account will no longer be able to request new public sharing. Additionally, snapshots that are already publicly shared are treated as private - and they are no longer publicly available. If you enable block public access for snapshots - in block-all-sharing mode, it does not change the permissions for snapshots that are - already publicly shared. Instead, it prevents these snapshots from be publicly visible and - publicly accessible. Therefore, the attributes for these snapshots still indicate that they - are publicly shared, even though they are not publicly available. block-new-sharing - - Prevents only new public sharing of snapshots in the Region. Users in the account will no - longer be able to request new public sharing. However, snapshots that are already publicly - shared, remain publicly available. unblocked is not a valid value for - EnableSnapshotBlockPublicAccess. + and they are no longer publicly available. block-new-sharing - Prevents only new public + sharing of snapshots in the Region. Users in the account will no longer be able to request + new public sharing. However, snapshots that are already publicly shared, remain publicly + available. unblocked is not a valid value for EnableSnapshotBlockPublicAccess. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -21193,16 +20445,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_snapshot_block_public_access( +enable_snapshot_block_public_access( State; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableSnapshotBlockPublicAccess", + Dict{String,Any}("State" => State); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableSnapshotBlockPublicAccess", - Dict{String,Any}("State" => State); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_snapshot_block_public_access( State, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -21233,16 +20483,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TransitGatewayRouteTableAnnouncementId"`: The ID of the transit gateway route table announcement. """ -function enable_transit_gateway_route_table_propagation( +enable_transit_gateway_route_table_propagation( TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableTransitGatewayRouteTablePropagation", + Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableTransitGatewayRouteTablePropagation", - Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_transit_gateway_route_table_propagation( TransitGatewayRouteTableId, params::AbstractDict{String}; @@ -21284,16 +20532,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_vgw_route_propagation( +enable_vgw_route_propagation( GatewayId, RouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "EnableVgwRoutePropagation", + Dict{String,Any}("GatewayId" => GatewayId, "RouteTableId" => RouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "EnableVgwRoutePropagation", - Dict{String,Any}("GatewayId" => GatewayId, "RouteTableId" => RouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_vgw_route_propagation( GatewayId, RouteTableId, @@ -21330,14 +20576,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_volume_io(volumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "EnableVolumeIO", - Dict{String,Any}("volumeId" => volumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_volume_io(volumeId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "EnableVolumeIO", + Dict{String,Any}("volumeId" => volumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_volume_io( volumeId, params::AbstractDict{String}; @@ -21372,14 +20616,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function enable_vpc_classic_link(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "EnableVpcClassicLink", - Dict{String,Any}("vpcId" => vpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_vpc_classic_link(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "EnableVpcClassicLink", + Dict{String,Any}("vpcId" => vpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_vpc_classic_link( vpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -21405,15 +20647,12 @@ addressed from a linked EC2-Classic instance. You must specify a VPC ID in the r Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"VpcId"`: The ID of the VPC. """ -function enable_vpc_classic_link_dns_support(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +enable_vpc_classic_link_dns_support(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "EnableVpcClassicLinkDnsSupport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_vpc_classic_link_dns_support( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -21440,16 +20679,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function export_client_vpn_client_certificate_revocation_list( +export_client_vpn_client_certificate_revocation_list( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ExportClientVpnClientCertificateRevocationList", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ExportClientVpnClientCertificateRevocationList", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_client_vpn_client_certificate_revocation_list( ClientVpnEndpointId, params::AbstractDict{String}; @@ -21487,16 +20724,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function export_client_vpn_client_configuration( +export_client_vpn_client_configuration( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ExportClientVpnClientConfiguration", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ExportClientVpnClientConfiguration", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_client_vpn_client_configuration( ClientVpnEndpointId, params::AbstractDict{String}; @@ -21542,24 +20777,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys named 'vmimport'. - `"TagSpecification"`: The tags to apply to the export image task during creation. """ -function export_image( +export_image( DiskImageFormat, ImageId, S3ExportLocation; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ExportImage", + Dict{String,Any}( + "DiskImageFormat" => DiskImageFormat, + "ImageId" => ImageId, + "S3ExportLocation" => S3ExportLocation, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ExportImage", - Dict{String,Any}( - "DiskImageFormat" => DiskImageFormat, - "ImageId" => ImageId, - "S3ExportLocation" => S3ExportLocation, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_image( DiskImageFormat, ImageId, @@ -21617,19 +20850,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys transit-gateway-route-destination-cidr-block - The CIDR range. type - The type of route (propagated | static). """ -function export_transit_gateway_routes( +export_transit_gateway_routes( S3Bucket, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ExportTransitGatewayRoutes", + Dict{String,Any}( + "S3Bucket" => S3Bucket, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ExportTransitGatewayRoutes", - Dict{String,Any}( - "S3Bucket" => S3Bucket, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_transit_gateway_routes( S3Bucket, TransitGatewayRouteTableId, @@ -21672,16 +20903,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_associated_enclave_certificate_iam_roles( +get_associated_enclave_certificate_iam_roles( CertificateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetAssociatedEnclaveCertificateIamRoles", + Dict{String,Any}("CertificateArn" => CertificateArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetAssociatedEnclaveCertificateIamRoles", - Dict{String,Any}("CertificateArn" => CertificateArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_associated_enclave_certificate_iam_roles( CertificateArn, params::AbstractDict{String}; @@ -21715,16 +20944,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_associated_ipv6_pool_cidrs( - PoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_associated_ipv6_pool_cidrs(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetAssociatedIpv6PoolCidrs", Dict{String,Any}("PoolId" => PoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_associated_ipv6_pool_cidrs( PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -21756,15 +20982,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: The starting time for the performance data request. The starting time must be formatted as yyyy-mm-ddThh:mm:ss. For example, 2022-06-10T12:00:00.000Z. """ -function get_aws_network_performance_data(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_aws_network_performance_data(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetAwsNetworkPerformanceData"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_aws_network_performance_data( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -21798,16 +21021,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Pagination. - `"NextToken"`: The token to use to retrieve the next page of results. """ -function get_capacity_reservation_usage( +get_capacity_reservation_usage( CapacityReservationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetCapacityReservationUsage", + Dict{String,Any}("CapacityReservationId" => CapacityReservationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetCapacityReservationUsage", - Dict{String,Any}("CapacityReservationId" => CapacityReservationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_capacity_reservation_usage( CapacityReservationId, params::AbstractDict{String}; @@ -21850,14 +21071,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_coip_pool_usage(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "GetCoipPoolUsage", - Dict{String,Any}("PoolId" => PoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_coip_pool_usage(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "GetCoipPoolUsage", + Dict{String,Any}("PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_coip_pool_usage( PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -21876,13 +21095,8 @@ end Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output -includes the last three system event log errors. By default, the console output returns -buffered information that was posted shortly after an instance transition state (start, -stop, reboot, or terminate). This information is available for at least one hour after the -most recent post. Only the most recent 64 KB of console output is available. You can -optionally retrieve the latest serial console output at any time during the instance -lifecycle. This option is supported on instance types that use the Nitro hypervisor. For -more information, see Instance console output in the Amazon EC2 User Guide. +includes the last three system event log errors. For more information, see Instance console +output in the Amazon EC2 User Guide. # Arguments - `instance_id`: The ID of the instance. @@ -21895,14 +21109,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_console_output(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "GetConsoleOutput", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_console_output(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "GetConsoleOutput", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_console_output( InstanceId, params::AbstractDict{String}; @@ -21937,16 +21149,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WakeUp"`: When set to true, acts as keystroke input and wakes up an instance that's in standby or \"sleep\" mode. """ -function get_console_screenshot( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_console_screenshot(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetConsoleScreenshot", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_console_screenshot( InstanceId, params::AbstractDict{String}; @@ -21979,16 +21188,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_default_credit_specification( +get_default_credit_specification( InstanceFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetDefaultCreditSpecification", + Dict{String,Any}("InstanceFamily" => InstanceFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetDefaultCreditSpecification", - Dict{String,Any}("InstanceFamily" => InstanceFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_default_credit_specification( InstanceFamily, params::AbstractDict{String}; @@ -22019,11 +21226,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_ebs_default_kms_key_id(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "GetEbsDefaultKmsKeyId"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_ebs_default_kms_key_id(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("GetEbsDefaultKmsKeyId"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_ebs_default_kms_key_id( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -22048,11 +21252,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_ebs_encryption_by_default(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "GetEbsEncryptionByDefault"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_ebs_encryption_by_default(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("GetEbsEncryptionByDefault"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_ebs_encryption_by_default( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -22090,23 +21291,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_flow_logs_integration_template( +get_flow_logs_integration_template( ConfigDeliveryS3DestinationArn, FlowLogId, IntegrateService; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "GetFlowLogsIntegrationTemplate", + Dict{String,Any}( + "ConfigDeliveryS3DestinationArn" => ConfigDeliveryS3DestinationArn, + "FlowLogId" => FlowLogId, + "IntegrateService" => IntegrateService, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetFlowLogsIntegrationTemplate", - Dict{String,Any}( - "ConfigDeliveryS3DestinationArn" => ConfigDeliveryS3DestinationArn, - "FlowLogId" => FlowLogId, - "IntegrateService" => IntegrateService, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_flow_logs_integration_template( ConfigDeliveryS3DestinationArn, FlowLogId, @@ -22153,16 +21352,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Pagination. - `"NextToken"`: The token to use to retrieve the next page of results. """ -function get_groups_for_capacity_reservation( +get_groups_for_capacity_reservation( CapacityReservationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetGroupsForCapacityReservation", + Dict{String,Any}("CapacityReservationId" => CapacityReservationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetGroupsForCapacityReservation", - Dict{String,Any}("CapacityReservationId" => CapacityReservationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_groups_for_capacity_reservation( CapacityReservationId, params::AbstractDict{String}; @@ -22199,16 +21396,14 @@ being purchased. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"HostIdSet"`: The IDs of the Dedicated Hosts with which the reservation is associated. """ -function get_host_reservation_purchase_preview( +get_host_reservation_purchase_preview( OfferingId, item; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetHostReservationPurchasePreview", + Dict{String,Any}("OfferingId" => OfferingId, "item" => item); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetHostReservationPurchasePreview", - Dict{String,Any}("OfferingId" => OfferingId, "item" => item); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_host_reservation_purchase_preview( OfferingId, item, @@ -22241,15 +21436,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_image_block_public_access_state(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_image_block_public_access_state(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetImageBlockPublicAccessState"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_image_block_public_access_state( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -22275,15 +21467,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_instance_metadata_defaults(; - aws_config::AbstractAWSConfig=current_aws_config() +get_instance_metadata_defaults(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "GetInstanceMetadataDefaults"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetInstanceMetadataDefaults"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_metadata_defaults( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -22315,18 +21503,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request. If the request will succeed, the response is DryRunOperation. Otherwise, the response is UnauthorizedOperation. """ -function get_instance_tpm_ek_pub( +get_instance_tpm_ek_pub( InstanceId, KeyFormat, KeyType; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetInstanceTpmEkPub", + Dict{String,Any}( + "InstanceId" => InstanceId, "KeyFormat" => KeyFormat, "KeyType" => KeyType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetInstanceTpmEkPub", - Dict{String,Any}( - "InstanceId" => InstanceId, "KeyFormat" => KeyFormat, "KeyType" => KeyType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_tpm_ek_pub( InstanceId, KeyFormat, @@ -22382,23 +21568,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function get_instance_types_from_instance_requirements( +get_instance_types_from_instance_requirements( ArchitectureType, InstanceRequirements, VirtualizationType; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "GetInstanceTypesFromInstanceRequirements", + Dict{String,Any}( + "ArchitectureType" => ArchitectureType, + "InstanceRequirements" => InstanceRequirements, + "VirtualizationType" => VirtualizationType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetInstanceTypesFromInstanceRequirements", - Dict{String,Any}( - "ArchitectureType" => ArchitectureType, - "InstanceRequirements" => InstanceRequirements, - "VirtualizationType" => VirtualizationType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_types_from_instance_requirements( ArchitectureType, InstanceRequirements, @@ -22446,16 +21630,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_instance_uefi_data( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_instance_uefi_data(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetInstanceUefiData", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_instance_uefi_data( InstanceId, params::AbstractDict{String}; @@ -22498,16 +21679,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys omit this option, it will default to the value of EndTime. - `"VpcId"`: The ID of the VPC you want your history records filtered by. """ -function get_ipam_address_history( +get_ipam_address_history( Cidr, IpamScopeId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetIpamAddressHistory", + Dict{String,Any}("Cidr" => Cidr, "IpamScopeId" => IpamScopeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetIpamAddressHistory", - Dict{String,Any}("Cidr" => Cidr, "IpamScopeId" => IpamScopeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ipam_address_history( Cidr, IpamScopeId, @@ -22553,21 +21732,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function get_ipam_discovered_accounts( +get_ipam_discovered_accounts( DiscoveryRegion, IpamResourceDiscoveryId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "GetIpamDiscoveredAccounts", + Dict{String,Any}( + "DiscoveryRegion" => DiscoveryRegion, + "IpamResourceDiscoveryId" => IpamResourceDiscoveryId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetIpamDiscoveredAccounts", - Dict{String,Any}( - "DiscoveryRegion" => DiscoveryRegion, - "IpamResourceDiscoveryId" => IpamResourceDiscoveryId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ipam_discovered_accounts( DiscoveryRegion, IpamResourceDiscoveryId, @@ -22611,21 +21788,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys page of results. - `"NextToken"`: The token for the next page of results. """ -function get_ipam_discovered_public_addresses( +get_ipam_discovered_public_addresses( AddressRegion, IpamResourceDiscoveryId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "GetIpamDiscoveredPublicAddresses", + Dict{String,Any}( + "AddressRegion" => AddressRegion, + "IpamResourceDiscoveryId" => IpamResourceDiscoveryId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetIpamDiscoveredPublicAddresses", - Dict{String,Any}( - "AddressRegion" => AddressRegion, - "IpamResourceDiscoveryId" => IpamResourceDiscoveryId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ipam_discovered_public_addresses( AddressRegion, IpamResourceDiscoveryId, @@ -22669,24 +21844,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Filter"`: Filters. - `"MaxResults"`: The maximum number of discovered resource CIDRs to return in one page of results. -- `"NextToken"`: Specify the pagination token from a previous request to retrieve the next - page of results. -""" -function get_ipam_discovered_resource_cidrs( - IpamResourceDiscoveryId, - ResourceRegion; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return ec2( - "GetIpamDiscoveredResourceCidrs", - Dict{String,Any}( - "IpamResourceDiscoveryId" => IpamResourceDiscoveryId, - "ResourceRegion" => ResourceRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +- `"NextToken"`: Specify the pagination token from a previous request to retrieve the next + page of results. +""" +get_ipam_discovered_resource_cidrs( + IpamResourceDiscoveryId, + ResourceRegion; + aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "GetIpamDiscoveredResourceCidrs", + Dict{String,Any}( + "IpamResourceDiscoveryId" => IpamResourceDiscoveryId, + "ResourceRegion" => ResourceRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_ipam_discovered_resource_cidrs( IpamResourceDiscoveryId, ResourceRegion, @@ -22734,16 +21907,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results you would like returned per page. - `"NextToken"`: The token for the next page of results. """ -function get_ipam_pool_allocations( - IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_ipam_pool_allocations(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetIpamPoolAllocations", Dict{String,Any}("IpamPoolId" => IpamPoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_ipam_pool_allocations( IpamPoolId, params::AbstractDict{String}; @@ -22778,14 +21948,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in the request. - `"NextToken"`: The token for the next page of results. """ -function get_ipam_pool_cidrs(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "GetIpamPoolCidrs", - Dict{String,Any}("IpamPoolId" => IpamPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_ipam_pool_cidrs(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "GetIpamPoolCidrs", + Dict{String,Any}("IpamPoolId" => IpamPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_ipam_pool_cidrs( IpamPoolId, params::AbstractDict{String}; @@ -22828,16 +21996,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceTag"`: The resource tag. - `"ResourceType"`: The resource type. """ -function get_ipam_resource_cidrs( - IpamScopeId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_ipam_resource_cidrs(IpamScopeId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetIpamResourceCidrs", Dict{String,Any}("IpamScopeId" => IpamScopeId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_ipam_resource_cidrs( IpamScopeId, params::AbstractDict{String}; @@ -22873,16 +22038,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_launch_template_data( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_launch_template_data(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetLaunchTemplateData", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_launch_template_data( InstanceId, params::AbstractDict{String}; @@ -22917,16 +22079,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_managed_prefix_list_associations( +get_managed_prefix_list_associations( PrefixListId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetManagedPrefixListAssociations", + Dict{String,Any}("PrefixListId" => PrefixListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetManagedPrefixListAssociations", - Dict{String,Any}("PrefixListId" => PrefixListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_managed_prefix_list_associations( PrefixListId, params::AbstractDict{String}; @@ -22962,16 +22122,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetVersion"`: The version of the prefix list for which to return the entries. The default is the current version. """ -function get_managed_prefix_list_entries( +get_managed_prefix_list_entries( PrefixListId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetManagedPrefixListEntries", + Dict{String,Any}("PrefixListId" => PrefixListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetManagedPrefixListEntries", - Dict{String,Any}("PrefixListId" => PrefixListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_managed_prefix_list_entries( PrefixListId, params::AbstractDict{String}; @@ -23005,18 +22163,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_network_insights_access_scope_analysis_findings( +get_network_insights_access_scope_analysis_findings( NetworkInsightsAccessScopeAnalysisId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetNetworkInsightsAccessScopeAnalysisFindings", + Dict{String,Any}( + "NetworkInsightsAccessScopeAnalysisId" => NetworkInsightsAccessScopeAnalysisId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetNetworkInsightsAccessScopeAnalysisFindings", - Dict{String,Any}( - "NetworkInsightsAccessScopeAnalysisId" => NetworkInsightsAccessScopeAnalysisId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_network_insights_access_scope_analysis_findings( NetworkInsightsAccessScopeAnalysisId, params::AbstractDict{String}; @@ -23054,16 +22210,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_network_insights_access_scope_content( +get_network_insights_access_scope_content( NetworkInsightsAccessScopeId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetNetworkInsightsAccessScopeContent", + Dict{String,Any}("NetworkInsightsAccessScopeId" => NetworkInsightsAccessScopeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetNetworkInsightsAccessScopeContent", - Dict{String,Any}("NetworkInsightsAccessScopeId" => NetworkInsightsAccessScopeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_network_insights_access_scope_content( NetworkInsightsAccessScopeId, params::AbstractDict{String}; @@ -23110,14 +22264,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_password_data(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "GetPasswordData", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_password_data(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "GetPasswordData", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_password_data( InstanceId, params::AbstractDict{String}; @@ -23153,16 +22305,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetConfiguration"`: The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances. """ -function get_reserved_instances_exchange_quote( +get_reserved_instances_exchange_quote( ReservedInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetReservedInstancesExchangeQuote", + Dict{String,Any}("ReservedInstanceId" => ReservedInstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetReservedInstancesExchangeQuote", - Dict{String,Any}("ReservedInstanceId" => ReservedInstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reserved_instances_exchange_quote( ReservedInstanceId, params::AbstractDict{String}; @@ -23205,16 +22355,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function get_security_groups_for_vpc( - VpcId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_security_groups_for_vpc(VpcId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetSecurityGroupsForVpc", Dict{String,Any}("VpcId" => VpcId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_security_groups_for_vpc( VpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -23241,15 +22388,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_serial_console_access_status(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_serial_console_access_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetSerialConsoleAccessStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_serial_console_access_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -23275,15 +22419,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_snapshot_block_public_access_state(; +get_snapshot_block_public_access_state(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetSnapshotBlockPublicAccessState"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetSnapshotBlockPublicAccessState"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_snapshot_block_public_access_state( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -23335,16 +22477,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys single Availability Zone. - `"TargetCapacityUnitType"`: The unit for the target capacity. """ -function get_spot_placement_scores( +get_spot_placement_scores( TargetCapacity; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetSpotPlacementScores", + Dict{String,Any}("TargetCapacity" => TargetCapacity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetSpotPlacementScores", - Dict{String,Any}("TargetCapacity" => TargetCapacity); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_spot_placement_scores( TargetCapacity, params::AbstractDict{String}; @@ -23385,16 +22525,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_subnet_cidr_reservations( - SubnetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +get_subnet_cidr_reservations(SubnetId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "GetSubnetCidrReservations", Dict{String,Any}("SubnetId" => SubnetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_subnet_cidr_reservations( SubnetId, params::AbstractDict{String}; @@ -23430,16 +22567,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_transit_gateway_attachment_propagations( +get_transit_gateway_attachment_propagations( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetTransitGatewayAttachmentPropagations", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetTransitGatewayAttachmentPropagations", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_attachment_propagations( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -23484,18 +22619,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_transit_gateway_multicast_domain_associations( +get_transit_gateway_multicast_domain_associations( TransitGatewayMulticastDomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetTransitGatewayMulticastDomainAssociations", + Dict{String,Any}("TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetTransitGatewayMulticastDomainAssociations", - Dict{String,Any}( - "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_multicast_domain_associations( TransitGatewayMulticastDomainId, params::AbstractDict{String}; @@ -23536,16 +22667,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_transit_gateway_policy_table_associations( +get_transit_gateway_policy_table_associations( TransitGatewayPolicyTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetTransitGatewayPolicyTableAssociations", + Dict{String,Any}("TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetTransitGatewayPolicyTableAssociations", - Dict{String,Any}("TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_policy_table_associations( TransitGatewayPolicyTableId, params::AbstractDict{String}; @@ -23586,16 +22715,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_transit_gateway_policy_table_entries( +get_transit_gateway_policy_table_entries( TransitGatewayPolicyTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetTransitGatewayPolicyTableEntries", + Dict{String,Any}("TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetTransitGatewayPolicyTableEntries", - Dict{String,Any}("TransitGatewayPolicyTableId" => TransitGatewayPolicyTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_policy_table_entries( TransitGatewayPolicyTableId, params::AbstractDict{String}; @@ -23643,16 +22770,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_transit_gateway_prefix_list_references( +get_transit_gateway_prefix_list_references( TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetTransitGatewayPrefixListReferences", + Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetTransitGatewayPrefixListReferences", - Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_prefix_list_references( TransitGatewayRouteTableId, params::AbstractDict{String}; @@ -23696,16 +22821,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_transit_gateway_route_table_associations( +get_transit_gateway_route_table_associations( TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetTransitGatewayRouteTableAssociations", + Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetTransitGatewayRouteTableAssociations", - Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_route_table_associations( TransitGatewayRouteTableId, params::AbstractDict{String}; @@ -23750,16 +22873,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function get_transit_gateway_route_table_propagations( +get_transit_gateway_route_table_propagations( TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetTransitGatewayRouteTablePropagations", + Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetTransitGatewayRouteTablePropagations", - Dict{String,Any}("TransitGatewayRouteTableId" => TransitGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_route_table_propagations( TransitGatewayRouteTableId, params::AbstractDict{String}; @@ -23796,16 +22917,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_verified_access_endpoint_policy( +get_verified_access_endpoint_policy( VerifiedAccessEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetVerifiedAccessEndpointPolicy", + Dict{String,Any}("VerifiedAccessEndpointId" => VerifiedAccessEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetVerifiedAccessEndpointPolicy", - Dict{String,Any}("VerifiedAccessEndpointId" => VerifiedAccessEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_verified_access_endpoint_policy( VerifiedAccessEndpointId, params::AbstractDict{String}; @@ -23840,16 +22959,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_verified_access_group_policy( +get_verified_access_group_policy( VerifiedAccessGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "GetVerifiedAccessGroupPolicy", + Dict{String,Any}("VerifiedAccessGroupId" => VerifiedAccessGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetVerifiedAccessGroupPolicy", - Dict{String,Any}("VerifiedAccessGroupId" => VerifiedAccessGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_verified_access_group_policy( VerifiedAccessGroupId, params::AbstractDict{String}; @@ -23891,21 +23008,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys file for your customer gateway device. You can specify one of the following versions: ikev1 or ikev2. """ -function get_vpn_connection_device_sample_configuration( +get_vpn_connection_device_sample_configuration( VpnConnectionDeviceTypeId, VpnConnectionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "GetVpnConnectionDeviceSampleConfiguration", + Dict{String,Any}( + "VpnConnectionDeviceTypeId" => VpnConnectionDeviceTypeId, + "VpnConnectionId" => VpnConnectionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetVpnConnectionDeviceSampleConfiguration", - Dict{String,Any}( - "VpnConnectionDeviceTypeId" => VpnConnectionDeviceTypeId, - "VpnConnectionId" => VpnConnectionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_vpn_connection_device_sample_configuration( VpnConnectionDeviceTypeId, VpnConnectionId, @@ -23954,15 +23069,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return. """ -function get_vpn_connection_device_types(; - aws_config::AbstractAWSConfig=current_aws_config() +get_vpn_connection_device_types(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "GetVpnConnectionDeviceTypes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetVpnConnectionDeviceTypes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_vpn_connection_device_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -23990,21 +23101,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function get_vpn_tunnel_replacement_status( +get_vpn_tunnel_replacement_status( VpnConnectionId, VpnTunnelOutsideIpAddress; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "GetVpnTunnelReplacementStatus", + Dict{String,Any}( + "VpnConnectionId" => VpnConnectionId, + "VpnTunnelOutsideIpAddress" => VpnTunnelOutsideIpAddress, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "GetVpnTunnelReplacementStatus", - Dict{String,Any}( - "VpnConnectionId" => VpnConnectionId, - "VpnTunnelOutsideIpAddress" => VpnTunnelOutsideIpAddress, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_vpn_tunnel_replacement_status( VpnConnectionId, VpnTunnelOutsideIpAddress, @@ -24050,21 +23159,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function import_client_vpn_client_certificate_revocation_list( +import_client_vpn_client_certificate_revocation_list( CertificateRevocationList, ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ImportClientVpnClientCertificateRevocationList", + Dict{String,Any}( + "CertificateRevocationList" => CertificateRevocationList, + "ClientVpnEndpointId" => ClientVpnEndpointId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ImportClientVpnClientCertificateRevocationList", - Dict{String,Any}( - "CertificateRevocationList" => CertificateRevocationList, - "ClientVpnEndpointId" => ClientVpnEndpointId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_client_vpn_client_certificate_revocation_list( CertificateRevocationList, ClientVpnEndpointId, @@ -24152,9 +23259,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UsageOperation"`: The usage operation value. For more information, see Licensing options in the VM Import/Export User Guide. """ -function import_image(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("ImportImage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +import_image(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("ImportImage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function import_image( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -24188,14 +23294,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"launchSpecification"`: The launch specification. """ -function import_instance(platform; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ImportInstance", - Dict{String,Any}("platform" => platform); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +import_instance(platform; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ImportInstance", + Dict{String,Any}("platform" => platform); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function import_instance( platform, params::AbstractDict{String}; @@ -24235,16 +23339,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function import_key_pair( +import_key_pair( keyName, publicKeyMaterial; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ImportKeyPair", + Dict{String,Any}("keyName" => keyName, "publicKeyMaterial" => publicKeyMaterial); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ImportKeyPair", - Dict{String,Any}("keyName" => keyName, "publicKeyMaterial" => publicKeyMaterial); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_key_pair( keyName, publicKeyMaterial, @@ -24305,9 +23407,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleName"`: The name of the role to use when not using the default role, 'vmimport'. - `"TagSpecification"`: The tags to apply to the import snapshot task during creation. """ -function import_snapshot(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("ImportSnapshot"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +import_snapshot(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("ImportSnapshot"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function import_snapshot( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -24340,18 +23441,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function import_volume( +import_volume( availabilityZone, image, volume; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ImportVolume", + Dict{String,Any}( + "availabilityZone" => availabilityZone, "image" => image, "volume" => volume + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ImportVolume", - Dict{String,Any}( - "availabilityZone" => availabilityZone, "image" => image, "volume" => volume - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_volume( availabilityZone, image, @@ -24397,11 +23496,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function list_images_in_recycle_bin(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ListImagesInRecycleBin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_images_in_recycle_bin(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("ListImagesInRecycleBin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_images_in_recycle_bin( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -24432,11 +23528,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnapshotId"`: The IDs of the snapshots to list. Omit this parameter to list all of the snapshots that are in the Recycle Bin. """ -function list_snapshots_in_recycle_bin(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ListSnapshotsInRecycleBin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_snapshots_in_recycle_bin(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("ListSnapshotsInRecycleBin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_snapshots_in_recycle_bin( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -24499,16 +23592,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys snapshot lock will automatically expire after this period lapses. You must specify either this parameter or ExpirationDate, but not both. Allowed values: Min: 1, max 36500 """ -function lock_snapshot( - LockMode, SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +lock_snapshot(LockMode, SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "LockSnapshot", Dict{String,Any}("LockMode" => LockMode, "SnapshotId" => SnapshotId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function lock_snapshot( LockMode, SnapshotId, @@ -24546,16 +23636,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_address_attribute( - AllocationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +modify_address_attribute(AllocationId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ModifyAddressAttribute", Dict{String,Any}("AllocationId" => AllocationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_address_attribute( AllocationId, params::AbstractDict{String}; @@ -24590,16 +23677,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_availability_zone_group( +modify_availability_zone_group( GroupName, OptInStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyAvailabilityZoneGroup", + Dict{String,Any}("GroupName" => GroupName, "OptInStatus" => OptInStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyAvailabilityZoneGroup", - Dict{String,Any}("GroupName" => GroupName, "OptInStatus" => OptInStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_availability_zone_group( GroupName, OptInStatus, @@ -24624,11 +23709,12 @@ end modify_capacity_reservation(capacity_reservation_id) modify_capacity_reservation(capacity_reservation_id, params::Dict{String,<:Any}) -Modifies a Capacity Reservation's capacity and the conditions under which it is to be -released. You cannot change a Capacity Reservation's instance type, EBS optimization, -instance store settings, platform, Availability Zone, or instance eligibility. If you need +Modifies a Capacity Reservation's capacity, instance eligibility, and the conditions under +which it is to be released. You can't modify a Capacity Reservation's instance type, EBS +optimization, platform, instance store settings, Availability Zone, or tenancy. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, -and then create a new one with the required attributes. +and then create a new one with the required attributes. For more information, see Modify an +active Capacity Reservation. # Arguments - `capacity_reservation_id`: The ID of the Capacity Reservation. @@ -24651,20 +23737,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Reservation can have one of the following end types: unlimited - The Capacity Reservation remains active until you explicitly cancel it. Do not provide an EndDate value if EndDateType is unlimited. limited - The Capacity Reservation expires automatically at - a specified date and time. You must provide an EndDate value if EndDateType is limited. -- `"InstanceCount"`: The number of instances for which to reserve capacity. The number of - instances can't be increased or decreased by more than 1000 in a single request. -""" -function modify_capacity_reservation( - CapacityReservationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( - "ModifyCapacityReservation", - Dict{String,Any}("CapacityReservationId" => CapacityReservationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + a specified date and time. You must provide an EndDate value if EndDateType is limited. +- `"InstanceCount"`: The number of instances for which to reserve capacity. The number of + instances can't be increased or decreased by more than 1000 in a single request. +- `"InstanceMatchCriteria"`: The matching criteria (instance eligibility) that you want to + use in the modified Capacity Reservation. If you change the instance eligibility of an + existing Capacity Reservation from targeted to open, any running instances that match the + attributes of the Capacity Reservation, have the CapacityReservationPreference set to open, + and are not yet running in the Capacity Reservation, will automatically use the modified + Capacity Reservation. To modify the instance eligibility, the Capacity Reservation must be + completely idle (zero usage). +""" +modify_capacity_reservation( + CapacityReservationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyCapacityReservation", + Dict{String,Any}("CapacityReservationId" => CapacityReservationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_capacity_reservation( CapacityReservationId, params::AbstractDict{String}; @@ -24718,16 +23809,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide. """ -function modify_capacity_reservation_fleet( +modify_capacity_reservation_fleet( CapacityReservationFleetId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyCapacityReservationFleet", + Dict{String,Any}("CapacityReservationFleetId" => CapacityReservationFleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyCapacityReservationFleet", - Dict{String,Any}("CapacityReservationFleetId" => CapacityReservationFleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_capacity_reservation_fleet( CapacityReservationFleetId, params::AbstractDict{String}; @@ -24791,16 +23880,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpnPort"`: The port number to assign to the Client VPN endpoint for TCP and UDP traffic. Valid Values: 443 | 1194 Default Value: 443 """ -function modify_client_vpn_endpoint( +modify_client_vpn_endpoint( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyClientVpnEndpoint", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyClientVpnEndpoint", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_client_vpn_endpoint( ClientVpnEndpointId, params::AbstractDict{String}; @@ -24846,16 +23933,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_default_credit_specification( +modify_default_credit_specification( CpuCredits, InstanceFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyDefaultCreditSpecification", + Dict{String,Any}("CpuCredits" => CpuCredits, "InstanceFamily" => InstanceFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyDefaultCreditSpecification", - Dict{String,Any}("CpuCredits" => CpuCredits, "InstanceFamily" => InstanceFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_default_credit_specification( CpuCredits, InstanceFamily, @@ -24910,16 +23995,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_ebs_default_kms_key_id( +modify_ebs_default_kms_key_id( KmsKeyId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyEbsDefaultKmsKeyId", + Dict{String,Any}("KmsKeyId" => KmsKeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyEbsDefaultKmsKeyId", - Dict{String,Any}("KmsKeyId" => KmsKeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_ebs_default_kms_key_id( KmsKeyId, params::AbstractDict{String}; @@ -24975,14 +24058,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LaunchTemplateConfig"`: The launch template and overrides. - `"TargetCapacitySpecification"`: The size of the EC2 Fleet. """ -function modify_fleet(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyFleet", - Dict{String,Any}("FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_fleet(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyFleet", + Dict{String,Any}("FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_fleet( FleetId, params::AbstractDict{String}; @@ -25022,16 +24103,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserId"`: The Amazon Web Services account IDs. This parameter is valid only when modifying the loadPermission attribute. """ -function modify_fpga_image_attribute( +modify_fpga_image_attribute( FpgaImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyFpgaImageAttribute", + Dict{String,Any}("FpgaImageId" => FpgaImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyFpgaImageAttribute", - Dict{String,Any}("FpgaImageId" => FpgaImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_fpga_image_attribute( FpgaImageId, params::AbstractDict{String}; @@ -25081,14 +24160,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys InstanceType and InstanceFamily in the same request. - `"autoPlacement"`: Specify whether to enable or disable auto-placement. """ -function modify_hosts(hostId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyHosts", - Dict{String,Any}("hostId" => hostId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_hosts(hostId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyHosts", + Dict{String,Any}("hostId" => hostId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_hosts( hostId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -25134,16 +24211,13 @@ have permission to use the relevant Describe command for the resource type. - `use_long_ids`: Indicate whether the resource should use longer IDs (17-character IDs). """ -function modify_id_format( - Resource, UseLongIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +modify_id_format(Resource, UseLongIds; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ModifyIdFormat", Dict{String,Any}("Resource" => Resource, "UseLongIds" => UseLongIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_id_format( Resource, UseLongIds, @@ -25200,20 +24274,18 @@ for the resource type. - `use_long_ids`: Indicates whether the resource should use longer IDs (17-character IDs) """ -function modify_identity_id_format( +modify_identity_id_format( principalArn, resource, useLongIds; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyIdentityIdFormat", + Dict{String,Any}( + "principalArn" => principalArn, + "resource" => resource, + "useLongIds" => useLongIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyIdentityIdFormat", - Dict{String,Any}( - "principalArn" => principalArn, - "resource" => resource, - "useLongIds" => useLongIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_identity_id_format( principalArn, resource, @@ -25283,14 +24355,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_image_attribute(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyImageAttribute", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_image_attribute(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyImageAttribute", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_image_attribute( ImageId, params::AbstractDict{String}; @@ -25370,22 +24440,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Virtual Function interface for the instance. There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time. This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable. -- `"userData"`: Changes the instance's user data to the specified value. If you are using - an Amazon Web Services SDK or command line tool, base64-encoding is performed for you, and - you can load the text from a file. Otherwise, you must provide base64-encoded text. +- `"userData"`: Changes the instance's user data to the specified value. User data must be + base64-encoded. Depending on the tool or SDK that you're using, the base64-encoding might + be performed for you. For more information, see Work with instance user data. - `"value"`: A new value for the attribute. Use only with the kernel, ramdisk, userData, disableApiTermination, or instanceInitiatedShutdownBehavior attribute. """ -function modify_instance_attribute( - instanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +modify_instance_attribute(instanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ModifyInstanceAttribute", Dict{String,Any}("instanceId" => instanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_instance_attribute( instanceId, params::AbstractDict{String}; @@ -25420,21 +24487,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_instance_capacity_reservation_attributes( +modify_instance_capacity_reservation_attributes( CapacityReservationSpecification, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ModifyInstanceCapacityReservationAttributes", + Dict{String,Any}( + "CapacityReservationSpecification" => CapacityReservationSpecification, + "InstanceId" => InstanceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyInstanceCapacityReservationAttributes", - Dict{String,Any}( - "CapacityReservationSpecification" => CapacityReservationSpecification, - "InstanceId" => InstanceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_instance_capacity_reservation_attributes( CapacityReservationSpecification, InstanceId, @@ -25477,16 +24542,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_instance_credit_specification( +modify_instance_credit_specification( InstanceCreditSpecification; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyInstanceCreditSpecification", + Dict{String,Any}("InstanceCreditSpecification" => InstanceCreditSpecification); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyInstanceCreditSpecification", - Dict{String,Any}("InstanceCreditSpecification" => InstanceCreditSpecification); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_instance_credit_specification( InstanceCreditSpecification, params::AbstractDict{String}; @@ -25525,23 +24588,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_instance_event_start_time( +modify_instance_event_start_time( InstanceEventId, InstanceId, NotBefore; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ModifyInstanceEventStartTime", + Dict{String,Any}( + "InstanceEventId" => InstanceEventId, + "InstanceId" => InstanceId, + "NotBefore" => NotBefore, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyInstanceEventStartTime", - Dict{String,Any}( - "InstanceEventId" => InstanceEventId, - "InstanceId" => InstanceId, - "NotBefore" => NotBefore, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_instance_event_start_time( InstanceEventId, InstanceId, @@ -25597,16 +24658,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name of the event window. - `"TimeRange"`: The time ranges of the event window. """ -function modify_instance_event_window( +modify_instance_event_window( InstanceEventWindowId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyInstanceEventWindow", + Dict{String,Any}("InstanceEventWindowId" => InstanceEventWindowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyInstanceEventWindow", - Dict{String,Any}("InstanceEventWindowId" => InstanceEventWindowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_instance_event_window( InstanceEventWindowId, params::AbstractDict{String}; @@ -25646,16 +24705,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_instance_maintenance_options( +modify_instance_maintenance_options( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyInstanceMaintenanceOptions", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyInstanceMaintenanceOptions", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_instance_maintenance_options( InstanceId, params::AbstractDict{String}; @@ -25699,15 +24756,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide. """ -function modify_instance_metadata_defaults(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +modify_instance_metadata_defaults(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ModifyInstanceMetadataDefaults"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_instance_metadata_defaults( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -25766,16 +24820,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instance metadata. Set to disabled to turn off access to instance tags from the instance metadata. For more information, see Work with instance tags using the instance metadata. """ -function modify_instance_metadata_options( +modify_instance_metadata_options( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyInstanceMetadataOptions", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyInstanceMetadataOptions", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_instance_metadata_options( InstanceId, params::AbstractDict{String}; @@ -25829,16 +24881,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys host to dedicated or default. Attempting to make one of these unsupported tenancy changes results in an InvalidRequest error code. """ -function modify_instance_placement( - instanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +modify_instance_placement(instanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ModifyInstancePlacement", Dict{String,Any}("instanceId" => instanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_instance_placement( instanceId, params::AbstractDict{String}; @@ -25874,19 +24923,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"EnablePrivateGua"`: Enable this option to use your own GUA ranges as private IPv6 + addresses. This option is disabled by default. - `"RemoveOperatingRegion"`: The operating Regions to remove. - `"Tier"`: IPAM is offered in a Free Tier and an Advanced Tier. For more information about the features available in each tier and the costs associated with the tiers, see Amazon VPC pricing > IPAM tab. """ -function modify_ipam(IpamId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyIpam", - Dict{String,Any}("IpamId" => IpamId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_ipam(IpamId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyIpam", + Dict{String,Any}("IpamId" => IpamId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_ipam( IpamId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -25939,14 +24988,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"RemoveAllocationResourceTag"`: Remove tag allocation rules from a pool. """ -function modify_ipam_pool(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyIpamPool", - Dict{String,Any}("IpamPoolId" => IpamPoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_ipam_pool(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyIpamPool", + Dict{String,Any}("IpamPoolId" => IpamPoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_ipam_pool( IpamPoolId, params::AbstractDict{String}; @@ -25988,27 +25035,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_ipam_resource_cidr( +modify_ipam_resource_cidr( CurrentIpamScopeId, Monitored, ResourceCidr, ResourceId, ResourceRegion; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ModifyIpamResourceCidr", + Dict{String,Any}( + "CurrentIpamScopeId" => CurrentIpamScopeId, + "Monitored" => Monitored, + "ResourceCidr" => ResourceCidr, + "ResourceId" => ResourceId, + "ResourceRegion" => ResourceRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyIpamResourceCidr", - Dict{String,Any}( - "CurrentIpamScopeId" => CurrentIpamScopeId, - "Monitored" => Monitored, - "ResourceCidr" => ResourceCidr, - "ResourceId" => ResourceId, - "ResourceRegion" => ResourceRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_ipam_resource_cidr( CurrentIpamScopeId, Monitored, @@ -26060,16 +25105,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"RemoveOperatingRegion"`: Remove operating Regions. """ -function modify_ipam_resource_discovery( +modify_ipam_resource_discovery( IpamResourceDiscoveryId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyIpamResourceDiscovery", + Dict{String,Any}("IpamResourceDiscoveryId" => IpamResourceDiscoveryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyIpamResourceDiscovery", - Dict{String,Any}("IpamResourceDiscoveryId" => IpamResourceDiscoveryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_ipam_resource_discovery( IpamResourceDiscoveryId, params::AbstractDict{String}; @@ -26105,14 +25148,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_ipam_scope(IpamScopeId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyIpamScope", - Dict{String,Any}("IpamScopeId" => IpamScopeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_ipam_scope(IpamScopeId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyIpamScope", + Dict{String,Any}("IpamScopeId" => IpamScopeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_ipam_scope( IpamScopeId, params::AbstractDict{String}; @@ -26151,11 +25192,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SetDefaultVersion"`: The version number of the launch template to set as the default version. """ -function modify_launch_template(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyLaunchTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +modify_launch_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("ModifyLaunchTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function modify_launch_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -26189,16 +25227,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LocalGatewayVirtualInterfaceGroupId"`: The ID of the virtual interface group. - `"NetworkInterfaceId"`: The ID of the network interface. """ -function modify_local_gateway_route( +modify_local_gateway_route( LocalGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyLocalGatewayRoute", + Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyLocalGatewayRoute", - Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_local_gateway_route( LocalGatewayRouteTableId, params::AbstractDict{String}; @@ -26245,16 +25281,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PrefixListName"`: A name for the prefix list. - `"RemoveEntry"`: One or more entries to remove from the prefix list. """ -function modify_managed_prefix_list( +modify_managed_prefix_list( PrefixListId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyManagedPrefixList", + Dict{String,Any}("PrefixListId" => PrefixListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyManagedPrefixList", - Dict{String,Any}("PrefixListId" => PrefixListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_managed_prefix_list( PrefixListId, params::AbstractDict{String}; @@ -26317,16 +25351,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default value is true. You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls. """ -function modify_network_interface_attribute( +modify_network_interface_attribute( networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyNetworkInterfaceAttribute", + Dict{String,Any}("networkInterfaceId" => networkInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyNetworkInterfaceAttribute", - Dict{String,Any}("networkInterfaceId" => networkInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_network_interface_attribute( networkInterfaceId, params::AbstractDict{String}; @@ -26367,16 +25399,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. """ -function modify_private_dns_name_options( +modify_private_dns_name_options( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyPrivateDnsNameOptions", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyPrivateDnsNameOptions", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_private_dns_name_options( InstanceId, params::AbstractDict{String}; @@ -26411,22 +25441,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency. """ -function modify_reserved_instances( +modify_reserved_instances( ReservedInstancesConfigurationSetItemType, ReservedInstancesId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ModifyReservedInstances", + Dict{String,Any}( + "ReservedInstancesConfigurationSetItemType" => + ReservedInstancesConfigurationSetItemType, + "ReservedInstancesId" => ReservedInstancesId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyReservedInstances", - Dict{String,Any}( - "ReservedInstancesConfigurationSetItemType" => - ReservedInstancesConfigurationSetItemType, - "ReservedInstancesId" => ReservedInstancesId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_reserved_instances( ReservedInstancesConfigurationSetItemType, ReservedInstancesId, @@ -26467,16 +25495,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_security_group_rules( +modify_security_group_rules( GroupId, SecurityGroupRule; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifySecurityGroupRules", + Dict{String,Any}("GroupId" => GroupId, "SecurityGroupRule" => SecurityGroupRule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifySecurityGroupRules", - Dict{String,Any}("GroupId" => GroupId, "SecurityGroupRule" => SecurityGroupRule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_security_group_rules( GroupId, SecurityGroupRule, @@ -26527,16 +25553,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_snapshot_attribute( - SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +modify_snapshot_attribute(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ModifySnapshotAttribute", Dict{String,Any}("SnapshotId" => SnapshotId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_snapshot_attribute( SnapshotId, params::AbstractDict{String}; @@ -26571,16 +25594,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"StorageTier"`: The name of the storage tier. You must specify archive. """ -function modify_snapshot_tier( - SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +modify_snapshot_tier(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifySnapshotTier", + Dict{String,Any}("SnapshotId" => SnapshotId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifySnapshotTier", - Dict{String,Any}("SnapshotId" => SnapshotId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_snapshot_tier( SnapshotId, params::AbstractDict{String}; @@ -26637,16 +25656,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys size of the Spot Fleet. Supported only for fleets of type maintain. - `"targetCapacity"`: The size of the fleet. """ -function modify_spot_fleet_request( +modify_spot_fleet_request( spotFleetRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifySpotFleetRequest", + Dict{String,Any}("spotFleetRequestId" => spotFleetRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifySpotFleetRequest", - Dict{String,Any}("spotFleetRequestId" => spotFleetRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_spot_fleet_request( spotFleetRequestId, params::AbstractDict{String}; @@ -26691,7 +25708,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DisableLniAtDeviceIndex"`: Specify true to indicate that local network interfaces at the current position should be disabled. - `"EnableDns64"`: Indicates whether DNS queries made to the Amazon-provided DNS Resolver - in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. + in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. You must + first configure a NAT gateway in a public subnet (separate from the subnet containing the + IPv6-only workloads). For example, the subnet containing the NAT gateway should have a + 0.0.0.0/0 route pointing to the internet gateway. For more information, see Configure DNS64 + and NAT64 in the Amazon VPC User Guide. - `"EnableLniAtDeviceIndex"`: Indicates the device position for local network interfaces in this subnet. For example, 1 indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network @@ -26711,20 +25732,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Public IPv4 Address tab on the Amazon VPC pricing page. - `"PrivateDnsHostnameTypeOnLaunch"`: The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS - name can be based on the instance IPv4 address (ip-name) or the instance ID - (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance - ID (resource-name). -""" -function modify_subnet_attribute( - subnetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( - "ModifySubnetAttribute", - Dict{String,Any}("subnetId" => subnetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + name can be based on the instance IPv4 address (ip-name) or the instance ID + (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance + ID (resource-name). +""" +modify_subnet_attribute(subnetId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifySubnetAttribute", + Dict{String,Any}("subnetId" => subnetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_subnet_attribute( subnetId, params::AbstractDict{String}; @@ -26764,16 +25781,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RemoveNetworkService"`: The network service, for example Amazon DNS, that you no longer want to mirror. """ -function modify_traffic_mirror_filter_network_services( +modify_traffic_mirror_filter_network_services( TrafficMirrorFilterId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyTrafficMirrorFilterNetworkServices", + Dict{String,Any}("TrafficMirrorFilterId" => TrafficMirrorFilterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyTrafficMirrorFilterNetworkServices", - Dict{String,Any}("TrafficMirrorFilterId" => TrafficMirrorFilterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_traffic_mirror_filter_network_services( TrafficMirrorFilterId, params::AbstractDict{String}; @@ -26824,16 +25839,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourcePortRange"`: The port range to assign to the Traffic Mirror rule. - `"TrafficDirection"`: The type of traffic to assign to the rule. """ -function modify_traffic_mirror_filter_rule( +modify_traffic_mirror_filter_rule( TrafficMirrorFilterRuleId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyTrafficMirrorFilterRule", + Dict{String,Any}("TrafficMirrorFilterRuleId" => TrafficMirrorFilterRuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyTrafficMirrorFilterRule", - Dict{String,Any}("TrafficMirrorFilterRuleId" => TrafficMirrorFilterRuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_traffic_mirror_filter_rule( TrafficMirrorFilterRuleId, params::AbstractDict{String}; @@ -26886,16 +25899,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys as the source, or have a VPC peering connection with the source. - `"VirtualNetworkId"`: The virtual network ID of the Traffic Mirror session. """ -function modify_traffic_mirror_session( +modify_traffic_mirror_session( TrafficMirrorSessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyTrafficMirrorSession", + Dict{String,Any}("TrafficMirrorSessionId" => TrafficMirrorSessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyTrafficMirrorSession", - Dict{String,Any}("TrafficMirrorSessionId" => TrafficMirrorSessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_traffic_mirror_session( TrafficMirrorSessionId, params::AbstractDict{String}; @@ -26934,16 +25945,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"Options"`: The options to modify. """ -function modify_transit_gateway( +modify_transit_gateway( TransitGatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyTransitGateway", + Dict{String,Any}("TransitGatewayId" => TransitGatewayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyTransitGateway", - Dict{String,Any}("TransitGatewayId" => TransitGatewayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_transit_gateway( TransitGatewayId, params::AbstractDict{String}; @@ -26979,21 +25988,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TransitGatewayAttachmentId"`: The ID of the attachment to which traffic is routed. """ -function modify_transit_gateway_prefix_list_reference( +modify_transit_gateway_prefix_list_reference( PrefixListId, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ModifyTransitGatewayPrefixListReference", + Dict{String,Any}( + "PrefixListId" => PrefixListId, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyTransitGatewayPrefixListReference", - Dict{String,Any}( - "PrefixListId" => PrefixListId, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_transit_gateway_prefix_list_reference( PrefixListId, TransitGatewayRouteTableId, @@ -27036,16 +26043,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Options"`: The new VPC attachment options. - `"RemoveSubnetIds"`: The IDs of one or more subnets to remove. """ -function modify_transit_gateway_vpc_attachment( +modify_transit_gateway_vpc_attachment( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyTransitGatewayVpcAttachment", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyTransitGatewayVpcAttachment", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_transit_gateway_vpc_attachment( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -27089,19 +26094,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkInterfaceOptions"`: The network interface options. - `"VerifiedAccessGroupId"`: The ID of the Verified Access group. """ -function modify_verified_access_endpoint( +modify_verified_access_endpoint( VerifiedAccessEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVerifiedAccessEndpoint", + Dict{String,Any}( + "VerifiedAccessEndpointId" => VerifiedAccessEndpointId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVerifiedAccessEndpoint", - Dict{String,Any}( - "VerifiedAccessEndpointId" => VerifiedAccessEndpointId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_verified_access_endpoint( VerifiedAccessEndpointId, params::AbstractDict{String}; @@ -27144,19 +26147,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyEnabled"`: The status of the Verified Access policy. - `"SseSpecification"`: The options for server side encryption. """ -function modify_verified_access_endpoint_policy( +modify_verified_access_endpoint_policy( VerifiedAccessEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVerifiedAccessEndpointPolicy", + Dict{String,Any}( + "VerifiedAccessEndpointId" => VerifiedAccessEndpointId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVerifiedAccessEndpointPolicy", - Dict{String,Any}( - "VerifiedAccessEndpointId" => VerifiedAccessEndpointId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_verified_access_endpoint_policy( VerifiedAccessEndpointId, params::AbstractDict{String}; @@ -27198,19 +26199,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"VerifiedAccessInstanceId"`: The ID of the Verified Access instance. """ -function modify_verified_access_group( +modify_verified_access_group( VerifiedAccessGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVerifiedAccessGroup", + Dict{String,Any}( + "VerifiedAccessGroupId" => VerifiedAccessGroupId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVerifiedAccessGroup", - Dict{String,Any}( - "VerifiedAccessGroupId" => VerifiedAccessGroupId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_verified_access_group( VerifiedAccessGroupId, params::AbstractDict{String}; @@ -27253,19 +26252,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyEnabled"`: The status of the Verified Access policy. - `"SseSpecification"`: The options for server side encryption. """ -function modify_verified_access_group_policy( +modify_verified_access_group_policy( VerifiedAccessGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVerifiedAccessGroupPolicy", + Dict{String,Any}( + "VerifiedAccessGroupId" => VerifiedAccessGroupId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVerifiedAccessGroupPolicy", - Dict{String,Any}( - "VerifiedAccessGroupId" => VerifiedAccessGroupId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_verified_access_group_policy( VerifiedAccessGroupId, params::AbstractDict{String}; @@ -27306,19 +26303,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_verified_access_instance( +modify_verified_access_instance( VerifiedAccessInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVerifiedAccessInstance", + Dict{String,Any}( + "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVerifiedAccessInstance", - Dict{String,Any}( - "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_verified_access_instance( VerifiedAccessInstanceId, params::AbstractDict{String}; @@ -27360,20 +26355,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_verified_access_instance_logging_configuration( +modify_verified_access_instance_logging_configuration( AccessLogs, VerifiedAccessInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVerifiedAccessInstanceLoggingConfiguration", + Dict{String,Any}( + "AccessLogs" => AccessLogs, + "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVerifiedAccessInstanceLoggingConfiguration", - Dict{String,Any}( - "AccessLogs" => AccessLogs, - "VerifiedAccessInstanceId" => VerifiedAccessInstanceId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_verified_access_instance_logging_configuration( AccessLogs, VerifiedAccessInstanceId, @@ -27422,19 +26415,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provider. - `"SseSpecification"`: The options for server side encryption. """ -function modify_verified_access_trust_provider( +modify_verified_access_trust_provider( VerifiedAccessTrustProviderId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVerifiedAccessTrustProvider", + Dict{String,Any}( + "VerifiedAccessTrustProviderId" => VerifiedAccessTrustProviderId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVerifiedAccessTrustProvider", - Dict{String,Any}( - "VerifiedAccessTrustProviderId" => VerifiedAccessTrustProviderId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_verified_access_trust_provider( VerifiedAccessTrustProviderId, params::AbstractDict{String}; @@ -27507,14 +26498,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon EBS volume types in the Amazon EBS User Guide. Default: The existing type is retained. """ -function modify_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyVolume", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyVolume", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_volume( VolumeId, params::AbstractDict{String}; @@ -27551,16 +26540,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_volume_attribute( - VolumeId; aws_config::AbstractAWSConfig=current_aws_config() +modify_volume_attribute(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyVolumeAttribute", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVolumeAttribute", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_volume_attribute( VolumeId, params::AbstractDict{String}; @@ -27601,14 +26586,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnableNetworkAddressUsageMetrics"`: Indicates whether Network Address Usage metrics are enabled for your VPC. """ -function modify_vpc_attribute(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ModifyVpcAttribute", - Dict{String,Any}("vpcId" => vpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_vpc_attribute(vpcId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ModifyVpcAttribute", + Dict{String,Any}("vpcId" => vpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_vpc_attribute( vpcId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -27659,16 +26642,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default policy. The default policy allows full access to the service. - `"SubnetConfiguration"`: The subnet configurations for the endpoint. """ -function modify_vpc_endpoint( - VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +modify_vpc_endpoint(VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ModifyVpcEndpoint", Dict{String,Any}("VpcEndpointId" => VpcEndpointId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_vpc_endpoint( VpcEndpointId, params::AbstractDict{String}; @@ -27703,16 +26683,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_vpc_endpoint_connection_notification( +modify_vpc_endpoint_connection_notification( ConnectionNotificationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVpcEndpointConnectionNotification", + Dict{String,Any}("ConnectionNotificationId" => ConnectionNotificationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpcEndpointConnectionNotification", - Dict{String,Any}("ConnectionNotificationId" => ConnectionNotificationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpc_endpoint_connection_notification( ConnectionNotificationId, params::AbstractDict{String}; @@ -27768,16 +26746,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RemoveSupportedIpAddressType"`: The IP address types to remove from your service configuration. """ -function modify_vpc_endpoint_service_configuration( +modify_vpc_endpoint_service_configuration( ServiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVpcEndpointServiceConfiguration", + Dict{String,Any}("ServiceId" => ServiceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpcEndpointServiceConfiguration", - Dict{String,Any}("ServiceId" => ServiceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpc_endpoint_service_configuration( ServiceId, params::AbstractDict{String}; @@ -27811,18 +26787,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_vpc_endpoint_service_payer_responsibility( +modify_vpc_endpoint_service_payer_responsibility( PayerResponsibility, ServiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVpcEndpointServicePayerResponsibility", + Dict{String,Any}( + "PayerResponsibility" => PayerResponsibility, "ServiceId" => ServiceId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpcEndpointServicePayerResponsibility", - Dict{String,Any}( - "PayerResponsibility" => PayerResponsibility, "ServiceId" => ServiceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpc_endpoint_service_payer_responsibility( PayerResponsibility, ServiceId, @@ -27869,16 +26843,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RemoveAllowedPrincipals"`: The Amazon Resource Names (ARN) of the principals. Permissions are revoked for principals in this list. """ -function modify_vpc_endpoint_service_permissions( +modify_vpc_endpoint_service_permissions( ServiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVpcEndpointServicePermissions", + Dict{String,Any}("ServiceId" => ServiceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpcEndpointServicePermissions", - Dict{String,Any}("ServiceId" => ServiceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpc_endpoint_service_permissions( ServiceId, params::AbstractDict{String}; @@ -27923,16 +26895,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RequesterPeeringConnectionOptions"`: The VPC peering connection options for the requester VPC. """ -function modify_vpc_peering_connection_options( +modify_vpc_peering_connection_options( VpcPeeringConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVpcPeeringConnectionOptions", + Dict{String,Any}("VpcPeeringConnectionId" => VpcPeeringConnectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpcPeeringConnectionOptions", - Dict{String,Any}("VpcPeeringConnectionId" => VpcPeeringConnectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpc_peering_connection_options( VpcPeeringConnectionId, params::AbstractDict{String}; @@ -27973,16 +26943,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_vpc_tenancy( +modify_vpc_tenancy( InstanceTenancy, VpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVpcTenancy", + Dict{String,Any}("InstanceTenancy" => InstanceTenancy, "VpcId" => VpcId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpcTenancy", - Dict{String,Any}("InstanceTenancy" => InstanceTenancy, "VpcId" => VpcId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpc_tenancy( InstanceTenancy, VpcId, @@ -28042,16 +27010,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpnGatewayId"`: The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection. """ -function modify_vpn_connection( - VpnConnectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +modify_vpn_connection(VpnConnectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ModifyVpnConnection", Dict{String,Any}("VpnConnectionId" => VpnConnectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_vpn_connection( VpnConnectionId, params::AbstractDict{String}; @@ -28095,16 +27060,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RemoteIpv6NetworkCidr"`: The IPv6 CIDR on the Amazon Web Services side of the VPN connection. Default: ::/0 """ -function modify_vpn_connection_options( +modify_vpn_connection_options( VpnConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ModifyVpnConnectionOptions", + Dict{String,Any}("VpnConnectionId" => VpnConnectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpnConnectionOptions", - Dict{String,Any}("VpnConnectionId" => VpnConnectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpn_connection_options( VpnConnectionId, params::AbstractDict{String}; @@ -28138,21 +27101,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function modify_vpn_tunnel_certificate( +modify_vpn_tunnel_certificate( VpnConnectionId, VpnTunnelOutsideIpAddress; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ModifyVpnTunnelCertificate", + Dict{String,Any}( + "VpnConnectionId" => VpnConnectionId, + "VpnTunnelOutsideIpAddress" => VpnTunnelOutsideIpAddress, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpnTunnelCertificate", - Dict{String,Any}( - "VpnConnectionId" => VpnConnectionId, - "VpnTunnelOutsideIpAddress" => VpnTunnelOutsideIpAddress, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpn_tunnel_certificate( VpnConnectionId, VpnTunnelOutsideIpAddress, @@ -28199,23 +27160,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This is only applicable when turning on or off EnableTunnelLifecycleControl. Valid values: True | False """ -function modify_vpn_tunnel_options( +modify_vpn_tunnel_options( TunnelOptions, VpnConnectionId, VpnTunnelOutsideIpAddress; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ModifyVpnTunnelOptions", + Dict{String,Any}( + "TunnelOptions" => TunnelOptions, + "VpnConnectionId" => VpnConnectionId, + "VpnTunnelOutsideIpAddress" => VpnTunnelOutsideIpAddress, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ModifyVpnTunnelOptions", - Dict{String,Any}( - "TunnelOptions" => TunnelOptions, - "VpnConnectionId" => VpnConnectionId, - "VpnTunnelOutsideIpAddress" => VpnTunnelOutsideIpAddress, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_vpn_tunnel_options( TunnelOptions, VpnConnectionId, @@ -28258,14 +27217,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function monitor_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "MonitorInstances", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +monitor_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "MonitorInstances", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function monitor_instances( InstanceId, params::AbstractDict{String}; @@ -28301,14 +27258,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function move_address_to_vpc(publicIp; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "MoveAddressToVpc", - Dict{String,Any}("publicIp" => publicIp); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +move_address_to_vpc(publicIp; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "MoveAddressToVpc", + Dict{String,Any}("publicIp" => publicIp); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function move_address_to_vpc( publicIp, params::AbstractDict{String}; @@ -28344,34 +27299,100 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function move_byoip_cidr_to_ipam( +move_byoip_cidr_to_ipam( Cidr, IpamPoolId, IpamPoolOwner; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "MoveByoipCidrToIpam", + Dict{String,Any}( + "Cidr" => Cidr, "IpamPoolId" => IpamPoolId, "IpamPoolOwner" => IpamPoolOwner + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function move_byoip_cidr_to_ipam( + Cidr, + IpamPoolId, + IpamPoolOwner, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return ec2( "MoveByoipCidrToIpam", Dict{String,Any}( - "Cidr" => Cidr, "IpamPoolId" => IpamPoolId, "IpamPoolOwner" => IpamPoolOwner + mergewith( + _merge, + Dict{String,Any}( + "Cidr" => Cidr, + "IpamPoolId" => IpamPoolId, + "IpamPoolOwner" => IpamPoolOwner, + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function move_byoip_cidr_to_ipam( - Cidr, - IpamPoolId, - IpamPoolOwner, + +""" + move_capacity_reservation_instances(destination_capacity_reservation_id, instance_count, source_capacity_reservation_id) + move_capacity_reservation_instances(destination_capacity_reservation_id, instance_count, source_capacity_reservation_id, params::Dict{String,<:Any}) + +Move available capacity from a source Capacity Reservation to a destination Capacity +Reservation. The source Capacity Reservation and the destination Capacity Reservation must +be active, owned by your Amazon Web Services account, and share the following: Instance +type Platform Availability Zone Tenancy Placement group Capacity Reservation end +time - At specific time or Manually. + +# Arguments +- `destination_capacity_reservation_id`: The ID of the Capacity Reservation that you want + to move capacity into. +- `instance_count`: The number of instances that you want to move from the source Capacity + Reservation. +- `source_capacity_reservation_id`: The ID of the Capacity Reservation from which you want + to move capacity. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ClientToken"`: Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see Ensure Idempotency. +- `"DryRun"`: Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have the required + permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +""" +move_capacity_reservation_instances( + DestinationCapacityReservationId, + InstanceCount, + SourceCapacityReservationId; + aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "MoveCapacityReservationInstances", + Dict{String,Any}( + "DestinationCapacityReservationId" => DestinationCapacityReservationId, + "InstanceCount" => InstanceCount, + "SourceCapacityReservationId" => SourceCapacityReservationId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function move_capacity_reservation_instances( + DestinationCapacityReservationId, + InstanceCount, + SourceCapacityReservationId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return ec2( - "MoveByoipCidrToIpam", + "MoveCapacityReservationInstances", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "Cidr" => Cidr, - "IpamPoolId" => IpamPoolId, - "IpamPoolOwner" => IpamPoolOwner, + "DestinationCapacityReservationId" => DestinationCapacityReservationId, + "InstanceCount" => InstanceCount, + "SourceCapacityReservationId" => SourceCapacityReservationId, + "ClientToken" => string(uuid4()), ), params, ), @@ -28426,14 +27447,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PubliclyAdvertisable"`: (IPv6 only) Indicate whether the address range will be publicly advertised to the internet. Default: true """ -function provision_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ProvisionByoipCidr", - Dict{String,Any}("Cidr" => Cidr); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +provision_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ProvisionByoipCidr", + Dict{String,Any}("Cidr" => Cidr); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function provision_byoip_cidr( Cidr, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -28465,20 +27484,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function provision_ipam_byoasn( +provision_ipam_byoasn( Asn, AsnAuthorizationContext, IpamId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ProvisionIpamByoasn", + Dict{String,Any}( + "Asn" => Asn, + "AsnAuthorizationContext" => AsnAuthorizationContext, + "IpamId" => IpamId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ProvisionIpamByoasn", - Dict{String,Any}( - "Asn" => Asn, - "AsnAuthorizationContext" => AsnAuthorizationContext, - "IpamId" => IpamId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function provision_ipam_byoasn( Asn, AsnAuthorizationContext, @@ -28521,28 +27538,30 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"Cidr\" is required. This value will be null if you specify \"NetmaskLength\" and will be filled in during the provisioning process. - `"CidrAuthorizationContext"`: A signed document that proves that you are authorized to - bring a specified IP address range to Amazon using BYOIP. This option applies to public - pools only. + bring a specified IP address range to Amazon using BYOIP. This option only applies to IPv4 + and IPv6 pools in the public scope. - `"ClientToken"`: A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency. - `"DryRun"`: A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"IpamExternalResourceVerificationTokenId"`: Verification token ID. This option only + applies to IPv4 and IPv6 pools in the public scope. - `"NetmaskLength"`: The netmask length of the CIDR you'd like to provision to a pool. Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP CIDRs to top-level pools. Either \"NetmaskLength\" or \"Cidr\" is required. +- `"VerificationMethod"`: The method for verifying control of a public IP address range. + Defaults to remarks-x509 if not specified. This option only applies to IPv4 and IPv6 pools + in the public scope. """ -function provision_ipam_pool_cidr( - IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +provision_ipam_pool_cidr(IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "ProvisionIpamPoolCidr", Dict{String,Any}("IpamPoolId" => IpamPoolId, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function provision_ipam_pool_cidr( IpamPoolId, params::AbstractDict{String}; @@ -28574,7 +27593,7 @@ in the Amazon VPC IPAM User Guide. # Arguments - `ipam_pool_id`: The ID of the IPAM pool you would like to use to allocate this CIDR. - `netmask_length`: The netmask length of the CIDR you would like to allocate to the public - IPv4 pool. + IPv4 pool. The least specific netmask length you can define is 24. - `pool_id`: The ID of the public IPv4 pool you would like to use for this CIDR. # Optional Parameters @@ -28582,19 +27601,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. +- `"NetworkBorderGroup"`: The Availability Zone (AZ) or Local Zone (LZ) network border + group that the resource that the IP address is assigned to is in. Defaults to an AZ network + border group. For more information on available Local Zones, see Local Zone availability in + the Amazon EC2 User Guide. """ -function provision_public_ipv4_pool_cidr( +provision_public_ipv4_pool_cidr( IpamPoolId, NetmaskLength, PoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ProvisionPublicIpv4PoolCidr", + Dict{String,Any}( + "IpamPoolId" => IpamPoolId, "NetmaskLength" => NetmaskLength, "PoolId" => PoolId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ProvisionPublicIpv4PoolCidr", - Dict{String,Any}( - "IpamPoolId" => IpamPoolId, "NetmaskLength" => NetmaskLength, "PoolId" => PoolId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function provision_public_ipv4_pool_cidr( IpamPoolId, NetmaskLength, @@ -28639,21 +27660,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to apply to the Capacity Block during launch. """ -function purchase_capacity_block( +purchase_capacity_block( CapacityBlockOfferingId, InstancePlatform; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "PurchaseCapacityBlock", + Dict{String,Any}( + "CapacityBlockOfferingId" => CapacityBlockOfferingId, + "InstancePlatform" => InstancePlatform, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "PurchaseCapacityBlock", - Dict{String,Any}( - "CapacityBlockOfferingId" => CapacityBlockOfferingId, - "InstancePlatform" => InstancePlatform, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_capacity_block( CapacityBlockOfferingId, InstancePlatform, @@ -28705,16 +27724,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys limit price of USD 100, specify 100.00. - `"TagSpecification"`: The tags to apply to the Dedicated Host Reservation during purchase. """ -function purchase_host_reservation( +purchase_host_reservation( OfferingId, item; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "PurchaseHostReservation", + Dict{String,Any}("OfferingId" => OfferingId, "item" => item); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "PurchaseHostReservation", - Dict{String,Any}("OfferingId" => OfferingId, "item" => item); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_host_reservation( OfferingId, item, @@ -28760,21 +27777,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"limitPrice"`: Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices. """ -function purchase_reserved_instances_offering( +purchase_reserved_instances_offering( InstanceCount, ReservedInstancesOfferingId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "PurchaseReservedInstancesOffering", + Dict{String,Any}( + "InstanceCount" => InstanceCount, + "ReservedInstancesOfferingId" => ReservedInstancesOfferingId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "PurchaseReservedInstancesOffering", - Dict{String,Any}( - "InstanceCount" => InstanceCount, - "ReservedInstancesOfferingId" => ReservedInstancesOfferingId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_reserved_instances_offering( InstanceCount, ReservedInstancesOfferingId, @@ -28821,18 +27836,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function purchase_scheduled_instances( +purchase_scheduled_instances( PurchaseRequest; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "PurchaseScheduledInstances", + Dict{String,Any}( + "PurchaseRequest" => PurchaseRequest, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "PurchaseScheduledInstances", - Dict{String,Any}( - "PurchaseRequest" => PurchaseRequest, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_scheduled_instances( PurchaseRequest, params::AbstractDict{String}; @@ -28874,14 +27887,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reboot_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "RebootInstances", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +reboot_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "RebootInstances", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function reboot_instances( InstanceId, params::AbstractDict{String}; @@ -28903,33 +27914,36 @@ end Registers an AMI. When you're creating an instance-store backed AMI, registering the AMI is the final step in the creation process. For more information about creating AMIs, see -Create your own AMI in the Amazon Elastic Compute Cloud User Guide. For Amazon EBS-backed -instances, CreateImage creates and registers the AMI in a single request, so you don't have -to register the AMI yourself. We recommend that you always use CreateImage unless you have -a specific reason to use RegisterImage. If needed, you can deregister an AMI at any time. -Any modifications you make to an AMI backed by an instance store volume invalidates its -registration. If you make changes to an image, deregister the previous image and register -the new image. Register a snapshot of a root device volume You can use RegisterImage to -create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify -the snapshot using a block device mapping. You can't set the encryption state of the volume -using the block device mapping. If the snapshot is encrypted, or encryption by default is -enabled, the root volume of an instance launched from the AMI is encrypted. For more -information, see Create a Linux AMI from a snapshot and Use encryption with Amazon -EBS-backed AMIs in the Amazon Elastic Compute Cloud User Guide. Amazon Web Services -Marketplace product codes If any snapshots have Amazon Web Services Marketplace product -codes, they are copied to the new AMI. Windows and some Linux distributions, such as Red -Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the Amazon EC2 -billing product code associated with an AMI to verify the subscription status for package -updates. To create a new AMI for operating systems that require a billing product code, -instead of registering the AMI, do the following to preserve the billing product code -association: Launch an instance from an existing AMI with that billing product code. -Customize the instance. Create an AMI from the instance using CreateImage. If you -purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an -AMI with a billing product code, make sure that the Reserved Instance has the matching -billing product code. If you purchase a Reserved Instance without the matching billing -product code, the Reserved Instance will not be applied to the On-Demand Instance. For -information about how to obtain the platform details and billing information of an AMI, see -Understand AMI billing information in the Amazon EC2 User Guide. +Create an AMI from a snapshot and Create an instance-store backed AMI in the Amazon EC2 +User Guide. For Amazon EBS-backed instances, CreateImage creates and registers the AMI in +a single request, so you don't have to register the AMI yourself. We recommend that you +always use CreateImage unless you have a specific reason to use RegisterImage. If needed, +you can deregister an AMI at any time. Any modifications you make to an AMI backed by an +instance store volume invalidates its registration. If you make changes to an image, +deregister the previous image and register the new image. Register a snapshot of a root +device volume You can use RegisterImage to create an Amazon EBS-backed Linux AMI from a +snapshot of a root device volume. You specify the snapshot using a block device mapping. +You can't set the encryption state of the volume using the block device mapping. If the +snapshot is encrypted, or encryption by default is enabled, the root volume of an instance +launched from the AMI is encrypted. For more information, see Create an AMI from a snapshot +and Use encryption with Amazon EBS-backed AMIs in the Amazon EC2 User Guide. Amazon Web +Services Marketplace product codes If any snapshots have Amazon Web Services Marketplace +product codes, they are copied to the new AMI. In most cases, AMIs for Windows, RedHat, +SUSE, and SQL Server require correct licensing information to be present on the AMI. For +more information, see Understand AMI billing information in the Amazon EC2 User Guide. When +creating an AMI from a snapshot, the RegisterImage operation derives the correct billing +information from the snapshot's metadata, but this requires the appropriate metadata to be +present. To verify if the correct billing information was applied, check the +PlatformDetails field on the new AMI. If the field is empty or doesn't match the expected +operating system code (for example, Windows, RedHat, SUSE, or SQL), the AMI creation was +unsuccessful, and you should discard the AMI and instead create the AMI from an instance +using CreateImage. For more information, see Create an AMI from an instance in the Amazon +EC2 User Guide. If you purchase a Reserved Instance to apply to an On-Demand Instance that +was launched from an AMI with a billing product code, make sure that the Reserved Instance +has the matching billing product code. If you purchase a Reserved Instance without the +matching billing product code, the Reserved Instance will not be applied to the On-Demand +Instance. For information about how to obtain the platform details and billing information +of an AMI, see Understand AMI billing information in the Amazon EC2 User Guide. # Arguments - `name`: A name for your AMI. Constraints: 3-128 alphanumeric characters, parentheses @@ -28993,14 +28007,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"virtualizationType"`: The type of virtualization (hvm | paravirtual). Default: paravirtual """ -function register_image(name; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "RegisterImage", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +register_image(name; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "RegisterImage", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function register_image( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -29028,16 +28040,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function register_instance_event_notification_attributes( +register_instance_event_notification_attributes( InstanceTagAttribute; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RegisterInstanceEventNotificationAttributes", + Dict{String,Any}("InstanceTagAttribute" => InstanceTagAttribute); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RegisterInstanceEventNotificationAttributes", - Dict{String,Any}("InstanceTagAttribute" => InstanceTagAttribute); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_instance_event_notification_attributes( InstanceTagAttribute, params::AbstractDict{String}; @@ -29081,21 +28091,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkInterfaceIds"`: The group members' network interface IDs to register with the transit gateway multicast group. """ -function register_transit_gateway_multicast_group_members( +register_transit_gateway_multicast_group_members( TransitGatewayMulticastDomainId, item; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "RegisterTransitGatewayMulticastGroupMembers", + Dict{String,Any}( + "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId, + "item" => item, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RegisterTransitGatewayMulticastGroupMembers", - Dict{String,Any}( - "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId, - "item" => item, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_transit_gateway_multicast_group_members( TransitGatewayMulticastDomainId, item, @@ -29144,21 +28152,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkInterfaceIds"`: The group sources' network interface IDs to register with the transit gateway multicast group. """ -function register_transit_gateway_multicast_group_sources( +register_transit_gateway_multicast_group_sources( TransitGatewayMulticastDomainId, item; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "RegisterTransitGatewayMulticastGroupSources", + Dict{String,Any}( + "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId, + "item" => item, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RegisterTransitGatewayMulticastGroupSources", - Dict{String,Any}( - "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId, - "item" => item, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_transit_gateway_multicast_group_sources( TransitGatewayMulticastDomainId, item, @@ -29199,15 +28205,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TransitGatewayAttachmentId"`: The ID of the transit gateway attachment. - `"TransitGatewayMulticastDomainId"`: The ID of the transit gateway multicast domain. """ -function reject_transit_gateway_multicast_domain_associations(; +reject_transit_gateway_multicast_domain_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RejectTransitGatewayMulticastDomainAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RejectTransitGatewayMulticastDomainAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_transit_gateway_multicast_domain_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -29234,16 +28238,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reject_transit_gateway_peering_attachment( +reject_transit_gateway_peering_attachment( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RejectTransitGatewayPeeringAttachment", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RejectTransitGatewayPeeringAttachment", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_transit_gateway_peering_attachment( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -29283,16 +28285,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reject_transit_gateway_vpc_attachment( +reject_transit_gateway_vpc_attachment( TransitGatewayAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RejectTransitGatewayVpcAttachment", + Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RejectTransitGatewayVpcAttachment", - Dict{String,Any}("TransitGatewayAttachmentId" => TransitGatewayAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_transit_gateway_vpc_attachment( TransitGatewayAttachmentId, params::AbstractDict{String}; @@ -29330,16 +28330,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reject_vpc_endpoint_connections( +reject_vpc_endpoint_connections( ServiceId, VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RejectVpcEndpointConnections", + Dict{String,Any}("ServiceId" => ServiceId, "VpcEndpointId" => VpcEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RejectVpcEndpointConnections", - Dict{String,Any}("ServiceId" => ServiceId, "VpcEndpointId" => VpcEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_vpc_endpoint_connections( ServiceId, VpcEndpointId, @@ -29381,16 +28379,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reject_vpc_peering_connection( +reject_vpc_peering_connection( vpcPeeringConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RejectVpcPeeringConnection", + Dict{String,Any}("vpcPeeringConnectionId" => vpcPeeringConnectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RejectVpcPeeringConnection", - Dict{String,Any}("vpcPeeringConnectionId" => vpcPeeringConnectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_vpc_peering_connection( vpcPeeringConnectionId, params::AbstractDict{String}; @@ -29437,9 +28433,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function release_address(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2("ReleaseAddress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +release_address(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("ReleaseAddress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function release_address( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -29465,14 +28460,12 @@ DescribeHosts response. - `host_id`: The IDs of the Dedicated Hosts to release. """ -function release_hosts(hostId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ReleaseHosts", - Dict{String,Any}("hostId" => hostId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +release_hosts(hostId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ReleaseHosts", + Dict{String,Any}("hostId" => hostId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function release_hosts( hostId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -29506,23 +28499,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function release_ipam_pool_allocation( +release_ipam_pool_allocation( Cidr, IpamPoolAllocationId, IpamPoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ReleaseIpamPoolAllocation", + Dict{String,Any}( + "Cidr" => Cidr, + "IpamPoolAllocationId" => IpamPoolAllocationId, + "IpamPoolId" => IpamPoolId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ReleaseIpamPoolAllocation", - Dict{String,Any}( - "Cidr" => Cidr, - "IpamPoolAllocationId" => IpamPoolAllocationId, - "IpamPoolId" => IpamPoolId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function release_ipam_pool_allocation( Cidr, IpamPoolAllocationId, @@ -29562,18 +28553,16 @@ DescribeIamInstanceProfileAssociations to get the association ID. - `iam_instance_profile`: The IAM instance profile. """ -function replace_iam_instance_profile_association( +replace_iam_instance_profile_association( AssociationId, IamInstanceProfile; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ReplaceIamInstanceProfileAssociation", + Dict{String,Any}( + "AssociationId" => AssociationId, "IamInstanceProfile" => IamInstanceProfile + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ReplaceIamInstanceProfileAssociation", - Dict{String,Any}( - "AssociationId" => AssociationId, "IamInstanceProfile" => IamInstanceProfile - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replace_iam_instance_profile_association( AssociationId, IamInstanceProfile, @@ -29616,16 +28605,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function replace_network_acl_association( +replace_network_acl_association( associationId, networkAclId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ReplaceNetworkAclAssociation", + Dict{String,Any}("associationId" => associationId, "networkAclId" => networkAclId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ReplaceNetworkAclAssociation", - Dict{String,Any}("associationId" => associationId, "networkAclId" => networkAclId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replace_network_acl_association( associationId, networkAclId, @@ -29682,27 +28669,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"portRange"`: TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP). """ -function replace_network_acl_entry( +replace_network_acl_entry( egress, networkAclId, protocol, ruleAction, ruleNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ReplaceNetworkAclEntry", + Dict{String,Any}( + "egress" => egress, + "networkAclId" => networkAclId, + "protocol" => protocol, + "ruleAction" => ruleAction, + "ruleNumber" => ruleNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ReplaceNetworkAclEntry", - Dict{String,Any}( - "egress" => egress, - "networkAclId" => networkAclId, - "protocol" => protocol, - "ruleAction" => ruleAction, - "ruleNumber" => ruleNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replace_network_acl_entry( egress, networkAclId, @@ -29769,14 +28754,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"networkInterfaceId"`: The ID of a network interface. - `"vpcPeeringConnectionId"`: The ID of a VPC peering connection. """ -function replace_route(routeTableId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ReplaceRoute", - Dict{String,Any}("routeTableId" => routeTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +replace_route(routeTableId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "ReplaceRoute", + Dict{String,Any}("routeTableId" => routeTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function replace_route( routeTableId, params::AbstractDict{String}; @@ -29813,16 +28796,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function replace_route_table_association( +replace_route_table_association( associationId, routeTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ReplaceRouteTableAssociation", + Dict{String,Any}("associationId" => associationId, "routeTableId" => routeTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ReplaceRouteTableAssociation", - Dict{String,Any}("associationId" => associationId, "routeTableId" => routeTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replace_route_table_association( associationId, routeTableId, @@ -29864,21 +28845,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TransitGatewayAttachmentId"`: The ID of the attachment. """ -function replace_transit_gateway_route( +replace_transit_gateway_route( DestinationCidrBlock, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ReplaceTransitGatewayRoute", + Dict{String,Any}( + "DestinationCidrBlock" => DestinationCidrBlock, + "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ReplaceTransitGatewayRoute", - Dict{String,Any}( - "DestinationCidrBlock" => DestinationCidrBlock, - "TransitGatewayRouteTableId" => TransitGatewayRouteTableId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replace_transit_gateway_route( DestinationCidrBlock, TransitGatewayRouteTableId, @@ -29919,21 +28898,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function replace_vpn_tunnel( +replace_vpn_tunnel( VpnConnectionId, VpnTunnelOutsideIpAddress; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "ReplaceVpnTunnel", + Dict{String,Any}( + "VpnConnectionId" => VpnConnectionId, + "VpnTunnelOutsideIpAddress" => VpnTunnelOutsideIpAddress, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ReplaceVpnTunnel", - Dict{String,Any}( - "VpnConnectionId" => VpnConnectionId, - "VpnTunnelOutsideIpAddress" => VpnTunnelOutsideIpAddress, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replace_vpn_tunnel( VpnConnectionId, VpnTunnelOutsideIpAddress, @@ -29990,18 +28967,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"endTime"`: The time at which the reported instance health state ended. - `"startTime"`: The time at which the reported instance health state began. """ -function report_instance_status( +report_instance_status( instanceId, reasonCode, status; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ReportInstanceStatus", + Dict{String,Any}( + "instanceId" => instanceId, "reasonCode" => reasonCode, "status" => status + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ReportInstanceStatus", - Dict{String,Any}( - "instanceId" => instanceId, "reasonCode" => reasonCode, "status" => status - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function report_instance_status( instanceId, reasonCode, @@ -30058,16 +29033,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function request_spot_fleet( +request_spot_fleet( spotFleetRequestConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RequestSpotFleet", + Dict{String,Any}("spotFleetRequestConfig" => spotFleetRequestConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RequestSpotFleet", - Dict{String,Any}("spotFleetRequestConfig" => spotFleetRequestConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function request_spot_fleet( spotFleetRequestConfig, params::AbstractDict{String}; @@ -30148,11 +29121,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the ValidUntil date and time is reached. By default, the request is valid for 7 days from the date the request was created. """ -function request_spot_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "RequestSpotInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +request_spot_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("RequestSpotInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function request_spot_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -30181,16 +29151,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reset_address_attribute( - AllocationId, Attribute; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( - "ResetAddressAttribute", - Dict{String,Any}("AllocationId" => AllocationId, "Attribute" => Attribute); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +reset_address_attribute( + AllocationId, Attribute; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ResetAddressAttribute", + Dict{String,Any}("AllocationId" => AllocationId, "Attribute" => Attribute); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function reset_address_attribute( AllocationId, Attribute, @@ -30227,11 +29195,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reset_ebs_default_kms_key_id(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "ResetEbsDefaultKmsKeyId"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +reset_ebs_default_kms_key_id(; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2("ResetEbsDefaultKmsKeyId"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function reset_ebs_default_kms_key_id( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -30260,16 +29225,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reset_fpga_image_attribute( +reset_fpga_image_attribute( FpgaImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ResetFpgaImageAttribute", + Dict{String,Any}("FpgaImageId" => FpgaImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ResetFpgaImageAttribute", - Dict{String,Any}("FpgaImageId" => FpgaImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_fpga_image_attribute( FpgaImageId, params::AbstractDict{String}; @@ -30302,16 +29265,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reset_image_attribute( +reset_image_attribute( Attribute, ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ResetImageAttribute", + Dict{String,Any}("Attribute" => Attribute, "ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ResetImageAttribute", - Dict{String,Any}("Attribute" => Attribute, "ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_image_attribute( Attribute, ImageId, @@ -30354,16 +29315,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reset_instance_attribute( +reset_instance_attribute( attribute, instanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ResetInstanceAttribute", + Dict{String,Any}("attribute" => attribute, "instanceId" => instanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ResetInstanceAttribute", - Dict{String,Any}("attribute" => attribute, "instanceId" => instanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_instance_attribute( attribute, instanceId, @@ -30400,16 +29359,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"sourceDestCheck"`: The source/destination checking attribute. Resets the value to true. """ -function reset_network_interface_attribute( +reset_network_interface_attribute( networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ResetNetworkInterfaceAttribute", + Dict{String,Any}("networkInterfaceId" => networkInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ResetNetworkInterfaceAttribute", - Dict{String,Any}("networkInterfaceId" => networkInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_network_interface_attribute( networkInterfaceId, params::AbstractDict{String}; @@ -30445,16 +29402,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function reset_snapshot_attribute( +reset_snapshot_attribute( Attribute, SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "ResetSnapshotAttribute", + Dict{String,Any}("Attribute" => Attribute, "SnapshotId" => SnapshotId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "ResetSnapshotAttribute", - Dict{String,Any}("Attribute" => Attribute, "SnapshotId" => SnapshotId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_snapshot_attribute( Attribute, SnapshotId, @@ -30493,16 +29448,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function restore_address_to_classic( - publicIp; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +restore_address_to_classic(publicIp; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "RestoreAddressToClassic", Dict{String,Any}("publicIp" => publicIp); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_address_to_classic( publicIp, params::AbstractDict{String}; @@ -30534,16 +29486,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function restore_image_from_recycle_bin( +restore_image_from_recycle_bin( ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RestoreImageFromRecycleBin", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RestoreImageFromRecycleBin", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_image_from_recycle_bin( ImageId, params::AbstractDict{String}; @@ -30575,23 +29525,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function restore_managed_prefix_list_version( +restore_managed_prefix_list_version( CurrentVersion, PrefixListId, PreviousVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "RestoreManagedPrefixListVersion", + Dict{String,Any}( + "CurrentVersion" => CurrentVersion, + "PrefixListId" => PrefixListId, + "PreviousVersion" => PreviousVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RestoreManagedPrefixListVersion", - Dict{String,Any}( - "CurrentVersion" => CurrentVersion, - "PrefixListId" => PrefixListId, - "PreviousVersion" => PreviousVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_managed_prefix_list_version( CurrentVersion, PrefixListId, @@ -30633,16 +29581,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function restore_snapshot_from_recycle_bin( +restore_snapshot_from_recycle_bin( SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "RestoreSnapshotFromRecycleBin", + Dict{String,Any}("SnapshotId" => SnapshotId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RestoreSnapshotFromRecycleBin", - Dict{String,Any}("SnapshotId" => SnapshotId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_snapshot_from_recycle_bin( SnapshotId, params::AbstractDict{String}; @@ -30683,16 +29629,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys automatically re-archived after this period. To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore parameter or set it to false. """ -function restore_snapshot_tier( - SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +restore_snapshot_tier(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "RestoreSnapshotTier", + Dict{String,Any}("SnapshotId" => SnapshotId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RestoreSnapshotTier", - Dict{String,Any}("SnapshotId" => SnapshotId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_snapshot_tier( SnapshotId, params::AbstractDict{String}; @@ -30728,21 +29670,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"RevokeAllGroups"`: Indicates whether access should be revoked for all clients. """ -function revoke_client_vpn_ingress( +revoke_client_vpn_ingress( ClientVpnEndpointId, TargetNetworkCidr; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "RevokeClientVpnIngress", + Dict{String,Any}( + "ClientVpnEndpointId" => ClientVpnEndpointId, + "TargetNetworkCidr" => TargetNetworkCidr, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RevokeClientVpnIngress", - Dict{String,Any}( - "ClientVpnEndpointId" => ClientVpnEndpointId, - "TargetNetworkCidr" => TargetNetworkCidr, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_client_vpn_ingress( ClientVpnEndpointId, TargetNetworkCidr, @@ -30805,16 +29745,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys destination security group. - `"toPort"`: Not supported. Use a set of IP permissions to specify the port. """ -function revoke_security_group_egress( - groupId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +revoke_security_group_egress(groupId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "RevokeSecurityGroupEgress", Dict{String,Any}("groupId" => groupId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function revoke_security_group_egress( groupId, params::AbstractDict{String}; @@ -30874,11 +29811,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function revoke_security_group_ingress(; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "RevokeSecurityGroupIngress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +revoke_security_group_ingress(; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "RevokeSecurityGroupIngress"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function revoke_security_group_ingress( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -31025,11 +29960,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys launch. You can specify tags for the following resources only: Instances Volumes Spot Instance requests Network interfaces To tag a resource after it has been created, see CreateTags. -- `"UserData"`: The user data script to make available to the instance. For more - information, see Run commands on your Amazon EC2 instance at launch in the Amazon EC2 User - Guide. If you are using a command line tool, base64-encoding is performed for you, and you - can load the text from a file. Otherwise, you must provide base64-encoded text. User data - is limited to 16 KB. +- `"UserData"`: The user data to make available to the instance. User data must be + base64-encoded. Depending on the tool or SDK that you're using, the base64-encoding might + be performed for you. For more information, see Work with instance user data. - `"additionalInfo"`: Reserved. - `"clientToken"`: Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used @@ -31060,18 +29993,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys option if you're launching more than one instance in the request. You cannot specify this option and the network interfaces option in the same request. """ -function run_instances( - MaxCount, MinCount; aws_config::AbstractAWSConfig=current_aws_config() +run_instances(MaxCount, MinCount; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "RunInstances", + Dict{String,Any}( + "MaxCount" => MaxCount, "MinCount" => MinCount, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RunInstances", - Dict{String,Any}( - "MaxCount" => MaxCount, "MinCount" => MinCount, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function run_instances( MaxCount, MinCount, @@ -31120,22 +30049,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"InstanceCount"`: The number of instances. Default: 1 """ -function run_scheduled_instances( +run_scheduled_instances( LaunchSpecification, ScheduledInstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "RunScheduledInstances", + Dict{String,Any}( + "LaunchSpecification" => LaunchSpecification, + "ScheduledInstanceId" => ScheduledInstanceId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "RunScheduledInstances", - Dict{String,Any}( - "LaunchSpecification" => LaunchSpecification, - "ScheduledInstanceId" => ScheduledInstanceId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function run_scheduled_instances( LaunchSpecification, ScheduledInstanceId, @@ -31186,16 +30113,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function search_local_gateway_routes( +search_local_gateway_routes( LocalGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "SearchLocalGatewayRoutes", + Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "SearchLocalGatewayRoutes", - Dict{String,Any}("LocalGatewayRouteTableId" => LocalGatewayRouteTableId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_local_gateway_routes( LocalGatewayRouteTableId, params::AbstractDict{String}; @@ -31242,18 +30167,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function search_transit_gateway_multicast_groups( +search_transit_gateway_multicast_groups( TransitGatewayMulticastDomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "SearchTransitGatewayMulticastGroups", + Dict{String,Any}("TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "SearchTransitGatewayMulticastGroups", - Dict{String,Any}( - "TransitGatewayMulticastDomainId" => TransitGatewayMulticastDomainId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_transit_gateway_multicast_groups( TransitGatewayMulticastDomainId, params::AbstractDict{String}; @@ -31305,18 +30226,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of routes to return. If a value is not provided, the default is 1000. """ -function search_transit_gateway_routes( +search_transit_gateway_routes( Filter, TransitGatewayRouteTableId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "SearchTransitGatewayRoutes", + Dict{String,Any}( + "Filter" => Filter, "TransitGatewayRouteTableId" => TransitGatewayRouteTableId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "SearchTransitGatewayRoutes", - Dict{String,Any}( - "Filter" => Filter, "TransitGatewayRouteTableId" => TransitGatewayRouteTableId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_transit_gateway_routes( Filter, TransitGatewayRouteTableId, @@ -31365,16 +30284,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function send_diagnostic_interrupt( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ec2( +send_diagnostic_interrupt(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + ec2( "SendDiagnosticInterrupt", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_diagnostic_interrupt( InstanceId, params::AbstractDict{String}; @@ -31419,14 +30335,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function start_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "StartInstances", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "StartInstances", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_instances( InstanceId, params::AbstractDict{String}; @@ -31460,21 +30374,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"TagSpecification"`: The tags to apply. """ -function start_network_insights_access_scope_analysis( +start_network_insights_access_scope_analysis( ClientToken, NetworkInsightsAccessScopeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2( + "StartNetworkInsightsAccessScopeAnalysis", + Dict{String,Any}( + "ClientToken" => ClientToken, + "NetworkInsightsAccessScopeId" => NetworkInsightsAccessScopeId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "StartNetworkInsightsAccessScopeAnalysis", - Dict{String,Any}( - "ClientToken" => ClientToken, - "NetworkInsightsAccessScopeId" => NetworkInsightsAccessScopeId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_network_insights_access_scope_analysis( ClientToken, NetworkInsightsAccessScopeId, @@ -31521,18 +30433,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys traverse. - `"TagSpecification"`: The tags to apply. """ -function start_network_insights_analysis( +start_network_insights_analysis( ClientToken, NetworkInsightsPathId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "StartNetworkInsightsAnalysis", + Dict{String,Any}( + "ClientToken" => ClientToken, "NetworkInsightsPathId" => NetworkInsightsPathId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "StartNetworkInsightsAnalysis", - Dict{String,Any}( - "ClientToken" => ClientToken, "NetworkInsightsPathId" => NetworkInsightsPathId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_network_insights_analysis( ClientToken, NetworkInsightsPathId, @@ -31574,16 +30484,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function start_vpc_endpoint_service_private_dns_verification( +start_vpc_endpoint_service_private_dns_verification( ServiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "StartVpcEndpointServicePrivateDnsVerification", + Dict{String,Any}("ServiceId" => ServiceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "StartVpcEndpointServicePrivateDnsVerification", - Dict{String,Any}("ServiceId" => ServiceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_vpc_endpoint_service_private_dns_verification( ServiceId, params::AbstractDict{String}; @@ -31646,14 +30554,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys file system check and repair procedures. This option is not recommended for Windows instances. Default: false """ -function stop_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "StopInstances", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "StopInstances", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_instances( InstanceId, params::AbstractDict{String}; @@ -31690,16 +30596,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys terminate all active connections for the specified user. This option can only be used if the user has established up to five connections. """ -function terminate_client_vpn_connections( +terminate_client_vpn_connections( ClientVpnEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "TerminateClientVpnConnections", + Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "TerminateClientVpnConnections", - Dict{String,Any}("ClientVpnEndpointId" => ClientVpnEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function terminate_client_vpn_connections( ClientVpnEndpointId, params::AbstractDict{String}; @@ -31761,14 +30665,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function terminate_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "TerminateInstances", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +terminate_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "TerminateInstances", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function terminate_instances( InstanceId, params::AbstractDict{String}; @@ -31799,16 +30701,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Ipv6Prefix"`: The IPv6 prefixes to unassign from the network interface. - `"ipv6Addresses"`: The IPv6 addresses to unassign from the network interface. """ -function unassign_ipv6_addresses( +unassign_ipv6_addresses( networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "UnassignIpv6Addresses", + Dict{String,Any}("networkInterfaceId" => networkInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "UnassignIpv6Addresses", - Dict{String,Any}("networkInterfaceId" => networkInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unassign_ipv6_addresses( networkInterfaceId, params::AbstractDict{String}; @@ -31842,16 +30742,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"privateIpAddress"`: The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address. """ -function unassign_private_ip_addresses( +unassign_private_ip_addresses( networkInterfaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "UnassignPrivateIpAddresses", + Dict{String,Any}("networkInterfaceId" => networkInterfaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "UnassignPrivateIpAddresses", - Dict{String,Any}("networkInterfaceId" => networkInterfaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unassign_private_ip_addresses( networkInterfaceId, params::AbstractDict{String}; @@ -31896,18 +30794,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys forcibly releasing the IP addresses if connections are still in progress. Default value is 350 seconds. """ -function unassign_private_nat_gateway_address( +unassign_private_nat_gateway_address( NatGatewayId, PrivateIpAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "UnassignPrivateNatGatewayAddress", + Dict{String,Any}( + "NatGatewayId" => NatGatewayId, "PrivateIpAddress" => PrivateIpAddress + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "UnassignPrivateNatGatewayAddress", - Dict{String,Any}( - "NatGatewayId" => NatGatewayId, "PrivateIpAddress" => PrivateIpAddress - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unassign_private_nat_gateway_address( NatGatewayId, PrivateIpAddress, @@ -31947,14 +30843,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function unlock_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "UnlockSnapshot", - Dict{String,Any}("SnapshotId" => SnapshotId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +unlock_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "UnlockSnapshot", + Dict{String,Any}("SnapshotId" => SnapshotId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function unlock_snapshot( SnapshotId, params::AbstractDict{String}; @@ -31986,14 +30880,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function unmonitor_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "UnmonitorInstances", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +unmonitor_instances(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "UnmonitorInstances", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function unmonitor_instances( InstanceId, params::AbstractDict{String}; @@ -32033,15 +30925,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SecurityGroupRuleDescription"`: The description for the egress security group rules. You must specify either the description or the IP permissions. """ -function update_security_group_rule_descriptions_egress(; +update_security_group_rule_descriptions_egress(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "UpdateSecurityGroupRuleDescriptionsEgress"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "UpdateSecurityGroupRuleDescriptionsEgress"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_security_group_rule_descriptions_egress( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -32078,15 +30968,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SecurityGroupRuleDescription"`: The description for the ingress security group rules. You must specify either a description or IP permissions. """ -function update_security_group_rule_descriptions_ingress(; +update_security_group_rule_descriptions_ingress(; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2( + "UpdateSecurityGroupRuleDescriptionsIngress"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2( - "UpdateSecurityGroupRuleDescriptionsIngress"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_security_group_rule_descriptions_ingress( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -32116,14 +31004,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. """ -function withdraw_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) - return ec2( - "WithdrawByoipCidr", - Dict{String,Any}("Cidr" => Cidr); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +withdraw_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = ec2( + "WithdrawByoipCidr", + Dict{String,Any}("Cidr" => Cidr); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function withdraw_byoip_cidr( Cidr, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/ec2_instance_connect.jl b/src/services/ec2_instance_connect.jl index 5ceba757f..bbc446660 100644 --- a/src/services/ec2_instance_connect.jl +++ b/src/services/ec2_instance_connect.jl @@ -23,16 +23,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SerialPort"`: The serial port of the EC2 instance. Currently only port 0 is supported. Default: 0 """ -function send_serial_console_sshpublic_key( +send_serial_console_sshpublic_key( InstanceId, SSHPublicKey; aws_config::AbstractAWSConfig=current_aws_config() +) = ec2_instance_connect( + "SendSerialConsoleSSHPublicKey", + Dict{String,Any}("InstanceId" => InstanceId, "SSHPublicKey" => SSHPublicKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2_instance_connect( - "SendSerialConsoleSSHPublicKey", - Dict{String,Any}("InstanceId" => InstanceId, "SSHPublicKey" => SSHPublicKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_serial_console_sshpublic_key( InstanceId, SSHPublicKey, @@ -74,23 +72,21 @@ EC2 Instance Connect in the Amazon EC2 User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AvailabilityZone"`: The Availability Zone in which the EC2 instance was launched. """ -function send_sshpublic_key( +send_sshpublic_key( InstanceId, InstanceOSUser, SSHPublicKey; aws_config::AbstractAWSConfig=current_aws_config(), +) = ec2_instance_connect( + "SendSSHPublicKey", + Dict{String,Any}( + "InstanceId" => InstanceId, + "InstanceOSUser" => InstanceOSUser, + "SSHPublicKey" => SSHPublicKey, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ec2_instance_connect( - "SendSSHPublicKey", - Dict{String,Any}( - "InstanceId" => InstanceId, - "InstanceOSUser" => InstanceOSUser, - "SSHPublicKey" => SSHPublicKey, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_sshpublic_key( InstanceId, InstanceOSUser, diff --git a/src/services/ecr.jl b/src/services/ecr.jl index 2bf3be257..3347bc8d2 100644 --- a/src/services/ecr.jl +++ b/src/services/ecr.jl @@ -25,18 +25,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the image layers to check. If you do not specify a registry, the default registry is assumed. """ -function batch_check_layer_availability( +batch_check_layer_availability( layerDigests, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "BatchCheckLayerAvailability", + Dict{String,Any}("layerDigests" => layerDigests, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "BatchCheckLayerAvailability", - Dict{String,Any}( - "layerDigests" => layerDigests, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_check_layer_availability( layerDigests, repositoryName, @@ -80,16 +76,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the image to delete. If you do not specify a registry, the default registry is assumed. """ -function batch_delete_image( +batch_delete_image( imageIds, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "BatchDeleteImage", + Dict{String,Any}("imageIds" => imageIds, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "BatchDeleteImage", - Dict{String,Any}("imageIds" => imageIds, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_image( imageIds, repositoryName, @@ -135,16 +129,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the images to describe. If you do not specify a registry, the default registry is assumed. """ -function batch_get_image( +batch_get_image( imageIds, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "BatchGetImage", + Dict{String,Any}("imageIds" => imageIds, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "BatchGetImage", - Dict{String,Any}("imageIds" => imageIds, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_image( imageIds, repositoryName, @@ -177,16 +169,14 @@ Gets the scanning configuration for one or more repositories. - `repository_names`: One or more repository names to get the scanning configuration for. """ -function batch_get_repository_scanning_configuration( +batch_get_repository_scanning_configuration( repositoryNames; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "BatchGetRepositoryScanningConfiguration", + Dict{String,Any}("repositoryNames" => repositoryNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "BatchGetRepositoryScanningConfiguration", - Dict{String,Any}("repositoryNames" => repositoryNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_repository_scanning_configuration( repositoryNames, params::AbstractDict{String}; @@ -227,23 +217,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The Amazon Web Services account ID associated with the registry to which to upload layers. If you do not specify a registry, the default registry is assumed. """ -function complete_layer_upload( +complete_layer_upload( layerDigests, repositoryName, uploadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ecr( + "CompleteLayerUpload", + Dict{String,Any}( + "layerDigests" => layerDigests, + "repositoryName" => repositoryName, + "uploadId" => uploadId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "CompleteLayerUpload", - Dict{String,Any}( - "layerDigests" => layerDigests, - "repositoryName" => repositoryName, - "uploadId" => uploadId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_layer_upload( layerDigests, repositoryName, @@ -286,7 +274,6 @@ see Using pull through cache rules in the Amazon Elastic Container Registry User Hub (docker-hub) - registry-1.docker.io Quay (quay) - quay.io Kubernetes (k8s) - registry.k8s.io GitHub Container Registry (github-container-registry) - ghcr.io Microsoft Azure Container Registry (azure-container-registry) - <custom>.azurecr.io - GitLab Container Registry (gitlab-container-registry) - registry.gitlab.com # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -297,21 +284,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys assumed. - `"upstreamRegistry"`: The name of the upstream registry. """ -function create_pull_through_cache_rule( +create_pull_through_cache_rule( ecrRepositoryPrefix, upstreamRegistryUrl; aws_config::AbstractAWSConfig=current_aws_config(), +) = ecr( + "CreatePullThroughCacheRule", + Dict{String,Any}( + "ecrRepositoryPrefix" => ecrRepositoryPrefix, + "upstreamRegistryUrl" => upstreamRegistryUrl, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "CreatePullThroughCacheRule", - Dict{String,Any}( - "ecrRepositoryPrefix" => ecrRepositoryPrefix, - "upstreamRegistryUrl" => upstreamRegistryUrl, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pull_through_cache_rule( ecrRepositoryPrefix, upstreamRegistryUrl, @@ -367,25 +352,96 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ +create_repository(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = ecr( + "CreateRepository", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_repository( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() + repositoryName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return ecr( "CreateRepository", - Dict{String,Any}("repositoryName" => repositoryName); + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("repositoryName" => repositoryName), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_repository( - repositoryName, + +""" + create_repository_creation_template(applied_for, prefix) + create_repository_creation_template(applied_for, prefix, params::Dict{String,<:Any}) + +Creates a repository creation template. This template is used to define the settings for +repositories created by Amazon ECR on your behalf. For example, repositories created +through pull through cache actions. For more information, see Private repository creation +templates in the Amazon Elastic Container Registry User Guide. + +# Arguments +- `applied_for`: A list of enumerable strings representing the Amazon ECR repository + creation scenarios that this template will apply towards. The two supported scenarios are + PULL_THROUGH_CACHE and REPLICATION +- `prefix`: The repository namespace prefix to associate with the template. All + repositories created using this namespace prefix will have the settings defined in this + template applied. For example, a prefix of prod would apply to all repositories beginning + with prod/. Similarly, a prefix of prod/team would apply to all repositories beginning with + prod/team/. To apply a template to all repositories in your registry that don't have an + associated creation template, you can use ROOT as the prefix. There is always an assumed / + applied to the end of the prefix. If you specify ecr-public as the prefix, Amazon ECR + treats that as ecr-public/. When using a pull through cache rule, the repository prefix you + specify during rule creation is what you should specify as your repository creation + template prefix as well. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"customRoleArn"`: The ARN of the role to be assumed by Amazon ECR. This role must be in + the same account as the registry that you are configuring. Amazon ECR will assume your + supplied role when the customRoleArn is specified. When this field isn't specified, Amazon + ECR will use the service-linked role for the repository creation template. +- `"description"`: A description for the repository creation template. +- `"encryptionConfiguration"`: The encryption configuration to use for repositories created + using the template. +- `"imageTagMutability"`: The tag mutability setting for the repository. If this parameter + is omitted, the default setting of MUTABLE will be used which will allow image tags to be + overwritten. If IMMUTABLE is specified, all image tags within the repository will be + immutable which will prevent them from being overwritten. +- `"lifecyclePolicy"`: The lifecycle policy to use for repositories created using the + template. +- `"repositoryPolicy"`: The repository policy to apply to repositories created using the + template. A repository policy is a permissions policy associated with a repository to + control access permissions. +- `"resourceTags"`: The metadata to apply to the repository to help you categorize and + organize. Each tag consists of a key and an optional value, both of which you define. Tag + keys can have a maximum character length of 128 characters, and tag values can have a + maximum length of 256 characters. +""" +create_repository_creation_template( + appliedFor, prefix; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "CreateRepositoryCreationTemplate", + Dict{String,Any}("appliedFor" => appliedFor, "prefix" => prefix); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_repository_creation_template( + appliedFor, + prefix, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return ecr( - "CreateRepository", + "CreateRepositoryCreationTemplate", Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("repositoryName" => repositoryName), params) + mergewith( + _merge, + Dict{String,Any}("appliedFor" => appliedFor, "prefix" => prefix), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -406,16 +462,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. """ -function delete_lifecycle_policy( +delete_lifecycle_policy( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "DeleteLifecyclePolicy", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "DeleteLifecyclePolicy", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_lifecycle_policy( repositoryName, params::AbstractDict{String}; @@ -447,16 +501,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the pull through cache rule. If you do not specify a registry, the default registry is assumed. """ -function delete_pull_through_cache_rule( +delete_pull_through_cache_rule( ecrRepositoryPrefix; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "DeletePullThroughCacheRule", + Dict{String,Any}("ecrRepositoryPrefix" => ecrRepositoryPrefix); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "DeletePullThroughCacheRule", - Dict{String,Any}("ecrRepositoryPrefix" => ecrRepositoryPrefix); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_pull_through_cache_rule( ecrRepositoryPrefix, params::AbstractDict{String}; @@ -483,11 +535,8 @@ end Deletes the registry permissions policy. """ -function delete_registry_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr( - "DeleteRegistryPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_registry_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr("DeleteRegistryPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_registry_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -518,16 +567,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository to delete. If you do not specify a registry, the default registry is assumed. """ -function delete_repository( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +delete_repository(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = ecr( + "DeleteRepository", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "DeleteRepository", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_repository( repositoryName, params::AbstractDict{String}; @@ -543,6 +588,36 @@ function delete_repository( ) end +""" + delete_repository_creation_template(prefix) + delete_repository_creation_template(prefix, params::Dict{String,<:Any}) + +Deletes a repository creation template. + +# Arguments +- `prefix`: The repository namespace prefix associated with the repository creation + template. + +""" +delete_repository_creation_template( + prefix; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "DeleteRepositoryCreationTemplate", + Dict{String,Any}("prefix" => prefix); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_repository_creation_template( + prefix, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ecr( + "DeleteRepositoryCreationTemplate", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("prefix" => prefix), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ delete_repository_policy(repository_name) delete_repository_policy(repository_name, params::Dict{String,<:Any}) @@ -559,16 +634,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository policy to delete. If you do not specify a registry, the default registry is assumed. """ -function delete_repository_policy( +delete_repository_policy( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "DeleteRepositoryPolicy", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "DeleteRepositoryPolicy", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_repository_policy( repositoryName, params::AbstractDict{String}; @@ -599,16 +672,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The Amazon Web Services account ID associated with the registry. If you do not specify a registry, the default registry is assumed. """ -function describe_image_replication_status( +describe_image_replication_status( imageId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "DescribeImageReplicationStatus", + Dict{String,Any}("imageId" => imageId, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "DescribeImageReplicationStatus", - Dict{String,Any}("imageId" => imageId, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_image_replication_status( imageId, repositoryName, @@ -656,16 +727,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository in which to describe the image scan findings for. If you do not specify a registry, the default registry is assumed. """ -function describe_image_scan_findings( +describe_image_scan_findings( imageId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "DescribeImageScanFindings", + Dict{String,Any}("imageId" => imageId, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "DescribeImageScanFindings", - Dict{String,Any}("imageId" => imageId, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_image_scan_findings( imageId, repositoryName, @@ -718,14 +787,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository in which to describe images. If you do not specify a registry, the default registry is assumed. """ -function describe_images(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr( - "DescribeImages", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_images(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = ecr( + "DescribeImages", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_images( repositoryName, params::AbstractDict{String}; @@ -769,15 +836,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the pull through cache rules for. If you do not specify a registry, the default registry is assumed. """ -function describe_pull_through_cache_rules(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr( +describe_pull_through_cache_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr( "DescribePullThroughCacheRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_pull_through_cache_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -797,9 +861,8 @@ Describes the settings for a registry. The replication configuration for a repos be created or updated with the PutReplicationConfiguration API action. """ -function describe_registry(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr("DescribeRegistry"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_registry(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr("DescribeRegistry"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_registry( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -836,22 +899,91 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"repositoryNames"`: A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described. """ -function describe_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) +describe_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr("DescribeRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function describe_repositories( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return ecr( - "DescribeRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "DescribeRepositories", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) end -function describe_repositories( + +""" + describe_repository_creation_templates() + describe_repository_creation_templates(params::Dict{String,<:Any}) + +Returns details about the repository creation templates in a registry. The prefixes request +parameter can be used to return the details for a specific repository creation template. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of repository results returned by + DescribeRepositoryCreationTemplatesRequest in paginated output. When this parameter is + used, DescribeRepositoryCreationTemplatesRequest only returns maxResults results in a + single page along with a nextToken response element. The remaining results of the initial + request can be seen by sending another DescribeRepositoryCreationTemplatesRequest request + with the returned nextToken value. This value can be between 1 and 1000. If this parameter + is not used, then DescribeRepositoryCreationTemplatesRequest returns up to 100 results and + a nextToken value, if applicable. +- `"nextToken"`: The nextToken value returned from a previous paginated + DescribeRepositoryCreationTemplates request where maxResults was used and the results + exceeded the value of that parameter. Pagination continues from the end of the previous + results that returned the nextToken value. This value is null when there are no more + results to return. This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic purposes. +- `"prefixes"`: The repository namespace prefixes associated with the repository creation + templates to describe. If this value is not specified, all repository creation templates + are returned. +""" +describe_repository_creation_templates(; + aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "DescribeRepositoryCreationTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_repository_creation_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return ecr( - "DescribeRepositories", + "DescribeRepositoryCreationTemplates", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end +""" + get_account_setting(name) + get_account_setting(name, params::Dict{String,<:Any}) + +Retrieves the basic scan type version name. + +# Arguments +- `name`: Basic scan type version name. + +""" +get_account_setting(name; aws_config::AbstractAWSConfig=current_aws_config()) = ecr( + "GetAccountSetting", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_account_setting( + name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ecr( + "GetAccountSetting", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("name" => name), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ get_authorization_token() get_authorization_token(params::Dict{String,<:Any}) @@ -870,11 +1002,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys registries for which to get AuthorizationData objects. If you do not specify a registry, the default registry is assumed. """ -function get_authorization_token(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr( - "GetAuthorizationToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_authorization_token(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr("GetAuthorizationToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_authorization_token( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -908,16 +1037,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the image layer to download. If you do not specify a registry, the default registry is assumed. """ -function get_download_url_for_layer( +get_download_url_for_layer( layerDigest, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "GetDownloadUrlForLayer", + Dict{String,Any}("layerDigest" => layerDigest, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "GetDownloadUrlForLayer", - Dict{String,Any}("layerDigest" => layerDigest, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_download_url_for_layer( layerDigest, repositoryName, @@ -954,16 +1081,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. """ -function get_lifecycle_policy( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr( +get_lifecycle_policy(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr( "GetLifecyclePolicy", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_lifecycle_policy( repositoryName, params::AbstractDict{String}; @@ -1011,16 +1135,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. """ -function get_lifecycle_policy_preview( +get_lifecycle_policy_preview( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "GetLifecyclePolicyPreview", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "GetLifecyclePolicyPreview", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_lifecycle_policy_preview( repositoryName, params::AbstractDict{String}; @@ -1043,9 +1165,8 @@ end Retrieves the permissions policy for a registry. """ -function get_registry_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr("GetRegistryPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_registry_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr("GetRegistryPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_registry_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1061,15 +1182,12 @@ end Retrieves the scanning configuration for a registry. """ -function get_registry_scanning_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr( +get_registry_scanning_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr( "GetRegistryScanningConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_registry_scanning_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1095,16 +1213,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. """ -function get_repository_policy( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr( +get_repository_policy(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr( "GetRepositoryPolicy", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_repository_policy( repositoryName, params::AbstractDict{String}; @@ -1140,16 +1255,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you intend to upload layers. If you do not specify a registry, the default registry is assumed. """ -function initiate_layer_upload( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr( +initiate_layer_upload(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr( "InitiateLayerUpload", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function initiate_layer_upload( repositoryName, params::AbstractDict{String}; @@ -1197,14 +1309,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository in which to list images. If you do not specify a registry, the default registry is assumed. """ -function list_images(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr( - "ListImages", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_images(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = ecr( + "ListImages", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_images( repositoryName, params::AbstractDict{String}; @@ -1231,16 +1341,13 @@ List the tags for an Amazon ECR resource. list the tags. Currently, the only supported resource is an Amazon ECR repository. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1256,6 +1363,41 @@ function list_tags_for_resource( ) end +""" + put_account_setting(name, value) + put_account_setting(name, value, params::Dict{String,<:Any}) + +Allows you to change the basic scan type version by setting the name parameter to either +CLAIR to AWS_NATIVE. + +# Arguments +- `name`: Basic scan type version name. +- `value`: Setting value that determines what basic scan type is being used: AWS_NATIVE or + CLAIR. + +""" +put_account_setting(name, value; aws_config::AbstractAWSConfig=current_aws_config()) = ecr( + "PutAccountSetting", + Dict{String,Any}("name" => name, "value" => value); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function put_account_setting( + name, + value, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ecr( + "PutAccountSetting", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("name" => name, "value" => value), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ put_image(image_manifest, repository_name) put_image(image_manifest, repository_name, params::Dict{String,<:Any}) @@ -1282,18 +1424,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository in which to put the image. If you do not specify a registry, the default registry is assumed. """ -function put_image( +put_image( imageManifest, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "PutImage", + Dict{String,Any}("imageManifest" => imageManifest, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "PutImage", - Dict{String,Any}( - "imageManifest" => imageManifest, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_image( imageManifest, repositoryName, @@ -1338,21 +1476,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository in which to update the image scanning configuration setting. If you do not specify a registry, the default registry is assumed. """ -function put_image_scanning_configuration( +put_image_scanning_configuration( imageScanningConfiguration, repositoryName; aws_config::AbstractAWSConfig=current_aws_config(), +) = ecr( + "PutImageScanningConfiguration", + Dict{String,Any}( + "imageScanningConfiguration" => imageScanningConfiguration, + "repositoryName" => repositoryName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "PutImageScanningConfiguration", - Dict{String,Any}( - "imageScanningConfiguration" => imageScanningConfiguration, - "repositoryName" => repositoryName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_image_scanning_configuration( imageScanningConfiguration, repositoryName, @@ -1396,18 +1532,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository in which to update the image tag mutability settings. If you do not specify a registry, the default registry is assumed. """ -function put_image_tag_mutability( +put_image_tag_mutability( imageTagMutability, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "PutImageTagMutability", + Dict{String,Any}( + "imageTagMutability" => imageTagMutability, "repositoryName" => repositoryName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "PutImageTagMutability", - Dict{String,Any}( - "imageTagMutability" => imageTagMutability, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_image_tag_mutability( imageTagMutability, repositoryName, @@ -1448,18 +1582,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository. If you do
 not specify a registry, the default registry is assumed. """ -function put_lifecycle_policy( +put_lifecycle_policy( lifecyclePolicyText, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "PutLifecyclePolicy", + Dict{String,Any}( + "lifecyclePolicyText" => lifecyclePolicyText, "repositoryName" => repositoryName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "PutLifecyclePolicy", - Dict{String,Any}( - "lifecyclePolicyText" => lifecyclePolicyText, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_lifecycle_policy( lifecyclePolicyText, repositoryName, @@ -1498,14 +1630,12 @@ Elastic Container Registry User Guide. Amazon Elastic Container Registry User Guide. """ -function put_registry_policy(policyText; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr( - "PutRegistryPolicy", - Dict{String,Any}("policyText" => policyText); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_registry_policy(policyText; aws_config::AbstractAWSConfig=current_aws_config()) = ecr( + "PutRegistryPolicy", + Dict{String,Any}("policyText" => policyText); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_registry_policy( policyText, params::AbstractDict{String}; @@ -1540,15 +1670,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys continuous scanning or scan on push and you may specify filters to determine which individual repositories, or all repositories, are scanned. """ -function put_registry_scanning_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr( +put_registry_scanning_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr( "PutRegistryScanningConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_registry_scanning_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1569,25 +1696,24 @@ configuration for a repository can be retrieved with the DescribeRegistry API ac first time the PutReplicationConfiguration API is called, a service-linked IAM role is created in your account for the replication process. For more information, see Using service-linked roles for Amazon ECR in the Amazon Elastic Container Registry User Guide. -When configuring cross-account replication, the destination account must grant the source -account permission to replicate. This permission is controlled using a registry permissions -policy. For more information, see PutRegistryPolicy. +For more information on the custom role for replication, see Creating an IAM role for +replication. When configuring cross-account replication, the destination account must +grant the source account permission to replicate. This permission is controlled using a +registry permissions policy. For more information, see PutRegistryPolicy. # Arguments - `replication_configuration`: An object representing the replication configuration for a registry. """ -function put_replication_configuration( +put_replication_configuration( replicationConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "PutReplicationConfiguration", + Dict{String,Any}("replicationConfiguration" => replicationConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "PutReplicationConfiguration", - Dict{String,Any}("replicationConfiguration" => replicationConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_replication_configuration( replicationConfiguration, params::AbstractDict{String}; @@ -1629,16 +1755,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. """ -function set_repository_policy( +set_repository_policy( policyText, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "SetRepositoryPolicy", + Dict{String,Any}("policyText" => policyText, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "SetRepositoryPolicy", - Dict{String,Any}("policyText" => policyText, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_repository_policy( policyText, repositoryName, @@ -1679,16 +1803,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the repository in which to start an image scan request. If you do not specify a registry, the default registry is assumed. """ -function start_image_scan( +start_image_scan( imageId, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "StartImageScan", + Dict{String,Any}("imageId" => imageId, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "StartImageScan", - Dict{String,Any}("imageId" => imageId, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_image_scan( imageId, repositoryName, @@ -1726,16 +1848,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. """ -function start_lifecycle_policy_preview( +start_lifecycle_policy_preview( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "StartLifecyclePolicyPreview", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "StartLifecyclePolicyPreview", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_lifecycle_policy_preview( repositoryName, params::AbstractDict{String}; @@ -1766,14 +1886,12 @@ not changed if they are not specified in the request parameters. length of 256 characters. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr( - "TagResource", - Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = ecr( + "TagResource", + Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -1806,16 +1924,13 @@ Deletes specified tags from a resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1854,18 +1969,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated with the pull through cache rule. If you do not specify a registry, the default registry is assumed. """ -function update_pull_through_cache_rule( +update_pull_through_cache_rule( credentialArn, ecrRepositoryPrefix; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "UpdatePullThroughCacheRule", + Dict{String,Any}( + "credentialArn" => credentialArn, "ecrRepositoryPrefix" => ecrRepositoryPrefix + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "UpdatePullThroughCacheRule", - Dict{String,Any}( - "credentialArn" => credentialArn, "ecrRepositoryPrefix" => ecrRepositoryPrefix - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pull_through_cache_rule( credentialArn, ecrRepositoryPrefix, @@ -1889,6 +2002,64 @@ function update_pull_through_cache_rule( ) end +""" + update_repository_creation_template(prefix) + update_repository_creation_template(prefix, params::Dict{String,<:Any}) + +Updates an existing repository creation template. + +# Arguments +- `prefix`: The repository namespace prefix that matches an existing repository creation + template in the registry. All repositories created using this namespace prefix will have + the settings defined in this template applied. For example, a prefix of prod would apply to + all repositories beginning with prod/. This includes a repository named prod/team1 as well + as a repository named prod/repository1. To apply a template to all repositories in your + registry that don't have an associated creation template, you can use ROOT as the prefix. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"appliedFor"`: Updates the list of enumerable strings representing the Amazon ECR + repository creation scenarios that this template will apply towards. The two supported + scenarios are PULL_THROUGH_CACHE and REPLICATION +- `"customRoleArn"`: The ARN of the role to be assumed by Amazon ECR. This role must be in + the same account as the registry that you are configuring. Amazon ECR will assume your + supplied role when the customRoleArn is specified. When this field isn't specified, Amazon + ECR will use the service-linked role for the repository creation template. +- `"description"`: A description for the repository creation template. +- `"encryptionConfiguration"`: +- `"imageTagMutability"`: Updates the tag mutability setting for the repository. If this + parameter is omitted, the default setting of MUTABLE will be used which will allow image + tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository + will be immutable which will prevent them from being overwritten. +- `"lifecyclePolicy"`: Updates the lifecycle policy associated with the specified + repository creation template. +- `"repositoryPolicy"`: Updates the repository policy created using the template. A + repository policy is a permissions policy associated with a repository to control access + permissions. +- `"resourceTags"`: The metadata to apply to the repository to help you categorize and + organize. Each tag consists of a key and an optional value, both of which you define. Tag + keys can have a maximum character length of 128 characters, and tag values can have a + maximum length of 256 characters. +""" +update_repository_creation_template( + prefix; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "UpdateRepositoryCreationTemplate", + Dict{String,Any}("prefix" => prefix); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_repository_creation_template( + prefix, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ecr( + "UpdateRepositoryCreationTemplate", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("prefix" => prefix), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ upload_layer_part(layer_part_blob, part_first_byte, part_last_byte, repository_name, upload_id) upload_layer_part(layer_part_blob, part_first_byte, part_last_byte, repository_name, upload_id, params::Dict{String,<:Any}) @@ -1916,27 +2087,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you are uploading layer parts. If you do not specify a registry, the default registry is assumed. """ -function upload_layer_part( +upload_layer_part( layerPartBlob, partFirstByte, partLastByte, repositoryName, uploadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ecr( + "UploadLayerPart", + Dict{String,Any}( + "layerPartBlob" => layerPartBlob, + "partFirstByte" => partFirstByte, + "partLastByte" => partLastByte, + "repositoryName" => repositoryName, + "uploadId" => uploadId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "UploadLayerPart", - Dict{String,Any}( - "layerPartBlob" => layerPartBlob, - "partFirstByte" => partFirstByte, - "partLastByte" => partLastByte, - "repositoryName" => repositoryName, - "uploadId" => uploadId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_layer_part( layerPartBlob, partFirstByte, @@ -1984,16 +2153,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registryId"`: The registry ID associated with the pull through cache rule. If you do not specify a registry, the default registry is assumed. """ -function validate_pull_through_cache_rule( +validate_pull_through_cache_rule( ecrRepositoryPrefix; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr( + "ValidatePullThroughCacheRule", + Dict{String,Any}("ecrRepositoryPrefix" => ecrRepositoryPrefix); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr( - "ValidatePullThroughCacheRule", - Dict{String,Any}("ecrRepositoryPrefix" => ecrRepositoryPrefix); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_pull_through_cache_rule( ecrRepositoryPrefix, params::AbstractDict{String}; diff --git a/src/services/ecr_public.jl b/src/services/ecr_public.jl index 6facedd17..4e081dcec 100644 --- a/src/services/ecr_public.jl +++ b/src/services/ecr_public.jl @@ -26,18 +26,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the public registry that contains the image layers to check. If you do not specify a registry, the default public registry is assumed. """ -function batch_check_layer_availability( +batch_check_layer_availability( layerDigests, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr_public( + "BatchCheckLayerAvailability", + Dict{String,Any}("layerDigests" => layerDigests, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "BatchCheckLayerAvailability", - Dict{String,Any}( - "layerDigests" => layerDigests, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_check_layer_availability( layerDigests, repositoryName, @@ -81,16 +77,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with the registry that contains the image to delete. If you do not specify a registry, the default public registry is assumed. """ -function batch_delete_image( +batch_delete_image( imageIds, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr_public( + "BatchDeleteImage", + Dict{String,Any}("imageIds" => imageIds, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "BatchDeleteImage", - Dict{String,Any}("imageIds" => imageIds, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_image( imageIds, repositoryName, @@ -137,23 +131,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the registry where layers are uploaded. If you do not specify a registry, the default public registry is assumed. """ -function complete_layer_upload( +complete_layer_upload( layerDigests, repositoryName, uploadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ecr_public( + "CompleteLayerUpload", + Dict{String,Any}( + "layerDigests" => layerDigests, + "repositoryName" => repositoryName, + "uploadId" => uploadId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "CompleteLayerUpload", - Dict{String,Any}( - "layerDigests" => layerDigests, - "repositoryName" => repositoryName, - "uploadId" => uploadId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_layer_upload( layerDigests, repositoryName, @@ -201,16 +193,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. """ -function create_repository( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr_public( +create_repository(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "CreateRepository", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_repository( repositoryName, params::AbstractDict{String}; @@ -245,16 +234,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed. """ -function delete_repository( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr_public( +delete_repository(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "DeleteRepository", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_repository( repositoryName, params::AbstractDict{String}; @@ -286,16 +272,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys registry that contains the repository policy to delete. If you do not specify a registry, the default public registry is assumed. """ -function delete_repository_policy( +delete_repository_policy( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr_public( + "DeleteRepositoryPolicy", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "DeleteRepositoryPolicy", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_repository_policy( repositoryName, params::AbstractDict{String}; @@ -339,16 +323,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys registry that contains the repository where images are described. If you do not specify a registry, the default public registry is assumed. """ -function describe_image_tags( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr_public( +describe_image_tags(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "DescribeImageTags", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_image_tags( repositoryName, params::AbstractDict{String}; @@ -396,14 +377,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys registry that contains the repository where images are described. If you do not specify a registry, the default public registry is assumed. """ -function describe_images(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr_public( +describe_images(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "DescribeImages", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_images( repositoryName, params::AbstractDict{String}; @@ -441,11 +421,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. """ -function describe_registries(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr_public( - "DescribeRegistries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_registries(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public("DescribeRegistries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_registries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -483,11 +460,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"repositoryNames"`: A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described. """ -function describe_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr_public( - "DescribeRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) = ecr_public( + "DescribeRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_repositories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -509,11 +484,9 @@ access to. The authorization token is valid for 12 hours. This API requires the ecr-public:GetAuthorizationToken and sts:GetServiceBearerToken permissions. """ -function get_authorization_token(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr_public( - "GetAuthorizationToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_authorization_token(; aws_config::AbstractAWSConfig=current_aws_config()) = ecr_public( + "GetAuthorizationToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_authorization_token( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -532,11 +505,10 @@ end Retrieves catalog metadata for a public registry. """ -function get_registry_catalog_data(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr_public( +get_registry_catalog_data(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "GetRegistryCatalogData"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_registry_catalog_data( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -564,16 +536,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that contains the repositories to be described. If you do not specify a registry, the default public registry is assumed. """ -function get_repository_catalog_data( +get_repository_catalog_data( repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr_public( + "GetRepositoryCatalogData", + Dict{String,Any}("repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "GetRepositoryCatalogData", - Dict{String,Any}("repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_repository_catalog_data( repositoryName, params::AbstractDict{String}; @@ -604,16 +574,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys registry that contains the repository. If you do not specify a registry, the default public registry is assumed. """ -function get_repository_policy( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr_public( +get_repository_policy(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "GetRepositoryPolicy", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_repository_policy( repositoryName, params::AbstractDict{String}; @@ -649,16 +616,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with the registry to which you intend to upload layers. If you do not specify a registry, the default public registry is assumed. """ -function initiate_layer_upload( - repositoryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr_public( +initiate_layer_upload(repositoryName; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "InitiateLayerUpload", Dict{String,Any}("repositoryName" => repositoryName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function initiate_layer_upload( repositoryName, params::AbstractDict{String}; @@ -685,16 +649,13 @@ List the tags for an Amazon ECR Public resource. tags for. Currently, the supported resource is an Amazon ECR Public repository. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr_public( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -737,18 +698,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with the public registry that contains the repository where the image is put. If you do not specify a registry, the default public registry is assumed. """ -function put_image( +put_image( imageManifest, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr_public( + "PutImage", + Dict{String,Any}("imageManifest" => imageManifest, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "PutImage", - Dict{String,Any}( - "imageManifest" => imageManifest, "repositoryName" => repositoryName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_image( imageManifest, repositoryName, @@ -783,11 +740,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys repository author in the Amazon ECR Public Gallery. The registry display name is only publicly visible in the Amazon ECR Public Gallery for verified accounts. """ -function put_registry_catalog_data(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr_public( +put_registry_catalog_data(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "PutRegistryCatalogData"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function put_registry_catalog_data( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -816,16 +772,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys registry the repository is in. If you do not specify a registry, the default public registry is assumed. """ -function put_repository_catalog_data( +put_repository_catalog_data( catalogData, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr_public( + "PutRepositoryCatalogData", + Dict{String,Any}("catalogData" => catalogData, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "PutRepositoryCatalogData", - Dict{String,Any}("catalogData" => catalogData, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_repository_catalog_data( catalogData, repositoryName, @@ -871,16 +825,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that contains the repository. If you do not specify a registry, the default public registry is assumed. """ -function set_repository_policy( +set_repository_policy( policyText, repositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = ecr_public( + "SetRepositoryPolicy", + Dict{String,Any}("policyText" => policyText, "repositoryName" => repositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "SetRepositoryPolicy", - Dict{String,Any}("policyText" => policyText, "repositoryName" => repositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_repository_policy( policyText, repositoryName, @@ -919,14 +871,13 @@ resource is deleted, the tags associated with that resource are also deleted. length of 256 characters. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ecr_public( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -959,16 +910,13 @@ Deletes specified tags from a resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecr_public( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ecr_public( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1016,27 +964,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with the registry that you're uploading layer parts to. If you do not specify a registry, the default public registry is assumed. """ -function upload_layer_part( +upload_layer_part( layerPartBlob, partFirstByte, partLastByte, repositoryName, uploadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ecr_public( + "UploadLayerPart", + Dict{String,Any}( + "layerPartBlob" => layerPartBlob, + "partFirstByte" => partFirstByte, + "partLastByte" => partLastByte, + "repositoryName" => repositoryName, + "uploadId" => uploadId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecr_public( - "UploadLayerPart", - Dict{String,Any}( - "layerPartBlob" => layerPartBlob, - "partFirstByte" => partFirstByte, - "partLastByte" => partLastByte, - "repositoryName" => repositoryName, - "uploadId" => uploadId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_layer_part( layerPartBlob, partFirstByte, diff --git a/src/services/ecs.jl b/src/services/ecs.jl index c3f30b73c..4da6d6693 100644 --- a/src/services/ecs.jl +++ b/src/services/ecs.jl @@ -37,18 +37,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit. """ -function create_capacity_provider( +create_capacity_provider( autoScalingGroupProvider, name; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "CreateCapacityProvider", + Dict{String,Any}( + "autoScalingGroupProvider" => autoScalingGroupProvider, "name" => name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "CreateCapacityProvider", - Dict{String,Any}( - "autoScalingGroupProvider" => autoScalingGroupProvider, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_capacity_provider( autoScalingGroupProvider, name, @@ -77,12 +75,12 @@ end Creates a new Amazon ECS cluster. By default, your account receives a default cluster when you launch your first container instance. However, you can create your own cluster with a -unique name with the CreateCluster action. When you call the CreateCluster API operation, -Amazon ECS attempts to create the Amazon ECS service-linked role for your account. This is -so that it can manage required resources in other Amazon Web Services services on your -behalf. However, if the user that makes the call doesn't have permissions to create the -service-linked role, it isn't created. For more information, see Using service-linked roles -for Amazon ECS in the Amazon Elastic Container Service Developer Guide. +unique name. When you call the CreateCluster API operation, Amazon ECS attempts to create +the Amazon ECS service-linked role for your account. This is so that it can manage required +resources in other Amazon Web Services services on your behalf. However, if the user that +makes the call doesn't have permissions to create the service-linked role, it isn't +created. For more information, see Using service-linked roles for Amazon ECS in the Amazon +Elastic Container Service Developer Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -135,9 +133,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit. """ -function create_cluster(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs("CreateCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_cluster(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("CreateCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_cluster( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -152,8 +149,8 @@ end Runs and maintains your desired number of tasks from a specified task definition. If the number of tasks running in a service drops below the desiredCount, Amazon ECS runs another -copy of the task in the specified cluster. To update an existing service, see the -UpdateService action. On March 21, 2024, a change was made to resolve the task definition +copy of the task in the specified cluster. To update an existing service, use +UpdateService. On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition. In addition to maintaining the desired count of tasks in your service, you can optionally run your service @@ -180,8 +177,8 @@ Auto Scaling policies. For more information, see Service scheduler concepts in t Elastic Container Service Developer Guide. You can optionally specify a deployment configuration for your service. The deployment is initiated by changing properties. For example, the deployment might be initiated by the task definition or by your desired count -of a service. This is done with an UpdateService operation. The default value for a replica -service for minimumHealthyPercent is 100%. The default value for a daemon service for +of a service. You can use UpdateService. The default value for a replica service for +minimumHealthyPercent is 100%. The default value for a daemon service for minimumHealthyPercent is 0%. If a service uses the ECS deployment controller, the minimum healthy percent represents a lower limit on the number of tasks in a service that must remain in the RUNNING state during a deployment. Specifically, it represents it as a @@ -212,17 +209,17 @@ the Fargate launch type, the minimum healthy percent and maximum percent values used. This is the case even if they're currently visible when describing your service. When creating a service that uses the EXTERNAL deployment controller, you can specify only parameters that aren't controlled at the task set level. The only required parameter is the -service name. You control your services using the CreateTaskSet operation. For more -information, see Amazon ECS deployment types in the Amazon Elastic Container Service -Developer Guide. When the service scheduler launches new tasks, it determines task -placement. For information about task placement and task placement strategies, see Amazon -ECS task placement in the Amazon Elastic Container Service Developer Guide Starting April -15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference -(EI), and will help current customers migrate their workloads to options that offer better -price and performance. After April 15, 2023, new customers will not be able to launch -instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. -However, customers who have used Amazon EI at least once during the past 30-day period are -considered current customers and will be able to continue using the service. +service name. You control your services using the CreateTaskSet. For more information, see +Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide. When +the service scheduler launches new tasks, it determines task placement. For information +about task placement and task placement strategies, see Amazon ECS task placement in the +Amazon Elastic Container Service Developer Guide Starting April 15, 2023, Amazon Web +Services will not onboard new customers to Amazon Elastic Inference (EI), and will help +current customers migrate their workloads to options that offer better price and +performance. After April 15, 2023, new customers will not be able to launch instances with +Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers +who have used Amazon EI at least once during the past 30-day period are considered current +customers and will be able to continue using the service. # Arguments - `service_name`: The name of your service. Up to 255 letters (uppercase and lowercase), @@ -391,14 +388,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume. """ -function create_service(serviceName; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "CreateService", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_service(serviceName; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "CreateService", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_service( serviceName, params::AbstractDict{String}; @@ -423,9 +418,8 @@ the EXTERNAL deployment controller type. For more information, see Amazon ECS de types in the Amazon Elastic Container Service Developer Guide. On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of -a task definition. For information about the maximum number of task sets and otther -quotas, see Amazon ECS service quotas in the Amazon Elastic Container Service Developer -Guide. +a task definition. For information about the maximum number of task sets and other quotas, +see Amazon ECS service quotas in the Amazon Elastic Container Service Developer Guide. # Arguments - `cluster`: The short name or full Amazon Resource Name (ARN) of the cluster that hosts @@ -446,11 +440,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter must be omitted. If no capacityProviderStrategy or launchType is specified, the defaultCapacityProviderStrategy for the cluster is used. If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New - capacity providers can be created with the CreateCapacityProvider API operation. To use a - Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT capacity providers. - The Fargate capacity providers are available to all accounts and only need to be associated - with a cluster to be used. The PutClusterCapacityProviders API operation is used to update - the list of available capacity providers for a cluster after the cluster is created. + capacity providers can be created with the CreateCapacityProviderProviderAPI operation. To + use a Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT capacity + providers. The Fargate capacity providers are available to all accounts and only need to be + associated with a cluster to be used. The PutClusterCapacityProviders API operation is used + to update the list of available capacity providers for a cluster after the cluster is + created. - `"clientToken"`: An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed. @@ -486,18 +481,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit. """ -function create_task_set( +create_task_set( cluster, service, taskDefinition; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "CreateTaskSet", + Dict{String,Any}( + "cluster" => cluster, "service" => service, "taskDefinition" => taskDefinition + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "CreateTaskSet", - Dict{String,Any}( - "cluster" => cluster, "service" => service, "taskDefinition" => taskDefinition - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_task_set( cluster, service, @@ -545,14 +538,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys overrides these settings. If this field is omitted, the setting is changed only for the authenticated user. """ -function delete_account_setting(name; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "DeleteAccountSetting", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_account_setting(name; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "DeleteAccountSetting", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_account_setting( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -582,14 +573,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the resource to delete attributes. If you do not specify a cluster, the default cluster is assumed. """ -function delete_attributes(attributes; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "DeleteAttributes", - Dict{String,Any}("attributes" => attributes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_attributes(attributes; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "DeleteAttributes", + Dict{String,Any}("attributes" => attributes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_attributes( attributes, params::AbstractDict{String}; @@ -611,31 +600,29 @@ end Deletes the specified capacity provider. The FARGATE and FARGATE_SPOT capacity providers are reserved and can't be deleted. You can disassociate them from a cluster using either -the PutClusterCapacityProviders API or by deleting the cluster. Prior to a capacity -provider being deleted, the capacity provider must be removed from the capacity provider -strategy from all services. The UpdateService API can be used to remove a capacity provider -from a service's capacity provider strategy. When updating a service, the -forceNewDeployment option can be used to ensure that any tasks using the Amazon EC2 -instance capacity provided by the capacity provider are transitioned to use the capacity -from the remaining capacity providers. Only capacity providers that aren't associated with -a cluster can be deleted. To remove a capacity provider from a cluster, you can either use -PutClusterCapacityProviders or delete the cluster. +PutCapacityProviderProviders or by deleting the cluster. Prior to a capacity provider +being deleted, the capacity provider must be removed from the capacity provider strategy +from all services. The UpdateService API can be used to remove a capacity provider from a +service's capacity provider strategy. When updating a service, the forceNewDeployment +option can be used to ensure that any tasks using the Amazon EC2 instance capacity provided +by the capacity provider are transitioned to use the capacity from the remaining capacity +providers. Only capacity providers that aren't associated with a cluster can be deleted. To +remove a capacity provider from a cluster, you can either use PutCapacityProviderProviders +or delete the cluster. # Arguments - `capacity_provider`: The short name or full Amazon Resource Name (ARN) of the capacity provider to delete. """ -function delete_capacity_provider( +delete_capacity_provider( capacityProvider; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "DeleteCapacityProvider", + Dict{String,Any}("capacityProvider" => capacityProvider); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "DeleteCapacityProvider", - Dict{String,Any}("capacityProvider" => capacityProvider); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_capacity_provider( capacityProvider, params::AbstractDict{String}; @@ -668,14 +655,12 @@ ListContainerInstances and deregister them with DeregisterContainerInstance. - `cluster`: The short name or full Amazon Resource Name (ARN) of the cluster to delete. """ -function delete_cluster(cluster; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "DeleteCluster", - Dict{String,Any}("cluster" => cluster); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_cluster(cluster; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "DeleteCluster", + Dict{String,Any}("cluster" => cluster); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_cluster( cluster, params::AbstractDict{String}; @@ -717,14 +702,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"force"`: If true, allows you to delete a service even if it wasn't scaled down to zero tasks. It's only necessary to use this if the service uses the REPLICA scheduling strategy. """ -function delete_service(service; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "DeleteService", - Dict{String,Any}("service" => service); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_service(service; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "DeleteService", + Dict{String,Any}("service" => service); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_service( service, params::AbstractDict{String}; @@ -764,16 +747,14 @@ incremented the next time you create a task definition with that name. up to 10 task definitions as a comma separated list. """ -function delete_task_definitions( +delete_task_definitions( taskDefinitions; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "DeleteTaskDefinitions", + Dict{String,Any}("taskDefinitions" => taskDefinitions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "DeleteTaskDefinitions", - Dict{String,Any}("taskDefinitions" => taskDefinitions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_task_definitions( taskDefinitions, params::AbstractDict{String}; @@ -810,16 +791,14 @@ in the Amazon Elastic Container Service Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"force"`: If true, you can delete a task set even if it hasn't been scaled down to zero. """ -function delete_task_set( +delete_task_set( cluster, service, taskSet; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "DeleteTaskSet", + Dict{String,Any}("cluster" => cluster, "service" => service, "taskSet" => taskSet); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "DeleteTaskSet", - Dict{String,Any}("cluster" => cluster, "service" => service, "taskSet" => taskSet); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_task_set( cluster, service, @@ -878,16 +857,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Application Load Balancer target group are deregistered. They begin connection draining according to the settings on the load balancer or target group. """ -function deregister_container_instance( +deregister_container_instance( containerInstance; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "DeregisterContainerInstance", + Dict{String,Any}("containerInstance" => containerInstance); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "DeregisterContainerInstance", - Dict{String,Any}("containerInstance" => containerInstance); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_container_instance( containerInstance, params::AbstractDict{String}; @@ -929,16 +906,14 @@ DeleteTaskDefinitions. (ARN) of the task definition to deregister. You must specify a revision. """ -function deregister_task_definition( +deregister_task_definition( taskDefinition; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "DeregisterTaskDefinition", + Dict{String,Any}("taskDefinition" => taskDefinition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "DeregisterTaskDefinition", - Dict{String,Any}("taskDefinition" => taskDefinition); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_task_definition( taskDefinition, params::AbstractDict{String}; @@ -980,11 +955,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned the nextToken value. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. """ -function describe_capacity_providers(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "DescribeCapacityProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_capacity_providers(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("DescribeCapacityProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_capacity_providers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1015,9 +987,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by launch type. If TAGS is specified, the metadata tags associated with the cluster are included. """ -function describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs("DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1049,16 +1020,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. If this field is omitted, tags and container instance health status aren't included in the response. """ -function describe_container_instances( +describe_container_instances( containerInstances; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "DescribeContainerInstances", + Dict{String,Any}("containerInstances" => containerInstances); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "DescribeContainerInstances", - Dict{String,Any}("containerInstances" => containerInstances); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_container_instances( containerInstances, params::AbstractDict{String}; @@ -1096,14 +1065,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys TAGS is specified, the tags are included in the response. If this field is omitted, tags aren't included in the response. """ -function describe_services(services; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "DescribeServices", - Dict{String,Any}("services" => services); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_services(services; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "DescribeServices", + Dict{String,Any}("services" => services); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_services( services, params::AbstractDict{String}; @@ -1139,16 +1106,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is specified, the tags are included in the response. If this field is omitted, tags aren't included in the response. """ -function describe_task_definition( +describe_task_definition( taskDefinition; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "DescribeTaskDefinition", + Dict{String,Any}("taskDefinition" => taskDefinition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "DescribeTaskDefinition", - Dict{String,Any}("taskDefinition" => taskDefinition); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_task_definition( taskDefinition, params::AbstractDict{String}; @@ -1185,16 +1150,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response. - `"taskSets"`: The ID or full Amazon Resource Name (ARN) of task sets to describe. """ -function describe_task_sets( - cluster, service; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecs( +describe_task_sets(cluster, service; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs( "DescribeTaskSets", Dict{String,Any}("cluster" => cluster, "service" => service); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_task_sets( cluster, service, @@ -1235,14 +1197,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified, the tags are included in the response. If this field is omitted, tags aren't included in the response. """ -function describe_tasks(tasks; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "DescribeTasks", - Dict{String,Any}("tasks" => tasks); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_tasks(tasks; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "DescribeTasks", + Dict{String,Any}("tasks" => tasks); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_tasks( tasks, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1269,11 +1229,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide. """ -function discover_poll_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "DiscoverPollEndpoint"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +discover_poll_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("DiscoverPollEndpoint"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function discover_poll_endpoint( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1308,18 +1265,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"container"`: The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers. """ -function execute_command( +execute_command( command, interactive, task; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "ExecuteCommand", + Dict{String,Any}("command" => command, "interactive" => interactive, "task" => task); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "ExecuteCommand", - Dict{String,Any}( - "command" => command, "interactive" => interactive, "task" => task - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_command( command, interactive, @@ -1357,14 +1310,12 @@ Retrieves the protection status of tasks in an Amazon ECS service. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tasks"`: A list of up to 100 task IDs or full ARN entries. """ -function get_task_protection(cluster; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "GetTaskProtection", - Dict{String,Any}("cluster" => cluster); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_task_protection(cluster; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "GetTaskProtection", + Dict{String,Any}("cluster" => cluster); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_task_protection( cluster, params::AbstractDict{String}; @@ -1410,11 +1361,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"value"`: The value of the account settings to filter results with. You must also specify an account setting name to use this parameter. """ -function list_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "ListAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("ListAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1459,14 +1407,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. """ -function list_attributes(targetType; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "ListAttributes", - Dict{String,Any}("targetType" => targetType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_attributes(targetType; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "ListAttributes", + Dict{String,Any}("targetType" => targetType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_attributes( targetType, params::AbstractDict{String}; @@ -1502,9 +1448,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. """ -function list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1547,11 +1492,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DRAINING using UpdateContainerInstancesState. If you don't specify this parameter, the default is to include container instances set to all states other than INACTIVE. """ -function list_container_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "ListContainerInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_container_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("ListContainerInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_container_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1590,9 +1532,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"schedulingStrategy"`: The scheduling strategy to use when filtering the ListServices results. """ -function list_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs("ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1634,16 +1575,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys calls are needed. If maxResults is returned, it is possible the number of results is less than maxResults. """ -function list_services_by_namespace( - namespace; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecs( +list_services_by_namespace(namespace; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs( "ListServicesByNamespace", Dict{String,Any}("namespace" => namespace); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_services_by_namespace( namespace, params::AbstractDict{String}; @@ -1671,16 +1609,13 @@ List the tags for an Amazon ECS resource. definitions, clusters, and container instances. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecs( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1731,11 +1666,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you paginate the resulting output, be sure to keep the status value constant in each subsequent request. """ -function list_task_definition_families(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "ListTaskDefinitionFamilies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_task_definition_families(; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "ListTaskDefinitionFamilies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_task_definition_families( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1783,11 +1716,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys references them. If you paginate the resulting output, be sure to keep the status value constant in each subsequent request. """ -function list_task_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "ListTaskDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_task_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("ListTaskDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_task_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1843,9 +1773,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys startedBy value limits the results to tasks that were started with that value. When you specify startedBy as the filter, it must be the only filter that you use. """ -function list_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs("ListTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("ListTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1928,16 +1857,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys users assume the account setting of the root user and can't have explicit account settings set for them. """ -function put_account_setting( - name, value; aws_config::AbstractAWSConfig=current_aws_config() +put_account_setting(name, value; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "PutAccountSetting", + Dict{String,Any}("name" => name, "value" => value); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "PutAccountSetting", - Dict{String,Any}("name" => name, "value" => value); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_setting( name, value, @@ -2019,16 +1944,14 @@ setting has been specified. Account settings are set on a per-Region basis. Services sends the notification, and waits 14 calendar days to retire the tasks. """ -function put_account_setting_default( +put_account_setting_default( name, value; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "PutAccountSettingDefault", + Dict{String,Any}("name" => name, "value" => value); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "PutAccountSettingDefault", - Dict{String,Any}("name" => name, "value" => value); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_setting_default( name, value, @@ -2064,14 +1987,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the resource to apply attributes. If you do not specify a cluster, the default cluster is assumed. """ -function put_attributes(attributes; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "PutAttributes", - Dict{String,Any}("attributes" => attributes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_attributes(attributes; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "PutAttributes", + Dict{String,Any}("attributes" => attributes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_attributes( attributes, params::AbstractDict{String}; @@ -2129,23 +2050,21 @@ a default strategy. need to be associated with a cluster to be used. """ -function put_cluster_capacity_providers( +put_cluster_capacity_providers( capacityProviders, cluster, defaultCapacityProviderStrategy; aws_config::AbstractAWSConfig=current_aws_config(), +) = ecs( + "PutClusterCapacityProviders", + Dict{String,Any}( + "capacityProviders" => capacityProviders, + "cluster" => cluster, + "defaultCapacityProviderStrategy" => defaultCapacityProviderStrategy, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "PutClusterCapacityProviders", - Dict{String,Any}( - "capacityProviders" => capacityProviders, - "cluster" => cluster, - "defaultCapacityProviderStrategy" => defaultCapacityProviderStrategy, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_cluster_capacity_providers( capacityProviders, cluster, @@ -2212,11 +2131,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versionInfo"`: The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance. """ -function register_container_instance(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "RegisterContainerInstance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +register_container_instance(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("RegisterContainerInstance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function register_container_instance( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2241,12 +2157,10 @@ containers can then use the latest versions of the CLI or SDKs to make API reque Amazon Web Services services that are specified in the policy that's associated with the role. For more information, see IAM Roles for Tasks in the Amazon Elastic Container Service Developer Guide. You can specify a Docker networking mode for the containers in your task -definition with the networkMode parameter. The available network modes correspond to those -described in Network settings in the Docker run reference. If you specify the awsvpc -network mode, the task is allocated an elastic network interface, and you must specify a -NetworkConfiguration when you create a service or run a task with the task definition. For -more information, see Task Networking in the Amazon Elastic Container Service Developer -Guide. +definition with the networkMode parameter. If you specify the awsvpc network mode, the task +is allocated an elastic network interface, and you must specify a NetworkConfiguration when +you create a service or run a task with the task definition. For more information, see Task +Networking in the Amazon Elastic Container Service Developer Guide. # Arguments - `container_definitions`: A list of container definitions in JSON format that describe the @@ -2286,9 +2200,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys platform version 1.0.0 or later. - `"executionRoleArn"`: The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on - your behalf. The task execution IAM role is required depending on the requirements of your - task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic - Container Service Developer Guide. + your behalf. For informationabout the required IAM roles for Amazon ECS, see IAM roles for + Amazon ECS in the Amazon Elastic Container Service Developer Guide. - `"inferenceAccelerators"`: The Elastic Inference accelerators to use for the containers in the task. - `"ipcMode"`: The IPC resource namespace to use for the containers in the task. The valid @@ -2298,16 +2211,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the specified task share the same IPC resources. If none is specified, then IPC resources within the containers of a task are private and not shared with other containers in a task or on the container instance. If no value is specified, then the IPC resource namespace - sharing depends on the Docker daemon setting on the container instance. For more - information, see IPC settings in the Docker run reference. If the host IPC mode is used, be - aware that there is a heightened risk of undesired IPC namespace expose. For more - information, see Docker security. If you are setting namespaced kernel parameters using - systemControls for the containers in the task, the following will apply to your IPC - resource namespace. For more information, see System Controls in the Amazon Elastic - Container Service Developer Guide. For tasks that use the host IPC mode, IPC namespace - related systemControls are not supported. For tasks that use the task IPC mode, IPC - namespace related systemControls will apply to all containers within a task. This - parameter is not supported for Windows containers or tasks run on Fargate. + sharing depends on the Docker daemon setting on the container instance. If the host IPC + mode is used, be aware that there is a heightened risk of undesired IPC namespace expose. + If you are setting namespaced kernel parameters using systemControls for the containers in + the task, the following will apply to your IPC resource namespace. For more information, + see System Controls in the Amazon Elastic Container Service Developer Guide. For tasks + that use the host IPC mode, IPC namespace related systemControls are not supported. For + tasks that use the task IPC mode, IPC namespace related systemControls will apply to all + containers within a task. This parameter is not supported for Windows containers or + tasks run on Fargate. - `"memory"`: The amount of memory (in MiB) used by the task. It can be expressed as an integer using MiB (for example ,1024) or as a string using GB (for example, 1GB or 1 GB) in a task definition. String values are converted to an integer indicating the MiB when the @@ -2345,7 +2257,6 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys definition. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide. If the network mode is host, you cannot run multiple instantiations of the same task on a single container instance when port mappings are used. - For more information, see Network settings in the Docker run reference. - `"pidMode"`: The process namespace to use for the containers in the task. The valid values are host or task. On Fargate for Linux containers, the only valid value is task. For example, monitoring sidecars might need pidMode to access information about other @@ -2353,12 +2264,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that specified the host PID mode on the same container instance share the same process namespace with the host Amazon EC2 instance. If task is specified, all containers within the specified task share the same process namespace. If no value is specified, the default - is a private namespace for each container. For more information, see PID settings in the - Docker run reference. If the host PID mode is used, there's a heightened risk of undesired - process namespace exposure. For more information, see Docker security. This parameter is - not supported for Windows containers. This parameter is only supported for tasks that are - hosted on Fargate if the tasks are using platform version 1.4.0 or later (Linux). This - isn't supported for Windows containers on Fargate. + is a private namespace for each container. If the host PID mode is used, there's a + heightened risk of undesired process namespace exposure. This parameter is not supported + for Windows containers. This parameter is only supported for tasks that are hosted on + Fargate if the tasks are using platform version 1.4.0 or later (Linux). This isn't + supported for Windows containers on Fargate. - `"placementConstraints"`: An array of placement constraint objects to use for the task. You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime. @@ -2395,18 +2305,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"volumes"`: A list of volume definitions in JSON format that containers in your task might use. """ -function register_task_definition( +register_task_definition( containerDefinitions, family; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "RegisterTaskDefinition", + Dict{String,Any}("containerDefinitions" => containerDefinitions, "family" => family); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "RegisterTaskDefinition", - Dict{String,Any}( - "containerDefinitions" => containerDefinitions, "family" => family - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_task_definition( containerDefinitions, family, @@ -2534,18 +2440,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Container Service Developer Guide. - `"propagateTags"`: Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags aren't propagated. Tags can only be propagated - to the task during task creation. To add tags to a task after task creation, use the - TagResource API action. An error will be received if you specify the SERVICE option when - running a task. + to the task during task creation. To add tags to a task after task creation, use + theTagResource API action. An error will be received if you specify the SERVICE option + when running a task. - `"referenceId"`: The reference ID to use for the task. The reference ID can have a maximum length of 1024 characters. - `"startedBy"`: An optional tag specified when a task is started. For example, if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the startedBy parameter. You can then identify which tasks belong to that job by filtering the results of a ListTasks call with the - startedBy value. Up to 128 letters (uppercase and lowercase), numbers, hyphens (-), and - underscores (_) are allowed. If a task is started by an Amazon ECS service, then the - startedBy parameter contains the deployment ID of the service that starts it. + startedBy value. Up to 128 letters (uppercase and lowercase), numbers, hyphens (-), forward + slash (/), and underscores (_) are allowed. If a task is started by an Amazon ECS service, + then the startedBy parameter contains the deployment ID of the service that starts it. - `"tags"`: The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. The following basic restrictions apply to tags: Maximum number of tags per resource - 50 @@ -2564,16 +2470,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys TaskManagedEBSVolumeConfiguration. The name of the volume must match the name from the task definition. """ -function run_task(taskDefinition; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "RunTask", - Dict{String,Any}( - "taskDefinition" => taskDefinition, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +run_task(taskDefinition; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "RunTask", + Dict{String,Any}("taskDefinition" => taskDefinition, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function run_task( taskDefinition, params::AbstractDict{String}; @@ -2608,8 +2510,8 @@ current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current -customers and will be able to continue using the service. Alternatively, you can use -RunTask to place tasks for you. For more information, see Scheduling Tasks in the Amazon +customers and will be able to continue using the service. Alternatively, you can +useRunTask to place tasks for you. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide. You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide. @@ -2649,9 +2551,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the startedBy parameter. You can then identify which tasks belong to that job by filtering the results of a ListTasks call with the - startedBy value. Up to 36 letters (uppercase and lowercase), numbers, hyphens (-), and - underscores (_) are allowed. If a task is started by an Amazon ECS service, the startedBy - parameter contains the deployment ID of the service that starts it. + startedBy value. Up to 36 letters (uppercase and lowercase), numbers, hyphens (-), forward + slash (/), and underscores (_) are allowed. If a task is started by an Amazon ECS service, + the startedBy parameter contains the deployment ID of the service that starts it. - `"tags"`: The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. The following basic restrictions apply to tags: Maximum number of tags per resource - 50 @@ -2670,18 +2572,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys TaskManagedEBSVolumeConfiguration. The name of the volume must match the name from the task definition. """ -function start_task( +start_task( containerInstances, taskDefinition; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "StartTask", + Dict{String,Any}( + "containerInstances" => containerInstances, "taskDefinition" => taskDefinition + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "StartTask", - Dict{String,Any}( - "containerInstances" => containerInstances, "taskDefinition" => taskDefinition - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_task( containerInstances, taskDefinition, @@ -2709,9 +2609,9 @@ end stop_task(task) stop_task(task, params::Dict{String,<:Any}) -Stops a running task. Any tags associated with the task will be deleted. When StopTask is -called on a task, the equivalent of docker stop is issued to the containers running in the -task. This results in a SIGTERM value and a default 30-second timeout, after which the +Stops a running task. Any tags associated with the task will be deleted. When you call +StopTask on a task, the equivalent of docker stop is issued to the containers running in +the task. This results in a SIGTERM value and a default 30-second timeout, after which the SIGKILL value is sent and the containers are forcibly stopped. If the container handles the SIGTERM value gracefully and exits within 30 seconds from receiving it, no SIGKILL value is sent. For Windows containers, POSIX signals do not work and runtime stops the container by @@ -2730,16 +2630,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the task to stop. If you do not specify a cluster, the default cluster is assumed. - `"reason"`: An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the - task here, and the message appears in subsequent DescribeTasks API operations on this task. + task here, and the message appears in subsequent DescribeTasks> API operations on this + task. """ -function stop_task(task; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "StopTask", - Dict{String,Any}("task" => task); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_task(task; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "StopTask", + Dict{String,Any}("task" => task); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_task( task, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2766,16 +2665,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"cluster"`: The short name or full ARN of the cluster that hosts the container instance the attachment belongs to. """ -function submit_attachment_state_changes( +submit_attachment_state_changes( attachments; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "SubmitAttachmentStateChanges", + Dict{String,Any}("attachments" => attachments); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "SubmitAttachmentStateChanges", - Dict{String,Any}("attachments" => attachments); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function submit_attachment_state_changes( attachments, params::AbstractDict{String}; @@ -2810,11 +2707,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"task"`: The task ID or full Amazon Resource Name (ARN) of the task that hosts the container. """ -function submit_container_state_change(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "SubmitContainerStateChange"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +submit_container_state_change(; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "SubmitContainerStateChange"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function submit_container_state_change( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2848,11 +2743,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the state change request. - `"task"`: The task ID or full ARN of the task in the state change request. """ -function submit_task_state_change(; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "SubmitTaskStateChange"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +submit_task_state_change(; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs("SubmitTaskStateChange"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function submit_task_state_change( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2890,14 +2782,12 @@ resource is deleted, the tags that are associated with that resource are deleted resource limit. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "TagResource", - Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "TagResource", + Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -2931,16 +2821,13 @@ Deletes specified tags from a resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ecs( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ecs( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2973,18 +2860,16 @@ Modifies the parameters for a capacity provider. - `name`: The name of the capacity provider to update. """ -function update_capacity_provider( +update_capacity_provider( autoScalingGroupProvider, name; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "UpdateCapacityProvider", + Dict{String,Any}( + "autoScalingGroupProvider" => autoScalingGroupProvider, "name" => name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "UpdateCapacityProvider", - Dict{String,Any}( - "autoScalingGroupProvider" => autoScalingGroupProvider, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_capacity_provider( autoScalingGroupProvider, name, @@ -3032,14 +2917,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Service Connect in the Amazon Elastic Container Service Developer Guide. - `"settings"`: The cluster settings for your cluster. """ -function update_cluster(cluster; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "UpdateCluster", - Dict{String,Any}("cluster" => cluster); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_cluster(cluster; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "UpdateCluster", + Dict{String,Any}("cluster" => cluster); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_cluster( cluster, params::AbstractDict{String}; @@ -3071,16 +2954,14 @@ Modifies the settings to use for a cluster. can re-create it. """ -function update_cluster_settings( +update_cluster_settings( cluster, settings; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "UpdateClusterSettings", + Dict{String,Any}("cluster" => cluster, "settings" => settings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "UpdateClusterSettings", - Dict{String,Any}("cluster" => cluster, "settings" => settings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cluster_settings( cluster, settings, @@ -3130,16 +3011,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys container instance is running on. If you do not specify a cluster, the default cluster is assumed. """ -function update_container_agent( +update_container_agent( containerInstance; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "UpdateContainerAgent", + Dict{String,Any}("containerInstance" => containerInstance); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "UpdateContainerAgent", - Dict{String,Any}("containerInstance" => containerInstance); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_container_agent( containerInstance, params::AbstractDict{String}; @@ -3207,16 +3086,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the container instance to update. If you do not specify a cluster, the default cluster is assumed. """ -function update_container_instances_state( +update_container_instances_state( containerInstances, status; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "UpdateContainerInstancesState", + Dict{String,Any}("containerInstances" => containerInstances, "status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "UpdateContainerInstancesState", - Dict{String,Any}("containerInstances" => containerInstances, "status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_container_instances_state( containerInstances, status, @@ -3336,11 +3213,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must - already be created. New capacity providers can be created with the CreateCapacityProvider - API operation. To use a Fargate capacity provider, specify either the FARGATE or - FARGATE_SPOT capacity providers. The Fargate capacity providers are available to all - accounts and only need to be associated with a cluster to be used. The - PutClusterCapacityProviders API operation is used to update the list of available capacity + already be created. New capacity providers can be created with the + CreateClusterCapacityProvider API operation. To use a Fargate capacity provider, specify + either the FARGATE or FARGATE_SPOT capacity providers. The Fargate capacity providers are + available to all accounts and only need to be associated with a cluster to be used. The + PutClusterCapacityProvidersAPI operation is used to update the list of available capacity providers for a cluster after the cluster is created. - `"cluster"`: The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on. If you do not specify a cluster, the default cluster is assumed. @@ -3431,14 +3308,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys task definition. If set to null, no new deployment is triggered. Otherwise, if this configuration differs from the existing one, it triggers a new deployment. """ -function update_service(service; aws_config::AbstractAWSConfig=current_aws_config()) - return ecs( - "UpdateService", - Dict{String,Any}("service" => service); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_service(service; aws_config::AbstractAWSConfig=current_aws_config()) = ecs( + "UpdateService", + Dict{String,Any}("service" => service); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_service( service, params::AbstractDict{String}; @@ -3470,18 +3345,16 @@ Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Gu set exists in. """ -function update_service_primary_task_set( +update_service_primary_task_set( cluster, primaryTaskSet, service; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "UpdateServicePrimaryTaskSet", + Dict{String,Any}( + "cluster" => cluster, "primaryTaskSet" => primaryTaskSet, "service" => service + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "UpdateServicePrimaryTaskSet", - Dict{String,Any}( - "cluster" => cluster, "primaryTaskSet" => primaryTaskSet, "service" => service - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_primary_task_set( cluster, primaryTaskSet, @@ -3543,18 +3416,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will be reset to false. If you don’t specify the time, then the task is automatically protected for 120 minutes (2 hours). """ -function update_task_protection( +update_task_protection( cluster, protectionEnabled, tasks; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "UpdateTaskProtection", + Dict{String,Any}( + "cluster" => cluster, "protectionEnabled" => protectionEnabled, "tasks" => tasks + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "UpdateTaskProtection", - Dict{String,Any}( - "cluster" => cluster, "protectionEnabled" => protectionEnabled, "tasks" => tasks - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_task_protection( cluster, protectionEnabled, @@ -3598,21 +3469,19 @@ Service Developer Guide. - `task_set`: The short name or full Amazon Resource Name (ARN) of the task set to update. """ -function update_task_set( +update_task_set( cluster, scale, service, taskSet; aws_config::AbstractAWSConfig=current_aws_config() +) = ecs( + "UpdateTaskSet", + Dict{String,Any}( + "cluster" => cluster, + "scale" => scale, + "service" => service, + "taskSet" => taskSet, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ecs( - "UpdateTaskSet", - Dict{String,Any}( - "cluster" => cluster, - "scale" => scale, - "service" => service, - "taskSet" => taskSet, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_task_set( cluster, scale, diff --git a/src/services/efs.jl b/src/services/efs.jl index 5195fc41d..6eba00946 100644 --- a/src/services/efs.jl +++ b/src/services/efs.jl @@ -48,17 +48,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys each key must be unique. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide. """ -function create_access_point( +create_access_point( ClientToken, FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "POST", + "/2015-02-01/access-points", + Dict{String,Any}("ClientToken" => ClientToken, "FileSystemId" => FileSystemId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "POST", - "/2015-02-01/access-points", - Dict{String,Any}("ClientToken" => ClientToken, "FileSystemId" => FileSystemId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_point( ClientToken, FileSystemId, @@ -182,17 +180,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with certain time restrictions. For more information, see Specifying throughput with provisioned mode in the Amazon EFS User Guide. Default is bursting. """ -function create_file_system( - CreationToken; aws_config::AbstractAWSConfig=current_aws_config() +create_file_system(CreationToken; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "POST", + "/2015-02-01/file-systems", + Dict{String,Any}("CreationToken" => CreationToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "POST", - "/2015-02-01/file-systems", - Dict{String,Any}("CreationToken" => CreationToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_file_system( CreationToken, params::AbstractDict{String}; @@ -281,17 +275,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SecurityGroups"`: Up to five VPC security group IDs, of the form sg-xxxxxxxx. These must be for the same VPC as subnet specified. """ -function create_mount_target( +create_mount_target( FileSystemId, SubnetId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "POST", + "/2015-02-01/mount-targets", + Dict{String,Any}("FileSystemId" => FileSystemId, "SubnetId" => SubnetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "POST", - "/2015-02-01/mount-targets", - Dict{String,Any}("FileSystemId" => FileSystemId, "SubnetId" => SubnetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_mount_target( FileSystemId, SubnetId, @@ -360,17 +352,15 @@ information, see Amazon EFS replication in the Amazon EFS User Guide. replication configuration. """ -function create_replication_configuration( +create_replication_configuration( Destinations, SourceFileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "POST", + "/2015-02-01/file-systems/$(SourceFileSystemId)/replication-configuration", + Dict{String,Any}("Destinations" => Destinations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "POST", - "/2015-02-01/file-systems/$(SourceFileSystemId)/replication-configuration", - Dict{String,Any}("Destinations" => Destinations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_configuration( Destinations, SourceFileSystemId, @@ -406,15 +396,13 @@ elasticfilesystem:CreateTags action. - `tags`: An array of Tag objects to add. Each Tag object is a key-value pair. """ -function create_tags(FileSystemId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return efs( - "POST", - "/2015-02-01/create-tags/$(FileSystemId)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_tags(FileSystemId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "POST", + "/2015-02-01/create-tags/$(FileSystemId)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_tags( FileSystemId, Tags, @@ -443,16 +431,13 @@ permissions for the elasticfilesystem:DeleteAccessPoint action. - `access_point_id`: The ID of the access point that you want to delete. """ -function delete_access_point( - AccessPointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return efs( +delete_access_point(AccessPointId; aws_config::AbstractAWSConfig=current_aws_config()) = + efs( "DELETE", "/2015-02-01/access-points/$(AccessPointId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_access_point( AccessPointId, params::AbstractDict{String}; @@ -490,16 +475,12 @@ elasticfilesystem:DeleteFileSystem action. - `file_system_id`: The ID of the file system you want to delete. """ -function delete_file_system( - FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +delete_file_system(FileSystemId; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "DELETE", + "/2015-02-01/file-systems/$(FileSystemId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "DELETE", - "/2015-02-01/file-systems/$(FileSystemId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_file_system( FileSystemId, params::AbstractDict{String}; @@ -527,16 +508,14 @@ requires permissions for the elasticfilesystem:DeleteFileSystemPolicy action. - `file_system_id`: Specifies the EFS file system for which to delete the FileSystemPolicy. """ -function delete_file_system_policy( +delete_file_system_policy( FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "DELETE", + "/2015-02-01/file-systems/$(FileSystemId)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "DELETE", - "/2015-02-01/file-systems/$(FileSystemId)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_file_system_policy( FileSystemId, params::AbstractDict{String}; @@ -573,16 +552,13 @@ action on the mount target's network interface: ec2:DeleteNetworkInterface - `mount_target_id`: The ID of the mount target to delete (String). """ -function delete_mount_target( - MountTargetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return efs( +delete_mount_target(MountTargetId; aws_config::AbstractAWSConfig=current_aws_config()) = + efs( "DELETE", "/2015-02-01/mount-targets/$(MountTargetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_mount_target( MountTargetId, params::AbstractDict{String}; @@ -612,16 +588,14 @@ for the elasticfilesystem:DeleteReplicationConfiguration action. configuration. """ -function delete_replication_configuration( +delete_replication_configuration( SourceFileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "DELETE", + "/2015-02-01/file-systems/$(SourceFileSystemId)/replication-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "DELETE", - "/2015-02-01/file-systems/$(SourceFileSystemId)/replication-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_configuration( SourceFileSystemId, params::AbstractDict{String}; @@ -652,17 +626,14 @@ permissions for the elasticfilesystem:DeleteTags action. - `tag_keys`: A list of tag keys to delete. """ -function delete_tags( - FileSystemId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return efs( +delete_tags(FileSystemId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + efs( "POST", "/2015-02-01/delete-tags/$(FileSystemId)", Dict{String,Any}("TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tags( FileSystemId, TagKeys, @@ -700,14 +671,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: NextToken is present if the response is paginated. You can use NextMarker in the subsequent request to fetch the next page of access point descriptions. """ -function describe_access_points(; aws_config::AbstractAWSConfig=current_aws_config()) - return efs( - "GET", - "/2015-02-01/access-points"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_access_points(; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "GET", + "/2015-02-01/access-points"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_access_points( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -735,14 +704,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: (Optional) You can use NextToken in a subsequent request to fetch the next page of Amazon Web Services account preferences if the response payload was paginated. """ -function describe_account_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) - return efs( - "GET", - "/2015-02-01/account-preferences"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_account_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "GET", + "/2015-02-01/account-preferences"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_account_preferences( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -765,16 +732,13 @@ Returns the backup policy for the specified EFS file system. - `file_system_id`: Specifies which EFS file system for which to retrieve the BackupPolicy. """ -function describe_backup_policy( - FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() -) - return efs( +describe_backup_policy(FileSystemId; aws_config::AbstractAWSConfig=current_aws_config()) = + efs( "GET", "/2015-02-01/file-systems/$(FileSystemId)/backup-policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_backup_policy( FileSystemId, params::AbstractDict{String}; @@ -800,16 +764,14 @@ permissions for the elasticfilesystem:DescribeFileSystemPolicy action. - `file_system_id`: Specifies which EFS file system to retrieve the FileSystemPolicy for. """ -function describe_file_system_policy( +describe_file_system_policy( FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "GET", + "/2015-02-01/file-systems/$(FileSystemId)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "GET", - "/2015-02-01/file-systems/$(FileSystemId)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_file_system_policy( FileSystemId, params::AbstractDict{String}; @@ -857,14 +819,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response (integer). This number is automatically set to 100. The response is paginated at 100 per page if you have more than 100 file systems. """ -function describe_file_systems(; aws_config::AbstractAWSConfig=current_aws_config()) - return efs( - "GET", - "/2015-02-01/file-systems"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_file_systems(; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "GET", + "/2015-02-01/file-systems"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_file_systems( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -892,16 +852,14 @@ elasticfilesystem:DescribeLifecycleConfiguration operation. to retrieve (String). """ -function describe_lifecycle_configuration( +describe_lifecycle_configuration( FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "GET", + "/2015-02-01/file-systems/$(FileSystemId)/lifecycle-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "GET", - "/2015-02-01/file-systems/$(FileSystemId)/lifecycle-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_lifecycle_configuration( FileSystemId, params::AbstractDict{String}; @@ -931,16 +889,14 @@ target's network interface. - `mount_target_id`: The ID of the mount target whose security groups you want to retrieve. """ -function describe_mount_target_security_groups( +describe_mount_target_security_groups( MountTargetId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "GET", + "/2015-02-01/mount-targets/$(MountTargetId)/security-groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "GET", - "/2015-02-01/mount-targets/$(MountTargetId)/security-groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_mount_target_security_groups( MountTargetId, params::AbstractDict{String}; @@ -984,14 +940,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (String). It must be included in your request if FileSystemId is not included. Accepts either a mount target ID or ARN as input. """ -function describe_mount_targets(; aws_config::AbstractAWSConfig=current_aws_config()) - return efs( - "GET", - "/2015-02-01/mount-targets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_mount_targets(; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "GET", + "/2015-02-01/mount-targets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_mount_targets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1021,16 +975,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: NextToken is present if the response is paginated. You can use NextToken in a subsequent request to fetch the next page of output. """ -function describe_replication_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return efs( +describe_replication_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + efs( "GET", "/2015-02-01/file-systems/replication-configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_replication_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1066,14 +1017,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. Currently, this number is automatically set to 100, and other values are ignored. The response is paginated at 100 per page if you have more than 100 tags. """ -function describe_tags(FileSystemId; aws_config::AbstractAWSConfig=current_aws_config()) - return efs( - "GET", - "/2015-02-01/tags/$(FileSystemId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_tags(FileSystemId; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "GET", + "/2015-02-01/tags/$(FileSystemId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_tags( FileSystemId, params::AbstractDict{String}; @@ -1107,16 +1056,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: (Optional) You can use NextToken in a subsequent request to fetch the next page of access point descriptions if the response payload was paginated. """ -function list_tags_for_resource( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return efs( +list_tags_for_resource(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + efs( "GET", "/2015-02-01/resource-tags/$(ResourceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceId, params::AbstractDict{String}; @@ -1152,16 +1098,14 @@ target's network interface. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SecurityGroups"`: An array of up to five VPC security group IDs. """ -function modify_mount_target_security_groups( +modify_mount_target_security_groups( MountTargetId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "PUT", + "/2015-02-01/mount-targets/$(MountTargetId)/security-groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "PUT", - "/2015-02-01/mount-targets/$(MountTargetId)/security-groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_mount_target_security_groups( MountTargetId, params::AbstractDict{String}; @@ -1197,17 +1141,15 @@ receive an error and must use short IDs for file system and mount target resourc if you receive an error and must use short IDs for file system and mount target resources. """ -function put_account_preferences( +put_account_preferences( ResourceIdType; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "PUT", + "/2015-02-01/account-preferences", + Dict{String,Any}("ResourceIdType" => ResourceIdType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "PUT", - "/2015-02-01/account-preferences", - Dict{String,Any}("ResourceIdType" => ResourceIdType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_preferences( ResourceIdType, params::AbstractDict{String}; @@ -1236,17 +1178,15 @@ of the file system. - `file_system_id`: Specifies which EFS file system to update the backup policy for. """ -function put_backup_policy( +put_backup_policy( BackupPolicy, FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "PUT", + "/2015-02-01/file-systems/$(FileSystemId)/backup-policy", + Dict{String,Any}("BackupPolicy" => BackupPolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "PUT", - "/2015-02-01/file-systems/$(FileSystemId)/backup-policy", - Dict{String,Any}("BackupPolicy" => BackupPolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_backup_policy( BackupPolicy, FileSystemId, @@ -1294,17 +1234,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that is making the request from making subsequent PutFileSystemPolicy requests on this file system. The default value is False. """ -function put_file_system_policy( +put_file_system_policy( FileSystemId, Policy; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "PUT", + "/2015-02-01/file-systems/$(FileSystemId)/policy", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "PUT", - "/2015-02-01/file-systems/$(FileSystemId)/policy", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_file_system_policy( FileSystemId, Policy, @@ -1373,17 +1311,15 @@ Management Service permissions as when you created the encrypted file system. section for more information. """ -function put_lifecycle_configuration( +put_lifecycle_configuration( FileSystemId, LifecyclePolicies; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "PUT", + "/2015-02-01/file-systems/$(FileSystemId)/lifecycle-configuration", + Dict{String,Any}("LifecyclePolicies" => LifecyclePolicies); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "PUT", - "/2015-02-01/file-systems/$(FileSystemId)/lifecycle-configuration", - Dict{String,Any}("LifecyclePolicies" => LifecyclePolicies); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_lifecycle_configuration( FileSystemId, LifecyclePolicies, @@ -1416,15 +1352,13 @@ elasticfilesystem:TagResource action. - `tags`: An array of Tag objects to add. Each Tag object is a key-value pair. """ -function tag_resource(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return efs( - "POST", - "/2015-02-01/resource-tags/$(ResourceId)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "POST", + "/2015-02-01/resource-tags/$(ResourceId)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceId, Tags, @@ -1454,17 +1388,14 @@ elasticfilesystem:UntagResource action. specified EFS resource. """ -function untag_resource( - ResourceId, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return efs( +untag_resource(ResourceId, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + efs( "DELETE", "/2015-02-01/resource-tags/$(ResourceId)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceId, tagKeys, @@ -1502,16 +1433,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are changing the ThroughputMode to provisioned, you must also set a value for ProvisionedThroughputInMibps. """ -function update_file_system( - FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +update_file_system(FileSystemId; aws_config::AbstractAWSConfig=current_aws_config()) = efs( + "PUT", + "/2015-02-01/file-systems/$(FileSystemId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "PUT", - "/2015-02-01/file-systems/$(FileSystemId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_file_system( FileSystemId, params::AbstractDict{String}; @@ -1549,16 +1476,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys file system's replication overwrite protection is re-enabled, the file system becomes writeable. """ -function update_file_system_protection( +update_file_system_protection( FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = efs( + "PUT", + "/2015-02-01/file-systems/$(FileSystemId)/protection"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return efs( - "PUT", - "/2015-02-01/file-systems/$(FileSystemId)/protection"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_file_system_protection( FileSystemId, params::AbstractDict{String}; diff --git a/src/services/eks.jl b/src/services/eks.jl index 47ec23bf0..3845cb09b 100644 --- a/src/services/eks.jl +++ b/src/services/eks.jl @@ -22,21 +22,19 @@ access entries in the Amazon EKS User Guide. AccessEntry that you're associating the access policy to. """ -function associate_access_policy( +associate_access_policy( accessScope, name, policyArn, principalArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = eks( + "POST", + "/clusters/$(name)/access-entries/$(principalArn)/access-policies", + Dict{String,Any}("accessScope" => accessScope, "policyArn" => policyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/access-entries/$(principalArn)/access-policies", - Dict{String,Any}("accessScope" => accessScope, "policyArn" => policyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_access_policy( accessScope, name, @@ -78,19 +76,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientRequestToken"`: A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. """ -function associate_encryption_config( +associate_encryption_config( encryptionConfig, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/encryption-config/associate", + Dict{String,Any}( + "encryptionConfig" => encryptionConfig, "clientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/encryption-config/associate", - Dict{String,Any}( - "encryptionConfig" => encryptionConfig, "clientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_encryption_config( encryptionConfig, name, @@ -138,17 +134,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. """ -function associate_identity_provider_config( +associate_identity_provider_config( name, oidc; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/identity-provider-configs/associate", + Dict{String,Any}("oidc" => oidc, "clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/identity-provider-configs/associate", - Dict{String,Any}("oidc" => oidc, "clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_identity_provider_config( name, oidc, @@ -231,19 +225,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value Amazon EKS specifies for you, or constraints before specifying your own username, see Creating access entries in the Amazon EKS User Guide. """ -function create_access_entry( +create_access_entry( name, principalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/access-entries", + Dict{String,Any}( + "principalArn" => principalArn, "clientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/access-entries", - Dict{String,Any}( - "principalArn" => principalArn, "clientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_entry( name, principalArn, @@ -317,15 +309,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. """ -function create_addon(addonName, name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "POST", - "/clusters/$(name)/addons", - Dict{String,Any}("addonName" => addonName, "clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_addon(addonName, name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "POST", + "/clusters/$(name)/addons", + Dict{String,Any}("addonName" => addonName, "clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_addon( addonName, name, @@ -394,6 +384,10 @@ Launching Amazon EKS nodes in the Amazon EKS User Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accessConfig"`: The access configuration for the cluster. +- `"bootstrapSelfManagedAddons"`: If you set this value to False when creating a cluster, + the default networking add-ons will not be installed. The default networking addons include + vpc-cni, coredns, and kube-proxy. Use this option when you plan to install third-party + alternative add-ons or self-manage the default networking add-ons. - `"clientRequestToken"`: A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. - `"encryptionConfig"`: The encryption configuration for the cluster. @@ -411,26 +405,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. +- `"upgradePolicy"`: New clusters, by default, have extended support enabled. You can + disable extended support when creating a cluster by setting this value to STANDARD. - `"version"`: The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used. The default version might not be the latest version available. """ -function create_cluster( +create_cluster( name, resourcesVpcConfig, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters", + Dict{String,Any}( + "name" => name, + "resourcesVpcConfig" => resourcesVpcConfig, + "roleArn" => roleArn, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters", - Dict{String,Any}( - "name" => name, - "resourcesVpcConfig" => resourcesVpcConfig, - "roleArn" => roleArn, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster( name, resourcesVpcConfig, @@ -492,19 +486,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Each tag consists of a key and an optional value. Subscription tags don't propagate to any other resources associated with the subscription. """ -function create_eks_anywhere_subscription( +create_eks_anywhere_subscription( name, term; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/eks-anywhere-subscriptions", + Dict{String,Any}( + "name" => name, "term" => term, "clientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/eks-anywhere-subscriptions", - Dict{String,Any}( - "name" => name, "term" => term, "clientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_eks_anywhere_subscription( name, term, @@ -576,24 +568,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. """ -function create_fargate_profile( +create_fargate_profile( fargateProfileName, name, podExecutionRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = eks( + "POST", + "/clusters/$(name)/fargate-profiles", + Dict{String,Any}( + "fargateProfileName" => fargateProfileName, + "podExecutionRoleArn" => podExecutionRoleArn, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/fargate-profiles", - Dict{String,Any}( - "fargateProfileName" => fargateProfileName, - "podExecutionRoleArn" => podExecutionRoleArn, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fargate_profile( fargateProfileName, name, @@ -716,26 +706,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide. """ -function create_nodegroup( +create_nodegroup( name, nodeRole, nodegroupName, subnets; aws_config::AbstractAWSConfig=current_aws_config(), +) = eks( + "POST", + "/clusters/$(name)/node-groups", + Dict{String,Any}( + "nodeRole" => nodeRole, + "nodegroupName" => nodegroupName, + "subnets" => subnets, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/node-groups", - Dict{String,Any}( - "nodeRole" => nodeRole, - "nodegroupName" => nodegroupName, - "subnets" => subnets, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_nodegroup( name, nodeRole, @@ -809,26 +797,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit. """ -function create_pod_identity_association( +create_pod_identity_association( name, namespace, roleArn, serviceAccount; aws_config::AbstractAWSConfig=current_aws_config(), +) = eks( + "POST", + "/clusters/$(name)/pod-identity-associations", + Dict{String,Any}( + "namespace" => namespace, + "roleArn" => roleArn, + "serviceAccount" => serviceAccount, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/pod-identity-associations", - Dict{String,Any}( - "namespace" => namespace, - "roleArn" => roleArn, - "serviceAccount" => serviceAccount, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pod_identity_association( name, namespace, @@ -870,16 +856,14 @@ recreate it. - `principal_arn`: The ARN of the IAM principal for the AccessEntry. """ -function delete_access_entry( +delete_access_entry( name, principalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "DELETE", + "/clusters/$(name)/access-entries/$(principalArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "DELETE", - "/clusters/$(name)/access-entries/$(principalArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_entry( name, principalArn, @@ -913,14 +897,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon EKS stops managing any settings for the add-on. If an IAM account is associated with the add-on, it isn't removed. """ -function delete_addon(addonName, name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "DELETE", - "/clusters/$(name)/addons/$(addonName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_addon(addonName, name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "DELETE", + "/clusters/$(name)/addons/$(addonName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_addon( addonName, name, @@ -952,14 +934,12 @@ information, see DeleteNodgroup and DeleteFargateProfile. - `name`: The name of the cluster to delete. """ -function delete_cluster(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "DELETE", - "/clusters/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_cluster(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "DELETE", + "/clusters/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_cluster( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -985,16 +965,13 @@ a ticket in the Amazon Web Services Support Center. - `id`: The ID of the subscription. """ -function delete_eks_anywhere_subscription( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return eks( +delete_eks_anywhere_subscription(id; aws_config::AbstractAWSConfig=current_aws_config()) = + eks( "DELETE", "/eks-anywhere-subscriptions/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_eks_anywhere_subscription( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1023,16 +1000,14 @@ Fargate profile to finish deleting before you can delete any other profiles in t - `name`: The name of your cluster. """ -function delete_fargate_profile( +delete_fargate_profile( fargateProfileName, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "DELETE", + "/clusters/$(name)/fargate-profiles/$(fargateProfileName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "DELETE", - "/clusters/$(name)/fargate-profiles/$(fargateProfileName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_fargate_profile( fargateProfileName, name, @@ -1059,16 +1034,13 @@ Deletes a managed node group. - `nodegroup_name`: The name of the node group to delete. """ -function delete_nodegroup( - name, nodegroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return eks( +delete_nodegroup(name, nodegroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + eks( "DELETE", "/clusters/$(name)/node-groups/$(nodegroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_nodegroup( name, nodegroupName, @@ -1098,16 +1070,14 @@ console. - `name`: The cluster name that """ -function delete_pod_identity_association( +delete_pod_identity_association( associationId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "DELETE", + "/clusters/$(name)/pod-identity-associations/$(associationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "DELETE", - "/clusters/$(name)/pod-identity-associations/$(associationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_pod_identity_association( associationId, name, @@ -1135,14 +1105,12 @@ Amazon EKS Connector. - `name`: The name of the connected cluster to deregister. """ -function deregister_cluster(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "DELETE", - "/cluster-registrations/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +deregister_cluster(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "DELETE", + "/cluster-registrations/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function deregister_cluster( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1166,16 +1134,14 @@ Describes an access entry. - `principal_arn`: The ARN of the IAM principal for the AccessEntry. """ -function describe_access_entry( +describe_access_entry( name, principalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "GET", + "/clusters/$(name)/access-entries/$(principalArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "GET", - "/clusters/$(name)/access-entries/$(principalArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_access_entry( name, principalArn, @@ -1203,14 +1169,12 @@ Describes an Amazon EKS add-on. - `name`: The name of your cluster. """ -function describe_addon(addonName, name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/clusters/$(name)/addons/$(addonName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_addon(addonName, name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/clusters/$(name)/addons/$(addonName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_addon( addonName, name, @@ -1239,17 +1203,15 @@ Returns configuration options. returned by DescribeAddonVersions . """ -function describe_addon_configuration( +describe_addon_configuration( addonName, addonVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "GET", + "/addons/configuration-schemas", + Dict{String,Any}("addonName" => addonName, "addonVersion" => addonVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "GET", - "/addons/configuration-schemas", - Dict{String,Any}("addonName" => addonName, "addonVersion" => addonVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_addon_configuration( addonName, addonVersion, @@ -1301,14 +1263,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"types"`: The type of the add-on. For valid types, don't specify a value for this property. """ -function describe_addon_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/addons/supported-versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_addon_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/addons/supported-versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_addon_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1335,11 +1295,8 @@ available until the cluster reaches the ACTIVE state. - `name`: The name of your cluster. """ -function describe_cluster(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", "/clusters/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_cluster(name; aws_config::AbstractAWSConfig=current_aws_config()) = + eks("GET", "/clusters/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_cluster( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1362,16 +1319,13 @@ Returns descriptive information about a subscription. - `id`: The ID of the subscription. """ -function describe_eks_anywhere_subscription( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return eks( +describe_eks_anywhere_subscription(id; aws_config::AbstractAWSConfig=current_aws_config()) = + eks( "GET", "/eks-anywhere-subscriptions/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_eks_anywhere_subscription( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1395,16 +1349,14 @@ Describes an Fargate profile. - `name`: The name of your cluster. """ -function describe_fargate_profile( +describe_fargate_profile( fargateProfileName, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "GET", + "/clusters/$(name)/fargate-profiles/$(fargateProfileName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "GET", - "/clusters/$(name)/fargate-profiles/$(fargateProfileName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fargate_profile( fargateProfileName, name, @@ -1431,17 +1383,15 @@ Describes an identity provider configuration. - `name`: The name of your cluster. """ -function describe_identity_provider_config( +describe_identity_provider_config( identityProviderConfig, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/identity-provider-configs/describe", + Dict{String,Any}("identityProviderConfig" => identityProviderConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/identity-provider-configs/describe", - Dict{String,Any}("identityProviderConfig" => identityProviderConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_identity_provider_config( identityProviderConfig, name, @@ -1474,14 +1424,12 @@ Returns details about an insight that you specify using its ID. - `name`: The name of the cluster to describe the insight for. """ -function describe_insight(id, name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/clusters/$(name)/insights/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_insight(id, name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/clusters/$(name)/insights/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_insight( id, name, @@ -1508,16 +1456,14 @@ Describes a managed node group. - `nodegroup_name`: The name of the node group to describe. """ -function describe_nodegroup( +describe_nodegroup( name, nodegroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "GET", + "/clusters/$(name)/node-groups/$(nodegroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "GET", - "/clusters/$(name)/node-groups/$(nodegroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_nodegroup( name, nodegroupName, @@ -1548,16 +1494,14 @@ account. - `name`: The name of the cluster that the association is in. """ -function describe_pod_identity_association( +describe_pod_identity_association( associationId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "GET", + "/clusters/$(name)/pod-identity-associations/$(associationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "GET", - "/clusters/$(name)/pod-identity-associations/$(associationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_pod_identity_association( associationId, name, @@ -1592,14 +1536,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nodegroupName"`: The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a node group update. """ -function describe_update(name, updateId; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/clusters/$(name)/updates/$(updateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_update(name, updateId; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/clusters/$(name)/updates/$(updateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_update( name, updateId, @@ -1628,16 +1570,14 @@ Disassociates an access policy from an access entry. - `principal_arn`: The ARN of the IAM principal for the AccessEntry. """ -function disassociate_access_policy( +disassociate_access_policy( name, policyArn, principalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "DELETE", + "/clusters/$(name)/access-entries/$(principalArn)/access-policies/$(policyArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "DELETE", - "/clusters/$(name)/access-entries/$(principalArn)/access-policies/$(policyArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_access_policy( name, policyArn, @@ -1671,20 +1611,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientRequestToken"`: A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. """ -function disassociate_identity_provider_config( +disassociate_identity_provider_config( identityProviderConfig, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/identity-provider-configs/disassociate", + Dict{String,Any}( + "identityProviderConfig" => identityProviderConfig, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/identity-provider-configs/disassociate", - Dict{String,Any}( - "identityProviderConfig" => identityProviderConfig, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_identity_provider_config( identityProviderConfig, name, @@ -1735,14 +1673,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_access_entries(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/clusters/$(name)/access-entries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_access_entries(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/clusters/$(name)/access-entries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_access_entries( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1775,11 +1711,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_access_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", "/access-policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_access_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + eks("GET", "/access-policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_access_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1815,14 +1748,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_addons(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/clusters/$(name)/addons"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_addons(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/clusters/$(name)/addons"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_addons( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1859,16 +1790,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_associated_access_policies( +list_associated_access_policies( name, principalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "GET", + "/clusters/$(name)/access-entries/$(principalArn)/access-policies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "GET", - "/clusters/$(name)/access-entries/$(principalArn)/access-policies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_associated_access_policies( name, principalArn, @@ -1910,9 +1839,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return eks("GET", "/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + eks("GET", "/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1942,16 +1870,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. """ -function list_eks_anywhere_subscriptions(; - aws_config::AbstractAWSConfig=current_aws_config() +list_eks_anywhere_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/eks-anywhere-subscriptions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "GET", - "/eks-anywhere-subscriptions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_eks_anywhere_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1988,14 +1912,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_fargate_profiles(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/clusters/$(name)/fargate-profiles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_fargate_profiles(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/clusters/$(name)/fargate-profiles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_fargate_profiles( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2031,16 +1953,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_identity_provider_configs( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return eks( +list_identity_provider_configs(name; aws_config::AbstractAWSConfig=current_aws_config()) = + eks( "GET", "/clusters/$(name)/identity-provider-configs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_identity_provider_configs( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2078,14 +1997,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value to retrieve the next page of results. This value is null when there are no more results to return. """ -function list_insights(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "POST", - "/clusters/$(name)/insights"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_insights(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "POST", + "/clusters/$(name)/insights"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_insights( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2123,14 +2040,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes. """ -function list_nodegroups(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/clusters/$(name)/node-groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_nodegroups(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/clusters/$(name)/node-groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_nodegroups( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2171,16 +2086,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys items in a list and not for other programmatic purposes. - `"serviceAccount"`: The name of the Kubernetes service account that the associations use. """ -function list_pod_identity_associations( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return eks( +list_pod_identity_associations(name; aws_config::AbstractAWSConfig=current_aws_config()) = + eks( "GET", "/clusters/$(name)/pod-identity-associations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_pod_identity_associations( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2204,16 +2116,13 @@ List the tags for an Amazon EKS resource. for. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return eks( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + eks( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2254,14 +2163,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys programmatic purposes. - `"nodegroupName"`: The name of the Amazon EKS managed node group to list updates for. """ -function list_updates(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "GET", - "/clusters/$(name)/updates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_updates(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "GET", + "/clusters/$(name)/updates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_updates( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2301,21 +2208,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. """ -function register_cluster( +register_cluster( connectorConfig, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/cluster-registrations", + Dict{String,Any}( + "connectorConfig" => connectorConfig, + "name" => name, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/cluster-registrations", - Dict{String,Any}( - "connectorConfig" => connectorConfig, - "name" => name, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_cluster( connectorConfig, name, @@ -2360,15 +2265,13 @@ with the cluster. Amazon Web Services resources. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -2395,17 +2298,14 @@ Deletes specified tags from an Amazon EKS resource. - `tag_keys`: The keys of the tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return eks( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + eks( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2453,17 +2353,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value Amazon EKS specifies for you, or constraints before specifying your own username, see Creating access entries in the Amazon EKS User Guide. """ -function update_access_entry( +update_access_entry( name, principalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/access-entries/$(principalArn)", + Dict{String,Any}("clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/access-entries/$(principalArn)", - Dict{String,Any}("clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_access_entry( name, principalArn, @@ -2523,15 +2421,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide. """ -function update_addon(addonName, name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "POST", - "/clusters/$(name)/addons/$(addonName)/update", - Dict{String,Any}("clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_addon(addonName, name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "POST", + "/clusters/$(name)/addons/$(addonName)/update", + Dict{String,Any}("clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_addon( addonName, name, @@ -2591,16 +2487,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon EKS User Guide . CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing. - `"resourcesVpcConfig"`: +- `"upgradePolicy"`: You can enable or disable extended support for clusters currently on + standard support. You cannot disable extended support once it starts. You must enable + extended support before your cluster exits standard support. """ -function update_cluster_config(name; aws_config::AbstractAWSConfig=current_aws_config()) - return eks( - "POST", - "/clusters/$(name)/update-config", - Dict{String,Any}("clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_cluster_config(name; aws_config::AbstractAWSConfig=current_aws_config()) = eks( + "POST", + "/clusters/$(name)/update-config", + Dict{String,Any}("clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_cluster_config( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2640,17 +2537,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientRequestToken"`: A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. """ -function update_cluster_version( - name, version; aws_config::AbstractAWSConfig=current_aws_config() -) - return eks( +update_cluster_version(name, version; aws_config::AbstractAWSConfig=current_aws_config()) = + eks( "POST", "/clusters/$(name)/updates", Dict{String,Any}("version" => version, "clientRequestToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_cluster_version( name, version, @@ -2690,17 +2584,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientRequestToken"`: Unique, case-sensitive identifier to ensure the idempotency of the request. """ -function update_eks_anywhere_subscription( +update_eks_anywhere_subscription( autoRenew, id; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/eks-anywhere-subscriptions/$(id)", + Dict{String,Any}("autoRenew" => autoRenew, "clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/eks-anywhere-subscriptions/$(id)", - Dict{String,Any}("autoRenew" => autoRenew, "clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_eks_anywhere_subscription( autoRenew, id, @@ -2749,17 +2641,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys update. For more information, see Node taints on managed node groups. - `"updateConfig"`: The node group update configuration. """ -function update_nodegroup_config( +update_nodegroup_config( name, nodegroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/node-groups/$(nodegroupName)/update-config", + Dict{String,Any}("clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/node-groups/$(nodegroupName)/update-config", - Dict{String,Any}("clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_nodegroup_config( name, nodegroupName, @@ -2834,17 +2724,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide. """ -function update_nodegroup_version( +update_nodegroup_version( name, nodegroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/node-groups/$(nodegroupName)/update-version", + Dict{String,Any}("clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/node-groups/$(nodegroupName)/update-version", - Dict{String,Any}("clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_nodegroup_version( name, nodegroupName, @@ -2883,17 +2771,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the idempotency of the request. - `"roleArn"`: The new IAM role to change the """ -function update_pod_identity_association( +update_pod_identity_association( associationId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = eks( + "POST", + "/clusters/$(name)/pod-identity-associations/$(associationId)", + Dict{String,Any}("clientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks( - "POST", - "/clusters/$(name)/pod-identity-associations/$(associationId)", - Dict{String,Any}("clientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pod_identity_association( associationId, name, diff --git a/src/services/eks_auth.jl b/src/services/eks_auth.jl index 4c487ce03..f01f33ad3 100644 --- a/src/services/eks_auth.jl +++ b/src/services/eks_auth.jl @@ -19,17 +19,15 @@ automatically. - `token`: The token of the Kubernetes service account for the pod. """ -function assume_role_for_pod_identity( +assume_role_for_pod_identity( clusterName, token; aws_config::AbstractAWSConfig=current_aws_config() +) = eks_auth( + "POST", + "/clusters/$(clusterName)/assume-role-for-pod-identity", + Dict{String,Any}("token" => token); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eks_auth( - "POST", - "/clusters/$(clusterName)/assume-role-for-pod-identity", - Dict{String,Any}("token" => token); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_role_for_pod_identity( clusterName, token, diff --git a/src/services/elastic_beanstalk.jl b/src/services/elastic_beanstalk.jl index 2488b1cd2..c3269503e 100644 --- a/src/services/elastic_beanstalk.jl +++ b/src/services/elastic_beanstalk.jl @@ -17,11 +17,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnvironmentName"`: This specifies the name of the environment with the in-progress update that you want to cancel. """ -function abort_environment_update(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +abort_environment_update(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "AbortEnvironmentUpdate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function abort_environment_update( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -49,16 +48,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnvironmentId"`: The environment ID of the target environment. - `"EnvironmentName"`: The name of the target environment. """ -function apply_environment_managed_action( +apply_environment_managed_action( ActionId; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "ApplyEnvironmentManagedAction", + Dict{String,Any}("ActionId" => ActionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "ApplyEnvironmentManagedAction", - Dict{String,Any}("ActionId" => ActionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_environment_managed_action( ActionId, params::AbstractDict{String}; @@ -89,18 +86,16 @@ the AWS Elastic Beanstalk Developer Guide. the environment's operations role. """ -function associate_environment_operations_role( +associate_environment_operations_role( EnvironmentName, OperationsRole; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "AssociateEnvironmentOperationsRole", + Dict{String,Any}( + "EnvironmentName" => EnvironmentName, "OperationsRole" => OperationsRole + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "AssociateEnvironmentOperationsRole", - Dict{String,Any}( - "EnvironmentName" => EnvironmentName, "OperationsRole" => OperationsRole - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_environment_operations_role( EnvironmentName, OperationsRole, @@ -133,16 +128,13 @@ Checks if the specified CNAME is available. - `cnameprefix`: The prefix used when this CNAME is reserved. """ -function check_dnsavailability( - CNAMEPrefix; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +check_dnsavailability(CNAMEPrefix; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "CheckDNSAvailability", Dict{String,Any}("CNAMEPrefix" => CNAMEPrefix); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function check_dnsavailability( CNAMEPrefix, params::AbstractDict{String}; @@ -180,11 +172,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys environment manifest that specifies the name of the environment and the name of the solution stack to use, and optionally can specify environment links to create. """ -function compose_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +compose_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "ComposeEnvironments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function compose_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -215,16 +206,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags only to the application. Environments that you create in the application don't inherit the tags. """ -function create_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +create_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "CreateApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_application( ApplicationName, params::AbstractDict{String}; @@ -288,18 +276,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys applies these tags only to the application version. Environments that use the application version don't inherit the tags. """ -function create_application_version( +create_application_version( ApplicationName, VersionLabel; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "CreateApplicationVersion", + Dict{String,Any}("ApplicationName" => ApplicationName, "VersionLabel" => VersionLabel); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "CreateApplicationVersion", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "VersionLabel" => VersionLabel - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application_version( ApplicationName, VersionLabel, @@ -371,18 +355,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys name. - `"Tags"`: Specifies the tags applied to the configuration template. """ -function create_configuration_template( +create_configuration_template( ApplicationName, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "CreateConfigurationTemplate", + Dict{String,Any}("ApplicationName" => ApplicationName, "TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "CreateConfigurationTemplate", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "TemplateName" => TemplateName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_template( ApplicationName, TemplateName, @@ -461,16 +441,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionLabel"`: The name of the application version to deploy. Default: If not specified, Elastic Beanstalk attempts to deploy the sample application. """ -function create_environment( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +create_environment(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "CreateEnvironment", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_environment( ApplicationName, params::AbstractDict{String}; @@ -508,23 +485,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys applies these tags only to the platform version. Environments that you create using the platform version don't inherit the tags. """ -function create_platform_version( +create_platform_version( PlatformDefinitionBundle, PlatformName, PlatformVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_beanstalk( + "CreatePlatformVersion", + Dict{String,Any}( + "PlatformDefinitionBundle" => PlatformDefinitionBundle, + "PlatformName" => PlatformName, + "PlatformVersion" => PlatformVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "CreatePlatformVersion", - Dict{String,Any}( - "PlatformDefinitionBundle" => PlatformDefinitionBundle, - "PlatformName" => PlatformName, - "PlatformVersion" => PlatformVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_platform_version( PlatformDefinitionBundle, PlatformName, @@ -560,11 +535,10 @@ first time you create an environment in a region. If the storage location alread CreateStorageLocation still returns the bucket name but does not create a new bucket. """ -function create_storage_location(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +create_storage_location(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "CreateStorageLocation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function create_storage_location( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -592,16 +566,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TerminateEnvByForce"`: When set to true, running environments will be terminated before deleting the application. """ -function delete_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +delete_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DeleteApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( ApplicationName, params::AbstractDict{String}; @@ -636,18 +607,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Otherwise, the application version is deleted only from Elastic Beanstalk and the source bundle remains in Amazon S3. """ -function delete_application_version( +delete_application_version( ApplicationName, VersionLabel; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "DeleteApplicationVersion", + Dict{String,Any}("ApplicationName" => ApplicationName, "VersionLabel" => VersionLabel); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "DeleteApplicationVersion", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "VersionLabel" => VersionLabel - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_version( ApplicationName, VersionLabel, @@ -683,18 +650,14 @@ modify the environment's copy of the template without affecting the running envi - `template_name`: The name of the configuration template to delete. """ -function delete_configuration_template( +delete_configuration_template( ApplicationName, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "DeleteConfigurationTemplate", + Dict{String,Any}("ApplicationName" => ApplicationName, "TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "DeleteConfigurationTemplate", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "TemplateName" => TemplateName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_template( ApplicationName, TemplateName, @@ -733,18 +696,16 @@ until it is deleted with this action. - `environment_name`: The name of the environment to delete the draft configuration from. """ -function delete_environment_configuration( +delete_environment_configuration( ApplicationName, EnvironmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "DeleteEnvironmentConfiguration", + Dict{String,Any}( + "ApplicationName" => ApplicationName, "EnvironmentName" => EnvironmentName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "DeleteEnvironmentConfiguration", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "EnvironmentName" => EnvironmentName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment_configuration( ApplicationName, EnvironmentName, @@ -778,11 +739,10 @@ Deletes the specified version of a custom platform. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PlatformArn"`: The ARN of the version of the custom platform. """ -function delete_platform_version(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +delete_platform_version(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DeletePlatformVersion"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_platform_version( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -802,11 +762,10 @@ Returns attributes related to AWS Elastic Beanstalk that are associated with the AWS account. The result currently has one set of attributes—resource quotas. """ -function describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -836,13 +795,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified in the initial request. If no NextToken is specified, the first page is retrieved. - `"VersionLabels"`: Specify a version label to show a specific application version. """ -function describe_application_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +describe_application_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeApplicationVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_application_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -865,11 +823,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ApplicationNames"`: If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names. """ -function describe_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +describe_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -904,15 +861,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TemplateName"`: The name of the configuration template whose configuration options you want to describe. """ -function describe_configuration_options(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +describe_configuration_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeConfigurationOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_configuration_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -950,16 +904,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error. """ -function describe_configuration_settings( +describe_configuration_settings( ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "DescribeConfigurationSettings", + Dict{String,Any}("ApplicationName" => ApplicationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "DescribeConfigurationSettings", - Dict{String,Any}("ApplicationName" => ApplicationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_configuration_settings( ApplicationName, params::AbstractDict{String}; @@ -994,11 +946,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnvironmentName"`: Specify the environment by name. You must specify either this or an EnvironmentName, or both. """ -function describe_environment_health(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +describe_environment_health(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeEnvironmentHealth"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_environment_health( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1023,15 +974,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of items to return for a single request. - `"NextToken"`: The pagination token returned by a previous request. """ -function describe_environment_managed_action_history(; +describe_environment_managed_action_history(; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "DescribeEnvironmentManagedActionHistory"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "DescribeEnvironmentManagedActionHistory"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_environment_managed_action_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1055,15 +1004,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnvironmentName"`: The name of the target environment. - `"Status"`: To show only actions with a particular status, specify a status. """ -function describe_environment_managed_actions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +describe_environment_managed_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeEnvironmentManagedActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_environment_managed_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1090,15 +1036,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. """ -function describe_environment_resources(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +describe_environment_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeEnvironmentResources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_environment_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1138,11 +1081,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionLabel"`: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version. """ -function describe_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +describe_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeEnvironments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1189,11 +1131,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionLabel"`: If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this application version. """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( - "DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = elastic_beanstalk( + "DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1217,11 +1157,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EnvironmentName"`: Specify the AWS Elastic Beanstalk environment by name. - `"NextToken"`: Specify the pagination token returned by a previous call. """ -function describe_instances_health(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +describe_instances_health(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribeInstancesHealth"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_instances_health( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1245,11 +1184,10 @@ version and other platform-related terms, see AWS Elastic Beanstalk Platforms Gl Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PlatformArn"`: The ARN of the platform version. """ -function describe_platform_version(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +describe_platform_version(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "DescribePlatformVersion"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_platform_version( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1275,16 +1213,14 @@ the AWS Elastic Beanstalk Developer Guide. role. """ -function disassociate_environment_operations_role( +disassociate_environment_operations_role( EnvironmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "DisassociateEnvironmentOperationsRole", + Dict{String,Any}("EnvironmentName" => EnvironmentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "DisassociateEnvironmentOperationsRole", - Dict{String,Any}("EnvironmentName" => EnvironmentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_environment_operations_role( EnvironmentName, params::AbstractDict{String}; @@ -1310,15 +1246,12 @@ Returns a list of the available solution stack names, with the public version fi then in reverse chronological order. """ -function list_available_solution_stacks(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +list_available_solution_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "ListAvailableSolutionStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_available_solution_stacks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1356,11 +1289,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request. If no NextToken is specified, the first page is retrieved. """ -function list_platform_branches(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +list_platform_branches(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "ListPlatformBranches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_platform_branches( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1390,11 +1322,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request. If no NextToken is specified, the first page is retrieved. """ -function list_platform_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +list_platform_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "ListPlatformVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_platform_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1419,16 +1350,13 @@ details about resource tagging, see Tagging Application Resources. requested. Must be the ARN of an Elastic Beanstalk resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1460,11 +1388,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. """ -function rebuild_environment(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +rebuild_environment(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "RebuildEnvironment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function rebuild_environment( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1499,16 +1426,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. """ -function request_environment_info( - InfoType; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +request_environment_info(InfoType; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "RequestEnvironmentInfo", Dict{String,Any}("InfoType" => InfoType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function request_environment_info( InfoType, params::AbstractDict{String}; @@ -1540,11 +1464,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. """ -function restart_app_server(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +restart_app_server(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "RestartAppServer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function restart_app_server( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1574,16 +1497,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. """ -function retrieve_environment_info( - InfoType; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +retrieve_environment_info(InfoType; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "RetrieveEnvironmentInfo", Dict{String,Any}("InfoType" => InfoType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function retrieve_environment_info( InfoType, params::AbstractDict{String}; @@ -1623,11 +1543,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName. """ -function swap_environment_cnames(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +swap_environment_cnames(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "SwapEnvironmentCNAMEs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function swap_environment_cnames( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1662,11 +1581,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AWS resources continue to operate. For more information, see the AWS Elastic Beanstalk User Guide. Default: true Valid Values: true | false """ -function terminate_environment(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +terminate_environment(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "TerminateEnvironment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function terminate_environment( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1695,16 +1613,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A new description for the application. Default: If not specified, AWS Elastic Beanstalk does not update the description. """ -function update_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +update_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "UpdateApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( ApplicationName, params::AbstractDict{String}; @@ -1733,21 +1648,19 @@ Modifies lifecycle settings for an application. - `resource_lifecycle_config`: The lifecycle configuration. """ -function update_application_resource_lifecycle( +update_application_resource_lifecycle( ApplicationName, ResourceLifecycleConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_beanstalk( + "UpdateApplicationResourceLifecycle", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "ResourceLifecycleConfig" => ResourceLifecycleConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "UpdateApplicationResourceLifecycle", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "ResourceLifecycleConfig" => ResourceLifecycleConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application_resource_lifecycle( ApplicationName, ResourceLifecycleConfig, @@ -1790,18 +1703,14 @@ properties, specify an empty string. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A new description for this version. """ -function update_application_version( +update_application_version( ApplicationName, VersionLabel; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "UpdateApplicationVersion", + Dict{String,Any}("ApplicationName" => ApplicationName, "VersionLabel" => VersionLabel); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "UpdateApplicationVersion", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "VersionLabel" => VersionLabel - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application_version( ApplicationName, VersionLabel, @@ -1849,18 +1758,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OptionsToRemove"`: A list of configuration options to remove from the configuration set. Constraint: You can remove only UserDefined configuration options. """ -function update_configuration_template( +update_configuration_template( ApplicationName, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "UpdateConfigurationTemplate", + Dict{String,Any}("ApplicationName" => ApplicationName, "TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "UpdateConfigurationTemplate", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "TemplateName" => TemplateName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_template( ApplicationName, TemplateName, @@ -1931,11 +1836,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys application version to the environment. If no such application version is found, returns an InvalidParameterValue error. """ -function update_environment(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_beanstalk( +update_environment(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "UpdateEnvironment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_environment( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1970,16 +1874,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagsToRemove"`: A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored. Specify at least one of these parameters: TagsToAdd, TagsToRemove. """ -function update_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_beanstalk( +update_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_beanstalk( "UpdateTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2015,18 +1916,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TemplateName"`: The name of the configuration template to validate the settings against. Condition: You cannot specify both this and an environment name. """ -function validate_configuration_settings( +validate_configuration_settings( ApplicationName, OptionSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_beanstalk( + "ValidateConfigurationSettings", + Dict{String,Any}( + "ApplicationName" => ApplicationName, "OptionSettings" => OptionSettings + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_beanstalk( - "ValidateConfigurationSettings", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "OptionSettings" => OptionSettings - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_configuration_settings( ApplicationName, OptionSettings, diff --git a/src/services/elastic_inference.jl b/src/services/elastic_inference.jl index f93103726..311ec6d21 100644 --- a/src/services/elastic_inference.jl +++ b/src/services/elastic_inference.jl @@ -28,17 +28,15 @@ continue using the service. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"acceleratorTypes"`: The list of accelerator types to describe. """ -function describe_accelerator_offerings( +describe_accelerator_offerings( locationType; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_inference( + "POST", + "/describe-accelerator-offerings", + Dict{String,Any}("locationType" => locationType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_inference( - "POST", - "/describe-accelerator-offerings", - Dict{String,Any}("locationType" => locationType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_accelerator_offerings( locationType, params::AbstractDict{String}; @@ -69,14 +67,13 @@ who have used Amazon EI at least once during the past 30-day period are consider customers and will be able to continue using the service. """ -function describe_accelerator_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_inference( +describe_accelerator_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_inference( "GET", "/describe-accelerator-types"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_accelerator_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -115,14 +112,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the NextToken from a previously truncated response. """ -function describe_accelerators(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_inference( +describe_accelerators(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_inference( "POST", "/describe-accelerators"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_accelerators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -151,16 +147,13 @@ customers and will be able to continue using the service. - `resource_arn`: The ARN of the Elastic Inference Accelerator to list the tags for. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_inference( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_inference( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -192,15 +185,14 @@ customers and will be able to continue using the service. - `tags`: The tags to add to the Elastic Inference Accelerator. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_inference( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_inference( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -233,17 +225,14 @@ considered current customers and will be able to continue using the service. - `tag_keys`: The list of tags to remove from the Elastic Inference Accelerator. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_inference( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_inference( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/elastic_load_balancing.jl b/src/services/elastic_load_balancing.jl index 33070bebe..add633b3a 100644 --- a/src/services/elastic_load_balancing.jl +++ b/src/services/elastic_load_balancing.jl @@ -19,16 +19,13 @@ information, see Tag Your Classic Load Balancer in the Classic Load Balancers Gu - `tags`: The tags. """ -function add_tags( - LoadBalancerNames, Tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing( +add_tags(LoadBalancerNames, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing( "AddTags", Dict{String,Any}("LoadBalancerNames" => LoadBalancerNames, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_tags( LoadBalancerNames, Tags, @@ -64,18 +61,16 @@ Balancers Guide. Note that you cannot specify the name of the security group. """ -function apply_security_groups_to_load_balancer( +apply_security_groups_to_load_balancer( LoadBalancerName, SecurityGroups; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "ApplySecurityGroupsToLoadBalancer", + Dict{String,Any}( + "LoadBalancerName" => LoadBalancerName, "SecurityGroups" => SecurityGroups + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "ApplySecurityGroupsToLoadBalancer", - Dict{String,Any}( - "LoadBalancerName" => LoadBalancerName, "SecurityGroups" => SecurityGroups - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_security_groups_to_load_balancer( LoadBalancerName, SecurityGroups, @@ -114,16 +109,14 @@ Balancers Guide. Zone. """ -function attach_load_balancer_to_subnets( +attach_load_balancer_to_subnets( LoadBalancerName, Subnets; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "AttachLoadBalancerToSubnets", + Dict{String,Any}("LoadBalancerName" => LoadBalancerName, "Subnets" => Subnets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "AttachLoadBalancerToSubnets", - Dict{String,Any}("LoadBalancerName" => LoadBalancerName, "Subnets" => Subnets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_load_balancer_to_subnets( LoadBalancerName, Subnets, @@ -159,18 +152,14 @@ Classic Load Balancers Guide. - `load_balancer_name`: The name of the load balancer. """ -function configure_health_check( +configure_health_check( HealthCheck, LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "ConfigureHealthCheck", + Dict{String,Any}("HealthCheck" => HealthCheck, "LoadBalancerName" => LoadBalancerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "ConfigureHealthCheck", - Dict{String,Any}( - "HealthCheck" => HealthCheck, "LoadBalancerName" => LoadBalancerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function configure_health_check( HealthCheck, LoadBalancerName, @@ -215,23 +204,21 @@ Application-Controlled Session Stickiness in the Classic Load Balancers Guide. for this load balancer. """ -function create_app_cookie_stickiness_policy( +create_app_cookie_stickiness_policy( CookieName, LoadBalancerName, PolicyName; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing( + "CreateAppCookieStickinessPolicy", + Dict{String,Any}( + "CookieName" => CookieName, + "LoadBalancerName" => LoadBalancerName, + "PolicyName" => PolicyName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "CreateAppCookieStickinessPolicy", - Dict{String,Any}( - "CookieName" => CookieName, - "LoadBalancerName" => LoadBalancerName, - "PolicyName" => PolicyName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_cookie_stickiness_policy( CookieName, LoadBalancerName, @@ -285,18 +272,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session. """ -function create_lbcookie_stickiness_policy( +create_lbcookie_stickiness_policy( LoadBalancerName, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "CreateLBCookieStickinessPolicy", + Dict{String,Any}("LoadBalancerName" => LoadBalancerName, "PolicyName" => PolicyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "CreateLBCookieStickinessPolicy", - Dict{String,Any}( - "LoadBalancerName" => LoadBalancerName, "PolicyName" => PolicyName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lbcookie_stickiness_policy( LoadBalancerName, PolicyName, @@ -357,16 +340,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide. """ -function create_load_balancer( +create_load_balancer( Listeners, LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "CreateLoadBalancer", + Dict{String,Any}("Listeners" => Listeners, "LoadBalancerName" => LoadBalancerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "CreateLoadBalancer", - Dict{String,Any}("Listeners" => Listeners, "LoadBalancerName" => LoadBalancerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_load_balancer( Listeners, LoadBalancerName, @@ -403,16 +384,14 @@ Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide. - `load_balancer_name`: The name of the load balancer. """ -function create_load_balancer_listeners( +create_load_balancer_listeners( Listeners, LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "CreateLoadBalancerListeners", + Dict{String,Any}("Listeners" => Listeners, "LoadBalancerName" => LoadBalancerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "CreateLoadBalancerListeners", - Dict{String,Any}("Listeners" => Listeners, "LoadBalancerName" => LoadBalancerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_load_balancer_listeners( Listeners, LoadBalancerName, @@ -454,23 +433,21 @@ or the application server, depending on the policy type. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PolicyAttributes"`: The policy attributes. """ -function create_load_balancer_policy( +create_load_balancer_policy( LoadBalancerName, PolicyName, PolicyTypeName; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing( + "CreateLoadBalancerPolicy", + Dict{String,Any}( + "LoadBalancerName" => LoadBalancerName, + "PolicyName" => PolicyName, + "PolicyTypeName" => PolicyTypeName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "CreateLoadBalancerPolicy", - Dict{String,Any}( - "LoadBalancerName" => LoadBalancerName, - "PolicyName" => PolicyName, - "PolicyTypeName" => PolicyTypeName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_load_balancer_policy( LoadBalancerName, PolicyName, @@ -511,16 +488,13 @@ DeleteLoadBalancer still succeeds. - `load_balancer_name`: The name of the load balancer. """ -function delete_load_balancer( - LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing( +delete_load_balancer(LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing( "DeleteLoadBalancer", Dict{String,Any}("LoadBalancerName" => LoadBalancerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_load_balancer( LoadBalancerName, params::AbstractDict{String}; @@ -549,18 +523,16 @@ Deletes the specified listeners from the specified load balancer. - `load_balancer_ports`: The client port numbers of the listeners. """ -function delete_load_balancer_listeners( +delete_load_balancer_listeners( LoadBalancerName, LoadBalancerPorts; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "DeleteLoadBalancerListeners", + Dict{String,Any}( + "LoadBalancerName" => LoadBalancerName, "LoadBalancerPorts" => LoadBalancerPorts + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "DeleteLoadBalancerListeners", - Dict{String,Any}( - "LoadBalancerName" => LoadBalancerName, "LoadBalancerPorts" => LoadBalancerPorts - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_load_balancer_listeners( LoadBalancerName, LoadBalancerPorts, @@ -596,18 +568,14 @@ enabled for any listeners. - `policy_name`: The name of the policy. """ -function delete_load_balancer_policy( +delete_load_balancer_policy( LoadBalancerName, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "DeleteLoadBalancerPolicy", + Dict{String,Any}("LoadBalancerName" => LoadBalancerName, "PolicyName" => PolicyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "DeleteLoadBalancerPolicy", - Dict{String,Any}( - "LoadBalancerName" => LoadBalancerName, "PolicyName" => PolicyName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_load_balancer_policy( LoadBalancerName, PolicyName, @@ -645,16 +613,14 @@ Balancers Guide. - `load_balancer_name`: The name of the load balancer. """ -function deregister_instances_from_load_balancer( +deregister_instances_from_load_balancer( Instances, LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "DeregisterInstancesFromLoadBalancer", + Dict{String,Any}("Instances" => Instances, "LoadBalancerName" => LoadBalancerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "DeregisterInstancesFromLoadBalancer", - Dict{String,Any}("Instances" => Instances, "LoadBalancerName" => LoadBalancerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_instances_from_load_balancer( Instances, LoadBalancerName, @@ -690,11 +656,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call.) - `"PageSize"`: The maximum number of results to return with this call. """ -function describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing( +describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing( "DescribeAccountLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -723,16 +688,14 @@ terminated instances is not returned. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Instances"`: The IDs of the instances. """ -function describe_instance_health( +describe_instance_health( LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "DescribeInstanceHealth", + Dict{String,Any}("LoadBalancerName" => LoadBalancerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "DescribeInstanceHealth", - Dict{String,Any}("LoadBalancerName" => LoadBalancerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_health( LoadBalancerName, params::AbstractDict{String}; @@ -760,16 +723,14 @@ Describes the attributes for the specified load balancer. - `load_balancer_name`: The name of the load balancer. """ -function describe_load_balancer_attributes( +describe_load_balancer_attributes( LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "DescribeLoadBalancerAttributes", + Dict{String,Any}("LoadBalancerName" => LoadBalancerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "DescribeLoadBalancerAttributes", - Dict{String,Any}("LoadBalancerName" => LoadBalancerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_load_balancer_attributes( LoadBalancerName, params::AbstractDict{String}; @@ -803,15 +764,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LoadBalancerName"`: The name of the load balancer. - `"PolicyNames"`: The names of the policies. """ -function describe_load_balancer_policies(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing( +describe_load_balancer_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing( "DescribeLoadBalancerPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_load_balancer_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -840,15 +798,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyTypeNames"`: The names of the policy types. If no names are specified, describes all policy types defined by Elastic Load Balancing. """ -function describe_load_balancer_policy_types(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing( +describe_load_balancer_policy_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing( "DescribeLoadBalancerPolicyTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_load_balancer_policy_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -875,11 +830,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of results to return with this call (a number from 1 to 400). The default is 400. """ -function describe_load_balancers(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing( +describe_load_balancers(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing( "DescribeLoadBalancers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_load_balancers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -901,16 +855,13 @@ Describes the tags associated with the specified load balancers. - `load_balancer_names`: The names of the load balancers. """ -function describe_tags( - LoadBalancerNames; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing( +describe_tags(LoadBalancerNames; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing( "DescribeTags", Dict{String,Any}("LoadBalancerNames" => LoadBalancerNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_tags( LoadBalancerNames, params::AbstractDict{String}; @@ -942,16 +893,14 @@ among the remaining routable subnets. - `subnets`: The IDs of the subnets. """ -function detach_load_balancer_from_subnets( +detach_load_balancer_from_subnets( LoadBalancerName, Subnets; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "DetachLoadBalancerFromSubnets", + Dict{String,Any}("LoadBalancerName" => LoadBalancerName, "Subnets" => Subnets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "DetachLoadBalancerFromSubnets", - Dict{String,Any}("LoadBalancerName" => LoadBalancerName, "Subnets" => Subnets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_load_balancer_from_subnets( LoadBalancerName, Subnets, @@ -992,18 +941,16 @@ Availability Zones in the Classic Load Balancers Guide. - `load_balancer_name`: The name of the load balancer. """ -function disable_availability_zones_for_load_balancer( +disable_availability_zones_for_load_balancer( AvailabilityZones, LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "DisableAvailabilityZonesForLoadBalancer", + Dict{String,Any}( + "AvailabilityZones" => AvailabilityZones, "LoadBalancerName" => LoadBalancerName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "DisableAvailabilityZonesForLoadBalancer", - Dict{String,Any}( - "AvailabilityZones" => AvailabilityZones, "LoadBalancerName" => LoadBalancerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_availability_zones_for_load_balancer( AvailabilityZones, LoadBalancerName, @@ -1043,18 +990,16 @@ Remove Availability Zones in the Classic Load Balancers Guide. - `load_balancer_name`: The name of the load balancer. """ -function enable_availability_zones_for_load_balancer( +enable_availability_zones_for_load_balancer( AvailabilityZones, LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "EnableAvailabilityZonesForLoadBalancer", + Dict{String,Any}( + "AvailabilityZones" => AvailabilityZones, "LoadBalancerName" => LoadBalancerName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "EnableAvailabilityZonesForLoadBalancer", - Dict{String,Any}( - "AvailabilityZones" => AvailabilityZones, "LoadBalancerName" => LoadBalancerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_availability_zones_for_load_balancer( AvailabilityZones, LoadBalancerName, @@ -1094,21 +1039,19 @@ Load Balancing Connection Draining Access Logs Idle Connection Timeo - `load_balancer_name`: The name of the load balancer. """ -function modify_load_balancer_attributes( +modify_load_balancer_attributes( LoadBalancerAttributes, LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing( + "ModifyLoadBalancerAttributes", + Dict{String,Any}( + "LoadBalancerAttributes" => LoadBalancerAttributes, + "LoadBalancerName" => LoadBalancerName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "ModifyLoadBalancerAttributes", - Dict{String,Any}( - "LoadBalancerAttributes" => LoadBalancerAttributes, - "LoadBalancerName" => LoadBalancerName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_load_balancer_attributes( LoadBalancerAttributes, LoadBalancerName, @@ -1156,16 +1099,14 @@ Instances in the Classic Load Balancers Guide. - `load_balancer_name`: The name of the load balancer. """ -function register_instances_with_load_balancer( +register_instances_with_load_balancer( Instances, LoadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing( + "RegisterInstancesWithLoadBalancer", + Dict{String,Any}("Instances" => Instances, "LoadBalancerName" => LoadBalancerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "RegisterInstancesWithLoadBalancer", - Dict{String,Any}("Instances" => Instances, "LoadBalancerName" => LoadBalancerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_instances_with_load_balancer( Instances, LoadBalancerName, @@ -1200,16 +1141,13 @@ Removes one or more tags from the specified load balancer. - `tags`: The list of tag keys to remove. """ -function remove_tags( - LoadBalancerNames, Tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing( +remove_tags(LoadBalancerNames, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing( "RemoveTags", Dict{String,Any}("LoadBalancerNames" => LoadBalancerNames, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_tags( LoadBalancerNames, Tags, @@ -1245,23 +1183,21 @@ the SSL Certificate for Your Load Balancer in the Classic Load Balancers Guide. - `sslcertificate_id`: The Amazon Resource Name (ARN) of the SSL certificate. """ -function set_load_balancer_listener_sslcertificate( +set_load_balancer_listener_sslcertificate( LoadBalancerName, LoadBalancerPort, SSLCertificateId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing( + "SetLoadBalancerListenerSSLCertificate", + Dict{String,Any}( + "LoadBalancerName" => LoadBalancerName, + "LoadBalancerPort" => LoadBalancerPort, + "SSLCertificateId" => SSLCertificateId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "SetLoadBalancerListenerSSLCertificate", - Dict{String,Any}( - "LoadBalancerName" => LoadBalancerName, - "LoadBalancerPort" => LoadBalancerPort, - "SSLCertificateId" => SSLCertificateId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_load_balancer_listener_sslcertificate( LoadBalancerName, LoadBalancerPort, @@ -1310,23 +1246,21 @@ Balancers Guide. are removed from the EC2 instance. """ -function set_load_balancer_policies_for_backend_server( +set_load_balancer_policies_for_backend_server( InstancePort, LoadBalancerName, PolicyNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing( + "SetLoadBalancerPoliciesForBackendServer", + Dict{String,Any}( + "InstancePort" => InstancePort, + "LoadBalancerName" => LoadBalancerName, + "PolicyNames" => PolicyNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "SetLoadBalancerPoliciesForBackendServer", - Dict{String,Any}( - "InstancePort" => InstancePort, - "LoadBalancerName" => LoadBalancerName, - "PolicyNames" => PolicyNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_load_balancer_policies_for_backend_server( InstancePort, LoadBalancerName, @@ -1370,23 +1304,21 @@ Application-Controlled Session Stickiness in the Classic Load Balancers Guide. empty, all current policies are disabled. """ -function set_load_balancer_policies_of_listener( +set_load_balancer_policies_of_listener( LoadBalancerName, LoadBalancerPort, PolicyNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing( + "SetLoadBalancerPoliciesOfListener", + Dict{String,Any}( + "LoadBalancerName" => LoadBalancerName, + "LoadBalancerPort" => LoadBalancerPort, + "PolicyNames" => PolicyNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing( - "SetLoadBalancerPoliciesOfListener", - Dict{String,Any}( - "LoadBalancerName" => LoadBalancerName, - "LoadBalancerPort" => LoadBalancerPort, - "PolicyNames" => PolicyNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_load_balancer_policies_of_listener( LoadBalancerName, LoadBalancerPort, diff --git a/src/services/elastic_load_balancing_v2.jl b/src/services/elastic_load_balancing_v2.jl index 9ecabc60f..460f91aa6 100644 --- a/src/services/elastic_load_balancing_v2.jl +++ b/src/services/elastic_load_balancing_v2.jl @@ -20,16 +20,14 @@ Balancers Guide. - `listener_arn`: The Amazon Resource Name (ARN) of the listener. """ -function add_listener_certificates( +add_listener_certificates( Certificates, ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "AddListenerCertificates", + Dict{String,Any}("Certificates" => Certificates, "ListenerArn" => ListenerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "AddListenerCertificates", - Dict{String,Any}("Certificates" => Certificates, "ListenerArn" => ListenerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_listener_certificates( Certificates, ListenerArn, @@ -66,14 +64,13 @@ resource already has a tag with the same key, AddTags updates its value. - `tags`: The tags. """ -function add_tags(ResourceArns, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +add_tags(ResourceArns, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "AddTags", Dict{String,Any}("ResourceArns" => ResourceArns, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_tags( ResourceArns, Tags, @@ -107,16 +104,14 @@ Adds the specified revocation file to the specified trust store. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RevocationContents"`: The revocation file to add. """ -function add_trust_store_revocations( +add_trust_store_revocations( TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "AddTrustStoreRevocations", + Dict{String,Any}("TrustStoreArn" => TrustStoreArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "AddTrustStoreRevocations", - Dict{String,Any}("TrustStoreArn" => TrustStoreArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_trust_store_revocations( TrustStoreArn, params::AbstractDict{String}; @@ -169,18 +164,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Load Balancers Guide and Security policies in the Network Load Balancers Guide. - `"Tags"`: The tags to assign to the listener. """ -function create_listener( +create_listener( DefaultActions, LoadBalancerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "CreateListener", + Dict{String,Any}( + "DefaultActions" => DefaultActions, "LoadBalancerArn" => LoadBalancerArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "CreateListener", - Dict{String,Any}( - "DefaultActions" => DefaultActions, "LoadBalancerArn" => LoadBalancerArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_listener( DefaultActions, LoadBalancerArn, @@ -263,14 +256,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to assign to the load balancer. - `"Type"`: The type of load balancer. The default is application. """ -function create_load_balancer(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +create_load_balancer(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "CreateLoadBalancer", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_load_balancer( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -304,25 +296,23 @@ information, see Listener rules in the Application Load Balancers Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to assign to the rule. """ -function create_rule( +create_rule( Actions, Conditions, ListenerArn, Priority; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing_v2( + "CreateRule", + Dict{String,Any}( + "Actions" => Actions, + "Conditions" => Conditions, + "ListenerArn" => ListenerArn, + "Priority" => Priority, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "CreateRule", - Dict{String,Any}( - "Actions" => Actions, - "Conditions" => Conditions, - "ListenerArn" => ListenerArn, - "Priority" => Priority, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule( Actions, Conditions, @@ -431,14 +421,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcId"`: The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not apply. Otherwise, this parameter is required. """ -function create_target_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +create_target_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "CreateTargetGroup", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_target_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -468,23 +457,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys certificates bundle. If undefined the current version is used. - `"Tags"`: The tags to assign to the trust store. """ -function create_trust_store( +create_trust_store( CaCertificatesBundleS3Bucket, CaCertificatesBundleS3Key, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing_v2( + "CreateTrustStore", + Dict{String,Any}( + "CaCertificatesBundleS3Bucket" => CaCertificatesBundleS3Bucket, + "CaCertificatesBundleS3Key" => CaCertificatesBundleS3Key, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "CreateTrustStore", - Dict{String,Any}( - "CaCertificatesBundleS3Bucket" => CaCertificatesBundleS3Bucket, - "CaCertificatesBundleS3Key" => CaCertificatesBundleS3Key, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_trust_store( CaCertificatesBundleS3Bucket, CaCertificatesBundleS3Key, @@ -521,14 +508,13 @@ load balancer to which it is attached. - `listener_arn`: The Amazon Resource Name (ARN) of the listener. """ -function delete_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +delete_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DeleteListener", Dict{String,Any}("ListenerArn" => ListenerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_listener( ListenerArn, params::AbstractDict{String}; @@ -560,16 +546,13 @@ or terminate them. - `load_balancer_arn`: The Amazon Resource Name (ARN) of the load balancer. """ -function delete_load_balancer( - LoadBalancerArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing_v2( +delete_load_balancer(LoadBalancerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DeleteLoadBalancer", Dict{String,Any}("LoadBalancerArn" => LoadBalancerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_load_balancer( LoadBalancerArn, params::AbstractDict{String}; @@ -597,14 +580,13 @@ Deletes the specified rule. You can't delete the default rule. - `rule_arn`: The Amazon Resource Name (ARN) of the rule. """ -function delete_rule(RuleArn; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +delete_rule(RuleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DeleteRule", Dict{String,Any}("RuleArn" => RuleArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_rule( RuleArn, params::AbstractDict{String}; @@ -618,6 +600,47 @@ function delete_rule( ) end +""" + delete_shared_trust_store_association(resource_arn, trust_store_arn) + delete_shared_trust_store_association(resource_arn, trust_store_arn, params::Dict{String,<:Any}) + +Deletes a shared trust store association. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource. +- `trust_store_arn`: The Amazon Resource Name (ARN) of the trust store. + +""" +delete_shared_trust_store_association( + ResourceArn, TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "DeleteSharedTrustStoreAssociation", + Dict{String,Any}("ResourceArn" => ResourceArn, "TrustStoreArn" => TrustStoreArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_shared_trust_store_association( + ResourceArn, + TrustStoreArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return elastic_load_balancing_v2( + "DeleteSharedTrustStoreAssociation", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "ResourceArn" => ResourceArn, "TrustStoreArn" => TrustStoreArn + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ delete_target_group(target_group_arn) delete_target_group(target_group_arn, params::Dict{String,<:Any}) @@ -631,16 +654,13 @@ continue to run until you stop or terminate them. - `target_group_arn`: The Amazon Resource Name (ARN) of the target group. """ -function delete_target_group( - TargetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing_v2( +delete_target_group(TargetGroupArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DeleteTargetGroup", Dict{String,Any}("TargetGroupArn" => TargetGroupArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_target_group( TargetGroupArn, params::AbstractDict{String}; @@ -666,16 +686,13 @@ Deletes a trust store. - `trust_store_arn`: The Amazon Resource Name (ARN) of the trust store. """ -function delete_trust_store( - TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing_v2( +delete_trust_store(TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DeleteTrustStore", Dict{String,Any}("TrustStoreArn" => TrustStoreArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_trust_store( TrustStoreArn, params::AbstractDict{String}; @@ -711,16 +728,14 @@ target does not exist, the action returns successfully. you must specify both the target ID and the port when you deregister it. """ -function deregister_targets( +deregister_targets( TargetGroupArn, Targets; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "DeregisterTargets", + Dict{String,Any}("TargetGroupArn" => TargetGroupArn, "Targets" => Targets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "DeregisterTargets", - Dict{String,Any}("TargetGroupArn" => TargetGroupArn, "Targets" => Targets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_targets( TargetGroupArn, Targets, @@ -756,11 +771,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call.) - `"PageSize"`: The maximum number of results to return with this call. """ -function describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeAccountLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -772,6 +786,39 @@ function describe_account_limits( ) end +""" + describe_listener_attributes(listener_arn) + describe_listener_attributes(listener_arn, params::Dict{String,<:Any}) + +Describes the attributes for the specified listener. + +# Arguments +- `listener_arn`: The Amazon Resource Name (ARN) of the listener. + +""" +describe_listener_attributes( + ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "DescribeListenerAttributes", + Dict{String,Any}("ListenerArn" => ListenerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_listener_attributes( + ListenerArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return elastic_load_balancing_v2( + "DescribeListenerAttributes", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("ListenerArn" => ListenerArn), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ describe_listener_certificates(listener_arn) describe_listener_certificates(listener_arn, params::Dict{String,<:Any}) @@ -791,16 +838,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call.) - `"PageSize"`: The maximum number of results to return with this call. """ -function describe_listener_certificates( +describe_listener_certificates( ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "DescribeListenerCertificates", + Dict{String,Any}("ListenerArn" => ListenerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "DescribeListenerCertificates", - Dict{String,Any}("ListenerArn" => ListenerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_listener_certificates( ListenerArn, params::AbstractDict{String}; @@ -832,11 +877,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call.) - `"PageSize"`: The maximum number of results to return with this call. """ -function describe_listeners(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +describe_listeners(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeListeners"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_listeners( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -859,16 +903,14 @@ Guide - `load_balancer_arn`: The Amazon Resource Name (ARN) of the load balancer. """ -function describe_load_balancer_attributes( +describe_load_balancer_attributes( LoadBalancerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "DescribeLoadBalancerAttributes", + Dict{String,Any}("LoadBalancerArn" => LoadBalancerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "DescribeLoadBalancerAttributes", - Dict{String,Any}("LoadBalancerArn" => LoadBalancerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_load_balancer_attributes( LoadBalancerArn, params::AbstractDict{String}; @@ -901,11 +943,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Names"`: The names of the load balancers. - `"PageSize"`: The maximum number of results to return with this call. """ -function describe_load_balancers(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +describe_load_balancers(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeLoadBalancers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_load_balancers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -932,11 +973,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of results to return with this call. - `"RuleArns"`: The Amazon Resource Names (ARN) of the rules. """ -function describe_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +describe_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -962,11 +1002,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Names"`: The names of the policies. - `"PageSize"`: The maximum number of results to return with this call. """ -function describe_sslpolicies(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +describe_sslpolicies(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeSSLPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_sslpolicies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -991,14 +1030,13 @@ Balancers, target groups, listeners, or rules. 20 resources in a single call. """ -function describe_tags(ResourceArns; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +describe_tags(ResourceArns; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeTags", Dict{String,Any}("ResourceArns" => ResourceArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_tags( ResourceArns, params::AbstractDict{String}; @@ -1027,16 +1065,14 @@ Gateway Load Balancers Guide - `target_group_arn`: The Amazon Resource Name (ARN) of the target group. """ -function describe_target_group_attributes( +describe_target_group_attributes( TargetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "DescribeTargetGroupAttributes", + Dict{String,Any}("TargetGroupArn" => TargetGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "DescribeTargetGroupAttributes", - Dict{String,Any}("TargetGroupArn" => TargetGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_target_group_attributes( TargetGroupArn, params::AbstractDict{String}; @@ -1070,11 +1106,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of results to return with this call. - `"TargetGroupArns"`: The Amazon Resource Names (ARN) of the target groups. """ -function describe_target_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +describe_target_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeTargetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_target_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1097,19 +1132,16 @@ Describes the health of the specified targets or all of your targets. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"Include"`: Used to inclue anomaly detection information. +- `"Include"`: Used to include anomaly detection information. - `"Targets"`: The targets. """ -function describe_target_health( - TargetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing_v2( +describe_target_health(TargetGroupArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeTargetHealth", Dict{String,Any}("TargetGroupArn" => TargetGroupArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_target_health( TargetGroupArn, params::AbstractDict{String}; @@ -1140,16 +1172,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call.) - `"PageSize"`: The maximum number of results to return with this call. """ -function describe_trust_store_associations( +describe_trust_store_associations( TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "DescribeTrustStoreAssociations", + Dict{String,Any}("TrustStoreArn" => TrustStoreArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "DescribeTrustStoreAssociations", - Dict{String,Any}("TrustStoreArn" => TrustStoreArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trust_store_associations( TrustStoreArn, params::AbstractDict{String}; @@ -1169,7 +1199,7 @@ end describe_trust_store_revocations(trust_store_arn) describe_trust_store_revocations(trust_store_arn, params::Dict{String,<:Any}) -Describes the revocation files in use by the specified trust store arn, or revocation ID. +Describes the revocation files in use by the specified trust store or revocation files. # Arguments - `trust_store_arn`: The Amazon Resource Name (ARN) of the trust store. @@ -1181,16 +1211,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of results to return with this call. - `"RevocationIds"`: The revocation IDs of the revocation files you want to describe. """ -function describe_trust_store_revocations( +describe_trust_store_revocations( TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "DescribeTrustStoreRevocations", + Dict{String,Any}("TrustStoreArn" => TrustStoreArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "DescribeTrustStoreRevocations", - Dict{String,Any}("TrustStoreArn" => TrustStoreArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trust_store_revocations( TrustStoreArn, params::AbstractDict{String}; @@ -1210,7 +1238,7 @@ end describe_trust_stores() describe_trust_stores(params::Dict{String,<:Any}) -Describes all trust stores for a given account by trust store arn’s or name. +Describes all trust stores for the specified account. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1220,11 +1248,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of results to return with this call. - `"TrustStoreArns"`: The Amazon Resource Name (ARN) of the trust store. """ -function describe_trust_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +describe_trust_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "DescribeTrustStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_trust_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1236,6 +1263,38 @@ function describe_trust_stores( ) end +""" + get_resource_policy(resource_arn) + get_resource_policy(resource_arn, params::Dict{String,<:Any}) + +Retrieves the resource policy for a specified resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource. + +""" +get_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( + "GetResourcePolicy", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function get_resource_policy( + ResourceArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return elastic_load_balancing_v2( + "GetResourcePolicy", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("ResourceArn" => ResourceArn), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ get_trust_store_ca_certificates_bundle(trust_store_arn) get_trust_store_ca_certificates_bundle(trust_store_arn, params::Dict{String,<:Any}) @@ -1247,16 +1306,14 @@ active for ten minutes. - `trust_store_arn`: The Amazon Resource Name (ARN) of the trust store. """ -function get_trust_store_ca_certificates_bundle( +get_trust_store_ca_certificates_bundle( TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "GetTrustStoreCaCertificatesBundle", + Dict{String,Any}("TrustStoreArn" => TrustStoreArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "GetTrustStoreCaCertificatesBundle", - Dict{String,Any}("TrustStoreArn" => TrustStoreArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_trust_store_ca_certificates_bundle( TrustStoreArn, params::AbstractDict{String}; @@ -1284,16 +1341,14 @@ active for ten minutes. - `trust_store_arn`: The Amazon Resource Name (ARN) of the trust store. """ -function get_trust_store_revocation_content( +get_trust_store_revocation_content( RevocationId, TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "GetTrustStoreRevocationContent", + Dict{String,Any}("RevocationId" => RevocationId, "TrustStoreArn" => TrustStoreArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "GetTrustStoreRevocationContent", - Dict{String,Any}("RevocationId" => RevocationId, "TrustStoreArn" => TrustStoreArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_trust_store_revocation_content( RevocationId, TrustStoreArn, @@ -1352,14 +1407,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and ciphers are supported. For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide. """ -function modify_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +modify_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "ModifyListener", Dict{String,Any}("ListenerArn" => ListenerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_listener( ListenerArn, params::AbstractDict{String}; @@ -1375,6 +1429,45 @@ function modify_listener( ) end +""" + modify_listener_attributes(attributes, listener_arn) + modify_listener_attributes(attributes, listener_arn, params::Dict{String,<:Any}) + +Modifies the specified attributes of the specified listener. + +# Arguments +- `attributes`: The listener attributes. +- `listener_arn`: The Amazon Resource Name (ARN) of the listener. + +""" +modify_listener_attributes( + Attributes, ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "ModifyListenerAttributes", + Dict{String,Any}("Attributes" => Attributes, "ListenerArn" => ListenerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function modify_listener_attributes( + Attributes, + ListenerArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return elastic_load_balancing_v2( + "ModifyListenerAttributes", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("Attributes" => Attributes, "ListenerArn" => ListenerArn), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ modify_load_balancer_attributes(attributes, load_balancer_arn) modify_load_balancer_attributes(attributes, load_balancer_arn, params::Dict{String,<:Any}) @@ -1389,16 +1482,14 @@ current values. - `load_balancer_arn`: The Amazon Resource Name (ARN) of the load balancer. """ -function modify_load_balancer_attributes( +modify_load_balancer_attributes( Attributes, LoadBalancerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "ModifyLoadBalancerAttributes", + Dict{String,Any}("Attributes" => Attributes, "LoadBalancerArn" => LoadBalancerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "ModifyLoadBalancerAttributes", - Dict{String,Any}("Attributes" => Attributes, "LoadBalancerArn" => LoadBalancerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_load_balancer_attributes( Attributes, LoadBalancerArn, @@ -1438,14 +1529,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Actions"`: The actions. - `"Conditions"`: The conditions. """ -function modify_rule(RuleArn; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +modify_rule(RuleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "ModifyRule", Dict{String,Any}("RuleArn" => RuleArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_rule( RuleArn, params::AbstractDict{String}; @@ -1497,16 +1587,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UnhealthyThresholdCount"`: The number of consecutive health check failures required before considering the target unhealthy. """ -function modify_target_group( - TargetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing_v2( +modify_target_group(TargetGroupArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "ModifyTargetGroup", Dict{String,Any}("TargetGroupArn" => TargetGroupArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_target_group( TargetGroupArn, params::AbstractDict{String}; @@ -1529,20 +1616,18 @@ end Modifies the specified attributes of the specified target group. # Arguments -- `attributes`: The attributes. +- `attributes`: The target group attributes. - `target_group_arn`: The Amazon Resource Name (ARN) of the target group. """ -function modify_target_group_attributes( +modify_target_group_attributes( Attributes, TargetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "ModifyTargetGroupAttributes", + Dict{String,Any}("Attributes" => Attributes, "TargetGroupArn" => TargetGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "ModifyTargetGroupAttributes", - Dict{String,Any}("Attributes" => Attributes, "TargetGroupArn" => TargetGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_target_group_attributes( Attributes, TargetGroupArn, @@ -1569,7 +1654,7 @@ end modify_trust_store(ca_certificates_bundle_s3_bucket, ca_certificates_bundle_s3_key, trust_store_arn) modify_trust_store(ca_certificates_bundle_s3_bucket, ca_certificates_bundle_s3_key, trust_store_arn, params::Dict{String,<:Any}) -Update the ca certificate bundle for a given trust store. +Update the ca certificate bundle for the specified trust store. # Arguments - `ca_certificates_bundle_s3_bucket`: The Amazon S3 bucket for the ca certificates bundle. @@ -1581,23 +1666,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CaCertificatesBundleS3ObjectVersion"`: The Amazon S3 object version for the ca certificates bundle. If undefined the current version is used. """ -function modify_trust_store( +modify_trust_store( CaCertificatesBundleS3Bucket, CaCertificatesBundleS3Key, TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_load_balancing_v2( + "ModifyTrustStore", + Dict{String,Any}( + "CaCertificatesBundleS3Bucket" => CaCertificatesBundleS3Bucket, + "CaCertificatesBundleS3Key" => CaCertificatesBundleS3Key, + "TrustStoreArn" => TrustStoreArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "ModifyTrustStore", - Dict{String,Any}( - "CaCertificatesBundleS3Bucket" => CaCertificatesBundleS3Bucket, - "CaCertificatesBundleS3Key" => CaCertificatesBundleS3Key, - "TrustStoreArn" => TrustStoreArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_trust_store( CaCertificatesBundleS3Bucket, CaCertificatesBundleS3Key, @@ -1641,16 +1724,14 @@ HS1, M1, M2, M3, and T1. You can register instances of these types by IP address - `targets`: The targets. """ -function register_targets( +register_targets( TargetGroupArn, Targets; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "RegisterTargets", + Dict{String,Any}("TargetGroupArn" => TargetGroupArn, "Targets" => Targets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "RegisterTargets", - Dict{String,Any}("TargetGroupArn" => TargetGroupArn, "Targets" => Targets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_targets( TargetGroupArn, Targets, @@ -1684,16 +1765,14 @@ listener. - `listener_arn`: The Amazon Resource Name (ARN) of the listener. """ -function remove_listener_certificates( +remove_listener_certificates( Certificates, ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "RemoveListenerCertificates", + Dict{String,Any}("Certificates" => Certificates, "ListenerArn" => ListenerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "RemoveListenerCertificates", - Dict{String,Any}("Certificates" => Certificates, "ListenerArn" => ListenerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_listener_certificates( Certificates, ListenerArn, @@ -1729,16 +1808,13 @@ Load Balancers, target groups, listeners, or rules. - `tag_keys`: The tag keys for the tags to remove. """ -function remove_tags( - ResourceArns, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing_v2( +remove_tags(ResourceArns, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "RemoveTags", Dict{String,Any}("ResourceArns" => ResourceArns, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_tags( ResourceArns, TagKeys, @@ -1770,18 +1846,14 @@ Removes the specified revocation file from the specified trust store. - `trust_store_arn`: The Amazon Resource Name (ARN) of the trust store. """ -function remove_trust_store_revocations( +remove_trust_store_revocations( RevocationIds, TrustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "RemoveTrustStoreRevocations", + Dict{String,Any}("RevocationIds" => RevocationIds, "TrustStoreArn" => TrustStoreArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "RemoveTrustStoreRevocations", - Dict{String,Any}( - "RevocationIds" => RevocationIds, "TrustStoreArn" => TrustStoreArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_trust_store_revocations( RevocationIds, TrustStoreArn, @@ -1814,7 +1886,10 @@ Sets the type of IP addresses used by the subnets of the specified load balancer - `ip_address_type`: Note: Internal load balancers must use the ipv4 IP address type. [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 - (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). [Network Load + (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). Note: Application + Load Balancer authentication only supports IPv4 addresses when connecting to an Identity + Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load balancer + cannot complete the authentication process, resulting in HTTP 500 errors. [Network Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can’t specify dualstack for a load balancer with a UDP or TCP_UDP listener. [Gateway Load Balancers] The IP address type. The possible @@ -1822,18 +1897,16 @@ Sets the type of IP addresses used by the subnets of the specified load balancer - `load_balancer_arn`: The Amazon Resource Name (ARN) of the load balancer. """ -function set_ip_address_type( +set_ip_address_type( IpAddressType, LoadBalancerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "SetIpAddressType", + Dict{String,Any}( + "IpAddressType" => IpAddressType, "LoadBalancerArn" => LoadBalancerArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "SetIpAddressType", - Dict{String,Any}( - "IpAddressType" => IpAddressType, "LoadBalancerArn" => LoadBalancerArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_ip_address_type( IpAddressType, LoadBalancerArn, @@ -1868,16 +1941,13 @@ their current priority. - `rule_priorities`: The rule priorities. """ -function set_rule_priorities( - RulePriorities; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_load_balancing_v2( +set_rule_priorities(RulePriorities; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "SetRulePriorities", Dict{String,Any}("RulePriorities" => RulePriorities); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_rule_priorities( RulePriorities, params::AbstractDict{String}; @@ -1913,18 +1983,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink. The default is on. """ -function set_security_groups( +set_security_groups( LoadBalancerArn, SecurityGroups; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_load_balancing_v2( + "SetSecurityGroups", + Dict{String,Any}( + "LoadBalancerArn" => LoadBalancerArn, "SecurityGroups" => SecurityGroups + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_load_balancing_v2( - "SetSecurityGroups", - Dict{String,Any}( - "LoadBalancerArn" => LoadBalancerArn, "SecurityGroups" => SecurityGroups - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_security_groups( LoadBalancerArn, SecurityGroups, @@ -1990,14 +2058,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You can specify subnets from one or more Availability Zones. [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. """ -function set_subnets(LoadBalancerArn; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_load_balancing_v2( +set_subnets(LoadBalancerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_load_balancing_v2( "SetSubnets", Dict{String,Any}("LoadBalancerArn" => LoadBalancerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_subnets( LoadBalancerArn, params::AbstractDict{String}; diff --git a/src/services/elastic_transcoder.jl b/src/services/elastic_transcoder.jl index d333803a2..d1b13af98 100644 --- a/src/services/elastic_transcoder.jl +++ b/src/services/elastic_transcoder.jl @@ -18,14 +18,12 @@ getting the job identifier, use UpdatePipelineStatus to temporarily pause the pi action. """ -function cancel_job(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( - "DELETE", - "/2012-09-25/jobs/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_job(Id; aws_config::AbstractAWSConfig=current_aws_config()) = elastic_transcoder( + "DELETE", + "/2012-09-25/jobs/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_job( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -78,15 +76,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pairs per job. Elastic Transcoder does not guarantee that key/value pairs are returned in the same order in which you specify them. """ -function create_job(PipelineId; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( +create_job(PipelineId; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_transcoder( "POST", "/2012-09-25/jobs", Dict{String,Any}("PipelineId" => PipelineId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_job( PipelineId, params::AbstractDict{String}; @@ -220,17 +217,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. """ -function create_pipeline( +create_pipeline( InputBucket, Name, Role; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_transcoder( + "POST", + "/2012-09-25/pipelines", + Dict{String,Any}("InputBucket" => InputBucket, "Name" => Name, "Role" => Role); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_transcoder( - "POST", - "/2012-09-25/pipelines", - Dict{String,Any}("InputBucket" => InputBucket, "Name" => Name, "Role" => Role); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pipeline( InputBucket, Name, @@ -286,15 +281,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys any. - `"Video"`: A section of the request body that specifies the video parameters. """ -function create_preset(Container, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( +create_preset(Container, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_transcoder( "POST", "/2012-09-25/presets", Dict{String,Any}("Container" => Container, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_preset( Container, Name, @@ -326,14 +320,13 @@ pipeline is currently in use, DeletePipeline returns an error. - `id`: The identifier of the pipeline that you want to delete. """ -function delete_pipeline(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( +delete_pipeline(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_transcoder( "DELETE", "/2012-09-25/pipelines/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_pipeline( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -357,14 +350,12 @@ delete the default presets that are included with Elastic Transcoder. - `id`: The identifier of the preset for which you want to get detailed information. """ -function delete_preset(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( - "DELETE", - "/2012-09-25/presets/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_preset(Id; aws_config::AbstractAWSConfig=current_aws_config()) = elastic_transcoder( + "DELETE", + "/2012-09-25/presets/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_preset( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -395,16 +386,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results. """ -function list_jobs_by_pipeline( - PipelineId; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_transcoder( +list_jobs_by_pipeline(PipelineId; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_transcoder( "GET", "/2012-09-25/jobsByPipeline/$(PipelineId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_jobs_by_pipeline( PipelineId, params::AbstractDict{String}; @@ -438,14 +426,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results. """ -function list_jobs_by_status(Status; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( +list_jobs_by_status(Status; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_transcoder( "GET", "/2012-09-25/jobsByStatus/$(Status)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_jobs_by_status( Status, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -472,14 +459,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results. """ -function list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( - "GET", - "/2012-09-25/pipelines"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = elastic_transcoder( + "GET", + "/2012-09-25/pipelines"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -506,11 +491,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results. """ -function list_presets(; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( - "GET", "/2012-09-25/presets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_presets(; aws_config::AbstractAWSConfig=current_aws_config()) = elastic_transcoder( + "GET", "/2012-09-25/presets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_presets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -533,14 +516,12 @@ The ReadJob operation returns detailed information about a job. - `id`: The identifier of the job for which you want to get detailed information. """ -function read_job(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( - "GET", - "/2012-09-25/jobs/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +read_job(Id; aws_config::AbstractAWSConfig=current_aws_config()) = elastic_transcoder( + "GET", + "/2012-09-25/jobs/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function read_job( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -563,14 +544,12 @@ The ReadPipeline operation gets detailed information about a pipeline. - `id`: The identifier of the pipeline to read. """ -function read_pipeline(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( - "GET", - "/2012-09-25/pipelines/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +read_pipeline(Id; aws_config::AbstractAWSConfig=current_aws_config()) = elastic_transcoder( + "GET", + "/2012-09-25/pipelines/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function read_pipeline( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -593,14 +572,12 @@ The ReadPreset operation gets detailed information about a preset. - `id`: The identifier of the preset for which you want to get detailed information. """ -function read_preset(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( - "GET", - "/2012-09-25/presets/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +read_preset(Id; aws_config::AbstractAWSConfig=current_aws_config()) = elastic_transcoder( + "GET", + "/2012-09-25/presets/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function read_preset( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -634,26 +611,24 @@ buckets, and tries to send a test notification to Amazon SNS topics that you spe that you want the action to send a test notification to. """ -function test_role( +test_role( InputBucket, OutputBucket, Role, Topics; aws_config::AbstractAWSConfig=current_aws_config(), +) = elastic_transcoder( + "POST", + "/2012-09-25/roleTests", + Dict{String,Any}( + "InputBucket" => InputBucket, + "OutputBucket" => OutputBucket, + "Role" => Role, + "Topics" => Topics, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_transcoder( - "POST", - "/2012-09-25/roleTests", - Dict{String,Any}( - "InputBucket" => InputBucket, - "OutputBucket" => OutputBucket, - "Role" => Role, - "Topics" => Topics, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_role( InputBucket, OutputBucket, @@ -788,14 +763,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. """ -function update_pipeline(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return elastic_transcoder( +update_pipeline(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_transcoder( "PUT", "/2012-09-25/pipelines/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_pipeline( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -833,17 +807,15 @@ pipeline, Elastic Transcoder returns the values that you specified in the reques when you created the topic. """ -function update_pipeline_notifications( +update_pipeline_notifications( Id, Notifications; aws_config::AbstractAWSConfig=current_aws_config() +) = elastic_transcoder( + "POST", + "/2012-09-25/pipelines/$(Id)/notifications", + Dict{String,Any}("Notifications" => Notifications); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elastic_transcoder( - "POST", - "/2012-09-25/pipelines/$(Id)/notifications", - Dict{String,Any}("Notifications" => Notifications); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pipeline_notifications( Id, Notifications, @@ -878,17 +850,14 @@ request. Paused: The pipeline is not currently processing jobs. """ -function update_pipeline_status( - Id, Status; aws_config::AbstractAWSConfig=current_aws_config() -) - return elastic_transcoder( +update_pipeline_status(Id, Status; aws_config::AbstractAWSConfig=current_aws_config()) = + elastic_transcoder( "POST", "/2012-09-25/pipelines/$(Id)/status", Dict{String,Any}("Status" => Status); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_pipeline_status( Id, Status, diff --git a/src/services/elasticache.jl b/src/services/elasticache.jl index 7c1504f0d..2807bb64b 100644 --- a/src/services/elasticache.jl +++ b/src/services/elasticache.jl @@ -33,16 +33,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function add_tags_to_resource( +add_tags_to_resource( ResourceName, Tag; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "AddTagsToResource", + Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "AddTagsToResource", - Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_resource( ResourceName, Tag, @@ -81,23 +79,21 @@ an ElastiCache cluster in another region. valid Amazon account number for this parameter. """ -function authorize_cache_security_group_ingress( +authorize_cache_security_group_ingress( CacheSecurityGroupName, EC2SecurityGroupName, EC2SecurityGroupOwnerId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "AuthorizeCacheSecurityGroupIngress", + Dict{String,Any}( + "CacheSecurityGroupName" => CacheSecurityGroupName, + "EC2SecurityGroupName" => EC2SecurityGroupName, + "EC2SecurityGroupOwnerId" => EC2SecurityGroupOwnerId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "AuthorizeCacheSecurityGroupIngress", - Dict{String,Any}( - "CacheSecurityGroupName" => CacheSecurityGroupName, - "EC2SecurityGroupName" => EC2SecurityGroupName, - "EC2SecurityGroupOwnerId" => EC2SecurityGroupOwnerId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_cache_security_group_ingress( CacheSecurityGroupName, EC2SecurityGroupName, @@ -138,16 +134,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CacheClusterIds"`: The cache cluster IDs - `"ReplicationGroupIds"`: The replication group IDs """ -function batch_apply_update_action( +batch_apply_update_action( ServiceUpdateName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "BatchApplyUpdateAction", + Dict{String,Any}("ServiceUpdateName" => ServiceUpdateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "BatchApplyUpdateAction", - Dict{String,Any}("ServiceUpdateName" => ServiceUpdateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_apply_update_action( ServiceUpdateName, params::AbstractDict{String}; @@ -180,16 +174,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CacheClusterIds"`: The cache cluster IDs - `"ReplicationGroupIds"`: The replication group IDs """ -function batch_stop_update_action( +batch_stop_update_action( ServiceUpdateName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "BatchStopUpdateAction", + Dict{String,Any}("ServiceUpdateName" => ServiceUpdateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "BatchStopUpdateAction", - Dict{String,Any}("ServiceUpdateName" => ServiceUpdateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_stop_update_action( ServiceUpdateName, params::AbstractDict{String}; @@ -222,16 +214,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys recommended to use this option only to abort the migration and not recommended when application wants to continue migration to ElastiCache. """ -function complete_migration( - ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +complete_migration(ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "CompleteMigration", Dict{String,Any}("ReplicationGroupId" => ReplicationGroupId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function complete_migration( ReplicationGroupId, params::AbstractDict{String}; @@ -253,36 +242,35 @@ end copy_serverless_cache_snapshot(source_serverless_cache_snapshot_name, target_serverless_cache_snapshot_name) copy_serverless_cache_snapshot(source_serverless_cache_snapshot_name, target_serverless_cache_snapshot_name, params::Dict{String,<:Any}) -Creates a copy of an existing serverless cache’s snapshot. Available for Redis only. +Creates a copy of an existing serverless cache’s snapshot. Available for Redis OSS and +Serverless Memcached only. # Arguments - `source_serverless_cache_snapshot_name`: The identifier of the existing serverless - cache’s snapshot to be copied. Available for Redis only. + cache’s snapshot to be copied. Available for Redis OSS and Serverless Memcached only. - `target_serverless_cache_snapshot_name`: The identifier for the snapshot to be created. - Available for Redis only. + Available for Redis OSS and Serverless Memcached only. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"KmsKeyId"`: The identifier of the KMS key used to encrypt the target snapshot. - Available for Redis only. + Available for Redis OSS and Serverless Memcached only. - `"Tags"`: A list of tags to be added to the target snapshot resource. A tag is a - key-value pair. Available for Redis only. Default: NULL + key-value pair. Available for Redis OSS and Serverless Memcached only. Default: NULL """ -function copy_serverless_cache_snapshot( +copy_serverless_cache_snapshot( SourceServerlessCacheSnapshotName, TargetServerlessCacheSnapshotName; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "CopyServerlessCacheSnapshot", + Dict{String,Any}( + "SourceServerlessCacheSnapshotName" => SourceServerlessCacheSnapshotName, + "TargetServerlessCacheSnapshotName" => TargetServerlessCacheSnapshotName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CopyServerlessCacheSnapshot", - Dict{String,Any}( - "SourceServerlessCacheSnapshotName" => SourceServerlessCacheSnapshotName, - "TargetServerlessCacheSnapshotName" => TargetServerlessCacheSnapshotName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_serverless_cache_snapshot( SourceServerlessCacheSnapshotName, TargetServerlessCacheSnapshotName, @@ -312,34 +300,35 @@ end copy_snapshot(source_snapshot_name, target_snapshot_name) copy_snapshot(source_snapshot_name, target_snapshot_name, params::Dict{String,<:Any}) -Makes a copy of an existing snapshot. This operation is valid for Redis only. Users or -groups that have permissions to use the CopySnapshot operation can create their own Amazon -S3 buckets and copy snapshots to it. To control access to your snapshots, use an IAM policy -to control who has the ability to use the CopySnapshot operation. For more information -about using IAM to control the use of ElastiCache operations, see Exporting Snapshots and -Authentication & Access Control. You could receive the following error messages. -Error Messages Error Message: The S3 bucket %s is outside of the region. Solution: -Create an Amazon S3 bucket in the same region as your snapshot. For more information, see -Step 1: Create an Amazon S3 Bucket in the ElastiCache User Guide. Error Message: The S3 -bucket %s does not exist. Solution: Create an Amazon S3 bucket in the same region as your -snapshot. For more information, see Step 1: Create an Amazon S3 Bucket in the ElastiCache -User Guide. Error Message: The S3 bucket %s is not owned by the authenticated user. +Makes a copy of an existing snapshot. This operation is valid for Redis OSS only. Users +or groups that have permissions to use the CopySnapshot operation can create their own +Amazon S3 buckets and copy snapshots to it. To control access to your snapshots, use an IAM +policy to control who has the ability to use the CopySnapshot operation. For more +information about using IAM to control the use of ElastiCache operations, see Exporting +Snapshots and Authentication & Access Control. You could receive the following error +messages. Error Messages Error Message: The S3 bucket %s is outside of the region. Solution: Create an Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket in the ElastiCache User Guide. Error -Message: The authenticated user does not have sufficient permissions to perform the desired -activity. Solution: Contact your system administrator to get the needed permissions. -Error Message: The S3 bucket %s already contains an object with key %s. Solution: Give the -TargetSnapshotName a new and unique value. If exporting a snapshot, you could alternatively -create a new Amazon S3 bucket and use this same value for TargetSnapshotName. Error -Message: ElastiCache has not been granted READ permissions %s on the S3 Bucket. Solution: -Add List and Read permissions on the bucket. For more information, see Step 2: Grant -ElastiCache Access to Your Amazon S3 Bucket in the ElastiCache User Guide. Error -Message: ElastiCache has not been granted WRITE permissions %s on the S3 Bucket. -Solution: Add Upload/Delete permissions on the bucket. For more information, see Step 2: -Grant ElastiCache Access to Your Amazon S3 Bucket in the ElastiCache User Guide. Error -Message: ElastiCache has not been granted READ_ACP permissions %s on the S3 Bucket. -Solution: Add View Permissions on the bucket. For more information, see Step 2: Grant -ElastiCache Access to Your Amazon S3 Bucket in the ElastiCache User Guide. +Message: The S3 bucket %s does not exist. Solution: Create an Amazon S3 bucket in the same +region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket in +the ElastiCache User Guide. Error Message: The S3 bucket %s is not owned by the +authenticated user. Solution: Create an Amazon S3 bucket in the same region as your +snapshot. For more information, see Step 1: Create an Amazon S3 Bucket in the ElastiCache +User Guide. Error Message: The authenticated user does not have sufficient permissions +to perform the desired activity. Solution: Contact your system administrator to get the +needed permissions. Error Message: The S3 bucket %s already contains an object with key +%s. Solution: Give the TargetSnapshotName a new and unique value. If exporting a snapshot, +you could alternatively create a new Amazon S3 bucket and use this same value for +TargetSnapshotName. Error Message: ElastiCache has not been granted READ permissions %s +on the S3 Bucket. Solution: Add List and Read permissions on the bucket. For more +information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the +ElastiCache User Guide. Error Message: ElastiCache has not been granted WRITE +permissions %s on the S3 Bucket. Solution: Add Upload/Delete permissions on the bucket. +For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the +ElastiCache User Guide. Error Message: ElastiCache has not been granted READ_ACP +permissions %s on the S3 Bucket. Solution: Add View Permissions on the bucket. For more +information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the +ElastiCache User Guide. # Arguments - `source_snapshot_name`: The name of an existing snapshot from which to make a copy. @@ -359,21 +348,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon ElastiCache User Guide. For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide. """ -function copy_snapshot( +copy_snapshot( SourceSnapshotName, TargetSnapshotName; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "CopySnapshot", + Dict{String,Any}( + "SourceSnapshotName" => SourceSnapshotName, + "TargetSnapshotName" => TargetSnapshotName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CopySnapshot", - Dict{String,Any}( - "SourceSnapshotName" => SourceSnapshotName, - "TargetSnapshotName" => TargetSnapshotName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_snapshot( SourceSnapshotName, TargetSnapshotName, @@ -402,8 +389,8 @@ end create_cache_cluster(cache_cluster_id, params::Dict{String,<:Any}) Creates a cluster. All nodes in the cluster run the same protocol-compliant cache engine -software, either Memcached or Redis. This operation is not supported for Redis (cluster -mode enabled) clusters. +software, either Memcached or Redis OSS. This operation is not supported for Redis OSS +(cluster mode enabled) clusters. # Arguments - `cache_cluster_id`: The node group (shard) identifier. This parameter is stored as a @@ -423,8 +410,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys special characters are !, &, #, , ^, <, >, and -. Other printable special characters cannot be used in the AUTH token. For more information, see AUTH password at http://redis.io/commands/AUTH. -- `"AutoMinorVersionUpgrade"`:  If you are running Redis engine version 6.0 or later, set - this parameter to yes if you want to opt-in to the next auto minor version upgrade +- `"AutoMinorVersionUpgrade"`:  If you are running Redis OSS engine version 6.0 or later, + set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions. - `"CacheNodeType"`: The compute and memory capacity of the nodes in the node group (shard). The following node types are supported by ElastiCache. Generally speaking, the @@ -432,15 +419,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys compared to their equivalent previous generation counterparts. General purpose: Current generation: M7g node types: cache.m7g.large, cache.m7g.xlarge, cache.m7g.2xlarge, cache.m7g.4xlarge, cache.m7g.8xlarge, cache.m7g.12xlarge, cache.m7g.16xlarge For region - availability, see Supported Node Types M6g node types (available only for Redis engine - version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large, - cache.m6g.xlarge, cache.m6g.2xlarge, cache.m6g.4xlarge, cache.m6g.8xlarge, + availability, see Supported Node Types M6g node types (available only for Redis OSS + engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): + cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge - T4g node types (available only for Redis engine version 5.0.6 onward and Memcached engine - version 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 node types: - cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, + T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached + engine version 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 node + types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.) T1 node types: cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, @@ -450,9 +437,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys supported for these types.) C1 node types: cache.c1.xlarge Memory optimized: Current generation: R7g node types: cache.r7g.large, cache.r7g.xlarge, cache.r7g.2xlarge, cache.r7g.4xlarge, cache.r7g.8xlarge, cache.r7g.12xlarge, cache.r7g.16xlarge For region - availability, see Supported Node Types R6g node types (available only for Redis engine - version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.r6g.large, - cache.r6g.xlarge, cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, + availability, see Supported Node Types R6g node types (available only for Redis OSS + engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): + cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, @@ -461,9 +448,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge Additional node type info All current generation instance types are created in Amazon VPC by default. - Redis append-only files (AOF) are not supported for T1 or T2 instances. Redis Multi-AZ - with automatic failover is not supported on T1 instances. Redis configuration variables - appendonly and appendfsync are not supported on Redis version 2.8.22 and later. + Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. Redis OSS + Multi-AZ with automatic failover is not supported on T1 instances. Redis OSS + configuration variables appendonly and appendfsync are not supported on Redis OSS version + 2.8.22 and later. - `"CacheParameterGroupName"`: The name of the parameter group to associate with this cluster. If this argument is omitted, the default parameter group for the specified engine is used. You cannot use any parameter group which has cluster-enabled='yes' when creating a @@ -485,17 +473,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version. - `"IpDiscovery"`: The network type you choose when modifying a cluster, either ipv4 | - ipv6. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached - engine version 1.6.6 on all instances built on the Nitro system. + ipv6. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or + Memcached engine version 1.6.6 on all instances built on the Nitro system. - `"LogDeliveryConfigurations"`: Specifies the destination, format and type of the logs. - `"NetworkType"`: Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads - using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances - built on the Nitro system. + using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all + instances built on the Nitro system. - `"NotificationTopicArn"`: The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent. The Amazon SNS topic owner must be the same as the cluster owner. - `"NumCacheNodes"`: The initial number of cache nodes that the cluster has. For clusters - running Redis, this value must be 1. For clusters running Memcached, this value must be + running Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40. If you need more than 40 nodes for your Memcached cluster, please fill out the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/. @@ -531,12 +519,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC). - `"SnapshotArns"`: A single-element string list containing an Amazon Resource Name (ARN) - that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot file - is used to populate the node group (shard). The Amazon S3 object name in the ARN cannot - contain any commas. This parameter is only valid if the Engine parameter is redis. + that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. The snapshot + file is used to populate the node group (shard). The Amazon S3 object name in the ARN + cannot contain any commas. This parameter is only valid if the Engine parameter is redis. Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb -- `"SnapshotName"`: The name of a Redis snapshot from which to restore data into the new - node group (shard). The snapshot status changes to restoring while the new node group +- `"SnapshotName"`: The name of a Redis OSS snapshot from which to restore data into the + new node group (shard). The snapshot status changes to restoring while the new node group (shard) is being created. This parameter is only valid if the Engine parameter is redis. - `"SnapshotRetentionLimit"`: The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a @@ -550,16 +538,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. - `"TransitEncryptionEnabled"`: A flag that enables in-transit encryption when set to true. """ -function create_cache_cluster( - CacheClusterId; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +create_cache_cluster(CacheClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "CreateCacheCluster", Dict{String,Any}("CacheClusterId" => CacheClusterId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_cache_cluster( CacheClusterId, params::AbstractDict{String}; @@ -600,23 +585,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_cache_parameter_group( +create_cache_parameter_group( CacheParameterGroupFamily, CacheParameterGroupName, Description; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "CreateCacheParameterGroup", + Dict{String,Any}( + "CacheParameterGroupFamily" => CacheParameterGroupFamily, + "CacheParameterGroupName" => CacheParameterGroupName, + "Description" => Description, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CreateCacheParameterGroup", - Dict{String,Any}( - "CacheParameterGroupFamily" => CacheParameterGroupFamily, - "CacheParameterGroupName" => CacheParameterGroupName, - "Description" => Description, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cache_parameter_group( CacheParameterGroupFamily, CacheParameterGroupName, @@ -662,18 +645,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_cache_security_group( +create_cache_security_group( CacheSecurityGroupName, Description; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "CreateCacheSecurityGroup", + Dict{String,Any}( + "CacheSecurityGroupName" => CacheSecurityGroupName, "Description" => Description + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CreateCacheSecurityGroup", - Dict{String,Any}( - "CacheSecurityGroupName" => CacheSecurityGroupName, "Description" => Description - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cache_security_group( CacheSecurityGroupName, Description, @@ -717,23 +698,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_cache_subnet_group( +create_cache_subnet_group( CacheSubnetGroupDescription, CacheSubnetGroupName, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "CreateCacheSubnetGroup", + Dict{String,Any}( + "CacheSubnetGroupDescription" => CacheSubnetGroupDescription, + "CacheSubnetGroupName" => CacheSubnetGroupName, + "SubnetIdentifier" => SubnetIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CreateCacheSubnetGroup", - Dict{String,Any}( - "CacheSubnetGroupDescription" => CacheSubnetGroupDescription, - "CacheSubnetGroupName" => CacheSubnetGroupName, - "SubnetIdentifier" => SubnetIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cache_subnet_group( CacheSubnetGroupDescription, CacheSubnetGroupName, @@ -763,11 +742,11 @@ end create_global_replication_group(global_replication_group_id_suffix, primary_replication_group_id) create_global_replication_group(global_replication_group_id_suffix, primary_replication_group_id, params::Dict{String,<:Any}) -Global Datastore for Redis offers fully managed, fast, reliable and secure cross-region -replication. Using Global Datastore for Redis, you can create cross-region read replica -clusters for ElastiCache for Redis to enable low-latency reads and disaster recovery across -regions. For more information, see Replication Across Regions Using Global Datastore. -The GlobalReplicationGroupIdSuffix is the name of the Global datastore. The +Global Datastore for Redis OSS offers fully managed, fast, reliable and secure cross-region +replication. Using Global Datastore for Redis OSS, you can create cross-region read replica +clusters for ElastiCache (Redis OSS) to enable low-latency reads and disaster recovery +across regions. For more information, see Replication Across Regions Using Global +Datastore. The GlobalReplicationGroupIdSuffix is the name of the Global datastore. The PrimaryReplicationGroupId represents the name of the primary cluster that accepts writes and will replicate updates to the secondary cluster. @@ -786,21 +765,19 @@ and will replicate updates to the secondary cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"GlobalReplicationGroupDescription"`: Provides details of the Global datastore """ -function create_global_replication_group( +create_global_replication_group( GlobalReplicationGroupIdSuffix, PrimaryReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "CreateGlobalReplicationGroup", + Dict{String,Any}( + "GlobalReplicationGroupIdSuffix" => GlobalReplicationGroupIdSuffix, + "PrimaryReplicationGroupId" => PrimaryReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CreateGlobalReplicationGroup", - Dict{String,Any}( - "GlobalReplicationGroupIdSuffix" => GlobalReplicationGroupIdSuffix, - "PrimaryReplicationGroupId" => PrimaryReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_global_replication_group( GlobalReplicationGroupIdSuffix, PrimaryReplicationGroupId, @@ -828,29 +805,29 @@ end create_replication_group(replication_group_description, replication_group_id) create_replication_group(replication_group_description, replication_group_id, params::Dict{String,<:Any}) -Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication -group. This API can be used to create a standalone regional replication group or a -secondary replication group associated with a Global datastore. A Redis (cluster mode -disabled) replication group is a collection of nodes, where one of the nodes is a +Creates a Redis OSS (cluster mode disabled) or a Redis OSS (cluster mode enabled) +replication group. This API can be used to create a standalone regional replication group +or a secondary replication group associated with a Global datastore. A Redis OSS (cluster +mode disabled) replication group is a collection of nodes, where one of the nodes is a read/write primary and the others are read-only replicas. Writes to the primary are -asynchronously propagated to the replicas. A Redis cluster-mode enabled cluster is +asynchronously propagated to the replicas. A Redis OSS cluster-mode enabled cluster is comprised of from 1 to 90 shards (API/CLI: node groups). Each shard has a primary node and up to 5 read-only replica nodes. The configuration can range from 90 shards and 0 replicas to 15 shards and 5 replicas, which is the maximum number or replicas allowed. The node or -shard limit can be increased to a maximum of 500 per cluster if the Redis engine version is -5.0.6 or higher. For example, you can choose to configure a 500 node cluster that ranges -between 83 shards (one primary and 5 replicas per shard) and 500 shards (single primary and -no replicas). Make sure there are enough available IP addresses to accommodate the -increase. Common pitfalls include the subnets in the subnet group have too small a CIDR +shard limit can be increased to a maximum of 500 per cluster if the Redis OSS engine +version is 5.0.6 or higher. For example, you can choose to configure a 500 node cluster +that ranges between 83 shards (one primary and 5 replicas per shard) and 500 shards (single +primary and no replicas). Make sure there are enough available IP addresses to accommodate +the increase. Common pitfalls include the subnets in the subnet group have too small a CIDR range or the subnets are shared and heavily used by other clusters. For more information, see Creating a Subnet Group. For versions below 5.0.6, the limit is 250 per cluster. To request a limit increase, see Amazon Service Limits and choose the limit type Nodes per -cluster per instance type. When a Redis (cluster mode disabled) replication group has been -successfully created, you can add one or more read replicas to it, up to a total of 5 read -replicas. If you need to increase or decrease the number of node groups (console: shards), -you can avail yourself of ElastiCache for Redis' scaling. For more information, see Scaling -ElastiCache for Redis Clusters in the ElastiCache User Guide. This operation is valid for -Redis only. +cluster per instance type. When a Redis OSS (cluster mode disabled) replication group has +been successfully created, you can add one or more read replicas to it, up to a total of 5 +read replicas. If you need to increase or decrease the number of node groups (console: +shards), you can use ElastiCache (Redis OSS) scaling. For more information, see Scaling +ElastiCache (Redis OSS) Clusters in the ElastiCache User Guide. This operation is valid +for Redis OSS only. # Arguments - `replication_group_description`: A user-created description for the replication group. @@ -865,7 +842,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cannot modify the value of AtRestEncryptionEnabled after the replication group is created. To enable encryption at rest on a replication group you must set AtRestEncryptionEnabled to true when you create the replication group. Required: Only available when creating a - replication group in an Amazon VPC using redis version 3.2.6, 4.x or later. Default: false + replication group in an Amazon VPC using Redis OSS version 3.2.6, 4.x or later. Default: + false - `"AuthToken"`: Reserved parameter. The password used to access a password protected server. AuthToken can be specified only on replication groups where TransitEncryptionEnabled is true. For HIPAA compliance, you must specify @@ -875,27 +853,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters are !, &, #, , ^, <, >, and -. Other printable special characters cannot be used in the AUTH token. For more information, see AUTH password at http://redis.io/commands/AUTH. -- `"AutoMinorVersionUpgrade"`:  If you are running Redis engine version 6.0 or later, set - this parameter to yes if you want to opt-in to the next auto minor version upgrade +- `"AutoMinorVersionUpgrade"`:  If you are running Redis OSS engine version 6.0 or later, + set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions. - `"AutomaticFailoverEnabled"`: Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails. AutomaticFailoverEnabled - must be enabled for Redis (cluster mode enabled) replication groups. Default: false + must be enabled for Redis OSS (cluster mode enabled) replication groups. Default: false - `"CacheNodeType"`: The compute and memory capacity of the nodes in the node group (shard). The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts. General purpose: Current generation: M7g node types: cache.m7g.large, cache.m7g.xlarge, cache.m7g.2xlarge, cache.m7g.4xlarge, cache.m7g.8xlarge, cache.m7g.12xlarge, cache.m7g.16xlarge For region - availability, see Supported Node Types M6g node types (available only for Redis engine - version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large, - cache.m6g.xlarge, cache.m6g.2xlarge, cache.m6g.4xlarge, cache.m6g.8xlarge, + availability, see Supported Node Types M6g node types (available only for Redis OSS + engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): + cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge - T4g node types (available only for Redis engine version 5.0.6 onward and Memcached engine - version 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 node types: - cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, + T4g node types (available only for Redis OSS engine version 5.0.6 onward and Memcached + engine version 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 node + types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.) T1 node types: cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, @@ -905,9 +883,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys supported for these types.) C1 node types: cache.c1.xlarge Memory optimized: Current generation: R7g node types: cache.r7g.large, cache.r7g.xlarge, cache.r7g.2xlarge, cache.r7g.4xlarge, cache.r7g.8xlarge, cache.r7g.12xlarge, cache.r7g.16xlarge For region - availability, see Supported Node Types R6g node types (available only for Redis engine - version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.r6g.large, - cache.r6g.xlarge, cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, + availability, see Supported Node Types R6g node types (available only for Redis OSS + engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): + cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, @@ -916,16 +894,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge Additional node type info All current generation instance types are created in Amazon VPC by default. - Redis append-only files (AOF) are not supported for T1 or T2 instances. Redis Multi-AZ - with automatic failover is not supported on T1 instances. Redis configuration variables - appendonly and appendfsync are not supported on Redis version 2.8.22 and later. + Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. Redis OSS + Multi-AZ with automatic failover is not supported on T1 instances. Redis OSS + configuration variables appendonly and appendfsync are not supported on Redis OSS version + 2.8.22 and later. - `"CacheParameterGroupName"`: The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the - specified engine is used. If you are running Redis version 3.2.4 or later, only one node - group (shard), and want to use a default parameter group, we recommend that you specify the - parameter group by name. To create a Redis (cluster mode disabled) replication group, - use CacheParameterGroupName=default.redis3.2. To create a Redis (cluster mode enabled) - replication group, use CacheParameterGroupName=default.redis3.2.cluster.on. + specified engine is used. If you are running Redis OSS version 3.2.4 or later, only one + node group (shard), and want to use a default parameter group, we recommend that you + specify the parameter group by name. To create a Redis OSS (cluster mode disabled) + replication group, use CacheParameterGroupName=default.redis3.2. To create a Redis OSS + (cluster mode enabled) replication group, use + CacheParameterGroupName=default.redis3.2.cluster.on. - `"CacheSecurityGroupNames"`: A list of cache security group names to associate with this replication group. - `"CacheSubnetGroupName"`: The name of the cache subnet group to be used for the @@ -933,10 +913,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys create a subnet group before you start creating a cluster. For more information, see Subnets and Subnet Groups. - `"ClusterMode"`: Enabled or Disabled. To modify cluster mode from Disabled to Enabled, - you must first set the cluster mode to Compatible. Compatible mode allows your Redis + you must first set the cluster mode to Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you - migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode - configuration and set the cluster mode to Enabled. + migrate all Redis OSS clients to use cluster mode enabled, you can then complete cluster + mode configuration and set the cluster mode to Enabled. - `"DataTieringEnabled"`: Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering. @@ -951,23 +931,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the earlier engine version. - `"GlobalReplicationGroupId"`: The name of the Global datastore - `"IpDiscovery"`: The network type you choose when creating a replication group, either - ipv4 | ipv6. IPv6 is supported for workloads using Redis engine version 6.2 onward or + ipv4 | ipv6. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system. - `"KmsKeyId"`: The ID of the KMS key used to encrypt the disk in the cluster. - `"LogDeliveryConfigurations"`: Specifies the destination, format and type of the logs. - `"MultiAZEnabled"`: A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ. - `"NetworkType"`: Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads - using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances - built on the Nitro system. + using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all + instances built on the Nitro system. - `"NodeGroupConfiguration"`: A list of node group (shard) configuration options. Each node group (shard) configuration has the following members: PrimaryAvailabilityZone, - ReplicaAvailabilityZones, ReplicaCount, and Slots. If you're creating a Redis (cluster mode - disabled) or a Redis (cluster mode enabled) replication group, you can use this parameter - to individually configure each node group (shard), or you can omit this parameter. However, - it is required when seeding a Redis (cluster mode enabled) cluster from a S3 rdb file. You - must configure each node group (shard) using this parameter because you must specify the - slots for each node group. + ReplicaAvailabilityZones, ReplicaCount, and Slots. If you're creating a Redis OSS (cluster + mode disabled) or a Redis OSS (cluster mode enabled) replication group, you can use this + parameter to individually configure each node group (shard), or you can omit this + parameter. However, it is required when seeding a Redis OSS (cluster mode enabled) cluster + from a S3 rdb file. You must configure each node group (shard) using this parameter because + you must specify the slots for each node group. - `"NotificationTopicArn"`: The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent. The Amazon SNS topic owner must be the same as the cluster owner. @@ -978,8 +958,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter (it will default to 1), or you can explicitly set it to a value between 2 and 6. The maximum permitted value for NumCacheClusters is 6 (1 primary plus 5 replicas). - `"NumNodeGroups"`: An optional parameter that specifies the number of node groups - (shards) for this Redis (cluster mode enabled) replication group. For Redis (cluster mode - disabled) either omit this parameter or set it to 1. Default: 1 + (shards) for this Redis OSS (cluster mode enabled) replication group. For Redis OSS + (cluster mode disabled) either omit this parameter or set it to 1. Default: 1 - `"Port"`: The port number on which each member of the replication group accepts connections. - `"PreferredCacheClusterAZs"`: A list of EC2 Availability Zones in which the replication @@ -1005,9 +985,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys replication group. Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon VPC). - `"ServerlessCacheSnapshotName"`: The name of the snapshot used to create a replication - group. Available for Redis only. + group. Available for Redis OSS only. - `"SnapshotArns"`: A list of Amazon Resource Names (ARN) that uniquely identify the Redis - RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new + OSS RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot contain any commas. The new replication group will have the number of node groups (console: shards) specified by the parameter NumNodeGroups or the number of node groups configured by NodeGroupConfiguration @@ -1031,13 +1011,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This parameter is valid only if the Engine parameter is redis, the EngineVersion parameter is 3.2.6, 4.x or later, and the cluster is being created in an Amazon VPC. If you enable in-transit encryption, you must also specify a value for CacheSubnetGroup. Required: Only - available when creating a replication group in an Amazon VPC using redis version 3.2.6, 4.x - or later. Default: false For HIPAA compliance, you must specify TransitEncryptionEnabled - as true, an AuthToken, and a CacheSubnetGroup. + available when creating a replication group in an Amazon VPC using Redis OSS version 3.2.6, + 4.x or later. Default: false For HIPAA compliance, you must specify + TransitEncryptionEnabled as true, an AuthToken, and a CacheSubnetGroup. - `"TransitEncryptionMode"`: A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. When setting TransitEncryptionEnabled to true, you can set your TransitEncryptionMode to preferred in the same request, to allow both - encrypted and unencrypted connections at the same time. Once you migrate all your Redis + encrypted and unencrypted connections at the same time. Once you migrate all your Redis OSS clients to use encrypted connections you can modify the value to required to allow encrypted connections only. Setting TransitEncryptionMode to required is a two-step process that requires you to first set the TransitEncryptionMode to preferred, after that you can @@ -1045,21 +1025,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys replication group. - `"UserGroupIds"`: The user group to associate with the replication group. """ -function create_replication_group( +create_replication_group( ReplicationGroupDescription, ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "CreateReplicationGroup", + Dict{String,Any}( + "ReplicationGroupDescription" => ReplicationGroupDescription, + "ReplicationGroupId" => ReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CreateReplicationGroup", - Dict{String,Any}( - "ReplicationGroupDescription" => ReplicationGroupDescription, - "ReplicationGroupId" => ReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_group( ReplicationGroupDescription, ReplicationGroupId, @@ -1100,7 +1078,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Units for the cache. - `"DailySnapshotTime"`: The daily time that snapshots will be created from the new serverless cache. By default this number is populated with 0, i.e. no snapshots will be - created on an automatic daily basis. Available for Redis only. + created on an automatic daily basis. Available for Redis OSS and Serverless Memcached only. - `"Description"`: User-provided description for the serverless cache. The default is NULL, i.e. if no description is provided then an empty string will be returned. The maximum length is 255 characters. @@ -1113,27 +1091,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys end-point (private-link). If no other information is given this will be the VPC’s Default Security Group that is associated with the cluster VPC end-point. - `"SnapshotArnsToRestore"`: The ARN(s) of the snapshot that the new serverless cache will - be created from. Available for Redis only. + be created from. Available for Redis OSS and Serverless Memcached only. - `"SnapshotRetentionLimit"`: The number of snapshots that will be retained for the serverless cache that is being created. As new snapshots beyond this limit are added, the - oldest snapshots will be deleted on a rolling basis. Available for Redis only. + oldest snapshots will be deleted on a rolling basis. Available for Redis OSS and Serverless + Memcached only. - `"SubnetIds"`: A list of the identifiers of the subnets where the VPC endpoint for the serverless cache will be deployed. All the subnetIds must belong to the same VPC. - `"Tags"`: The list of tags (key, value) pairs to be added to the serverless cache resource. Default is NULL. - `"UserGroupId"`: The identifier of the UserGroup to be associated with the serverless - cache. Available for Redis only. Default is NULL. + cache. Available for Redis OSS only. Default is NULL. """ -function create_serverless_cache( +create_serverless_cache( Engine, ServerlessCacheName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "CreateServerlessCache", + Dict{String,Any}("Engine" => Engine, "ServerlessCacheName" => ServerlessCacheName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CreateServerlessCache", - Dict{String,Any}("Engine" => Engine, "ServerlessCacheName" => ServerlessCacheName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_serverless_cache( Engine, ServerlessCacheName, @@ -1161,36 +1138,35 @@ end create_serverless_cache_snapshot(serverless_cache_name, serverless_cache_snapshot_name, params::Dict{String,<:Any}) This API creates a copy of an entire ServerlessCache at a specific moment in time. -Available for Redis only. +Available for Redis OSS and Serverless Memcached only. # Arguments - `serverless_cache_name`: The name of an existing serverless cache. The snapshot is - created from this cache. Available for Redis only. + created from this cache. Available for Redis OSS and Serverless Memcached only. - `serverless_cache_snapshot_name`: The name for the snapshot being created. Must be unique - for the customer account. Available for Redis only. Must be between 1 and 255 characters. + for the customer account. Available for Redis OSS and Serverless Memcached only. Must be + between 1 and 255 characters. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"KmsKeyId"`: The ID of the KMS key used to encrypt the snapshot. Available for Redis - only. Default: NULL +- `"KmsKeyId"`: The ID of the KMS key used to encrypt the snapshot. Available for Redis OSS + and Serverless Memcached only. Default: NULL - `"Tags"`: A list of tags to be added to the snapshot resource. A tag is a key-value pair. - Available for Redis only. + Available for Redis OSS and Serverless Memcached only. """ -function create_serverless_cache_snapshot( +create_serverless_cache_snapshot( ServerlessCacheName, ServerlessCacheSnapshotName; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "CreateServerlessCacheSnapshot", + Dict{String,Any}( + "ServerlessCacheName" => ServerlessCacheName, + "ServerlessCacheSnapshotName" => ServerlessCacheSnapshotName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CreateServerlessCacheSnapshot", - Dict{String,Any}( - "ServerlessCacheName" => ServerlessCacheName, - "ServerlessCacheSnapshotName" => ServerlessCacheSnapshotName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_serverless_cache_snapshot( ServerlessCacheName, ServerlessCacheSnapshotName, @@ -1219,7 +1195,7 @@ end create_snapshot(snapshot_name, params::Dict{String,<:Any}) Creates a copy of an entire cluster or replication group at a specific moment in time. -This operation is valid for Redis only. +This operation is valid for Redis OSS only. # Arguments - `snapshot_name`: A name for the snapshot being created. @@ -1234,14 +1210,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_snapshot(SnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +create_snapshot(SnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "CreateSnapshot", Dict{String,Any}("SnapshotName" => SnapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_snapshot( SnapshotName, params::AbstractDict{String}; @@ -1261,8 +1236,8 @@ end create_user(access_string, engine, user_id, user_name) create_user(access_string, engine, user_id, user_name, params::Dict{String,<:Any}) -For Redis engine version 6.0 onwards: Creates a Redis user. For more information, see Using -Role Based Access Control (RBAC). +For Redis OSS engine version 6.0 onwards: Creates a Redis OSS user. For more information, +see Using Role Based Access Control (RBAC). # Arguments - `access_string`: Access permissions string used for this user. @@ -1279,25 +1254,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_user( +create_user( AccessString, Engine, UserId, UserName; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "CreateUser", + Dict{String,Any}( + "AccessString" => AccessString, + "Engine" => Engine, + "UserId" => UserId, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "CreateUser", - Dict{String,Any}( - "AccessString" => AccessString, - "Engine" => Engine, - "UserId" => UserId, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user( AccessString, Engine, @@ -1329,29 +1302,27 @@ end create_user_group(engine, user_group_id) create_user_group(engine, user_group_id, params::Dict{String,<:Any}) -For Redis engine version 6.0 onwards: Creates a Redis user group. For more information, see -Using Role Based Access Control (RBAC) +For Redis OSS engine version 6.0 onwards: Creates a Redis OSS user group. For more +information, see Using Role Based Access Control (RBAC) # Arguments -- `engine`: The current supported value is Redis. +- `engine`: The current supported value is Redis user. - `user_group_id`: The ID of the user group. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag - key must be accompanied by a tag value, although null is accepted. Available for Redis only. + key must be accompanied by a tag value, although null is accepted. Available for Redis OSS + only. - `"UserIds"`: The list of user IDs that belong to the user group. """ -function create_user_group( - Engine, UserGroupId; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +create_user_group(Engine, UserGroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "CreateUserGroup", Dict{String,Any}("Engine" => Engine, "UserGroupId" => UserGroupId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_user_group( Engine, UserGroupId, @@ -1390,31 +1361,29 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GlobalNodeGroupsToRemove"`: If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. GlobalNodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. - ElastiCache for Redis will attempt to remove all node groups listed by + ElastiCache (Redis OSS) will attempt to remove all node groups listed by GlobalNodeGroupsToRemove from the cluster. - `"GlobalNodeGroupsToRetain"`: If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. GlobalNodeGroupsToRetain is a list of NodeGroupIds to retain from the cluster. - ElastiCache for Redis will attempt to retain all node groups listed by + ElastiCache (Redis OSS) will attempt to retain all node groups listed by GlobalNodeGroupsToRetain from the cluster. """ -function decrease_node_groups_in_global_replication_group( +decrease_node_groups_in_global_replication_group( ApplyImmediately, GlobalReplicationGroupId, NodeGroupCount; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "DecreaseNodeGroupsInGlobalReplicationGroup", + Dict{String,Any}( + "ApplyImmediately" => ApplyImmediately, + "GlobalReplicationGroupId" => GlobalReplicationGroupId, + "NodeGroupCount" => NodeGroupCount, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DecreaseNodeGroupsInGlobalReplicationGroup", - Dict{String,Any}( - "ApplyImmediately" => ApplyImmediately, - "GlobalReplicationGroupId" => GlobalReplicationGroupId, - "NodeGroupCount" => NodeGroupCount, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function decrease_node_groups_in_global_replication_group( ApplyImmediately, GlobalReplicationGroupId, @@ -1444,10 +1413,10 @@ end decrease_replica_count(apply_immediately, replication_group_id) decrease_replica_count(apply_immediately, replication_group_id, params::Dict{String,<:Any}) -Dynamically decreases the number of replicas in a Redis (cluster mode disabled) replication -group or the number of replica nodes in one or more node groups (shards) of a Redis -(cluster mode enabled) replication group. This operation is performed with no cluster down -time. +Dynamically decreases the number of replicas in a Redis OSS (cluster mode disabled) +replication group or the number of replica nodes in one or more node groups (shards) of a +Redis OSS (cluster mode enabled) replication group. This operation is performed with no +cluster down time. # Arguments - `apply_immediately`: If True, the number of replica nodes is decreased immediately. @@ -1458,32 +1427,30 @@ time. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NewReplicaCount"`: The number of read replica nodes you want at the completion of this - operation. For Redis (cluster mode disabled) replication groups, this is the number of - replica nodes in the replication group. For Redis (cluster mode enabled) replication + operation. For Redis OSS (cluster mode disabled) replication groups, this is the number of + replica nodes in the replication group. For Redis OSS (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups. - The minimum number of replicas in a shard or replication group is: Redis (cluster mode - disabled) If Multi-AZ is enabled: 1 If Multi-AZ is not enabled: 0 Redis (cluster - mode enabled): 0 (though you will not be able to failover to a replica if your primary node - fails) + The minimum number of replicas in a shard or replication group is: Redis OSS (cluster + mode disabled) If Multi-AZ is enabled: 1 If Multi-AZ is not enabled: 0 Redis OSS + (cluster mode enabled): 0 (though you will not be able to failover to a replica if your + primary node fails) - `"ReplicaConfiguration"`: A list of ConfigureShard objects that can be used to configure - each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard has + each shard in a Redis OSS (cluster mode enabled) replication group. The ConfigureShard has three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones. - `"ReplicasToRemove"`: A list of the node ids to remove from the replication group or node group (shard). """ -function decrease_replica_count( +decrease_replica_count( ApplyImmediately, ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DecreaseReplicaCount", + Dict{String,Any}( + "ApplyImmediately" => ApplyImmediately, + "ReplicationGroupId" => ReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DecreaseReplicaCount", - Dict{String,Any}( - "ApplyImmediately" => ApplyImmediately, - "ReplicationGroupId" => ReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function decrease_replica_count( ApplyImmediately, ReplicationGroupId, @@ -1514,10 +1481,10 @@ end Deletes a previously provisioned cluster. DeleteCacheCluster deletes all associated cache nodes, node endpoints and the cluster itself. When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the cluster; you cannot -cancel or revert this operation. This operation is not valid for: Redis (cluster mode -enabled) clusters Redis (cluster mode disabled) clusters A cluster that is the last +cancel or revert this operation. This operation is not valid for: Redis OSS (cluster mode +enabled) clusters Redis OSS (cluster mode disabled) clusters A cluster that is the last read replica of a replication group A cluster that is the primary node of a replication -group A node group (shard) that has Multi-AZ mode enabled A cluster from a Redis +group A node group (shard) that has Multi-AZ mode enabled A cluster from a Redis OSS (cluster mode enabled) replication group A cluster that is not in the available state # Arguments @@ -1530,16 +1497,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the unique name that identifies the snapshot. ElastiCache creates the snapshot, and then deletes the cluster immediately afterward. """ -function delete_cache_cluster( - CacheClusterId; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +delete_cache_cluster(CacheClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DeleteCacheCluster", Dict{String,Any}("CacheClusterId" => CacheClusterId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cache_cluster( CacheClusterId, params::AbstractDict{String}; @@ -1568,16 +1532,14 @@ groups in your account. specified cache security group must not be associated with any clusters. """ -function delete_cache_parameter_group( +delete_cache_parameter_group( CacheParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DeleteCacheParameterGroup", + Dict{String,Any}("CacheParameterGroupName" => CacheParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DeleteCacheParameterGroup", - Dict{String,Any}("CacheParameterGroupName" => CacheParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cache_parameter_group( CacheParameterGroupName, params::AbstractDict{String}; @@ -1609,16 +1571,14 @@ associated with any clusters. delete the default security group. """ -function delete_cache_security_group( +delete_cache_security_group( CacheSecurityGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DeleteCacheSecurityGroup", + Dict{String,Any}("CacheSecurityGroupName" => CacheSecurityGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DeleteCacheSecurityGroup", - Dict{String,Any}("CacheSecurityGroupName" => CacheSecurityGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cache_security_group( CacheSecurityGroupName, params::AbstractDict{String}; @@ -1650,16 +1610,14 @@ is associated with any clusters. Must contain no more than 255 alphanumeric characters or hyphens. """ -function delete_cache_subnet_group( +delete_cache_subnet_group( CacheSubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DeleteCacheSubnetGroup", + Dict{String,Any}("CacheSubnetGroupName" => CacheSubnetGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DeleteCacheSubnetGroup", - Dict{String,Any}("CacheSubnetGroupName" => CacheSubnetGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cache_subnet_group( CacheSubnetGroupName, params::AbstractDict{String}; @@ -1701,21 +1659,19 @@ this operation. standalone replication group. """ -function delete_global_replication_group( +delete_global_replication_group( GlobalReplicationGroupId, RetainPrimaryReplicationGroup; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "DeleteGlobalReplicationGroup", + Dict{String,Any}( + "GlobalReplicationGroupId" => GlobalReplicationGroupId, + "RetainPrimaryReplicationGroup" => RetainPrimaryReplicationGroup, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DeleteGlobalReplicationGroup", - Dict{String,Any}( - "GlobalReplicationGroupId" => GlobalReplicationGroupId, - "RetainPrimaryReplicationGroup" => RetainPrimaryReplicationGroup, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_global_replication_group( GlobalReplicationGroupId, RetainPrimaryReplicationGroup, @@ -1748,8 +1704,9 @@ replication group, including the primary/primaries and all of the read replicas. replication group has only one primary, you can optionally delete only the read replicas, while retaining the primary by setting RetainPrimaryCluster=true. When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the -selected resources; you cannot cancel or revert this operation. This operation is valid -for Redis only. +selected resources; you cannot cancel or revert this operation. CreateSnapshot +permission is required to create a final snapshot. Without this permission, the API call +will fail with an Access Denied exception. This operation is valid for Redis OSS only. # Arguments - `replication_group_id`: The identifier for the cluster to be deleted. This parameter is @@ -1764,16 +1721,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RetainPrimaryCluster"`: If set to true, all of the read replicas are deleted, but the primary node is retained. """ -function delete_replication_group( +delete_replication_group( ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DeleteReplicationGroup", + Dict{String,Any}("ReplicationGroupId" => ReplicationGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DeleteReplicationGroup", - Dict{String,Any}("ReplicationGroupId" => ReplicationGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_group( ReplicationGroupId, params::AbstractDict{String}; @@ -1795,7 +1750,9 @@ end delete_serverless_cache(serverless_cache_name) delete_serverless_cache(serverless_cache_name, params::Dict{String,<:Any}) -Deletes a specified existing serverless cache. +Deletes a specified existing serverless cache. CreateServerlessCacheSnapshot permission +is required to create a final snapshot. Without this permission, the API call will fail +with an Access Denied exception. # Arguments - `serverless_cache_name`: The identifier of the serverless cache to be deleted. @@ -1803,18 +1760,17 @@ Deletes a specified existing serverless cache. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"FinalSnapshotName"`: Name of the final snapshot to be taken before the serverless cache - is deleted. Available for Redis only. Default: NULL, i.e. a final snapshot is not taken. + is deleted. Available for Redis OSS and Serverless Memcached only. Default: NULL, i.e. a + final snapshot is not taken. """ -function delete_serverless_cache( +delete_serverless_cache( ServerlessCacheName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DeleteServerlessCache", + Dict{String,Any}("ServerlessCacheName" => ServerlessCacheName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DeleteServerlessCache", - Dict{String,Any}("ServerlessCacheName" => ServerlessCacheName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_serverless_cache( ServerlessCacheName, params::AbstractDict{String}; @@ -1838,23 +1794,22 @@ end delete_serverless_cache_snapshot(serverless_cache_snapshot_name) delete_serverless_cache_snapshot(serverless_cache_snapshot_name, params::Dict{String,<:Any}) -Deletes an existing serverless cache snapshot. Available for Redis only. +Deletes an existing serverless cache snapshot. Available for Redis OSS and Serverless +Memcached only. # Arguments - `serverless_cache_snapshot_name`: Idenfitier of the snapshot to be deleted. Available for - Redis only. + Redis OSS and Serverless Memcached only. """ -function delete_serverless_cache_snapshot( +delete_serverless_cache_snapshot( ServerlessCacheSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DeleteServerlessCacheSnapshot", + Dict{String,Any}("ServerlessCacheSnapshotName" => ServerlessCacheSnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DeleteServerlessCacheSnapshot", - Dict{String,Any}("ServerlessCacheSnapshotName" => ServerlessCacheSnapshotName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_serverless_cache_snapshot( ServerlessCacheSnapshotName, params::AbstractDict{String}; @@ -1882,20 +1837,19 @@ end Deletes an existing snapshot. When you receive a successful response from this operation, ElastiCache immediately begins deleting the snapshot; you cannot cancel or revert this -operation. This operation is valid for Redis only. +operation. This operation is valid for Redis OSS only. # Arguments - `snapshot_name`: The name of the snapshot to be deleted. """ -function delete_snapshot(SnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +delete_snapshot(SnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DeleteSnapshot", Dict{String,Any}("SnapshotName" => SnapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_snapshot( SnapshotName, params::AbstractDict{String}; @@ -1915,7 +1869,7 @@ end delete_user(user_id) delete_user(user_id, params::Dict{String,<:Any}) -For Redis engine version 6.0 onwards: Deletes a user. The user will be removed from all +For Redis OSS engine version 6.0 onwards: Deletes a user. The user will be removed from all user groups and in turn removed from all replication groups. For more information, see Using Role Based Access Control (RBAC). @@ -1923,14 +1877,12 @@ Using Role Based Access Control (RBAC). - `user_id`: The ID of the user. """ -function delete_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( - "DeleteUser", - Dict{String,Any}("UserId" => UserId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) = elasticache( + "DeleteUser", + Dict{String,Any}("UserId" => UserId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_user( UserId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1946,22 +1898,21 @@ end delete_user_group(user_group_id) delete_user_group(user_group_id, params::Dict{String,<:Any}) -For Redis engine version 6.0 onwards: Deletes a user group. The user group must first be -disassociated from the replication group before it can be deleted. For more information, +For Redis OSS engine version 6.0 onwards: Deletes a user group. The user group must first +be disassociated from the replication group before it can be deleted. For more information, see Using Role Based Access Control (RBAC). # Arguments - `user_group_id`: The ID of the user group. """ -function delete_user_group(UserGroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +delete_user_group(UserGroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DeleteUserGroup", Dict{String,Any}("UserGroupId" => UserGroupId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user_group( UserGroupId, params::AbstractDict{String}; @@ -2007,15 +1958,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100. - `"ShowCacheClustersNotInReplicationGroups"`: An optional flag that can be included in the DescribeCacheCluster request to show only nodes (API/CLI: clusters) that are not members of - a replication group. In practice, this mean Memcached and single node Redis clusters. + a replication group. In practice, this mean Memcached and single node Redis OSS clusters. - `"ShowCacheNodeInfo"`: An optional flag that can be included in the DescribeCacheCluster request to retrieve information about the individual cache nodes. """ -function describe_cache_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( - "DescribeCacheClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_cache_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = elasticache( + "DescribeCacheClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_cache_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2051,15 +2000,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100. """ -function describe_cache_engine_versions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +describe_cache_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeCacheEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cache_engine_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2089,15 +2035,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100. """ -function describe_cache_parameter_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +describe_cache_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeCacheParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cache_parameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2129,16 +2072,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100. - `"Source"`: The parameter types to return. Valid values: user | system | engine-default """ -function describe_cache_parameters( +describe_cache_parameters( CacheParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DescribeCacheParameters", + Dict{String,Any}("CacheParameterGroupName" => CacheParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DescribeCacheParameters", - Dict{String,Any}("CacheParameterGroupName" => CacheParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cache_parameters( CacheParameterGroupName, params::AbstractDict{String}; @@ -2176,15 +2117,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100. """ -function describe_cache_security_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +describe_cache_security_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeCacheSecurityGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cache_security_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2214,11 +2152,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100. """ -function describe_cache_subnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +describe_cache_subnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeCacheSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_cache_subnet_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2250,16 +2187,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100. """ -function describe_engine_default_parameters( +describe_engine_default_parameters( CacheParameterGroupFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DescribeEngineDefaultParameters", + Dict{String,Any}("CacheParameterGroupFamily" => CacheParameterGroupFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DescribeEngineDefaultParameters", - Dict{String,Any}("CacheParameterGroupFamily" => CacheParameterGroupFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_engine_default_parameters( CacheParameterGroupFamily, params::AbstractDict{String}; @@ -2307,11 +2242,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: The beginning of the time interval to retrieve events for, specified in ISO 8601 format. Example: 2017-03-30T07:03:49.555Z """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( - "DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2338,15 +2270,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"ShowMemberInfo"`: Returns the list of members that comprise the Global datastore. """ -function describe_global_replication_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +describe_global_replication_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeGlobalReplicationGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_global_replication_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2364,7 +2293,7 @@ end Returns information about a particular replication group. If no identifier is specified, DescribeReplicationGroups returns information about all replication groups. This operation -is valid for Redis only. +is valid for Redis OSS only. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -2378,11 +2307,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is not case sensitive. If you do not specify this parameter, information about all replication groups is returned. """ -function describe_replication_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +describe_replication_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeReplicationGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_replication_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2410,38 +2338,39 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys generation counterparts. General purpose: Current generation: M7g node types: cache.m7g.large, cache.m7g.xlarge, cache.m7g.2xlarge, cache.m7g.4xlarge, cache.m7g.8xlarge, cache.m7g.12xlarge, cache.m7g.16xlarge For region availability, see Supported Node Types - M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached - engine version 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, - cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge M5 node - types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, - cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available only for - Redis engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): - cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 node types: cache.t3.micro, - cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - cache.t2.medium Previous generation: (not recommended. Existing clusters are still - supported but creation of new clusters is not supported for these types.) T1 node types: - cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - cache.m3.2xlarge Compute optimized: Previous generation: (not recommended. Existing - clusters are still supported but creation of new clusters is not supported for these - types.) C1 node types: cache.c1.xlarge Memory optimized: Current generation: R7g - node types: cache.r7g.large, cache.r7g.xlarge, cache.r7g.2xlarge, cache.r7g.4xlarge, - cache.r7g.8xlarge, cache.r7g.12xlarge, cache.r7g.16xlarge For region availability, see - Supported Node Types R6g node types (available only for Redis engine version 5.0.6 - onward and for Memcached engine version 1.5.16 onward): cache.r6g.large, cache.r6g.xlarge, - cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - cache.r6g.16xlarge R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, - cache.r5.4xlarge, cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, - cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - Previous generation: (not recommended. Existing clusters are still supported but creation - of new clusters is not supported for these types.) M2 node types: cache.m2.xlarge, - cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge Additional node type info All - current generation instance types are created in Amazon VPC by default. Redis append-only - files (AOF) are not supported for T1 or T2 instances. Redis Multi-AZ with automatic - failover is not supported on T1 instances. Redis configuration variables appendonly and - appendfsync are not supported on Redis version 2.8.22 and later. + M6g node types (available only for Redis OSS engine version 5.0.6 onward and for + Memcached engine version 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, + cache.m6g.2xlarge, cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, + cache.m6g.16xlarge M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, + cache.m5.4xlarge, cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, + cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types + (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version + 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 node types: + cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, + cache.t2.small, cache.t2.medium Previous generation: (not recommended. Existing clusters + are still supported but creation of new clusters is not supported for these types.) T1 + node types: cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, + cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, + cache.m3.xlarge, cache.m3.2xlarge Compute optimized: Previous generation: (not + recommended. Existing clusters are still supported but creation of new clusters is not + supported for these types.) C1 node types: cache.c1.xlarge Memory optimized: + Current generation: R7g node types: cache.r7g.large, cache.r7g.xlarge, cache.r7g.2xlarge, + cache.r7g.4xlarge, cache.r7g.8xlarge, cache.r7g.12xlarge, cache.r7g.16xlarge For region + availability, see Supported Node Types R6g node types (available only for Redis OSS + engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): + cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, + cache.r6g.12xlarge, cache.r6g.16xlarge R5 node types: cache.r5.large, cache.r5.xlarge, + cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge, cache.r5.24xlarge R4 node types: + cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, + cache.r4.16xlarge Previous generation: (not recommended. Existing clusters are still + supported but creation of new clusters is not supported for these types.) M2 node types: + cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, + cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge Additional node + type info All current generation instance types are created in Amazon VPC by default. + Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. Redis OSS + Multi-AZ with automatic failover is not supported on T1 instances. Redis OSS + configuration variables appendonly and appendfsync are not supported on Redis OSS version + 2.8.22 and later. - `"Duration"`: The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration. Valid Values: 1 | 3 | 31536000 | 94608000 @@ -2462,11 +2391,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReservedCacheNodesOfferingId"`: The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier. """ -function describe_reserved_cache_nodes(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +describe_reserved_cache_nodes(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeReservedCacheNodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_reserved_cache_nodes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2493,38 +2421,39 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys generation counterparts. General purpose: Current generation: M7g node types: cache.m7g.large, cache.m7g.xlarge, cache.m7g.2xlarge, cache.m7g.4xlarge, cache.m7g.8xlarge, cache.m7g.12xlarge, cache.m7g.16xlarge For region availability, see Supported Node Types - M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached - engine version 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, - cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge M5 node - types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, - cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available only for - Redis engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): - cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 node types: cache.t3.micro, - cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - cache.t2.medium Previous generation: (not recommended. Existing clusters are still - supported but creation of new clusters is not supported for these types.) T1 node types: - cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - cache.m3.2xlarge Compute optimized: Previous generation: (not recommended. Existing - clusters are still supported but creation of new clusters is not supported for these - types.) C1 node types: cache.c1.xlarge Memory optimized: Current generation: R7g - node types: cache.r7g.large, cache.r7g.xlarge, cache.r7g.2xlarge, cache.r7g.4xlarge, - cache.r7g.8xlarge, cache.r7g.12xlarge, cache.r7g.16xlarge For region availability, see - Supported Node Types R6g node types (available only for Redis engine version 5.0.6 - onward and for Memcached engine version 1.5.16 onward): cache.r6g.large, cache.r6g.xlarge, - cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - cache.r6g.16xlarge R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, - cache.r5.4xlarge, cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, - cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge - Previous generation: (not recommended. Existing clusters are still supported but creation - of new clusters is not supported for these types.) M2 node types: cache.m2.xlarge, - cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, cache.r3.xlarge, - cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge Additional node type info All - current generation instance types are created in Amazon VPC by default. Redis append-only - files (AOF) are not supported for T1 or T2 instances. Redis Multi-AZ with automatic - failover is not supported on T1 instances. Redis configuration variables appendonly and - appendfsync are not supported on Redis version 2.8.22 and later. + M6g node types (available only for Redis OSS engine version 5.0.6 onward and for + Memcached engine version 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, + cache.m6g.2xlarge, cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, + cache.m6g.16xlarge M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, + cache.m5.4xlarge, cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, + cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types + (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version + 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 node types: + cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, + cache.t2.small, cache.t2.medium Previous generation: (not recommended. Existing clusters + are still supported but creation of new clusters is not supported for these types.) T1 + node types: cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, + cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, + cache.m3.xlarge, cache.m3.2xlarge Compute optimized: Previous generation: (not + recommended. Existing clusters are still supported but creation of new clusters is not + supported for these types.) C1 node types: cache.c1.xlarge Memory optimized: + Current generation: R7g node types: cache.r7g.large, cache.r7g.xlarge, cache.r7g.2xlarge, + cache.r7g.4xlarge, cache.r7g.8xlarge, cache.r7g.12xlarge, cache.r7g.16xlarge For region + availability, see Supported Node Types R6g node types (available only for Redis OSS + engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): + cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, + cache.r6g.12xlarge, cache.r6g.16xlarge R5 node types: cache.r5.large, cache.r5.xlarge, + cache.r5.2xlarge, cache.r5.4xlarge, cache.r5.12xlarge, cache.r5.24xlarge R4 node types: + cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, + cache.r4.16xlarge Previous generation: (not recommended. Existing clusters are still + supported but creation of new clusters is not supported for these types.) M2 node types: + cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge R3 node types: cache.r3.large, + cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge Additional node + type info All current generation instance types are created in Amazon VPC by default. + Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. Redis OSS + Multi-AZ with automatic failover is not supported on T1 instances. Redis OSS + configuration variables appendonly and appendfsync are not supported on Redis OSS version + 2.8.22 and later. - `"Duration"`: Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration. Valid Values: 1 | 3 | 31536000 | 94608000 - `"Marker"`: An optional marker returned from a prior request. Use this marker for @@ -2543,15 +2472,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter to show only the available offering that matches the specified reservation identifier. Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706 """ -function describe_reserved_cache_nodes_offerings(; +describe_reserved_cache_nodes_offerings(; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "DescribeReservedCacheNodesOfferings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DescribeReservedCacheNodesOfferings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_reserved_cache_nodes_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2570,34 +2497,33 @@ end Returns information about serverless cache snapshots. By default, this API lists all of the customer’s serverless cache snapshots. It can also describe a single serverless cache snapshot, or the snapshots associated with a particular serverless cache. Available for -Redis only. +Redis OSS and Serverless Memcached only. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MaxResults"`: The maximum number of records to include in the response. If more records exist than the specified max-results value, a market is included in the response so that - remaining results can be retrieved. Available for Redis only.The default is 50. The - Validation Constraints are a maximum of 50. + remaining results can be retrieved. Available for Redis OSS and Serverless Memcached + only.The default is 50. The Validation Constraints are a maximum of 50. - `"NextToken"`: An optional marker returned from a prior request to support pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by max-results. Available for Redis - only. + OSS and Serverless Memcached only. - `"ServerlessCacheName"`: The identifier of serverless cache. If this parameter is specified, only snapshots associated with that specific serverless cache are described. - Available for Redis only. + Available for Redis OSS and Serverless Memcached only. - `"ServerlessCacheSnapshotName"`: The identifier of the serverless cache’s snapshot. If - this parameter is specified, only this snapshot is described. Available for Redis only. -- `"SnapshotType"`: The type of snapshot that is being described. Available for Redis only. + this parameter is specified, only this snapshot is described. Available for Redis OSS and + Serverless Memcached only. +- `"SnapshotType"`: The type of snapshot that is being described. Available for Redis OSS + and Serverless Memcached only. """ -function describe_serverless_cache_snapshots(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +describe_serverless_cache_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeServerlessCacheSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_serverless_cache_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2628,11 +2554,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServerlessCacheName"`: The identifier for the serverless cache. If this parameter is specified, only information about that specific serverless cache is returned. Default: NULL """ -function describe_serverless_caches(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +describe_serverless_caches(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeServerlessCaches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_serverless_caches( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2659,11 +2584,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServiceUpdateName"`: The unique ID of the service update - `"ServiceUpdateStatus"`: The status of the service update """ -function describe_service_updates(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +describe_service_updates(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "DescribeServiceUpdates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_service_updates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2682,7 +2606,7 @@ end Returns information about cluster or replication group snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cache cluster. This operation -is valid for Redis only. +is valid for Redis OSS only. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -2704,11 +2628,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys created by ElastiCache. If set to user the output shows snapshots that were manually created. If omitted, the output shows both automatically and manually created snapshots. """ -function describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( - "DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache("DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2726,7 +2647,8 @@ Returns details of the update actions # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CacheClusterIds"`: The cache cluster IDs -- `"Engine"`: The Elasticache engine to which the update applies. Either Redis or Memcached +- `"Engine"`: The Elasticache engine to which the update applies. Either Redis OSS or + Memcached. - `"Marker"`: An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. @@ -2740,11 +2662,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response - `"UpdateActionStatus"`: The status of the update action. """ -function describe_update_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( - "DescribeUpdateActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_update_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = elasticache( + "DescribeUpdateActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_update_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2772,11 +2692,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"UserGroupId"`: The ID of the user group. """ -function describe_user_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( - "DescribeUserGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_user_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = elasticache( + "DescribeUserGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_user_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2793,7 +2711,7 @@ Returns a list of users. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"Engine"`: The Redis engine. +- `"Engine"`: The Redis OSS engine. - `"Filters"`: Filter to determine the list of User IDs to return. - `"Marker"`: An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response @@ -2803,11 +2721,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"UserId"`: The ID of the user. """ -function describe_users(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( - "DescribeUsers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_users(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache("DescribeUsers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_users( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2832,23 +2747,21 @@ as a standalone cluster in that Amazon region. from the Global datastore """ -function disassociate_global_replication_group( +disassociate_global_replication_group( GlobalReplicationGroupId, ReplicationGroupId, ReplicationGroupRegion; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "DisassociateGlobalReplicationGroup", + Dict{String,Any}( + "GlobalReplicationGroupId" => GlobalReplicationGroupId, + "ReplicationGroupId" => ReplicationGroupId, + "ReplicationGroupRegion" => ReplicationGroupRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "DisassociateGlobalReplicationGroup", - Dict{String,Any}( - "GlobalReplicationGroupId" => GlobalReplicationGroupId, - "ReplicationGroupId" => ReplicationGroupId, - "ReplicationGroupRegion" => ReplicationGroupRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_global_replication_group( GlobalReplicationGroupId, ReplicationGroupId, @@ -2879,30 +2792,28 @@ end export_serverless_cache_snapshot(s3_bucket_name, serverless_cache_snapshot_name, params::Dict{String,<:Any}) Provides the functionality to export the serverless cache snapshot data to Amazon S3. -Available for Redis only. +Available for Redis OSS only. # Arguments - `s3_bucket_name`: Name of the Amazon S3 bucket to export the snapshot to. The Amazon S3 - bucket must also be in same region as the snapshot. Available for Redis only. + bucket must also be in same region as the snapshot. Available for Redis OSS only. - `serverless_cache_snapshot_name`: The identifier of the serverless cache snapshot to be - exported to S3. Available for Redis only. + exported to S3. Available for Redis OSS only. """ -function export_serverless_cache_snapshot( +export_serverless_cache_snapshot( S3BucketName, ServerlessCacheSnapshotName; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "ExportServerlessCacheSnapshot", + Dict{String,Any}( + "S3BucketName" => S3BucketName, + "ServerlessCacheSnapshotName" => ServerlessCacheSnapshotName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "ExportServerlessCacheSnapshot", - Dict{String,Any}( - "S3BucketName" => S3BucketName, - "ServerlessCacheSnapshotName" => ServerlessCacheSnapshotName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_serverless_cache_snapshot( S3BucketName, ServerlessCacheSnapshotName, @@ -2939,23 +2850,21 @@ primary, and all other clusters will become secondary. - `primary_replication_group_id`: The name of the primary replication group """ -function failover_global_replication_group( +failover_global_replication_group( GlobalReplicationGroupId, PrimaryRegion, PrimaryReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "FailoverGlobalReplicationGroup", + Dict{String,Any}( + "GlobalReplicationGroupId" => GlobalReplicationGroupId, + "PrimaryRegion" => PrimaryRegion, + "PrimaryReplicationGroupId" => PrimaryReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "FailoverGlobalReplicationGroup", - Dict{String,Any}( - "GlobalReplicationGroupId" => GlobalReplicationGroupId, - "PrimaryRegion" => PrimaryRegion, - "PrimaryReplicationGroupId" => PrimaryReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function failover_global_replication_group( GlobalReplicationGroupId, PrimaryRegion, @@ -2998,23 +2907,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RegionalConfigurations"`: Describes the replication group IDs, the Amazon regions where they are stored and the shard configuration for each that comprise the Global datastore """ -function increase_node_groups_in_global_replication_group( +increase_node_groups_in_global_replication_group( ApplyImmediately, GlobalReplicationGroupId, NodeGroupCount; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "IncreaseNodeGroupsInGlobalReplicationGroup", + Dict{String,Any}( + "ApplyImmediately" => ApplyImmediately, + "GlobalReplicationGroupId" => GlobalReplicationGroupId, + "NodeGroupCount" => NodeGroupCount, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "IncreaseNodeGroupsInGlobalReplicationGroup", - Dict{String,Any}( - "ApplyImmediately" => ApplyImmediately, - "GlobalReplicationGroupId" => GlobalReplicationGroupId, - "NodeGroupCount" => NodeGroupCount, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function increase_node_groups_in_global_replication_group( ApplyImmediately, GlobalReplicationGroupId, @@ -3044,10 +2951,10 @@ end increase_replica_count(apply_immediately, replication_group_id) increase_replica_count(apply_immediately, replication_group_id, params::Dict{String,<:Any}) -Dynamically increases the number of replicas in a Redis (cluster mode disabled) replication -group or the number of replica nodes in one or more node groups (shards) of a Redis -(cluster mode enabled) replication group. This operation is performed with no cluster down -time. +Dynamically increases the number of replicas in a Redis OSS (cluster mode disabled) +replication group or the number of replica nodes in one or more node groups (shards) of a +Redis OSS (cluster mode enabled) replication group. This operation is performed with no +cluster down time. # Arguments - `apply_immediately`: If True, the number of replica nodes is increased immediately. @@ -3058,26 +2965,24 @@ time. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NewReplicaCount"`: The number of read replica nodes you want at the completion of this - operation. For Redis (cluster mode disabled) replication groups, this is the number of - replica nodes in the replication group. For Redis (cluster mode enabled) replication + operation. For Redis OSS (cluster mode disabled) replication groups, this is the number of + replica nodes in the replication group. For Redis OSS (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups. - `"ReplicaConfiguration"`: A list of ConfigureShard objects that can be used to configure - each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard has + each shard in a Redis OSS (cluster mode enabled) replication group. The ConfigureShard has three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones. """ -function increase_replica_count( +increase_replica_count( ApplyImmediately, ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "IncreaseReplicaCount", + Dict{String,Any}( + "ApplyImmediately" => ApplyImmediately, + "ReplicationGroupId" => ReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "IncreaseReplicaCount", - Dict{String,Any}( - "ApplyImmediately" => ApplyImmediately, - "ReplicationGroupId" => ReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function increase_replica_count( ApplyImmediately, ReplicationGroupId, @@ -3105,7 +3010,7 @@ end list_allowed_node_type_modifications() list_allowed_node_type_modifications(params::Dict{String,<:Any}) -Lists all available node types that you can scale your Redis cluster's or replication +Lists all available node types that you can scale your Redis OSS cluster's or replication group's current node type. When you use the ModifyCacheCluster or ModifyReplicationGroup operations to scale your cluster or replication group, the value of the CacheNodeType parameter must be one of the node types returned by this operation. @@ -3122,15 +3027,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys scale up to. You must provide a value for either the CacheClusterId or the ReplicationGroupId. """ -function list_allowed_node_type_modifications(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +list_allowed_node_type_modifications(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "ListAllowedNodeTypeModifications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_allowed_node_type_modifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3160,16 +3062,13 @@ available state, ListTagsForResource returns an error. ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces. """ -function list_tags_for_resource( - ResourceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +list_tags_for_resource(ResourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "ListTagsForResource", Dict{String,Any}("ResourceName" => ResourceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceName, params::AbstractDict{String}; @@ -3220,9 +3119,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter must be specified with the auth-token parameter. Possible values: ROTATE - default, if no update strategy is provided SET - allowed only after ROTATE DELETE - allowed only when transitioning to RBAC For more information, see Authenticating Users - with Redis AUTH -- `"AutoMinorVersionUpgrade"`:  If you are running Redis engine version 6.0 or later, set - this parameter to yes if you want to opt-in to the next auto minor version upgrade + with Redis OSS AUTH +- `"AutoMinorVersionUpgrade"`:  If you are running Redis OSS engine version 6.0 or later, + set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions. - `"CacheNodeIdsToRemove"`: A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This parameter is only valid when NumCacheNodes is less than @@ -3247,8 +3146,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version. - `"IpDiscovery"`: The network type you choose when modifying a cluster, either ipv4 | - ipv6. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached - engine version 1.6.6 on all instances built on the Nitro system. + ipv6. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or + Memcached engine version 1.6.6 on all instances built on the Nitro system. - `"LogDeliveryConfigurations"`: Specifies the destination, format and type of the logs. - `"NewAvailabilityZones"`: This option is only supported on Memcached clusters. The list of Availability Zones where the new Memcached cache nodes are created. This parameter is @@ -3286,8 +3185,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value is less than the number of existing cache nodes, nodes are removed. If the value is equal to the number of current cache nodes, any pending add or remove requests are canceled. If you are removing cache nodes, you must use the CacheNodeIdsToRemove parameter - to provide the IDs of the specific cache nodes to remove. For clusters running Redis, this - value must be 1. For clusters running Memcached, this value must be between 1 and 40. + to provide the IDs of the specific cache nodes to remove. For clusters running Redis OSS, + this value must be 1. For clusters running Memcached, this value must be between 1 and 40. Adding or removing Memcached cache nodes can be applied immediately or as a pending operation (see ApplyImmediately). A pending operation to modify the number of cache nodes in a cluster during its maintenance window, whether by adding or removing nodes in @@ -3318,16 +3217,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnapshotWindow"`: The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your cluster. """ -function modify_cache_cluster( - CacheClusterId; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticache( +modify_cache_cluster(CacheClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "ModifyCacheCluster", Dict{String,Any}("CacheClusterId" => CacheClusterId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_cache_cluster( CacheClusterId, params::AbstractDict{String}; @@ -3362,21 +3258,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You must supply at least one parameter name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. """ -function modify_cache_parameter_group( +modify_cache_parameter_group( CacheParameterGroupName, ParameterNameValue; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "ModifyCacheParameterGroup", + Dict{String,Any}( + "CacheParameterGroupName" => CacheParameterGroupName, + "ParameterNameValue" => ParameterNameValue, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "ModifyCacheParameterGroup", - Dict{String,Any}( - "CacheParameterGroupName" => CacheParameterGroupName, - "ParameterNameValue" => ParameterNameValue, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cache_parameter_group( CacheParameterGroupName, ParameterNameValue, @@ -3416,16 +3310,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CacheSubnetGroupDescription"`: A description of the cache subnet group. - `"SubnetIds"`: The EC2 subnet IDs for the cache subnet group. """ -function modify_cache_subnet_group( +modify_cache_subnet_group( CacheSubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "ModifyCacheSubnetGroup", + Dict{String,Any}("CacheSubnetGroupName" => CacheSubnetGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "ModifyCacheSubnetGroup", - Dict{String,Any}("CacheSubnetGroupName" => CacheSubnetGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cache_subnet_group( CacheSubnetGroupName, params::AbstractDict{String}; @@ -3469,21 +3361,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Global datastore. - `"GlobalReplicationGroupDescription"`: A description of the Global datastore """ -function modify_global_replication_group( +modify_global_replication_group( ApplyImmediately, GlobalReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "ModifyGlobalReplicationGroup", + Dict{String,Any}( + "ApplyImmediately" => ApplyImmediately, + "GlobalReplicationGroupId" => GlobalReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "ModifyGlobalReplicationGroup", - Dict{String,Any}( - "ApplyImmediately" => ApplyImmediately, - "GlobalReplicationGroupId" => GlobalReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_global_replication_group( ApplyImmediately, GlobalReplicationGroupId, @@ -3511,10 +3401,10 @@ end modify_replication_group(replication_group_id) modify_replication_group(replication_group_id, params::Dict{String,<:Any}) -Modifies the settings for a replication group. This is limited to Redis 7 and newer. -Scaling for Amazon ElastiCache for Redis (cluster mode enabled) in the ElastiCache User +Modifies the settings for a replication group. This is limited to Redis OSS 7 and newer. +Scaling for Amazon ElastiCache (Redis OSS) (cluster mode enabled) in the ElastiCache User Guide ModifyReplicationGroupShardConfiguration in the ElastiCache API Reference This -operation is valid for Redis only. +operation is valid for Redis OSS only. # Arguments - `replication_group_id`: The identifier of the replication group to modify. @@ -3536,9 +3426,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter must be specified with the auth-token parameter. Possible values: ROTATE - default, if no update strategy is provided SET - allowed only after ROTATE DELETE - allowed only when transitioning to RBAC For more information, see Authenticating Users - with Redis AUTH -- `"AutoMinorVersionUpgrade"`:  If you are running Redis engine version 6.0 or later, set - this parameter to yes if you want to opt-in to the next auto minor version upgrade + with Redis OSS AUTH +- `"AutoMinorVersionUpgrade"`:  If you are running Redis OSS engine version 6.0 or later, + set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions. - `"AutomaticFailoverEnabled"`: Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure. Valid values: true | @@ -3555,18 +3445,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys running outside of an Amazon Virtual Private Cloud (Amazon VPC). Constraints: Must contain no more than 255 alphanumeric characters. Must not be Default. - `"ClusterMode"`: Enabled or Disabled. To modify cluster mode from Disabled to Enabled, - you must first set the cluster mode to Compatible. Compatible mode allows your Redis + you must first set the cluster mode to Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you - migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode - configuration and set the cluster mode to Enabled. + migrate all Redis OSS clients to use cluster mode enabled, you can then complete cluster + mode configuration and set the cluster mode to Enabled. - `"EngineVersion"`: The upgraded version of the cache engine to be run on the clusters in the replication group. Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing replication group and create it anew with the earlier engine version. - `"IpDiscovery"`: The network type you choose when modifying a cluster, either ipv4 | - ipv6. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached - engine version 1.6.6 on all instances built on the Nitro system. + ipv6. IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or + Memcached engine version 1.6.6 on all instances built on the Nitro system. - `"LogDeliveryConfigurations"`: Specifies the destination, format and type of the logs. - `"MultiAZEnabled"`: A flag to indicate MultiAZ is enabled. - `"NodeGroupId"`: Deprecated. This parameter is not used. @@ -3601,7 +3491,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 05:00-09:00 If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. - `"SnapshottingClusterId"`: The cluster ID that is used as the daily snapshot source for - the replication group. This parameter cannot be set for Redis (cluster mode enabled) + the replication group. This parameter cannot be set for Redis OSS (cluster mode enabled) replication groups. - `"TransitEncryptionEnabled"`: A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an existing cluster, you must also set @@ -3610,25 +3500,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in-transit encryption, with no downtime. You must set TransitEncryptionEnabled to true, for your existing cluster, and set TransitEncryptionMode to preferred in the same request to allow both encrypted and unencrypted connections at the same time. Once you migrate all - your Redis clients to use encrypted connections you can set the value to required to allow - encrypted connections only. Setting TransitEncryptionMode to required is a two-step process - that requires you to first set the TransitEncryptionMode to preferred, after that you can - set TransitEncryptionMode to required. + your Redis OSS clients to use encrypted connections you can set the value to required to + allow encrypted connections only. Setting TransitEncryptionMode to required is a two-step + process that requires you to first set the TransitEncryptionMode to preferred, after that + you can set TransitEncryptionMode to required. - `"UserGroupIdsToAdd"`: The ID of the user group you are associating with the replication group. - `"UserGroupIdsToRemove"`: The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can access the replication group. """ -function modify_replication_group( +modify_replication_group( ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "ModifyReplicationGroup", + Dict{String,Any}("ReplicationGroupId" => ReplicationGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "ModifyReplicationGroup", - Dict{String,Any}("ReplicationGroupId" => ReplicationGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_replication_group( ReplicationGroupId, params::AbstractDict{String}; @@ -3658,19 +3546,19 @@ shards, or rebalance the keyspaces among existing shards. At present, the only permitted value for this parameter is true. Value: true - `node_group_count`: The number of node groups (shards) that results from the modification of the shard configuration. -- `replication_group_id`: The name of the Redis (cluster mode enabled) cluster (replication - group) on which the shards are to be configured. +- `replication_group_id`: The name of the Redis OSS (cluster mode enabled) cluster + (replication group) on which the shards are to be configured. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NodeGroupsToRemove"`: If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. - NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. ElastiCache for - Redis will attempt to remove all node groups listed by NodeGroupsToRemove from the cluster. + NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. ElastiCache (Redis + OSS) will attempt to remove all node groups listed by NodeGroupsToRemove from the cluster. - `"NodeGroupsToRetain"`: If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. - NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster. ElastiCache for - Redis will attempt to remove all node groups except those listed by NodeGroupsToRetain from + NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster. ElastiCache (Redis + OSS) will attempt to remove all node groups except those listed by NodeGroupsToRetain from the cluster. - `"ReshardingConfiguration"`: Specifies the preferred availability zones for each node group in the cluster. If the value of NodeGroupCount is greater than the current number of @@ -3679,23 +3567,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys zones for you. You can specify this parameter only if the value of NodeGroupCount is greater than the current number of node groups (shards). """ -function modify_replication_group_shard_configuration( +modify_replication_group_shard_configuration( ApplyImmediately, NodeGroupCount, ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "ModifyReplicationGroupShardConfiguration", + Dict{String,Any}( + "ApplyImmediately" => ApplyImmediately, + "NodeGroupCount" => NodeGroupCount, + "ReplicationGroupId" => ReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "ModifyReplicationGroupShardConfiguration", - Dict{String,Any}( - "ApplyImmediately" => ApplyImmediately, - "NodeGroupCount" => NodeGroupCount, - "ReplicationGroupId" => ReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_replication_group_shard_configuration( ApplyImmediately, NodeGroupCount, @@ -3734,34 +3620,34 @@ This API modifies the attributes of a serverless cache. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CacheUsageLimits"`: Modify the cache usage limit for the serverless cache. - `"DailySnapshotTime"`: The daily time during which Elasticache begins taking a daily - snapshot of the serverless cache. Available for Redis only. The default is NULL, i.e. the - existing snapshot time configured for the cluster is not removed. + snapshot of the serverless cache. Available for Redis OSS and Serverless Memcached only. + The default is NULL, i.e. the existing snapshot time configured for the cluster is not + removed. - `"Description"`: User provided description for the serverless cache. Default = NULL, i.e. the existing description is not removed/modified. The description has a maximum length of 255 characters. - `"RemoveUserGroup"`: The identifier of the UserGroup to be removed from association with - the Redis serverless cache. Available for Redis only. Default is NULL. + the Redis OSS serverless cache. Available for Redis OSS only. Default is NULL. - `"SecurityGroupIds"`: The new list of VPC security groups to be associated with the serverless cache. Populating this list means the current VPC security groups will be removed. This security group is used to authorize traffic access for the VPC end-point (private-link). Default = NULL - the existing list of VPC security groups is not removed. - `"SnapshotRetentionLimit"`: The number of days for which Elasticache retains automatic - snapshots before deleting them. Available for Redis only. Default = NULL, i.e. the existing - snapshot-retention-limit will not be removed or modified. The maximum value allowed is 35 - days. + snapshots before deleting them. Available for Redis OSS and Serverless Memcached only. + Default = NULL, i.e. the existing snapshot-retention-limit will not be removed or modified. + The maximum value allowed is 35 days. - `"UserGroupId"`: The identifier of the UserGroup to be associated with the serverless - cache. Available for Redis only. Default is NULL - the existing UserGroup is not removed. + cache. Available for Redis OSS only. Default is NULL - the existing UserGroup is not + removed. """ -function modify_serverless_cache( +modify_serverless_cache( ServerlessCacheName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "ModifyServerlessCache", + Dict{String,Any}("ServerlessCacheName" => ServerlessCacheName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "ModifyServerlessCache", - Dict{String,Any}("ServerlessCacheName" => ServerlessCacheName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_serverless_cache( ServerlessCacheName, params::AbstractDict{String}; @@ -3798,14 +3684,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NoPasswordRequired"`: Indicates no password is required for the user. - `"Passwords"`: The passwords belonging to the user. You are allowed up to two. """ -function modify_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( - "ModifyUser", - Dict{String,Any}("UserId" => UserId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) = elasticache( + "ModifyUser", + Dict{String,Any}("UserId" => UserId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_user( UserId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3831,14 +3715,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserIdsToAdd"`: The list of user IDs to add to the user group. - `"UserIdsToRemove"`: The list of user IDs to remove from the user group. """ -function modify_user_group(UserGroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticache( +modify_user_group(UserGroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticache( "ModifyUserGroup", Dict{String,Any}("UserGroupId" => UserGroupId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_user_group( UserGroupId, params::AbstractDict{String}; @@ -3860,7 +3743,7 @@ end Allows you to purchase a reserved cache node offering. Reserved nodes are not eligible for cancellation and are non-refundable. For more information, see Managing Costs with Reserved -Nodes for Redis or Managing Costs with Reserved Nodes for Memcached. +Nodes for Redis OSS or Managing Costs with Reserved Nodes for Memcached. # Arguments - `reserved_cache_nodes_offering_id`: The ID of the reserved cache node offering to @@ -3876,16 +3759,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function purchase_reserved_cache_nodes_offering( +purchase_reserved_cache_nodes_offering( ReservedCacheNodesOfferingId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "PurchaseReservedCacheNodesOffering", + Dict{String,Any}("ReservedCacheNodesOfferingId" => ReservedCacheNodesOfferingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "PurchaseReservedCacheNodesOffering", - Dict{String,Any}("ReservedCacheNodesOfferingId" => ReservedCacheNodesOfferingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_reserved_cache_nodes_offering( ReservedCacheNodesOfferingId, params::AbstractDict{String}; @@ -3918,21 +3799,19 @@ Redistribute slots to ensure uniform distribution across existing shards in the - `global_replication_group_id`: The name of the Global datastore """ -function rebalance_slots_in_global_replication_group( +rebalance_slots_in_global_replication_group( ApplyImmediately, GlobalReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "RebalanceSlotsInGlobalReplicationGroup", + Dict{String,Any}( + "ApplyImmediately" => ApplyImmediately, + "GlobalReplicationGroupId" => GlobalReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "RebalanceSlotsInGlobalReplicationGroup", - Dict{String,Any}( - "ApplyImmediately" => ApplyImmediately, - "GlobalReplicationGroupId" => GlobalReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rebalance_slots_in_global_replication_group( ApplyImmediately, GlobalReplicationGroupId, @@ -3965,9 +3844,9 @@ applies any modified cache parameter groups to the cluster. The reboot operation place as soon as possible, and results in a momentary outage to the cluster. During the reboot, the cluster status is set to REBOOTING. The reboot causes the contents of the cache (for each cache node being rebooted) to be lost. When the reboot is complete, a cluster -event is created. Rebooting a cluster is currently supported on Memcached and Redis -(cluster mode disabled) clusters. Rebooting is not supported on Redis (cluster mode -enabled) clusters. If you make changes to parameters that require a Redis (cluster mode +event is created. Rebooting a cluster is currently supported on Memcached and Redis OSS +(cluster mode disabled) clusters. Rebooting is not supported on Redis OSS (cluster mode +enabled) clusters. If you make changes to parameters that require a Redis OSS (cluster mode enabled) cluster reboot for the changes to be applied, see Rebooting a Cluster for an alternate process. @@ -3983,16 +3862,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys identifier (0001, 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs. """ -function reboot_cache_cluster( +reboot_cache_cluster( CacheClusterId, CacheNodeId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "RebootCacheCluster", + Dict{String,Any}("CacheClusterId" => CacheClusterId, "CacheNodeId" => CacheNodeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "RebootCacheCluster", - Dict{String,Any}("CacheClusterId" => CacheClusterId, "CacheNodeId" => CacheNodeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_cache_cluster( CacheClusterId, CacheNodeId, @@ -4034,16 +3911,14 @@ nodes in the replication group. For more information, see Resource-level permiss resource. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "RemoveTagsFromResource", + Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "RemoveTagsFromResource", - Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceName, TagKeys, @@ -4085,16 +3960,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys their default values. If false, only the parameters listed by ParameterNameValues are reset to their default values. Valid values: true | false """ -function reset_cache_parameter_group( +reset_cache_parameter_group( CacheParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "ResetCacheParameterGroup", + Dict{String,Any}("CacheParameterGroupName" => CacheParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "ResetCacheParameterGroup", - Dict{String,Any}("CacheParameterGroupName" => CacheParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_cache_parameter_group( CacheParameterGroupName, params::AbstractDict{String}; @@ -4130,23 +4003,21 @@ Amazon EC2 security group that had been previously authorized. valid Amazon account number for this parameter. """ -function revoke_cache_security_group_ingress( +revoke_cache_security_group_ingress( CacheSecurityGroupName, EC2SecurityGroupName, EC2SecurityGroupOwnerId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "RevokeCacheSecurityGroupIngress", + Dict{String,Any}( + "CacheSecurityGroupName" => CacheSecurityGroupName, + "EC2SecurityGroupName" => EC2SecurityGroupName, + "EC2SecurityGroupOwnerId" => EC2SecurityGroupOwnerId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "RevokeCacheSecurityGroupIngress", - Dict{String,Any}( - "CacheSecurityGroupName" => CacheSecurityGroupName, - "EC2SecurityGroupName" => EC2SecurityGroupName, - "EC2SecurityGroupOwnerId" => EC2SecurityGroupOwnerId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_cache_security_group_ingress( CacheSecurityGroupName, EC2SecurityGroupName, @@ -4180,25 +4051,23 @@ Start the migration of data. # Arguments - `customer_node_endpoint_list`: List of endpoints from which data should be migrated. For - Redis (cluster mode disabled), list should have only one element. + Redis OSS (cluster mode disabled), list should have only one element. - `replication_group_id`: The ID of the replication group to which data should be migrated. """ -function start_migration( +start_migration( CustomerNodeEndpointList, ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "StartMigration", + Dict{String,Any}( + "CustomerNodeEndpointList" => CustomerNodeEndpointList, + "ReplicationGroupId" => ReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "StartMigration", - Dict{String,Any}( - "CustomerNodeEndpointList" => CustomerNodeEndpointList, - "ReplicationGroupId" => ReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_migration( CustomerNodeEndpointList, ReplicationGroupId, @@ -4236,7 +4105,7 @@ following A customer can use this operation to test automatic failover on up shards (called node groups in the ElastiCache API and Amazon CLI) in any rolling 24-hour period. If calling this operation on shards in different clusters (called replication groups in the API and CLI), the calls can be made concurrently. If calling this -operation multiple times on different shards in the same Redis (cluster mode enabled) +operation multiple times on different shards in the same Redis OSS (cluster mode enabled) replication group, the first node replacement must complete before a subsequent call can be made. To determine whether the node replacement is complete you can check Events using the Amazon ElastiCache console, the Amazon CLI, or the ElastiCache API. Look for the @@ -4258,18 +4127,16 @@ see, Testing Multi-AZ in the ElastiCache User Guide. automatic failover is being tested by this operation. """ -function test_failover( +test_failover( NodeGroupId, ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticache( + "TestFailover", + Dict{String,Any}( + "NodeGroupId" => NodeGroupId, "ReplicationGroupId" => ReplicationGroupId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "TestFailover", - Dict{String,Any}( - "NodeGroupId" => NodeGroupId, "ReplicationGroupId" => ReplicationGroupId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_failover( NodeGroupId, ReplicationGroupId, @@ -4304,21 +4171,19 @@ end - `replication_group_id`: The ID of the replication group to which data is to be migrated. """ -function test_migration( +test_migration( CustomerNodeEndpointList, ReplicationGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticache( + "TestMigration", + Dict{String,Any}( + "CustomerNodeEndpointList" => CustomerNodeEndpointList, + "ReplicationGroupId" => ReplicationGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticache( - "TestMigration", - Dict{String,Any}( - "CustomerNodeEndpointList" => CustomerNodeEndpointList, - "ReplicationGroupId" => ReplicationGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_migration( CustomerNodeEndpointList, ReplicationGroupId, diff --git a/src/services/elasticsearch_service.jl b/src/services/elasticsearch_service.jl index 0e6114edf..9536b1247 100644 --- a/src/services/elasticsearch_service.jl +++ b/src/services/elasticsearch_service.jl @@ -15,16 +15,14 @@ request. - `connection_id`: The id of the inbound connection that you want to accept. """ -function accept_inbound_cross_cluster_search_connection( +accept_inbound_cross_cluster_search_connection( ConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "PUT", + "/2015-01-01/es/ccs/inboundConnection/$(ConnectionId)/accept"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "PUT", - "/2015-01-01/es/ccs/inboundConnection/$(ConnectionId)/accept"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_inbound_cross_cluster_search_connection( ConnectionId, params::AbstractDict{String}; @@ -52,15 +50,14 @@ Elasticsearch Service Domains for more information. - `tag_list`: List of Tag that need to be added for the Elasticsearch domain. """ -function add_tags(ARN, TagList; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +add_tags(ARN, TagList; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "POST", "/2015-01-01/tags", Dict{String,Any}("ARN" => ARN, "TagList" => TagList); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_tags( ARN, TagList, @@ -90,16 +87,14 @@ Associates a package with an Amazon ES domain. DescribePackages to find this value. """ -function associate_package( +associate_package( DomainName, PackageID; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/packages/associate/$(PackageID)/$(DomainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/packages/associate/$(PackageID)/$(DomainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_package( DomainName, PackageID, @@ -127,17 +122,15 @@ endpoint. - `domain_name`: The name of the OpenSearch Service domain to provide access to. """ -function authorize_vpc_endpoint_access( +authorize_vpc_endpoint_access( Account, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/domain/$(DomainName)/authorizeVpcEndpointAccess", + Dict{String,Any}("Account" => Account); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/domain/$(DomainName)/authorizeVpcEndpointAccess", - Dict{String,Any}("Account" => Account); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_vpc_endpoint_access( Account, DomainName, @@ -167,16 +160,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: When set to True, returns the list of change IDs and properties that will be cancelled without actually cancelling the change. """ -function cancel_domain_config_change( +cancel_domain_config_change( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/domain/$(DomainName)/config/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/domain/$(DomainName)/config/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_domain_config_change( DomainName, params::AbstractDict{String}; @@ -204,17 +195,15 @@ PENDING_UPDATE state. update on. """ -function cancel_elasticsearch_service_software_update( +cancel_elasticsearch_service_software_update( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/serviceSoftwareUpdate/cancel", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/serviceSoftwareUpdate/cancel", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_elasticsearch_service_software_update( DomainName, params::AbstractDict{String}; @@ -274,17 +263,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Creating a VPC in VPC Endpoints for Amazon Elasticsearch Service Domains """ -function create_elasticsearch_domain( +create_elasticsearch_domain( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/domain", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/domain", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_elasticsearch_domain( DomainName, params::AbstractDict{String}; @@ -315,24 +302,22 @@ Creates a new cross-cluster search connection from a source domain to a destinat - `source_domain_info`: Specifies the DomainInformation for the source Elasticsearch domain. """ -function create_outbound_cross_cluster_search_connection( +create_outbound_cross_cluster_search_connection( ConnectionAlias, DestinationDomainInfo, SourceDomainInfo; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticsearch_service( + "POST", + "/2015-01-01/es/ccs/outboundConnection", + Dict{String,Any}( + "ConnectionAlias" => ConnectionAlias, + "DestinationDomainInfo" => DestinationDomainInfo, + "SourceDomainInfo" => SourceDomainInfo, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/ccs/outboundConnection", - Dict{String,Any}( - "ConnectionAlias" => ConnectionAlias, - "DestinationDomainInfo" => DestinationDomainInfo, - "SourceDomainInfo" => SourceDomainInfo, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_outbound_cross_cluster_search_connection( ConnectionAlias, DestinationDomainInfo, @@ -374,24 +359,22 @@ Create a package for use with Amazon ES domains. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PackageDescription"`: Description of the package. """ -function create_package( +create_package( PackageName, PackageSource, PackageType; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticsearch_service( + "POST", + "/2015-01-01/packages", + Dict{String,Any}( + "PackageName" => PackageName, + "PackageSource" => PackageSource, + "PackageType" => PackageType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/packages", - Dict{String,Any}( - "PackageName" => PackageName, - "PackageSource" => PackageSource, - "PackageType" => PackageType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_package( PackageName, PackageSource, @@ -432,17 +415,15 @@ Creates an Amazon OpenSearch Service-managed VPC endpoint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: Unique, case-sensitive identifier to ensure idempotency of the request. """ -function create_vpc_endpoint( +create_vpc_endpoint( DomainArn, VpcOptions; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/vpcEndpoints", + Dict{String,Any}("DomainArn" => DomainArn, "VpcOptions" => VpcOptions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/vpcEndpoints", - Dict{String,Any}("DomainArn" => DomainArn, "VpcOptions" => VpcOptions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_endpoint( DomainArn, VpcOptions, @@ -475,16 +456,14 @@ is deleted, it cannot be recovered. - `domain_name`: The name of the Elasticsearch domain that you want to permanently delete. """ -function delete_elasticsearch_domain( +delete_elasticsearch_domain( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "DELETE", + "/2015-01-01/es/domain/$(DomainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "DELETE", - "/2015-01-01/es/domain/$(DomainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_elasticsearch_domain( DomainName, params::AbstractDict{String}; @@ -509,16 +488,13 @@ any such Elasticsearch domains before deleting the role. See Deleting Elasticsea Role in VPC Endpoints for Amazon Elasticsearch Service Domains. """ -function delete_elasticsearch_service_role(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticsearch_service( +delete_elasticsearch_service_role(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "DELETE", "/2015-01-01/es/role"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_elasticsearch_service_role( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -542,16 +518,14 @@ connection. - `connection_id`: The id of the inbound connection that you want to permanently delete. """ -function delete_inbound_cross_cluster_search_connection( +delete_inbound_cross_cluster_search_connection( ConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "DELETE", + "/2015-01-01/es/ccs/inboundConnection/$(ConnectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "DELETE", - "/2015-01-01/es/ccs/inboundConnection/$(ConnectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_inbound_cross_cluster_search_connection( ConnectionId, params::AbstractDict{String}; @@ -577,16 +551,14 @@ connection. - `connection_id`: The id of the outbound connection that you want to permanently delete. """ -function delete_outbound_cross_cluster_search_connection( +delete_outbound_cross_cluster_search_connection( ConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "DELETE", + "/2015-01-01/es/ccs/outboundConnection/$(ConnectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "DELETE", - "/2015-01-01/es/ccs/outboundConnection/$(ConnectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_outbound_cross_cluster_search_connection( ConnectionId, params::AbstractDict{String}; @@ -612,14 +584,13 @@ Delete the package. find this value. """ -function delete_package(PackageID; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +delete_package(PackageID; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "DELETE", "/2015-01-01/packages/$(PackageID)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_package( PackageID, params::AbstractDict{String}; @@ -644,16 +615,13 @@ Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. - `vpc_endpoint_id`: The unique identifier of the endpoint to be deleted. """ -function delete_vpc_endpoint( - VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticsearch_service( +delete_vpc_endpoint(VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "DELETE", "/2015-01-01/es/vpcEndpoints/$(VpcEndpointId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpc_endpoint( VpcEndpointId, params::AbstractDict{String}; @@ -685,16 +653,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: NextToken is sent in case the earlier API call results contain the NextToken. It is used for pagination. """ -function describe_domain_auto_tunes( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticsearch_service( +describe_domain_auto_tunes(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/es/domain/$(DomainName)/autoTunes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_domain_auto_tunes( DomainName, params::AbstractDict{String}; @@ -725,16 +690,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is an optional parameter. If omitted, the service returns information about the most recent configuration change. """ -function describe_domain_change_progress( +describe_domain_change_progress( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/domain/$(DomainName)/progress"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/domain/$(DomainName)/progress"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_domain_change_progress( DomainName, params::AbstractDict{String}; @@ -760,16 +723,14 @@ including the domain ID, domain endpoint, and domain ARN. - `domain_name`: The name of the Elasticsearch domain for which you want information. """ -function describe_elasticsearch_domain( +describe_elasticsearch_domain( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/domain/$(DomainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/domain/$(DomainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_elasticsearch_domain( DomainName, params::AbstractDict{String}; @@ -795,16 +756,14 @@ as the state, creation date, update version, and update date for cluster options - `domain_name`: The Elasticsearch domain that you want to get information about. """ -function describe_elasticsearch_domain_config( +describe_elasticsearch_domain_config( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/domain/$(DomainName)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/domain/$(DomainName)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_elasticsearch_domain_config( DomainName, params::AbstractDict{String}; @@ -830,17 +789,15 @@ including the domain ID, domain endpoint, and domain ARN. - `domain_names`: The Elasticsearch domains for which you want information. """ -function describe_elasticsearch_domains( +describe_elasticsearch_domains( DomainNames; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/domain-info", + Dict{String,Any}("DomainNames" => DomainNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/domain-info", - Dict{String,Any}("DomainNames" => DomainNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_elasticsearch_domains( DomainNames, params::AbstractDict{String}; @@ -876,16 +833,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys modify. This should be present only if we are querying for Elasticsearch Limits for existing domain. """ -function describe_elasticsearch_instance_type_limits( +describe_elasticsearch_instance_type_limits( ElasticsearchVersion, InstanceType; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/instanceTypeLimits/$(ElasticsearchVersion)/$(InstanceType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/instanceTypeLimits/$(ElasticsearchVersion)/$(InstanceType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_elasticsearch_instance_type_limits( ElasticsearchVersion, InstanceType, @@ -918,16 +873,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: NextToken is sent in case the earlier API call results contain the NextToken. It is used for pagination. """ -function describe_inbound_cross_cluster_search_connections(; +describe_inbound_cross_cluster_search_connections(; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/ccs/inboundConnection/search"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/ccs/inboundConnection/search"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_inbound_cross_cluster_search_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -958,16 +911,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: NextToken is sent in case the earlier API call results contain the NextToken. It is used for pagination. """ -function describe_outbound_cross_cluster_search_connections(; +describe_outbound_cross_cluster_search_connections(; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/ccs/outboundConnection/search"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/ccs/outboundConnection/search"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_outbound_cross_cluster_search_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -994,14 +945,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page. """ -function describe_packages(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +describe_packages(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "POST", "/2015-01-01/packages/describe"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_packages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1029,16 +979,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"offeringId"`: The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier. """ -function describe_reserved_elasticsearch_instance_offerings(; +describe_reserved_elasticsearch_instance_offerings(; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/reservedInstanceOfferings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/reservedInstanceOfferings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_reserved_elasticsearch_instance_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1066,16 +1014,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reservationId"`: The reserved instance identifier filter value. Use this parameter to show only the reservation that matches the specified reserved Elasticsearch instance ID. """ -function describe_reserved_elasticsearch_instances(; +describe_reserved_elasticsearch_instances(; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/reservedInstances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/reservedInstances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_reserved_elasticsearch_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1098,17 +1044,14 @@ Describes one or more Amazon OpenSearch Service-managed VPC endpoints. - `vpc_endpoint_ids`: The unique identifiers of the endpoints to get information about. """ -function describe_vpc_endpoints( - VpcEndpointIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticsearch_service( +describe_vpc_endpoints(VpcEndpointIds; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "POST", "/2015-01-01/es/vpcEndpoints/describe", Dict{String,Any}("VpcEndpointIds" => VpcEndpointIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_vpc_endpoints( VpcEndpointIds, params::AbstractDict{String}; @@ -1137,16 +1080,14 @@ Dissociates a package from the Amazon ES domain. DescribePackages to find this value. """ -function dissociate_package( +dissociate_package( DomainName, PackageID; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/packages/dissociate/$(PackageID)/$(DomainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/packages/dissociate/$(PackageID)/$(DomainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function dissociate_package( DomainName, PackageID, @@ -1173,16 +1114,14 @@ DomainName to get all upgrade compatible Elasticsearch versions for that specif Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"domainName"`: """ -function get_compatible_elasticsearch_versions(; +get_compatible_elasticsearch_versions(; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/compatibleVersions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/compatibleVersions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_compatible_elasticsearch_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1211,16 +1150,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page. """ -function get_package_version_history( - PackageID; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticsearch_service( +get_package_version_history(PackageID; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/packages/$(PackageID)/history"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_package_version_history( PackageID, params::AbstractDict{String}; @@ -1249,14 +1185,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: - `"nextToken"`: """ -function get_upgrade_history(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +get_upgrade_history(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/es/upgradeDomain/$(DomainName)/history"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_upgrade_history( DomainName, params::AbstractDict{String}; @@ -1282,14 +1217,13 @@ performed on the domain. - `domain_name`: """ -function get_upgrade_status(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +get_upgrade_status(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/es/upgradeDomain/$(DomainName)/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_upgrade_status( DomainName, params::AbstractDict{String}; @@ -1315,11 +1249,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"engineType"`: Optional parameter to filter the output by domain engine type. Acceptable values are 'Elasticsearch' and 'OpenSearch'. """ -function list_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +list_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/domain"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_domain_names( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1347,16 +1280,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page. """ -function list_domains_for_package( - PackageID; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticsearch_service( +list_domains_for_package(PackageID; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/packages/$(PackageID)/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_domains_for_package( PackageID, params::AbstractDict{String}; @@ -1391,16 +1321,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: NextToken should be sent in case if earlier API call produced result containing NextToken. It is used for pagination. """ -function list_elasticsearch_instance_types( +list_elasticsearch_instance_types( ElasticsearchVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/instanceTypes/$(ElasticsearchVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/instanceTypes/$(ElasticsearchVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_elasticsearch_instance_types( ElasticsearchVersion, params::AbstractDict{String}; @@ -1427,14 +1355,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must be greater than 10 else it wont be honored. - `"nextToken"`: """ -function list_elasticsearch_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +list_elasticsearch_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/es/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_elasticsearch_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1462,16 +1389,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page. """ -function list_packages_for_domain( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticsearch_service( +list_packages_for_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/domain/$(DomainName)/packages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_packages_for_domain( DomainName, params::AbstractDict{String}; @@ -1497,15 +1421,13 @@ Returns all tags for the given Elasticsearch domain. you want to view. """ -function list_tags(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( - "GET", - "/2015-01-01/tags/", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(arn; aws_config::AbstractAWSConfig=current_aws_config()) = elasticsearch_service( + "GET", + "/2015-01-01/tags/", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1533,16 +1455,13 @@ OpenSearch Service domain through the use of an interface VPC endpoint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: Provides an identifier to allow retrieval of paginated results. """ -function list_vpc_endpoint_access( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return elasticsearch_service( +list_vpc_endpoint_access(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/es/domain/$(DomainName)/listVpcEndpointAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_vpc_endpoint_access( DomainName, params::AbstractDict{String}; @@ -1568,14 +1487,13 @@ Region. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: Identifier to allow retrieval of paginated results. """ -function list_vpc_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +list_vpc_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "GET", "/2015-01-01/es/vpcEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_vpc_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1602,16 +1520,14 @@ domain. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: Provides an identifier to allow retrieval of paginated results. """ -function list_vpc_endpoints_for_domain( +list_vpc_endpoints_for_domain( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "GET", + "/2015-01-01/es/domain/$(DomainName)/vpcEndpoints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "GET", - "/2015-01-01/es/domain/$(DomainName)/vpcEndpoints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_vpc_endpoints_for_domain( DomainName, params::AbstractDict{String}; @@ -1641,23 +1557,21 @@ Allows you to purchase reserved Elasticsearch instances. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InstanceCount"`: The number of Elasticsearch instances to reserve. """ -function purchase_reserved_elasticsearch_instance_offering( +purchase_reserved_elasticsearch_instance_offering( ReservationName, ReservedElasticsearchInstanceOfferingId; aws_config::AbstractAWSConfig=current_aws_config(), +) = elasticsearch_service( + "POST", + "/2015-01-01/es/purchaseReservedInstanceOffering", + Dict{String,Any}( + "ReservationName" => ReservationName, + "ReservedElasticsearchInstanceOfferingId" => + ReservedElasticsearchInstanceOfferingId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/purchaseReservedInstanceOffering", - Dict{String,Any}( - "ReservationName" => ReservationName, - "ReservedElasticsearchInstanceOfferingId" => - ReservedElasticsearchInstanceOfferingId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_reserved_elasticsearch_instance_offering( ReservationName, ReservedElasticsearchInstanceOfferingId, @@ -1694,16 +1608,14 @@ request. - `connection_id`: The id of the inbound connection that you want to reject. """ -function reject_inbound_cross_cluster_search_connection( +reject_inbound_cross_cluster_search_connection( ConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "PUT", + "/2015-01-01/es/ccs/inboundConnection/$(ConnectionId)/reject"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "PUT", - "/2015-01-01/es/ccs/inboundConnection/$(ConnectionId)/reject"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_inbound_cross_cluster_search_connection( ConnectionId, params::AbstractDict{String}; @@ -1731,15 +1643,14 @@ Removes the specified set of tags from the specified Elasticsearch domain. domain. """ -function remove_tags(ARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return elasticsearch_service( +remove_tags(ARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + elasticsearch_service( "POST", "/2015-01-01/tags-removal", Dict{String,Any}("ARN" => ARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_tags( ARN, TagKeys, @@ -1769,17 +1680,15 @@ interface VPC endpoint. - `domain_name`: The name of the OpenSearch Service domain. """ -function revoke_vpc_endpoint_access( +revoke_vpc_endpoint_access( Account, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/domain/$(DomainName)/revokeVpcEndpointAccess", + Dict{String,Any}("Account" => Account); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/domain/$(DomainName)/revokeVpcEndpointAccess", - Dict{String,Any}("Account" => Account); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_vpc_endpoint_access( Account, DomainName, @@ -1806,17 +1715,15 @@ Schedules a service software update for an Amazon ES domain. software. """ -function start_elasticsearch_service_software_update( +start_elasticsearch_service_software_update( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/serviceSoftwareUpdate/start", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/serviceSoftwareUpdate/start", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_elasticsearch_service_software_update( DomainName, params::AbstractDict{String}; @@ -1872,16 +1779,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Creating a VPC in VPC Endpoints for Amazon Elasticsearch Service Domains """ -function update_elasticsearch_domain_config( +update_elasticsearch_domain_config( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/domain/$(DomainName)/config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/domain/$(DomainName)/config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_elasticsearch_domain_config( DomainName, params::AbstractDict{String}; @@ -1912,17 +1817,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys GetPackageVersionHistoryResponse. - `"PackageDescription"`: New description of the package. """ -function update_package( +update_package( PackageID, PackageSource; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/packages/update", + Dict{String,Any}("PackageID" => PackageID, "PackageSource" => PackageSource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/packages/update", - Dict{String,Any}("PackageID" => PackageID, "PackageSource" => PackageSource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_package( PackageID, PackageSource, @@ -1957,17 +1860,15 @@ Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. - `vpc_options`: The security groups and/or subnets to add, remove, or modify. """ -function update_vpc_endpoint( +update_vpc_endpoint( VpcEndpointId, VpcOptions; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/vpcEndpoints/update", + Dict{String,Any}("VpcEndpointId" => VpcEndpointId, "VpcOptions" => VpcOptions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/vpcEndpoints/update", - Dict{String,Any}("VpcEndpointId" => VpcEndpointId, "VpcOptions" => VpcOptions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_vpc_endpoint( VpcEndpointId, VpcOptions, @@ -2007,17 +1908,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PerformCheckOnly"`: This flag, when set to True, indicates that an Upgrade Eligibility Check needs to be performed. This will not actually perform the Upgrade. """ -function upgrade_elasticsearch_domain( +upgrade_elasticsearch_domain( DomainName, TargetVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = elasticsearch_service( + "POST", + "/2015-01-01/es/upgradeDomain", + Dict{String,Any}("DomainName" => DomainName, "TargetVersion" => TargetVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return elasticsearch_service( - "POST", - "/2015-01-01/es/upgradeDomain", - Dict{String,Any}("DomainName" => DomainName, "TargetVersion" => TargetVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upgrade_elasticsearch_domain( DomainName, TargetVersion, diff --git a/src/services/emr.jl b/src/services/emr.jl index a0edebdfd..7845c937f 100644 --- a/src/services/emr.jl +++ b/src/services/emr.jl @@ -16,16 +16,14 @@ only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x. - `instance_fleet`: Specifies the configuration of the instance fleet. """ -function add_instance_fleet( +add_instance_fleet( ClusterId, InstanceFleet; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "AddInstanceFleet", + Dict{String,Any}("ClusterId" => ClusterId, "InstanceFleet" => InstanceFleet); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "AddInstanceFleet", - Dict{String,Any}("ClusterId" => ClusterId, "InstanceFleet" => InstanceFleet); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_instance_fleet( ClusterId, InstanceFleet, @@ -59,16 +57,14 @@ Adds one or more instance groups to a running cluster. - `job_flow_id`: Job flow in which to add the instance groups. """ -function add_instance_groups( +add_instance_groups( InstanceGroups, JobFlowId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "AddInstanceGroups", + Dict{String,Any}("InstanceGroups" => InstanceGroups, "JobFlowId" => JobFlowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "AddInstanceGroups", - Dict{String,Any}("InstanceGroups" => InstanceGroups, "JobFlowId" => JobFlowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_instance_groups( InstanceGroups, JobFlowId, @@ -123,16 +119,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys arn:partition:service:region:account:resource. For example, arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted runtime role ARN. """ -function add_job_flow_steps( - JobFlowId, Steps; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr( +add_job_flow_steps(JobFlowId, Steps; aws_config::AbstractAWSConfig=current_aws_config()) = + emr( "AddJobFlowSteps", Dict{String,Any}("JobFlowId" => JobFlowId, "Steps" => Steps); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_job_flow_steps( JobFlowId, Steps, @@ -167,14 +160,12 @@ Amazon EMR resource allocation costs. For more information, see Tag Clusters. optional value string with a maximum of 256 characters. """ -function add_tags(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "AddTags", - Dict{String,Any}("ResourceId" => ResourceId, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +add_tags(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "AddTags", + Dict{String,Any}("ResourceId" => ResourceId, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function add_tags( ResourceId, Tags, @@ -215,16 +206,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StepCancellationOption"`: The option to choose to cancel RUNNING steps. By default, the value is SEND_INTERRUPT. """ -function cancel_steps( - ClusterId, StepIds; aws_config::AbstractAWSConfig=current_aws_config() +cancel_steps(ClusterId, StepIds; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "CancelSteps", + Dict{String,Any}("ClusterId" => ClusterId, "StepIds" => StepIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "CancelSteps", - Dict{String,Any}("ClusterId" => ClusterId, "StepIds" => StepIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_steps( ClusterId, StepIds, @@ -259,16 +246,14 @@ a cluster is created. Amazon EMR Management Guide. """ -function create_security_configuration( +create_security_configuration( Name, SecurityConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "CreateSecurityConfiguration", + Dict{String,Any}("Name" => Name, "SecurityConfiguration" => SecurityConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "CreateSecurityConfiguration", - Dict{String,Any}("Name" => Name, "SecurityConfiguration" => SecurityConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_security_configuration( Name, SecurityConfiguration, @@ -346,7 +331,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions attached to the UserRole can be scoped down for each user or group using session policies. """ -function create_studio( +create_studio( AuthMode, DefaultS3Location, EngineSecurityGroupId, @@ -356,23 +341,21 @@ function create_studio( VpcId, WorkspaceSecurityGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr( + "CreateStudio", + Dict{String,Any}( + "AuthMode" => AuthMode, + "DefaultS3Location" => DefaultS3Location, + "EngineSecurityGroupId" => EngineSecurityGroupId, + "Name" => Name, + "ServiceRole" => ServiceRole, + "SubnetIds" => SubnetIds, + "VpcId" => VpcId, + "WorkspaceSecurityGroupId" => WorkspaceSecurityGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "CreateStudio", - Dict{String,Any}( - "AuthMode" => AuthMode, - "DefaultS3Location" => DefaultS3Location, - "EngineSecurityGroupId" => EngineSecurityGroupId, - "Name" => Name, - "ServiceRole" => ServiceRole, - "SubnetIds" => SubnetIds, - "VpcId" => VpcId, - "WorkspaceSecurityGroupId" => WorkspaceSecurityGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_studio( AuthMode, DefaultS3Location, @@ -437,23 +420,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DisplayName in the IAM Identity Center Identity Store API Reference. Either IdentityName or IdentityId must be specified, but not both. """ -function create_studio_session_mapping( +create_studio_session_mapping( IdentityType, SessionPolicyArn, StudioId; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr( + "CreateStudioSessionMapping", + Dict{String,Any}( + "IdentityType" => IdentityType, + "SessionPolicyArn" => SessionPolicyArn, + "StudioId" => StudioId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "CreateStudioSessionMapping", - Dict{String,Any}( - "IdentityType" => IdentityType, - "SessionPolicyArn" => SessionPolicyArn, - "StudioId" => StudioId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_studio_session_mapping( IdentityType, SessionPolicyArn, @@ -489,16 +470,13 @@ Deletes a security configuration. - `name`: The name of the security configuration. """ -function delete_security_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr( +delete_security_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + emr( "DeleteSecurityConfiguration", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_security_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -520,14 +498,12 @@ Removes an Amazon EMR Studio from the Studio metadata store. - `studio_id`: The ID of the Amazon EMR Studio. """ -function delete_studio(StudioId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "DeleteStudio", - Dict{String,Any}("StudioId" => StudioId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_studio(StudioId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "DeleteStudio", + Dict{String,Any}("StudioId" => StudioId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_studio( StudioId, params::AbstractDict{String}; @@ -563,16 +539,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Studio. For more information, see UserName and DisplayName in the IAM Identity Center Store API Reference. Either IdentityName or IdentityId must be specified. """ -function delete_studio_session_mapping( +delete_studio_session_mapping( IdentityType, StudioId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "DeleteStudioSessionMapping", + Dict{String,Any}("IdentityType" => IdentityType, "StudioId" => StudioId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "DeleteStudioSessionMapping", - Dict{String,Any}("IdentityType" => IdentityType, "StudioId" => StudioId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_studio_session_mapping( IdentityType, StudioId, @@ -604,14 +578,12 @@ settings, and so on. - `cluster_id`: The identifier of the cluster to describe. """ -function describe_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "DescribeCluster", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "DescribeCluster", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_cluster( ClusterId, params::AbstractDict{String}; @@ -649,9 +621,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"JobFlowIds"`: Return only job flows whose job flow ID is contained in this list. - `"JobFlowStates"`: Return only job flows whose state is contained in this list. """ -function describe_job_flows(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr("DescribeJobFlows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_job_flows(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr("DescribeJobFlows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_job_flows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -670,16 +641,14 @@ Provides details of a notebook execution. - `notebook_execution_id`: The unique identifier of the notebook execution. """ -function describe_notebook_execution( +describe_notebook_execution( NotebookExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "DescribeNotebookExecution", + Dict{String,Any}("NotebookExecutionId" => NotebookExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "DescribeNotebookExecution", - Dict{String,Any}("NotebookExecutionId" => NotebookExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_notebook_execution( NotebookExecutionId, params::AbstractDict{String}; @@ -713,11 +682,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token. Reserved for future use. Currently set to null. - `"ReleaseLabel"`: The target release label to be described. """ -function describe_release_label(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "DescribeReleaseLabel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_release_label(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr("DescribeReleaseLabel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_release_label( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -739,16 +705,13 @@ Provides the details of a security configuration by returning the configuration - `name`: The name of the security configuration. """ -function describe_security_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr( +describe_security_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + emr( "DescribeSecurityConfiguration", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_security_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -771,16 +734,12 @@ Provides more detail about the cluster step. - `step_id`: The identifier of the step to describe. """ -function describe_step( - ClusterId, StepId; aws_config::AbstractAWSConfig=current_aws_config() +describe_step(ClusterId, StepId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "DescribeStep", + Dict{String,Any}("ClusterId" => ClusterId, "StepId" => StepId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "DescribeStep", - Dict{String,Any}("ClusterId" => ClusterId, "StepId" => StepId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_step( ClusterId, StepId, @@ -812,14 +771,12 @@ URL, and so on. - `studio_id`: The Amazon EMR Studio ID. """ -function describe_studio(StudioId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "DescribeStudio", - Dict{String,Any}("StudioId" => StudioId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_studio(StudioId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "DescribeStudio", + Dict{String,Any}("StudioId" => StudioId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_studio( StudioId, params::AbstractDict{String}; @@ -846,16 +803,13 @@ Returns the auto-termination policy for an Amazon EMR cluster. policy will be fetched. """ -function get_auto_termination_policy( - ClusterId; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr( +get_auto_termination_policy(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr( "GetAutoTerminationPolicy", Dict{String,Any}("ClusterId" => ClusterId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_auto_termination_policy( ClusterId, params::AbstractDict{String}; @@ -880,15 +834,13 @@ account in the current Region. For more information see Configure Block Public A Amazon EMR in the Amazon EMR Management Guide. """ -function get_block_public_access_configuration(; +get_block_public_access_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "GetBlockPublicAccessConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "GetBlockPublicAccessConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_block_public_access_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -919,16 +871,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys runtime role ARN is a combination of account ID, role name, and role type using the following format: arn:partition:service:region:account:resource. """ -function get_cluster_session_credentials( +get_cluster_session_credentials( ClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "GetClusterSessionCredentials", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "GetClusterSessionCredentials", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cluster_session_credentials( ClusterId, params::AbstractDict{String}; @@ -955,16 +905,13 @@ Fetches the attached managed scaling policy for an Amazon EMR cluster. be fetched. """ -function get_managed_scaling_policy( - ClusterId; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr( +get_managed_scaling_policy(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr( "GetManagedScalingPolicy", Dict{String,Any}("ClusterId" => ClusterId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_managed_scaling_policy( ClusterId, params::AbstractDict{String}; @@ -999,16 +946,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UserName and DisplayName in the IAM Identity Center Identity Store API Reference. Either IdentityName or IdentityId must be specified. """ -function get_studio_session_mapping( +get_studio_session_mapping( IdentityType, StudioId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "GetStudioSessionMapping", + Dict{String,Any}("IdentityType" => IdentityType, "StudioId" => StudioId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "GetStudioSessionMapping", - Dict{String,Any}("IdentityType" => IdentityType, "StudioId" => StudioId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_studio_session_mapping( IdentityType, StudioId, @@ -1042,16 +987,12 @@ Provides information about the bootstrap actions associated with a cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Marker"`: The pagination token that indicates the next set of results to retrieve. """ -function list_bootstrap_actions( - ClusterId; aws_config::AbstractAWSConfig=current_aws_config() +list_bootstrap_actions(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "ListBootstrapActions", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "ListBootstrapActions", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bootstrap_actions( ClusterId, params::AbstractDict{String}; @@ -1086,9 +1027,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CreatedBefore"`: The creation date and time end value filter for listing clusters. - `"Marker"`: The pagination token that indicates the next set of results to retrieve. """ -function list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1112,14 +1052,12 @@ versions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Marker"`: The pagination token that indicates the next set of results to retrieve. """ -function list_instance_fleets(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ListInstanceFleets", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_instance_fleets(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "ListInstanceFleets", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_instance_fleets( ClusterId, params::AbstractDict{String}; @@ -1148,14 +1086,12 @@ Provides all available details about the instance groups in a cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Marker"`: The pagination token that indicates the next set of results to retrieve. """ -function list_instance_groups(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ListInstanceGroups", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_instance_groups(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "ListInstanceGroups", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_instance_groups( ClusterId, params::AbstractDict{String}; @@ -1194,14 +1130,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with this request. - `"Marker"`: The pagination token that indicates the next set of results to retrieve. """ -function list_instances(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ListInstances", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_instances(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "ListInstances", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_instances( ClusterId, params::AbstractDict{String}; @@ -1248,11 +1182,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"To"`: The end of time range filter for listing notebook executions. The default is the current timestamp. """ -function list_notebook_executions(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ListNotebookExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_notebook_executions(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr("ListNotebookExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_notebook_executions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1284,9 +1215,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys filtering parameters are different from the original request, or if the NextToken is expired or tampered with. """ -function list_release_labels(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr("ListReleaseLabels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_release_labels(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr("ListReleaseLabels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_release_labels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1308,11 +1238,9 @@ ListSecurityConfigurations calls. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Marker"`: The pagination token that indicates the set of results to retrieve. """ -function list_security_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ListSecurityConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_security_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "ListSecurityConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_security_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1347,14 +1275,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys length of the array. - `"StepStates"`: The filter to limit the step list based on certain states. """ -function list_steps(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ListSteps", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_steps(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "ListSteps", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_steps( ClusterId, params::AbstractDict{String}; @@ -1384,11 +1310,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Marker"`: The pagination token that indicates the set of results to retrieve. - `"StudioId"`: The ID of the Amazon EMR Studio. """ -function list_studio_session_mappings(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ListStudioSessionMappings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_studio_session_mappings(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr("ListStudioSessionMappings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_studio_session_mappings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1411,9 +1334,8 @@ The list includes details such as ID, Studio Access URL, and creation time for e Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Marker"`: The pagination token that indicates the set of results to retrieve. """ -function list_studios(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr("ListStudios"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_studios(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr("ListStudios"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_studios( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1440,16 +1362,14 @@ Web Services Region and Amazon EMR release. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Marker"`: The pagination token that marks the next set of results to retrieve. """ -function list_supported_instance_types( +list_supported_instance_types( ReleaseLabel; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "ListSupportedInstanceTypes", + Dict{String,Any}("ReleaseLabel" => ReleaseLabel); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "ListSupportedInstanceTypes", - Dict{String,Any}("ReleaseLabel" => ReleaseLabel); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_supported_instance_types( ReleaseLabel, params::AbstractDict{String}; @@ -1482,14 +1402,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this parameter while steps are running or the ActionOnFailure setting may not behave as expected. For more information see StepActionOnFailure. """ -function modify_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ModifyCluster", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "ModifyCluster", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_cluster( ClusterId, params::AbstractDict{String}; @@ -1519,16 +1437,14 @@ EMR releases 4.8.0 and later, excluding 5.0.x versions. - `instance_fleet`: The configuration parameters of the instance fleet. """ -function modify_instance_fleet( +modify_instance_fleet( ClusterId, InstanceFleet; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "ModifyInstanceFleet", + Dict{String,Any}("ClusterId" => ClusterId, "InstanceFleet" => InstanceFleet); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "ModifyInstanceFleet", - Dict{String,Any}("ClusterId" => ClusterId, "InstanceFleet" => InstanceFleet); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_instance_fleet( ClusterId, InstanceFleet, @@ -1564,11 +1480,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClusterId"`: The ID of the cluster to which the instance group belongs. - `"InstanceGroups"`: Instance groups to change. """ -function modify_instance_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "ModifyInstanceGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +modify_instance_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr("ModifyInstanceGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function modify_instance_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1597,23 +1510,21 @@ CloudWatch metric. scaling policy is applied. """ -function put_auto_scaling_policy( +put_auto_scaling_policy( AutoScalingPolicy, ClusterId, InstanceGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr( + "PutAutoScalingPolicy", + Dict{String,Any}( + "AutoScalingPolicy" => AutoScalingPolicy, + "ClusterId" => ClusterId, + "InstanceGroupId" => InstanceGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "PutAutoScalingPolicy", - Dict{String,Any}( - "AutoScalingPolicy" => AutoScalingPolicy, - "ClusterId" => ClusterId, - "InstanceGroupId" => InstanceGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_auto_scaling_policy( AutoScalingPolicy, ClusterId, @@ -1657,16 +1568,13 @@ termination options, see Control cluster termination. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AutoTerminationPolicy"`: Specifies the auto-termination policy to attach to the cluster. """ -function put_auto_termination_policy( - ClusterId; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr( +put_auto_termination_policy(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr( "PutAutoTerminationPolicy", Dict{String,Any}("ClusterId" => ClusterId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_auto_termination_policy( ClusterId, params::AbstractDict{String}; @@ -1706,18 +1614,14 @@ Access for Amazon EMR in the Amazon EMR Management Guide. enabled by default in that Region. """ -function put_block_public_access_configuration( +put_block_public_access_configuration( BlockPublicAccessConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "PutBlockPublicAccessConfiguration", + Dict{String,Any}("BlockPublicAccessConfiguration" => BlockPublicAccessConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "PutBlockPublicAccessConfiguration", - Dict{String,Any}( - "BlockPublicAccessConfiguration" => BlockPublicAccessConfiguration - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_block_public_access_configuration( BlockPublicAccessConfiguration, params::AbstractDict{String}; @@ -1754,18 +1658,16 @@ node cannot be scaled after initial configuration. - `managed_scaling_policy`: Specifies the constraints for the managed scaling policy. """ -function put_managed_scaling_policy( +put_managed_scaling_policy( ClusterId, ManagedScalingPolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "PutManagedScalingPolicy", + Dict{String,Any}( + "ClusterId" => ClusterId, "ManagedScalingPolicy" => ManagedScalingPolicy + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "PutManagedScalingPolicy", - Dict{String,Any}( - "ClusterId" => ClusterId, "ManagedScalingPolicy" => ManagedScalingPolicy - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_managed_scaling_policy( ClusterId, ManagedScalingPolicy, @@ -1802,16 +1704,14 @@ cluster. is applied. """ -function remove_auto_scaling_policy( +remove_auto_scaling_policy( ClusterId, InstanceGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "RemoveAutoScalingPolicy", + Dict{String,Any}("ClusterId" => ClusterId, "InstanceGroupId" => InstanceGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "RemoveAutoScalingPolicy", - Dict{String,Any}("ClusterId" => ClusterId, "InstanceGroupId" => InstanceGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_auto_scaling_policy( ClusterId, InstanceGroupId, @@ -1845,16 +1745,14 @@ Removes an auto-termination policy from an Amazon EMR cluster. policy will be removed. """ -function remove_auto_termination_policy( +remove_auto_termination_policy( ClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "RemoveAutoTerminationPolicy", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "RemoveAutoTerminationPolicy", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_auto_termination_policy( ClusterId, params::AbstractDict{String}; @@ -1881,16 +1779,14 @@ end be removed. """ -function remove_managed_scaling_policy( +remove_managed_scaling_policy( ClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "RemoveManagedScalingPolicy", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "RemoveManagedScalingPolicy", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_managed_scaling_policy( ClusterId, params::AbstractDict{String}; @@ -1921,16 +1817,12 @@ following example removes the stack tag with value Prod from a cluster: - `tag_keys`: A list of tag keys to remove from the resource. """ -function remove_tags( - ResourceId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +remove_tags(ResourceId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "RemoveTags", + Dict{String,Any}("ResourceId" => ResourceId, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "RemoveTags", - Dict{String,Any}("ResourceId" => ResourceId, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags( ResourceId, TagKeys, @@ -2089,14 +1981,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Understanding the Amazon EMR cluster VisibleToAllUsers setting in the Amazon EMR Management Guide. """ -function run_job_flow(Instances, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "RunJobFlow", - Dict{String,Any}("Instances" => Instances, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +run_job_flow(Instances, Name; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "RunJobFlow", + Dict{String,Any}("Instances" => Instances, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function run_job_flow( Instances, Name, @@ -2133,21 +2023,19 @@ see Managing Cluster Termination in the Amazon EMR Management Guide. cluster after all steps are executed. """ -function set_keep_job_flow_alive_when_no_steps( +set_keep_job_flow_alive_when_no_steps( JobFlowIds, KeepJobFlowAliveWhenNoSteps; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr( + "SetKeepJobFlowAliveWhenNoSteps", + Dict{String,Any}( + "JobFlowIds" => JobFlowIds, + "KeepJobFlowAliveWhenNoSteps" => KeepJobFlowAliveWhenNoSteps, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "SetKeepJobFlowAliveWhenNoSteps", - Dict{String,Any}( - "JobFlowIds" => JobFlowIds, - "KeepJobFlowAliveWhenNoSteps" => KeepJobFlowAliveWhenNoSteps, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_keep_job_flow_alive_when_no_steps( JobFlowIds, KeepJobFlowAliveWhenNoSteps, @@ -2195,18 +2083,16 @@ information, see Managing Cluster Termination in the Amazon EMR Management Guide intervention, or job-flow error. """ -function set_termination_protection( +set_termination_protection( JobFlowIds, TerminationProtected; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "SetTerminationProtection", + Dict{String,Any}( + "JobFlowIds" => JobFlowIds, "TerminationProtected" => TerminationProtected + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "SetTerminationProtection", - Dict{String,Any}( - "JobFlowIds" => JobFlowIds, "TerminationProtected" => TerminationProtected - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_termination_protection( JobFlowIds, TerminationProtected, @@ -2253,19 +2139,17 @@ node replacement in the Amazon EMR Management Guide. node replacement. """ -function set_unhealthy_node_replacement( +set_unhealthy_node_replacement( JobFlowIds, UnhealthyNodeReplacement; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "SetUnhealthyNodeReplacement", + Dict{String,Any}( + "JobFlowIds" => JobFlowIds, + "UnhealthyNodeReplacement" => UnhealthyNodeReplacement, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "SetUnhealthyNodeReplacement", - Dict{String,Any}( - "JobFlowIds" => JobFlowIds, - "UnhealthyNodeReplacement" => UnhealthyNodeReplacement, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_unhealthy_node_replacement( JobFlowIds, UnhealthyNodeReplacement, @@ -2313,18 +2197,14 @@ the Amazon EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Gu actions on the cluster. """ -function set_visible_to_all_users( +set_visible_to_all_users( JobFlowIds, VisibleToAllUsers; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "SetVisibleToAllUsers", + Dict{String,Any}("JobFlowIds" => JobFlowIds, "VisibleToAllUsers" => VisibleToAllUsers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "SetVisibleToAllUsers", - Dict{String,Any}( - "JobFlowIds" => JobFlowIds, "VisibleToAllUsers" => VisibleToAllUsers - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_visible_to_all_users( JobFlowIds, VisibleToAllUsers, @@ -2385,18 +2265,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters. """ -function start_notebook_execution( +start_notebook_execution( ExecutionEngine, ServiceRole; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "StartNotebookExecution", + Dict{String,Any}("ExecutionEngine" => ExecutionEngine, "ServiceRole" => ServiceRole); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "StartNotebookExecution", - Dict{String,Any}( - "ExecutionEngine" => ExecutionEngine, "ServiceRole" => ServiceRole - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_notebook_execution( ExecutionEngine, ServiceRole, @@ -2429,16 +2305,14 @@ Stops a notebook execution. - `notebook_execution_id`: The unique identifier of the notebook execution. """ -function stop_notebook_execution( +stop_notebook_execution( NotebookExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr( + "StopNotebookExecution", + Dict{String,Any}("NotebookExecutionId" => NotebookExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "StopNotebookExecution", - Dict{String,Any}("NotebookExecutionId" => NotebookExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_notebook_execution( NotebookExecutionId, params::AbstractDict{String}; @@ -2474,14 +2348,12 @@ allocated resources, such as Amazon EC2 instances. - `job_flow_ids`: A list of job flows to be shut down. """ -function terminate_job_flows(JobFlowIds; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "TerminateJobFlows", - Dict{String,Any}("JobFlowIds" => JobFlowIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +terminate_job_flows(JobFlowIds; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "TerminateJobFlows", + Dict{String,Any}("JobFlowIds" => JobFlowIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function terminate_job_flows( JobFlowIds, params::AbstractDict{String}; @@ -2520,14 +2392,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with the Studio. The list order does not matter. A Studio can have a maximum of 5 subnets. The subnets must belong to the same VPC as the Studio. """ -function update_studio(StudioId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr( - "UpdateStudio", - Dict{String,Any}("StudioId" => StudioId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_studio(StudioId; aws_config::AbstractAWSConfig=current_aws_config()) = emr( + "UpdateStudio", + Dict{String,Any}("StudioId" => StudioId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_studio( StudioId, params::AbstractDict{String}; @@ -2565,23 +2435,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UserName and DisplayName in the IAM Identity Center Identity Store API Reference. Either IdentityName or IdentityId must be specified. """ -function update_studio_session_mapping( +update_studio_session_mapping( IdentityType, SessionPolicyArn, StudioId; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr( + "UpdateStudioSessionMapping", + Dict{String,Any}( + "IdentityType" => IdentityType, + "SessionPolicyArn" => SessionPolicyArn, + "StudioId" => StudioId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr( - "UpdateStudioSessionMapping", - Dict{String,Any}( - "IdentityType" => IdentityType, - "SessionPolicyArn" => SessionPolicyArn, - "StudioId" => StudioId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_studio_session_mapping( IdentityType, SessionPolicyArn, diff --git a/src/services/emr_containers.jl b/src/services/emr_containers.jl index 21ce72c76..5e78181d5 100644 --- a/src/services/emr_containers.jl +++ b/src/services/emr_containers.jl @@ -17,16 +17,14 @@ SparkSQL query, that you submit to Amazon EMR on EKS. canceled. """ -function cancel_job_run( +cancel_job_run( jobRunId, virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "DELETE", + "/virtualclusters/$(virtualClusterId)/jobruns/$(jobRunId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "DELETE", - "/virtualclusters/$(virtualClusterId)/jobruns/$(jobRunId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_job_run( jobRunId, virtualClusterId, @@ -61,21 +59,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"kmsKeyArn"`: The KMS key ARN used to encrypt the job template. - `"tags"`: The tags that are associated with the job template. """ -function create_job_template( +create_job_template( clientToken, jobTemplateData, name; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "POST", + "/jobtemplates", + Dict{String,Any}( + "clientToken" => clientToken, + "jobTemplateData" => jobTemplateData, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "POST", - "/jobtemplates", - Dict{String,Any}( - "clientToken" => clientToken, - "jobTemplateData" => jobTemplateData, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_job_template( clientToken, jobTemplateData, @@ -126,7 +122,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys existing configurations. - `"tags"`: The tags of the managed endpoint. """ -function create_managed_endpoint( +create_managed_endpoint( clientToken, executionRoleArn, name, @@ -134,21 +130,19 @@ function create_managed_endpoint( type, virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr_containers( + "POST", + "/virtualclusters/$(virtualClusterId)/endpoints", + Dict{String,Any}( + "clientToken" => clientToken, + "executionRoleArn" => executionRoleArn, + "name" => name, + "releaseLabel" => releaseLabel, + "type" => type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "POST", - "/virtualclusters/$(virtualClusterId)/endpoints", - Dict{String,Any}( - "clientToken" => clientToken, - "executionRoleArn" => executionRoleArn, - "name" => name, - "releaseLabel" => releaseLabel, - "type" => type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_managed_endpoint( clientToken, executionRoleArn, @@ -199,24 +193,22 @@ re-use a security setup each time you create a virtual cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The tags to add to the security configuration. """ -function create_security_configuration( +create_security_configuration( clientToken, name, securityConfigurationData; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr_containers( + "POST", + "/securityconfigurations", + Dict{String,Any}( + "clientToken" => clientToken, + "name" => name, + "securityConfigurationData" => securityConfigurationData, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "POST", - "/securityconfigurations", - Dict{String,Any}( - "clientToken" => clientToken, - "name" => name, - "securityConfigurationData" => securityConfigurationData, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_security_configuration( clientToken, name, @@ -263,21 +255,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"securityConfigurationId"`: The ID of the security configuration. - `"tags"`: The tags assigned to the virtual cluster. """ -function create_virtual_cluster( +create_virtual_cluster( clientToken, containerProvider, name; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "POST", + "/virtualclusters", + Dict{String,Any}( + "clientToken" => clientToken, + "containerProvider" => containerProvider, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "POST", - "/virtualclusters", - Dict{String,Any}( - "clientToken" => clientToken, - "containerProvider" => containerProvider, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_virtual_cluster( clientToken, containerProvider, @@ -317,14 +307,13 @@ request. - `template_id`: The ID of the job template that will be deleted. """ -function delete_job_template(templateId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_containers( +delete_job_template(templateId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_containers( "DELETE", "/jobtemplates/$(templateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_job_template( templateId, params::AbstractDict{String}; @@ -351,16 +340,14 @@ to Amazon EMR on EKS so that Amazon EMR Studio can communicate with your virtual - `virtual_cluster_id`: The ID of the endpoint's virtual cluster. """ -function delete_managed_endpoint( +delete_managed_endpoint( endpointId, virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "DELETE", + "/virtualclusters/$(virtualClusterId)/endpoints/$(endpointId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "DELETE", - "/virtualclusters/$(virtualClusterId)/endpoints/$(endpointId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_managed_endpoint( endpointId, virtualClusterId, @@ -390,16 +377,14 @@ namespaces to meet your requirements. - `virtual_cluster_id`: The ID of the virtual cluster that will be deleted. """ -function delete_virtual_cluster( +delete_virtual_cluster( virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "DELETE", + "/virtualclusters/$(virtualClusterId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "DELETE", - "/virtualclusters/$(virtualClusterId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_virtual_cluster( virtualClusterId, params::AbstractDict{String}; @@ -426,16 +411,14 @@ jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS. - `virtual_cluster_id`: The ID of the virtual cluster for which the job run is submitted. """ -function describe_job_run( +describe_job_run( jobRunId, virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "GET", + "/virtualclusters/$(virtualClusterId)/jobruns/$(jobRunId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "GET", - "/virtualclusters/$(virtualClusterId)/jobruns/$(jobRunId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_job_run( jobRunId, virtualClusterId, @@ -464,16 +447,13 @@ certain values in StartJobRun API request. - `template_id`: The ID of the job template that will be described. """ -function describe_job_template( - templateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr_containers( +describe_job_template(templateId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_containers( "GET", "/jobtemplates/$(templateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_job_template( templateId, params::AbstractDict{String}; @@ -501,16 +481,14 @@ communicate with your virtual cluster. - `virtual_cluster_id`: The ID of the endpoint's virtual cluster. """ -function describe_managed_endpoint( +describe_managed_endpoint( endpointId, virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "GET", + "/virtualclusters/$(virtualClusterId)/endpoints/$(endpointId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "GET", - "/virtualclusters/$(virtualClusterId)/endpoints/$(endpointId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_managed_endpoint( endpointId, virtualClusterId, @@ -540,16 +518,14 @@ cluster. - `security_configuration_id`: The ID of the security configuration. """ -function describe_security_configuration( +describe_security_configuration( securityConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "GET", + "/securityconfigurations/$(securityConfigurationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "GET", - "/securityconfigurations/$(securityConfigurationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_security_configuration( securityConfigurationId, params::AbstractDict{String}; @@ -578,16 +554,14 @@ virtual clusters the same way you model Kubernetes namespaces to meet your requi - `virtual_cluster_id`: The ID of the virtual cluster that will be described. """ -function describe_virtual_cluster( +describe_virtual_cluster( virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "GET", + "/virtualclusters/$(virtualClusterId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "GET", - "/virtualclusters/$(virtualClusterId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_virtual_cluster( virtualClusterId, params::AbstractDict{String}; @@ -624,25 +598,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"logContext"`: String identifier used to separate sections of the execution logs uploaded to S3. """ -function get_managed_endpoint_session_credentials( +get_managed_endpoint_session_credentials( credentialType, endpointId, executionRoleArn, virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr_containers( + "POST", + "/virtualclusters/$(virtualClusterId)/endpoints/$(endpointId)/credentials", + Dict{String,Any}( + "credentialType" => credentialType, + "executionRoleArn" => executionRoleArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "POST", - "/virtualclusters/$(virtualClusterId)/endpoints/$(endpointId)/credentials", - Dict{String,Any}( - "credentialType" => credentialType, - "executionRoleArn" => executionRoleArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_managed_endpoint_session_credentials( credentialType, endpointId, @@ -689,14 +661,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of job runs to return. - `"states"`: The states of the job run. """ -function list_job_runs(virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_containers( +list_job_runs(virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_containers( "GET", "/virtualclusters/$(virtualClusterId)/jobruns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_job_runs( virtualClusterId, params::AbstractDict{String}; @@ -727,11 +698,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of job templates that can be listed. - `"nextToken"`: The token for the next set of job templates to return. """ -function list_job_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_containers( - "GET", "/jobtemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_job_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = emr_containers( + "GET", "/jobtemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_job_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -764,16 +733,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"states"`: The states of the managed endpoints. - `"types"`: The types of the managed endpoints. """ -function list_managed_endpoints( +list_managed_endpoints( virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "GET", + "/virtualclusters/$(virtualClusterId)/endpoints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "GET", - "/virtualclusters/$(virtualClusterId)/endpoints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_managed_endpoints( virtualClusterId, params::AbstractDict{String}; @@ -804,14 +771,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of security configurations the operation can list. - `"nextToken"`: The token for the next set of security configurations to return. """ -function list_security_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_containers( +list_security_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_containers( "GET", "/securityconfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_security_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -834,16 +800,13 @@ Lists the tags assigned to the resources. - `resource_arn`: The ARN of tagged resources. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr_containers( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_containers( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -882,11 +845,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of virtual clusters to return. - `"states"`: The states of the requested virtual clusters. """ -function list_virtual_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_containers( +list_virtual_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_containers( "GET", "/virtualclusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_virtual_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -922,17 +884,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retryPolicyConfiguration"`: The retry policy configuration for the job run. - `"tags"`: The tags assigned to job runs. """ -function start_job_run( +start_job_run( clientToken, virtualClusterId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_containers( + "POST", + "/virtualclusters/$(virtualClusterId)/jobruns", + Dict{String,Any}("clientToken" => clientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_containers( - "POST", - "/virtualclusters/$(virtualClusterId)/jobruns", - Dict{String,Any}("clientToken" => clientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_job_run( clientToken, virtualClusterId, @@ -968,15 +928,14 @@ resource type. You can then search and filter the resources based on the tags th - `tags`: The tags assigned to resources. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_containers( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_containers( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1003,17 +962,14 @@ Removes tags from resources. - `tag_keys`: The tag keys of the resources. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr_containers( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_containers( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/emr_serverless.jl b/src/services/emr_serverless.jl index 7a00df1ad..d62b56997 100644 --- a/src/services/emr_serverless.jl +++ b/src/services/emr_serverless.jl @@ -15,16 +15,14 @@ Cancels a job run. - `job_run_id`: The ID of the job run to cancel. """ -function cancel_job_run( +cancel_job_run( applicationId, jobRunId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_serverless( + "DELETE", + "/applications/$(applicationId)/jobruns/$(jobRunId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_serverless( - "DELETE", - "/applications/$(applicationId)/jobruns/$(jobRunId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_job_run( applicationId, jobRunId, @@ -82,19 +80,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys details in this parameter for each worker type, or in imageConfiguration for all worker types. """ -function create_application( +create_application( clientToken, releaseLabel, type; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_serverless( + "POST", + "/applications", + Dict{String,Any}( + "clientToken" => clientToken, "releaseLabel" => releaseLabel, "type" => type + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_serverless( - "POST", - "/applications", - Dict{String,Any}( - "clientToken" => clientToken, "releaseLabel" => releaseLabel, "type" => type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( clientToken, releaseLabel, @@ -132,16 +128,13 @@ be deleted. - `application_id`: The ID of the application that will be deleted. """ -function delete_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr_serverless( +delete_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "DELETE", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( applicationId, params::AbstractDict{String}; @@ -166,14 +159,13 @@ Displays detailed information about a specified application. - `application_id`: The ID of the application that will be described. """ -function get_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_serverless( +get_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "GET", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_application( applicationId, params::AbstractDict{String}; @@ -208,16 +200,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"attempt"`: An optimal parameter that indicates the amount of attempts for the job. If not specified, this value defaults to the attempt of the latest job. """ -function get_dashboard_for_job_run( +get_dashboard_for_job_run( applicationId, jobRunId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_serverless( + "GET", + "/applications/$(applicationId)/jobruns/$(jobRunId)/dashboard"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_serverless( - "GET", - "/applications/$(applicationId)/jobruns/$(jobRunId)/dashboard"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_dashboard_for_job_run( applicationId, jobRunId, @@ -248,16 +238,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"attempt"`: An optimal parameter that indicates the amount of attempts for the job. If not specified, this value defaults to the attempt of the latest job. """ -function get_job_run( - applicationId, jobRunId; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr_serverless( +get_job_run(applicationId, jobRunId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "GET", "/applications/$(applicationId)/jobruns/$(jobRunId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_job_run( applicationId, jobRunId, @@ -286,11 +273,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"states"`: An optional filter for application states. Note that if this filter contains multiple states, the resulting list will be grouped by the state. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_serverless( - "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = emr_serverless( + "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -318,16 +303,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of job run attempts to list. - `"nextToken"`: The token for the next set of job run attempt results. """ -function list_job_run_attempts( +list_job_run_attempts( applicationId, jobRunId; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_serverless( + "GET", + "/applications/$(applicationId)/jobruns/$(jobRunId)/attempts"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_serverless( - "GET", - "/applications/$(applicationId)/jobruns/$(jobRunId)/attempts"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_job_run_attempts( applicationId, jobRunId, @@ -362,14 +345,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"states"`: An optional filter for job run states. Note that if this filter contains multiple states, the resulting list will be grouped by the state. """ -function list_job_runs(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_serverless( +list_job_runs(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "GET", "/applications/$(applicationId)/jobruns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_job_runs( applicationId, params::AbstractDict{String}; @@ -396,16 +378,13 @@ Lists the tags assigned to the resources. runs. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr_serverless( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -430,16 +409,13 @@ Starts a specified application and initializes initial capacity if configured. - `application_id`: The ID of the application to start. """ -function start_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr_serverless( +start_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "POST", "/applications/$(applicationId)/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_application( applicationId, params::AbstractDict{String}; @@ -477,22 +453,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retryPolicy"`: The retry policy when job run starts. - `"tags"`: The tags assigned to the job run. """ -function start_job_run( +start_job_run( applicationId, clientToken, executionRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = emr_serverless( + "POST", + "/applications/$(applicationId)/jobruns", + Dict{String,Any}("clientToken" => clientToken, "executionRoleArn" => executionRoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_serverless( - "POST", - "/applications/$(applicationId)/jobruns", - Dict{String,Any}( - "clientToken" => clientToken, "executionRoleArn" => executionRoleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_job_run( applicationId, clientToken, @@ -528,14 +500,13 @@ and running jobs must be completed or cancelled before stopping an application. - `application_id`: The ID of the application to stop. """ -function stop_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_serverless( +stop_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "POST", "/applications/$(applicationId)/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_application( applicationId, params::AbstractDict{String}; @@ -567,15 +538,14 @@ identify a specific resource based on the tags you've assigned to it. - `tags`: The tags to add to the resource. A tag is an array of key-value pairs. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return emr_serverless( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -604,17 +574,14 @@ Removes tags from resources. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return emr_serverless( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + emr_serverless( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -672,17 +639,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys details in this parameter for each worker type, or in imageConfiguration for all worker types. """ -function update_application( +update_application( applicationId, clientToken; aws_config::AbstractAWSConfig=current_aws_config() +) = emr_serverless( + "PATCH", + "/applications/$(applicationId)", + Dict{String,Any}("clientToken" => clientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return emr_serverless( - "PATCH", - "/applications/$(applicationId)", - Dict{String,Any}("clientToken" => clientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application( applicationId, clientToken, diff --git a/src/services/entityresolution.jl b/src/services/entityresolution.jl index 73984711a..f6964b124 100644 --- a/src/services/entityresolution.jl +++ b/src/services/entityresolution.jl @@ -17,7 +17,9 @@ GetPolicy API. - `arn`: The Amazon Resource Name (ARN) of the resource that will be accessed by the principal. - `effect`: Determines whether the permissions specified in the policy are to be allowed - (Allow) or denied (Deny). + (Allow) or denied (Deny). If you set the value of the effect parameter to Deny for the + AddPolicyStatement operation, you must also set the value of the effect parameter in the + policy to Deny for the PutPolicy operation. - `principal`: The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN. - `statement_id`: A statement identifier that differentiates the statement from others in @@ -27,22 +29,20 @@ GetPolicy API. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"condition"`: A set of condition keys that you can use in key policies. """ -function add_policy_statement( +add_policy_statement( action, arn, effect, principal, statementId; aws_config::AbstractAWSConfig=current_aws_config(), +) = entityresolution( + "POST", + "/policies/$(arn)/$(statementId)", + Dict{String,Any}("action" => action, "effect" => effect, "principal" => principal); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "POST", - "/policies/$(arn)/$(statementId)", - Dict{String,Any}("action" => action, "effect" => effect, "principal" => principal); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_policy_statement( action, arn, @@ -83,17 +83,15 @@ Deletes multiple unique IDs in a matching workflow. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"inputSource"`: The input source for the batch delete unique ID operation. """ -function batch_delete_unique_id( +batch_delete_unique_id( uniqueIds, workflowName; aws_config::AbstractAWSConfig=current_aws_config() +) = entityresolution( + "DELETE", + "/matchingworkflows/$(workflowName)/uniqueids", + Dict{String,Any}("headers" => Dict{String,Any}("uniqueIds" => uniqueIds)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "DELETE", - "/matchingworkflows/$(workflowName)/uniqueids", - Dict{String,Any}("headers" => Dict{String,Any}("uniqueIds" => uniqueIds)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_unique_id( uniqueIds, workflowName, @@ -116,20 +114,18 @@ function batch_delete_unique_id( end """ - create_id_mapping_workflow(id_mapping_techniques, input_source_config, role_arn, workflow_name) - create_id_mapping_workflow(id_mapping_techniques, input_source_config, role_arn, workflow_name, params::Dict{String,<:Any}) + create_id_mapping_workflow(id_mapping_techniques, input_source_config, workflow_name) + create_id_mapping_workflow(id_mapping_techniques, input_source_config, workflow_name, params::Dict{String,<:Any}) Creates an IdMappingWorkflow object which stores the configuration of the data processing job to be run. Each IdMappingWorkflow must have a unique workflow name. To modify an existing workflow, use the UpdateIdMappingWorkflow API. # Arguments -- `id_mapping_techniques`: An object which defines the idMappingType and the - providerProperties. +- `id_mapping_techniques`: An object which defines the ID mapping technique and any + additional configurations. - `input_source_config`: A list of InputSource objects, which have the fields InputSourceARN and SchemaName. -- `role_arn`: The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes - this role to create resources on your behalf as part of workflow execution. - `workflow_name`: The name of the workflow. There can't be multiple IdMappingWorkflows with the same name. @@ -138,32 +134,29 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the workflow. - `"outputSourceConfig"`: A list of IdMappingWorkflowOutputSource objects, each of which contains fields OutputS3Path and Output. +- `"roleArn"`: The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes + this role to create resources on your behalf as part of workflow execution. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_id_mapping_workflow( +create_id_mapping_workflow( idMappingTechniques, inputSourceConfig, - roleArn, workflowName; aws_config::AbstractAWSConfig=current_aws_config(), +) = entityresolution( + "POST", + "/idmappingworkflows", + Dict{String,Any}( + "idMappingTechniques" => idMappingTechniques, + "inputSourceConfig" => inputSourceConfig, + "workflowName" => workflowName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "POST", - "/idmappingworkflows", - Dict{String,Any}( - "idMappingTechniques" => idMappingTechniques, - "inputSourceConfig" => inputSourceConfig, - "roleArn" => roleArn, - "workflowName" => workflowName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_id_mapping_workflow( idMappingTechniques, inputSourceConfig, - roleArn, workflowName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), @@ -177,7 +170,6 @@ function create_id_mapping_workflow( Dict{String,Any}( "idMappingTechniques" => idMappingTechniques, "inputSourceConfig" => inputSourceConfig, - "roleArn" => roleArn, "workflowName" => workflowName, ), params, @@ -214,17 +206,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys workflow run. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_id_namespace( +create_id_namespace( idNamespaceName, type; aws_config::AbstractAWSConfig=current_aws_config() +) = entityresolution( + "POST", + "/idnamespaces", + Dict{String,Any}("idNamespaceName" => idNamespaceName, "type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "POST", - "/idnamespaces", - Dict{String,Any}("idNamespaceName" => idNamespaceName, "type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_id_namespace( idNamespaceName, type, @@ -273,28 +263,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys incrementalRunType as a field. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_matching_workflow( +create_matching_workflow( inputSourceConfig, outputSourceConfig, resolutionTechniques, roleArn, workflowName; aws_config::AbstractAWSConfig=current_aws_config(), +) = entityresolution( + "POST", + "/matchingworkflows", + Dict{String,Any}( + "inputSourceConfig" => inputSourceConfig, + "outputSourceConfig" => outputSourceConfig, + "resolutionTechniques" => resolutionTechniques, + "roleArn" => roleArn, + "workflowName" => workflowName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "POST", - "/matchingworkflows", - Dict{String,Any}( - "inputSourceConfig" => inputSourceConfig, - "outputSourceConfig" => outputSourceConfig, - "resolutionTechniques" => resolutionTechniques, - "roleArn" => roleArn, - "workflowName" => workflowName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_matching_workflow( inputSourceConfig, outputSourceConfig, @@ -345,19 +333,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the schema. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_schema_mapping( +create_schema_mapping( mappedInputFields, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = entityresolution( + "POST", + "/schemas", + Dict{String,Any}("mappedInputFields" => mappedInputFields, "schemaName" => schemaName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "POST", - "/schemas", - Dict{String,Any}( - "mappedInputFields" => mappedInputFields, "schemaName" => schemaName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_schema_mapping( mappedInputFields, schemaName, @@ -392,16 +376,14 @@ workflow with the given name does not exist. - `workflow_name`: The name of the workflow to be deleted. """ -function delete_id_mapping_workflow( +delete_id_mapping_workflow( workflowName; aws_config::AbstractAWSConfig=current_aws_config() +) = entityresolution( + "DELETE", + "/idmappingworkflows/$(workflowName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "DELETE", - "/idmappingworkflows/$(workflowName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_id_mapping_workflow( workflowName, params::AbstractDict{String}; @@ -426,16 +408,13 @@ Deletes the IdNamespace with a given name. - `id_namespace_name`: The name of the ID namespace. """ -function delete_id_namespace( - idNamespaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +delete_id_namespace(idNamespaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "DELETE", "/idnamespaces/$(idNamespaceName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_id_namespace( idNamespaceName, params::AbstractDict{String}; @@ -461,16 +440,13 @@ workflow with the given name does not exist. - `workflow_name`: The name of the workflow to be retrieved. """ -function delete_matching_workflow( - workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +delete_matching_workflow(workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "DELETE", "/matchingworkflows/$(workflowName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_matching_workflow( workflowName, params::AbstractDict{String}; @@ -497,16 +473,14 @@ Deletes the policy statement. the same policy. """ -function delete_policy_statement( +delete_policy_statement( arn, statementId; aws_config::AbstractAWSConfig=current_aws_config() +) = entityresolution( + "DELETE", + "/policies/$(arn)/$(statementId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "DELETE", - "/policies/$(arn)/$(statementId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_policy_statement( arn, statementId, @@ -534,16 +508,13 @@ object that references the SchemaMapping in the workflow's InputSourceConfig. - `schema_name`: The name of the schema to delete. """ -function delete_schema_mapping( - schemaName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +delete_schema_mapping(schemaName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "DELETE", "/schemas/$(schemaName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_schema_mapping( schemaName, params::AbstractDict{String}; @@ -569,16 +540,14 @@ Gets the status, metrics, and errors (if there are any) that are associated with - `workflow_name`: The name of the workflow. """ -function get_id_mapping_job( +get_id_mapping_job( jobId, workflowName; aws_config::AbstractAWSConfig=current_aws_config() +) = entityresolution( + "GET", + "/idmappingworkflows/$(workflowName)/jobs/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "GET", - "/idmappingworkflows/$(workflowName)/jobs/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_id_mapping_job( jobId, workflowName, @@ -604,16 +573,13 @@ Returns the IdMappingWorkflow with a given name, if it exists. - `workflow_name`: The name of the workflow. """ -function get_id_mapping_workflow( - workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +get_id_mapping_workflow(workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/idmappingworkflows/$(workflowName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_id_mapping_workflow( workflowName, params::AbstractDict{String}; @@ -638,16 +604,13 @@ Returns the IdNamespace with a given name, if it exists. - `id_namespace_name`: The name of the ID namespace. """ -function get_id_namespace( - idNamespaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +get_id_namespace(idNamespaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/idnamespaces/$(idNamespaceName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_id_namespace( idNamespaceName, params::AbstractDict{String}; @@ -679,17 +642,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the input table is in a format of 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890. """ -function get_match_id( - record, workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +get_match_id(record, workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "POST", "/matchingworkflows/$(workflowName)/matches", Dict{String,Any}("record" => record); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_match_id( record, workflowName, @@ -716,16 +676,13 @@ Gets the status, metrics, and errors (if there are any) that are associated with - `workflow_name`: The name of the workflow. """ -function get_matching_job( - jobId, workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +get_matching_job(jobId, workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/matchingworkflows/$(workflowName)/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_matching_job( jobId, workflowName, @@ -751,16 +708,13 @@ Returns the MatchingWorkflow with a given name, if it exists. - `workflow_name`: The name of the workflow. """ -function get_matching_workflow( - workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +get_matching_workflow(workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/matchingworkflows/$(workflowName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_matching_workflow( workflowName, params::AbstractDict{String}; @@ -786,11 +740,9 @@ Returns the resource-based policy. returned. """ -function get_policy(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( - "GET", "/policies/$(arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_policy(arn; aws_config::AbstractAWSConfig=current_aws_config()) = entityresolution( + "GET", "/policies/$(arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_policy( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -815,16 +767,14 @@ Returns the ProviderService of a given name. service provides. """ -function get_provider_service( +get_provider_service( providerName, providerServiceName; aws_config::AbstractAWSConfig=current_aws_config() +) = entityresolution( + "GET", + "/providerservices/$(providerName)/$(providerServiceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "GET", - "/providerservices/$(providerName)/$(providerServiceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_provider_service( providerName, providerServiceName, @@ -850,14 +800,13 @@ Returns the SchemaMapping of a given name. - `schema_name`: The name of the schema to be retrieved. """ -function get_schema_mapping(schemaName; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( +get_schema_mapping(schemaName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/schemas/$(schemaName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_schema_mapping( schemaName, params::AbstractDict{String}; @@ -886,16 +835,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects returned per page. - `"nextToken"`: The pagination token from the previous API call. """ -function list_id_mapping_jobs( - workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +list_id_mapping_jobs(workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/idmappingworkflows/$(workflowName)/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_id_mapping_jobs( workflowName, params::AbstractDict{String}; @@ -922,11 +868,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects returned per page. - `"nextToken"`: The pagination token from the previous API call. """ -function list_id_mapping_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( +list_id_mapping_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/idmappingworkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_id_mapping_workflows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -950,11 +895,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of IdNamespace objects returned per page. - `"nextToken"`: The pagination token from the previous API call. """ -function list_id_namespaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( - "GET", "/idnamespaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_id_namespaces(; aws_config::AbstractAWSConfig=current_aws_config()) = entityresolution( + "GET", "/idnamespaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_id_namespaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -981,16 +924,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects returned per page. - `"nextToken"`: The pagination token from the previous API call. """ -function list_matching_jobs( - workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +list_matching_jobs(workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/matchingworkflows/$(workflowName)/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_matching_jobs( workflowName, params::AbstractDict{String}; @@ -1017,11 +957,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects returned per page. - `"nextToken"`: The pagination token from the previous API call. """ -function list_matching_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( +list_matching_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/matchingworkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_matching_workflows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1047,11 +986,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token from the previous API call. - `"providerName"`: The name of the provider. This name is typically the company name. """ -function list_provider_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( +list_provider_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/providerservices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_provider_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1076,11 +1014,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects returned per page. - `"nextToken"`: The pagination token from the previous API call. """ -function list_schema_mappings(; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( +list_schema_mappings(; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/schemas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_schema_mappings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1100,16 +1037,13 @@ SchemaMapping, and MatchingWorkflow can be tagged. - `resource_arn`: The ARN of the resource for which you want to view tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1133,21 +1067,22 @@ Updates the resource-based policy. # Arguments - `arn`: The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated. -- `policy`: The resource-based policy. +- `policy`: The resource-based policy. If you set the value of the effect parameter in the + policy to Deny for the PutPolicy operation, you must also set the value of the effect + parameter to Deny for the AddPolicyStatement operation. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"token"`: A unique identifier for the current revision of the policy. """ -function put_policy(arn, policy; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( +put_policy(arn, policy; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "PUT", "/policies/$(arn)", Dict{String,Any}("policy" => policy); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_policy( arn, policy, @@ -1177,16 +1112,13 @@ the CreateIdMappingWorkflow endpoint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"outputSourceConfig"`: A list of OutputSource objects. """ -function start_id_mapping_job( - workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +start_id_mapping_job(workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "POST", "/idmappingworkflows/$(workflowName)/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_id_mapping_job( workflowName, params::AbstractDict{String}; @@ -1212,16 +1144,13 @@ the CreateMatchingWorkflow endpoint. - `workflow_name`: The name of the matching job to be retrieved. """ -function start_matching_job( - workflowName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +start_matching_job(workflowName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "POST", "/matchingworkflows/$(workflowName)/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_matching_job( workflowName, params::AbstractDict{String}; @@ -1255,15 +1184,14 @@ the new tag value that you specify replaces the previous value for that tag. - `tags`: The tags used to organize, track, or control access for this resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return entityresolution( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1291,17 +1219,14 @@ Resolution, SchemaMapping, and MatchingWorkflow can be tagged. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1318,20 +1243,18 @@ function untag_resource( end """ - update_id_mapping_workflow(id_mapping_techniques, input_source_config, role_arn, workflow_name) - update_id_mapping_workflow(id_mapping_techniques, input_source_config, role_arn, workflow_name, params::Dict{String,<:Any}) + update_id_mapping_workflow(id_mapping_techniques, input_source_config, workflow_name) + update_id_mapping_workflow(id_mapping_techniques, input_source_config, workflow_name, params::Dict{String,<:Any}) Updates an existing IdMappingWorkflow. This method is identical to CreateIdMappingWorkflow, except it uses an HTTP PUT request instead of a POST request, and the IdMappingWorkflow must already exist for the method to succeed. # Arguments -- `id_mapping_techniques`: An object which defines the idMappingType and the - providerProperties. +- `id_mapping_techniques`: An object which defines the ID mapping technique and any + additional configurations. - `input_source_config`: A list of InputSource objects, which have the fields InputSourceARN and SchemaName. -- `role_arn`: The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes - this role to access Amazon Web Services resources on your behalf. - `workflow_name`: The name of the workflow. # Optional Parameters @@ -1339,30 +1262,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the workflow. - `"outputSourceConfig"`: A list of OutputSource objects, each of which contains fields OutputS3Path and KMSArn. +- `"roleArn"`: The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes + this role to access Amazon Web Services resources on your behalf. """ -function update_id_mapping_workflow( +update_id_mapping_workflow( idMappingTechniques, inputSourceConfig, - roleArn, workflowName; aws_config::AbstractAWSConfig=current_aws_config(), +) = entityresolution( + "PUT", + "/idmappingworkflows/$(workflowName)", + Dict{String,Any}( + "idMappingTechniques" => idMappingTechniques, + "inputSourceConfig" => inputSourceConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "PUT", - "/idmappingworkflows/$(workflowName)", - Dict{String,Any}( - "idMappingTechniques" => idMappingTechniques, - "inputSourceConfig" => inputSourceConfig, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_id_mapping_workflow( idMappingTechniques, inputSourceConfig, - roleArn, workflowName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), @@ -1376,7 +1296,6 @@ function update_id_mapping_workflow( Dict{String,Any}( "idMappingTechniques" => idMappingTechniques, "inputSourceConfig" => inputSourceConfig, - "roleArn" => roleArn, ), params, ), @@ -1406,16 +1325,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this role to access the resources defined in this IdNamespace on your behalf as part of a workflow run. """ -function update_id_namespace( - idNamespaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return entityresolution( +update_id_namespace(idNamespaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + entityresolution( "PUT", "/idnamespaces/$(idNamespaceName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_id_namespace( idNamespaceName, params::AbstractDict{String}; @@ -1455,27 +1371,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"incrementalRunConfig"`: An object which defines an incremental run type and has only incrementalRunType as a field. """ -function update_matching_workflow( +update_matching_workflow( inputSourceConfig, outputSourceConfig, resolutionTechniques, roleArn, workflowName; aws_config::AbstractAWSConfig=current_aws_config(), +) = entityresolution( + "PUT", + "/matchingworkflows/$(workflowName)", + Dict{String,Any}( + "inputSourceConfig" => inputSourceConfig, + "outputSourceConfig" => outputSourceConfig, + "resolutionTechniques" => resolutionTechniques, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "PUT", - "/matchingworkflows/$(workflowName)", - Dict{String,Any}( - "inputSourceConfig" => inputSourceConfig, - "outputSourceConfig" => outputSourceConfig, - "resolutionTechniques" => resolutionTechniques, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_matching_workflow( inputSourceConfig, outputSourceConfig, @@ -1523,17 +1437,15 @@ Therefore, you can't update a schema mapping if it's associated with a workflow. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A description of the schema. """ -function update_schema_mapping( +update_schema_mapping( mappedInputFields, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = entityresolution( + "PUT", + "/schemas/$(schemaName)", + Dict{String,Any}("mappedInputFields" => mappedInputFields); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return entityresolution( - "PUT", - "/schemas/$(schemaName)", - Dict{String,Any}("mappedInputFields" => mappedInputFields); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_schema_mapping( mappedInputFields, schemaName, diff --git a/src/services/eventbridge.jl b/src/services/eventbridge.jl index 2034ae21b..e96e1472b 100644 --- a/src/services/eventbridge.jl +++ b/src/services/eventbridge.jl @@ -15,14 +15,13 @@ event bus will start receiving events from the event source. - `name`: The name of the partner event source to activate. """ -function activate_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +activate_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "ActivateEventSource", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function activate_event_source( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -44,14 +43,12 @@ Cancels the specified replay. - `replay_name`: The name of the replay to cancel. """ -function cancel_replay(ReplayName; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "CancelReplay", - Dict{String,Any}("ReplayName" => ReplayName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_replay(ReplayName; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "CancelReplay", + Dict{String,Any}("ReplayName" => ReplayName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_replay( ReplayName, params::AbstractDict{String}; @@ -88,25 +85,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InvocationRateLimitPerSecond"`: The maximum number of requests per second to send to the HTTP invocation endpoint. """ -function create_api_destination( +create_api_destination( ConnectionArn, HttpMethod, InvocationEndpoint, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = eventbridge( + "CreateApiDestination", + Dict{String,Any}( + "ConnectionArn" => ConnectionArn, + "HttpMethod" => HttpMethod, + "InvocationEndpoint" => InvocationEndpoint, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "CreateApiDestination", - Dict{String,Any}( - "ConnectionArn" => ConnectionArn, - "HttpMethod" => HttpMethod, - "InvocationEndpoint" => InvocationEndpoint, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_api_destination( ConnectionArn, HttpMethod, @@ -162,16 +157,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RetentionDays"`: The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely """ -function create_archive( +create_archive( ArchiveName, EventSourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = eventbridge( + "CreateArchive", + Dict{String,Any}("ArchiveName" => ArchiveName, "EventSourceArn" => EventSourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "CreateArchive", - Dict{String,Any}("ArchiveName" => ArchiveName, "EventSourceArn" => EventSourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_archive( ArchiveName, EventSourceArn, @@ -212,23 +205,21 @@ for authorization with an API destination HTTP endpoint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description for the connection to create. """ -function create_connection( +create_connection( AuthParameters, AuthorizationType, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = eventbridge( + "CreateConnection", + Dict{String,Any}( + "AuthParameters" => AuthParameters, + "AuthorizationType" => AuthorizationType, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "CreateConnection", - Dict{String,Any}( - "AuthParameters" => AuthParameters, - "AuthorizationType" => AuthorizationType, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connection( AuthParameters, AuthorizationType, @@ -281,18 +272,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys replication enabled, set the state to DISABLED. - `"RoleArn"`: The ARN of the role used for replication. """ -function create_endpoint( +create_endpoint( EventBuses, Name, RoutingConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = eventbridge( + "CreateEndpoint", + Dict{String,Any}( + "EventBuses" => EventBuses, "Name" => Name, "RoutingConfig" => RoutingConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "CreateEndpoint", - Dict{String,Any}( - "EventBuses" => EventBuses, "Name" => Name, "RoutingConfig" => RoutingConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint( EventBuses, Name, @@ -354,14 +343,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Data encryption in EventBridge in the Amazon EventBridge User Guide. - `"Tags"`: Tags to associate with the event bus. """ -function create_event_bus(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "CreateEventBus", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_event_bus(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "CreateEventBus", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_event_bus( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -405,16 +392,14 @@ Services customers decide whether to create an event bus to receive these events matches the name of the partner event source. """ -function create_partner_event_source( +create_partner_event_source( Account, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = eventbridge( + "CreatePartnerEventSource", + Dict{String,Any}("Account" => Account, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "CreatePartnerEventSource", - Dict{String,Any}("Account" => Account, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_partner_event_source( Account, Name, @@ -447,14 +432,13 @@ ActivateEventSource. - `name`: The name of the partner event source to deactivate. """ -function deactivate_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +deactivate_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DeactivateEventSource", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deactivate_event_source( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -477,14 +461,13 @@ from the connection so you can reuse it without having to create a new connectio - `name`: The name of the connection to remove authorization from. """ -function deauthorize_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +deauthorize_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DeauthorizeConnection", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deauthorize_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -506,14 +489,13 @@ Deletes the specified API destination. - `name`: The name of the destination to delete. """ -function delete_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +delete_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DeleteApiDestination", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_api_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -535,14 +517,13 @@ Deletes the specified archive. - `archive_name`: The name of the archive to delete. """ -function delete_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +delete_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DeleteArchive", Dict{String,Any}("ArchiveName" => ArchiveName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_archive( ArchiveName, params::AbstractDict{String}; @@ -568,14 +549,12 @@ Deletes a connection. - `name`: The name of the connection to delete. """ -function delete_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DeleteConnection", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "DeleteConnection", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -600,14 +579,12 @@ Amazon EventBridge User Guide . \"Name\":\"us-east-2-custom_bus_A-endpoint\".. """ -function delete_endpoint(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DeleteEndpoint", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_endpoint(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "DeleteEndpoint", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_endpoint( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -630,14 +607,12 @@ event bus need to be deleted. You can't delete your account's default event bus. - `name`: The name of the event bus to delete. """ -function delete_event_bus(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DeleteEventBus", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_event_bus(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "DeleteEventBus", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_event_bus( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -664,16 +639,14 @@ DELETED. - `name`: The name of the event source to delete. """ -function delete_partner_event_source( +delete_partner_event_source( Account, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = eventbridge( + "DeletePartnerEventSource", + Dict{String,Any}("Account" => Account, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "DeletePartnerEventSource", - Dict{String,Any}("Account" => Account, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_partner_event_source( Account, Name, @@ -718,14 +691,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response. """ -function delete_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DeleteRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "DeleteRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -747,14 +718,13 @@ Retrieves details about an API destination. - `name`: The name of the API destination to retrieve. """ -function describe_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +describe_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DescribeApiDestination", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_api_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -776,14 +746,13 @@ Retrieves details about an archive. - `archive_name`: The name of the archive to retrieve. """ -function describe_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +describe_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DescribeArchive", Dict{String,Any}("ArchiveName" => ArchiveName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_archive( ArchiveName, params::AbstractDict{String}; @@ -809,14 +778,12 @@ Retrieves details about a connection. - `name`: The name of the connection to retrieve. """ -function describe_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DescribeConnection", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "DescribeConnection", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -845,14 +812,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HomeRegion"`: The primary Region of the endpoint you want to get information about. For example \"HomeRegion\": \"us-east-1\". """ -function describe_endpoint(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DescribeEndpoint", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_endpoint(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "DescribeEndpoint", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_endpoint( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -880,11 +845,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name or ARN of the event bus to show details for. If you omit this, the default event bus is displayed. """ -function describe_event_bus(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DescribeEventBus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_event_bus(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("DescribeEventBus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_event_bus( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -903,14 +865,13 @@ This operation lists details about a partner event source that is shared with yo - `name`: The name of the partner event source to display the details of. """ -function describe_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +describe_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DescribeEventSource", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_event_source( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -935,16 +896,13 @@ source that is shared with them. - `name`: The name of the event source to display. """ -function describe_partner_event_source( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return eventbridge( +describe_partner_event_source(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DescribePartnerEventSource", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_partner_event_source( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -973,14 +931,13 @@ the last event replayed. - `replay_name`: The name of the replay to retrieve. """ -function describe_replay(ReplayName; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +describe_replay(ReplayName; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "DescribeReplay", Dict{String,Any}("ReplayName" => ReplayName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_replay( ReplayName, params::AbstractDict{String}; @@ -1011,14 +968,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventBusName"`: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used. """ -function describe_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DescribeRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "DescribeRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1046,14 +1001,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventBusName"`: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used. """ -function disable_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "DisableRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "DisableRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1081,14 +1034,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventBusName"`: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used. """ -function enable_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "EnableRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "EnableRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1114,11 +1065,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys name that starts with the prefix are returned. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_api_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "ListApiDestinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_api_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "ListApiDestinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_api_destinations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1146,11 +1095,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. - `"State"`: The state of the archive. """ -function list_archives(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "ListArchives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_archives(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("ListArchives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_archives( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1173,11 +1119,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that starts with the prefix are returned. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("ListConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1208,11 +1151,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "ListEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("ListEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1237,11 +1177,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that start with the specified prefix. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_event_buses(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "ListEventBuses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_event_buses(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("ListEventBuses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_event_buses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1267,11 +1204,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with names that start with the specified prefix. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_event_sources(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "ListEventSources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_event_sources(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("ListEventSources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_event_sources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1300,16 +1234,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to this operation. Specifying this retrieves the next set of results. """ -function list_partner_event_source_accounts( +list_partner_event_source_accounts( EventSourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = eventbridge( + "ListPartnerEventSourceAccounts", + Dict{String,Any}("EventSourceName" => EventSourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "ListPartnerEventSourceAccounts", - Dict{String,Any}("EventSourceName" => EventSourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_partner_event_source_accounts( EventSourceName, params::AbstractDict{String}; @@ -1346,16 +1278,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to this operation. Specifying this retrieves the next set of results. """ -function list_partner_event_sources( - NamePrefix; aws_config::AbstractAWSConfig=current_aws_config() -) - return eventbridge( +list_partner_event_sources(NamePrefix; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "ListPartnerEventSources", Dict{String,Any}("NamePrefix" => NamePrefix); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_partner_event_sources( NamePrefix, params::AbstractDict{String}; @@ -1387,11 +1316,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. - `"State"`: The state of the replay. """ -function list_replays(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "ListReplays"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_replays(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("ListReplays"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_replays( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1418,16 +1344,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: The maximum number of results to return. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_rule_names_by_target( - TargetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return eventbridge( +list_rule_names_by_target(TargetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "ListRuleNamesByTarget", Dict{String,Any}("TargetArn" => TargetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_rule_names_by_target( TargetArn, params::AbstractDict{String}; @@ -1460,9 +1383,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NamePrefix"`: The prefix matching the rule name. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge("ListRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("ListRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1482,16 +1404,13 @@ buses can be tagged. - `resource_arn`: The ARN of the EventBridge resource for which you want to view tags. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return eventbridge( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1524,14 +1443,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: The maximum number of results to return. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_targets_by_rule(Rule; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +list_targets_by_rule(Rule; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "ListTargetsByRule", Dict{String,Any}("Rule" => Rule); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_targets_by_rule( Rule, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1566,14 +1484,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo. When using Java, you must include auth-crt on the class path. """ -function put_events(Entries; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "PutEvents", - Dict{String,Any}("Entries" => Entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_events(Entries; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "PutEvents", + Dict{String,Any}("Entries" => Entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_events( Entries, params::AbstractDict{String}; @@ -1599,14 +1515,13 @@ size, see Calculating EventBridge PutEvents event entry size in the EventBridge - `entries`: The list of events to write to the event bus. """ -function put_partner_events(Entries; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +put_partner_events(Entries; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "PutPartnerEvents", Dict{String,Any}("Entries" => Entries); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_partner_events( Entries, params::AbstractDict{String}; @@ -1666,11 +1581,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions to. If you later want to revoke the permission for this external account, specify this StatementId when you run RemovePermission. Each StatementId must be unique. """ -function put_permission(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "PutPermission"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +put_permission(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("PutPermission"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function put_permission( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1749,14 +1661,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not apply to partner event buses. - `"Tags"`: The list of key-value pairs to associate with the rule. """ -function put_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "PutRule", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_rule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "PutRule", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_rule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1831,14 +1741,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventBusName"`: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used. """ -function put_targets(Rule, Targets; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +put_targets(Rule, Targets; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "PutTargets", Dict{String,Any}("Rule" => Rule, "Targets" => Targets); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_targets( Rule, Targets, @@ -1874,11 +1783,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StatementId"`: The statement ID corresponding to the account that is no longer allowed to put events to the default event bus. """ -function remove_permission(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "RemovePermission"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +remove_permission(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("RemovePermission"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function remove_permission( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1914,14 +1820,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response. """ -function remove_targets(Ids, Rule; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "RemoveTargets", - Dict{String,Any}("Ids" => Ids, "Rule" => Rule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +remove_targets(Ids, Rule; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "RemoveTargets", + Dict{String,Any}("Ids" => Ids, "Rule" => Rule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function remove_targets( Ids, Rule, @@ -1965,27 +1869,25 @@ associated with the last event replayed. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description for the replay to start. """ -function start_replay( +start_replay( Destination, EventEndTime, EventSourceArn, EventStartTime, ReplayName; aws_config::AbstractAWSConfig=current_aws_config(), +) = eventbridge( + "StartReplay", + Dict{String,Any}( + "Destination" => Destination, + "EventEndTime" => EventEndTime, + "EventSourceArn" => EventSourceArn, + "EventStartTime" => EventStartTime, + "ReplayName" => ReplayName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "StartReplay", - Dict{String,Any}( - "Destination" => Destination, - "EventEndTime" => EventEndTime, - "EventSourceArn" => EventSourceArn, - "EventStartTime" => EventStartTime, - "ReplayName" => ReplayName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_replay( Destination, EventEndTime, @@ -2035,14 +1937,13 @@ many as 50 tags with a resource. - `tags`: The list of key-value pairs to associate with the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -2081,16 +1982,14 @@ the event you want to match. in the Amazon EventBridge User Guide . """ -function test_event_pattern( +test_event_pattern( Event, EventPattern; aws_config::AbstractAWSConfig=current_aws_config() +) = eventbridge( + "TestEventPattern", + Dict{String,Any}("Event" => Event, "EventPattern" => EventPattern); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return eventbridge( - "TestEventPattern", - Dict{String,Any}("Event" => Event, "EventPattern" => EventPattern); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_event_pattern( Event, EventPattern, @@ -2123,16 +2022,13 @@ Removes one or more tags from the specified EventBridge resource. In Amazon Even - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return eventbridge( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -2171,14 +2067,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InvocationRateLimitPerSecond"`: The maximum number of invocations per second to send to the API destination. """ -function update_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +update_api_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "UpdateApiDestination", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_api_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2205,14 +2100,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventPattern"`: The event pattern to use to filter events sent to the archive. - `"RetentionDays"`: The number of days to retain events in the archive. """ -function update_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( +update_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge( "UpdateArchive", Dict{String,Any}("ArchiveName" => ArchiveName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_archive( ArchiveName, params::AbstractDict{String}; @@ -2243,14 +2137,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AuthorizationType"`: The type of authorization to use for the connection. - `"Description"`: A description for the connection. """ -function update_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "UpdateConnection", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "UpdateConnection", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2282,14 +2174,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoutingConfig"`: Configure the routing policy, including the health check and secondary Region. """ -function update_endpoint(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "UpdateEndpoint", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_endpoint(Name; aws_config::AbstractAWSConfig=current_aws_config()) = eventbridge( + "UpdateEndpoint", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_endpoint( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2326,11 +2216,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Data encryption in EventBridge in the Amazon EventBridge User Guide. - `"Name"`: The name of the event bus. """ -function update_event_bus(; aws_config::AbstractAWSConfig=current_aws_config()) - return eventbridge( - "UpdateEventBus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_event_bus(; aws_config::AbstractAWSConfig=current_aws_config()) = + eventbridge("UpdateEventBus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_event_bus( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/evidently.jl b/src/services/evidently.jl index 9e8d3315b..650247fa8 100644 --- a/src/services/evidently.jl +++ b/src/services/evidently.jl @@ -29,17 +29,15 @@ experiment, they are served the default variation. one user session. """ -function batch_evaluate_feature( +batch_evaluate_feature( project, requests; aws_config::AbstractAWSConfig=current_aws_config() +) = evidently( + "POST", + "/projects/$(project)/evaluations", + Dict{String,Any}("requests" => requests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return evidently( - "POST", - "/projects/$(project)/evaluations", - Dict{String,Any}("requests" => requests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_evaluate_feature( project, requests, @@ -104,23 +102,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys strings of characters. You can associate as many as 50 tags with an experiment. For more information, see Tagging Amazon Web Services resources. """ -function create_experiment( +create_experiment( metricGoals, name, project, treatments; aws_config::AbstractAWSConfig=current_aws_config(), +) = evidently( + "POST", + "/projects/$(project)/experiments", + Dict{String,Any}( + "metricGoals" => metricGoals, "name" => name, "treatments" => treatments + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return evidently( - "POST", - "/projects/$(project)/experiments", - Dict{String,Any}( - "metricGoals" => metricGoals, "name" => name, "treatments" => treatments - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_experiment( metricGoals, name, @@ -185,17 +181,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys strings of characters. You can associate as many as 50 tags with a feature. For more information, see Tagging Amazon Web Services resources. """ -function create_feature( +create_feature( name, project, variations; aws_config::AbstractAWSConfig=current_aws_config() +) = evidently( + "POST", + "/projects/$(project)/features", + Dict{String,Any}("name" => name, "variations" => variations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return evidently( - "POST", - "/projects/$(project)/features", - Dict{String,Any}("name" => name, "variations" => variations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_feature( name, project, @@ -252,17 +246,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys strings of characters. You can associate as many as 50 tags with a launch. For more information, see Tagging Amazon Web Services resources. """ -function create_launch( - groups, name, project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +create_launch(groups, name, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "POST", "/projects/$(project)/launches", Dict{String,Any}("groups" => groups, "name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_launch( groups, name, @@ -314,15 +305,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys strings of characters. You can associate as many as 50 tags with a project. For more information, see Tagging Amazon Web Services resources. """ -function create_project(name; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "POST", - "/projects", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_project(name; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "POST", + "/projects", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_project( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -365,15 +354,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys strings of characters. You can associate as many as 50 tags with a segment. For more information, see Tagging Amazon Web Services resources. """ -function create_segment(name, pattern; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( +create_segment(name, pattern; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "POST", "/segments", Dict{String,Any}("name" => name, "pattern" => pattern); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_segment( name, pattern, @@ -405,16 +393,13 @@ stop an experiment without deleting it, use StopExperiment. - `project`: The name or ARN of the project that contains the experiment to delete. """ -function delete_experiment( - experiment, project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +delete_experiment(experiment, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "DELETE", "/projects/$(project)/experiments/$(experiment)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_experiment( experiment, project, @@ -441,16 +426,13 @@ Deletes an Evidently feature. - `project`: The name or ARN of the project that contains the feature to delete. """ -function delete_feature( - feature, project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +delete_feature(feature, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "DELETE", "/projects/$(project)/features/$(feature)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_feature( feature, project, @@ -478,14 +460,13 @@ launch without deleting it, use StopLaunch. - `project`: The name or ARN of the project that contains the launch to delete. """ -function delete_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( +delete_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "DELETE", "/projects/$(project)/launches/$(launch)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_launch( launch, project, @@ -512,14 +493,12 @@ features that the project contains. To delete a feature, use DeleteFeature. - `project`: The name or ARN of the project to delete. """ -function delete_project(project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "DELETE", - "/projects/$(project)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_project(project; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "DELETE", + "/projects/$(project)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_project( project, params::AbstractDict{String}; @@ -545,14 +524,12 @@ even if that launch or experiment is not currently running. - `segment`: Specifies the segment to delete. """ -function delete_segment(segment; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "DELETE", - "/segments/$(segment)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_segment(segment; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "DELETE", + "/segments/$(segment)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_segment( segment, params::AbstractDict{String}; @@ -605,17 +582,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use segments to focus your audience. If you include this parameter, the value must be a JSON object. A JSON array is not supported. """ -function evaluate_feature( +evaluate_feature( entityId, feature, project; aws_config::AbstractAWSConfig=current_aws_config() +) = evidently( + "POST", + "/projects/$(project)/evaluations/$(feature)", + Dict{String,Any}("entityId" => entityId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return evidently( - "POST", - "/projects/$(project)/evaluations/$(feature)", - Dict{String,Any}("entityId" => entityId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function evaluate_feature( entityId, feature, @@ -646,16 +621,13 @@ retrieve a list of experiments in your account, use ListExperiments. - `project`: The name or ARN of the project that contains the experiment. """ -function get_experiment( - experiment, project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +get_experiment(experiment, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "GET", "/projects/$(project)/experiments/$(experiment)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_experiment( experiment, project, @@ -716,21 +688,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the mean of the values collected for each variation. - `"startTime"`: The date and time that the experiment started. """ -function get_experiment_results( +get_experiment_results( experiment, metricNames, project, treatmentNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = evidently( + "POST", + "/projects/$(project)/experiments/$(experiment)/results", + Dict{String,Any}("metricNames" => metricNames, "treatmentNames" => treatmentNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return evidently( - "POST", - "/projects/$(project)/experiments/$(experiment)/results", - Dict{String,Any}("metricNames" => metricNames, "treatmentNames" => treatmentNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_experiment_results( experiment, metricNames, @@ -768,14 +738,13 @@ a list of features in your account, use ListFeatures. - `project`: The name or ARN of the project that contains the feature. """ -function get_feature(feature, project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( +get_feature(feature, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "GET", "/projects/$(project)/features/$(feature)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_feature( feature, project, @@ -803,14 +772,12 @@ list of launches in your account, use ListLaunches. - `project`: The name or ARN of the project that contains the launch. """ -function get_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "GET", - "/projects/$(project)/launches/$(launch)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "GET", + "/projects/$(project)/launches/$(launch)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_launch( launch, project, @@ -837,14 +804,12 @@ list of projects in your account, use ListProjects. - `project`: The name or ARN of the project that you want to see the details of. """ -function get_project(project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "GET", - "/projects/$(project)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_project(project; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "GET", + "/projects/$(project)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_project( project, params::AbstractDict{String}; @@ -870,14 +835,12 @@ specifying its ARN. - `segment`: The ARN of the segment to return information for. """ -function get_segment(segment; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "GET", - "/segments/$(segment)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_segment(segment; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "GET", + "/segments/$(segment)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_segment( segment, params::AbstractDict{String}; @@ -909,14 +872,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Use this optional parameter to limit the returned results to only the experiments with the status that you specify here. """ -function list_experiments(project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "GET", - "/projects/$(project)/experiments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_experiments(project; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "GET", + "/projects/$(project)/experiments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_experiments( project, params::AbstractDict{String}; @@ -946,14 +907,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to use when requesting the next set of results. You received this token from a previous ListFeatures operation. """ -function list_features(project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "GET", - "/projects/$(project)/features"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_features(project; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "GET", + "/projects/$(project)/features"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_features( project, params::AbstractDict{String}; @@ -985,14 +944,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Use this optional parameter to limit the returned results to only the launches with the status that you specify here. """ -function list_launches(project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "GET", - "/projects/$(project)/launches"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_launches(project; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "GET", + "/projects/$(project)/launches"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_launches( project, params::AbstractDict{String}; @@ -1019,11 +976,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to use when requesting the next set of results. You received this token from a previous ListProjects operation. """ -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "GET", "/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently("GET", "/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1050,17 +1004,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to use when requesting the next set of results. You received this token from a previous ListSegmentReferences operation. """ -function list_segment_references( - segment, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +list_segment_references(segment, type; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "GET", "/segments/$(segment)/references", Dict{String,Any}("type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_segment_references( segment, type, @@ -1089,11 +1040,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to use when requesting the next set of results. You received this token from a previous ListSegments operation. """ -function list_segments(; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "GET", "/segments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_segments(; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently("GET", "/segments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_segments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1112,16 +1060,13 @@ Displays the tags associated with an Evidently resource. - `resource_arn`: The ARN of the resource that you want to see the tags of. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1149,17 +1094,14 @@ experiment. - `project`: The name or ARN of the project to write the events to. """ -function put_project_events( - events, project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +put_project_events(events, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "POST", "/events/projects/$(project)", Dict{String,Any}("events" => events); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_project_events( events, project, @@ -1188,20 +1130,18 @@ Starts an existing experiment. To create an experiment, use CreateExperiment. - `project`: The name or ARN of the project that contains the experiment to start. """ -function start_experiment( +start_experiment( analysisCompleteTime, experiment, project; aws_config::AbstractAWSConfig=current_aws_config(), +) = evidently( + "POST", + "/projects/$(project)/experiments/$(experiment)/start", + Dict{String,Any}("analysisCompleteTime" => analysisCompleteTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return evidently( - "POST", - "/projects/$(project)/experiments/$(experiment)/start", - Dict{String,Any}("analysisCompleteTime" => analysisCompleteTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_experiment( analysisCompleteTime, experiment, @@ -1235,14 +1175,13 @@ Starts an existing launch. To create a launch, use CreateLaunch. - `project`: The name or ARN of the project that contains the launch to start. """ -function start_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( +start_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "POST", "/projects/$(project)/launches/$(launch)/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_launch( launch, project, @@ -1275,16 +1214,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CANCELLED after it stops. - `"reason"`: A string that describes why you are stopping the experiment. """ -function stop_experiment( - experiment, project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +stop_experiment(experiment, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "POST", "/projects/$(project)/experiments/$(experiment)/cancel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_experiment( experiment, project, @@ -1320,14 +1256,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys it stops. - `"reason"`: A string that describes why you are stopping the launch. """ -function stop_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( +stop_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "POST", "/projects/$(project)/launches/$(launch)/cancel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_launch( launch, project, @@ -1364,15 +1299,14 @@ Web Services resources. - `tags`: The list of key-value pairs to associate with the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1400,17 +1334,14 @@ segment. For more information about segments, see CreateSegment. - `payload`: A sample evaluationContext JSON block to test against the specified pattern. """ -function test_segment_pattern( - pattern, payload; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +test_segment_pattern(pattern, payload; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "POST", "/test-segment-pattern", Dict{String,Any}("pattern" => pattern, "payload" => payload); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function test_segment_pattern( pattern, payload, @@ -1442,17 +1373,14 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1506,16 +1434,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"treatments"`: An array of structures that define the variations being tested in the experiment. """ -function update_experiment( - experiment, project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +update_experiment(experiment, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "PATCH", "/projects/$(project)/experiments/$(experiment)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_experiment( experiment, project, @@ -1564,16 +1489,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys doesn't exist, then this makes no change and does not report an error. This operation fails if you try to remove a variation that is part of an ongoing launch or experiment. """ -function update_feature( - feature, project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +update_feature(feature, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "PATCH", "/projects/$(project)/features/$(feature)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_feature( feature, project, @@ -1615,14 +1537,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"scheduledSplitsConfig"`: An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch. """ -function update_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( +update_launch(launch, project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "PATCH", "/projects/$(project)/launches/$(launch)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_launch( launch, project, @@ -1660,14 +1581,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will be used for client-side evaluation. - `"description"`: An optional description of the project. """ -function update_project(project; aws_config::AbstractAWSConfig=current_aws_config()) - return evidently( - "PATCH", - "/projects/$(project)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_project(project; aws_config::AbstractAWSConfig=current_aws_config()) = evidently( + "PATCH", + "/projects/$(project)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_project( project, params::AbstractDict{String}; @@ -1703,16 +1622,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"s3Destination"`: A structure containing the S3 bucket name and bucket prefix where you want to store evaluation events. """ -function update_project_data_delivery( - project; aws_config::AbstractAWSConfig=current_aws_config() -) - return evidently( +update_project_data_delivery(project; aws_config::AbstractAWSConfig=current_aws_config()) = + evidently( "PATCH", "/projects/$(project)/data-delivery"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_project_data_delivery( project, params::AbstractDict{String}; diff --git a/src/services/finspace.jl b/src/services/finspace.jl index 1ecf9d1a5..f9b2e83af 100644 --- a/src/services/finspace.jl +++ b/src/services/finspace.jl @@ -30,15 +30,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"superuserParameters"`: Configuration information for the superuser. - `"tags"`: Add tags to your FinSpace environment. """ -function create_environment(name; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace( - "POST", - "/environment", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_environment(name; aws_config::AbstractAWSConfig=current_aws_config()) = finspace( + "POST", + "/environment", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_environment( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -85,21 +83,19 @@ files by using an ordered list of change requests. - `environment_id`: A unique identifier of the kdb environment. """ -function create_kx_changeset( +create_kx_changeset( changeRequests, clientToken, databaseName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "POST", + "/kx/environments/$(environmentId)/databases/$(databaseName)/changesets", + Dict{String,Any}("changeRequests" => changeRequests, "clientToken" => clientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "POST", - "/kx/environments/$(environmentId)/databases/$(databaseName)/changesets", - Dict{String,Any}("changeRequests" => changeRequests, "clientToken" => clientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_kx_changeset( changeRequests, clientToken, @@ -196,7 +192,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Tickerplant, the location of the TP volume on the cluster will be available by using the global variable .aws.tp_log_path. """ -function create_kx_cluster( +create_kx_cluster( azMode, clusterName, clusterType, @@ -204,22 +200,20 @@ function create_kx_cluster( releaseLabel, vpcConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "POST", + "/kx/environments/$(environmentId)/clusters", + Dict{String,Any}( + "azMode" => azMode, + "clusterName" => clusterName, + "clusterType" => clusterType, + "releaseLabel" => releaseLabel, + "vpcConfiguration" => vpcConfiguration, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "POST", - "/kx/environments/$(environmentId)/clusters", - Dict{String,Any}( - "azMode" => azMode, - "clusterName" => clusterName, - "clusterType" => clusterType, - "releaseLabel" => releaseLabel, - "vpcConfiguration" => vpcConfiguration, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_kx_cluster( azMode, clusterName, @@ -269,20 +263,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs to label the kdb database. You can add up to 50 tags to your kdb database """ -function create_kx_database( +create_kx_database( clientToken, databaseName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "POST", + "/kx/environments/$(environmentId)/databases", + Dict{String,Any}("clientToken" => clientToken, "databaseName" => databaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "POST", - "/kx/environments/$(environmentId)/databases", - Dict{String,Any}("clientToken" => clientToken, "databaseName" => databaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_kx_database( clientToken, databaseName, @@ -349,24 +341,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs to label the dataview. You can add up to 50 tags to a dataview. """ -function create_kx_dataview( +create_kx_dataview( azMode, clientToken, databaseName, dataviewName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "POST", + "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews", + Dict{String,Any}( + "azMode" => azMode, "clientToken" => clientToken, "dataviewName" => dataviewName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "POST", - "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews", - Dict{String,Any}( - "azMode" => azMode, "clientToken" => clientToken, "dataviewName" => dataviewName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_kx_dataview( azMode, clientToken, @@ -412,10 +402,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs to label the kdb environment. You can add up to 50 tags to your kdb environment. """ -function create_kx_environment( - kmsKeyId, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +create_kx_environment(kmsKeyId, name; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "POST", "/kx/environments", Dict{String,Any}( @@ -424,7 +412,6 @@ function create_kx_environment( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_kx_environment( kmsKeyId, name, @@ -461,6 +448,9 @@ Creates a new scaling group. the scaling group. - `host_type`: The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed. You can add one of the following values: + kx.sg.large – The host type with a configuration of 16 GiB memory and 2 vCPUs. + kx.sg.xlarge – The host type with a configuration of 32 GiB memory and 4 vCPUs. + kx.sg.2xlarge – The host type with a configuration of 64 GiB memory and 8 vCPUs. kx.sg.4xlarge – The host type with a configuration of 108 GiB memory and 16 vCPUs. kx.sg.8xlarge – The host type with a configuration of 216 GiB memory and 32 vCPUs. kx.sg.16xlarge – The host type with a configuration of 432 GiB memory and 64 vCPUs. @@ -474,27 +464,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs to label the scaling group. You can add up to 50 tags to a scaling group. """ -function create_kx_scaling_group( +create_kx_scaling_group( availabilityZoneId, clientToken, environmentId, hostType, scalingGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "POST", + "/kx/environments/$(environmentId)/scalingGroups", + Dict{String,Any}( + "availabilityZoneId" => availabilityZoneId, + "clientToken" => clientToken, + "hostType" => hostType, + "scalingGroupName" => scalingGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "POST", - "/kx/environments/$(environmentId)/scalingGroups", - Dict{String,Any}( - "availabilityZoneId" => availabilityZoneId, - "clientToken" => clientToken, - "hostType" => hostType, - "scalingGroupName" => scalingGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_kx_scaling_group( availabilityZoneId, clientToken, @@ -542,19 +530,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs to label the user. You can add up to 50 tags to a user. """ -function create_kx_user( +create_kx_user( environmentId, iamRole, userName; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "POST", + "/kx/environments/$(environmentId)/users", + Dict{String,Any}( + "iamRole" => iamRole, "userName" => userName, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "POST", - "/kx/environments/$(environmentId)/users", - Dict{String,Any}( - "iamRole" => iamRole, "userName" => userName, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_kx_user( environmentId, iamRole, @@ -606,28 +592,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs to label the volume. You can add up to 50 tags to a volume. """ -function create_kx_volume( +create_kx_volume( availabilityZoneIds, azMode, environmentId, volumeName, volumeType; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "POST", + "/kx/environments/$(environmentId)/kxvolumes", + Dict{String,Any}( + "availabilityZoneIds" => availabilityZoneIds, + "azMode" => azMode, + "volumeName" => volumeName, + "volumeType" => volumeType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "POST", - "/kx/environments/$(environmentId)/kxvolumes", - Dict{String,Any}( - "availabilityZoneIds" => availabilityZoneIds, - "azMode" => azMode, - "volumeName" => volumeName, - "volumeType" => volumeType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_kx_volume( availabilityZoneIds, azMode, @@ -668,16 +652,13 @@ Delete an FinSpace environment. - `environment_id`: The identifier for the FinSpace environment. """ -function delete_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +delete_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "DELETE", "/environment/$(environmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_environment( environmentId, params::AbstractDict{String}; @@ -706,17 +687,15 @@ Deletes a kdb cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function delete_kx_cluster( +delete_kx_cluster( clusterName, environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "DELETE", + "/kx/environments/$(environmentId)/clusters/$(clusterName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "DELETE", - "/kx/environments/$(environmentId)/clusters/$(clusterName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_kx_cluster( clusterName, environmentId, @@ -746,16 +725,14 @@ Deletes the specified nodes from a cluster. - `node_id`: A unique identifier for the node that you want to delete. """ -function delete_kx_cluster_node( +delete_kx_cluster_node( clusterName, environmentId, nodeId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "DELETE", + "/kx/environments/$(environmentId)/clusters/$(clusterName)/nodes/$(nodeId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "DELETE", - "/kx/environments/$(environmentId)/clusters/$(clusterName)/nodes/$(nodeId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_kx_cluster_node( clusterName, environmentId, @@ -785,20 +762,18 @@ You must copy any data out of the database before deleting it if the data is to - `environment_id`: A unique identifier for the kdb environment. """ -function delete_kx_database( +delete_kx_database( clientToken, databaseName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "DELETE", + "/kx/environments/$(environmentId)/databases/$(databaseName)", + Dict{String,Any}("clientToken" => clientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "DELETE", - "/kx/environments/$(environmentId)/databases/$(databaseName)", - Dict{String,Any}("clientToken" => clientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_kx_database( clientToken, databaseName, @@ -832,21 +807,19 @@ use by any cluster. delete the dataview. """ -function delete_kx_dataview( +delete_kx_dataview( clientToken, databaseName, dataviewName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "DELETE", + "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews/$(dataviewName)", + Dict{String,Any}("clientToken" => clientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "DELETE", - "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews/$(dataviewName)", - Dict{String,Any}("clientToken" => clientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_kx_dataview( clientToken, databaseName, @@ -880,17 +853,14 @@ remove all the associated data and any services running in it. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function delete_kx_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +delete_kx_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "DELETE", "/kx/environments/$(environmentId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_kx_environment( environmentId, params::AbstractDict{String}; @@ -923,17 +893,15 @@ scaling group until all the clusters running on it have been deleted. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function delete_kx_scaling_group( +delete_kx_scaling_group( environmentId, scalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "DELETE", + "/kx/environments/$(environmentId)/scalingGroups/$(scalingGroupName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "DELETE", - "/kx/environments/$(environmentId)/scalingGroups/$(scalingGroupName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_kx_scaling_group( environmentId, scalingGroupName, @@ -965,17 +933,15 @@ Deletes a user in the specified kdb environment. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function delete_kx_user( +delete_kx_user( environmentId, userName; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "DELETE", + "/kx/environments/$(environmentId)/users/$(userName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "DELETE", - "/kx/environments/$(environmentId)/users/$(userName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_kx_user( environmentId, userName, @@ -1010,17 +976,15 @@ irreversible. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function delete_kx_volume( +delete_kx_volume( environmentId, volumeName; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "DELETE", + "/kx/environments/$(environmentId)/kxvolumes/$(volumeName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "DELETE", - "/kx/environments/$(environmentId)/kxvolumes/$(volumeName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_kx_volume( environmentId, volumeName, @@ -1048,14 +1012,13 @@ Returns the FinSpace environment object. - `environment_id`: The identifier of the FinSpace environment. """ -function get_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace( +get_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "GET", "/environment/$(environmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_environment( environmentId, params::AbstractDict{String}; @@ -1082,19 +1045,17 @@ Returns information about a kdb changeset. - `environment_id`: A unique identifier for the kdb environment. """ -function get_kx_changeset( +get_kx_changeset( changesetId, databaseName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "GET", + "/kx/environments/$(environmentId)/databases/$(databaseName)/changesets/$(changesetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/databases/$(databaseName)/changesets/$(changesetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_kx_changeset( changesetId, databaseName, @@ -1122,16 +1083,14 @@ Retrieves information about a kdb cluster. - `environment_id`: A unique identifier for the kdb environment. """ -function get_kx_cluster( +get_kx_cluster( clusterName, environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "GET", + "/kx/environments/$(environmentId)/clusters/$(clusterName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/clusters/$(clusterName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_kx_cluster( clusterName, environmentId, @@ -1162,17 +1121,15 @@ API using the same role that you have defined while creating a user. Guide. """ -function get_kx_connection_string( +get_kx_connection_string( clusterName, environmentId, userArn; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "GET", + "/kx/environments/$(environmentId)/connectionString", + Dict{String,Any}("clusterName" => clusterName, "userArn" => userArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/connectionString", - Dict{String,Any}("clusterName" => clusterName, "userArn" => userArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_kx_connection_string( clusterName, environmentId, @@ -1206,16 +1163,14 @@ Returns database information for the specified environment ID. - `environment_id`: A unique identifier for the kdb environment. """ -function get_kx_database( +get_kx_database( databaseName, environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "GET", + "/kx/environments/$(environmentId)/databases/$(databaseName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/databases/$(databaseName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_kx_database( databaseName, environmentId, @@ -1244,19 +1199,17 @@ end retrieve the dataview details. """ -function get_kx_dataview( +get_kx_dataview( databaseName, dataviewName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "GET", + "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews/$(dataviewName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews/$(dataviewName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_kx_dataview( databaseName, dataviewName, @@ -1283,16 +1236,13 @@ Retrieves all the information for the specified kdb environment. - `environment_id`: A unique identifier for the kdb environment. """ -function get_kx_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +get_kx_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "GET", "/kx/environments/$(environmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_kx_environment( environmentId, params::AbstractDict{String}; @@ -1318,16 +1268,14 @@ end - `scaling_group_name`: A unique identifier for the kdb scaling group. """ -function get_kx_scaling_group( +get_kx_scaling_group( environmentId, scalingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "GET", + "/kx/environments/$(environmentId)/scalingGroups/$(scalingGroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/scalingGroups/$(scalingGroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_kx_scaling_group( environmentId, scalingGroupName, @@ -1354,16 +1302,13 @@ Retrieves information about the specified kdb user. - `user_name`: A unique identifier for the user. """ -function get_kx_user( - environmentId, userName; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +get_kx_user(environmentId, userName; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "GET", "/kx/environments/$(environmentId)/users/$(userName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_kx_user( environmentId, userName, @@ -1391,16 +1336,14 @@ end - `volume_name`: A unique identifier for the volume. """ -function get_kx_volume( +get_kx_volume( environmentId, volumeName; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "GET", + "/kx/environments/$(environmentId)/kxvolumes/$(volumeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/kxvolumes/$(volumeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_kx_volume( environmentId, volumeName, @@ -1429,11 +1372,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if a previous request was truncated. To get the next set of pages, pass in the nextTokennextToken value from the response object of the previous page call. """ -function list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace( - "GET", "/environment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace("GET", "/environment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1461,16 +1401,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_kx_changesets( +list_kx_changesets( databaseName, environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "GET", + "/kx/environments/$(environmentId)/databases/$(databaseName)/changesets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/databases/$(databaseName)/changesets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_kx_changesets( databaseName, environmentId, @@ -1501,16 +1439,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_kx_cluster_nodes( +list_kx_cluster_nodes( clusterName, environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "GET", + "/kx/environments/$(environmentId)/clusters/$(clusterName)/nodes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/clusters/$(clusterName)/nodes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_kx_cluster_nodes( clusterName, environmentId, @@ -1559,14 +1495,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_kx_clusters(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace( +list_kx_clusters(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "GET", "/kx/environments/$(environmentId)/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_kx_clusters( environmentId, params::AbstractDict{String}; @@ -1595,16 +1530,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_kx_databases( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +list_kx_databases(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "GET", "/kx/environments/$(environmentId)/databases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_kx_databases( environmentId, params::AbstractDict{String}; @@ -1635,16 +1567,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_kx_dataviews( +list_kx_dataviews( databaseName, environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "GET", + "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "GET", - "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_kx_dataviews( databaseName, environmentId, @@ -1671,11 +1601,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_kx_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace( - "GET", "/kx/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_kx_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = finspace( + "GET", "/kx/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_kx_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1703,16 +1631,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_kx_scaling_groups( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +list_kx_scaling_groups(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "GET", "/kx/environments/$(environmentId)/scalingGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_kx_scaling_groups( environmentId, params::AbstractDict{String}; @@ -1741,14 +1666,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in this request. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_kx_users(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace( - "GET", - "/kx/environments/$(environmentId)/users"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_kx_users(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = finspace( + "GET", + "/kx/environments/$(environmentId)/users"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_kx_users( environmentId, params::AbstractDict{String}; @@ -1780,14 +1703,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"volumeType"`: The type of file system volume. Currently, FinSpace only supports NAS_1 volume type. """ -function list_kx_volumes(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace( +list_kx_volumes(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "GET", "/kx/environments/$(environmentId)/kxvolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_kx_volumes( environmentId, params::AbstractDict{String}; @@ -1812,16 +1734,13 @@ A list of all tags for a resource. - `resource_arn`: The Amazon Resource Name of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1847,15 +1766,14 @@ Adds metadata tags to a FinSpace resource. - `tags`: One or more tags to be assigned to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1883,17 +1801,14 @@ Removes metadata tags from a FinSpace resource. - `tag_keys`: The tag keys (names) of one or more tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1927,16 +1842,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"federationParameters"`: - `"name"`: The name of the environment. """ -function update_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +update_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "PUT", "/environment/$(environmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_environment( environmentId, params::AbstractDict{String}; @@ -1977,17 +1889,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys on the cluster. It must include the file name itself. For example, somedir/init.q. You cannot update this parameter for a NO_RESTART deployment. """ -function update_kx_cluster_code_configuration( +update_kx_cluster_code_configuration( clusterName, code, environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "PUT", + "/kx/environments/$(environmentId)/clusters/$(clusterName)/configuration/code", + Dict{String,Any}("code" => code, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "PUT", - "/kx/environments/$(environmentId)/clusters/$(clusterName)/configuration/code", - Dict{String,Any}("code" => code, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_kx_cluster_code_configuration( clusterName, code, @@ -2030,20 +1940,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deploymentConfiguration"`: The configuration that allows you to choose how you want to update the databases on a cluster. """ -function update_kx_cluster_databases( +update_kx_cluster_databases( clusterName, databases, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "PUT", + "/kx/environments/$(environmentId)/clusters/$(clusterName)/configuration/databases", + Dict{String,Any}("databases" => databases, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "PUT", - "/kx/environments/$(environmentId)/clusters/$(clusterName)/configuration/databases", - Dict{String,Any}("databases" => databases, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_kx_cluster_databases( clusterName, databases, @@ -2083,20 +1991,18 @@ Updates information for the given kdb database. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A description of the database. """ -function update_kx_database( +update_kx_database( clientToken, databaseName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "PUT", + "/kx/environments/$(environmentId)/databases/$(databaseName)", + Dict{String,Any}("clientToken" => clientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "PUT", - "/kx/environments/$(environmentId)/databases/$(databaseName)", - Dict{String,Any}("clientToken" => clientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_kx_database( clientToken, databaseName, @@ -2139,21 +2045,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys path for each volume. If you do not explicitly specify any database path for a volume, they are accessible from the cluster through the default S3/object store segment. """ -function update_kx_dataview( +update_kx_dataview( clientToken, databaseName, dataviewName, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace( + "PUT", + "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews/$(dataviewName)", + Dict{String,Any}("clientToken" => clientToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "PUT", - "/kx/environments/$(environmentId)/databases/$(databaseName)/dataviews/$(dataviewName)", - Dict{String,Any}("clientToken" => clientToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_kx_dataview( clientToken, databaseName, @@ -2188,17 +2092,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the kdb environment. - `"name"`: The name of the kdb environment. """ -function update_kx_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace( +update_kx_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace( "PUT", "/kx/environments/$(environmentId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_kx_environment( environmentId, params::AbstractDict{String}; @@ -2236,17 +2137,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"transitGatewayConfiguration"`: Specifies the transit gateway and network configuration to connect the kdb environment to an internal network. """ -function update_kx_environment_network( +update_kx_environment_network( environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "PUT", + "/kx/environments/$(environmentId)/network", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "PUT", - "/kx/environments/$(environmentId)/network", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_kx_environment_network( environmentId, params::AbstractDict{String}; @@ -2278,17 +2177,15 @@ Updates the user details. You can only update the IAM role associated with a use Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function update_kx_user( +update_kx_user( environmentId, iamRole, userName; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "PUT", + "/kx/environments/$(environmentId)/users/$(userName)", + Dict{String,Any}("iamRole" => iamRole, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "PUT", - "/kx/environments/$(environmentId)/users/$(userName)", - Dict{String,Any}("iamRole" => iamRole, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_kx_user( environmentId, iamRole, @@ -2331,17 +2228,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nas1Configuration"`: Specifies the configuration for the Network attached storage (NAS_1) file system volume. """ -function update_kx_volume( +update_kx_volume( environmentId, volumeName; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace( + "PATCH", + "/kx/environments/$(environmentId)/kxvolumes/$(volumeName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace( - "PATCH", - "/kx/environments/$(environmentId)/kxvolumes/$(volumeName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_kx_volume( environmentId, volumeName, diff --git a/src/services/finspace_data.jl b/src/services/finspace_data.jl index 441425dcc..e4713529d 100644 --- a/src/services/finspace_data.jl +++ b/src/services/finspace_data.jl @@ -19,17 +19,15 @@ FinSpace. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function associate_user_to_permission_group( +associate_user_to_permission_group( permissionGroupId, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "POST", + "/permission-group/$(permissionGroupId)/users/$(userId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "POST", - "/permission-group/$(permissionGroupId)/users/$(userId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_user_to_permission_group( permissionGroupId, userId, @@ -86,26 +84,24 @@ Creates a new Changeset in a FinSpace Dataset. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function create_changeset( +create_changeset( changeType, datasetId, formatParams, sourceParams; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace_data( + "POST", + "/datasets/$(datasetId)/changesetsv2", + Dict{String,Any}( + "changeType" => changeType, + "formatParams" => formatParams, + "sourceParams" => sourceParams, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "POST", - "/datasets/$(datasetId)/changesetsv2", - Dict{String,Any}( - "changeType" => changeType, - "formatParams" => formatParams, - "sourceParams" => sourceParams, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_changeset( changeType, datasetId, @@ -154,20 +150,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"partitionColumns"`: Ordered set of column names used to partition data. - `"sortColumns"`: Columns to be used for sorting the data. """ -function create_data_view( +create_data_view( datasetId, destinationTypeParams; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "POST", + "/datasets/$(datasetId)/dataviewsv2", + Dict{String,Any}( + "destinationTypeParams" => destinationTypeParams, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "POST", - "/datasets/$(datasetId)/dataviewsv2", - Dict{String,Any}( - "destinationTypeParams" => destinationTypeParams, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_view( datasetId, destinationTypeParams, @@ -212,25 +206,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ownerInfo"`: Contact information for a Dataset owner. - `"schemaDefinition"`: Definition for a schema on a tabular Dataset. """ -function create_dataset( +create_dataset( datasetTitle, kind, permissionGroupParams; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace_data( + "POST", + "/datasetsv2", + Dict{String,Any}( + "datasetTitle" => datasetTitle, + "kind" => kind, + "permissionGroupParams" => permissionGroupParams, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "POST", - "/datasetsv2", - Dict{String,Any}( - "datasetTitle" => datasetTitle, - "kind" => kind, - "permissionGroupParams" => permissionGroupParams, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset( datasetTitle, kind, @@ -285,21 +277,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. - `"description"`: A brief description for the permission group. """ -function create_permission_group( +create_permission_group( applicationPermissions, name; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "POST", + "/permission-group", + Dict{String,Any}( + "applicationPermissions" => applicationPermissions, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "POST", - "/permission-group", - Dict{String,Any}( - "applicationPermissions" => applicationPermissions, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_permission_group( applicationPermissions, name, @@ -353,8 +343,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"firstName"`: The first name of the user that you want to register. - `"lastName"`: The last name of the user that you want to register. """ -function create_user(emailAddress, type; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( +create_user(emailAddress, type; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace_data( "POST", "/user", Dict{String,Any}( @@ -363,7 +353,6 @@ function create_user(emailAddress, type; aws_config::AbstractAWSConfig=current_a aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_user( emailAddress, type, @@ -402,15 +391,14 @@ Deletes a FinSpace Dataset. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function delete_dataset(datasetId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( +delete_dataset(datasetId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace_data( "DELETE", "/datasetsv2/$(datasetId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dataset( datasetId, params::AbstractDict{String}; @@ -441,17 +429,15 @@ Deletes a permission group. This action is irreversible. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function delete_permission_group( +delete_permission_group( permissionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "DELETE", + "/permission-group/$(permissionGroupId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "DELETE", - "/permission-group/$(permissionGroupId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_permission_group( permissionGroupId, params::AbstractDict{String}; @@ -481,15 +467,13 @@ Denies access to the FinSpace web application and API for the specified user. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function disable_user(userId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( - "POST", - "/user/$(userId)/disable", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_user(userId; aws_config::AbstractAWSConfig=current_aws_config()) = finspace_data( + "POST", + "/user/$(userId)/disable", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_user( userId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -518,17 +502,15 @@ Removes a user from a permission group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function disassociate_user_from_permission_group( +disassociate_user_from_permission_group( permissionGroupId, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "DELETE", + "/permission-group/$(permissionGroupId)/users/$(userId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "DELETE", - "/permission-group/$(permissionGroupId)/users/$(userId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_user_from_permission_group( permissionGroupId, userId, @@ -559,15 +541,13 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function enable_user(userId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( - "POST", - "/user/$(userId)/enable", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_user(userId; aws_config::AbstractAWSConfig=current_aws_config()) = finspace_data( + "POST", + "/user/$(userId)/enable", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_user( userId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -594,16 +574,13 @@ Get information about a Changeset. created. """ -function get_changeset( - changesetId, datasetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace_data( +get_changeset(changesetId, datasetId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace_data( "GET", "/datasets/$(datasetId)/changesetsv2/$(changesetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_changeset( changesetId, datasetId, @@ -630,16 +607,13 @@ Gets information about a Dataview. - `dataview_id`: The unique identifier for the Dataview. """ -function get_data_view( - datasetId, dataviewId; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace_data( +get_data_view(datasetId, dataviewId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace_data( "GET", "/datasets/$(datasetId)/dataviewsv2/$(dataviewId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_view( datasetId, dataviewId, @@ -665,14 +639,12 @@ Returns information about a Dataset. - `dataset_id`: The unique identifier for a Dataset. """ -function get_dataset(datasetId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( - "GET", - "/datasetsv2/$(datasetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_dataset(datasetId; aws_config::AbstractAWSConfig=current_aws_config()) = finspace_data( + "GET", + "/datasetsv2/$(datasetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_dataset( datasetId, params::AbstractDict{String}; @@ -700,16 +672,14 @@ user group, where the dataset that you want to access has Read Dataset Data perm - `dataview_id`: The unique identifier for the Dataview that you want to access. """ -function get_external_data_view_access_details( +get_external_data_view_access_details( datasetId, dataviewId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "POST", + "/datasets/$(datasetId)/dataviewsv2/$(dataviewId)/external-access-details"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "POST", - "/datasets/$(datasetId)/dataviewsv2/$(dataviewId)/external-access-details"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_external_data_view_access_details( datasetId, dataviewId, @@ -735,16 +705,14 @@ Retrieves the details of a specific permission group. - `permission_group_id`: The unique identifier for the permission group. """ -function get_permission_group( +get_permission_group( permissionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "GET", + "/permission-group/$(permissionGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "GET", - "/permission-group/$(permissionGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_permission_group( permissionGroupId, params::AbstractDict{String}; @@ -773,17 +741,15 @@ Request programmatic credentials to use with FinSpace SDK. For more information, Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"durationInMinutes"`: The time duration in which the credentials remain valid. """ -function get_programmatic_access_credentials( +get_programmatic_access_credentials( environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "GET", + "/credentials/programmatic", + Dict{String,Any}("environmentId" => environmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "GET", - "/credentials/programmatic", - Dict{String,Any}("environmentId" => environmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_programmatic_access_credentials( environmentId, params::AbstractDict{String}; @@ -810,11 +776,9 @@ Retrieves details for a specific user. - `user_id`: The unique identifier of the user to get data for. """ -function get_user(userId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( - "GET", "/user/$(userId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_user(userId; aws_config::AbstractAWSConfig=current_aws_config()) = finspace_data( + "GET", "/user/$(userId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_user( userId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -842,11 +806,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys staging location to copy your data content and then use the location with the Changeset creation operation. """ -function get_working_location(; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( - "POST", "/workingLocationV1"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_working_location(; aws_config::AbstractAWSConfig=current_aws_config()) = finspace_data( + "POST", "/workingLocationV1"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_working_location( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -874,14 +836,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results per page. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_changesets(datasetId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( +list_changesets(datasetId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace_data( "GET", "/datasets/$(datasetId)/changesetsv2"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_changesets( datasetId, params::AbstractDict{String}; @@ -910,14 +871,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results per page. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_data_views(datasetId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( +list_data_views(datasetId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace_data( "GET", "/datasets/$(datasetId)/dataviewsv2"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_data_views( datasetId, params::AbstractDict{String}; @@ -943,11 +903,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results per page. - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( - "GET", "/datasetsv2"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) = finspace_data( + "GET", "/datasetsv2"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_datasets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -969,17 +927,14 @@ Lists all available permission groups in FinSpace. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_permission_groups( - maxResults; aws_config::AbstractAWSConfig=current_aws_config() -) - return finspace_data( +list_permission_groups(maxResults; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace_data( "GET", "/permission-group", Dict{String,Any}("maxResults" => maxResults); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_permission_groups( maxResults, params::AbstractDict{String}; @@ -1010,17 +965,15 @@ Lists all the permission groups that are associated with a specific user. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_permission_groups_by_user( +list_permission_groups_by_user( maxResults, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "GET", + "/user/$(userId)/permission-groups", + Dict{String,Any}("maxResults" => maxResults); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "GET", - "/user/$(userId)/permission-groups", - Dict{String,Any}("maxResults" => maxResults); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_permission_groups_by_user( maxResults, userId, @@ -1051,15 +1004,13 @@ Lists all available users in FinSpace. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_users(maxResults; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( - "GET", - "/user", - Dict{String,Any}("maxResults" => maxResults); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_users(maxResults; aws_config::AbstractAWSConfig=current_aws_config()) = finspace_data( + "GET", + "/user", + Dict{String,Any}("maxResults" => maxResults); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_users( maxResults, params::AbstractDict{String}; @@ -1090,17 +1041,15 @@ Lists details of all the users in a specific permission group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: A token that indicates where a results page should begin. """ -function list_users_by_permission_group( +list_users_by_permission_group( maxResults, permissionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "GET", + "/permission-group/$(permissionGroupId)/users", + Dict{String,Any}("maxResults" => maxResults); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "GET", - "/permission-group/$(permissionGroupId)/users", - Dict{String,Any}("maxResults" => maxResults); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_users_by_permission_group( maxResults, permissionGroupId, @@ -1133,15 +1082,14 @@ previous password associated with the user. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function reset_user_password(userId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( +reset_user_password(userId; aws_config::AbstractAWSConfig=current_aws_config()) = + finspace_data( "POST", "/user/$(userId)/password", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reset_user_password( userId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1191,25 +1139,23 @@ Updates a FinSpace Changeset. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token that ensures idempotency. This token expires in 10 minutes. """ -function update_changeset( +update_changeset( changesetId, datasetId, formatParams, sourceParams; aws_config::AbstractAWSConfig=current_aws_config(), +) = finspace_data( + "PUT", + "/datasets/$(datasetId)/changesetsv2/$(changesetId)", + Dict{String,Any}( + "formatParams" => formatParams, + "sourceParams" => sourceParams, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "PUT", - "/datasets/$(datasetId)/changesetsv2/$(changesetId)", - Dict{String,Any}( - "formatParams" => formatParams, - "sourceParams" => sourceParams, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_changeset( changesetId, datasetId, @@ -1257,19 +1203,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"datasetDescription"`: A description for the Dataset. - `"schemaDefinition"`: Definition for a schema on a tabular Dataset. """ -function update_dataset( +update_dataset( datasetId, datasetTitle, kind; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "PUT", + "/datasetsv2/$(datasetId)", + Dict{String,Any}( + "datasetTitle" => datasetTitle, "kind" => kind, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "PUT", - "/datasetsv2/$(datasetId)", - Dict{String,Any}( - "datasetTitle" => datasetTitle, "kind" => kind, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dataset( datasetId, datasetTitle, @@ -1324,17 +1268,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A brief description for the permission group. - `"name"`: The name of the permission group. """ -function update_permission_group( +update_permission_group( permissionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = finspace_data( + "PUT", + "/permission-group/$(permissionGroupId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return finspace_data( - "PUT", - "/permission-group/$(permissionGroupId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_permission_group( permissionGroupId, params::AbstractDict{String}; @@ -1377,15 +1319,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specific permissions in FinSpace. The users are assigned permissions by adding them to a permission group. """ -function update_user(userId; aws_config::AbstractAWSConfig=current_aws_config()) - return finspace_data( - "PUT", - "/user/$(userId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_user(userId; aws_config::AbstractAWSConfig=current_aws_config()) = finspace_data( + "PUT", + "/user/$(userId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_user( userId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/firehose.jl b/src/services/firehose.jl index 604db2e6b..1582a5238 100644 --- a/src/services/firehose.jl +++ b/src/services/firehose.jl @@ -77,6 +77,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys only one destination. - `"HttpEndpointDestinationConfiguration"`: Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination. You can specify only one destination. +- `"IcebergDestinationConfiguration"`: Configure Apache Iceberg Tables destination. + Amazon Data Firehose is in preview release and is subject to change. - `"KinesisStreamSourceConfiguration"`: When a Kinesis data stream is used as the source for the delivery stream, a KinesisStreamSourceConfiguration containing the Kinesis data stream Amazon Resource Name (ARN) and the role ARN for the source stream. @@ -102,16 +104,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys firehose:TagDeliveryStream on resource: arn:aws:firehose:us-east-1:x:deliverystream/x with an explicit deny in an identity-based policy. For an example IAM policy, see Tag example. """ -function create_delivery_stream( +create_delivery_stream( DeliveryStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "CreateDeliveryStream", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "CreateDeliveryStream", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_delivery_stream( DeliveryStreamName, params::AbstractDict{String}; @@ -158,16 +158,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys gave to Firehose. If a failure to retire the grant happens due to an Amazon Web Services KMS issue, Firehose keeps retrying the delete operation. The default value is false. """ -function delete_delivery_stream( +delete_delivery_stream( DeliveryStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "DeleteDeliveryStream", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "DeleteDeliveryStream", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_delivery_stream( DeliveryStreamName, params::AbstractDict{String}; @@ -207,16 +205,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: The limit on the number of destinations to return. You can have one destination per delivery stream. """ -function describe_delivery_stream( +describe_delivery_stream( DeliveryStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "DescribeDeliveryStream", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "DescribeDeliveryStream", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_delivery_stream( DeliveryStreamName, params::AbstractDict{String}; @@ -258,11 +254,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys immediately after the name you specify in ExclusiveStartDeliveryStreamName. - `"Limit"`: The maximum number of delivery streams to list. The default value is 10. """ -function list_delivery_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return firehose( - "ListDeliveryStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_delivery_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = + firehose("ListDeliveryStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_delivery_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -293,16 +286,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags associated with the delivery stream, HasMoreTags is set to true in the response. To list additional tags, set ExclusiveStartTagKey to the last key in the response. """ -function list_tags_for_delivery_stream( +list_tags_for_delivery_stream( DeliveryStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "ListTagsForDeliveryStream", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "ListTagsForDeliveryStream", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_delivery_stream( DeliveryStreamName, params::AbstractDict{String}; @@ -359,16 +350,13 @@ of your records. Instead, concatenate the raw data, then perform base64 encoding - `record`: The record. """ -function put_record( - DeliveryStreamName, Record; aws_config::AbstractAWSConfig=current_aws_config() -) - return firehose( +put_record(DeliveryStreamName, Record; aws_config::AbstractAWSConfig=current_aws_config()) = + firehose( "PutRecord", Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName, "Record" => Record); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_record( DeliveryStreamName, Record, @@ -446,16 +434,14 @@ fields of your records. Instead, concatenate the raw data, then perform base64 e - `records`: One or more records. """ -function put_record_batch( +put_record_batch( DeliveryStreamName, Records; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "PutRecordBatch", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName, "Records" => Records); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "PutRecordBatch", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName, "Records" => Records); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_record_batch( DeliveryStreamName, Records, @@ -522,16 +508,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeliveryStreamEncryptionConfigurationInput"`: Used to specify the type and Amazon Resource Name (ARN) of the KMS key needed for Server-Side Encryption (SSE). """ -function start_delivery_stream_encryption( +start_delivery_stream_encryption( DeliveryStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "StartDeliveryStreamEncryption", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "StartDeliveryStreamEncryption", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_delivery_stream_encryption( DeliveryStreamName, params::AbstractDict{String}; @@ -574,16 +558,14 @@ StopDeliveryStreamEncryption 12 times for the same delivery stream in a 24-hour server-side encryption (SSE). """ -function stop_delivery_stream_encryption( +stop_delivery_stream_encryption( DeliveryStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "StopDeliveryStreamEncryption", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "StopDeliveryStreamEncryption", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_delivery_stream_encryption( DeliveryStreamName, params::AbstractDict{String}; @@ -619,16 +601,14 @@ five transactions per second per account. - `tags`: A set of key-value pairs to use to create the tags. """ -function tag_delivery_stream( +tag_delivery_stream( DeliveryStreamName, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "TagDeliveryStream", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "TagDeliveryStream", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_delivery_stream( DeliveryStreamName, Tags, @@ -666,16 +646,14 @@ per account. stream. """ -function untag_delivery_stream( +untag_delivery_stream( DeliveryStreamName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = firehose( + "UntagDeliveryStream", + Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "UntagDeliveryStream", - Dict{String,Any}("DeliveryStreamName" => DeliveryStreamName, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_delivery_stream( DeliveryStreamName, TagKeys, @@ -744,29 +722,29 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ExtendedS3DestinationUpdate"`: Describes an update for a destination in Amazon S3. - `"HttpEndpointDestinationUpdate"`: Describes an update to the specified HTTP endpoint destination. +- `"IcebergDestinationUpdate"`: Describes an update for a destination in Apache Iceberg + Tables. Amazon Data Firehose is in preview release and is subject to change. - `"RedshiftDestinationUpdate"`: Describes an update for a destination in Amazon Redshift. - `"S3DestinationUpdate"`: [Deprecated] Describes an update for a destination in Amazon S3. - `"SnowflakeDestinationUpdate"`: Update to the Snowflake destination configuration settings. - `"SplunkDestinationUpdate"`: Describes an update for a destination in Splunk. """ -function update_destination( +update_destination( CurrentDeliveryStreamVersionId, DeliveryStreamName, DestinationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = firehose( + "UpdateDestination", + Dict{String,Any}( + "CurrentDeliveryStreamVersionId" => CurrentDeliveryStreamVersionId, + "DeliveryStreamName" => DeliveryStreamName, + "DestinationId" => DestinationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return firehose( - "UpdateDestination", - Dict{String,Any}( - "CurrentDeliveryStreamVersionId" => CurrentDeliveryStreamVersionId, - "DeliveryStreamName" => DeliveryStreamName, - "DestinationId" => DestinationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_destination( CurrentDeliveryStreamVersionId, DeliveryStreamName, diff --git a/src/services/fis.jl b/src/services/fis.jl index 09b246ffc..d39d9e187 100644 --- a/src/services/fis.jl +++ b/src/services/fis.jl @@ -34,28 +34,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags to apply to the experiment template. - `"targets"`: The targets for the experiment. """ -function create_experiment_template( +create_experiment_template( actions, clientToken, description, roleArn, stopConditions; aws_config::AbstractAWSConfig=current_aws_config(), +) = fis( + "POST", + "/experimentTemplates", + Dict{String,Any}( + "actions" => actions, + "clientToken" => clientToken, + "description" => description, + "roleArn" => roleArn, + "stopConditions" => stopConditions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fis( - "POST", - "/experimentTemplates", - Dict{String,Any}( - "actions" => actions, - "clientToken" => clientToken, - "description" => description, - "roleArn" => roleArn, - "stopConditions" => stopConditions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_experiment_template( actions, clientToken, @@ -106,17 +104,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. - `"description"`: The description of the target account. """ -function create_target_account_configuration( +create_target_account_configuration( accountId, id, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = fis( + "POST", + "/experimentTemplates/$(id)/targetAccountConfigurations/$(accountId)", + Dict{String,Any}("roleArn" => roleArn, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fis( - "POST", - "/experimentTemplates/$(id)/targetAccountConfigurations/$(accountId)", - Dict{String,Any}("roleArn" => roleArn, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_target_account_configuration( accountId, id, @@ -149,14 +145,12 @@ Deletes the specified experiment template. - `id`: The ID of the experiment template. """ -function delete_experiment_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "DELETE", - "/experimentTemplates/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_experiment_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "DELETE", + "/experimentTemplates/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_experiment_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -180,16 +174,14 @@ Deletes the specified target account configuration of the experiment template. - `id`: The ID of the experiment template. """ -function delete_target_account_configuration( +delete_target_account_configuration( accountId, id; aws_config::AbstractAWSConfig=current_aws_config() +) = fis( + "DELETE", + "/experimentTemplates/$(id)/targetAccountConfigurations/$(accountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fis( - "DELETE", - "/experimentTemplates/$(id)/targetAccountConfigurations/$(accountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_target_account_configuration( accountId, id, @@ -215,11 +207,8 @@ Gets information about the specified FIS action. - `id`: The ID of the action. """ -function get_action(id; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "GET", "/actions/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_action(id; aws_config::AbstractAWSConfig=current_aws_config()) = + fis("GET", "/actions/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_action( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -242,11 +231,8 @@ Gets information about the specified experiment. - `id`: The ID of the experiment. """ -function get_experiment(id; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "GET", "/experiments/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_experiment(id; aws_config::AbstractAWSConfig=current_aws_config()) = + fis("GET", "/experiments/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_experiment( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -270,16 +256,14 @@ Gets information about the specified target account configuration of the experim - `id`: The ID of the experiment. """ -function get_experiment_target_account_configuration( +get_experiment_target_account_configuration( accountId, id; aws_config::AbstractAWSConfig=current_aws_config() +) = fis( + "GET", + "/experiments/$(id)/targetAccountConfigurations/$(accountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fis( - "GET", - "/experiments/$(id)/targetAccountConfigurations/$(accountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_experiment_target_account_configuration( accountId, id, @@ -305,20 +289,43 @@ Gets information about the specified experiment template. - `id`: The ID of the experiment template. """ -function get_experiment_template(id; aws_config::AbstractAWSConfig=current_aws_config()) +get_experiment_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "GET", + "/experimentTemplates/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_experiment_template( + id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return fis( "GET", - "/experimentTemplates/$(id)"; + "/experimentTemplates/$(id)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_experiment_template( + +""" + get_safety_lever(id) + get_safety_lever(id, params::Dict{String,<:Any}) + + Gets information about the specified safety lever. + +# Arguments +- `id`: The ID of the safety lever. + +""" +get_safety_lever(id; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "GET", "/safetyLevers/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function get_safety_lever( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return fis( "GET", - "/experimentTemplates/$(id)", + "/safetyLevers/$(id)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -337,16 +344,14 @@ template. - `id`: The ID of the experiment template. """ -function get_target_account_configuration( +get_target_account_configuration( accountId, id; aws_config::AbstractAWSConfig=current_aws_config() +) = fis( + "GET", + "/experimentTemplates/$(id)/targetAccountConfigurations/$(accountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fis( - "GET", - "/experimentTemplates/$(id)/targetAccountConfigurations/$(accountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_target_account_configuration( accountId, id, @@ -372,16 +377,13 @@ Gets information about the specified resource type. - `resource_type`: The resource type. """ -function get_target_resource_type( - resourceType; aws_config::AbstractAWSConfig=current_aws_config() -) - return fis( +get_target_resource_type(resourceType; aws_config::AbstractAWSConfig=current_aws_config()) = + fis( "GET", "/targetResourceTypes/$(resourceType)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_target_resource_type( resourceType, params::AbstractDict{String}; @@ -408,9 +410,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return fis("GET", "/actions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + fis("GET", "/actions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -435,16 +436,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next page of results. - `"targetName"`: The name of the target. """ -function list_experiment_resolved_targets( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return fis( +list_experiment_resolved_targets(id; aws_config::AbstractAWSConfig=current_aws_config()) = + fis( "GET", "/experiments/$(id)/resolvedTargets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_experiment_resolved_targets( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -470,16 +468,14 @@ Lists the target account configurations of the specified experiment. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: The token for the next page of results. """ -function list_experiment_target_account_configurations( +list_experiment_target_account_configurations( id; aws_config::AbstractAWSConfig=current_aws_config() +) = fis( + "GET", + "/experiments/$(id)/targetAccountConfigurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fis( - "GET", - "/experiments/$(id)/targetAccountConfigurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_experiment_target_account_configurations( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -504,14 +500,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_experiment_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "GET", - "/experimentTemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_experiment_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "GET", + "/experimentTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_experiment_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -537,11 +531,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_experiments(; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "GET", "/experiments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_experiments(; aws_config::AbstractAWSConfig=current_aws_config()) = + fis("GET", "/experiments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_experiments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -564,16 +555,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return fis( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + fis( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -603,16 +591,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_target_account_configurations( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return fis( +list_target_account_configurations(id; aws_config::AbstractAWSConfig=current_aws_config()) = + fis( "GET", "/experimentTemplates/$(id)/targetAccountConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_target_account_configurations( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -637,14 +622,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_target_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "GET", - "/targetResourceTypes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_target_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "GET", + "/targetResourceTypes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_target_resource_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -673,19 +656,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"experimentOptions"`: The experiment options for running the experiment. - `"tags"`: The tags to apply to the experiment. """ -function start_experiment( +start_experiment( clientToken, experimentTemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = fis( + "POST", + "/experiments", + Dict{String,Any}( + "clientToken" => clientToken, "experimentTemplateId" => experimentTemplateId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fis( - "POST", - "/experiments", - Dict{String,Any}( - "clientToken" => clientToken, "experimentTemplateId" => experimentTemplateId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_experiment( clientToken, experimentTemplateId, @@ -720,14 +701,12 @@ Stops the specified experiment. - `id`: The ID of the experiment. """ -function stop_experiment(id; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "DELETE", - "/experiments/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_experiment(id; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "DELETE", + "/experiments/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_experiment( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -751,15 +730,13 @@ Applies the specified tags to the specified resource. - `tags`: The tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -788,14 +765,12 @@ Removes the specified tags from the specified resource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tagKeys"`: The tag keys to remove. """ -function untag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return fis( - "DELETE", - "/tags/$(resourceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "DELETE", + "/tags/$(resourceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_resource( resourceArn, params::AbstractDict{String}; @@ -830,21 +805,53 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"stopConditions"`: The stop conditions for the experiment. - `"targets"`: The targets for the experiment. """ -function update_experiment_template(id; aws_config::AbstractAWSConfig=current_aws_config()) +update_experiment_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = fis( + "PATCH", + "/experimentTemplates/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_experiment_template( + id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return fis( "PATCH", - "/experimentTemplates/$(id)"; + "/experimentTemplates/$(id)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function update_experiment_template( - id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() + +""" + update_safety_lever_state(id, state) + update_safety_lever_state(id, state, params::Dict{String,<:Any}) + + Updates the specified safety lever state. + +# Arguments +- `id`: The ID of the safety lever. +- `state`: The state of the safety lever. + +""" +update_safety_lever_state(id, state; aws_config::AbstractAWSConfig=current_aws_config()) = + fis( + "PATCH", + "/safetyLevers/$(id)/state", + Dict{String,Any}("state" => state); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function update_safety_lever_state( + id, + state, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return fis( "PATCH", - "/experimentTemplates/$(id)", - params; + "/safetyLevers/$(id)/state", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("state" => state), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -865,16 +872,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the target account. - `"roleArn"`: The Amazon Resource Name (ARN) of an IAM role for the target account. """ -function update_target_account_configuration( +update_target_account_configuration( accountId, id; aws_config::AbstractAWSConfig=current_aws_config() +) = fis( + "PATCH", + "/experimentTemplates/$(id)/targetAccountConfigurations/$(accountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fis( - "PATCH", - "/experimentTemplates/$(id)/targetAccountConfigurations/$(accountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_target_account_configuration( accountId, id, diff --git a/src/services/fms.jl b/src/services/fms.jl index e8526a84a..a6b80b819 100644 --- a/src/services/fms.jl +++ b/src/services/fms.jl @@ -24,16 +24,13 @@ Manager Developer Guide. Organization. """ -function associate_admin_account( - AdminAccount; aws_config::AbstractAWSConfig=current_aws_config() -) - return fms( +associate_admin_account(AdminAccount; aws_config::AbstractAWSConfig=current_aws_config()) = + fms( "AssociateAdminAccount", Dict{String,Any}("AdminAccount" => AdminAccount); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_admin_account( AdminAccount, params::AbstractDict{String}; @@ -61,16 +58,14 @@ associated with your Amazon Web Services customer account. - `third_party_firewall`: The name of the third-party firewall vendor. """ -function associate_third_party_firewall( +associate_third_party_firewall( ThirdPartyFirewall; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "AssociateThirdPartyFirewall", + Dict{String,Any}("ThirdPartyFirewall" => ThirdPartyFirewall); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "AssociateThirdPartyFirewall", - Dict{String,Any}("ThirdPartyFirewall" => ThirdPartyFirewall); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_third_party_firewall( ThirdPartyFirewall, params::AbstractDict{String}; @@ -101,18 +96,14 @@ Associate resources to a Firewall Manager resource set. refer to the resource set. """ -function batch_associate_resource( +batch_associate_resource( Items, ResourceSetIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "BatchAssociateResource", + Dict{String,Any}("Items" => Items, "ResourceSetIdentifier" => ResourceSetIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "BatchAssociateResource", - Dict{String,Any}( - "Items" => Items, "ResourceSetIdentifier" => ResourceSetIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_resource( Items, ResourceSetIdentifier, @@ -148,18 +139,14 @@ Disassociates resources from a Firewall Manager resource set. refer to the resource set. """ -function batch_disassociate_resource( +batch_disassociate_resource( Items, ResourceSetIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "BatchDisassociateResource", + Dict{String,Any}("Items" => Items, "ResourceSetIdentifier" => ResourceSetIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "BatchDisassociateResource", - Dict{String,Any}( - "Items" => Items, "ResourceSetIdentifier" => ResourceSetIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_resource( Items, ResourceSetIdentifier, @@ -193,14 +180,12 @@ Permanently deletes an Firewall Manager applications list. ID from PutAppsList, ListAppsLists, and GetAppsList. """ -function delete_apps_list(ListId; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "DeleteAppsList", - Dict{String,Any}("ListId" => ListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_apps_list(ListId; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "DeleteAppsList", + Dict{String,Any}("ListId" => ListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_apps_list( ListId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -220,11 +205,8 @@ Deletes an Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs. """ -function delete_notification_channel(; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "DeleteNotificationChannel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_notification_channel(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms("DeleteNotificationChannel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_notification_channel( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -265,14 +247,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys handled by the policy. All others are out of scope. If you don't specify tags or accounts, all resources are in scope. """ -function delete_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "DeletePolicy", - Dict{String,Any}("PolicyId" => PolicyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "DeletePolicy", + Dict{String,Any}("PolicyId" => PolicyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_policy( PolicyId, params::AbstractDict{String}; @@ -299,14 +279,12 @@ Permanently deletes an Firewall Manager protocols list. from PutProtocolsList, ListProtocolsLists, and GetProtocolsLost. """ -function delete_protocols_list(ListId; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "DeleteProtocolsList", - Dict{String,Any}("ListId" => ListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_protocols_list(ListId; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "DeleteProtocolsList", + Dict{String,Any}("ListId" => ListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_protocols_list( ListId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -329,14 +307,12 @@ Deletes the specified ResourceSet. resource set. """ -function delete_resource_set(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "DeleteResourceSet", - Dict{String,Any}("Identifier" => Identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_resource_set(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "DeleteResourceSet", + Dict{String,Any}("Identifier" => Identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_resource_set( Identifier, params::AbstractDict{String}; @@ -365,11 +341,8 @@ the organization must first disassociate their accounts before you can disassoci account. """ -function disassociate_admin_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "DisassociateAdminAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +disassociate_admin_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms("DisassociateAdminAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function disassociate_admin_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -393,16 +366,14 @@ of the firewalls that are associated with the account. - `third_party_firewall`: The name of the third-party firewall vendor. """ -function disassociate_third_party_firewall( +disassociate_third_party_firewall( ThirdPartyFirewall; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "DisassociateThirdPartyFirewall", + Dict{String,Any}("ThirdPartyFirewall" => ThirdPartyFirewall); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "DisassociateThirdPartyFirewall", - Dict{String,Any}("ThirdPartyFirewall" => ThirdPartyFirewall); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_third_party_firewall( ThirdPartyFirewall, params::AbstractDict{String}; @@ -428,9 +399,8 @@ Returns the Organizations account that is associated with Firewall Manager as th Manager default administrator. """ -function get_admin_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return fms("GetAdminAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_admin_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms("GetAdminAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_admin_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -450,14 +420,12 @@ scope defines the resources that an Firewall Manager administrator can manage. - `admin_account`: The administrator account that you want to get the details for. """ -function get_admin_scope(AdminAccount; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "GetAdminScope", - Dict{String,Any}("AdminAccount" => AdminAccount); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_admin_scope(AdminAccount; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "GetAdminScope", + Dict{String,Any}("AdminAccount" => AdminAccount); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_admin_scope( AdminAccount, params::AbstractDict{String}; @@ -487,14 +455,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DefaultList"`: Specifies whether the list to retrieve is a default list owned by Firewall Manager. """ -function get_apps_list(ListId; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "GetAppsList", - Dict{String,Any}("ListId" => ListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_apps_list(ListId; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "GetAppsList", + Dict{String,Any}("ListId" => ListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_apps_list( ListId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -521,16 +487,14 @@ resources being considered compliant depend on the Firewall Manager policy type. returned by PutPolicy and by ListPolicies. """ -function get_compliance_detail( +get_compliance_detail( MemberAccount, PolicyId; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "GetComplianceDetail", + Dict{String,Any}("MemberAccount" => MemberAccount, "PolicyId" => PolicyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "GetComplianceDetail", - Dict{String,Any}("MemberAccount" => MemberAccount, "PolicyId" => PolicyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_compliance_detail( MemberAccount, PolicyId, @@ -559,11 +523,8 @@ Information about the Amazon Simple Notification Service (SNS) topic that is use Firewall Manager SNS logs. """ -function get_notification_channel(; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "GetNotificationChannel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_notification_channel(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms("GetNotificationChannel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_notification_channel( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -585,14 +546,12 @@ Returns information about the specified Firewall Manager policy. - `policy_id`: The ID of the Firewall Manager policy that you want the details for. """ -function get_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "GetPolicy", - Dict{String,Any}("PolicyId" => PolicyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "GetPolicy", + Dict{String,Any}("PolicyId" => PolicyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_policy( PolicyId, params::AbstractDict{String}; @@ -637,14 +596,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys type. The request syntax listing indicates a number type because the default used by Firewall Manager is Unix time in seconds. However, any valid timestamp format is allowed. """ -function get_protection_status(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "GetProtectionStatus", - Dict{String,Any}("PolicyId" => PolicyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_protection_status(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "GetProtectionStatus", + Dict{String,Any}("PolicyId" => PolicyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_protection_status( PolicyId, params::AbstractDict{String}; @@ -674,14 +631,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DefaultList"`: Specifies whether the list to retrieve is a default list owned by Firewall Manager. """ -function get_protocols_list(ListId; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "GetProtocolsList", - Dict{String,Any}("ListId" => ListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_protocols_list(ListId; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "GetProtocolsList", + Dict{String,Any}("ListId" => ListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_protocols_list( ListId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -704,14 +659,12 @@ Gets information about a specific resource set. resource set. """ -function get_resource_set(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "GetResourceSet", - Dict{String,Any}("Identifier" => Identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_resource_set(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "GetResourceSet", + Dict{String,Any}("Identifier" => Identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_resource_set( Identifier, params::AbstractDict{String}; @@ -738,16 +691,14 @@ tenant. - `third_party_firewall`: The name of the third-party firewall vendor. """ -function get_third_party_firewall_association_status( +get_third_party_firewall_association_status( ThirdPartyFirewall; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "GetThirdPartyFirewallAssociationStatus", + Dict{String,Any}("ThirdPartyFirewall" => ThirdPartyFirewall); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "GetThirdPartyFirewallAssociationStatus", - Dict{String,Any}("ThirdPartyFirewall" => ThirdPartyFirewall); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_third_party_firewall_association_status( ThirdPartyFirewall, params::AbstractDict{String}; @@ -785,25 +736,23 @@ Amazon Web Services account. and AWS::EC2::Subnet. """ -function get_violation_details( +get_violation_details( MemberAccount, PolicyId, ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = fms( + "GetViolationDetails", + Dict{String,Any}( + "MemberAccount" => MemberAccount, + "PolicyId" => PolicyId, + "ResourceId" => ResourceId, + "ResourceType" => ResourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "GetViolationDetails", - Dict{String,Any}( - "MemberAccount" => MemberAccount, - "PolicyId" => PolicyId, - "ResourceId" => ResourceId, - "ResourceType" => ResourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_violation_details( MemberAccount, PolicyId, @@ -849,15 +798,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_admin_accounts_for_organization(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return fms( +list_admin_accounts_for_organization(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms( "ListAdminAccountsForOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_admin_accounts_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -888,11 +834,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_admins_managing_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "ListAdminsManagingAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_admins_managing_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms("ListAdminsManagingAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_admins_managing_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -925,14 +868,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys but the first request, you provide the token returned by the prior request in the request parameters, to retrieve the next batch of objects. """ -function list_apps_lists(MaxResults; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "ListAppsLists", - Dict{String,Any}("MaxResults" => MaxResults); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_apps_lists(MaxResults; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "ListAppsLists", + Dict{String,Any}("MaxResults" => MaxResults); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_apps_lists( MaxResults, params::AbstractDict{String}; @@ -971,16 +912,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests, specify the value of NextToken from the previous response to get information about another batch of PolicyComplianceStatus objects. """ -function list_compliance_status( - PolicyId; aws_config::AbstractAWSConfig=current_aws_config() +list_compliance_status(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "ListComplianceStatus", + Dict{String,Any}("PolicyId" => PolicyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "ListComplianceStatus", - Dict{String,Any}("PolicyId" => PolicyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_compliance_status( PolicyId, params::AbstractDict{String}; @@ -1018,18 +955,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_discovered_resources( +list_discovered_resources( MemberAccountIds, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "ListDiscoveredResources", + Dict{String,Any}( + "MemberAccountIds" => MemberAccountIds, "ResourceType" => ResourceType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "ListDiscoveredResources", - Dict{String,Any}( - "MemberAccountIds" => MemberAccountIds, "ResourceType" => ResourceType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_discovered_resources( MemberAccountIds, ResourceType, @@ -1072,9 +1007,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListMemberAccountsRequest requests, specify the value of NextToken from the previous response to get information about another batch of member account IDs. """ -function list_member_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) - return fms("ListMemberAccounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_member_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms("ListMemberAccounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_member_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1102,9 +1036,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken from the previous response to get information about another batch of PolicySummary objects. """ -function list_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return fms("ListPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms("ListPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1134,16 +1067,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys but the first request, you provide the token returned by the prior request in the request parameters, to retrieve the next batch of objects. """ -function list_protocols_lists( - MaxResults; aws_config::AbstractAWSConfig=current_aws_config() +list_protocols_lists(MaxResults; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "ListProtocolsLists", + Dict{String,Any}("MaxResults" => MaxResults); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "ListProtocolsLists", - Dict{String,Any}("MaxResults" => MaxResults); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_protocols_lists( MaxResults, params::AbstractDict{String}; @@ -1179,16 +1108,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_resource_set_resources( +list_resource_set_resources( Identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "ListResourceSetResources", + Dict{String,Any}("Identifier" => Identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "ListResourceSetResources", - Dict{String,Any}("Identifier" => Identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resource_set_resources( Identifier, params::AbstractDict{String}; @@ -1220,9 +1147,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_resource_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return fms("ListResourceSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_resource_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + fms("ListResourceSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_resource_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1243,16 +1169,13 @@ Retrieves the list of tags for the specified Amazon Web Services resource. protocols lists. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return fms( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + fms( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1292,18 +1215,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value of NextToken from the previous response. If the previous response didn't include a NextToken element, there are no more third-party firewall policies to get. """ -function list_third_party_firewall_firewall_policies( +list_third_party_firewall_firewall_policies( MaxResults, ThirdPartyFirewall; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "ListThirdPartyFirewallFirewallPolicies", + Dict{String,Any}( + "MaxResults" => MaxResults, "ThirdPartyFirewall" => ThirdPartyFirewall + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "ListThirdPartyFirewallFirewallPolicies", - Dict{String,Any}( - "MaxResults" => MaxResults, "ThirdPartyFirewall" => ThirdPartyFirewall - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_third_party_firewall_firewall_policies( MaxResults, ThirdPartyFirewall, @@ -1352,14 +1273,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys principles of least privilege. Only grant the administrator the specific resources or permissions that they need to perform the duties of their role. """ -function put_admin_account(AdminAccount; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "PutAdminAccount", - Dict{String,Any}("AdminAccount" => AdminAccount); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_admin_account(AdminAccount; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "PutAdminAccount", + Dict{String,Any}("AdminAccount" => AdminAccount); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_admin_account( AdminAccount, params::AbstractDict{String}; @@ -1388,14 +1307,12 @@ Creates an Firewall Manager applications list. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"TagList"`: The tags associated with the resource. """ -function put_apps_list(AppsList; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "PutAppsList", - Dict{String,Any}("AppsList" => AppsList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_apps_list(AppsList; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "PutAppsList", + Dict{String,Any}("AppsList" => AppsList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_apps_list( AppsList, params::AbstractDict{String}; @@ -1431,16 +1348,14 @@ Developer Guide. notifications from Firewall Manager. """ -function put_notification_channel( +put_notification_channel( SnsRoleName, SnsTopicArn; aws_config::AbstractAWSConfig=current_aws_config() +) = fms( + "PutNotificationChannel", + Dict{String,Any}("SnsRoleName" => SnsRoleName, "SnsTopicArn" => SnsTopicArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "PutNotificationChannel", - Dict{String,Any}("SnsRoleName" => SnsRoleName, "SnsTopicArn" => SnsTopicArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_notification_channel( SnsRoleName, SnsTopicArn, @@ -1500,14 +1415,12 @@ application firewalls (WAF), and API protection. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"TagList"`: The tags to add to the Amazon Web Services resource. """ -function put_policy(Policy; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "PutPolicy", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_policy(Policy; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "PutPolicy", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_policy( Policy, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1532,16 +1445,12 @@ Creates an Firewall Manager protocols list. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"TagList"`: The tags associated with the resource. """ -function put_protocols_list( - ProtocolsList; aws_config::AbstractAWSConfig=current_aws_config() +put_protocols_list(ProtocolsList; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "PutProtocolsList", + Dict{String,Any}("ProtocolsList" => ProtocolsList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fms( - "PutProtocolsList", - Dict{String,Any}("ProtocolsList" => ProtocolsList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_protocols_list( ProtocolsList, params::AbstractDict{String}; @@ -1575,14 +1484,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys customer name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a resource. """ -function put_resource_set(ResourceSet; aws_config::AbstractAWSConfig=current_aws_config()) - return fms( - "PutResourceSet", - Dict{String,Any}("ResourceSet" => ResourceSet); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_resource_set(ResourceSet; aws_config::AbstractAWSConfig=current_aws_config()) = fms( + "PutResourceSet", + Dict{String,Any}("ResourceSet" => ResourceSet); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_resource_set( ResourceSet, params::AbstractDict{String}; @@ -1611,16 +1518,13 @@ Adds one or more tags to an Amazon Web Services resource. - `tag_list`: The tags to add to the resource. """ -function tag_resource( - ResourceArn, TagList; aws_config::AbstractAWSConfig=current_aws_config() -) - return fms( +tag_resource(ResourceArn, TagList; aws_config::AbstractAWSConfig=current_aws_config()) = + fms( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagList" => TagList); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, TagList, @@ -1654,16 +1558,13 @@ Removes one or more tags from an Amazon Web Services resource. - `tag_keys`: The keys of the tags to remove from the resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return fms( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + fms( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, diff --git a/src/services/forecast.jl b/src/services/forecast.jl index 3c5ee4992..24152f7f7 100644 --- a/src/services/forecast.jl +++ b/src/services/forecast.jl @@ -85,16 +85,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Specifying a Time Boundary. If you don't provide a time boundary, Forecast uses a set of Default Time Boundaries. """ -function create_auto_predictor( - PredictorName; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +create_auto_predictor(PredictorName; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "CreateAutoPredictor", Dict{String,Any}("PredictorName" => PredictorName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_auto_predictor( PredictorName, params::AbstractDict{String}; @@ -173,25 +170,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags. Tags with only the key prefix of aws do not count against your tags per resource limit. """ -function create_dataset( +create_dataset( DatasetName, DatasetType, Domain, Schema; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreateDataset", + Dict{String,Any}( + "DatasetName" => DatasetName, + "DatasetType" => DatasetType, + "Domain" => Domain, + "Schema" => Schema, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateDataset", - Dict{String,Any}( - "DatasetName" => DatasetName, - "DatasetType" => DatasetType, - "Domain" => Domain, - "Schema" => Schema, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset( DatasetName, DatasetType, @@ -261,16 +256,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit. """ -function create_dataset_group( +create_dataset_group( DatasetGroupName, Domain; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "CreateDatasetGroup", + Dict{String,Any}("DatasetGroupName" => DatasetGroupName, "Domain" => Domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateDatasetGroup", - Dict{String,Any}("DatasetGroupName" => DatasetGroupName, "Domain" => Domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset_group( DatasetGroupName, Domain, @@ -365,23 +358,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys geolocation attribute. This option is ideal for datasets that contain timestamps in multiple time zones and those timestamps are expressed in local time. """ -function create_dataset_import_job( +create_dataset_import_job( DataSource, DatasetArn, DatasetImportJobName; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreateDatasetImportJob", + Dict{String,Any}( + "DataSource" => DataSource, + "DatasetArn" => DatasetArn, + "DatasetImportJobName" => DatasetImportJobName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateDatasetImportJob", - Dict{String,Any}( - "DataSource" => DataSource, - "DatasetArn" => DatasetArn, - "DatasetImportJobName" => DatasetImportJobName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset_import_job( DataSource, DatasetArn, @@ -476,23 +467,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys prefix of aws do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix. """ -function create_explainability( +create_explainability( ExplainabilityConfig, ExplainabilityName, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreateExplainability", + Dict{String,Any}( + "ExplainabilityConfig" => ExplainabilityConfig, + "ExplainabilityName" => ExplainabilityName, + "ResourceArn" => ResourceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateExplainability", - Dict{String,Any}( - "ExplainabilityConfig" => ExplainabilityConfig, - "ExplainabilityName" => ExplainabilityName, - "ResourceArn" => ResourceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_explainability( ExplainabilityConfig, ExplainabilityName, @@ -552,23 +541,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys prefix of aws do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix. """ -function create_explainability_export( +create_explainability_export( Destination, ExplainabilityArn, ExplainabilityExportName; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreateExplainabilityExport", + Dict{String,Any}( + "Destination" => Destination, + "ExplainabilityArn" => ExplainabilityArn, + "ExplainabilityExportName" => ExplainabilityExportName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateExplainabilityExport", - Dict{String,Any}( - "Destination" => Destination, - "ExplainabilityArn" => ExplainabilityArn, - "ExplainabilityExportName" => ExplainabilityExportName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_explainability_export( Destination, ExplainabilityArn, @@ -647,16 +634,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys forecasts in a TimeSeriesIdentifiers object. The TimeSeriesIdentifiers object needs the following information: DataSource Format Schema """ -function create_forecast( +create_forecast( ForecastName, PredictorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "CreateForecast", + Dict{String,Any}("ForecastName" => ForecastName, "PredictorArn" => PredictorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateForecast", - Dict{String,Any}("ForecastName" => ForecastName, "PredictorArn" => PredictorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_forecast( ForecastName, PredictorArn, @@ -722,23 +707,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit. """ -function create_forecast_export_job( +create_forecast_export_job( Destination, ForecastArn, ForecastExportJobName; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreateForecastExportJob", + Dict{String,Any}( + "Destination" => Destination, + "ForecastArn" => ForecastArn, + "ForecastExportJobName" => ForecastExportJobName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateForecastExportJob", - Dict{String,Any}( - "Destination" => Destination, - "ForecastArn" => ForecastArn, - "ForecastExportJobName" => ForecastExportJobName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_forecast_export_job( Destination, ForecastArn, @@ -780,16 +763,14 @@ see Predictor Monitoring. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A list of tags to apply to the monitor resource. """ -function create_monitor( +create_monitor( MonitorName, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "CreateMonitor", + Dict{String,Any}("MonitorName" => MonitorName, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateMonitor", - Dict{String,Any}("MonitorName" => MonitorName, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_monitor( MonitorName, ResourceArn, @@ -917,25 +898,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hyperparameters that you can override are listed in the individual algorithms. For the list of supported algorithms, see aws-forecast-choosing-recipes. """ -function create_predictor( +create_predictor( FeaturizationConfig, ForecastHorizon, InputDataConfig, PredictorName; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreatePredictor", + Dict{String,Any}( + "FeaturizationConfig" => FeaturizationConfig, + "ForecastHorizon" => ForecastHorizon, + "InputDataConfig" => InputDataConfig, + "PredictorName" => PredictorName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreatePredictor", - Dict{String,Any}( - "FeaturizationConfig" => FeaturizationConfig, - "ForecastHorizon" => ForecastHorizon, - "InputDataConfig" => InputDataConfig, - "PredictorName" => PredictorName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_predictor( FeaturizationConfig, ForecastHorizon, @@ -1000,23 +979,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys prefix of aws do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix. """ -function create_predictor_backtest_export_job( +create_predictor_backtest_export_job( Destination, PredictorArn, PredictorBacktestExportJobName; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreatePredictorBacktestExportJob", + Dict{String,Any}( + "Destination" => Destination, + "PredictorArn" => PredictorArn, + "PredictorBacktestExportJobName" => PredictorBacktestExportJobName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreatePredictorBacktestExportJob", - Dict{String,Any}( - "Destination" => Destination, - "PredictorArn" => PredictorArn, - "PredictorBacktestExportJobName" => PredictorBacktestExportJobName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_predictor_backtest_export_job( Destination, PredictorArn, @@ -1075,18 +1052,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys time series in this object. The TimeSeriesIdentifiers object needs the following information: DataSource Format Schema """ -function create_what_if_analysis( +create_what_if_analysis( ForecastArn, WhatIfAnalysisName; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "CreateWhatIfAnalysis", + Dict{String,Any}( + "ForecastArn" => ForecastArn, "WhatIfAnalysisName" => WhatIfAnalysisName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateWhatIfAnalysis", - Dict{String,Any}( - "ForecastArn" => ForecastArn, "WhatIfAnalysisName" => WhatIfAnalysisName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_what_if_analysis( ForecastArn, WhatIfAnalysisName, @@ -1140,21 +1115,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys applied only when all conditions are met. If no conditions are provided, the action is applied to all items. """ -function create_what_if_forecast( +create_what_if_forecast( WhatIfAnalysisArn, WhatIfForecastName; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreateWhatIfForecast", + Dict{String,Any}( + "WhatIfAnalysisArn" => WhatIfAnalysisArn, + "WhatIfForecastName" => WhatIfForecastName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateWhatIfForecast", - Dict{String,Any}( - "WhatIfAnalysisArn" => WhatIfAnalysisArn, - "WhatIfForecastName" => WhatIfForecastName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_what_if_forecast( WhatIfAnalysisArn, WhatIfForecastName, @@ -1209,23 +1182,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Format"`: The format of the exported data, CSV or PARQUET. - `"Tags"`: A list of tags to apply to the what if forecast. """ -function create_what_if_forecast_export( +create_what_if_forecast_export( Destination, WhatIfForecastArns, WhatIfForecastExportName; aws_config::AbstractAWSConfig=current_aws_config(), +) = forecast( + "CreateWhatIfForecastExport", + Dict{String,Any}( + "Destination" => Destination, + "WhatIfForecastArns" => WhatIfForecastArns, + "WhatIfForecastExportName" => WhatIfForecastExportName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "CreateWhatIfForecastExport", - Dict{String,Any}( - "Destination" => Destination, - "WhatIfForecastArns" => WhatIfForecastArns, - "WhatIfForecastExportName" => WhatIfForecastExportName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_what_if_forecast_export( Destination, WhatIfForecastArns, @@ -1265,14 +1236,12 @@ UpdateDatasetGroup operation, omitting the deleted dataset's ARN. - `dataset_arn`: The Amazon Resource Name (ARN) of the dataset to delete. """ -function delete_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "DeleteDataset", - Dict{String,Any}("DatasetArn" => DatasetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "DeleteDataset", + Dict{String,Any}("DatasetArn" => DatasetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_dataset( DatasetArn, params::AbstractDict{String}; @@ -1301,16 +1270,13 @@ group, not the datasets in the group. - `dataset_group_arn`: The Amazon Resource Name (ARN) of the dataset group to delete. """ -function delete_dataset_group( - DatasetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +delete_dataset_group(DatasetGroupArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "DeleteDatasetGroup", Dict{String,Any}("DatasetGroupArn" => DatasetGroupArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dataset_group( DatasetGroupArn, params::AbstractDict{String}; @@ -1341,16 +1307,14 @@ status, use the DescribeDatasetImportJob operation. delete. """ -function delete_dataset_import_job( +delete_dataset_import_job( DatasetImportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DeleteDatasetImportJob", + Dict{String,Any}("DatasetImportJobArn" => DatasetImportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DeleteDatasetImportJob", - Dict{String,Any}("DatasetImportJobArn" => DatasetImportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dataset_import_job( DatasetImportJobArn, params::AbstractDict{String}; @@ -1382,16 +1346,14 @@ ACTIVE or CREATE_FAILED. To get the status, use the DescribeExplainability opera delete. """ -function delete_explainability( +delete_explainability( ExplainabilityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DeleteExplainability", + Dict{String,Any}("ExplainabilityArn" => ExplainabilityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DeleteExplainability", - Dict{String,Any}("ExplainabilityArn" => ExplainabilityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_explainability( ExplainabilityArn, params::AbstractDict{String}; @@ -1420,16 +1382,14 @@ Deletes an Explainability export. to delete. """ -function delete_explainability_export( +delete_explainability_export( ExplainabilityExportArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DeleteExplainabilityExport", + Dict{String,Any}("ExplainabilityExportArn" => ExplainabilityExportArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DeleteExplainabilityExport", - Dict{String,Any}("ExplainabilityExportArn" => ExplainabilityExportArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_explainability_export( ExplainabilityExportArn, params::AbstractDict{String}; @@ -1462,14 +1422,12 @@ forecast is deleted, you can no longer query the forecast. - `forecast_arn`: The Amazon Resource Name (ARN) of the forecast to delete. """ -function delete_forecast(ForecastArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "DeleteForecast", - Dict{String,Any}("ForecastArn" => ForecastArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_forecast(ForecastArn; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "DeleteForecast", + Dict{String,Any}("ForecastArn" => ForecastArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_forecast( ForecastArn, params::AbstractDict{String}; @@ -1498,16 +1456,14 @@ use the DescribeForecastExportJob operation. delete. """ -function delete_forecast_export_job( +delete_forecast_export_job( ForecastExportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DeleteForecastExportJob", + Dict{String,Any}("ForecastExportJobArn" => ForecastExportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DeleteForecastExportJob", - Dict{String,Any}("ForecastExportJobArn" => ForecastExportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_forecast_export_job( ForecastExportJobArn, params::AbstractDict{String}; @@ -1538,14 +1494,12 @@ ACTIVE_STOPPED, CREATE_FAILED, or CREATE_STOPPED. - `monitor_arn`: The Amazon Resource Name (ARN) of the monitor resource to delete. """ -function delete_monitor(MonitorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "DeleteMonitor", - Dict{String,Any}("MonitorArn" => MonitorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_monitor(MonitorArn; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "DeleteMonitor", + Dict{String,Any}("MonitorArn" => MonitorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_monitor( MonitorArn, params::AbstractDict{String}; @@ -1573,14 +1527,13 @@ use the DescribePredictor operation. - `predictor_arn`: The Amazon Resource Name (ARN) of the predictor to delete. """ -function delete_predictor(PredictorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( +delete_predictor(PredictorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "DeletePredictor", Dict{String,Any}("PredictorArn" => PredictorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_predictor( PredictorArn, params::AbstractDict{String}; @@ -1607,16 +1560,14 @@ Deletes a predictor backtest export job. backtest export job to delete. """ -function delete_predictor_backtest_export_job( +delete_predictor_backtest_export_job( PredictorBacktestExportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DeletePredictorBacktestExportJob", + Dict{String,Any}("PredictorBacktestExportJobArn" => PredictorBacktestExportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DeletePredictorBacktestExportJob", - Dict{String,Any}("PredictorBacktestExportJobArn" => PredictorBacktestExportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_predictor_backtest_export_job( PredictorBacktestExportJobArn, params::AbstractDict{String}; @@ -1657,16 +1608,13 @@ delete datasets or exported files stored in Amazon S3. child resources of the parent resource will also be deleted. """ -function delete_resource_tree( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +delete_resource_tree(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "DeleteResourceTree", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_tree( ResourceArn, params::AbstractDict{String}; @@ -1696,16 +1644,14 @@ forecasts are being exported. want to delete. """ -function delete_what_if_analysis( +delete_what_if_analysis( WhatIfAnalysisArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DeleteWhatIfAnalysis", + Dict{String,Any}("WhatIfAnalysisArn" => WhatIfAnalysisArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DeleteWhatIfAnalysis", - Dict{String,Any}("WhatIfAnalysisArn" => WhatIfAnalysisArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_what_if_analysis( WhatIfAnalysisArn, params::AbstractDict{String}; @@ -1738,16 +1684,14 @@ analysis. want to delete. """ -function delete_what_if_forecast( +delete_what_if_forecast( WhatIfForecastArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DeleteWhatIfForecast", + Dict{String,Any}("WhatIfForecastArn" => WhatIfForecastArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DeleteWhatIfForecast", - Dict{String,Any}("WhatIfForecastArn" => WhatIfForecastArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_what_if_forecast( WhatIfForecastArn, params::AbstractDict{String}; @@ -1778,16 +1722,14 @@ To get the status, use the DescribeWhatIfForecastExport operation. export that you want to delete. """ -function delete_what_if_forecast_export( +delete_what_if_forecast_export( WhatIfForecastExportArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DeleteWhatIfForecastExport", + Dict{String,Any}("WhatIfForecastExportArn" => WhatIfForecastExportArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DeleteWhatIfForecastExport", - Dict{String,Any}("WhatIfForecastExportArn" => WhatIfForecastExportArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_what_if_forecast_export( WhatIfForecastExportArn, params::AbstractDict{String}; @@ -1817,16 +1759,13 @@ Describes a predictor created using the CreateAutoPredictor operation. - `predictor_arn`: The Amazon Resource Name (ARN) of the predictor. """ -function describe_auto_predictor( - PredictorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +describe_auto_predictor(PredictorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "DescribeAutoPredictor", Dict{String,Any}("PredictorArn" => PredictorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_auto_predictor( PredictorArn, params::AbstractDict{String}; @@ -1854,14 +1793,12 @@ the following dataset properties: CreationTime LastModificationTime S - `dataset_arn`: The Amazon Resource Name (ARN) of the dataset. """ -function describe_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "DescribeDataset", - Dict{String,Any}("DatasetArn" => DatasetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "DescribeDataset", + Dict{String,Any}("DatasetArn" => DatasetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_dataset( DatasetArn, params::AbstractDict{String}; @@ -1890,16 +1827,14 @@ CreationTime LastModificationTime Status - `dataset_group_arn`: The Amazon Resource Name (ARN) of the dataset group. """ -function describe_dataset_group( +describe_dataset_group( DatasetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribeDatasetGroup", + Dict{String,Any}("DatasetGroupArn" => DatasetGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribeDatasetGroup", - Dict{String,Any}("DatasetGroupArn" => DatasetGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dataset_group( DatasetGroupArn, params::AbstractDict{String}; @@ -1931,16 +1866,14 @@ about the error. - `dataset_import_job_arn`: The Amazon Resource Name (ARN) of the dataset import job. """ -function describe_dataset_import_job( +describe_dataset_import_job( DatasetImportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribeDatasetImportJob", + Dict{String,Any}("DatasetImportJobArn" => DatasetImportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribeDatasetImportJob", - Dict{String,Any}("DatasetImportJobArn" => DatasetImportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dataset_import_job( DatasetImportJobArn, params::AbstractDict{String}; @@ -1970,16 +1903,14 @@ Describes an Explainability resource created using the CreateExplainability oper - `explainability_arn`: The Amazon Resource Name (ARN) of the Explaianability to describe. """ -function describe_explainability( +describe_explainability( ExplainabilityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribeExplainability", + Dict{String,Any}("ExplainabilityArn" => ExplainabilityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribeExplainability", - Dict{String,Any}("ExplainabilityArn" => ExplainabilityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_explainability( ExplainabilityArn, params::AbstractDict{String}; @@ -2007,16 +1938,14 @@ Describes an Explainability export created using the CreateExplainabilityExport - `explainability_export_arn`: The Amazon Resource Name (ARN) of the Explainability export. """ -function describe_explainability_export( +describe_explainability_export( ExplainabilityExportArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribeExplainabilityExport", + Dict{String,Any}("ExplainabilityExportArn" => ExplainabilityExportArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribeExplainabilityExport", - Dict{String,Any}("ExplainabilityExportArn" => ExplainabilityExportArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_explainability_export( ExplainabilityExportArn, params::AbstractDict{String}; @@ -2050,14 +1979,13 @@ information about the error. - `forecast_arn`: The Amazon Resource Name (ARN) of the forecast. """ -function describe_forecast(ForecastArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( +describe_forecast(ForecastArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "DescribeForecast", Dict{String,Any}("ForecastArn" => ForecastArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_forecast( ForecastArn, params::AbstractDict{String}; @@ -2087,16 +2015,14 @@ error. - `forecast_export_job_arn`: The Amazon Resource Name (ARN) of the forecast export job. """ -function describe_forecast_export_job( +describe_forecast_export_job( ForecastExportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribeForecastExportJob", + Dict{String,Any}("ForecastExportJobArn" => ForecastExportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribeForecastExportJob", - Dict{String,Any}("ForecastExportJobArn" => ForecastExportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_forecast_export_job( ForecastExportJobArn, params::AbstractDict{String}; @@ -2129,14 +2055,12 @@ Message Status - `monitor_arn`: The Amazon Resource Name (ARN) of the monitor resource to describe. """ -function describe_monitor(MonitorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "DescribeMonitor", - Dict{String,Any}("MonitorArn" => MonitorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_monitor(MonitorArn; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "DescribeMonitor", + Dict{String,Any}("MonitorArn" => MonitorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_monitor( MonitorArn, params::AbstractDict{String}; @@ -2170,16 +2094,13 @@ information about the error. information about. """ -function describe_predictor( - PredictorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +describe_predictor(PredictorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "DescribePredictor", Dict{String,Any}("PredictorArn" => PredictorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_predictor( PredictorArn, params::AbstractDict{String}; @@ -2210,16 +2131,14 @@ an error occurred) backtest export job. """ -function describe_predictor_backtest_export_job( +describe_predictor_backtest_export_job( PredictorBacktestExportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribePredictorBacktestExportJob", + Dict{String,Any}("PredictorBacktestExportJobArn" => PredictorBacktestExportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribePredictorBacktestExportJob", - Dict{String,Any}("PredictorBacktestExportJobArn" => PredictorBacktestExportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_predictor_backtest_export_job( PredictorBacktestExportJobArn, params::AbstractDict{String}; @@ -2255,16 +2174,14 @@ Message - If an error occurred, information about the error. Status are interested in. """ -function describe_what_if_analysis( +describe_what_if_analysis( WhatIfAnalysisArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribeWhatIfAnalysis", + Dict{String,Any}("WhatIfAnalysisArn" => WhatIfAnalysisArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribeWhatIfAnalysis", - Dict{String,Any}("WhatIfAnalysisArn" => WhatIfAnalysisArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_what_if_analysis( WhatIfAnalysisArn, params::AbstractDict{String}; @@ -2296,16 +2213,14 @@ Message - If an error occurred, information about the error. Status are interested in. """ -function describe_what_if_forecast( +describe_what_if_forecast( WhatIfForecastArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribeWhatIfForecast", + Dict{String,Any}("WhatIfForecastArn" => WhatIfForecastArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribeWhatIfForecast", - Dict{String,Any}("WhatIfForecastArn" => WhatIfForecastArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_what_if_forecast( WhatIfForecastArn, params::AbstractDict{String}; @@ -2338,16 +2253,14 @@ Status export that you are interested in. """ -function describe_what_if_forecast_export( +describe_what_if_forecast_export( WhatIfForecastExportArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "DescribeWhatIfForecastExport", + Dict{String,Any}("WhatIfForecastExportArn" => WhatIfForecastExportArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "DescribeWhatIfForecastExport", - Dict{String,Any}("WhatIfForecastExportArn" => WhatIfForecastExportArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_what_if_forecast_export( WhatIfForecastExportArn, params::AbstractDict{String}; @@ -2388,16 +2301,13 @@ that training has completed. To get the status, use the DescribePredictor operat - `predictor_arn`: The Amazon Resource Name (ARN) of the predictor to get metrics for. """ -function get_accuracy_metrics( - PredictorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +get_accuracy_metrics(PredictorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "GetAccuracyMetrics", Dict{String,Any}("PredictorArn" => PredictorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_accuracy_metrics( PredictorArn, params::AbstractDict{String}; @@ -2429,11 +2339,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_dataset_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "ListDatasetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_dataset_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast("ListDatasetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_dataset_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2469,11 +2376,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_dataset_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "ListDatasetImportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_dataset_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "ListDatasetImportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_dataset_import_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2500,9 +2405,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast("ListDatasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast("ListDatasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_datasets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2533,11 +2437,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_explainabilities(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "ListExplainabilities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_explainabilities(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast("ListExplainabilities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_explainabilities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2571,11 +2472,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_explainability_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( +list_explainability_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "ListExplainabilityExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_explainability_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2615,11 +2515,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_forecast_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "ListForecastExportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_forecast_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "ListForecastExportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_forecast_export_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2657,9 +2555,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_forecasts(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast("ListForecasts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_forecasts(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast("ListForecasts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_forecasts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2696,16 +2593,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_monitor_evaluations( - MonitorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +list_monitor_evaluations(MonitorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "ListMonitorEvaluations", Dict{String,Any}("MonitorArn" => MonitorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_monitor_evaluations( MonitorArn, params::AbstractDict{String}; @@ -2746,9 +2640,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast("ListMonitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast("ListMonitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_monitors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2782,15 +2675,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_predictor_backtest_export_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +list_predictor_backtest_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "ListPredictorBacktestExportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_predictor_backtest_export_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2829,11 +2719,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_predictors(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "ListPredictors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_predictors(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast("ListPredictors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_predictors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2853,16 +2740,13 @@ Lists the tags for an Amazon Forecast resource. list the tags. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2905,11 +2789,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_what_if_analyses(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "ListWhatIfAnalyses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_what_if_analyses(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast("ListWhatIfAnalyses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_what_if_analyses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2946,11 +2827,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next
 request. Tokens expire after 24 hours. """ -function list_what_if_forecast_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( +list_what_if_forecast_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "ListWhatIfForecastExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_what_if_forecast_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2989,11 +2869,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next
 request. Tokens expire after 24 hours. """ -function list_what_if_forecasts(; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "ListWhatIfForecasts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_what_if_forecasts(; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast("ListWhatIfForecasts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_what_if_forecasts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3015,14 +2892,12 @@ Resumes a stopped monitor resource. - `resource_arn`: The Amazon Resource Name (ARN) of the monitor resource to resume. """ -function resume_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "ResumeResource", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +resume_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "ResumeResource", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function resume_resource( ResourceArn, params::AbstractDict{String}; @@ -3054,14 +2929,12 @@ Job Explainability Job Explainability Export Job ForecastArn, ForecastExportJobArn, ExplainabilityArn, and ExplainabilityExportArn. """ -function stop_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( - "StopResource", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = forecast( + "StopResource", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_resource( ResourceArn, params::AbstractDict{String}; @@ -3104,14 +2977,13 @@ a resource is deleted, the tags associated with that resource are also deleted. limit. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return forecast( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -3144,16 +3016,13 @@ Deletes the specified tags from a resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecast( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + forecast( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -3188,18 +3057,14 @@ Use the DescribeDatasetGroup operation to get the status. - `dataset_group_arn`: The ARN of the dataset group. """ -function update_dataset_group( +update_dataset_group( DatasetArns, DatasetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecast( + "UpdateDatasetGroup", + Dict{String,Any}("DatasetArns" => DatasetArns, "DatasetGroupArn" => DatasetGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecast( - "UpdateDatasetGroup", - Dict{String,Any}( - "DatasetArns" => DatasetArns, "DatasetGroupArn" => DatasetGroupArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dataset_group( DatasetArns, DatasetGroupArn, diff --git a/src/services/forecastquery.jl b/src/services/forecastquery.jl index 8c19fe203..d4cdae426 100644 --- a/src/services/forecastquery.jl +++ b/src/services/forecastquery.jl @@ -33,16 +33,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartDate"`: The start date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T08:00:00. """ -function query_forecast( - Filters, ForecastArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return forecastquery( +query_forecast(Filters, ForecastArn; aws_config::AbstractAWSConfig=current_aws_config()) = + forecastquery( "QueryForecast", Dict{String,Any}("Filters" => Filters, "ForecastArn" => ForecastArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function query_forecast( Filters, ForecastArn, @@ -86,16 +83,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartDate"`: The start date for the what-if forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T08:00:00. """ -function query_what_if_forecast( +query_what_if_forecast( Filters, WhatIfForecastArn; aws_config::AbstractAWSConfig=current_aws_config() +) = forecastquery( + "QueryWhatIfForecast", + Dict{String,Any}("Filters" => Filters, "WhatIfForecastArn" => WhatIfForecastArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return forecastquery( - "QueryWhatIfForecast", - Dict{String,Any}("Filters" => Filters, "WhatIfForecastArn" => WhatIfForecastArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function query_what_if_forecast( Filters, WhatIfForecastArn, diff --git a/src/services/frauddetector.jl b/src/services/frauddetector.jl index 53bca6451..4e2b352ae 100644 --- a/src/services/frauddetector.jl +++ b/src/services/frauddetector.jl @@ -17,16 +17,13 @@ Creates a batch of variables. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A collection of key and value pairs. """ -function batch_create_variable( - variableEntries; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +batch_create_variable(variableEntries; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "BatchCreateVariable", Dict{String,Any}("variableEntries" => variableEntries); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_create_variable( variableEntries, params::AbstractDict{String}; @@ -54,14 +51,13 @@ Gets a batch of variables. - `names`: The list of variable names to get. """ -function batch_get_variable(names; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +batch_get_variable(names; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "BatchGetVariable", Dict{String,Any}("names" => names); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_variable( names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -84,14 +80,13 @@ end will throw an error if the batch import job is in FAILED, CANCELED, or COMPLETED state. """ -function cancel_batch_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +cancel_batch_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "CancelBatchImportJob", Dict{String,Any}("jobId" => jobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_batch_import_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -113,16 +108,13 @@ Cancels the specified batch prediction job. - `job_id`: The ID of the batch prediction job to cancel. """ -function cancel_batch_prediction_job( - jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +cancel_batch_prediction_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "CancelBatchPredictionJob", Dict{String,Any}("jobId" => jobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_batch_prediction_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -155,27 +147,25 @@ Creates a batch import job. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A collection of key-value pairs associated with this request. """ -function create_batch_import_job( +create_batch_import_job( eventTypeName, iamRoleArn, inputPath, jobId, outputPath; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "CreateBatchImportJob", + Dict{String,Any}( + "eventTypeName" => eventTypeName, + "iamRoleArn" => iamRoleArn, + "inputPath" => inputPath, + "jobId" => jobId, + "outputPath" => outputPath, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "CreateBatchImportJob", - Dict{String,Any}( - "eventTypeName" => eventTypeName, - "iamRoleArn" => iamRoleArn, - "inputPath" => inputPath, - "jobId" => jobId, - "outputPath" => outputPath, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_batch_import_job( eventTypeName, iamRoleArn, @@ -227,7 +217,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"detectorVersion"`: The detector version. - `"tags"`: A collection of key and value pairs. """ -function create_batch_prediction_job( +create_batch_prediction_job( detectorName, eventTypeName, iamRoleArn, @@ -235,21 +225,19 @@ function create_batch_prediction_job( jobId, outputPath; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "CreateBatchPredictionJob", + Dict{String,Any}( + "detectorName" => detectorName, + "eventTypeName" => eventTypeName, + "iamRoleArn" => iamRoleArn, + "inputPath" => inputPath, + "jobId" => jobId, + "outputPath" => outputPath, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "CreateBatchPredictionJob", - Dict{String,Any}( - "detectorName" => detectorName, - "eventTypeName" => eventTypeName, - "iamRoleArn" => iamRoleArn, - "inputPath" => inputPath, - "jobId" => jobId, - "outputPath" => outputPath, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_batch_prediction_job( detectorName, eventTypeName, @@ -306,16 +294,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys behavior is FIRST_MATCHED. - `"tags"`: A collection of key and value pairs. """ -function create_detector_version( +create_detector_version( detectorId, rules; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "CreateDetectorVersion", + Dict{String,Any}("detectorId" => detectorId, "rules" => rules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "CreateDetectorVersion", - Dict{String,Any}("detectorId" => detectorId, "rules" => rules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_detector_version( detectorId, rules, @@ -356,14 +342,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"variableType"`: The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types. """ -function create_list(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "CreateList", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_list(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "CreateList", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_list( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -391,18 +375,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The model description. - `"tags"`: A collection of key and value pairs. """ -function create_model( +create_model( eventTypeName, modelId, modelType; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "CreateModel", + Dict{String,Any}( + "eventTypeName" => eventTypeName, "modelId" => modelId, "modelType" => modelType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "CreateModel", - Dict{String,Any}( - "eventTypeName" => eventTypeName, "modelId" => modelId, "modelType" => modelType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model( eventTypeName, modelId, @@ -448,25 +430,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys training. Required if trainingDataSource is INGESTED_EVENTS. - `"tags"`: A collection of key and value pairs. """ -function create_model_version( +create_model_version( modelId, modelType, trainingDataSchema, trainingDataSource; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "CreateModelVersion", + Dict{String,Any}( + "modelId" => modelId, + "modelType" => modelType, + "trainingDataSchema" => trainingDataSchema, + "trainingDataSource" => trainingDataSource, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "CreateModelVersion", - Dict{String,Any}( - "modelId" => modelId, - "modelType" => modelType, - "trainingDataSchema" => trainingDataSchema, - "trainingDataSource" => trainingDataSource, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_version( modelId, modelType, @@ -512,27 +492,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The rule description. - `"tags"`: A collection of key and value pairs. """ -function create_rule( +create_rule( detectorId, expression, language, outcomes, ruleId; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "CreateRule", + Dict{String,Any}( + "detectorId" => detectorId, + "expression" => expression, + "language" => language, + "outcomes" => outcomes, + "ruleId" => ruleId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "CreateRule", - Dict{String,Any}( - "detectorId" => detectorId, - "expression" => expression, - "language" => language, - "outcomes" => outcomes, - "ruleId" => ruleId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule( detectorId, expression, @@ -586,25 +564,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT """ -function create_variable( +create_variable( dataSource, dataType, defaultValue, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "CreateVariable", + Dict{String,Any}( + "dataSource" => dataSource, + "dataType" => dataType, + "defaultValue" => defaultValue, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "CreateVariable", - Dict{String,Any}( - "dataSource" => dataSource, - "dataType" => dataType, - "defaultValue" => defaultValue, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_variable( dataSource, dataType, @@ -643,14 +619,13 @@ was batch imported. - `job_id`: The ID of the batch import job to delete. """ -function delete_batch_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +delete_batch_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DeleteBatchImportJob", Dict{String,Any}("jobId" => jobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_batch_import_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -672,16 +647,13 @@ Deletes a batch prediction job. - `job_id`: The ID of the batch prediction job to delete. """ -function delete_batch_prediction_job( - jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +delete_batch_prediction_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DeleteBatchPredictionJob", Dict{String,Any}("jobId" => jobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_batch_prediction_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -706,14 +678,13 @@ Fraud Detector. - `detector_id`: The ID of the detector to delete. """ -function delete_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +delete_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DeleteDetector", Dict{String,Any}("detectorId" => detectorId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_detector( detectorId, params::AbstractDict{String}; @@ -742,18 +713,14 @@ detector and the data is no longer stored in Amazon Fraud Detector. - `detector_version_id`: The ID of the detector version to delete. """ -function delete_detector_version( +delete_detector_version( detectorId, detectorVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "DeleteDetectorVersion", + Dict{String,Any}("detectorId" => detectorId, "detectorVersionId" => detectorVersionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "DeleteDetectorVersion", - Dict{String,Any}( - "detectorId" => detectorId, "detectorVersionId" => detectorVersionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_detector_version( detectorId, detectorVersionId, @@ -788,14 +755,13 @@ and the data is no longer stored in Amazon Fraud Detector. - `name`: The name of the entity type to delete. """ -function delete_entity_type(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +delete_entity_type(name; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DeleteEntityType", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_entity_type( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -825,16 +791,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deleteAuditHistory"`: Specifies whether or not to delete any predictions associated with the event. If set to True, """ -function delete_event( - eventId, eventTypeName; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +delete_event(eventId, eventTypeName; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DeleteEvent", Dict{String,Any}("eventId" => eventId, "eventTypeName" => eventTypeName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_event( eventId, eventTypeName, @@ -867,14 +830,12 @@ type and the data is no longer stored in Amazon Fraud Detector. - `name`: The name of the event type to delete. """ -function delete_event_type(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "DeleteEventType", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_event_type(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "DeleteEventType", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_event_type( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -896,16 +857,14 @@ Deletes all events of a particular event type. - `event_type_name`: The name of the event type. """ -function delete_events_by_event_type( +delete_events_by_event_type( eventTypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "DeleteEventsByEventType", + Dict{String,Any}("eventTypeName" => eventTypeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "DeleteEventsByEventType", - Dict{String,Any}("eventTypeName" => eventTypeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_events_by_event_type( eventTypeName, params::AbstractDict{String}; @@ -933,16 +892,13 @@ disconnects it from Amazon Fraud Detector, but the model remains available in Sa - `model_endpoint`: The endpoint of the Amazon Sagemaker model to delete. """ -function delete_external_model( - modelEndpoint; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +delete_external_model(modelEndpoint; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DeleteExternalModel", Dict{String,Any}("modelEndpoint" => modelEndpoint); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_external_model( modelEndpoint, params::AbstractDict{String}; @@ -971,14 +927,12 @@ that label and the data is no longer stored in Amazon Fraud Detector. - `name`: The name of the label to delete. """ -function delete_label(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "DeleteLabel", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_label(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "DeleteLabel", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_label( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1001,14 +955,12 @@ Fraud Detector permanently deletes that list and the elements in the list. - `name`: The name of the list to delete. """ -function delete_list(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "DeleteList", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_list(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "DeleteList", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_list( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1034,16 +986,13 @@ Amazon Fraud Detector. - `model_type`: The model type of the model to delete. """ -function delete_model( - modelId, modelType; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +delete_model(modelId, modelType; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DeleteModel", Dict{String,Any}("modelId" => modelId, "modelType" => modelType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_model( modelId, modelType, @@ -1079,23 +1028,21 @@ longer stored in Amazon Fraud Detector. - `model_version_number`: The model version number of the model version to delete. """ -function delete_model_version( +delete_model_version( modelId, modelType, modelVersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "DeleteModelVersion", + Dict{String,Any}( + "modelId" => modelId, + "modelType" => modelType, + "modelVersionNumber" => modelVersionNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "DeleteModelVersion", - Dict{String,Any}( - "modelId" => modelId, - "modelType" => modelType, - "modelVersionNumber" => modelVersionNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_model_version( modelId, modelType, @@ -1133,14 +1080,12 @@ no longer stored in Amazon Fraud Detector. - `name`: The name of the outcome to delete. """ -function delete_outcome(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "DeleteOutcome", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_outcome(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "DeleteOutcome", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_outcome( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1164,14 +1109,12 @@ the data is no longer stored in Amazon Fraud Detector. - `rule`: """ -function delete_rule(rule; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "DeleteRule", - Dict{String,Any}("rule" => rule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_rule(rule; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "DeleteRule", + Dict{String,Any}("rule" => rule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_rule( rule, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1197,14 +1140,12 @@ that variable and the data is no longer stored in Amazon Fraud Detector. - `name`: The name of the variable to delete. """ -function delete_variable(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "DeleteVariable", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_variable(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "DeleteVariable", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_variable( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1230,14 +1171,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return for the request. - `"nextToken"`: The next token from the previous response. """ -function describe_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +describe_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DescribeDetector", Dict{String,Any}("detectorId" => detectorId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_detector( detectorId, params::AbstractDict{String}; @@ -1268,11 +1208,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"modelVersionNumber"`: The model version number. - `"nextToken"`: The next token from the previous results. """ -function describe_model_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +describe_model_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "DescribeModelVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_model_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1300,11 +1239,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects to return for request. - `"nextToken"`: The next token from the previous request. """ -function get_batch_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetBatchImportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_batch_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "GetBatchImportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_batch_import_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1329,11 +1266,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects to return for the request. - `"nextToken"`: The next token from the previous request. """ -function get_batch_prediction_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +get_batch_prediction_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "GetBatchPredictionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_batch_prediction_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1355,16 +1291,14 @@ Retrieves the status of a DeleteEventsByEventType action. - `event_type_name`: Name of event type for which to get the deletion status. """ -function get_delete_events_by_event_type_status( +get_delete_events_by_event_type_status( eventTypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "GetDeleteEventsByEventTypeStatus", + Dict{String,Any}("eventTypeName" => eventTypeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "GetDeleteEventsByEventTypeStatus", - Dict{String,Any}("eventTypeName" => eventTypeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_delete_events_by_event_type_status( eventTypeName, params::AbstractDict{String}; @@ -1391,18 +1325,14 @@ Gets a particular detector version. - `detector_version_id`: The detector version ID. """ -function get_detector_version( +get_detector_version( detectorId, detectorVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "GetDetectorVersion", + Dict{String,Any}("detectorId" => detectorId, "detectorVersionId" => detectorVersionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "GetDetectorVersion", - Dict{String,Any}( - "detectorId" => detectorId, "detectorVersionId" => detectorVersionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_detector_version( detectorId, detectorVersionId, @@ -1441,11 +1371,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects to return for the request. - `"nextToken"`: The next token for the subsequent request. """ -function get_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetDetectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector("GetDetectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_detectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1470,11 +1397,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name. - `"nextToken"`: The next token for the subsequent request. """ -function get_entity_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetEntityTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_entity_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector("GetEntityTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_entity_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1495,16 +1419,13 @@ retrieve prediction results. - `event_type_name`: The event type of the event to retrieve. """ -function get_event( - eventId, eventTypeName; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +get_event(eventId, eventTypeName; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "GetEvent", Dict{String,Any}("eventId" => eventId, "eventTypeName" => eventTypeName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_event( eventId, eventTypeName, @@ -1560,7 +1481,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"detectorVersionId"`: The detector version ID. - `"externalModelEndpointDataBlobs"`: The Amazon SageMaker model endpoint input data blobs. """ -function get_event_prediction( +get_event_prediction( detectorId, entities, eventId, @@ -1568,21 +1489,19 @@ function get_event_prediction( eventTypeName, eventVariables; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "GetEventPrediction", + Dict{String,Any}( + "detectorId" => detectorId, + "entities" => entities, + "eventId" => eventId, + "eventTimestamp" => eventTimestamp, + "eventTypeName" => eventTypeName, + "eventVariables" => eventVariables, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "GetEventPrediction", - Dict{String,Any}( - "detectorId" => detectorId, - "entities" => entities, - "eventId" => eventId, - "eventTimestamp" => eventTimestamp, - "eventTypeName" => eventTypeName, - "eventVariables" => eventVariables, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_event_prediction( detectorId, entities, @@ -1633,27 +1552,25 @@ detector ID, and detector version ID that was generated in the specified time pe provide an accurate prediction timestamp value. """ -function get_event_prediction_metadata( +get_event_prediction_metadata( detectorId, detectorVersionId, eventId, eventTypeName, predictionTimestamp; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "GetEventPredictionMetadata", + Dict{String,Any}( + "detectorId" => detectorId, + "detectorVersionId" => detectorVersionId, + "eventId" => eventId, + "eventTypeName" => eventTypeName, + "predictionTimestamp" => predictionTimestamp, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "GetEventPredictionMetadata", - Dict{String,Any}( - "detectorId" => detectorId, - "detectorVersionId" => detectorVersionId, - "eventId" => eventId, - "eventTypeName" => eventTypeName, - "predictionTimestamp" => predictionTimestamp, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_event_prediction_metadata( detectorId, detectorVersionId, @@ -1699,11 +1616,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name. - `"nextToken"`: The next token for the subsequent request. """ -function get_event_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetEventTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_event_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector("GetEventTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_event_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1729,11 +1643,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"modelEndpoint"`: The Amazon SageMaker model endpoint. - `"nextToken"`: The next page token for the request. """ -function get_external_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetExternalModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_external_models(; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "GetExternalModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_external_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1750,11 +1662,9 @@ Gets the encryption key if a KMS key has been specified to be used to encrypt co Amazon Fraud Detector. """ -function get_kmsencryption_key(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetKMSEncryptionKey"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_kmsencryption_key(; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "GetKMSEncryptionKey"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_kmsencryption_key( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1782,11 +1692,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the label or labels to get. - `"nextToken"`: The next token for the subsequent request. """ -function get_labels(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetLabels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_labels(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector("GetLabels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_labels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1809,14 +1716,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects to return for the request. - `"nextToken"`: The next token for the subsequent request. """ -function get_list_elements(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetListElements", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_list_elements(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "GetListElements", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_list_elements( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1840,11 +1745,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the list. - `"nextToken"`: The next token for the subsequent request. """ -function get_lists_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetListsMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_lists_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "GetListsMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_lists_metadata( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1865,23 +1768,21 @@ Gets the details of the specified model version. - `model_version_number`: The model version number. """ -function get_model_version( +get_model_version( modelId, modelType, modelVersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "GetModelVersion", + Dict{String,Any}( + "modelId" => modelId, + "modelType" => modelType, + "modelVersionNumber" => modelVersionNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "GetModelVersion", - Dict{String,Any}( - "modelId" => modelId, - "modelType" => modelType, - "modelVersionNumber" => modelVersionNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_model_version( modelId, modelType, @@ -1927,11 +1828,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"modelType"`: The model type. - `"nextToken"`: The next token for the subsequent request. """ -function get_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_models(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector("GetModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1956,11 +1854,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the outcome or outcomes to get. - `"nextToken"`: The next page token for the request. """ -function get_outcomes(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetOutcomes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_outcomes(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector("GetOutcomes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_outcomes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1991,14 +1886,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ruleId"`: The rule ID. - `"ruleVersion"`: The rule version. """ -function get_rules(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetRules", - Dict{String,Any}("detectorId" => detectorId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rules(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "GetRules", + Dict{String,Any}("detectorId" => detectorId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rules( detectorId, params::AbstractDict{String}; @@ -2030,11 +1923,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the variable. - `"nextToken"`: The next page token of the get variable request. """ -function get_variables(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "GetVariables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_variables(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector("GetVariables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_variables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2068,11 +1958,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys token expires after 24 hours. - `"predictionTimeRange"`: The time period for when the predictions were generated. """ -function list_event_predictions(; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +list_event_predictions(; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "ListEventPredictions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_event_predictions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2100,16 +1989,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of objects to return for the request. - `"nextToken"`: The next token from the previous results. """ -function list_tags_for_resource( - resourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +list_tags_for_resource(resourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "ListTagsForResource", Dict{String,Any}("resourceARN" => resourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceARN, params::AbstractDict{String}; @@ -2140,16 +2026,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the detector. - `"tags"`: A collection of key and value pairs. """ -function put_detector( +put_detector( detectorId, eventTypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "PutDetector", + Dict{String,Any}("detectorId" => detectorId, "eventTypeName" => eventTypeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "PutDetector", - Dict{String,Any}("detectorId" => detectorId, "eventTypeName" => eventTypeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_detector( detectorId, eventTypeName, @@ -2189,14 +2073,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description. - `"tags"`: A collection of key and value pairs. """ -function put_entity_type(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "PutEntityType", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_entity_type(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "PutEntityType", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_entity_type( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2234,18 +2116,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"labels"`: The event type labels. - `"tags"`: A collection of key and value pairs. """ -function put_event_type( +put_event_type( entityTypes, eventVariables, name; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "PutEventType", + Dict{String,Any}( + "entityTypes" => entityTypes, "eventVariables" => eventVariables, "name" => name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "PutEventType", - Dict{String,Any}( - "entityTypes" => entityTypes, "eventVariables" => eventVariables, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_event_type( entityTypes, eventVariables, @@ -2291,7 +2171,7 @@ variables. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A collection of key and value pairs. """ -function put_external_model( +put_external_model( inputConfiguration, invokeModelEndpointRoleArn, modelEndpoint, @@ -2299,21 +2179,19 @@ function put_external_model( modelSource, outputConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "PutExternalModel", + Dict{String,Any}( + "inputConfiguration" => inputConfiguration, + "invokeModelEndpointRoleArn" => invokeModelEndpointRoleArn, + "modelEndpoint" => modelEndpoint, + "modelEndpointStatus" => modelEndpointStatus, + "modelSource" => modelSource, + "outputConfiguration" => outputConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "PutExternalModel", - Dict{String,Any}( - "inputConfiguration" => inputConfiguration, - "invokeModelEndpointRoleArn" => invokeModelEndpointRoleArn, - "modelEndpoint" => modelEndpoint, - "modelEndpointStatus" => modelEndpointStatus, - "modelSource" => modelSource, - "outputConfiguration" => outputConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_external_model( inputConfiguration, invokeModelEndpointRoleArn, @@ -2356,16 +2234,14 @@ Specifies the KMS key to be used to encrypt content in Amazon Fraud Detector. key. Amazon Fraud Detector does not support multi-Region KMS key. """ -function put_kmsencryption_key( +put_kmsencryption_key( kmsEncryptionKeyArn; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "PutKMSEncryptionKey", + Dict{String,Any}("kmsEncryptionKeyArn" => kmsEncryptionKeyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "PutKMSEncryptionKey", - Dict{String,Any}("kmsEncryptionKeyArn" => kmsEncryptionKeyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_kmsencryption_key( kmsEncryptionKeyArn, params::AbstractDict{String}; @@ -2401,14 +2277,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The label description. - `"tags"`: A collection of key and value pairs. """ -function put_label(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "PutLabel", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_label(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "PutLabel", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_label( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2434,14 +2308,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The outcome description. - `"tags"`: A collection of key and value pairs. """ -function put_outcome(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "PutOutcome", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_outcome(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "PutOutcome", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_outcome( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2478,27 +2350,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"labelTimestamp"`: The timestamp associated with the label. Required if specifying assignedLabel. """ -function send_event( +send_event( entities, eventId, eventTimestamp, eventTypeName, eventVariables; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "SendEvent", + Dict{String,Any}( + "entities" => entities, + "eventId" => eventId, + "eventTimestamp" => eventTimestamp, + "eventTypeName" => eventTypeName, + "eventVariables" => eventVariables, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "SendEvent", - Dict{String,Any}( - "entities" => entities, - "eventId" => eventId, - "eventTimestamp" => eventTimestamp, - "eventTypeName" => eventTypeName, - "eventVariables" => eventVariables, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_event( entities, eventId, @@ -2539,14 +2409,13 @@ Assigns tags to a resource. - `tags`: The tags to assign to the resource. """ -function tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( +tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "TagResource", Dict{String,Any}("resourceARN" => resourceARN, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceARN, tags, @@ -2578,16 +2447,13 @@ Removes tags from a resource. - `tag_keys`: The resource ARN. """ -function untag_resource( - resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +untag_resource(resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "UntagResource", Dict{String,Any}("resourceARN" => resourceARN, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceARN, tagKeys, @@ -2634,25 +2500,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status. The default behavior is FIRST_MATCHED. """ -function update_detector_version( +update_detector_version( detectorId, detectorVersionId, externalModelEndpoints, rules; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "UpdateDetectorVersion", + Dict{String,Any}( + "detectorId" => detectorId, + "detectorVersionId" => detectorVersionId, + "externalModelEndpoints" => externalModelEndpoints, + "rules" => rules, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "UpdateDetectorVersion", - Dict{String,Any}( - "detectorId" => detectorId, - "detectorVersionId" => detectorVersionId, - "externalModelEndpoints" => externalModelEndpoints, - "rules" => rules, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_detector_version( detectorId, detectorVersionId, @@ -2693,23 +2557,21 @@ version (DRAFT, ACTIVE, or INACTIVE). - `detector_version_id`: The detector version ID. """ -function update_detector_version_metadata( +update_detector_version_metadata( description, detectorId, detectorVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "UpdateDetectorVersionMetadata", + Dict{String,Any}( + "description" => description, + "detectorId" => detectorId, + "detectorVersionId" => detectorVersionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "UpdateDetectorVersionMetadata", - Dict{String,Any}( - "description" => description, - "detectorId" => detectorId, - "detectorVersionId" => detectorVersionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_detector_version_metadata( description, detectorId, @@ -2749,23 +2611,21 @@ INACTIVE to ACTIVE. - `status`: The new status. The only supported values are ACTIVE and INACTIVE """ -function update_detector_version_status( +update_detector_version_status( detectorId, detectorVersionId, status; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "UpdateDetectorVersionStatus", + Dict{String,Any}( + "detectorId" => detectorId, + "detectorVersionId" => detectorVersionId, + "status" => status, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "UpdateDetectorVersionStatus", - Dict{String,Any}( - "detectorId" => detectorId, - "detectorVersionId" => detectorVersionId, - "status" => status, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_detector_version_status( detectorId, detectorVersionId, @@ -2805,25 +2665,23 @@ Updates the specified event with a new label. specified using ISO 8601 standard in UTC. """ -function update_event_label( +update_event_label( assignedLabel, eventId, eventTypeName, labelTimestamp; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "UpdateEventLabel", + Dict{String,Any}( + "assignedLabel" => assignedLabel, + "eventId" => eventId, + "eventTypeName" => eventTypeName, + "labelTimestamp" => labelTimestamp, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "UpdateEventLabel", - Dict{String,Any}( - "assignedLabel" => assignedLabel, - "eventId" => eventId, - "eventTypeName" => eventTypeName, - "labelTimestamp" => labelTimestamp, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_event_label( assignedLabel, eventId, @@ -2873,14 +2731,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type. """ -function update_list(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "UpdateList", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_list(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "UpdateList", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_list( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2906,16 +2762,13 @@ Updates model description. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The new model description. """ -function update_model( - modelId, modelType; aws_config::AbstractAWSConfig=current_aws_config() -) - return frauddetector( +update_model(modelId, modelType; aws_config::AbstractAWSConfig=current_aws_config()) = + frauddetector( "UpdateModel", Dict{String,Any}("modelId" => modelId, "modelType" => modelType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_model( modelId, modelType, @@ -2958,23 +2811,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version. Required if your trainingDataSource is INGESTED_EVENTS. - `"tags"`: A collection of key and value pairs. """ -function update_model_version( +update_model_version( majorVersionNumber, modelId, modelType; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "UpdateModelVersion", + Dict{String,Any}( + "majorVersionNumber" => majorVersionNumber, + "modelId" => modelId, + "modelType" => modelType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "UpdateModelVersion", - Dict{String,Any}( - "majorVersionNumber" => majorVersionNumber, - "modelId" => modelId, - "modelType" => modelType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_model_version( majorVersionNumber, modelId, @@ -3015,25 +2866,23 @@ TRAINING_COMPLETE status to ACTIVE. Change ACTIVE to INACTIVE. - `status`: The model version status. """ -function update_model_version_status( +update_model_version_status( modelId, modelType, modelVersionNumber, status; aws_config::AbstractAWSConfig=current_aws_config(), +) = frauddetector( + "UpdateModelVersionStatus", + Dict{String,Any}( + "modelId" => modelId, + "modelType" => modelType, + "modelVersionNumber" => modelVersionNumber, + "status" => status, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "UpdateModelVersionStatus", - Dict{String,Any}( - "modelId" => modelId, - "modelType" => modelType, - "modelVersionNumber" => modelVersionNumber, - "status" => status, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_model_version_status( modelId, modelType, @@ -3072,16 +2921,14 @@ Updates a rule's metadata. The description attribute can be updated. - `rule`: The rule to update. """ -function update_rule_metadata( +update_rule_metadata( description, rule; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "UpdateRuleMetadata", + Dict{String,Any}("description" => description, "rule" => rule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "UpdateRuleMetadata", - Dict{String,Any}("description" => description, "rule" => rule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule_metadata( description, rule, @@ -3120,21 +2967,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description. - `"tags"`: The tags to assign to the rule version. """ -function update_rule_version( +update_rule_version( expression, language, outcomes, rule; aws_config::AbstractAWSConfig=current_aws_config() +) = frauddetector( + "UpdateRuleVersion", + Dict{String,Any}( + "expression" => expression, + "language" => language, + "outcomes" => outcomes, + "rule" => rule, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return frauddetector( - "UpdateRuleVersion", - Dict{String,Any}( - "expression" => expression, - "language" => language, - "outcomes" => outcomes, - "rule" => rule, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule_version( expression, language, @@ -3177,14 +3022,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The new description. - `"variableType"`: The variable type. For more information see Variable types. """ -function update_variable(name; aws_config::AbstractAWSConfig=current_aws_config()) - return frauddetector( - "UpdateVariable", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_variable(name; aws_config::AbstractAWSConfig=current_aws_config()) = frauddetector( + "UpdateVariable", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_variable( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/freetier.jl b/src/services/freetier.jl index c4e4c0816..81b1ebeb7 100644 --- a/src/services/freetier.jl +++ b/src/services/freetier.jl @@ -19,11 +19,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys based on your filters. - `"nextToken"`: The pagination token that indicates the next set of results to retrieve. """ -function get_free_tier_usage(; aws_config::AbstractAWSConfig=current_aws_config()) - return freetier( - "GetFreeTierUsage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_free_tier_usage(; aws_config::AbstractAWSConfig=current_aws_config()) = + freetier("GetFreeTierUsage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_free_tier_usage( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/fsx.jl b/src/services/fsx.jl index a04962050..0739ac5b1 100644 --- a/src/services/fsx.jl +++ b/src/services/fsx.jl @@ -34,20 +34,18 @@ of the aliases Amazon FSx is associating with the file system. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function associate_file_system_aliases( +associate_file_system_aliases( Aliases, FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "AssociateFileSystemAliases", + Dict{String,Any}( + "Aliases" => Aliases, + "FileSystemId" => FileSystemId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "AssociateFileSystemAliases", - Dict{String,Any}( - "Aliases" => Aliases, - "FileSystemId" => FileSystemId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_file_system_aliases( Aliases, FileSystemId, @@ -88,16 +86,13 @@ remain in the released state. - `task_id`: Specifies the data repository task to cancel. """ -function cancel_data_repository_task( - TaskId; aws_config::AbstractAWSConfig=current_aws_config() -) - return fsx( +cancel_data_repository_task(TaskId; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx( "CancelDataRepositoryTask", Dict{String,Any}("TaskId" => TaskId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_data_repository_task( TaskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -154,16 +149,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys copy). - `"Tags"`: """ -function copy_backup(SourceBackupId; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "CopyBackup", - Dict{String,Any}( - "SourceBackupId" => SourceBackupId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +copy_backup(SourceBackupId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "CopyBackup", + Dict{String,Any}( + "SourceBackupId" => SourceBackupId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function copy_backup( SourceBackupId, params::AbstractDict{String}; @@ -216,20 +209,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys volume that aren't on the source volume. DELETE_INTERMEDIATE_DATA - Overwrites snapshots on the destination volume that don’t match the source snapshot that you’re copying. """ -function copy_snapshot_and_update_volume( +copy_snapshot_and_update_volume( SourceSnapshotARN, VolumeId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "CopySnapshotAndUpdateVolume", + Dict{String,Any}( + "SourceSnapshotARN" => SourceSnapshotARN, + "VolumeId" => VolumeId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "CopySnapshotAndUpdateVolume", - Dict{String,Any}( - "SourceSnapshotARN" => SourceSnapshotARN, - "VolumeId" => VolumeId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_snapshot_and_update_volume( SourceSnapshotARN, VolumeId, @@ -295,14 +286,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys file system tags are copied from the file system to the backup. - `"VolumeId"`: (Optional) The ID of the FSx for ONTAP volume to back up. """ -function create_backup(; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "CreateBackup", - Dict{String,Any}("ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_backup(; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "CreateBackup", + Dict{String,Any}("ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_backup( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -371,20 +360,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data repository. - `"Tags"`: """ -function create_data_repository_association( +create_data_repository_association( DataRepositoryPath, FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "CreateDataRepositoryAssociation", + Dict{String,Any}( + "DataRepositoryPath" => DataRepositoryPath, + "FileSystemId" => FileSystemId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "CreateDataRepositoryAssociation", - Dict{String,Any}( - "DataRepositoryPath" => DataRepositoryPath, - "FileSystemId" => FileSystemId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_repository_association( DataRepositoryPath, FileSystemId, @@ -466,21 +453,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys criteria for files that will be released from an Amazon FSx for Lustre file system. - `"Tags"`: """ -function create_data_repository_task( +create_data_repository_task( FileSystemId, Report, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "CreateDataRepositoryTask", + Dict{String,Any}( + "FileSystemId" => FileSystemId, + "Report" => Report, + "Type" => Type, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "CreateDataRepositoryTask", - Dict{String,Any}( - "FileSystemId" => FileSystemId, - "Report" => Report, - "Type" => Type, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_repository_task( FileSystemId, Report, @@ -562,26 +547,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests to describe the cache. - `"Tags"`: """ -function create_file_cache( +create_file_cache( FileCacheType, FileCacheTypeVersion, StorageCapacity, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = fsx( + "CreateFileCache", + Dict{String,Any}( + "FileCacheType" => FileCacheType, + "FileCacheTypeVersion" => FileCacheTypeVersion, + "StorageCapacity" => StorageCapacity, + "SubnetIds" => SubnetIds, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "CreateFileCache", - Dict{String,Any}( - "FileCacheType" => FileCacheType, - "FileCacheTypeVersion" => FileCacheTypeVersion, - "StorageCapacity" => StorageCapacity, - "SubnetIds" => SubnetIds, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_file_cache( FileCacheType, FileCacheTypeVersion, @@ -702,24 +685,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WindowsConfiguration"`: The Microsoft Windows configuration for the file system that's being created. """ -function create_file_system( +create_file_system( FileSystemType, StorageCapacity, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = fsx( + "CreateFileSystem", + Dict{String,Any}( + "FileSystemType" => FileSystemType, + "StorageCapacity" => StorageCapacity, + "SubnetIds" => SubnetIds, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "CreateFileSystem", - Dict{String,Any}( - "FileSystemType" => FileSystemType, - "StorageCapacity" => StorageCapacity, - "SubnetIds" => SubnetIds, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_file_system( FileSystemType, StorageCapacity, @@ -818,20 +799,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value of the Name tag appears in the console as the file system name. - `"WindowsConfiguration"`: The configuration for this Microsoft Windows file system. """ -function create_file_system_from_backup( +create_file_system_from_backup( BackupId, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "CreateFileSystemFromBackup", + Dict{String,Any}( + "BackupId" => BackupId, + "SubnetIds" => SubnetIds, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "CreateFileSystemFromBackup", - Dict{String,Any}( - "BackupId" => BackupId, - "SubnetIds" => SubnetIds, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_file_system_from_backup( BackupId, SubnetIds, @@ -886,16 +865,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: - `"Tags"`: """ -function create_snapshot(Name, VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "CreateSnapshot", - Dict{String,Any}( - "Name" => Name, "VolumeId" => VolumeId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_snapshot(Name, VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "CreateSnapshot", + Dict{String,Any}( + "Name" => Name, "VolumeId" => VolumeId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_snapshot( Name, VolumeId, @@ -950,20 +927,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fsxadmin user to manage the SVM. - `"Tags"`: """ -function create_storage_virtual_machine( +create_storage_virtual_machine( FileSystemId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "CreateStorageVirtualMachine", + Dict{String,Any}( + "FileSystemId" => FileSystemId, + "Name" => Name, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "CreateStorageVirtualMachine", - Dict{String,Any}( - "FileSystemId" => FileSystemId, - "Name" => Name, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_storage_virtual_machine( FileSystemId, Name, @@ -1007,18 +982,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys volume. - `"Tags"`: """ -function create_volume(Name, VolumeType; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "CreateVolume", - Dict{String,Any}( - "Name" => Name, - "VolumeType" => VolumeType, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_volume(Name, VolumeType; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "CreateVolume", + Dict{String,Any}( + "Name" => Name, + "VolumeType" => VolumeType, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_volume( Name, VolumeType, @@ -1060,18 +1033,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys creating. - `"Tags"`: """ -function create_volume_from_backup( +create_volume_from_backup( BackupId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "CreateVolumeFromBackup", + Dict{String,Any}( + "BackupId" => BackupId, "Name" => Name, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "CreateVolumeFromBackup", - Dict{String,Any}( - "BackupId" => BackupId, "Name" => Name, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_volume_from_backup( BackupId, Name, @@ -1114,14 +1085,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ensure idempotent deletion. This parameter is automatically filled on your behalf when using the CLI or SDK. """ -function delete_backup(BackupId; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "DeleteBackup", - Dict{String,Any}("BackupId" => BackupId, "ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_backup(BackupId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "DeleteBackup", + Dict{String,Any}("BackupId" => BackupId, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_backup( BackupId, params::AbstractDict{String}; @@ -1163,18 +1132,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeleteDataInFileSystem"`: Set to true to delete the data in the file system that corresponds to the data repository association. """ -function delete_data_repository_association( +delete_data_repository_association( AssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "DeleteDataRepositoryAssociation", + Dict{String,Any}( + "AssociationId" => AssociationId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "DeleteDataRepositoryAssociation", - Dict{String,Any}( - "AssociationId" => AssociationId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_repository_association( AssociationId, params::AbstractDict{String}; @@ -1215,16 +1182,12 @@ data in a deleted cache is also deleted and can't be recovered by any means. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function delete_file_cache(FileCacheId; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "DeleteFileCache", - Dict{String,Any}( - "FileCacheId" => FileCacheId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_file_cache(FileCacheId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "DeleteFileCache", + Dict{String,Any}("FileCacheId" => FileCacheId, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_file_cache( FileCacheId, params::AbstractDict{String}; @@ -1288,18 +1251,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the DeleteFileSystem operation. - `"WindowsConfiguration"`: """ -function delete_file_system( - FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +delete_file_system(FileSystemId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "DeleteFileSystem", + Dict{String,Any}( + "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "DeleteFileSystem", - Dict{String,Any}( - "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_file_system( FileSystemId, params::AbstractDict{String}; @@ -1337,16 +1296,12 @@ lifecycle status of DELETING until the deletion is complete. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function delete_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "DeleteSnapshot", - Dict{String,Any}( - "SnapshotId" => SnapshotId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_snapshot(SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "DeleteSnapshot", + Dict{String,Any}("SnapshotId" => SnapshotId, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_snapshot( SnapshotId, params::AbstractDict{String}; @@ -1382,19 +1337,17 @@ an SVM, you must delete all non-root volumes in the SVM, otherwise the operation Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function delete_storage_virtual_machine( +delete_storage_virtual_machine( StorageVirtualMachineId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "DeleteStorageVirtualMachine", + Dict{String,Any}( + "StorageVirtualMachineId" => StorageVirtualMachineId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "DeleteStorageVirtualMachine", - Dict{String,Any}( - "StorageVirtualMachineId" => StorageVirtualMachineId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_storage_virtual_machine( StorageVirtualMachineId, params::AbstractDict{String}; @@ -1435,14 +1388,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OpenZFSConfiguration"`: For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots. """ -function delete_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "DeleteVolume", - Dict{String,Any}("VolumeId" => VolumeId, "ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "DeleteVolume", + Dict{String,Any}("VolumeId" => VolumeId, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_volume( VolumeId, params::AbstractDict{String}; @@ -1498,9 +1449,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If a token is present, the operation continues the list from where the returning call left off. """ -function describe_backups(; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx("DescribeBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_backups(; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx("DescribeBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_backups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1539,15 +1489,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must be an integer greater than zero. - `"NextToken"`: """ -function describe_data_repository_associations(; +describe_data_repository_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "DescribeDataRepositoryAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "DescribeDataRepositoryAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_data_repository_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1583,15 +1531,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"TaskIds"`: (Optional) IDs of the tasks whose descriptions you want to retrieve (String). """ -function describe_data_repository_tasks(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_data_repository_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "DescribeDataRepositoryTasks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "DescribeDataRepositoryTasks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_data_repository_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1629,9 +1573,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function describe_file_caches(; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx("DescribeFileCaches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_file_caches(; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx("DescribeFileCaches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_file_caches( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1664,18 +1607,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation (String). If a token is included in the request, the action continues the list from where the previous returning call left off. """ -function describe_file_system_aliases( +describe_file_system_aliases( FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "DescribeFileSystemAliases", + Dict{String,Any}( + "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "DescribeFileSystemAliases", - Dict{String,Any}( - "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_file_system_aliases( FileSystemId, params::AbstractDict{String}; @@ -1730,11 +1671,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation (String). If a token present, the operation continues the list from where the returning call left off. """ -function describe_file_systems(; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "DescribeFileSystems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_file_systems(; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx("DescribeFileSystems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_file_systems( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1756,15 +1694,12 @@ NetApp ONTAP Multi-AZ file systems in subnets that are shared by a virtual priva subnets. """ -function describe_shared_vpc_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return fsx( +describe_shared_vpc_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx( "DescribeSharedVpcConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_shared_vpc_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1807,9 +1742,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnapshotIds"`: The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't found, a SnapshotNotFound error occurs. """ -function describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx("DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx("DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1831,15 +1765,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"StorageVirtualMachineIds"`: Enter the ID of one or more SVMs that you want to view. """ -function describe_storage_virtual_machines(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return fsx( +describe_storage_virtual_machines(; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx( "DescribeStorageVirtualMachines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_storage_virtual_machines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1864,9 +1795,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"VolumeIds"`: The IDs of the volumes whose descriptions you want to retrieve. """ -function describe_volumes(; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx("DescribeVolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_volumes(; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx("DescribeVolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_volumes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1896,20 +1826,18 @@ aliases Amazon FSx is disassociating with the file system. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function disassociate_file_system_aliases( +disassociate_file_system_aliases( Aliases, FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "DisassociateFileSystemAliases", + Dict{String,Any}( + "Aliases" => Aliases, + "FileSystemId" => FileSystemId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "DisassociateFileSystemAliases", - Dict{String,Any}( - "Aliases" => Aliases, - "FileSystemId" => FileSystemId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_file_system_aliases( Aliases, FileSystemId, @@ -1964,16 +1892,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation (String). If a token present, the action continues the list from where the returning call left off. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return fsx( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -2002,18 +1927,16 @@ Releases the file system lock from an Amazon FSx for OpenZFS file system. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function release_file_system_nfs_v3_locks( +release_file_system_nfs_v3_locks( FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "ReleaseFileSystemNfsV3Locks", + Dict{String,Any}( + "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "ReleaseFileSystemNfsV3Locks", - Dict{String,Any}( - "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function release_file_system_nfs_v3_locks( FileSystemId, params::AbstractDict{String}; @@ -2056,20 +1979,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys volumes created from intermediate snapshots. If there are any dependent clone volumes and this option isn't used, RestoreVolumeFromSnapshot fails. """ -function restore_volume_from_snapshot( +restore_volume_from_snapshot( SnapshotId, VolumeId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "RestoreVolumeFromSnapshot", + Dict{String,Any}( + "SnapshotId" => SnapshotId, + "VolumeId" => VolumeId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "RestoreVolumeFromSnapshot", - Dict{String,Any}( - "SnapshotId" => SnapshotId, - "VolumeId" => VolumeId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_volume_from_snapshot( SnapshotId, VolumeId, @@ -2109,18 +2030,16 @@ to reconnect to the file system. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function start_misconfigured_state_recovery( +start_misconfigured_state_recovery( FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "StartMisconfiguredStateRecovery", + Dict{String,Any}( + "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "StartMisconfiguredStateRecovery", - Dict{String,Any}( - "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_misconfigured_state_recovery( FileSystemId, params::AbstractDict{String}; @@ -2155,14 +2074,12 @@ Tags an Amazon FSx resource. value is replaced by the one specified in this parameter. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "TagResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "TagResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceARN, Tags, @@ -2195,16 +2112,13 @@ This action removes a tag from an Amazon FSx resource. exist, the call will still succeed to be idempotent. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return fsx( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + fsx( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -2251,18 +2165,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data repository to the file system or automatically exported from the file system to the data repository. """ -function update_data_repository_association( +update_data_repository_association( AssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "UpdateDataRepositoryAssociation", + Dict{String,Any}( + "AssociationId" => AssociationId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "UpdateDataRepositoryAssociation", - Dict{String,Any}( - "AssociationId" => AssociationId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_repository_association( AssociationId, params::AbstractDict{String}; @@ -2300,16 +2212,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: - `"LustreConfiguration"`: The configuration updates for an Amazon File Cache resource. """ -function update_file_cache(FileCacheId; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "UpdateFileCache", - Dict{String,Any}( - "FileCacheId" => FileCacheId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_file_cache(FileCacheId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "UpdateFileCache", + Dict{String,Any}("FileCacheId" => FileCacheId, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_file_cache( FileCacheId, params::AbstractDict{String}; @@ -2391,18 +2299,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WindowsConfiguration"`: The configuration updates for an Amazon FSx for Windows File Server file system. """ -function update_file_system( - FileSystemId; aws_config::AbstractAWSConfig=current_aws_config() +update_file_system(FileSystemId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "UpdateFileSystem", + Dict{String,Any}( + "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "UpdateFileSystem", - Dict{String,Any}( - "FileSystemId" => FileSystemId, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_file_system( FileSystemId, params::AbstractDict{String}; @@ -2444,16 +2348,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys accounts can create FSx for ONTAP Multi-AZ file systems in shared subnets. Set to true to enable or false to disable. """ -function update_shared_vpc_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() +update_shared_vpc_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "UpdateSharedVpcConfiguration", + Dict{String,Any}("ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "UpdateSharedVpcConfiguration", - Dict{String,Any}("ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_shared_vpc_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2484,20 +2384,16 @@ Updates the name of an Amazon FSx for OpenZFS snapshot. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function update_snapshot( - Name, SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +update_snapshot(Name, SnapshotId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "UpdateSnapshot", + Dict{String,Any}( + "Name" => Name, + "SnapshotId" => SnapshotId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "UpdateSnapshot", - Dict{String,Any}( - "Name" => Name, - "SnapshotId" => SnapshotId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_snapshot( Name, SnapshotId, @@ -2539,19 +2435,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: - `"SvmAdminPassword"`: Specifies a new SvmAdminPassword. """ -function update_storage_virtual_machine( +update_storage_virtual_machine( StorageVirtualMachineId; aws_config::AbstractAWSConfig=current_aws_config() +) = fsx( + "UpdateStorageVirtualMachine", + Dict{String,Any}( + "StorageVirtualMachineId" => StorageVirtualMachineId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return fsx( - "UpdateStorageVirtualMachine", - Dict{String,Any}( - "StorageVirtualMachineId" => StorageVirtualMachineId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_storage_virtual_machine( StorageVirtualMachineId, params::AbstractDict{String}; @@ -2594,14 +2488,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OntapConfiguration"`: The configuration of the ONTAP volume that you are updating. - `"OpenZFSConfiguration"`: The configuration of the OpenZFS volume that you are updating. """ -function update_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return fsx( - "UpdateVolume", - Dict{String,Any}("VolumeId" => VolumeId, "ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = fsx( + "UpdateVolume", + Dict{String,Any}("VolumeId" => VolumeId, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_volume( VolumeId, params::AbstractDict{String}; diff --git a/src/services/gamelift.jl b/src/services/gamelift.jl index 9483f9d8b..12ebb6ddf 100644 --- a/src/services/gamelift.jl +++ b/src/services/gamelift.jl @@ -34,20 +34,18 @@ returned to SEARCHING to find a new match. Learn more Add FlexMatch to a REQUIRES_ACCEPTANCE; otherwise this request will fail. """ -function accept_match( +accept_match( AcceptanceType, PlayerIds, TicketId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "AcceptMatch", + Dict{String,Any}( + "AcceptanceType" => AcceptanceType, + "PlayerIds" => PlayerIds, + "TicketId" => TicketId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "AcceptMatch", - Dict{String,Any}( - "AcceptanceType" => AcceptanceType, - "PlayerIds" => PlayerIds, - "TicketId" => TicketId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_match( AcceptanceType, PlayerIds, @@ -114,16 +112,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this parameter is left empty, Amazon GameLift FleetIQ searches for an available game server in the specified game server group. """ -function claim_game_server( - GameServerGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +claim_game_server(GameServerGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "ClaimGameServer", Dict{String,Any}("GameServerGroupName" => GameServerGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function claim_game_server( GameServerGroupName, params::AbstractDict{String}; @@ -174,16 +169,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference. """ -function create_alias( - Name, RoutingStrategy; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +create_alias(Name, RoutingStrategy; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "CreateAlias", Dict{String,Any}("Name" => Name, "RoutingStrategy" => RoutingStrategy); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_alias( Name, RoutingStrategy, @@ -236,10 +228,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value determines the type of fleet resources that you use for this build. If your game build contains multiple executables, they all must run on the same operating system. You must specify a valid operating system in this request. There is no default value. You can't - change a build's operating system later. If you have active fleets using the Windows - Server 2012 operating system, you can continue to create new builds using this OS until - October 10, 2023, when Microsoft ends its support. All others must use Windows Server 2016 - when creating new Windows-based builds. + change a build's operating system later. Amazon Linux 2 (AL2) will reach end of support on + 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on + AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server + SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK + version 5. - `"ServerSdkVersion"`: A server SDK version you used when integrating your game server build with Amazon GameLift. For more information see Integrate games with custom game servers. By default Amazon GameLift sets this value to 4.0.2. @@ -260,9 +253,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Version"`: Version information associated with a build or script. Version strings don't need to be unique. You can change this value later. """ -function create_build(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift("CreateBuild"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_build(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("CreateBuild"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_build( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -307,7 +299,11 @@ design guide Create a container definition as a JSON file - `name`: A descriptive identifier for the container group definition. The name value must be unique in an Amazon Web Services Region. - `operating_system`: The platform that is used by containers in the container group - definition. All containers in a group must run on the same operating system. + definition. All containers in a group must run on the same operating system. Amazon Linux + 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 + FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., + first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. + See Migrate to Amazon GameLift server SDK version 5. - `total_cpu_limit`: The maximum amount of CPU units to allocate to the container group. Set this parameter to an integer value in CPU units (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you specify CPU limits for individual @@ -329,27 +325,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference. """ -function create_container_group_definition( +create_container_group_definition( ContainerDefinitions, Name, OperatingSystem, TotalCpuLimit, TotalMemoryLimit; aws_config::AbstractAWSConfig=current_aws_config(), +) = gamelift( + "CreateContainerGroupDefinition", + Dict{String,Any}( + "ContainerDefinitions" => ContainerDefinitions, + "Name" => Name, + "OperatingSystem" => OperatingSystem, + "TotalCpuLimit" => TotalCpuLimit, + "TotalMemoryLimit" => TotalMemoryLimit, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreateContainerGroupDefinition", - Dict{String,Any}( - "ContainerDefinitions" => ContainerDefinitions, - "Name" => Name, - "OperatingSystem" => OperatingSystem, - "TotalCpuLimit" => TotalCpuLimit, - "TotalMemoryLimit" => TotalMemoryLimit, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_container_group_definition( ContainerDefinitions, Name, @@ -489,12 +483,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys integrated with server SDK version 5.x. For more information about using shared credentials, see Communicate with other Amazon Web Services resources from your fleets. - `"Locations"`: A set of remote locations to deploy additional instances to and manage as - part of the fleet. This parameter can only be used when creating fleets in Amazon Web - Services Regions that support multiple locations. You can add any Amazon GameLift-supported - Amazon Web Services Region as a remote location, in the form of an Amazon Web Services - Region code, such as us-west-2 or Local Zone code. To create a fleet with instances in the - home Region only, don't set this parameter. When using this parameter, Amazon GameLift - requires you to include your home location in the request. + a multi-location fleet. Use this parameter when creating a fleet in Amazon Web Services + Regions that support multiple locations. You can add any Amazon Web Services Region or + Local Zone that's supported by Amazon GameLift. Provide a list of one or more Amazon Web + Services Region codes, such as us-west-2, or Local Zone names. When using this parameter, + Amazon GameLift requires you to include your home location in the request. For a list of + supported Regions and Local Zones, see Amazon GameLift service locations for managed + hosting. - `"LogPaths"`: This parameter is no longer used. To specify where Amazon GameLift should store log files once a server process shuts down, use the Amazon GameLift server API ProcessReady() and specify one or more directory paths in logParameters. For more @@ -540,14 +535,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference. """ -function create_fleet(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "CreateFleet", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_fleet(Name; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "CreateFleet", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_fleet( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -574,7 +567,7 @@ one or more locations. If successful, this operation returns the list of added with their status set to NEW. Amazon GameLift initiates the process of starting an instance in each added location. You can track the status of each new location by monitoring location creation events using DescribeFleetEvents. Learn more Setting up fleets -Multi-location fleets +Update fleet locations Amazon GameLift service locations for managed hosting. # Arguments - `fleet_id`: A unique identifier for the fleet to add locations to. You can use either the @@ -584,16 +577,14 @@ Multi-location fleets location, in the form of an Amazon Web Services Region code such as us-west-2. """ -function create_fleet_locations( +create_fleet_locations( FleetId, Locations; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "CreateFleetLocations", + Dict{String,Any}("FleetId" => FleetId, "Locations" => Locations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreateFleetLocations", - Dict{String,Any}("FleetId" => FleetId, "Locations" => Locations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fleet_locations( FleetId, Locations, @@ -717,7 +708,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Scaling group will always use the property value that is set with this request, even if the Auto Scaling group is updated directly. """ -function create_game_server_group( +create_game_server_group( GameServerGroupName, InstanceDefinitions, LaunchTemplate, @@ -725,21 +716,19 @@ function create_game_server_group( MinSize, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = gamelift( + "CreateGameServerGroup", + Dict{String,Any}( + "GameServerGroupName" => GameServerGroupName, + "InstanceDefinitions" => InstanceDefinitions, + "LaunchTemplate" => LaunchTemplate, + "MaxSize" => MaxSize, + "MinSize" => MinSize, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreateGameServerGroup", - Dict{String,Any}( - "GameServerGroupName" => GameServerGroupName, - "InstanceDefinitions" => InstanceDefinitions, - "LaunchTemplate" => LaunchTemplate, - "MaxSize" => MaxSize, - "MinSize" => MinSize, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_game_server_group( GameServerGroupName, InstanceDefinitions, @@ -842,16 +831,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: A descriptive label that is associated with a game session. Session names do not need to be unique. """ -function create_game_session( +create_game_session( MaximumPlayerSessionCount; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "CreateGameSession", + Dict{String,Any}("MaximumPlayerSessionCount" => MaximumPlayerSessionCount); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreateGameSession", - Dict{String,Any}("MaximumPlayerSessionCount" => MaximumPlayerSessionCount); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_game_session( MaximumPlayerSessionCount, params::AbstractDict{String}; @@ -932,14 +919,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request remains in the queue. When a request exceeds this time, the game session placement changes to a TIMED_OUT status. By default, this property is set to 600. """ -function create_game_session_queue(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +create_game_session_queue(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "CreateGameSessionQueue", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_game_session_queue( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -962,19 +948,18 @@ Creates a custom location for use in an Anywhere fleet. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"Tags"`: A list of labels to assign to the new matchmaking configuration resource. Tags - are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for - resource management, access management and cost allocation. For more information, see - Tagging Amazon Web Services Resources in the Amazon Web Services General Rareference. +- `"Tags"`: A list of labels to assign to the new resource. Tags are developer-defined + key-value pairs. Tagging Amazon Web Services resources are useful for resource management, + access management, and cost allocation. For more information, see Tagging Amazon Web + Services Resources in the Amazon Web Services General Rareference. """ -function create_location(LocationName; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +create_location(LocationName; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "CreateLocation", Dict{String,Any}("LocationName" => LocationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_location( LocationName, params::AbstractDict{String}; @@ -1069,25 +1054,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference. """ -function create_matchmaking_configuration( +create_matchmaking_configuration( AcceptanceRequired, Name, RequestTimeoutSeconds, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config(), +) = gamelift( + "CreateMatchmakingConfiguration", + Dict{String,Any}( + "AcceptanceRequired" => AcceptanceRequired, + "Name" => Name, + "RequestTimeoutSeconds" => RequestTimeoutSeconds, + "RuleSetName" => RuleSetName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreateMatchmakingConfiguration", - Dict{String,Any}( - "AcceptanceRequired" => AcceptanceRequired, - "Name" => Name, - "RequestTimeoutSeconds" => RequestTimeoutSeconds, - "RuleSetName" => RuleSetName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_matchmaking_configuration( AcceptanceRequired, Name, @@ -1142,16 +1125,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference. """ -function create_matchmaking_rule_set( +create_matchmaking_rule_set( Name, RuleSetBody; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "CreateMatchmakingRuleSet", + Dict{String,Any}("Name" => Name, "RuleSetBody" => RuleSetBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreateMatchmakingRuleSet", - Dict{String,Any}("Name" => Name, "RuleSetBody" => RuleSetBody); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_matchmaking_rule_set( Name, RuleSetBody, @@ -1196,16 +1177,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PlayerData"`: Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. """ -function create_player_session( +create_player_session( GameSessionId, PlayerId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "CreatePlayerSession", + Dict{String,Any}("GameSessionId" => GameSessionId, "PlayerId" => PlayerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreatePlayerSession", - Dict{String,Any}("GameSessionId" => GameSessionId, "PlayerId" => PlayerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_player_session( GameSessionId, PlayerId, @@ -1253,16 +1232,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data, so it can be formatted as needed for use in the game. Any player data strings for player IDs that are not included in the PlayerIds parameter are ignored. """ -function create_player_sessions( +create_player_sessions( GameSessionId, PlayerIds; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "CreatePlayerSessions", + Dict{String,Any}("GameSessionId" => GameSessionId, "PlayerIds" => PlayerIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreatePlayerSessions", - Dict{String,Any}("GameSessionId" => GameSessionId, "PlayerIds" => PlayerIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_player_sessions( GameSessionId, PlayerIds, @@ -1332,9 +1309,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys file name. It must be prepended with the string \"fileb://\" to indicate that the file data is a binary object. For example: --zip-file fileb://myRealtimeScript.zip. """ -function create_script(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift("CreateScript"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_script(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("CreateScript"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_script( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1379,18 +1355,16 @@ create or delete the peering connection while the authorization is valid. Rela peering in VPC Peering with Amazon GameLift Fleets. """ -function create_vpc_peering_authorization( +create_vpc_peering_authorization( GameLiftAwsAccountId, PeerVpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "CreateVpcPeeringAuthorization", + Dict{String,Any}( + "GameLiftAwsAccountId" => GameLiftAwsAccountId, "PeerVpcId" => PeerVpcId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreateVpcPeeringAuthorization", - Dict{String,Any}( - "GameLiftAwsAccountId" => GameLiftAwsAccountId, "PeerVpcId" => PeerVpcId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_peering_authorization( GameLiftAwsAccountId, PeerVpcId, @@ -1448,23 +1422,21 @@ success or failure using DescribeFleetEvents . Related actions All APIs by t peering in VPC Peering with Amazon GameLift Fleets. """ -function create_vpc_peering_connection( +create_vpc_peering_connection( FleetId, PeerVpcAwsAccountId, PeerVpcId; aws_config::AbstractAWSConfig=current_aws_config(), +) = gamelift( + "CreateVpcPeeringConnection", + Dict{String,Any}( + "FleetId" => FleetId, + "PeerVpcAwsAccountId" => PeerVpcAwsAccountId, + "PeerVpcId" => PeerVpcId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "CreateVpcPeeringConnection", - Dict{String,Any}( - "FleetId" => FleetId, - "PeerVpcAwsAccountId" => PeerVpcAwsAccountId, - "PeerVpcId" => PeerVpcId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_peering_connection( FleetId, PeerVpcAwsAccountId, @@ -1503,14 +1475,12 @@ specify the alias ID to be deleted. Related actions All APIs by task the alias ID or ARN value. """ -function delete_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DeleteAlias", - Dict{String,Any}("AliasId" => AliasId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DeleteAlias", + Dict{String,Any}("AliasId" => AliasId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_alias( AliasId, params::AbstractDict{String}; @@ -1538,14 +1508,12 @@ specify the build ID. Learn more Upload a Custom Server Build All APIs by or ARN value. """ -function delete_build(BuildId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DeleteBuild", - Dict{String,Any}("BuildId" => BuildId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_build(BuildId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DeleteBuild", + Dict{String,Any}("BuildId" => BuildId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_build( BuildId, params::AbstractDict{String}; @@ -1574,16 +1542,14 @@ definition either the Name or ARN value. """ -function delete_container_group_definition( +delete_container_group_definition( Name; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DeleteContainerGroupDefinition", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DeleteContainerGroupDefinition", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_container_group_definition( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1613,14 +1579,12 @@ up Amazon GameLift Fleets ID or ARN value. """ -function delete_fleet(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DeleteFleet", - Dict{String,Any}("FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fleet(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DeleteFleet", + Dict{String,Any}("FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fleet( FleetId, params::AbstractDict{String}; @@ -1653,16 +1617,14 @@ GameLift fleets Amazon Web Services Region code, such as us-west-2. """ -function delete_fleet_locations( +delete_fleet_locations( FleetId, Locations; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DeleteFleetLocations", + Dict{String,Any}("FleetId" => FleetId, "Locations" => Locations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DeleteFleetLocations", - Dict{String,Any}("FleetId" => FleetId, "Locations" => Locations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_fleet_locations( FleetId, Locations, @@ -1715,16 +1677,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys utilization status, and the Amazon EC2 Auto Scaling group. RETAIN – Does a safe delete of the game server group but retains the Amazon EC2 Auto Scaling group as is. """ -function delete_game_server_group( +delete_game_server_group( GameServerGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DeleteGameServerGroup", + Dict{String,Any}("GameServerGroupName" => GameServerGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DeleteGameServerGroup", - Dict{String,Any}("GameServerGroupName" => GameServerGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_game_server_group( GameServerGroupName, params::AbstractDict{String}; @@ -1757,14 +1717,13 @@ specify the queue name. be unique within each Region. You can use either the queue ID or ARN value. """ -function delete_game_session_queue(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +delete_game_session_queue(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DeleteGameSessionQueue", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_game_session_queue( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1788,14 +1747,13 @@ information, see DeregisterCompute. - `location_name`: The location name of the custom location to be deleted. """ -function delete_location(LocationName; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +delete_location(LocationName; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DeleteLocation", Dict{String,Any}("LocationName" => LocationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_location( LocationName, params::AbstractDict{String}; @@ -1824,16 +1782,13 @@ any active matchmaking tickets. configuration name or ARN value. """ -function delete_matchmaking_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +delete_matchmaking_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DeleteMatchmakingConfiguration", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_matchmaking_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1859,16 +1814,13 @@ configuration. Learn more Build a rule set either the rule set name or ARN value. """ -function delete_matchmaking_rule_set( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +delete_matchmaking_rule_set(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DeleteMatchmakingRuleSet", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_matchmaking_rule_set( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1896,16 +1848,13 @@ policies, use StopFleetActions. This operation suspends all policies for the fle names do not need to be unique. """ -function delete_scaling_policy( - FleetId, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +delete_scaling_policy(FleetId, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DeleteScalingPolicy", Dict{String,Any}("FleetId" => FleetId, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_scaling_policy( FleetId, Name, @@ -1941,14 +1890,12 @@ Realtime Servers Related actions All APIs by task the script ID or ARN value. """ -function delete_script(ScriptId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DeleteScript", - Dict{String,Any}("ScriptId" => ScriptId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_script(ScriptId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DeleteScript", + Dict{String,Any}("ScriptId" => ScriptId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_script( ScriptId, params::AbstractDict{String}; @@ -1982,18 +1929,16 @@ APIs by task peering in VPC Peering with Amazon GameLift Fleets. """ -function delete_vpc_peering_authorization( +delete_vpc_peering_authorization( GameLiftAwsAccountId, PeerVpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DeleteVpcPeeringAuthorization", + Dict{String,Any}( + "GameLiftAwsAccountId" => GameLiftAwsAccountId, "PeerVpcId" => PeerVpcId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DeleteVpcPeeringAuthorization", - Dict{String,Any}( - "GameLiftAwsAccountId" => GameLiftAwsAccountId, "PeerVpcId" => PeerVpcId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpc_peering_authorization( GameLiftAwsAccountId, PeerVpcId, @@ -2034,18 +1979,16 @@ task - `vpc_peering_connection_id`: A unique identifier for a VPC peering connection. """ -function delete_vpc_peering_connection( +delete_vpc_peering_connection( FleetId, VpcPeeringConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DeleteVpcPeeringConnection", + Dict{String,Any}( + "FleetId" => FleetId, "VpcPeeringConnectionId" => VpcPeeringConnectionId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DeleteVpcPeeringConnection", - Dict{String,Any}( - "FleetId" => FleetId, "VpcPeeringConnectionId" => VpcPeeringConnectionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpc_peering_connection( FleetId, VpcPeeringConnectionId, @@ -2090,16 +2033,14 @@ deregistered and specify the compute name and the fleet ID. registered to. """ -function deregister_compute( +deregister_compute( ComputeName, FleetId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DeregisterCompute", + Dict{String,Any}("ComputeName" => ComputeName, "FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DeregisterCompute", - Dict{String,Any}("ComputeName" => ComputeName, "FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_compute( ComputeName, FleetId, @@ -2137,18 +2078,16 @@ timestamp and reason. Learn more Amazon GameLift FleetIQ Guide - `game_server_id`: A custom string that uniquely identifies the game server to deregister. """ -function deregister_game_server( +deregister_game_server( GameServerGroupName, GameServerId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DeregisterGameServer", + Dict{String,Any}( + "GameServerGroupName" => GameServerGroupName, "GameServerId" => GameServerId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DeregisterGameServer", - Dict{String,Any}( - "GameServerGroupName" => GameServerGroupName, "GameServerId" => GameServerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_game_server( GameServerGroupName, GameServerId, @@ -2186,14 +2125,12 @@ APIs by task use either the alias ID or ARN value. """ -function describe_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribeAlias", - Dict{String,Any}("AliasId" => AliasId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DescribeAlias", + Dict{String,Any}("AliasId" => AliasId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_alias( AliasId, params::AbstractDict{String}; @@ -2220,14 +2157,12 @@ Upload a Custom Server Build All APIs by task either the build ID or ARN value. """ -function describe_build(BuildId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribeBuild", - Dict{String,Any}("BuildId" => BuildId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_build(BuildId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DescribeBuild", + Dict{String,Any}("BuildId" => BuildId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_build( BuildId, params::AbstractDict{String}; @@ -2265,16 +2200,13 @@ it's running on. The compute name is the container name. either the fleet ID or ARN value. """ -function describe_compute( - ComputeName, FleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +describe_compute(ComputeName, FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeCompute", Dict{String,Any}("ComputeName" => ComputeName, "FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_compute( ComputeName, FleetId, @@ -2310,16 +2242,14 @@ container group definition. Learn more Manage a container group definition for. You can use either the Name or ARN value. """ -function describe_container_group_definition( +describe_container_group_definition( Name; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeContainerGroupDefinition", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeContainerGroupDefinition", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_container_group_definition( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2374,11 +2304,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Location"`: The name of a remote location to request instance limits for, in the form of an Amazon Web Services Region code such as us-west-2. """ -function describe_ec2_instance_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +describe_ec2_instance_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeEC2InstanceLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_ec2_instance_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2420,11 +2349,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys beginning of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs. """ -function describe_fleet_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribeFleetAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_fleet_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DescribeFleetAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_fleet_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2469,11 +2396,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys beginning of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs. """ -function describe_fleet_capacity(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribeFleetCapacity"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_fleet_capacity(; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DescribeFleetCapacity"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_fleet_capacity( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2516,14 +2441,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified end time. Format is a number expressed in Unix time as milliseconds (ex: \"1469498468.057\"). """ -function describe_fleet_events(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +describe_fleet_events(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeFleetEvents", Dict{String,Any}("FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_fleet_events( FleetId, params::AbstractDict{String}; @@ -2551,6 +2475,7 @@ set of sequential pages. If successful, a LocationAttributes object is returned requested location. If the fleet does not have a requested location, no information is returned. This operation does not return the home Region. To get information on a fleet's home Region, call DescribeFleetAttributes. Learn more Setting up Amazon GameLift fleets + Amazon GameLift service locations for managed hosting # Arguments - `fleet_id`: A unique identifier for the fleet to retrieve remote locations for. You can @@ -2566,16 +2491,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value. """ -function describe_fleet_location_attributes( +describe_fleet_location_attributes( FleetId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeFleetLocationAttributes", + Dict{String,Any}("FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeFleetLocationAttributes", - Dict{String,Any}("FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fleet_location_attributes( FleetId, params::AbstractDict{String}; @@ -2600,7 +2523,8 @@ container groups. Use this operation to retrieve capacity information for a flee location or home Region (you can also retrieve home Region capacity by calling DescribeFleetCapacity). To retrieve capacity data, identify a fleet and location. If successful, a FleetCapacity object is returned for the requested fleet location. Learn -more Setting up Amazon GameLift fleets GameLift metrics for fleets +more Setting up Amazon GameLift fleets Amazon GameLift service locations for managed +hosting GameLift metrics for fleets # Arguments - `fleet_id`: A unique identifier for the fleet to request location capacity for. You can @@ -2609,16 +2533,14 @@ more Setting up Amazon GameLift fleets GameLift metrics for fleets in the form of an Amazon Web Services Region code, such as us-west-2. """ -function describe_fleet_location_capacity( +describe_fleet_location_capacity( FleetId, Location; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeFleetLocationCapacity", + Dict{String,Any}("FleetId" => FleetId, "Location" => Location); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeFleetLocationCapacity", - Dict{String,Any}("FleetId" => FleetId, "Location" => Location); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fleet_location_capacity( FleetId, Location, @@ -2648,8 +2570,8 @@ current game hosting activity at the requested location. Use this operation to r utilization information for a fleet's remote location or home Region (you can also retrieve home Region utilization by calling DescribeFleetUtilization). To retrieve utilization data, identify a fleet and location. If successful, a FleetUtilization object is returned for -the requested fleet location. Learn more Setting up Amazon GameLift fleets GameLift -metrics for fleets +the requested fleet location. Learn more Setting up Amazon GameLift fleets Amazon +GameLift service locations for managed hosting GameLift metrics for fleets # Arguments - `fleet_id`: A unique identifier for the fleet to request location utilization for. You @@ -2658,16 +2580,14 @@ metrics for fleets location in the form of an Amazon Web Services Region code, such as us-west-2. """ -function describe_fleet_location_utilization( +describe_fleet_location_utilization( FleetId, Location; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeFleetLocationUtilization", + Dict{String,Any}("FleetId" => FleetId, "Location" => Location); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeFleetLocationUtilization", - Dict{String,Any}("FleetId" => FleetId, "Location" => Location); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fleet_location_utilization( FleetId, Location, @@ -2714,16 +2634,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Location"`: A remote location to check for status of port setting updates. Use the Amazon Web Services Region code format, such as us-west-2. """ -function describe_fleet_port_settings( - FleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +describe_fleet_port_settings(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeFleetPortSettings", Dict{String,Any}("FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_fleet_port_settings( FleetId, params::AbstractDict{String}; @@ -2769,11 +2686,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys beginning of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs. """ -function describe_fleet_utilization(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribeFleetUtilization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_fleet_utilization(; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DescribeFleetUtilization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_fleet_utilization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2802,18 +2717,16 @@ game server object is returned. Learn more Amazon GameLift FleetIQ Guide be retrieved. """ -function describe_game_server( +describe_game_server( GameServerGroupName, GameServerId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeGameServer", + Dict{String,Any}( + "GameServerGroupName" => GameServerGroupName, "GameServerId" => GameServerId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeGameServer", - Dict{String,Any}( - "GameServerGroupName" => GameServerGroupName, "GameServerId" => GameServerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_game_server( GameServerGroupName, GameServerId, @@ -2854,16 +2767,14 @@ Learn more Amazon GameLift FleetIQ Guide name or ARN value. """ -function describe_game_server_group( +describe_game_server_group( GameServerGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeGameServerGroup", + Dict{String,Any}("GameServerGroupName" => GameServerGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeGameServerGroup", - Dict{String,Any}("GameServerGroupName" => GameServerGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_game_server_group( GameServerGroupName, params::AbstractDict{String}; @@ -2914,16 +2825,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value. """ -function describe_game_server_instances( +describe_game_server_instances( GameServerGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeGameServerInstances", + Dict{String,Any}("GameServerGroupName" => GameServerGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeGameServerInstances", - Dict{String,Any}("GameServerGroupName" => GameServerGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_game_server_instances( GameServerGroupName, params::AbstractDict{String}; @@ -2981,11 +2890,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys statuses include ACTIVE, TERMINATED, ACTIVATING and TERMINATING (the last two are transitory). """ -function describe_game_session_details(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +describe_game_session_details(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeGameSessionDetails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_game_session_details( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3013,16 +2921,14 @@ games in development with low game session usage. - `placement_id`: A unique identifier for a game session placement to retrieve. """ -function describe_game_session_placement( +describe_game_session_placement( PlacementId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeGameSessionPlacement", + Dict{String,Any}("PlacementId" => PlacementId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeGameSessionPlacement", - Dict{String,Any}("PlacementId" => PlacementId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_game_session_placement( PlacementId, params::AbstractDict{String}; @@ -3057,11 +2963,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value. """ -function describe_game_session_queues(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +describe_game_session_queues(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeGameSessionQueues"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_game_session_queues( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3115,11 +3020,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys following states: ACTIVE, TERMINATED, ACTIVATING, and TERMINATING. The last two are transitory and used for only very brief periods of time. """ -function describe_game_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribeGameSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_game_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("DescribeGameSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_game_sessions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3165,14 +3067,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value. """ -function describe_instances(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribeInstances", - Dict{String,Any}("FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_instances(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DescribeInstances", + Dict{String,Any}("FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_instances( FleetId, params::AbstractDict{String}; @@ -3206,14 +3106,13 @@ notification values. """ -function describe_matchmaking(TicketIds; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +describe_matchmaking(TicketIds; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeMatchmaking", Dict{String,Any}("TicketIds" => TicketIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_matchmaking( TicketIds, params::AbstractDict{String}; @@ -3255,15 +3154,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys rule set name or ARN value. Use this parameter to retrieve all matchmaking configurations that use this rule set. """ -function describe_matchmaking_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +describe_matchmaking_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeMatchmakingConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_matchmaking_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3296,15 +3192,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value. """ -function describe_matchmaking_rule_sets(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +describe_matchmaking_rule_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeMatchmakingRuleSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_matchmaking_rule_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3354,11 +3247,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys received, but the player did not connect and/or was not validated within the timeout limit (60 seconds). """ -function describe_player_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribePlayerSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_player_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DescribePlayerSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_player_sessions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3389,16 +3280,14 @@ Setting up Amazon GameLift fleets Running multiple processes on a fleet can use either the fleet ID or ARN value. """ -function describe_runtime_configuration( +describe_runtime_configuration( FleetId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "DescribeRuntimeConfiguration", + Dict{String,Any}("FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "DescribeRuntimeConfiguration", - Dict{String,Any}("FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_runtime_configuration( FleetId, params::AbstractDict{String}; @@ -3444,16 +3333,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DELETED -- The scaling policy has been deleted. ERROR -- An error occurred in creating the policy. It should be removed and recreated. """ -function describe_scaling_policies( - FleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +describe_scaling_policies(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeScalingPolicies", Dict{String,Any}("FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_scaling_policies( FleetId, params::AbstractDict{String}; @@ -3480,14 +3366,12 @@ Amazon GameLift Realtime Servers Related actions All APIs by task can use either the script ID or ARN value. """ -function describe_script(ScriptId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "DescribeScript", - Dict{String,Any}("ScriptId" => ScriptId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_script(ScriptId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "DescribeScript", + Dict{String,Any}("ScriptId" => ScriptId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_script( ScriptId, params::AbstractDict{String}; @@ -3513,15 +3397,12 @@ This includes those initiated and received by this account. Related actions task """ -function describe_vpc_peering_authorizations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +describe_vpc_peering_authorizations(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeVpcPeeringAuthorizations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_vpc_peering_authorizations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3550,15 +3431,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FleetId"`: A unique identifier for the fleet. You can use either the fleet ID or ARN value. """ -function describe_vpc_peering_connections(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +describe_vpc_peering_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "DescribeVpcPeeringConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_vpc_peering_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3586,7 +3464,7 @@ EC2 Systems Manager User Guide. Container fleets With a container fleet (where type is CONTAINER), use these credentials and the target value with SSM to connect to the fleet instance where the container is running. After you're connected to the instance, use Docker commands to interact with the container. Learn more Remotely connect to fleet -instances Debug fleet issues Remotely connect to a container fleet +instances Debug fleet issues # Arguments - `compute_name`: A unique identifier for the compute resource that you want to connect to. @@ -3597,16 +3475,14 @@ instances Debug fleet issues Remotely connect to a container fleet want to connect to. You can use either the fleet ID or ARN value. """ -function get_compute_access( +get_compute_access( ComputeName, FleetId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "GetComputeAccess", + Dict{String,Any}("ComputeName" => ComputeName, "FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "GetComputeAccess", - Dict{String,Any}("ComputeName" => ComputeName, "FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_compute_access( ComputeName, FleetId, @@ -3653,16 +3529,14 @@ Server SDK reference guides (for version 5.x) - `fleet_id`: A unique identifier for the fleet that the compute is registered to. """ -function get_compute_auth_token( +get_compute_auth_token( ComputeName, FleetId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "GetComputeAuthToken", + Dict{String,Any}("ComputeName" => ComputeName, "FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "GetComputeAuthToken", - Dict{String,Any}("ComputeName" => ComputeName, "FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_compute_auth_token( ComputeName, FleetId, @@ -3697,16 +3571,14 @@ files that exceed this limit are not saved. All APIs by task - `game_session_id`: A unique identifier for the game session to get logs for. """ -function get_game_session_log_url( +get_game_session_log_url( GameSessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "GetGameSessionLogUrl", + Dict{String,Any}("GameSessionId" => GameSessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "GetGameSessionLogUrl", - Dict{String,Any}("GameSessionId" => GameSessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_game_session_log_url( GameSessionId, params::AbstractDict{String}; @@ -3749,16 +3621,14 @@ to fleet instances Debug fleet issues Related actions All APIs by task instance in any status. """ -function get_instance_access( +get_instance_access( FleetId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "GetInstanceAccess", + Dict{String,Any}("FleetId" => FleetId, "InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "GetInstanceAccess", - Dict{String,Any}("FleetId" => FleetId, "InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_access( FleetId, InstanceId, @@ -3805,9 +3675,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded. """ -function list_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift("ListAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("ListAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_aliases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3841,9 +3710,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys create new fleets for this build. FAILED -- The game build upload failed. You cannot create new fleets for this build. """ -function list_builds(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift("ListBuilds"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_builds(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("ListBuilds"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_builds( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3884,14 +3752,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value. """ -function list_compute(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "ListCompute", - Dict{String,Any}("FleetId" => FleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_compute(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "ListCompute", + Dict{String,Any}("FleetId" => FleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_compute( FleetId, params::AbstractDict{String}; @@ -3928,15 +3794,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys REPLICA -- Replica container groups run your game server application and supporting software. Replica groups might be deployed multiple times per fleet instance. """ -function list_container_group_definitions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +list_container_group_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "ListContainerGroupDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_container_group_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3982,9 +3845,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter to return only fleets using a specified script. Use either the script ID or ARN value. """ -function list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift("ListFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("ListFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4005,11 +3867,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_game_server_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "ListGameServerGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_game_server_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("ListGameServerGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_game_server_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4047,16 +3906,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve newest game servers first. If this parameter is left empty, game servers are returned in no particular order. """ -function list_game_servers( - GameServerGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +list_game_servers(GameServerGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "ListGameServers", Dict{String,Any}("GameServerGroupName" => GameServerGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_game_servers( GameServerGroupName, params::AbstractDict{String}; @@ -4091,9 +3947,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value. """ -function list_locations(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift("ListLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_locations(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("ListLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_locations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4118,9 +3973,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, don't specify a value. """ -function list_scripts(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift("ListScripts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_scripts(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("ListScripts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_scripts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4147,16 +4001,13 @@ Amazon Web Services Tagging Strategies Related actions All APIs by task Describe operation for the resource type. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -4267,16 +4118,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys policy. - `"Threshold"`: Metric value used to trigger a scaling event. """ -function put_scaling_policy( +put_scaling_policy( FleetId, MetricName, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "PutScalingPolicy", + Dict{String,Any}("FleetId" => FleetId, "MetricName" => MetricName, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "PutScalingPolicy", - Dict{String,Any}("FleetId" => FleetId, "MetricName" => MetricName, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_scaling_policy( FleetId, MetricName, @@ -4333,20 +4182,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DnsName"`: The DNS name of the compute resource. Amazon GameLift requires either a DNS name or IP address. - `"IpAddress"`: The IP address of the compute resource. Amazon GameLift requires either a - DNS name or IP address. + DNS name or IP address. When registering an Anywhere fleet, an IP address is required. - `"Location"`: The name of a custom location to associate with the compute resource being - registered. + registered. This parameter is required when registering a compute for an Anywhere fleet. """ -function register_compute( - ComputeName, FleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +register_compute(ComputeName, FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "RegisterCompute", Dict{String,Any}("ComputeName" => ComputeName, "FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function register_compute( ComputeName, FleetId, @@ -4402,23 +4248,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. This data is passed to a game client or service when it requests information on game servers. """ -function register_game_server( +register_game_server( GameServerGroupName, GameServerId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = gamelift( + "RegisterGameServer", + Dict{String,Any}( + "GameServerGroupName" => GameServerGroupName, + "GameServerId" => GameServerId, + "InstanceId" => InstanceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "RegisterGameServer", - Dict{String,Any}( - "GameServerGroupName" => GameServerGroupName, - "GameServerId" => GameServerId, - "InstanceId" => InstanceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_game_server( GameServerGroupName, GameServerId, @@ -4460,16 +4304,13 @@ in S3 All APIs by task the build ID or ARN value. """ -function request_upload_credentials( - BuildId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +request_upload_credentials(BuildId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "RequestUploadCredentials", Dict{String,Any}("BuildId" => BuildId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function request_upload_credentials( BuildId, params::AbstractDict{String}; @@ -4497,14 +4338,12 @@ TerminalRoutingStrategyException. Related actions All APIs by task You can use either the alias ID or ARN value. """ -function resolve_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "ResolveAlias", - Dict{String,Any}("AliasId" => AliasId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +resolve_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "ResolveAlias", + Dict{String,Any}("AliasId" => AliasId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function resolve_alias( AliasId, params::AbstractDict{String}; @@ -4539,18 +4378,16 @@ Guide - `resume_actions`: The activity to resume for this game server group. """ -function resume_game_server_group( +resume_game_server_group( GameServerGroupName, ResumeActions; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "ResumeGameServerGroup", + Dict{String,Any}( + "GameServerGroupName" => GameServerGroupName, "ResumeActions" => ResumeActions + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "ResumeGameServerGroup", - Dict{String,Any}( - "GameServerGroupName" => GameServerGroupName, "ResumeActions" => ResumeActions - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function resume_game_server_group( GameServerGroupName, ResumeActions, @@ -4662,11 +4499,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys active sessions first: \"SortExpression\": \"creationTimeMillis ASC\". Results with a null value for the sort operand are returned at the end of the list. """ -function search_game_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "SearchGameSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +search_game_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift("SearchGameSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function search_game_sessions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4700,16 +4534,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Location"`: The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2. """ -function start_fleet_actions( - Actions, FleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +start_fleet_actions(Actions, FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "StartFleetActions", Dict{String,Any}("Actions" => Actions, "FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_fleet_actions( Actions, FleetId, @@ -4782,23 +4613,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This information is used to try to place the new game session where it can offer the best possible gameplay experience for the players. """ -function start_game_session_placement( +start_game_session_placement( GameSessionQueueName, MaximumPlayerSessionCount, PlacementId; aws_config::AbstractAWSConfig=current_aws_config(), +) = gamelift( + "StartGameSessionPlacement", + Dict{String,Any}( + "GameSessionQueueName" => GameSessionQueueName, + "MaximumPlayerSessionCount" => MaximumPlayerSessionCount, + "PlacementId" => PlacementId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "StartGameSessionPlacement", - Dict{String,Any}( - "GameSessionQueueName" => GameSessionQueueName, - "MaximumPlayerSessionCount" => MaximumPlayerSessionCount, - "PlacementId" => PlacementId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_game_session_placement( GameSessionQueueName, MaximumPlayerSessionCount, @@ -4875,16 +4704,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys here, Amazon GameLift will generate one in the form of a UUID. Use this identifier to track the match backfill ticket status and retrieve match results. """ -function start_match_backfill( +start_match_backfill( ConfigurationName, Players; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "StartMatchBackfill", + Dict{String,Any}("ConfigurationName" => ConfigurationName, "Players" => Players); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "StartMatchBackfill", - Dict{String,Any}("ConfigurationName" => ConfigurationName, "Players" => Players); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_match_backfill( ConfigurationName, Players, @@ -4942,16 +4769,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys here, Amazon GameLift will generate one in the form of a UUID. Use this identifier to track the matchmaking ticket status and retrieve match results. """ -function start_matchmaking( +start_matchmaking( ConfigurationName, Players; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "StartMatchmaking", + Dict{String,Any}("ConfigurationName" => ConfigurationName, "Players" => Players); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "StartMatchmaking", - Dict{String,Any}("ConfigurationName" => ConfigurationName, "Players" => Players); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_matchmaking( ConfigurationName, Players, @@ -5001,16 +4826,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Location"`: The fleet location to stop fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2. """ -function stop_fleet_actions( - Actions, FleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +stop_fleet_actions(Actions, FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "StopFleetActions", Dict{String,Any}("Actions" => Actions, "FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_fleet_actions( Actions, FleetId, @@ -5040,16 +4862,14 @@ the placement ID values. If successful, the placement is moved to CANCELLED stat - `placement_id`: A unique identifier for a game session placement to stop. """ -function stop_game_session_placement( +stop_game_session_placement( PlacementId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "StopGameSessionPlacement", + Dict{String,Any}("PlacementId" => PlacementId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "StopGameSessionPlacement", - Dict{String,Any}("PlacementId" => PlacementId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_game_session_placement( PlacementId, params::AbstractDict{String}; @@ -5083,14 +4903,12 @@ to a game client - `ticket_id`: A unique identifier for a matchmaking ticket. """ -function stop_matchmaking(TicketId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "StopMatchmaking", - Dict{String,Any}("TicketId" => TicketId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_matchmaking(TicketId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "StopMatchmaking", + Dict{String,Any}("TicketId" => TicketId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_matchmaking( TicketId, params::AbstractDict{String}; @@ -5130,18 +4948,16 @@ SuspendedActions. Learn more Amazon GameLift FleetIQ Guide - `suspend_actions`: The activity to suspend for this game server group. """ -function suspend_game_server_group( +suspend_game_server_group( GameServerGroupName, SuspendActions; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "SuspendGameServerGroup", + Dict{String,Any}( + "GameServerGroupName" => GameServerGroupName, "SuspendActions" => SuspendActions + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "SuspendGameServerGroup", - Dict{String,Any}( - "GameServerGroupName" => GameServerGroupName, "SuspendActions" => SuspendActions - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function suspend_game_server_group( GameServerGroupName, SuspendActions, @@ -5189,14 +5005,13 @@ All APIs by task lower than stated. See Tagging Amazon Web Services Resources for tagging limits. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -5239,16 +5054,13 @@ Tagging Strategies Related actions All APIs by task resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -5290,14 +5102,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoutingStrategy"`: The routing configuration, including routing type and fleet target, for the alias. """ -function update_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "UpdateAlias", - Dict{String,Any}("AliasId" => AliasId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "UpdateAlias", + Dict{String,Any}("AliasId" => AliasId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_alias( AliasId, params::AbstractDict{String}; @@ -5331,14 +5141,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Version"`: Version information associated with a build or script. Version strings don't need to be unique. """ -function update_build(BuildId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "UpdateBuild", - Dict{String,Any}("BuildId" => BuildId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_build(BuildId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "UpdateBuild", + Dict{String,Any}("BuildId" => BuildId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_build( BuildId, params::AbstractDict{String}; @@ -5384,16 +5192,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceCreationLimitPolicy"`: Policy settings that limit the number of game sessions an individual player can create over a span of time. """ -function update_fleet_attributes( - FleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +update_fleet_attributes(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "UpdateFleetAttributes", Dict{String,Any}("FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_fleet_attributes( FleetId, params::AbstractDict{String}; @@ -5453,14 +5258,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MinSize"`: The minimum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 0. """ -function update_fleet_capacity(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +update_fleet_capacity(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "UpdateFleetCapacity", Dict{String,Any}("FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_fleet_capacity( FleetId, params::AbstractDict{String}; @@ -5500,16 +5304,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InboundPermissionRevocations"`: A collection of port settings to be removed from the fleet resource. """ -function update_fleet_port_settings( - FleetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +update_fleet_port_settings(FleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "UpdateFleetPortSettings", Dict{String,Any}("FleetId" => FleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_fleet_port_settings( FleetId, params::AbstractDict{String}; @@ -5560,18 +5361,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys gameplay. You can update a game server status from AVAILABLE to UTILIZED, but you can't change a the status from UTILIZED to AVAILABLE. """ -function update_game_server( +update_game_server( GameServerGroupName, GameServerId; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "UpdateGameServer", + Dict{String,Any}( + "GameServerGroupName" => GameServerGroupName, "GameServerId" => GameServerId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "UpdateGameServer", - Dict{String,Any}( - "GameServerGroupName" => GameServerGroupName, "GameServerId" => GameServerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_game_server( GameServerGroupName, GameServerId, @@ -5646,16 +5445,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleArn"`: The Amazon Resource Name (ARN) for an IAM role that allows Amazon GameLift to access your Amazon EC2 Auto Scaling groups. """ -function update_game_server_group( +update_game_server_group( GameServerGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "UpdateGameServerGroup", + Dict{String,Any}("GameServerGroupName" => GameServerGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "UpdateGameServerGroup", - Dict{String,Any}("GameServerGroupName" => GameServerGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_game_server_group( GameServerGroupName, params::AbstractDict{String}; @@ -5704,16 +5501,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event. """ -function update_game_session( - GameSessionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +update_game_session(GameSessionId; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "UpdateGameSession", Dict{String,Any}("GameSessionId" => GameSessionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_game_session( GameSessionId, params::AbstractDict{String}; @@ -5771,14 +5565,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request remains in the queue. When a request exceeds this time, the game session placement changes to a TIMED_OUT status. By default, this property is set to 600. """ -function update_game_session_queue(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( +update_game_session_queue(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "UpdateGameSessionQueue", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_game_session_queue( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5854,16 +5647,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration. You can use either the rule set name or ARN value. A matchmaking configuration can only use rule sets that are defined in the same Region. """ -function update_matchmaking_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return gamelift( +update_matchmaking_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + gamelift( "UpdateMatchmakingConfiguration", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_matchmaking_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5902,18 +5692,14 @@ Setting up Amazon GameLift fleets and the number of processes to run concurrently. """ -function update_runtime_configuration( +update_runtime_configuration( FleetId, RuntimeConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "UpdateRuntimeConfiguration", + Dict{String,Any}("FleetId" => FleetId, "RuntimeConfiguration" => RuntimeConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "UpdateRuntimeConfiguration", - Dict{String,Any}( - "FleetId" => FleetId, "RuntimeConfiguration" => RuntimeConfiguration - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_runtime_configuration( FleetId, RuntimeConfiguration, @@ -5973,14 +5759,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys file name. It must be prepended with the string \"fileb://\" to indicate that the file data is a binary object. For example: --zip-file fileb://myRealtimeScript.zip. """ -function update_script(ScriptId; aws_config::AbstractAWSConfig=current_aws_config()) - return gamelift( - "UpdateScript", - Dict{String,Any}("ScriptId" => ScriptId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_script(ScriptId; aws_config::AbstractAWSConfig=current_aws_config()) = gamelift( + "UpdateScript", + Dict{String,Any}("ScriptId" => ScriptId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_script( ScriptId, params::AbstractDict{String}; @@ -6010,16 +5794,14 @@ rule set string. """ -function validate_matchmaking_rule_set( +validate_matchmaking_rule_set( RuleSetBody; aws_config::AbstractAWSConfig=current_aws_config() +) = gamelift( + "ValidateMatchmakingRuleSet", + Dict{String,Any}("RuleSetBody" => RuleSetBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return gamelift( - "ValidateMatchmakingRuleSet", - Dict{String,Any}("RuleSetBody" => RuleSetBody); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_matchmaking_rule_set( RuleSetBody, params::AbstractDict{String}; diff --git a/src/services/glacier.jl b/src/services/glacier.jl index bc475e97e..8da07a9bd 100644 --- a/src/services/glacier.jl +++ b/src/services/glacier.jl @@ -30,16 +30,14 @@ Developer Guide. - `vault_name`: The name of the vault. """ -function abort_multipart_upload( +abort_multipart_upload( accountId, uploadId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "DELETE", + "/$(accountId)/vaults/$(vaultName)/multipart-uploads/$(uploadId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "DELETE", - "/$(accountId)/vaults/$(vaultName)/multipart-uploads/$(uploadId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function abort_multipart_upload( accountId, uploadId, @@ -81,16 +79,13 @@ associated with the vault. - `vault_name`: The name of the vault. """ -function abort_vault_lock( - accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +abort_vault_lock(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "DELETE", "/$(accountId)/vaults/$(vaultName)/lock-policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function abort_vault_lock( accountId, vaultName, @@ -128,16 +123,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to add to the vault. Each tag is composed of a key and a value. The value can be an empty string. """ -function add_tags_to_vault( +add_tags_to_vault( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "POST", + "/$(accountId)/vaults/$(vaultName)/tags?operation=add"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "POST", - "/$(accountId)/vaults/$(vaultName)/tags?operation=add"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_vault( accountId, vaultName, @@ -204,16 +197,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys does not match the SHA256 tree hash of the final assembled archive as computed by Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails. """ -function complete_multipart_upload( +complete_multipart_upload( accountId, uploadId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "POST", + "/$(accountId)/vaults/$(vaultName)/multipart-uploads/$(uploadId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "POST", - "/$(accountId)/vaults/$(vaultName)/multipart-uploads/$(uploadId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_multipart_upload( accountId, uploadId, @@ -255,16 +246,14 @@ lock is in the InProgress state, the operation throws an InvalidParameter error. - `vault_name`: The name of the vault. """ -function complete_vault_lock( +complete_vault_lock( accountId, lockId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "POST", + "/$(accountId)/vaults/$(vaultName)/lock-policy/$(lockId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "POST", - "/$(accountId)/vaults/$(vaultName)/lock-policy/$(lockId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_vault_lock( accountId, lockId, @@ -306,16 +295,13 @@ Glacier and Create Vault in the Amazon Glacier Developer Guide. - `vault_name`: The name of the vault. """ -function create_vault( - accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +create_vault(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "PUT", "/$(accountId)/vaults/$(vaultName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_vault( accountId, vaultName, @@ -359,16 +345,14 @@ Developer Guide. - `vault_name`: The name of the vault. """ -function delete_archive( +delete_archive( accountId, archiveId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "DELETE", + "/$(accountId)/vaults/$(vaultName)/archives/$(archiveId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "DELETE", - "/$(accountId)/vaults/$(vaultName)/archives/$(archiveId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_archive( accountId, archiveId, @@ -411,16 +395,13 @@ Glacier and Delete Vault in the Amazon S3 Glacier Developer Guide. - `vault_name`: The name of the vault. """ -function delete_vault( - accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +delete_vault(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "DELETE", "/$(accountId)/vaults/$(vaultName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vault( accountId, vaultName, @@ -456,16 +437,14 @@ Access Policies. - `vault_name`: The name of the vault. """ -function delete_vault_access_policy( +delete_vault_access_policy( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "DELETE", + "/$(accountId)/vaults/$(vaultName)/access-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "DELETE", - "/$(accountId)/vaults/$(vaultName)/access-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vault_access_policy( accountId, vaultName, @@ -504,16 +483,14 @@ Amazon S3 Glacier Developer Guide. - `vault_name`: The name of the vault. """ -function delete_vault_notifications( +delete_vault_notifications( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "DELETE", + "/$(accountId)/vaults/$(vaultName)/notification-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "DELETE", - "/$(accountId)/vaults/$(vaultName)/notification-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vault_notifications( accountId, vaultName, @@ -556,16 +533,14 @@ Describe Job in the Amazon Glacier Developer Guide. - `vault_name`: The name of the vault. """ -function describe_job( +describe_job( accountId, jobId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "GET", + "/$(accountId)/vaults/$(vaultName)/jobs/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "GET", - "/$(accountId)/vaults/$(vaultName)/jobs/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_job( accountId, jobId, @@ -609,16 +584,13 @@ Glacier Developer Guide. - `vault_name`: The name of the vault. """ -function describe_vault( - accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +describe_vault(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "GET", "/$(accountId)/vaults/$(vaultName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_vault( accountId, vaultName, @@ -650,16 +622,13 @@ Amazon Glacier Data Retrieval Policies. your account ID, do not include any hyphens ('-') in the ID. """ -function get_data_retrieval_policy( - accountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +get_data_retrieval_policy(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "GET", "/$(accountId)/policies/data-retrieval"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_retrieval_policy( accountId, params::AbstractDict{String}; @@ -735,16 +704,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys stored in Amazon S3 Glacier. You compare this value with the checksum you computed to ensure you have downloaded the entire archive content with no errors. """ -function get_job_output( +get_job_output( accountId, jobId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "GET", + "/$(accountId)/vaults/$(vaultName)/jobs/$(jobId)/output"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "GET", - "/$(accountId)/vaults/$(vaultName)/jobs/$(jobId)/output"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_job_output( accountId, jobId, @@ -779,16 +746,14 @@ Vault Access Policies. - `vault_name`: The name of the vault. """ -function get_vault_access_policy( +get_vault_access_policy( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "GET", + "/$(accountId)/vaults/$(vaultName)/access-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "GET", - "/$(accountId)/vaults/$(vaultName)/access-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_vault_access_policy( accountId, vaultName, @@ -827,16 +792,13 @@ about vault lock policies, Amazon Glacier Access Control with Vault Lock Policie - `vault_name`: The name of the vault. """ -function get_vault_lock( - accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +get_vault_lock(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "GET", "/$(accountId)/vaults/$(vaultName)/lock-policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_vault_lock( accountId, vaultName, @@ -876,16 +838,14 @@ Configuration in the Amazon Glacier Developer Guide. - `vault_name`: The name of the vault. """ -function get_vault_notifications( +get_vault_notifications( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "GET", + "/$(accountId)/vaults/$(vaultName)/notification-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "GET", - "/$(accountId)/vaults/$(vaultName)/notification-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_vault_notifications( accountId, vaultName, @@ -920,16 +880,13 @@ documentation for the underlying REST API Initiate a Job. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"jobParameters"`: Provides options for specifying job information. """ -function initiate_job( - accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +initiate_job(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "POST", "/$(accountId)/vaults/$(vaultName)/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function initiate_job( accountId, vaultName, @@ -987,16 +944,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-part-size"`: The size of each part except the last, in bytes. The last part can be smaller than this part size. """ -function initiate_multipart_upload( +initiate_multipart_upload( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "POST", + "/$(accountId)/vaults/$(vaultName)/multipart-uploads"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "POST", - "/$(accountId)/vaults/$(vaultName)/multipart-uploads"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function initiate_multipart_upload( accountId, vaultName, @@ -1046,16 +1001,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"policy"`: The vault lock policy as a JSON string, which uses \"\" as an escape character. """ -function initiate_vault_lock( +initiate_vault_lock( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "POST", + "/$(accountId)/vaults/$(vaultName)/lock-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "POST", - "/$(accountId)/vaults/$(vaultName)/lock-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function initiate_vault_lock( accountId, vaultName, @@ -1120,14 +1073,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"statuscode"`: The type of job status to return. You can specify the following values: InProgress, Succeeded, or Failed. """ -function list_jobs(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) - return glacier( +list_jobs(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "GET", "/$(accountId)/vaults/$(vaultName)/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_jobs( accountId, vaultName, @@ -1183,16 +1135,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Uploads response. You need only include the marker if you are continuing the pagination of results started in a previous List Uploads request. """ -function list_multipart_uploads( +list_multipart_uploads( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "GET", + "/$(accountId)/vaults/$(vaultName)/multipart-uploads"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "GET", - "/$(accountId)/vaults/$(vaultName)/multipart-uploads"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_multipart_uploads( accountId, vaultName, @@ -1247,16 +1197,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request. """ -function list_parts( +list_parts( accountId, uploadId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "GET", + "/$(accountId)/vaults/$(vaultName)/multipart-uploads/$(uploadId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "GET", - "/$(accountId)/vaults/$(vaultName)/multipart-uploads/$(uploadId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_parts( accountId, uploadId, @@ -1286,16 +1234,13 @@ This operation lists the provisioned capacity units for the specified AWS accoun If you use an account ID, don't include any hyphens ('-') in the ID. """ -function list_provisioned_capacity( - accountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +list_provisioned_capacity(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "GET", "/$(accountId)/provisioned-capacity"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_provisioned_capacity( accountId, params::AbstractDict{String}; @@ -1326,16 +1271,14 @@ Resources. - `vault_name`: The name of the vault. """ -function list_tags_for_vault( +list_tags_for_vault( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "GET", + "/$(accountId)/vaults/$(vaultName)/tags"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "GET", - "/$(accountId)/vaults/$(vaultName)/tags"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_vault( accountId, vaultName, @@ -1384,14 +1327,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: A string used for pagination. The marker specifies the vault ARN after which the listing of vaults should begin. """ -function list_vaults(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return glacier( - "GET", - "/$(accountId)/vaults"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_vaults(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = glacier( + "GET", + "/$(accountId)/vaults"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_vaults( accountId, params::AbstractDict{String}; @@ -1419,16 +1360,14 @@ This operation purchases a provisioned capacity unit for an AWS account. If you use an account ID, don't include any hyphens ('-') in the ID. """ -function purchase_provisioned_capacity( +purchase_provisioned_capacity( accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "POST", + "/$(accountId)/provisioned-capacity"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "POST", - "/$(accountId)/provisioned-capacity"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_provisioned_capacity( accountId, params::AbstractDict{String}; @@ -1463,16 +1402,14 @@ vault. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"TagKeys"`: A list of tag keys. Each corresponding tag is removed from the vault. """ -function remove_tags_from_vault( +remove_tags_from_vault( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "POST", + "/$(accountId)/vaults/$(vaultName)/tags?operation=remove"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "POST", - "/$(accountId)/vaults/$(vaultName)/tags?operation=remove"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_vault( accountId, vaultName, @@ -1509,16 +1446,13 @@ information about data retrieval policies, see Amazon Glacier Data Retrieval Pol Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Policy"`: The data retrieval policy in JSON format. """ -function set_data_retrieval_policy( - accountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +set_data_retrieval_policy(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "PUT", "/$(accountId)/policies/data-retrieval"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_data_retrieval_policy( accountId, params::AbstractDict{String}; @@ -1555,16 +1489,14 @@ Control with Vault Access Policies. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"policy"`: The vault access policy as a JSON string. """ -function set_vault_access_policy( +set_vault_access_policy( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "PUT", + "/$(accountId)/vaults/$(vaultName)/access-policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "PUT", - "/$(accountId)/vaults/$(vaultName)/access-policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_vault_access_policy( accountId, vaultName, @@ -1616,16 +1548,14 @@ Glacier Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"vaultNotificationConfig"`: Provides options for specifying notification configuration. """ -function set_vault_notifications( +set_vault_notifications( accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "PUT", + "/$(accountId)/vaults/$(vaultName)/notification-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "PUT", - "/$(accountId)/vaults/$(vaultName)/notification-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_vault_notifications( accountId, vaultName, @@ -1682,16 +1612,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-archive-description"`: The optional description of the archive you are uploading. - `"x-amz-sha256-tree-hash"`: The SHA256 tree hash of the data being uploaded. """ -function upload_archive( - accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glacier( +upload_archive(accountId, vaultName; aws_config::AbstractAWSConfig=current_aws_config()) = + glacier( "POST", "/$(accountId)/vaults/$(vaultName)/archives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function upload_archive( accountId, vaultName, @@ -1755,16 +1682,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"body"`: The data to upload. - `"x-amz-sha256-tree-hash"`: The SHA256 tree hash of the data being uploaded. """ -function upload_multipart_part( +upload_multipart_part( accountId, uploadId, vaultName; aws_config::AbstractAWSConfig=current_aws_config() +) = glacier( + "PUT", + "/$(accountId)/vaults/$(vaultName)/multipart-uploads/$(uploadId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glacier( - "PUT", - "/$(accountId)/vaults/$(vaultName)/multipart-uploads/$(uploadId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_multipart_part( accountId, uploadId, diff --git a/src/services/global_accelerator.jl b/src/services/global_accelerator.jl index e1f10d706..bafeebaa6 100644 --- a/src/services/global_accelerator.jl +++ b/src/services/global_accelerator.jl @@ -26,21 +26,19 @@ AllowCustomRoutingTraffic operation. routing endpoint. """ -function add_custom_routing_endpoints( +add_custom_routing_endpoints( EndpointConfigurations, EndpointGroupArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = global_accelerator( + "AddCustomRoutingEndpoints", + Dict{String,Any}( + "EndpointConfigurations" => EndpointConfigurations, + "EndpointGroupArn" => EndpointGroupArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "AddCustomRoutingEndpoints", - Dict{String,Any}( - "EndpointConfigurations" => EndpointConfigurations, - "EndpointGroupArn" => EndpointGroupArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_custom_routing_endpoints( EndpointConfigurations, EndpointGroupArn, @@ -85,21 +83,19 @@ Developer Guide. - `endpoint_group_arn`: The Amazon Resource Name (ARN) of the endpoint group. """ -function add_endpoints( +add_endpoints( EndpointConfigurations, EndpointGroupArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = global_accelerator( + "AddEndpoints", + Dict{String,Any}( + "EndpointConfigurations" => EndpointConfigurations, + "EndpointGroupArn" => EndpointGroupArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "AddEndpoints", - Dict{String,Any}( - "EndpointConfigurations" => EndpointConfigurations, - "EndpointGroupArn" => EndpointGroupArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_endpoints( EndpointConfigurations, EndpointGroupArn, @@ -141,14 +137,13 @@ Developer Guide. Guide. """ -function advertise_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +advertise_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "AdvertiseByoipCidr", Dict{String,Any}("Cidr" => Cidr); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function advertise_byoip_cidr( Cidr, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -194,18 +189,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DestinationPorts"`: A list of specific Amazon EC2 instance ports (destination ports) that you want to allow to receive traffic. """ -function allow_custom_routing_traffic( +allow_custom_routing_traffic( EndpointGroupArn, EndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "AllowCustomRoutingTraffic", + Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn, "EndpointId" => EndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "AllowCustomRoutingTraffic", - Dict{String,Any}( - "EndpointGroupArn" => EndpointGroupArn, "EndpointId" => EndpointId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function allow_custom_routing_traffic( EndpointGroupArn, EndpointId, @@ -269,16 +260,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Create tags for an accelerator. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide. """ -function create_accelerator( +create_accelerator( IdempotencyToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "CreateAccelerator", + Dict{String,Any}("IdempotencyToken" => IdempotencyToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "CreateAccelerator", - Dict{String,Any}("IdempotencyToken" => IdempotencyToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_accelerator( IdempotencyToken, Name, @@ -336,16 +325,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Add tags for a cross-account attachment. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide. """ -function create_cross_account_attachment( +create_cross_account_attachment( IdempotencyToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "CreateCrossAccountAttachment", + Dict{String,Any}("IdempotencyToken" => IdempotencyToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "CreateCrossAccountAttachment", - Dict{String,Any}("IdempotencyToken" => IdempotencyToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cross_account_attachment( IdempotencyToken, Name, @@ -410,16 +397,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Create tags for an accelerator. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide. """ -function create_custom_routing_accelerator( +create_custom_routing_accelerator( IdempotencyToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "CreateCustomRoutingAccelerator", + Dict{String,Any}("IdempotencyToken" => IdempotencyToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "CreateCustomRoutingAccelerator", - Dict{String,Any}("IdempotencyToken" => IdempotencyToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_routing_accelerator( IdempotencyToken, Name, @@ -458,25 +443,23 @@ endpoint group is a collection of endpoints in one Amazon Web Services Region. endpoint. """ -function create_custom_routing_endpoint_group( +create_custom_routing_endpoint_group( DestinationConfigurations, EndpointGroupRegion, IdempotencyToken, ListenerArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = global_accelerator( + "CreateCustomRoutingEndpointGroup", + Dict{String,Any}( + "DestinationConfigurations" => DestinationConfigurations, + "EndpointGroupRegion" => EndpointGroupRegion, + "IdempotencyToken" => IdempotencyToken, + "ListenerArn" => ListenerArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "CreateCustomRoutingEndpointGroup", - Dict{String,Any}( - "DestinationConfigurations" => DestinationConfigurations, - "EndpointGroupRegion" => EndpointGroupRegion, - "IdempotencyToken" => IdempotencyToken, - "ListenerArn" => ListenerArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_routing_endpoint_group( DestinationConfigurations, EndpointGroupRegion, @@ -522,23 +505,21 @@ specify. endpoints for custom routing accelerators. """ -function create_custom_routing_listener( +create_custom_routing_listener( AcceleratorArn, IdempotencyToken, PortRanges; aws_config::AbstractAWSConfig=current_aws_config(), +) = global_accelerator( + "CreateCustomRoutingListener", + Dict{String,Any}( + "AcceleratorArn" => AcceleratorArn, + "IdempotencyToken" => IdempotencyToken, + "PortRanges" => PortRanges, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "CreateCustomRoutingListener", - Dict{String,Any}( - "AcceleratorArn" => AcceleratorArn, - "IdempotencyToken" => IdempotencyToken, - "PortRanges" => PortRanges, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_routing_listener( AcceleratorArn, IdempotencyToken, @@ -608,23 +589,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. The default value is 100. """ -function create_endpoint_group( +create_endpoint_group( EndpointGroupRegion, IdempotencyToken, ListenerArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = global_accelerator( + "CreateEndpointGroup", + Dict{String,Any}( + "EndpointGroupRegion" => EndpointGroupRegion, + "IdempotencyToken" => IdempotencyToken, + "ListenerArn" => ListenerArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "CreateEndpointGroup", - Dict{String,Any}( - "EndpointGroupRegion" => EndpointGroupRegion, - "IdempotencyToken" => IdempotencyToken, - "ListenerArn" => ListenerArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint_group( EndpointGroupRegion, IdempotencyToken, @@ -682,25 +661,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys setting, Global Accelerator uses the \"two-tuple\" (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value. The default value is NONE. """ -function create_listener( +create_listener( AcceleratorArn, IdempotencyToken, PortRanges, Protocol; aws_config::AbstractAWSConfig=current_aws_config(), +) = global_accelerator( + "CreateListener", + Dict{String,Any}( + "AcceleratorArn" => AcceleratorArn, + "IdempotencyToken" => IdempotencyToken, + "PortRanges" => PortRanges, + "Protocol" => Protocol, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "CreateListener", - Dict{String,Any}( - "AcceleratorArn" => AcceleratorArn, - "IdempotencyToken" => IdempotencyToken, - "PortRanges" => PortRanges, - "Protocol" => Protocol, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_listener( AcceleratorArn, IdempotencyToken, @@ -750,16 +727,13 @@ Accelerator Developer Guide. - `accelerator_arn`: The Amazon Resource Name (ARN) of an accelerator. """ -function delete_accelerator( - AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +delete_accelerator(AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "DeleteAccelerator", Dict{String,Any}("AcceleratorArn" => AcceleratorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_accelerator( AcceleratorArn, params::AbstractDict{String}; @@ -790,16 +764,14 @@ Accelerator in the Global Accelerator Developer Guide. delete. """ -function delete_cross_account_attachment( +delete_cross_account_attachment( AttachmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DeleteCrossAccountAttachment", + Dict{String,Any}("AttachmentArn" => AttachmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DeleteCrossAccountAttachment", - Dict{String,Any}("AttachmentArn" => AttachmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cross_account_attachment( AttachmentArn, params::AbstractDict{String}; @@ -837,16 +809,14 @@ Accelerator Developer Guide. delete. """ -function delete_custom_routing_accelerator( +delete_custom_routing_accelerator( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DeleteCustomRoutingAccelerator", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DeleteCustomRoutingAccelerator", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_routing_accelerator( AcceleratorArn, params::AbstractDict{String}; @@ -872,16 +842,14 @@ Delete an endpoint group from a listener for a custom routing accelerator. - `endpoint_group_arn`: The Amazon Resource Name (ARN) of the endpoint group to delete. """ -function delete_custom_routing_endpoint_group( +delete_custom_routing_endpoint_group( EndpointGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DeleteCustomRoutingEndpointGroup", + Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DeleteCustomRoutingEndpointGroup", - Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_routing_endpoint_group( EndpointGroupArn, params::AbstractDict{String}; @@ -909,16 +877,14 @@ Delete a listener for a custom routing accelerator. - `listener_arn`: The Amazon Resource Name (ARN) of the listener to delete. """ -function delete_custom_routing_listener( +delete_custom_routing_listener( ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DeleteCustomRoutingListener", + Dict{String,Any}("ListenerArn" => ListenerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DeleteCustomRoutingListener", - Dict{String,Any}("ListenerArn" => ListenerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_routing_listener( ListenerArn, params::AbstractDict{String}; @@ -944,16 +910,14 @@ Delete an endpoint group from a listener. - `endpoint_group_arn`: The Amazon Resource Name (ARN) of the endpoint group to delete. """ -function delete_endpoint_group( +delete_endpoint_group( EndpointGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DeleteEndpointGroup", + Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DeleteEndpointGroup", - Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_endpoint_group( EndpointGroupArn, params::AbstractDict{String}; @@ -981,14 +945,13 @@ Delete a listener from an accelerator. - `listener_arn`: The Amazon Resource Name (ARN) of the listener. """ -function delete_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +delete_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "DeleteListener", Dict{String,Any}("ListenerArn" => ListenerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_listener( ListenerArn, params::AbstractDict{String}; @@ -1038,18 +1001,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DestinationPorts"`: A list of specific Amazon EC2 instance ports (destination ports) in a subnet endpoint that you want to prevent from receiving traffic. """ -function deny_custom_routing_traffic( +deny_custom_routing_traffic( EndpointGroupArn, EndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DenyCustomRoutingTraffic", + Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn, "EndpointId" => EndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DenyCustomRoutingTraffic", - Dict{String,Any}( - "EndpointGroupArn" => EndpointGroupArn, "EndpointId" => EndpointId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deny_custom_routing_traffic( EndpointGroupArn, EndpointId, @@ -1089,14 +1048,13 @@ Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide. IP addresses (BYOIP) in the Global Accelerator Developer Guide. """ -function deprovision_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +deprovision_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "DeprovisionByoipCidr", Dict{String,Any}("Cidr" => Cidr); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deprovision_byoip_cidr( Cidr, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1118,16 +1076,13 @@ Describe an accelerator. - `accelerator_arn`: The Amazon Resource Name (ARN) of the accelerator to describe. """ -function describe_accelerator( - AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +describe_accelerator(AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "DescribeAccelerator", Dict{String,Any}("AcceleratorArn" => AcceleratorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_accelerator( AcceleratorArn, params::AbstractDict{String}; @@ -1154,16 +1109,14 @@ Describe the attributes of an accelerator. that you want to describe. """ -function describe_accelerator_attributes( +describe_accelerator_attributes( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DescribeAcceleratorAttributes", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DescribeAcceleratorAttributes", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_accelerator_attributes( AcceleratorArn, params::AbstractDict{String}; @@ -1190,16 +1143,14 @@ Gets configuration information about a cross-account attachment. describe. """ -function describe_cross_account_attachment( +describe_cross_account_attachment( AttachmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DescribeCrossAccountAttachment", + Dict{String,Any}("AttachmentArn" => AttachmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DescribeCrossAccountAttachment", - Dict{String,Any}("AttachmentArn" => AttachmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cross_account_attachment( AttachmentArn, params::AbstractDict{String}; @@ -1225,16 +1176,14 @@ Describe a custom routing accelerator. - `accelerator_arn`: The Amazon Resource Name (ARN) of the accelerator to describe. """ -function describe_custom_routing_accelerator( +describe_custom_routing_accelerator( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DescribeCustomRoutingAccelerator", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DescribeCustomRoutingAccelerator", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_custom_routing_accelerator( AcceleratorArn, params::AbstractDict{String}; @@ -1261,16 +1210,14 @@ Describe the attributes of a custom routing accelerator. describe the attributes for. """ -function describe_custom_routing_accelerator_attributes( +describe_custom_routing_accelerator_attributes( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DescribeCustomRoutingAcceleratorAttributes", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DescribeCustomRoutingAcceleratorAttributes", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_custom_routing_accelerator_attributes( AcceleratorArn, params::AbstractDict{String}; @@ -1296,16 +1243,14 @@ Describe an endpoint group for a custom routing accelerator. - `endpoint_group_arn`: The Amazon Resource Name (ARN) of the endpoint group to describe. """ -function describe_custom_routing_endpoint_group( +describe_custom_routing_endpoint_group( EndpointGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DescribeCustomRoutingEndpointGroup", + Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DescribeCustomRoutingEndpointGroup", - Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_custom_routing_endpoint_group( EndpointGroupArn, params::AbstractDict{String}; @@ -1333,16 +1278,14 @@ The description of a listener for a custom routing accelerator. - `listener_arn`: The Amazon Resource Name (ARN) of the listener to describe. """ -function describe_custom_routing_listener( +describe_custom_routing_listener( ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DescribeCustomRoutingListener", + Dict{String,Any}("ListenerArn" => ListenerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DescribeCustomRoutingListener", - Dict{String,Any}("ListenerArn" => ListenerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_custom_routing_listener( ListenerArn, params::AbstractDict{String}; @@ -1368,16 +1311,14 @@ Describe an endpoint group. - `endpoint_group_arn`: The Amazon Resource Name (ARN) of the endpoint group to describe. """ -function describe_endpoint_group( +describe_endpoint_group( EndpointGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "DescribeEndpointGroup", + Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "DescribeEndpointGroup", - Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_endpoint_group( EndpointGroupArn, params::AbstractDict{String}; @@ -1405,14 +1346,13 @@ Describe a listener. - `listener_arn`: The Amazon Resource Name (ARN) of the listener to describe. """ -function describe_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +describe_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "DescribeListener", Dict{String,Any}("ListenerArn" => ListenerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_listener( ListenerArn, params::AbstractDict{String}; @@ -1441,11 +1381,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_accelerators(; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +list_accelerators(; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "ListAccelerators"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_accelerators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1467,11 +1406,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function list_byoip_cidrs(; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( - "ListByoipCidrs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_byoip_cidrs(; aws_config::AbstractAWSConfig=current_aws_config()) = global_accelerator( + "ListByoipCidrs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_byoip_cidrs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1493,15 +1430,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_cross_account_attachments(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +list_cross_account_attachments(; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "ListCrossAccountAttachments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cross_account_attachments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1522,15 +1456,12 @@ with cross-account attachments and resources in Global Accelerator in the Globa Accelerator Developer Guide. """ -function list_cross_account_resource_accounts(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +list_cross_account_resource_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "ListCrossAccountResourceAccounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cross_account_resource_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1561,16 +1492,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_cross_account_resources( +list_cross_account_resources( ResourceOwnerAwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "ListCrossAccountResources", + Dict{String,Any}("ResourceOwnerAwsAccountId" => ResourceOwnerAwsAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "ListCrossAccountResources", - Dict{String,Any}("ResourceOwnerAwsAccountId" => ResourceOwnerAwsAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_cross_account_resources( ResourceOwnerAwsAccountId, params::AbstractDict{String}; @@ -1603,15 +1532,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_custom_routing_accelerators(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +list_custom_routing_accelerators(; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "ListCustomRoutingAccelerators"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_custom_routing_accelerators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1641,16 +1567,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_custom_routing_endpoint_groups( +list_custom_routing_endpoint_groups( ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "ListCustomRoutingEndpointGroups", + Dict{String,Any}("ListenerArn" => ListenerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "ListCustomRoutingEndpointGroups", - Dict{String,Any}("ListenerArn" => ListenerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_custom_routing_endpoint_groups( ListenerArn, params::AbstractDict{String}; @@ -1683,16 +1607,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_custom_routing_listeners( +list_custom_routing_listeners( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "ListCustomRoutingListeners", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "ListCustomRoutingListeners", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_custom_routing_listeners( AcceleratorArn, params::AbstractDict{String}; @@ -1737,16 +1659,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_custom_routing_port_mappings( +list_custom_routing_port_mappings( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "ListCustomRoutingPortMappings", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "ListCustomRoutingPortMappings", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_custom_routing_port_mappings( AcceleratorArn, params::AbstractDict{String}; @@ -1784,18 +1704,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_custom_routing_port_mappings_by_destination( +list_custom_routing_port_mappings_by_destination( DestinationAddress, EndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "ListCustomRoutingPortMappingsByDestination", + Dict{String,Any}( + "DestinationAddress" => DestinationAddress, "EndpointId" => EndpointId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "ListCustomRoutingPortMappingsByDestination", - Dict{String,Any}( - "DestinationAddress" => DestinationAddress, "EndpointId" => EndpointId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_custom_routing_port_mappings_by_destination( DestinationAddress, EndpointId, @@ -1834,16 +1752,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_endpoint_groups( - ListenerArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +list_endpoint_groups(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "ListEndpointGroups", Dict{String,Any}("ListenerArn" => ListenerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_endpoint_groups( ListenerArn, params::AbstractDict{String}; @@ -1876,14 +1791,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_listeners(AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +list_listeners(AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "ListListeners", Dict{String,Any}("AcceleratorArn" => AcceleratorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_listeners( AcceleratorArn, params::AbstractDict{String}; @@ -1911,16 +1825,13 @@ in the Global Accelerator Developer Guide. ARN uniquely identifies an accelerator. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1955,18 +1866,16 @@ Guide. bring the specified IP address range to Amazon using BYOIP. """ -function provision_byoip_cidr( +provision_byoip_cidr( Cidr, CidrAuthorizationContext; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "ProvisionByoipCidr", + Dict{String,Any}( + "Cidr" => Cidr, "CidrAuthorizationContext" => CidrAuthorizationContext + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "ProvisionByoipCidr", - Dict{String,Any}( - "Cidr" => Cidr, "CidrAuthorizationContext" => CidrAuthorizationContext - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function provision_byoip_cidr( Cidr, CidrAuthorizationContext, @@ -2002,18 +1911,14 @@ Remove endpoints from a custom routing accelerator. are the virtual private cloud (VPC) subnet IDs. """ -function remove_custom_routing_endpoints( +remove_custom_routing_endpoints( EndpointGroupArn, EndpointIds; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "RemoveCustomRoutingEndpoints", + Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn, "EndpointIds" => EndpointIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "RemoveCustomRoutingEndpoints", - Dict{String,Any}( - "EndpointGroupArn" => EndpointGroupArn, "EndpointIds" => EndpointIds - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_custom_routing_endpoints( EndpointGroupArn, EndpointIds, @@ -2055,21 +1960,19 @@ operation, Global Accelerator must resolve all of the endpoints that remain in t - `endpoint_identifiers`: The identifiers of the endpoints that you want to remove. """ -function remove_endpoints( +remove_endpoints( EndpointGroupArn, EndpointIdentifiers; aws_config::AbstractAWSConfig=current_aws_config(), +) = global_accelerator( + "RemoveEndpoints", + Dict{String,Any}( + "EndpointGroupArn" => EndpointGroupArn, + "EndpointIdentifiers" => EndpointIdentifiers, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "RemoveEndpoints", - Dict{String,Any}( - "EndpointGroupArn" => EndpointGroupArn, - "EndpointIdentifiers" => EndpointIdentifiers, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_endpoints( EndpointGroupArn, EndpointIdentifiers, @@ -2107,14 +2010,13 @@ Accelerator in the Global Accelerator Developer Guide. define. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2150,16 +2052,13 @@ Tagging in Global Accelerator in the Global Accelerator Developer Guide. - `tag_keys`: The tag key pairs that you want to remove from the specified resources. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2212,16 +2111,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contain only alphanumeric characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period. """ -function update_accelerator( - AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return global_accelerator( +update_accelerator(AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "UpdateAccelerator", Dict{String,Any}("AcceleratorArn" => AcceleratorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_accelerator( AcceleratorArn, params::AbstractDict{String}; @@ -2260,16 +2156,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following: s3-bucket_name//AWSLogs/aws_account_id """ -function update_accelerator_attributes( +update_accelerator_attributes( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "UpdateAcceleratorAttributes", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "UpdateAcceleratorAttributes", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_accelerator_attributes( AcceleratorArn, params::AbstractDict{String}; @@ -2321,16 +2215,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys principals that are listed in the attachment. To remove more than one resource, separate the resource ARNs with commas. """ -function update_cross_account_attachment( +update_cross_account_attachment( AttachmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "UpdateCrossAccountAttachment", + Dict{String,Any}("AttachmentArn" => AttachmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "UpdateCrossAccountAttachment", - Dict{String,Any}("AttachmentArn" => AttachmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cross_account_attachment( AttachmentArn, params::AbstractDict{String}; @@ -2367,16 +2259,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contain only alphanumeric characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period. """ -function update_custom_routing_accelerator( +update_custom_routing_accelerator( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "UpdateCustomRoutingAccelerator", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "UpdateCustomRoutingAccelerator", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_custom_routing_accelerator( AcceleratorArn, params::AbstractDict{String}; @@ -2416,16 +2306,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following: DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id """ -function update_custom_routing_accelerator_attributes( +update_custom_routing_accelerator_attributes( AcceleratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "UpdateCustomRoutingAcceleratorAttributes", + Dict{String,Any}("AcceleratorArn" => AcceleratorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "UpdateCustomRoutingAcceleratorAttributes", - Dict{String,Any}("AcceleratorArn" => AcceleratorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_custom_routing_accelerator_attributes( AcceleratorArn, params::AbstractDict{String}; @@ -2455,16 +2343,14 @@ Update a listener for a custom routing accelerator. endpoints for custom routing accelerators. """ -function update_custom_routing_listener( +update_custom_routing_listener( ListenerArn, PortRanges; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "UpdateCustomRoutingListener", + Dict{String,Any}("ListenerArn" => ListenerArn, "PortRanges" => PortRanges); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "UpdateCustomRoutingListener", - Dict{String,Any}("ListenerArn" => ListenerArn, "PortRanges" => PortRanges); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_custom_routing_listener( ListenerArn, PortRanges, @@ -2523,16 +2409,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. The default value is 100. """ -function update_endpoint_group( +update_endpoint_group( EndpointGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = global_accelerator( + "UpdateEndpointGroup", + Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return global_accelerator( - "UpdateEndpointGroup", - Dict{String,Any}("EndpointGroupArn" => EndpointGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_endpoint_group( EndpointGroupArn, params::AbstractDict{String}; @@ -2578,14 +2462,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys accelerator. - `"Protocol"`: The updated protocol for the connections from clients to the accelerator. """ -function update_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +update_listener(ListenerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "UpdateListener", Dict{String,Any}("ListenerArn" => ListenerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_listener( ListenerArn, params::AbstractDict{String}; @@ -2616,14 +2499,13 @@ Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide. addresses (BYOIP) in the Global Accelerator Developer Guide. """ -function withdraw_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) - return global_accelerator( +withdraw_byoip_cidr(Cidr; aws_config::AbstractAWSConfig=current_aws_config()) = + global_accelerator( "WithdrawByoipCidr", Dict{String,Any}("Cidr" => Cidr); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function withdraw_byoip_cidr( Cidr, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/glue.jl b/src/services/glue.jl index ff6b599e7..1873f288d 100644 --- a/src/services/glue.jl +++ b/src/services/glue.jl @@ -22,23 +22,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the catalog in which the partition is to be created. Currently, this should be the Amazon Web Services account ID. """ -function batch_create_partition( +batch_create_partition( DatabaseName, PartitionInputList, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "BatchCreatePartition", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "PartitionInputList" => PartitionInputList, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchCreatePartition", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "PartitionInputList" => PartitionInputList, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_partition( DatabaseName, PartitionInputList, @@ -78,16 +76,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog in which the connections reside. If none is provided, the Amazon Web Services account ID is used by default. """ -function batch_delete_connection( +batch_delete_connection( ConnectionNameList; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "BatchDeleteConnection", + Dict{String,Any}("ConnectionNameList" => ConnectionNameList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchDeleteConnection", - Dict{String,Any}("ConnectionNameList" => ConnectionNameList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_connection( ConnectionNameList, params::AbstractDict{String}; @@ -122,23 +118,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partition to be deleted resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function batch_delete_partition( +batch_delete_partition( DatabaseName, PartitionsToDelete, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "BatchDeletePartition", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "PartitionsToDelete" => PartitionsToDelete, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchDeletePartition", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "PartitionsToDelete" => PartitionsToDelete, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_partition( DatabaseName, PartitionsToDelete, @@ -186,18 +180,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Amazon Web Services account ID is used by default. - `"TransactionId"`: The transaction ID at which to delete the table contents. """ -function batch_delete_table( +batch_delete_table( DatabaseName, TablesToDelete; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "BatchDeleteTable", + Dict{String,Any}("DatabaseName" => DatabaseName, "TablesToDelete" => TablesToDelete); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchDeleteTable", - Dict{String,Any}( - "DatabaseName" => DatabaseName, "TablesToDelete" => TablesToDelete - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_table( DatabaseName, TablesToDelete, @@ -239,20 +229,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default. """ -function batch_delete_table_version( +batch_delete_table_version( DatabaseName, TableName, VersionIds; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "BatchDeleteTableVersion", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "TableName" => TableName, + "VersionIds" => VersionIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchDeleteTableVersion", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "TableName" => TableName, - "VersionIds" => VersionIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_table_version( DatabaseName, TableName, @@ -293,14 +281,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IncludeParameterSpec"`: Specifies whether or not to include the parameters, as a JSON string, for the blueprint in the response. """ -function batch_get_blueprints(Names; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "BatchGetBlueprints", - Dict{String,Any}("Names" => Names); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_blueprints(Names; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "BatchGetBlueprints", + Dict{String,Any}("Names" => Names); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_blueprints( Names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -326,16 +312,12 @@ conditions that uses tags. ListCrawlers operation. """ -function batch_get_crawlers( - CrawlerNames; aws_config::AbstractAWSConfig=current_aws_config() +batch_get_crawlers(CrawlerNames; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "BatchGetCrawlers", + Dict{String,Any}("CrawlerNames" => CrawlerNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchGetCrawlers", - Dict{String,Any}("CrawlerNames" => CrawlerNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_crawlers( CrawlerNames, params::AbstractDict{String}; @@ -361,16 +343,13 @@ Retrieves the details for the custom patterns specified by a list of names. - `names`: A list of names of the custom patterns that you want to retrieve. """ -function batch_get_custom_entity_types( - Names; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +batch_get_custom_entity_types(Names; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "BatchGetCustomEntityTypes", Dict{String,Any}("Names" => Names); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_custom_entity_types( Names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -392,16 +371,14 @@ Retrieves a list of data quality results for the specified result IDs. - `result_ids`: A list of unique result IDs for the data quality results. """ -function batch_get_data_quality_result( +batch_get_data_quality_result( ResultIds; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "BatchGetDataQualityResult", + Dict{String,Any}("ResultIds" => ResultIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchGetDataQualityResult", - Dict{String,Any}("ResultIds" => ResultIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_data_quality_result( ResultIds, params::AbstractDict{String}; @@ -431,16 +408,14 @@ including permission conditions that uses tags. from the ListDevEndpoint operation. """ -function batch_get_dev_endpoints( +batch_get_dev_endpoints( DevEndpointNames; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "BatchGetDevEndpoints", + Dict{String,Any}("DevEndpointNames" => DevEndpointNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchGetDevEndpoints", - Dict{String,Any}("DevEndpointNames" => DevEndpointNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_dev_endpoints( DevEndpointNames, params::AbstractDict{String}; @@ -472,14 +447,12 @@ conditions that uses tags. operation. """ -function batch_get_jobs(JobNames; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "BatchGetJobs", - Dict{String,Any}("JobNames" => JobNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_jobs(JobNames; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "BatchGetJobs", + Dict{String,Any}("JobNames" => JobNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_jobs( JobNames, params::AbstractDict{String}; @@ -511,23 +484,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partitions in question reside. If none is supplied, the Amazon Web Services account ID is used by default. """ -function batch_get_partition( +batch_get_partition( DatabaseName, PartitionsToGet, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "BatchGetPartition", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "PartitionsToGet" => PartitionsToGet, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchGetPartition", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "PartitionsToGet" => PartitionsToGet, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_partition( DatabaseName, PartitionsToGet, @@ -564,16 +535,13 @@ Returns the configuration for the specified table optimizers. to retrieve. """ -function batch_get_table_optimizer( - Entries; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +batch_get_table_optimizer(Entries; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "BatchGetTableOptimizer", Dict{String,Any}("Entries" => Entries); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_table_optimizer( Entries, params::AbstractDict{String}; @@ -601,16 +569,12 @@ conditions that uses tags. ListTriggers operation. """ -function batch_get_triggers( - TriggerNames; aws_config::AbstractAWSConfig=current_aws_config() +batch_get_triggers(TriggerNames; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "BatchGetTriggers", + Dict{String,Any}("TriggerNames" => TriggerNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchGetTriggers", - Dict{String,Any}("TriggerNames" => TriggerNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_triggers( TriggerNames, params::AbstractDict{String}; @@ -644,20 +608,58 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IncludeGraph"`: Specifies whether to include a graph when returning the workflow resource metadata. """ -function batch_get_workflows(Names; aws_config::AbstractAWSConfig=current_aws_config()) +batch_get_workflows(Names; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "BatchGetWorkflows", + Dict{String,Any}("Names" => Names); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function batch_get_workflows( + Names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return glue( "BatchGetWorkflows", - Dict{String,Any}("Names" => Names); + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Names" => Names), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function batch_get_workflows( - Names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() + +""" + batch_put_data_quality_statistic_annotation(inclusion_annotations) + batch_put_data_quality_statistic_annotation(inclusion_annotations, params::Dict{String,<:Any}) + +Annotate datapoints over time for a specific data quality statistic. + +# Arguments +- `inclusion_annotations`: A list of DatapointInclusionAnnotation's. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ClientToken"`: Client Token. +""" +batch_put_data_quality_statistic_annotation( + InclusionAnnotations; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "BatchPutDataQualityStatisticAnnotation", + Dict{String,Any}("InclusionAnnotations" => InclusionAnnotations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function batch_put_data_quality_statistic_annotation( + InclusionAnnotations, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return glue( - "BatchGetWorkflows", - Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Names" => Names), params)); + "BatchPutDataQualityStatisticAnnotation", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("InclusionAnnotations" => InclusionAnnotations), + params, + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -674,16 +676,13 @@ Stops one or more job runs for a specified job definition. - `job_run_ids`: A list of the JobRunIds that should be stopped for that job definition. """ -function batch_stop_job_run( - JobName, JobRunIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +batch_stop_job_run(JobName, JobRunIds; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "BatchStopJobRun", Dict{String,Any}("JobName" => JobName, "JobRunIds" => JobRunIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_stop_job_run( JobName, JobRunIds, @@ -721,18 +720,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the catalog in which the partition is to be updated. Currently, this should be the Amazon Web Services account ID. """ -function batch_update_partition( +batch_update_partition( DatabaseName, Entries, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "BatchUpdatePartition", + Dict{String,Any}( + "DatabaseName" => DatabaseName, "Entries" => Entries, "TableName" => TableName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "BatchUpdatePartition", - Dict{String,Any}( - "DatabaseName" => DatabaseName, "Entries" => Entries, "TableName" => TableName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_partition( DatabaseName, Entries, @@ -768,16 +765,14 @@ Cancels the specified recommendation run that was being used to generate rules. - `run_id`: The unique run identifier associated with this run. """ -function cancel_data_quality_rule_recommendation_run( +cancel_data_quality_rule_recommendation_run( RunId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CancelDataQualityRuleRecommendationRun", + Dict{String,Any}("RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CancelDataQualityRuleRecommendationRun", - Dict{String,Any}("RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_data_quality_rule_recommendation_run( RunId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -799,16 +794,14 @@ Cancels a run where a ruleset is being evaluated against a data source. - `run_id`: The unique run identifier associated with this run. """ -function cancel_data_quality_ruleset_evaluation_run( +cancel_data_quality_ruleset_evaluation_run( RunId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CancelDataQualityRulesetEvaluationRun", + Dict{String,Any}("RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CancelDataQualityRulesetEvaluationRun", - Dict{String,Any}("RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_data_quality_ruleset_evaluation_run( RunId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -834,16 +827,14 @@ transform's TransformID and the task run's TaskRunId. - `transform_id`: The unique identifier of the machine learning transform. """ -function cancel_mltask_run( +cancel_mltask_run( TaskRunId, TransformId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CancelMLTaskRun", + Dict{String,Any}("TaskRunId" => TaskRunId, "TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CancelMLTaskRun", - Dict{String,Any}("TaskRunId" => TaskRunId, "TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_mltask_run( TaskRunId, TransformId, @@ -878,14 +869,12 @@ Cancels the statement. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RequestOrigin"`: The origin of the request to cancel the statement. """ -function cancel_statement(Id, SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "CancelStatement", - Dict{String,Any}("Id" => Id, "SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_statement(Id, SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "CancelStatement", + Dict{String,Any}("Id" => Id, "SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_statement( Id, SessionId, @@ -918,18 +907,14 @@ no compatibility checks are performed. - `schema_definition`: The definition of the schema that has to be validated. """ -function check_schema_version_validity( +check_schema_version_validity( DataFormat, SchemaDefinition; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CheckSchemaVersionValidity", + Dict{String,Any}("DataFormat" => DataFormat, "SchemaDefinition" => SchemaDefinition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CheckSchemaVersionValidity", - Dict{String,Any}( - "DataFormat" => DataFormat, "SchemaDefinition" => SchemaDefinition - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function check_schema_version_validity( DataFormat, SchemaDefinition, @@ -967,16 +952,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the blueprint. - `"Tags"`: The tags to be applied to this blueprint. """ -function create_blueprint( +create_blueprint( BlueprintLocation, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CreateBlueprint", + Dict{String,Any}("BlueprintLocation" => BlueprintLocation, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateBlueprint", - Dict{String,Any}("BlueprintLocation" => BlueprintLocation, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_blueprint( BlueprintLocation, Name, @@ -1011,9 +994,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"JsonClassifier"`: A JsonClassifier object specifying the classifier to create. - `"XMLClassifier"`: An XMLClassifier object specifying the classifier to create. """ -function create_classifier(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("CreateClassifier"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_classifier(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("CreateClassifier"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_classifier( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1038,16 +1020,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided, the Amazon Web Services account ID is used by default. - `"Tags"`: The tags you assign to the connection. """ -function create_connection( - ConnectionInput; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +create_connection(ConnectionInput; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "CreateConnection", Dict{String,Any}("ConnectionInput" => ConnectionInput); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_connection( ConnectionInput, params::AbstractDict{String}; @@ -1106,16 +1085,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the crawler. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide. """ -function create_crawler( - Name, Role, Targets; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +create_crawler(Name, Role, Targets; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "CreateCrawler", Dict{String,Any}("Name" => Name, "Role" => Role, "Targets" => Targets); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_crawler( Name, Role, @@ -1159,16 +1135,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data. If no context words are passed only a regular expression is checked. - `"Tags"`: A list of tags applied to the custom entity type. """ -function create_custom_entity_type( +create_custom_entity_type( Name, RegexString; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CreateCustomEntityType", + Dict{String,Any}("Name" => Name, "RegexString" => RegexString); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateCustomEntityType", - Dict{String,Any}("Name" => Name, "RegexString" => RegexString); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_entity_type( Name, RegexString, @@ -1206,20 +1180,20 @@ see the Glue developer guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource. +- `"DataQualitySecurityConfiguration"`: The name of the security configuration created with + the data quality encryption option. - `"Description"`: A description of the data quality ruleset. - `"Tags"`: A list of tags applied to the data quality ruleset. - `"TargetTable"`: A target table associated with the data quality ruleset. """ -function create_data_quality_ruleset( +create_data_quality_ruleset( Name, Ruleset; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CreateDataQualityRuleset", + Dict{String,Any}("Name" => Name, "Ruleset" => Ruleset); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateDataQualityRuleset", - Dict{String,Any}("Name" => Name, "Ruleset" => Ruleset); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_quality_ruleset( Name, Ruleset, @@ -1253,14 +1227,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided, the Amazon Web Services account ID is used by default. - `"Tags"`: The tags you assign to the database. """ -function create_database(DatabaseInput; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "CreateDatabase", - Dict{String,Any}("DatabaseInput" => DatabaseInput); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_database(DatabaseInput; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "CreateDatabase", + Dict{String,Any}("DatabaseInput" => DatabaseInput); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_database( DatabaseInput, params::AbstractDict{String}; @@ -1337,16 +1309,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk. """ -function create_dev_endpoint( +create_dev_endpoint( EndpointName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CreateDevEndpoint", + Dict{String,Any}("EndpointName" => EndpointName, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateDevEndpoint", - Dict{String,Any}("EndpointName" => EndpointName, "RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dev_endpoint( EndpointName, RoleArn, @@ -1420,6 +1390,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys using the Glue Studio visual editor. NOTEBOOK - The job was created using an interactive sessions notebook. When the JobMode field is missing or null, SCRIPT is assigned as the default value. +- `"JobRunQueuingEnabled"`: Specifies whether job run queuing is enabled for the job runs + for this job. A value of true means job run queuing is enabled for the job runs. If false + or not populated, the job runs will not be considered for queueing. If this field does not + match the value set in the job run, then the value from the job run field will be used. - `"LogUri"`: This field is reserved for future use. - `"MaintenanceWindow"`: This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these @@ -1487,14 +1461,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (8vCPUs, 64 GB of memory) with 128 GB disk (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler. """ -function create_job(Command, Name, Role; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "CreateJob", - Dict{String,Any}("Command" => Command, "Name" => Name, "Role" => Role); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_job(Command, Name, Role; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "CreateJob", + Dict{String,Any}("Command" => Command, "Name" => Name, "Role" => Role); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_job( Command, Name, @@ -1586,25 +1558,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys or WorkerType can be set. If WorkerType is set, then NumberOfWorkers is required (and vice versa). MaxCapacity and NumberOfWorkers must both be at least 1. """ -function create_mltransform( +create_mltransform( InputRecordTables, Name, Parameters, Role; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "CreateMLTransform", + Dict{String,Any}( + "InputRecordTables" => InputRecordTables, + "Name" => Name, + "Parameters" => Parameters, + "Role" => Role, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateMLTransform", - Dict{String,Any}( - "InputRecordTables" => InputRecordTables, - "Name" => Name, - "Parameters" => Parameters, - "Role" => Role, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_mltransform( InputRecordTables, Name, @@ -1649,23 +1619,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The Amazon Web Services account ID of the catalog in which the partition is to be created. """ -function create_partition( +create_partition( DatabaseName, PartitionInput, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "CreatePartition", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "PartitionInput" => PartitionInput, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreatePartition", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "PartitionInput" => PartitionInput, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_partition( DatabaseName, PartitionInput, @@ -1708,23 +1676,21 @@ Creates a specified partition index in an existing table. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CatalogId"`: The catalog ID where the table resides. """ -function create_partition_index( +create_partition_index( DatabaseName, PartitionIndex, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "CreatePartitionIndex", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "PartitionIndex" => PartitionIndex, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreatePartitionIndex", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "PartitionIndex" => PartitionIndex, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_partition_index( DatabaseName, PartitionIndex, @@ -1767,14 +1733,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Amazon Web Services tags that contain a key value pair and may be searched by console, command line, or API. """ -function create_registry(RegistryName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "CreateRegistry", - Dict{String,Any}("RegistryName" => RegistryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_registry(RegistryName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "CreateRegistry", + Dict{String,Any}("RegistryName" => RegistryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_registry( RegistryName, params::AbstractDict{String}; @@ -1847,16 +1811,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys console, command line, or API. If specified, follows the Amazon Web Services tags-on-create pattern. """ -function create_schema( - DataFormat, SchemaName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +create_schema(DataFormat, SchemaName; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "CreateSchema", Dict{String,Any}("DataFormat" => DataFormat, "SchemaName" => SchemaName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_schema( DataFormat, SchemaName, @@ -1889,9 +1850,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DagNodes"`: A list of the nodes in the DAG. - `"Language"`: The programming language of the resulting code from the DAG. """ -function create_script(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("CreateScript"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_script(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("CreateScript"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_script( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1915,18 +1875,14 @@ Written by Crawlers, Jobs, and Development Endpoints. - `name`: The name for the new security configuration. """ -function create_security_configuration( +create_security_configuration( EncryptionConfiguration, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CreateSecurityConfiguration", + Dict{String,Any}("EncryptionConfiguration" => EncryptionConfiguration, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateSecurityConfiguration", - Dict{String,Any}( - "EncryptionConfiguration" => EncryptionConfiguration, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_security_configuration( EncryptionConfiguration, Name, @@ -2006,16 +1962,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys memory) with 128 GB disk (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler. """ -function create_session( - Command, Id, Role; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +create_session(Command, Id, Role; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "CreateSession", Dict{String,Any}("Command" => Command, "Id" => Id, "Role" => Role); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_session( Command, Id, @@ -2059,16 +2012,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the table. - `"TransactionId"`: The ID of the transaction. """ -function create_table( - DatabaseName, TableInput; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +create_table(DatabaseName, TableInput; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "CreateTable", Dict{String,Any}("DatabaseName" => DatabaseName, "TableInput" => TableInput); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_table( DatabaseName, TableInput, @@ -2107,27 +2057,25 @@ supported optimizer type. - `type`: The type of table optimizer. Currently, the only valid value is compaction. """ -function create_table_optimizer( +create_table_optimizer( CatalogId, DatabaseName, TableName, TableOptimizerConfiguration, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "CreateTableOptimizer", + Dict{String,Any}( + "CatalogId" => CatalogId, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + "TableOptimizerConfiguration" => TableOptimizerConfiguration, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateTableOptimizer", - Dict{String,Any}( - "CatalogId" => CatalogId, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - "TableOptimizerConfiguration" => TableOptimizerConfiguration, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_table_optimizer( CatalogId, DatabaseName, @@ -2185,16 +2133,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the developer guide. - `"WorkflowName"`: The name of the workflow associated with the trigger. """ -function create_trigger( - Actions, Name, Type; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +create_trigger(Actions, Name, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "CreateTrigger", Dict{String,Any}("Actions" => Actions, "Name" => Name, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_trigger( Actions, Name, @@ -2232,16 +2177,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the usage profile. - `"Tags"`: A list of tags applied to the usage profile. """ -function create_usage_profile( +create_usage_profile( Configuration, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CreateUsageProfile", + Dict{String,Any}("Configuration" => Configuration, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateUsageProfile", - Dict{String,Any}("Configuration" => Configuration, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_usage_profile( Configuration, Name, @@ -2278,16 +2221,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog in which to create the function. If none is provided, the Amazon Web Services account ID is used by default. """ -function create_user_defined_function( +create_user_defined_function( DatabaseName, FunctionInput; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "CreateUserDefinedFunction", + Dict{String,Any}("DatabaseName" => DatabaseName, "FunctionInput" => FunctionInput); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "CreateUserDefinedFunction", - Dict{String,Any}("DatabaseName" => DatabaseName, "FunctionInput" => FunctionInput); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_defined_function( DatabaseName, FunctionInput, @@ -2330,14 +2271,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys no limit to the number of concurrent workflow runs. - `"Tags"`: The tags to be used with this workflow. """ -function create_workflow(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "CreateWorkflow", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_workflow(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "CreateWorkflow", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_workflow( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2359,14 +2298,12 @@ Deletes an existing blueprint. - `name`: The name of the blueprint to delete. """ -function delete_blueprint(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteBlueprint", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_blueprint(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteBlueprint", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_blueprint( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2388,14 +2325,12 @@ Removes a classifier from the Data Catalog. - `name`: Name of the classifier to remove. """ -function delete_classifier(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteClassifier", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_classifier(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteClassifier", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_classifier( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2425,25 +2360,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partitions in question reside. If none is supplied, the Amazon Web Services account ID is used by default. """ -function delete_column_statistics_for_partition( +delete_column_statistics_for_partition( ColumnName, DatabaseName, PartitionValues, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "DeleteColumnStatisticsForPartition", + Dict{String,Any}( + "ColumnName" => ColumnName, + "DatabaseName" => DatabaseName, + "PartitionValues" => PartitionValues, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeleteColumnStatisticsForPartition", - Dict{String,Any}( - "ColumnName" => ColumnName, - "DatabaseName" => DatabaseName, - "PartitionValues" => PartitionValues, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_column_statistics_for_partition( ColumnName, DatabaseName, @@ -2488,20 +2421,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partitions in question reside. If none is supplied, the Amazon Web Services account ID is used by default. """ -function delete_column_statistics_for_table( +delete_column_statistics_for_table( ColumnName, DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "DeleteColumnStatisticsForTable", + Dict{String,Any}( + "ColumnName" => ColumnName, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeleteColumnStatisticsForTable", - Dict{String,Any}( - "ColumnName" => ColumnName, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_column_statistics_for_table( ColumnName, DatabaseName, @@ -2541,16 +2472,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog in which the connection resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function delete_connection( - ConnectionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +delete_connection(ConnectionName; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "DeleteConnection", Dict{String,Any}("ConnectionName" => ConnectionName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connection( ConnectionName, params::AbstractDict{String}; @@ -2576,14 +2504,12 @@ Removes a specified crawler from the Glue Data Catalog, unless the crawler state - `name`: The name of the crawler to remove. """ -function delete_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteCrawler", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteCrawler", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_crawler( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2605,14 +2531,12 @@ Deletes a custom pattern by specifying its name. - `name`: The name of the custom pattern that you want to delete. """ -function delete_custom_entity_type(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteCustomEntityType", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_custom_entity_type(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteCustomEntityType", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_custom_entity_type( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2634,16 +2558,13 @@ Deletes a data quality ruleset. - `name`: A name for the data quality ruleset. """ -function delete_data_quality_ruleset( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +delete_data_quality_ruleset(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "DeleteDataQualityRuleset", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_data_quality_ruleset( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2677,14 +2598,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function delete_database(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteDatabase", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_database(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteDatabase", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_database( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2706,16 +2625,13 @@ Deletes a specified development endpoint. - `endpoint_name`: The name of the DevEndpoint. """ -function delete_dev_endpoint( - EndpointName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +delete_dev_endpoint(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "DeleteDevEndpoint", Dict{String,Any}("EndpointName" => EndpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dev_endpoint( EndpointName, params::AbstractDict{String}; @@ -2742,14 +2658,12 @@ thrown. - `job_name`: The name of the job definition to delete. """ -function delete_job(JobName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteJob", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_job(JobName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteJob", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_job( JobName, params::AbstractDict{String}; @@ -2778,14 +2692,12 @@ no longer succeed. - `transform_id`: The unique identifier of the transform to delete. """ -function delete_mltransform(TransformId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteMLTransform", - Dict{String,Any}("TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_mltransform(TransformId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteMLTransform", + Dict{String,Any}("TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_mltransform( TransformId, params::AbstractDict{String}; @@ -2817,23 +2729,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partition to be deleted resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function delete_partition( +delete_partition( DatabaseName, PartitionValues, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "DeletePartition", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "PartitionValues" => PartitionValues, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeletePartition", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "PartitionValues" => PartitionValues, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_partition( DatabaseName, PartitionValues, @@ -2876,20 +2786,18 @@ Deletes a specified partition index from an existing table. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CatalogId"`: The catalog ID where the table resides. """ -function delete_partition_index( +delete_partition_index( DatabaseName, IndexName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "DeletePartitionIndex", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "IndexName" => IndexName, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeletePartitionIndex", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "IndexName" => IndexName, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_partition_index( DatabaseName, IndexName, @@ -2929,14 +2837,12 @@ UpdateRegistry, CreateSchema, UpdateSchema, and RegisterSchemaVersion APIs. Resource Name (ARN). """ -function delete_registry(RegistryId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteRegistry", - Dict{String,Any}("RegistryId" => RegistryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_registry(RegistryId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteRegistry", + Dict{String,Any}("RegistryId" => RegistryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_registry( RegistryId, params::AbstractDict{String}; @@ -2963,11 +2869,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyHashCondition"`: The hash value returned when this policy was set. - `"ResourceArn"`: The ARN of the Glue resource for the resource policy to be deleted. """ -function delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("DeleteResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2993,14 +2896,12 @@ GetSchemaByDefinition, and RegisterSchemaVersion APIs. Resource Name (ARN). """ -function delete_schema(SchemaId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteSchema", - Dict{String,Any}("SchemaId" => SchemaId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_schema(SchemaId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteSchema", + Dict{String,Any}("SchemaId" => SchemaId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_schema( SchemaId, params::AbstractDict{String}; @@ -3040,16 +2941,14 @@ returned. version number, 5 a range, 5-8 : deletes versions 5, 6, 7, 8 """ -function delete_schema_versions( +delete_schema_versions( SchemaId, Versions; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "DeleteSchemaVersions", + Dict{String,Any}("SchemaId" => SchemaId, "Versions" => Versions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeleteSchemaVersions", - Dict{String,Any}("SchemaId" => SchemaId, "Versions" => Versions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_schema_versions( SchemaId, Versions, @@ -3080,16 +2979,13 @@ Deletes a specified security configuration. - `name`: The name of the security configuration to delete. """ -function delete_security_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +delete_security_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "DeleteSecurityConfiguration", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_security_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3114,14 +3010,12 @@ Deletes the session. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RequestOrigin"`: The name of the origin of the delete session request. """ -function delete_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteSession", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteSession", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_session( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3156,16 +3050,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Amazon Web Services account ID is used by default. - `"TransactionId"`: The transaction ID at which to delete the table contents. """ -function delete_table( - DatabaseName, Name; aws_config::AbstractAWSConfig=current_aws_config() +delete_table(DatabaseName, Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteTable", + Dict{String,Any}("DatabaseName" => DatabaseName, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeleteTable", - Dict{String,Any}("DatabaseName" => DatabaseName, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_table( DatabaseName, Name, @@ -3200,25 +3090,23 @@ longer be performed on the table. - `type`: The type of table optimizer. """ -function delete_table_optimizer( +delete_table_optimizer( CatalogId, DatabaseName, TableName, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "DeleteTableOptimizer", + Dict{String,Any}( + "CatalogId" => CatalogId, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeleteTableOptimizer", - Dict{String,Any}( - "CatalogId" => CatalogId, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_table_optimizer( CatalogId, DatabaseName, @@ -3265,20 +3153,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default. """ -function delete_table_version( +delete_table_version( DatabaseName, TableName, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "DeleteTableVersion", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "TableName" => TableName, + "VersionId" => VersionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeleteTableVersion", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "TableName" => TableName, - "VersionId" => VersionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_table_version( DatabaseName, TableName, @@ -3314,14 +3200,12 @@ Deletes a specified trigger. If the trigger is not found, no exception is thrown - `name`: The name of the trigger to delete. """ -function delete_trigger(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteTrigger", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_trigger(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteTrigger", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_trigger( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3343,14 +3227,12 @@ Deletes the Glue specified usage profile. - `name`: The name of the usage profile to delete. """ -function delete_usage_profile(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteUsageProfile", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_usage_profile(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteUsageProfile", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_usage_profile( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3377,16 +3259,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the function to be deleted is located. If none is supplied, the Amazon Web Services account ID is used by default. """ -function delete_user_defined_function( +delete_user_defined_function( DatabaseName, FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "DeleteUserDefinedFunction", + Dict{String,Any}("DatabaseName" => DatabaseName, "FunctionName" => FunctionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "DeleteUserDefinedFunction", - Dict{String,Any}("DatabaseName" => DatabaseName, "FunctionName" => FunctionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_defined_function( DatabaseName, FunctionName, @@ -3419,14 +3299,12 @@ Deletes a workflow. - `name`: Name of the workflow to be deleted. """ -function delete_workflow(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "DeleteWorkflow", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_workflow(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "DeleteWorkflow", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_workflow( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3452,14 +3330,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IncludeBlueprint"`: Specifies whether or not to include the blueprint in the response. - `"IncludeParameterSpec"`: Specifies whether or not to include the parameter specification. """ -function get_blueprint(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetBlueprint", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_blueprint(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetBlueprint", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_blueprint( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3482,16 +3358,14 @@ Retrieves the details of a blueprint run. - `run_id`: The run ID for the blueprint run you want to retrieve. """ -function get_blueprint_run( +get_blueprint_run( BlueprintName, RunId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetBlueprintRun", + Dict{String,Any}("BlueprintName" => BlueprintName, "RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetBlueprintRun", - Dict{String,Any}("BlueprintName" => BlueprintName, "RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_blueprint_run( BlueprintName, RunId, @@ -3526,16 +3400,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of a list to return. - `"NextToken"`: A continuation token, if this is a continuation request. """ -function get_blueprint_runs( - BlueprintName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +get_blueprint_runs(BlueprintName; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "GetBlueprintRuns", Dict{String,Any}("BlueprintName" => BlueprintName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_blueprint_runs( BlueprintName, params::AbstractDict{String}; @@ -3562,11 +3433,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the catalog to migrate. Currently, this should be the Amazon Web Services account ID. """ -function get_catalog_import_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetCatalogImportStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_catalog_import_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetCatalogImportStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_catalog_import_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3588,14 +3456,12 @@ Retrieve a classifier by name. - `name`: Name of the classifier to retrieve. """ -function get_classifier(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetClassifier", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_classifier(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetClassifier", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_classifier( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3618,9 +3484,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The size of the list to return (optional). - `"NextToken"`: An optional continuation token. """ -function get_classifiers(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetClassifiers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_classifiers(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetClassifiers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_classifiers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3647,25 +3512,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partitions in question reside. If none is supplied, the Amazon Web Services account ID is used by default. """ -function get_column_statistics_for_partition( +get_column_statistics_for_partition( ColumnNames, DatabaseName, PartitionValues, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "GetColumnStatisticsForPartition", + Dict{String,Any}( + "ColumnNames" => ColumnNames, + "DatabaseName" => DatabaseName, + "PartitionValues" => PartitionValues, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetColumnStatisticsForPartition", - Dict{String,Any}( - "ColumnNames" => ColumnNames, - "DatabaseName" => DatabaseName, - "PartitionValues" => PartitionValues, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_column_statistics_for_partition( ColumnNames, DatabaseName, @@ -3710,20 +3573,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partitions in question reside. If none is supplied, the Amazon Web Services account ID is used by default. """ -function get_column_statistics_for_table( +get_column_statistics_for_table( ColumnNames, DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetColumnStatisticsForTable", + Dict{String,Any}( + "ColumnNames" => ColumnNames, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetColumnStatisticsForTable", - Dict{String,Any}( - "ColumnNames" => ColumnNames, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_column_statistics_for_table( ColumnNames, DatabaseName, @@ -3760,16 +3621,14 @@ Get the associated metadata/information for a task run, given a task run ID. run. """ -function get_column_statistics_task_run( +get_column_statistics_task_run( ColumnStatisticsTaskRunId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetColumnStatisticsTaskRun", + Dict{String,Any}("ColumnStatisticsTaskRunId" => ColumnStatisticsTaskRunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetColumnStatisticsTaskRun", - Dict{String,Any}("ColumnStatisticsTaskRunId" => ColumnStatisticsTaskRunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_column_statistics_task_run( ColumnStatisticsTaskRunId, params::AbstractDict{String}; @@ -3804,16 +3663,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of the response. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_column_statistics_task_runs( +get_column_statistics_task_runs( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetColumnStatisticsTaskRuns", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetColumnStatisticsTaskRuns", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_column_statistics_task_runs( DatabaseName, TableName, @@ -3853,14 +3710,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to use the KMS key to decrypt the password, but it does have permission to access the rest of the connection properties. """ -function get_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetConnection", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_connection(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetConnection", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_connection( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3891,9 +3746,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of connections to return in one response. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetConnections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3912,14 +3766,12 @@ Retrieves metadata for a specified crawler. - `name`: The name of the crawler to retrieve metadata for. """ -function get_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetCrawler", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetCrawler", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_crawler( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3943,9 +3795,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of a list to return. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_crawler_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetCrawlerMetrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_crawler_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetCrawlerMetrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_crawler_metrics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3965,9 +3816,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The number of crawlers to return on each call. - `"NextToken"`: A continuation token, if this is a continuation request. """ -function get_crawlers(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetCrawlers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_crawlers(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetCrawlers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_crawlers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3986,14 +3836,12 @@ Retrieves the details of a custom pattern by specifying its name. - `name`: The name of the custom pattern that you want to retrieve. """ -function get_custom_entity_type(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetCustomEntityType", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_custom_entity_type(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetCustomEntityType", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_custom_entity_type( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4016,15 +3864,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog to retrieve the security configuration for. If none is provided, the Amazon Web Services account ID is used by default. """ -function get_data_catalog_encryption_settings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +get_data_catalog_encryption_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "GetDataCatalogEncryptionSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_catalog_encryption_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4036,6 +3881,81 @@ function get_data_catalog_encryption_settings( ) end +""" + get_data_quality_model(profile_id) + get_data_quality_model(profile_id, params::Dict{String,<:Any}) + +Retrieve the training status of the model along with more information (CompletedOn, +StartedOn, FailureReason). + +# Arguments +- `profile_id`: The Profile ID. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"StatisticId"`: The Statistic ID. +""" +get_data_quality_model(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( + "GetDataQualityModel", + Dict{String,Any}("ProfileId" => ProfileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function get_data_quality_model( + ProfileId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return glue( + "GetDataQualityModel", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("ProfileId" => ProfileId), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_data_quality_model_result(profile_id, statistic_id) + get_data_quality_model_result(profile_id, statistic_id, params::Dict{String,<:Any}) + +Retrieve a statistic's predictions for a given Profile ID. + +# Arguments +- `profile_id`: The Profile ID. +- `statistic_id`: The Statistic ID. + +""" +get_data_quality_model_result( + ProfileId, StatisticId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetDataQualityModelResult", + Dict{String,Any}("ProfileId" => ProfileId, "StatisticId" => StatisticId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_data_quality_model_result( + ProfileId, + StatisticId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return glue( + "GetDataQualityModelResult", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("ProfileId" => ProfileId, "StatisticId" => StatisticId), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ get_data_quality_result(result_id) get_data_quality_result(result_id, params::Dict{String,<:Any}) @@ -4046,16 +3966,13 @@ Retrieves the result of a data quality rule evaluation. - `result_id`: A unique result ID for the data quality result. """ -function get_data_quality_result( - ResultId; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +get_data_quality_result(ResultId; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "GetDataQualityResult", Dict{String,Any}("ResultId" => ResultId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_quality_result( ResultId, params::AbstractDict{String}; @@ -4081,16 +3998,14 @@ Gets the specified recommendation run that was used to generate rules. - `run_id`: The unique run identifier associated with this run. """ -function get_data_quality_rule_recommendation_run( +get_data_quality_rule_recommendation_run( RunId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetDataQualityRuleRecommendationRun", + Dict{String,Any}("RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetDataQualityRuleRecommendationRun", - Dict{String,Any}("RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_quality_rule_recommendation_run( RunId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4112,14 +4027,12 @@ Returns an existing ruleset by identifier or name. - `name`: The name of the ruleset. """ -function get_data_quality_ruleset(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetDataQualityRuleset", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_data_quality_ruleset(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetDataQualityRuleset", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_data_quality_ruleset( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4141,16 +4054,14 @@ Retrieves a specific run where a ruleset is evaluated against a data source. - `run_id`: The unique run identifier associated with this run. """ -function get_data_quality_ruleset_evaluation_run( +get_data_quality_ruleset_evaluation_run( RunId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetDataQualityRulesetEvaluationRun", + Dict{String,Any}("RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetDataQualityRulesetEvaluationRun", - Dict{String,Any}("RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_quality_ruleset_evaluation_run( RunId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4177,14 +4088,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function get_database(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetDatabase", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_database(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetDatabase", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_database( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4204,6 +4113,8 @@ Retrieves all databases defined in a given Data Catalog. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AttributesToGet"`: Specifies the database fields returned by the GetDatabases call. + This parameter doesn’t accept an empty list. The request must include the NAME. - `"CatalogId"`: The ID of the Data Catalog from which to retrieve Databases. If none is provided, the Amazon Web Services account ID is used by default. - `"MaxResults"`: The maximum number of databases to return in one response. @@ -4215,9 +4126,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set to ALL, will list the databases shared with your account, as well as the databases in yor local account. """ -function get_databases(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_databases(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_databases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4236,9 +4146,8 @@ Transforms a Python script into a directed acyclic graph (DAG). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PythonScript"`: The Python script to transform. """ -function get_dataflow_graph(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetDataflowGraph"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_dataflow_graph(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetDataflowGraph"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_dataflow_graph( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4260,14 +4169,12 @@ development endpoint, Glue returns only a public IP address. - `endpoint_name`: Name of the DevEndpoint to retrieve information for. """ -function get_dev_endpoint(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetDevEndpoint", - Dict{String,Any}("EndpointName" => EndpointName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_dev_endpoint(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetDevEndpoint", + Dict{String,Any}("EndpointName" => EndpointName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_dev_endpoint( EndpointName, params::AbstractDict{String}; @@ -4297,9 +4204,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of information to return. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_dev_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetDevEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_dev_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetDevEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_dev_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4318,14 +4224,12 @@ Retrieves an existing job definition. - `job_name`: The name of the job definition to retrieve. """ -function get_job(JobName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetJob", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job(JobName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetJob", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job( JobName, params::AbstractDict{String}; @@ -4354,14 +4258,12 @@ by Glue Job structure Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RunId"`: The unique run identifier associated with this job run. """ -function get_job_bookmark(JobName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetJobBookmark", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job_bookmark(JobName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetJobBookmark", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job_bookmark( JobName, params::AbstractDict{String}; @@ -4390,14 +4292,12 @@ your workflow and job run. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PredecessorsIncluded"`: True if a list of predecessor runs should be returned. """ -function get_job_run(JobName, RunId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetJobRun", - Dict{String,Any}("JobName" => JobName, "RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job_run(JobName, RunId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetJobRun", + Dict{String,Any}("JobName" => JobName, "RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job_run( JobName, RunId, @@ -4430,14 +4330,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of the response. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_job_runs(JobName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetJobRuns", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job_runs(JobName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetJobRuns", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job_runs( JobName, params::AbstractDict{String}; @@ -4462,9 +4360,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of the response. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4485,14 +4382,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Location"`: Parameters for the mapping. - `"Sinks"`: A list of target tables. """ -function get_mapping(Source; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetMapping", - Dict{String,Any}("Source" => Source); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_mapping(Source; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetMapping", + Dict{String,Any}("Source" => Source); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_mapping( Source, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4518,16 +4413,13 @@ the TaskRunID and its parent transform's TransformID. - `transform_id`: The unique identifier of the machine learning transform. """ -function get_mltask_run( - TaskRunId, TransformId; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +get_mltask_run(TaskRunId, TransformId; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "GetMLTaskRun", Dict{String,Any}("TaskRunId" => TaskRunId, "TransformId" => TransformId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_mltask_run( TaskRunId, TransformId, @@ -4569,14 +4461,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token for pagination of the results. The default is empty. - `"Sort"`: The sorting criteria, in the TaskRunSortCriteria structure, for the task run. """ -function get_mltask_runs(TransformId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetMLTaskRuns", - Dict{String,Any}("TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_mltask_runs(TransformId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetMLTaskRuns", + Dict{String,Any}("TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_mltask_runs( TransformId, params::AbstractDict{String}; @@ -4607,14 +4497,12 @@ calling GetMLTransform. transform was created. """ -function get_mltransform(TransformId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetMLTransform", - Dict{String,Any}("TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_mltransform(TransformId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetMLTransform", + Dict{String,Any}("TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_mltransform( TransformId, params::AbstractDict{String}; @@ -4647,9 +4535,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A paginated token to offset the results. - `"Sort"`: The sorting criteria. """ -function get_mltransforms(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetMLTransforms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_mltransforms(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetMLTransforms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_mltransforms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4674,23 +4561,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partition in question resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function get_partition( +get_partition( DatabaseName, PartitionValues, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "GetPartition", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "PartitionValues" => PartitionValues, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetPartition", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "PartitionValues" => PartitionValues, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_partition( DatabaseName, PartitionValues, @@ -4733,16 +4618,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The catalog ID where the table resides. - `"NextToken"`: A continuation token, included if this is a continuation call. """ -function get_partition_indexes( +get_partition_indexes( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetPartitionIndexes", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetPartitionIndexes", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_partition_indexes( DatabaseName, TableName, @@ -4811,16 +4694,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Segment"`: The segment of the table's partitions to scan in this request. - `"TransactionId"`: The transaction ID at which to read the partition contents. """ -function get_partitions( +get_partitions( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetPartitions", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetPartitions", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_partitions( DatabaseName, TableName, @@ -4862,14 +4743,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Location"`: The parameters for the mapping. - `"Sinks"`: The target tables. """ -function get_plan(Mapping, Source; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetPlan", - Dict{String,Any}("Mapping" => Mapping, "Source" => Source); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_plan(Mapping, Source; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetPlan", + Dict{String,Any}("Mapping" => Mapping, "Source" => Source); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_plan( Mapping, Source, @@ -4899,14 +4778,12 @@ Describes the specified registry in detail. Resource Name (ARN). """ -function get_registry(RegistryId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetRegistry", - Dict{String,Any}("RegistryId" => RegistryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_registry(RegistryId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetRegistry", + Dict{String,Any}("RegistryId" => RegistryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_registry( RegistryId, params::AbstractDict{String}; @@ -4936,11 +4813,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of a list to return. - `"NextToken"`: A continuation token, if this is a continuation request. """ -function get_resource_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetResourcePolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_resource_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetResourcePolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_resource_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4965,9 +4839,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys view all existing resource policies. For more information see Specifying Glue Resource ARNs. """ -function get_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4989,14 +4862,12 @@ Describes the specified schema in detail. of the schema. Either SchemaArn or SchemaName and RegistryName has to be provided. """ -function get_schema(SchemaId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetSchema", - Dict{String,Any}("SchemaId" => SchemaId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_schema(SchemaId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetSchema", + Dict{String,Any}("SchemaId" => SchemaId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_schema( SchemaId, params::AbstractDict{String}; @@ -5030,16 +4901,14 @@ statuses will not be included in the results. One of SchemaArn or SchemaName has to be provided. """ -function get_schema_by_definition( +get_schema_by_definition( SchemaDefinition, SchemaId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetSchemaByDefinition", + Dict{String,Any}("SchemaDefinition" => SchemaDefinition, "SchemaId" => SchemaId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetSchemaByDefinition", - Dict{String,Any}("SchemaDefinition" => SchemaDefinition, "SchemaId" => SchemaId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_schema_by_definition( SchemaDefinition, SchemaId, @@ -5080,9 +4949,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for fetching by schema ID. Either this or the SchemaId wrapper has to be provided. - `"SchemaVersionNumber"`: The version number of the schema. """ -function get_schema_version(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetSchemaVersion"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_schema_version(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetSchemaVersion"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_schema_version( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5109,25 +4977,23 @@ between two schema definitions under the same schema. - `second_schema_version_number`: The second of the two schema versions to be compared. """ -function get_schema_versions_diff( +get_schema_versions_diff( FirstSchemaVersionNumber, SchemaDiffType, SchemaId, SecondSchemaVersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "GetSchemaVersionsDiff", + Dict{String,Any}( + "FirstSchemaVersionNumber" => FirstSchemaVersionNumber, + "SchemaDiffType" => SchemaDiffType, + "SchemaId" => SchemaId, + "SecondSchemaVersionNumber" => SecondSchemaVersionNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetSchemaVersionsDiff", - Dict{String,Any}( - "FirstSchemaVersionNumber" => FirstSchemaVersionNumber, - "SchemaDiffType" => SchemaDiffType, - "SchemaId" => SchemaId, - "SecondSchemaVersionNumber" => SecondSchemaVersionNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_schema_versions_diff( FirstSchemaVersionNumber, SchemaDiffType, @@ -5165,16 +5031,12 @@ Retrieves a specified security configuration. - `name`: The name of the security configuration to retrieve. """ -function get_security_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() +get_security_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetSecurityConfiguration", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetSecurityConfiguration", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_security_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5197,11 +5059,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_security_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetSecurityConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_security_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetSecurityConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_security_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5226,14 +5086,12 @@ Retrieves the session. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RequestOrigin"`: The origin of the request. """ -function get_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetSession", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetSession", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_session( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5259,14 +5117,12 @@ Retrieves the statement. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RequestOrigin"`: The origin of the request. """ -function get_statement(Id, SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetStatement", - Dict{String,Any}("Id" => Id, "SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_statement(Id, SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetStatement", + Dict{String,Any}("Id" => Id, "SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_statement( Id, SessionId, @@ -5301,18 +5157,18 @@ Retrieves the Table definition in a Data Catalog for a specified table. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CatalogId"`: The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default. +- `"IncludeStatusDetails"`: Specifies whether to include status details related to a + request to create or update an Glue Data Catalog view. - `"QueryAsOfTime"`: The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId. - `"TransactionId"`: The transaction ID at which to read the table contents. """ -function get_table(DatabaseName, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetTable", - Dict{String,Any}("DatabaseName" => DatabaseName, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_table(DatabaseName, Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetTable", + Dict{String,Any}("DatabaseName" => DatabaseName, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_table( DatabaseName, Name, @@ -5346,25 +5202,23 @@ Returns the configuration of all optimizers associated with a specified table. - `type`: The type of table optimizer. """ -function get_table_optimizer( +get_table_optimizer( CatalogId, DatabaseName, TableName, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "GetTableOptimizer", + Dict{String,Any}( + "CatalogId" => CatalogId, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetTableOptimizer", - Dict{String,Any}( - "CatalogId" => CatalogId, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_table_optimizer( CatalogId, DatabaseName, @@ -5411,16 +5265,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionId"`: The ID value of the table version to be retrieved. A VersionID is a string representation of an integer. Each version is incremented by 1. """ -function get_table_version( +get_table_version( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetTableVersion", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetTableVersion", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_table_version( DatabaseName, TableName, @@ -5460,16 +5312,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of table versions to return in one response. - `"NextToken"`: A continuation token, if this is not the first call. """ -function get_table_versions( +get_table_versions( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetTableVersions", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetTableVersions", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_table_versions( DatabaseName, TableName, @@ -5502,24 +5352,28 @@ Retrieves the definitions of some or all of the tables in a given Database. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AttributesToGet"`: Specifies the table fields returned by the GetTables call. This + parameter doesn’t accept an empty list. The request must include NAME. The following are + the valid combinations of values: NAME - Names of all tables in the database. NAME, + TABLE_TYPE - Names of all tables and the table types. - `"CatalogId"`: The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default. - `"Expression"`: A regular expression pattern. If present, only those tables whose names match the pattern are returned. +- `"IncludeStatusDetails"`: Specifies whether to include status details related to a + request to create or update an Glue Data Catalog view. - `"MaxResults"`: The maximum number of tables to return in a single response. - `"NextToken"`: A continuation token, included if this is a continuation call. - `"QueryAsOfTime"`: The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId. - `"TransactionId"`: The transaction ID at which to read the table contents. """ -function get_tables(DatabaseName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetTables", - Dict{String,Any}("DatabaseName" => DatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_tables(DatabaseName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetTables", + Dict{String,Any}("DatabaseName" => DatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_tables( DatabaseName, params::AbstractDict{String}; @@ -5545,14 +5399,12 @@ Retrieves a list of tags associated with a resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource for which to retrieve tags. """ -function get_tags(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetTags", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_tags(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetTags", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_tags( ResourceArn, params::AbstractDict{String}; @@ -5578,14 +5430,12 @@ Retrieves the definition of a trigger. - `name`: The name of the trigger to retrieve. """ -function get_trigger(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetTrigger", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_trigger(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetTrigger", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_trigger( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5610,9 +5460,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of the response. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_triggers(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("GetTriggers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_triggers(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("GetTriggers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_triggers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5644,27 +5493,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Region"`: Specified only if the base tables belong to a different Amazon Web Services Region. """ -function get_unfiltered_partition_metadata( +get_unfiltered_partition_metadata( CatalogId, DatabaseName, PartitionValues, SupportedPermissionTypes, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "GetUnfilteredPartitionMetadata", + Dict{String,Any}( + "CatalogId" => CatalogId, + "DatabaseName" => DatabaseName, + "PartitionValues" => PartitionValues, + "SupportedPermissionTypes" => SupportedPermissionTypes, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetUnfilteredPartitionMetadata", - Dict{String,Any}( - "CatalogId" => CatalogId, - "DatabaseName" => DatabaseName, - "PartitionValues" => PartitionValues, - "SupportedPermissionTypes" => SupportedPermissionTypes, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_unfiltered_partition_metadata( CatalogId, DatabaseName, @@ -5740,25 +5587,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Region. - `"Segment"`: The segment of the table's partitions to scan in this request. """ -function get_unfiltered_partitions_metadata( +get_unfiltered_partitions_metadata( CatalogId, DatabaseName, SupportedPermissionTypes, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "GetUnfilteredPartitionsMetadata", + Dict{String,Any}( + "CatalogId" => CatalogId, + "DatabaseName" => DatabaseName, + "SupportedPermissionTypes" => SupportedPermissionTypes, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetUnfilteredPartitionsMetadata", - Dict{String,Any}( - "CatalogId" => CatalogId, - "DatabaseName" => DatabaseName, - "SupportedPermissionTypes" => SupportedPermissionTypes, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_unfiltered_partitions_metadata( CatalogId, DatabaseName, @@ -5833,25 +5678,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SupportedDialect"`: A structure specifying the dialect and dialect version used by the query engine. """ -function get_unfiltered_table_metadata( +get_unfiltered_table_metadata( CatalogId, DatabaseName, Name, SupportedPermissionTypes; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "GetUnfilteredTableMetadata", + Dict{String,Any}( + "CatalogId" => CatalogId, + "DatabaseName" => DatabaseName, + "Name" => Name, + "SupportedPermissionTypes" => SupportedPermissionTypes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetUnfilteredTableMetadata", - Dict{String,Any}( - "CatalogId" => CatalogId, - "DatabaseName" => DatabaseName, - "Name" => Name, - "SupportedPermissionTypes" => SupportedPermissionTypes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_unfiltered_table_metadata( CatalogId, DatabaseName, @@ -5889,14 +5732,12 @@ Retrieves information about the specified Glue usage profile. - `name`: The name of the usage profile to retrieve. """ -function get_usage_profile(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetUsageProfile", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_usage_profile(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetUsageProfile", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_usage_profile( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5923,16 +5764,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the function to be retrieved is located. If none is provided, the Amazon Web Services account ID is used by default. """ -function get_user_defined_function( +get_user_defined_function( DatabaseName, FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetUserDefinedFunction", + Dict{String,Any}("DatabaseName" => DatabaseName, "FunctionName" => FunctionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetUserDefinedFunction", - Dict{String,Any}("DatabaseName" => DatabaseName, "FunctionName" => FunctionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_user_defined_function( DatabaseName, FunctionName, @@ -5974,16 +5813,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of functions to return in one response. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function get_user_defined_functions( - Pattern; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +get_user_defined_functions(Pattern; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "GetUserDefinedFunctions", Dict{String,Any}("Pattern" => Pattern); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_user_defined_functions( Pattern, params::AbstractDict{String}; @@ -6011,14 +5847,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IncludeGraph"`: Specifies whether to include a graph when returning the workflow resource metadata. """ -function get_workflow(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetWorkflow", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_workflow(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetWorkflow", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_workflow( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6045,14 +5879,12 @@ for your workflow and job run. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"IncludeGraph"`: Specifies whether to include the workflow graph in response or not. """ -function get_workflow_run(Name, RunId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetWorkflowRun", - Dict{String,Any}("Name" => Name, "RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_workflow_run(Name, RunId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetWorkflowRun", + Dict{String,Any}("Name" => Name, "RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_workflow_run( Name, RunId, @@ -6080,16 +5912,14 @@ Retrieves the workflow run properties which were set during the run. - `run_id`: The ID of the workflow run whose run properties should be returned. """ -function get_workflow_run_properties( +get_workflow_run_properties( Name, RunId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "GetWorkflowRunProperties", + Dict{String,Any}("Name" => Name, "RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "GetWorkflowRunProperties", - Dict{String,Any}("Name" => Name, "RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workflow_run_properties( Name, RunId, @@ -6121,14 +5951,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of workflow runs to be included in the response. - `"NextToken"`: The maximum size of the response. """ -function get_workflow_runs(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "GetWorkflowRuns", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_workflow_runs(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "GetWorkflowRuns", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_workflow_runs( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6151,11 +5979,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the catalog to import. Currently, this should be the Amazon Web Services account ID. """ -function import_catalog_to_glue(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "ImportCatalogToGlue"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +import_catalog_to_glue(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ImportCatalogToGlue"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function import_catalog_to_glue( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6179,9 +6004,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A continuation token, if this is a continuation request. - `"Tags"`: Filters the list by an Amazon Web Services resource tag. """ -function list_blueprints(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListBlueprints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_blueprints(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListBlueprints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_blueprints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6201,15 +6025,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of the response. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function list_column_statistics_task_runs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +list_column_statistics_task_runs(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "ListColumnStatisticsTaskRuns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_column_statistics_task_runs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6237,9 +6058,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A continuation token, if this is a continuation request. - `"Tags"`: Specifies to return only these tagged resources. """ -function list_crawlers(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListCrawlers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_crawlers(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListCrawlers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_crawlers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6271,14 +6091,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is 100. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function list_crawls(CrawlerName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "ListCrawls", - Dict{String,Any}("CrawlerName" => CrawlerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_crawls(CrawlerName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "ListCrawls", + Dict{String,Any}("CrawlerName" => CrawlerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_crawls( CrawlerName, params::AbstractDict{String}; @@ -6306,11 +6124,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A paginated token to offset the results. - `"Tags"`: A list of key-value pair tags. """ -function list_custom_entity_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "ListCustomEntityTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_custom_entity_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListCustomEntityTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_custom_entity_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6334,11 +6149,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return. - `"NextToken"`: A paginated token to offset the results. """ -function list_data_quality_results(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "ListDataQualityResults"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_data_quality_results(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListDataQualityResults"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_data_quality_results( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6362,15 +6174,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return. - `"NextToken"`: A paginated token to offset the results. """ -function list_data_quality_rule_recommendation_runs(; +list_data_quality_rule_recommendation_runs(; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "ListDataQualityRuleRecommendationRuns"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "ListDataQualityRuleRecommendationRuns"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_quality_rule_recommendation_runs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6395,15 +6205,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return. - `"NextToken"`: A paginated token to offset the results. """ -function list_data_quality_ruleset_evaluation_runs(; +list_data_quality_ruleset_evaluation_runs(; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "ListDataQualityRulesetEvaluationRuns"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "ListDataQualityRulesetEvaluationRuns"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_quality_ruleset_evaluation_runs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6428,16 +6236,73 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A paginated token to offset the results. - `"Tags"`: A list of key-value pair tags. """ -function list_data_quality_rulesets(; aws_config::AbstractAWSConfig=current_aws_config()) +list_data_quality_rulesets(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListDataQualityRulesets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function list_data_quality_rulesets( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return glue( - "ListDataQualityRulesets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "ListDataQualityRulesets", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) end -function list_data_quality_rulesets( + +""" + list_data_quality_statistic_annotations() + list_data_quality_statistic_annotations(params::Dict{String,<:Any}) + +Retrieve annotations for a data quality statistic. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"MaxResults"`: The maximum number of results to return in this request. +- `"NextToken"`: A pagination token to retrieve the next set of results. +- `"ProfileId"`: The Profile ID. +- `"StatisticId"`: The Statistic ID. +- `"TimestampFilter"`: A timestamp filter. +""" +list_data_quality_statistic_annotations(; + aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "ListDataQualityStatisticAnnotations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_data_quality_statistic_annotations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return glue( - "ListDataQualityRulesets", + "ListDataQualityStatisticAnnotations", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_data_quality_statistics() + list_data_quality_statistics(params::Dict{String,<:Any}) + +Retrieves a list of data quality statistics. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"MaxResults"`: The maximum number of results to return in this request. +- `"NextToken"`: A pagination token to request the next page of results. +- `"ProfileId"`: The Profile ID. +- `"StatisticId"`: The Statistic ID. +- `"TimestampFilter"`: A timestamp filter. +""" +list_data_quality_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "ListDataQualityStatistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_data_quality_statistics( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return glue( + "ListDataQualityStatistics", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -6460,9 +6325,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A continuation token, if this is a continuation request. - `"Tags"`: Specifies to return only these tagged resources. """ -function list_dev_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListDevEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_dev_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListDevEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_dev_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6487,9 +6351,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A continuation token, if this is a continuation request. - `"Tags"`: Specifies to return only these tagged resources. """ -function list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6514,9 +6377,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Sort"`: A TransformSortCriteria used to sort the machine learning transforms. - `"Tags"`: Specifies to return only these tagged resources. """ -function list_mltransforms(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListMLTransforms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_mltransforms(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListMLTransforms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_mltransforms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6539,9 +6401,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys supplied, this will be defaulted to 25 per page. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function list_registries(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListRegistries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_registries(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListRegistries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_registries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6570,14 +6431,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys supplied, this will be defaulted to 25 per page. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function list_schema_versions(SchemaId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "ListSchemaVersions", - Dict{String,Any}("SchemaId" => SchemaId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_schema_versions(SchemaId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "ListSchemaVersions", + Dict{String,Any}("SchemaId" => SchemaId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_schema_versions( SchemaId, params::AbstractDict{String}; @@ -6610,9 +6469,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RegistryId"`: A wrapper structure that may contain the registry name and Amazon Resource Name (ARN). """ -function list_schemas(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListSchemas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_schemas(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListSchemas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_schemas( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6635,9 +6493,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RequestOrigin"`: The origin of the request. - `"Tags"`: Tags belonging to the session. """ -function list_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_sessions(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListSessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_sessions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6660,14 +6517,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A continuation token, if this is a continuation call. - `"RequestOrigin"`: The origin of the request to list statements. """ -function list_statements(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "ListStatements", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_statements(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "ListStatements", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_statements( SessionId, params::AbstractDict{String}; @@ -6700,25 +6555,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of optimizer runs to return on each call. - `"NextToken"`: A continuation token, if this is a continuation call. """ -function list_table_optimizer_runs( +list_table_optimizer_runs( CatalogId, DatabaseName, TableName, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "ListTableOptimizerRuns", + Dict{String,Any}( + "CatalogId" => CatalogId, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "ListTableOptimizerRuns", - Dict{String,Any}( - "CatalogId" => CatalogId, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_table_optimizer_runs( CatalogId, DatabaseName, @@ -6764,9 +6617,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A continuation token, if this is a continuation request. - `"Tags"`: Specifies to return only these tagged resources. """ -function list_triggers(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListTriggers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_triggers(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListTriggers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_triggers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6786,9 +6638,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of usage profiles to return in a single response. - `"NextToken"`: A continuation token, included if this is a continuation call. """ -function list_usage_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListUsageProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_usage_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListUsageProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_usage_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6808,9 +6659,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum size of a list to return. - `"NextToken"`: A continuation token, if this is a continuation request. """ -function list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("ListWorkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("ListWorkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_workflows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6834,28 +6684,69 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog to set the security configuration for. If none is provided, the Amazon Web Services account ID is used by default. """ -function put_data_catalog_encryption_settings( +put_data_catalog_encryption_settings( DataCatalogEncryptionSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "PutDataCatalogEncryptionSettings", + Dict{String,Any}("DataCatalogEncryptionSettings" => DataCatalogEncryptionSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function put_data_catalog_encryption_settings( + DataCatalogEncryptionSettings, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return glue( "PutDataCatalogEncryptionSettings", - Dict{String,Any}("DataCatalogEncryptionSettings" => DataCatalogEncryptionSettings); + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "DataCatalogEncryptionSettings" => DataCatalogEncryptionSettings + ), + params, + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function put_data_catalog_encryption_settings( - DataCatalogEncryptionSettings, + +""" + put_data_quality_profile_annotation(inclusion_annotation, profile_id) + put_data_quality_profile_annotation(inclusion_annotation, profile_id, params::Dict{String,<:Any}) + +Annotate all datapoints for a Profile. + +# Arguments +- `inclusion_annotation`: The inclusion annotation value to apply to the profile. +- `profile_id`: The ID of the data quality monitoring profile to annotate. + +""" +put_data_quality_profile_annotation( + InclusionAnnotation, ProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "PutDataQualityProfileAnnotation", + Dict{String,Any}( + "InclusionAnnotation" => InclusionAnnotation, "ProfileId" => ProfileId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function put_data_quality_profile_annotation( + InclusionAnnotation, + ProfileId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return glue( - "PutDataCatalogEncryptionSettings", + "PutDataQualityProfileAnnotation", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "DataCatalogEncryptionSettings" => DataCatalogEncryptionSettings + "InclusionAnnotation" => InclusionAnnotation, "ProfileId" => ProfileId ), params, ), @@ -6889,16 +6780,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use this parameter if no previous policy has been set. - `"ResourceArn"`: Do not use. For internal use only. """ -function put_resource_policy( - PolicyInJson; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +put_resource_policy(PolicyInJson; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "PutResourcePolicy", Dict{String,Any}("PolicyInJson" => PolicyInJson); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_resource_policy( PolicyInJson, params::AbstractDict{String}; @@ -6930,16 +6818,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SchemaVersionId"`: The unique version ID of the schema version. - `"SchemaVersionNumber"`: The version number of the schema. """ -function put_schema_version_metadata( +put_schema_version_metadata( MetadataKeyValue; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "PutSchemaVersionMetadata", + Dict{String,Any}("MetadataKeyValue" => MetadataKeyValue); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "PutSchemaVersionMetadata", - Dict{String,Any}("MetadataKeyValue" => MetadataKeyValue); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_schema_version_metadata( MetadataKeyValue, params::AbstractDict{String}; @@ -6971,18 +6857,14 @@ property to existing properties. - `run_properties`: The properties to put for the specified run. """ -function put_workflow_run_properties( +put_workflow_run_properties( Name, RunId, RunProperties; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "PutWorkflowRunProperties", + Dict{String,Any}("Name" => Name, "RunId" => RunId, "RunProperties" => RunProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "PutWorkflowRunProperties", - Dict{String,Any}( - "Name" => Name, "RunId" => RunId, "RunProperties" => RunProperties - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_workflow_run_properties( Name, RunId, @@ -7024,11 +6906,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SchemaVersionId"`: The unique version ID of the schema version. - `"SchemaVersionNumber"`: The version number of the schema. """ -function query_schema_version_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "QuerySchemaVersionMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +query_schema_version_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "QuerySchemaVersionMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function query_schema_version_metadata( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7063,16 +6943,14 @@ of the existing schema is returned to the caller. of the schema. Either SchemaArn or SchemaName and RegistryName has to be provided. """ -function register_schema_version( +register_schema_version( SchemaDefinition, SchemaId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "RegisterSchemaVersion", + Dict{String,Any}("SchemaDefinition" => SchemaDefinition, "SchemaId" => SchemaId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "RegisterSchemaVersion", - Dict{String,Any}("SchemaDefinition" => SchemaDefinition, "SchemaId" => SchemaId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_schema_version( SchemaDefinition, SchemaId, @@ -7112,16 +6990,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SchemaVersionId"`: The unique version ID of the schema version. - `"SchemaVersionNumber"`: The version number of the schema. """ -function remove_schema_version_metadata( +remove_schema_version_metadata( MetadataKeyValue; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "RemoveSchemaVersionMetadata", + Dict{String,Any}("MetadataKeyValue" => MetadataKeyValue); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "RemoveSchemaVersionMetadata", - Dict{String,Any}("MetadataKeyValue" => MetadataKeyValue); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_schema_version_metadata( MetadataKeyValue, params::AbstractDict{String}; @@ -7154,14 +7030,12 @@ structure Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RunId"`: The unique run identifier associated with this job run. """ -function reset_job_bookmark(JobName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "ResetJobBookmark", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +reset_job_bookmark(JobName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "ResetJobBookmark", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function reset_job_bookmark( JobName, params::AbstractDict{String}; @@ -7190,16 +7064,14 @@ are run. - `run_id`: The ID of the workflow run to resume. """ -function resume_workflow_run( +resume_workflow_run( Name, NodeIds, RunId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "ResumeWorkflowRun", + Dict{String,Any}("Name" => Name, "NodeIds" => NodeIds, "RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "ResumeWorkflowRun", - Dict{String,Any}("Name" => Name, "NodeIds" => NodeIds, "RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function resume_workflow_run( Name, NodeIds, @@ -7235,14 +7107,12 @@ Executes the statement. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RequestOrigin"`: The origin of the request. """ -function run_statement(Code, SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "RunStatement", - Dict{String,Any}("Code" => Code, "SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +run_statement(Code, SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "RunStatement", + Dict{String,Any}("Code" => Code, "SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function run_statement( Code, SessionId, @@ -7286,6 +7156,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exact-match compared with the Value member of PropertyPredicate. For example, if Key=Name and Value=link, tables named customer-link and xx-link-yy are returned, but xxlinkyy is not returned. +- `"IncludeStatusDetails"`: Specifies whether to include status details related to a + request to create or update an Glue Data Catalog view. - `"MaxResults"`: The maximum number of tables to return in a single response. - `"NextToken"`: A continuation token, included if this is a continuation call. - `"ResourceShareType"`: Allows you to specify that you want to search the tables shared @@ -7297,9 +7169,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortCriteria"`: A list of criteria for sorting the results by a field name, in an ascending or descending order. """ -function search_tables(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("SearchTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +search_tables(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("SearchTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function search_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7322,16 +7193,14 @@ Starts a new run of the specified blueprint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Parameters"`: Specifies the parameters as a BlueprintParameters object. """ -function start_blueprint_run( +start_blueprint_run( BlueprintName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "StartBlueprintRun", + Dict{String,Any}("BlueprintName" => BlueprintName, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "StartBlueprintRun", - Dict{String,Any}("BlueprintName" => BlueprintName, "RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_blueprint_run( BlueprintName, RoleArn, @@ -7374,18 +7243,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SecurityConfiguration"`: Name of the security configuration that is used to encrypt CloudWatch logs for the column stats task run. """ -function start_column_statistics_task_run( +start_column_statistics_task_run( DatabaseName, Role, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "StartColumnStatisticsTaskRun", + Dict{String,Any}( + "DatabaseName" => DatabaseName, "Role" => Role, "TableName" => TableName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "StartColumnStatisticsTaskRun", - Dict{String,Any}( - "DatabaseName" => DatabaseName, "Role" => Role, "TableName" => TableName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_column_statistics_task_run( DatabaseName, Role, @@ -7420,14 +7287,12 @@ is already running, returns a CrawlerRunningException. - `name`: Name of the crawler to start. """ -function start_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "StartCrawler", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "StartCrawler", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_crawler( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7450,16 +7315,13 @@ already running or the schedule state is already SCHEDULED. - `crawler_name`: Name of the crawler to schedule. """ -function start_crawler_schedule( - CrawlerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +start_crawler_schedule(CrawlerName; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "StartCrawlerSchedule", Dict{String,Any}("CrawlerName" => CrawlerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_crawler_schedule( CrawlerName, params::AbstractDict{String}; @@ -7493,21 +7355,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource. - `"CreatedRulesetName"`: A name for the ruleset. +- `"DataQualitySecurityConfiguration"`: The name of the security configuration created with + the data quality encryption option. - `"NumberOfWorkers"`: The number of G.1X workers to be used in the run. The default is 5. - `"Timeout"`: The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). """ -function start_data_quality_rule_recommendation_run( +start_data_quality_rule_recommendation_run( DataSource, Role; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( - "StartDataQualityRuleRecommendationRun", - Dict{String,Any}("DataSource" => DataSource, "Role" => Role); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +) = glue( + "StartDataQualityRuleRecommendationRun", + Dict{String,Any}("DataSource" => DataSource, "Role" => Role); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_data_quality_rule_recommendation_run( DataSource, Role, @@ -7551,18 +7413,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). """ -function start_data_quality_ruleset_evaluation_run( +start_data_quality_ruleset_evaluation_run( DataSource, Role, RulesetNames; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "StartDataQualityRulesetEvaluationRun", + Dict{String,Any}( + "DataSource" => DataSource, "Role" => Role, "RulesetNames" => RulesetNames + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "StartDataQualityRulesetEvaluationRun", - Dict{String,Any}( - "DataSource" => DataSource, "Role" => Role, "RulesetNames" => RulesetNames - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_data_quality_ruleset_evaluation_run( DataSource, Role, @@ -7606,16 +7466,14 @@ by calling the GetMLTaskRun API. - `transform_id`: The unique identifier of the machine learning transform. """ -function start_export_labels_task_run( +start_export_labels_task_run( OutputS3Path, TransformId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "StartExportLabelsTaskRun", + Dict{String,Any}("OutputS3Path" => OutputS3Path, "TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "StartExportLabelsTaskRun", - Dict{String,Any}("OutputS3Path" => OutputS3Path, "TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_export_labels_task_run( OutputS3Path, TransformId, @@ -7672,16 +7530,14 @@ the GetMLTaskRun operation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ReplaceAllLabels"`: Indicates whether to overwrite your existing labels. """ -function start_import_labels_task_run( +start_import_labels_task_run( InputS3Path, TransformId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "StartImportLabelsTaskRun", + Dict{String,Any}("InputS3Path" => InputS3Path, "TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "StartImportLabelsTaskRun", - Dict{String,Any}("InputS3Path" => InputS3Path, "TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_import_labels_task_run( InputS3Path, TransformId, @@ -7738,6 +7594,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs. - `"JobRunId"`: The ID of a previous JobRun to retry. +- `"JobRunQueuingEnabled"`: Specifies whether job run queuing is enabled for the job run. A + value of true means job run queuing is enabled for the job run. If false or not populated, + the job run will not be considered for queueing. - `"MaxCapacity"`: For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity @@ -7790,14 +7649,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (8vCPUs, 64 GB of memory) with 128 GB disk (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler. """ -function start_job_run(JobName; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "StartJobRun", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_job_run(JobName; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "StartJobRun", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_job_run( JobName, params::AbstractDict{String}; @@ -7825,16 +7682,14 @@ EvaluationTaskRun. - `transform_id`: The unique identifier of the machine learning transform. """ -function start_mlevaluation_task_run( +start_mlevaluation_task_run( TransformId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "StartMLEvaluationTaskRun", + Dict{String,Any}("TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "StartMLEvaluationTaskRun", - Dict{String,Any}("TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_mlevaluation_task_run( TransformId, params::AbstractDict{String}; @@ -7870,16 +7725,14 @@ use the new and improved labels and perform a higher-quality transformation. - `transform_id`: The unique identifier of the machine learning transform. """ -function start_mllabeling_set_generation_task_run( +start_mllabeling_set_generation_task_run( OutputS3Path, TransformId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "StartMLLabelingSetGenerationTaskRun", + Dict{String,Any}("OutputS3Path" => OutputS3Path, "TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "StartMLLabelingSetGenerationTaskRun", - Dict{String,Any}("OutputS3Path" => OutputS3Path, "TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_mllabeling_set_generation_task_run( OutputS3Path, TransformId, @@ -7913,14 +7766,12 @@ of trigger are started. - `name`: The name of the trigger to start. """ -function start_trigger(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "StartTrigger", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_trigger(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "StartTrigger", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_trigger( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7945,14 +7796,12 @@ Starts a new run of the specified workflow. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RunProperties"`: The workflow run properties for the new workflow run. """ -function start_workflow_run(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "StartWorkflowRun", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_workflow_run(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "StartWorkflowRun", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_workflow_run( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7975,16 +7824,14 @@ Stops a task run for the specified table. - `table_name`: The name of the table. """ -function stop_column_statistics_task_run( +stop_column_statistics_task_run( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "StopColumnStatisticsTaskRun", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "StopColumnStatisticsTaskRun", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_column_statistics_task_run( DatabaseName, TableName, @@ -8015,14 +7862,12 @@ If the specified crawler is running, stops the crawl. - `name`: Name of the crawler to stop. """ -function stop_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "StopCrawler", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "StopCrawler", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_crawler( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8045,16 +7890,13 @@ crawler if it is already running. - `crawler_name`: Name of the crawler whose schedule state to set. """ -function stop_crawler_schedule( - CrawlerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +stop_crawler_schedule(CrawlerName; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "StopCrawlerSchedule", Dict{String,Any}("CrawlerName" => CrawlerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_crawler_schedule( CrawlerName, params::AbstractDict{String}; @@ -8083,14 +7925,12 @@ Stops the session. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RequestOrigin"`: The origin of the request. """ -function stop_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "StopSession", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "StopSession", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_session( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8112,14 +7952,12 @@ Stops a specified trigger. - `name`: The name of the trigger to stop. """ -function stop_trigger(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "StopTrigger", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_trigger(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "StopTrigger", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_trigger( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8142,14 +7980,12 @@ Stops the execution of the specified workflow run. - `run_id`: The ID of the workflow run to stop. """ -function stop_workflow_run(Name, RunId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "StopWorkflowRun", - Dict{String,Any}("Name" => Name, "RunId" => RunId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_workflow_run(Name, RunId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "StopWorkflowRun", + Dict{String,Any}("Name" => Name, "RunId" => RunId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_workflow_run( Name, RunId, @@ -8180,16 +8016,13 @@ you can tag, see Amazon Web Services Tags in Glue. - `tags_to_add`: Tags to add to this resource. """ -function tag_resource( - ResourceArn, TagsToAdd; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +tag_resource(ResourceArn, TagsToAdd; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagsToAdd" => TagsToAdd); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, TagsToAdd, @@ -8222,16 +8055,14 @@ Removes tags from a resource. - `tags_to_remove`: Tags to remove from this resource. """ -function untag_resource( +untag_resource( ResourceArn, TagsToRemove; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "UntagResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "TagsToRemove" => TagsToRemove); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UntagResource", - Dict{String,Any}("ResourceArn" => ResourceArn, "TagsToRemove" => TagsToRemove); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource( ResourceArn, TagsToRemove, @@ -8268,16 +8099,14 @@ Updates a registered blueprint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description of the blueprint. """ -function update_blueprint( +update_blueprint( BlueprintLocation, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "UpdateBlueprint", + Dict{String,Any}("BlueprintLocation" => BlueprintLocation, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdateBlueprint", - Dict{String,Any}("BlueprintLocation" => BlueprintLocation, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_blueprint( BlueprintLocation, Name, @@ -8312,9 +8141,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"JsonClassifier"`: A JsonClassifier object with updated fields. - `"XMLClassifier"`: An XMLClassifier object with updated fields. """ -function update_classifier(; aws_config::AbstractAWSConfig=current_aws_config()) - return glue("UpdateClassifier"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +update_classifier(; aws_config::AbstractAWSConfig=current_aws_config()) = + glue("UpdateClassifier"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_classifier( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8341,25 +8169,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partitions in question reside. If none is supplied, the Amazon Web Services account ID is used by default. """ -function update_column_statistics_for_partition( +update_column_statistics_for_partition( ColumnStatisticsList, DatabaseName, PartitionValues, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "UpdateColumnStatisticsForPartition", + Dict{String,Any}( + "ColumnStatisticsList" => ColumnStatisticsList, + "DatabaseName" => DatabaseName, + "PartitionValues" => PartitionValues, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdateColumnStatisticsForPartition", - Dict{String,Any}( - "ColumnStatisticsList" => ColumnStatisticsList, - "DatabaseName" => DatabaseName, - "PartitionValues" => PartitionValues, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_column_statistics_for_partition( ColumnStatisticsList, DatabaseName, @@ -8404,23 +8230,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partitions in question reside. If none is supplied, the Amazon Web Services account ID is used by default. """ -function update_column_statistics_for_table( +update_column_statistics_for_table( ColumnStatisticsList, DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "UpdateColumnStatisticsForTable", + Dict{String,Any}( + "ColumnStatisticsList" => ColumnStatisticsList, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdateColumnStatisticsForTable", - Dict{String,Any}( - "ColumnStatisticsList" => ColumnStatisticsList, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_column_statistics_for_table( ColumnStatisticsList, DatabaseName, @@ -8461,16 +8285,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog in which the connection resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function update_connection( +update_connection( ConnectionInput, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "UpdateConnection", + Dict{String,Any}("ConnectionInput" => ConnectionInput, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdateConnection", - Dict{String,Any}("ConnectionInput" => ConnectionInput, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connection( ConnectionInput, Name, @@ -8528,14 +8350,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TablePrefix"`: The table prefix used for catalog tables that are created. - `"Targets"`: A list of targets to crawl. """ -function update_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "UpdateCrawler", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_crawler(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "UpdateCrawler", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_crawler( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8562,16 +8382,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *). """ -function update_crawler_schedule( - CrawlerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +update_crawler_schedule(CrawlerName; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "UpdateCrawlerSchedule", Dict{String,Any}("CrawlerName" => CrawlerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_crawler_schedule( CrawlerName, params::AbstractDict{String}; @@ -8602,16 +8419,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Ruleset"`: A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide. """ -function update_data_quality_ruleset( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +update_data_quality_ruleset(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "UpdateDataQualityRuleset", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_data_quality_ruleset( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8640,16 +8454,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog in which the metadata database resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function update_database( - DatabaseInput, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +update_database(DatabaseInput, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "UpdateDatabase", Dict{String,Any}("DatabaseInput" => DatabaseInput, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_database( DatabaseInput, Name, @@ -8695,16 +8506,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UpdateEtlLibraries"`: True if the list of custom libraries to be loaded in the development endpoint needs to be updated, or False if otherwise. """ -function update_dev_endpoint( - EndpointName; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +update_dev_endpoint(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "UpdateDevEndpoint", Dict{String,Any}("EndpointName" => EndpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_dev_endpoint( EndpointName, params::AbstractDict{String}; @@ -8733,14 +8541,12 @@ by this information. configuration is removed or reset to default values. """ -function update_job(JobName, JobUpdate; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "UpdateJob", - Dict{String,Any}("JobName" => JobName, "JobUpdate" => JobUpdate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_job(JobName, JobUpdate; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "UpdateJob", + Dict{String,Any}("JobName" => JobName, "JobUpdate" => JobUpdate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_job( JobName, JobUpdate, @@ -8786,13 +8592,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys <WorkspaceName>/<RepositoryName>. - `"RepositoryOwner"`: The owner of the remote repository that contains the job artifacts. """ -function update_job_from_source_control(; - aws_config::AbstractAWSConfig=current_aws_config() +update_job_from_source_control(; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "UpdateJobFromSourceControl"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) - return glue( - "UpdateJobFromSourceControl"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end function update_job_from_source_control( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8849,14 +8651,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys executor per worker. For the G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker. """ -function update_mltransform(TransformId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "UpdateMLTransform", - Dict{String,Any}("TransformId" => TransformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_mltransform(TransformId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "UpdateMLTransform", + Dict{String,Any}("TransformId" => TransformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_mltransform( TransformId, params::AbstractDict{String}; @@ -8891,25 +8691,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the partition to be updated resides. If none is provided, the Amazon Web Services account ID is used by default. """ -function update_partition( +update_partition( DatabaseName, PartitionInput, PartitionValueList, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "UpdatePartition", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "PartitionInput" => PartitionInput, + "PartitionValueList" => PartitionValueList, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdatePartition", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "PartitionInput" => PartitionInput, - "PartitionValueList" => PartitionValueList, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_partition( DatabaseName, PartitionInput, @@ -8952,16 +8750,14 @@ registry. Resource Name (ARN). """ -function update_registry( +update_registry( Description, RegistryId; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "UpdateRegistry", + Dict{String,Any}("Description" => Description, "RegistryId" => RegistryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdateRegistry", - Dict{String,Any}("Description" => Description, "RegistryId" => RegistryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_registry( Description, RegistryId, @@ -9007,14 +8803,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SchemaVersionNumber"`: Version number required for check pointing. One of VersionNumber or Compatibility has to be provided. """ -function update_schema(SchemaId; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "UpdateSchema", - Dict{String,Any}("SchemaId" => SchemaId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_schema(SchemaId; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "UpdateSchema", + Dict{String,Any}("SchemaId" => SchemaId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_schema( SchemaId, params::AbstractDict{String}; @@ -9055,13 +8849,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys <WorkspaceName>/<RepositoryName>. - `"RepositoryOwner"`: The owner of the remote repository that contains the job artifacts. """ -function update_source_control_from_job(; - aws_config::AbstractAWSConfig=current_aws_config() +update_source_control_from_job(; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "UpdateSourceControlFromJob"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) - return glue( - "UpdateSourceControlFromJob"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end function update_source_control_from_job( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9097,16 +8887,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionId"`: The version ID at which to update the table contents. - `"ViewUpdateAction"`: The operation to be performed when updating the view. """ -function update_table( - DatabaseName, TableInput; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +update_table(DatabaseName, TableInput; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "UpdateTable", Dict{String,Any}("DatabaseName" => DatabaseName, "TableInput" => TableInput); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_table( DatabaseName, TableInput, @@ -9144,27 +8931,25 @@ Updates the configuration for an existing table optimizer. - `type`: The type of table optimizer. Currently, the only valid value is compaction. """ -function update_table_optimizer( +update_table_optimizer( CatalogId, DatabaseName, TableName, TableOptimizerConfiguration, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "UpdateTableOptimizer", + Dict{String,Any}( + "CatalogId" => CatalogId, + "DatabaseName" => DatabaseName, + "TableName" => TableName, + "TableOptimizerConfiguration" => TableOptimizerConfiguration, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdateTableOptimizer", - Dict{String,Any}( - "CatalogId" => CatalogId, - "DatabaseName" => DatabaseName, - "TableName" => TableName, - "TableOptimizerConfiguration" => TableOptimizerConfiguration, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_table_optimizer( CatalogId, DatabaseName, @@ -9205,16 +8990,13 @@ Updates a trigger definition. - `trigger_update`: The new values with which to update the trigger. """ -function update_trigger( - Name, TriggerUpdate; aws_config::AbstractAWSConfig=current_aws_config() -) - return glue( +update_trigger(Name, TriggerUpdate; aws_config::AbstractAWSConfig=current_aws_config()) = + glue( "UpdateTrigger", Dict{String,Any}("Name" => Name, "TriggerUpdate" => TriggerUpdate); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_trigger( Name, TriggerUpdate, @@ -9250,16 +9032,14 @@ Update an Glue usage profile. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description of the usage profile. """ -function update_usage_profile( +update_usage_profile( Configuration, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = glue( + "UpdateUsageProfile", + Dict{String,Any}("Configuration" => Configuration, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdateUsageProfile", - Dict{String,Any}("Configuration" => Configuration, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_usage_profile( Configuration, Name, @@ -9297,23 +9077,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The ID of the Data Catalog where the function to be updated is located. If none is provided, the Amazon Web Services account ID is used by default. """ -function update_user_defined_function( +update_user_defined_function( DatabaseName, FunctionInput, FunctionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = glue( + "UpdateUserDefinedFunction", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "FunctionInput" => FunctionInput, + "FunctionName" => FunctionName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return glue( - "UpdateUserDefinedFunction", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "FunctionInput" => FunctionInput, - "FunctionName" => FunctionName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_defined_function( DatabaseName, FunctionInput, @@ -9358,14 +9136,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs. """ -function update_workflow(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return glue( - "UpdateWorkflow", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_workflow(Name; aws_config::AbstractAWSConfig=current_aws_config()) = glue( + "UpdateWorkflow", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_workflow( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/grafana.jl b/src/services/grafana.jl index 503bf36d1..9104fc80e 100644 --- a/src/services/grafana.jl +++ b/src/services/grafana.jl @@ -23,16 +23,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Grafana-Token"`: A token from Grafana Labs that ties your Amazon Web Services account with a Grafana Labs account. For more information, see Link your account with Grafana Labs. """ -function associate_license( +associate_license( licenseType, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "POST", + "/workspaces/$(workspaceId)/licenses/$(licenseType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "POST", - "/workspaces/$(workspaceId)/licenses/$(licenseType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_license( licenseType, workspaceId, @@ -117,25 +115,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys notification channels. You are responsible for managing the permissions for this role as new data sources or notification channels are added. """ -function create_workspace( +create_workspace( accountAccessType, authenticationProviders, permissionType; aws_config::AbstractAWSConfig=current_aws_config(), +) = grafana( + "POST", + "/workspaces", + Dict{String,Any}( + "accountAccessType" => accountAccessType, + "authenticationProviders" => authenticationProviders, + "permissionType" => permissionType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "POST", - "/workspaces", - Dict{String,Any}( - "accountAccessType" => accountAccessType, - "authenticationProviders" => authenticationProviders, - "permissionType" => permissionType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workspace( accountAccessType, authenticationProviders, @@ -182,23 +178,21 @@ release. - `workspace_id`: The ID of the workspace to create an API key. """ -function create_workspace_api_key( +create_workspace_api_key( keyName, keyRole, secondsToLive, workspaceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = grafana( + "POST", + "/workspaces/$(workspaceId)/apikeys", + Dict{String,Any}( + "keyName" => keyName, "keyRole" => keyRole, "secondsToLive" => secondsToLive + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "POST", - "/workspaces/$(workspaceId)/apikeys", - Dict{String,Any}( - "keyName" => keyName, "keyRole" => keyRole, "secondsToLive" => secondsToLive - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workspace_api_key( keyName, keyRole, @@ -248,17 +242,15 @@ in the Amazon Managed Grafana User Guide. - `workspace_id`: The ID of the workspace within which to create the service account. """ -function create_workspace_service_account( +create_workspace_service_account( grafanaRole, name, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "POST", + "/workspaces/$(workspaceId)/serviceaccounts", + Dict{String,Any}("grafanaRole" => grafanaRole, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "POST", - "/workspaces/$(workspaceId)/serviceaccounts", - Dict{String,Any}("grafanaRole" => grafanaRole, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workspace_service_account( grafanaRole, name, @@ -302,21 +294,19 @@ Service accounts are only available for workspaces that are compatible with Graf - `workspace_id`: The ID of the workspace the service account resides within. """ -function create_workspace_service_account_token( +create_workspace_service_account_token( name, secondsToLive, serviceAccountId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = grafana( + "POST", + "/workspaces/$(workspaceId)/serviceaccounts/$(serviceAccountId)/tokens", + Dict{String,Any}("name" => name, "secondsToLive" => secondsToLive); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "POST", - "/workspaces/$(workspaceId)/serviceaccounts/$(serviceAccountId)/tokens", - Dict{String,Any}("name" => name, "secondsToLive" => secondsToLive); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workspace_service_account_token( name, secondsToLive, @@ -350,14 +340,12 @@ Deletes an Amazon Managed Grafana workspace. - `workspace_id`: The ID of the workspace to delete. """ -function delete_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return grafana( - "DELETE", - "/workspaces/$(workspaceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = grafana( + "DELETE", + "/workspaces/$(workspaceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_workspace( workspaceId, params::AbstractDict{String}; @@ -385,16 +373,14 @@ a future release. - `workspace_id`: The ID of the workspace to delete. """ -function delete_workspace_api_key( +delete_workspace_api_key( keyName, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "DELETE", + "/workspaces/$(workspaceId)/apikeys/$(keyName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "DELETE", - "/workspaces/$(workspaceId)/apikeys/$(keyName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workspace_api_key( keyName, workspaceId, @@ -424,16 +410,14 @@ workspaces that are compatible with Grafana version 9 and above. - `workspace_id`: The ID of the workspace where the service account resides. """ -function delete_workspace_service_account( +delete_workspace_service_account( serviceAccountId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "DELETE", + "/workspaces/$(workspaceId)/serviceaccounts/$(serviceAccountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "DELETE", - "/workspaces/$(workspaceId)/serviceaccounts/$(serviceAccountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workspace_service_account( serviceAccountId, workspaceId, @@ -464,19 +448,17 @@ are only available for workspaces that are compatible with Grafana version 9 and - `workspace_id`: The ID of the workspace from which to delete the token. """ -function delete_workspace_service_account_token( +delete_workspace_service_account_token( serviceAccountId, tokenId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = grafana( + "DELETE", + "/workspaces/$(workspaceId)/serviceaccounts/$(serviceAccountId)/tokens/$(tokenId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "DELETE", - "/workspaces/$(workspaceId)/serviceaccounts/$(serviceAccountId)/tokens/$(tokenId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workspace_service_account_token( serviceAccountId, tokenId, @@ -503,14 +485,13 @@ Displays information about one Amazon Managed Grafana workspace. - `workspace_id`: The ID of the workspace to display information about. """ -function describe_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return grafana( +describe_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + grafana( "GET", "/workspaces/$(workspaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_workspace( workspaceId, params::AbstractDict{String}; @@ -536,16 +517,14 @@ workspace. - `workspace_id`: The ID of the workspace to return authentication information about. """ -function describe_workspace_authentication( +describe_workspace_authentication( workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "GET", + "/workspaces/$(workspaceId)/authentication"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "GET", - "/workspaces/$(workspaceId)/authentication"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_workspace_authentication( workspaceId, params::AbstractDict{String}; @@ -570,16 +549,14 @@ Gets the current configuration string for the given workspace. - `workspace_id`: The ID of the workspace to get configuration information for. """ -function describe_workspace_configuration( +describe_workspace_configuration( workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "GET", + "/workspaces/$(workspaceId)/configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "GET", - "/workspaces/$(workspaceId)/configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_workspace_configuration( workspaceId, params::AbstractDict{String}; @@ -605,16 +582,14 @@ Removes the Grafana Enterprise license from a workspace. - `workspace_id`: The ID of the workspace to remove the Grafana Enterprise license from. """ -function disassociate_license( +disassociate_license( licenseType, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "DELETE", + "/workspaces/$(workspaceId)/licenses/$(licenseType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "DELETE", - "/workspaces/$(workspaceId)/licenses/$(licenseType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_license( licenseType, workspaceId, @@ -655,14 +630,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Identity Center users are returned. If you specify SSO_GROUP, only the permissions of IAM Identity Center groups are returned. """ -function list_permissions(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return grafana( - "GET", - "/workspaces/$(workspaceId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_permissions(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = grafana( + "GET", + "/workspaces/$(workspaceId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_permissions( workspaceId, params::AbstractDict{String}; @@ -689,16 +662,13 @@ resource that can be tagged is a workspace. - `resource_arn`: The ARN of the resource the list of tags are associated with. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return grafana( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + grafana( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -728,11 +698,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"workspace-id"`: The ID of the workspace to list the available upgrade versions. If not included, lists all versions of Grafana that are supported for CreateWorkspace. """ -function list_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return grafana( - "GET", "/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + grafana("GET", "/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -760,16 +727,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of service accounts to return. (You receive this token from a previous ListWorkspaceServiceAccountTokens operation.) """ -function list_workspace_service_account_tokens( +list_workspace_service_account_tokens( serviceAccountId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "GET", + "/workspaces/$(workspaceId)/serviceaccounts/$(serviceAccountId)/tokens"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "GET", - "/workspaces/$(workspaceId)/serviceaccounts/$(serviceAccountId)/tokens"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workspace_service_account_tokens( serviceAccountId, workspaceId, @@ -801,16 +766,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of service accounts to return. (You receive this token from a previous ListWorkspaceServiceAccounts operation.) """ -function list_workspace_service_accounts( +list_workspace_service_accounts( workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "GET", + "/workspaces/$(workspaceId)/serviceaccounts"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "GET", - "/workspaces/$(workspaceId)/serviceaccounts"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workspace_service_accounts( workspaceId, params::AbstractDict{String}; @@ -839,11 +802,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of workspaces to return. (You receive this token from a previous ListWorkspaces operation.) """ -function list_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return grafana( - "GET", "/workspaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) = + grafana("GET", "/workspaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_workspaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -868,15 +828,14 @@ tag value that you specify replaces the previous value for that tag. tag keys only, tags (key and values) only or a combination of tag keys and tags. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return grafana( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + grafana( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -904,17 +863,14 @@ Grafana resource. - `tag_keys`: The key values of the tag to be removed from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return grafana( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + grafana( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -942,17 +898,15 @@ Updates which users in a workspace have the Grafana Admin or Editor roles. - `workspace_id`: The ID of the workspace to update. """ -function update_permissions( +update_permissions( updateInstructionBatch, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "PATCH", + "/workspaces/$(workspaceId)/permissions", + Dict{String,Any}("updateInstructionBatch" => updateInstructionBatch); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "PATCH", - "/workspaces/$(workspaceId)/permissions", - Dict{String,Any}("updateInstructionBatch" => updateInstructionBatch); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_permissions( updateInstructionBatch, workspaceId, @@ -1042,14 +996,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services resources that the workspace accesses, such as data sources and notification channels. If this workspace has permissionType CUSTOMER_MANAGED, then this role is required. """ -function update_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return grafana( - "PUT", - "/workspaces/$(workspaceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = grafana( + "PUT", + "/workspaces/$(workspaceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_workspace( workspaceId, params::AbstractDict{String}; @@ -1086,17 +1038,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin and Editor roles in the workspace. """ -function update_workspace_authentication( +update_workspace_authentication( authenticationProviders, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "POST", + "/workspaces/$(workspaceId)/authentication", + Dict{String,Any}("authenticationProviders" => authenticationProviders); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "POST", - "/workspaces/$(workspaceId)/authentication", - Dict{String,Any}("authenticationProviders" => authenticationProviders); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_workspace_authentication( authenticationProviders, workspaceId, @@ -1137,17 +1087,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys versions are available to upgrade to for a specific workspace, see the ListVersions operation. """ -function update_workspace_configuration( +update_workspace_configuration( configuration, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = grafana( + "PUT", + "/workspaces/$(workspaceId)/configuration", + Dict{String,Any}("configuration" => configuration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return grafana( - "PUT", - "/workspaces/$(workspaceId)/configuration", - Dict{String,Any}("configuration" => configuration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_workspace_configuration( configuration, workspaceId, diff --git a/src/services/greengrass.jl b/src/services/greengrass.jl index eb96061dd..82b7315b9 100644 --- a/src/services/greengrass.jl +++ b/src/services/greengrass.jl @@ -18,17 +18,15 @@ actions against the cloud. the role is not validated. """ -function associate_role_to_group( +associate_role_to_group( GroupId, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/groups/$(GroupId)/role", + Dict{String,Any}("RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/groups/$(GroupId)/role", - Dict{String,Any}("RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_role_to_group( GroupId, RoleArn, @@ -57,17 +55,15 @@ role must have at least minimum permissions in the policy - `role_arn`: The ARN of the service role you wish to associate with your account. """ -function associate_service_role_to_account( +associate_service_role_to_account( RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/servicerole", + Dict{String,Any}("RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/servicerole", - Dict{String,Any}("RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_service_role_to_account( RoleArn, params::AbstractDict{String}; @@ -96,14 +92,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function create_connector_definition(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +create_connector_definition(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "POST", "/greengrass/definition/connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_connector_definition( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -131,16 +126,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys corresponding configuration settings. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_connector_definition_version( +create_connector_definition_version( ConnectorDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/definition/connectors/$(ConnectorDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/definition/connectors/$(ConnectorDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connector_definition_version( ConnectorDefinitionId, params::AbstractDict{String}; @@ -170,14 +163,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function create_core_definition(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "POST", - "/greengrass/definition/cores"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_core_definition(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "POST", + "/greengrass/definition/cores"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_core_definition( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -205,16 +196,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Cores"`: A list of cores in the core definition version. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_core_definition_version( +create_core_definition_version( CoreDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/definition/cores/$(CoreDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/definition/cores/$(CoreDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_core_definition_version( CoreDefinitionId, params::AbstractDict{String}; @@ -247,17 +236,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GroupVersionId"`: The ID of the group version to be deployed. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_deployment( +create_deployment( DeploymentType, GroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/groups/$(GroupId)/deployments", + Dict{String,Any}("DeploymentType" => DeploymentType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/groups/$(GroupId)/deployments", - Dict{String,Any}("DeploymentType" => DeploymentType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deployment( DeploymentType, GroupId, @@ -289,14 +276,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function create_device_definition(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "POST", - "/greengrass/definition/devices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_device_definition(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "POST", + "/greengrass/definition/devices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_device_definition( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -323,16 +308,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Devices"`: A list of devices in the definition version. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_device_definition_version( +create_device_definition_version( DeviceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/definition/devices/$(DeviceDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/definition/devices/$(DeviceDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_device_definition_version( DeviceDefinitionId, params::AbstractDict{String}; @@ -363,14 +346,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function create_function_definition(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +create_function_definition(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "POST", "/greengrass/definition/functions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_function_definition( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -399,16 +381,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Functions"`: A list of Lambda functions in this function definition version. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_function_definition_version( +create_function_definition_version( FunctionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/definition/functions/$(FunctionDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/definition/functions/$(FunctionDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_function_definition_version( FunctionDefinitionId, params::AbstractDict{String}; @@ -441,15 +421,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function create_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "POST", - "/greengrass/groups", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "POST", + "/greengrass/groups", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -475,16 +453,14 @@ Creates a CA for the group. If a CA already exists, it will rotate the existing Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_group_certificate_authority( +create_group_certificate_authority( GroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/groups/$(GroupId)/certificateauthorities"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/groups/$(GroupId)/certificateauthorities"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_group_certificate_authority( GroupId, params::AbstractDict{String}; @@ -523,14 +499,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this group. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_group_version(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +create_group_version(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "POST", "/greengrass/groups/$(GroupId)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_group_version( GroupId, params::AbstractDict{String}; @@ -559,14 +534,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function create_logger_definition(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "POST", - "/greengrass/definition/loggers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_logger_definition(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "POST", + "/greengrass/definition/loggers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_logger_definition( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -593,16 +566,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Loggers"`: A list of loggers. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_logger_definition_version( +create_logger_definition_version( LoggerDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/definition/loggers/$(LoggerDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/definition/loggers/$(LoggerDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_logger_definition_version( LoggerDefinitionId, params::AbstractDict{String}; @@ -632,14 +603,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function create_resource_definition(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +create_resource_definition(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "POST", "/greengrass/definition/resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_resource_definition( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -666,16 +636,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Resources"`: A list of resources. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_resource_definition_version( +create_resource_definition_version( ResourceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/definition/resources/$(ResourceDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/definition/resources/$(ResourceDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource_definition_version( ResourceDefinitionId, params::AbstractDict{String}; @@ -711,28 +679,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UpdateAgentLogLevel"`: - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_software_update_job( +create_software_update_job( S3UrlSignerRole, SoftwareToUpdate, UpdateTargets, UpdateTargetsArchitecture, UpdateTargetsOperatingSystem; aws_config::AbstractAWSConfig=current_aws_config(), +) = greengrass( + "POST", + "/greengrass/updates", + Dict{String,Any}( + "S3UrlSignerRole" => S3UrlSignerRole, + "SoftwareToUpdate" => SoftwareToUpdate, + "UpdateTargets" => UpdateTargets, + "UpdateTargetsArchitecture" => UpdateTargetsArchitecture, + "UpdateTargetsOperatingSystem" => UpdateTargetsOperatingSystem, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/updates", - Dict{String,Any}( - "S3UrlSignerRole" => S3UrlSignerRole, - "SoftwareToUpdate" => SoftwareToUpdate, - "UpdateTargets" => UpdateTargets, - "UpdateTargetsArchitecture" => UpdateTargetsArchitecture, - "UpdateTargetsOperatingSystem" => UpdateTargetsOperatingSystem, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_software_update_job( S3UrlSignerRole, SoftwareToUpdate, @@ -777,16 +743,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function create_subscription_definition(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrass( +create_subscription_definition(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "POST", "/greengrass/definition/subscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_subscription_definition( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -813,16 +776,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Subscriptions"`: A list of subscriptions. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function create_subscription_definition_version( +create_subscription_definition_version( SubscriptionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subscription_definition_version( SubscriptionDefinitionId, params::AbstractDict{String}; @@ -847,16 +808,14 @@ Deletes a connector definition. - `connector_definition_id`: The ID of the connector definition. """ -function delete_connector_definition( +delete_connector_definition( ConnectorDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "DELETE", + "/greengrass/definition/connectors/$(ConnectorDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "DELETE", - "/greengrass/definition/connectors/$(ConnectorDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_connector_definition( ConnectorDefinitionId, params::AbstractDict{String}; @@ -881,16 +840,14 @@ Deletes a core definition. - `core_definition_id`: The ID of the core definition. """ -function delete_core_definition( +delete_core_definition( CoreDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "DELETE", + "/greengrass/definition/cores/$(CoreDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "DELETE", - "/greengrass/definition/cores/$(CoreDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_core_definition( CoreDefinitionId, params::AbstractDict{String}; @@ -915,16 +872,14 @@ Deletes a device definition. - `device_definition_id`: The ID of the device definition. """ -function delete_device_definition( +delete_device_definition( DeviceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "DELETE", + "/greengrass/definition/devices/$(DeviceDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "DELETE", - "/greengrass/definition/devices/$(DeviceDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_device_definition( DeviceDefinitionId, params::AbstractDict{String}; @@ -949,16 +904,14 @@ Deletes a Lambda function definition. - `function_definition_id`: The ID of the Lambda function definition. """ -function delete_function_definition( +delete_function_definition( FunctionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "DELETE", + "/greengrass/definition/functions/$(FunctionDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "DELETE", - "/greengrass/definition/functions/$(FunctionDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_function_definition( FunctionDefinitionId, params::AbstractDict{String}; @@ -983,14 +936,12 @@ Deletes a group. - `group_id`: The ID of the Greengrass group. """ -function delete_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "DELETE", - "/greengrass/groups/$(GroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "DELETE", + "/greengrass/groups/$(GroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_group( GroupId, params::AbstractDict{String}; @@ -1015,16 +966,14 @@ Deletes a logger definition. - `logger_definition_id`: The ID of the logger definition. """ -function delete_logger_definition( +delete_logger_definition( LoggerDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "DELETE", + "/greengrass/definition/loggers/$(LoggerDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "DELETE", - "/greengrass/definition/loggers/$(LoggerDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_logger_definition( LoggerDefinitionId, params::AbstractDict{String}; @@ -1049,16 +998,14 @@ Deletes a resource definition. - `resource_definition_id`: The ID of the resource definition. """ -function delete_resource_definition( +delete_resource_definition( ResourceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "DELETE", + "/greengrass/definition/resources/$(ResourceDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "DELETE", - "/greengrass/definition/resources/$(ResourceDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource_definition( ResourceDefinitionId, params::AbstractDict{String}; @@ -1083,16 +1030,14 @@ Deletes a subscription definition. - `subscription_definition_id`: The ID of the subscription definition. """ -function delete_subscription_definition( +delete_subscription_definition( SubscriptionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "DELETE", + "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "DELETE", - "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_subscription_definition( SubscriptionDefinitionId, params::AbstractDict{String}; @@ -1117,16 +1062,13 @@ Disassociates the role from a group. - `group_id`: The ID of the Greengrass group. """ -function disassociate_role_from_group( - GroupId; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrass( +disassociate_role_from_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "DELETE", "/greengrass/groups/$(GroupId)/role"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_role_from_group( GroupId, params::AbstractDict{String}; @@ -1149,16 +1091,14 @@ Disassociates the service role from your account. Without a service role, deploy not work. """ -function disassociate_service_role_from_account(; +disassociate_service_role_from_account(; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "DELETE", + "/greengrass/servicerole"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "DELETE", - "/greengrass/servicerole"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_service_role_from_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1181,14 +1121,13 @@ Retrieves the role associated with a particular group. - `group_id`: The ID of the Greengrass group. """ -function get_associated_role(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +get_associated_role(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/groups/$(GroupId)/role"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_associated_role( GroupId, params::AbstractDict{String}; @@ -1213,16 +1152,14 @@ Returns the status of a bulk deployment. - `bulk_deployment_id`: The ID of the bulk deployment. """ -function get_bulk_deployment_status( +get_bulk_deployment_status( BulkDeploymentId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/bulk/deployments/$(BulkDeploymentId)/status"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/bulk/deployments/$(BulkDeploymentId)/status"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bulk_deployment_status( BulkDeploymentId, params::AbstractDict{String}; @@ -1247,16 +1184,13 @@ Retrieves the connectivity information for a core. - `thing_name`: The thing name. """ -function get_connectivity_info( - ThingName; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrass( +get_connectivity_info(ThingName; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/things/$(ThingName)/connectivityInfo"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connectivity_info( ThingName, params::AbstractDict{String}; @@ -1281,16 +1215,14 @@ Retrieves information about a connector definition. - `connector_definition_id`: The ID of the connector definition. """ -function get_connector_definition( +get_connector_definition( ConnectorDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/connectors/$(ConnectorDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/connectors/$(ConnectorDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_connector_definition( ConnectorDefinitionId, params::AbstractDict{String}; @@ -1326,18 +1258,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function get_connector_definition_version( +get_connector_definition_version( ConnectorDefinitionId, ConnectorDefinitionVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = greengrass( + "GET", + "/greengrass/definition/connectors/$(ConnectorDefinitionId)/versions/$(ConnectorDefinitionVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/connectors/$(ConnectorDefinitionId)/versions/$(ConnectorDefinitionVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_connector_definition_version( ConnectorDefinitionId, ConnectorDefinitionVersionId, @@ -1363,16 +1293,13 @@ Retrieves information about a core definition version. - `core_definition_id`: The ID of the core definition. """ -function get_core_definition( - CoreDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrass( +get_core_definition(CoreDefinitionId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/definition/cores/$(CoreDefinitionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_core_definition( CoreDefinitionId, params::AbstractDict{String}; @@ -1402,18 +1329,16 @@ Retrieves information about a core definition version. property of the corresponding ''DefinitionInformation'' object. """ -function get_core_definition_version( +get_core_definition_version( CoreDefinitionId, CoreDefinitionVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = greengrass( + "GET", + "/greengrass/definition/cores/$(CoreDefinitionId)/versions/$(CoreDefinitionVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/cores/$(CoreDefinitionId)/versions/$(CoreDefinitionVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_core_definition_version( CoreDefinitionId, CoreDefinitionVersionId, @@ -1440,16 +1365,14 @@ Returns the status of a deployment. - `group_id`: The ID of the Greengrass group. """ -function get_deployment_status( +get_deployment_status( DeploymentId, GroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/groups/$(GroupId)/deployments/$(DeploymentId)/status"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/groups/$(GroupId)/deployments/$(DeploymentId)/status"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment_status( DeploymentId, GroupId, @@ -1475,16 +1398,14 @@ Retrieves information about a device definition. - `device_definition_id`: The ID of the device definition. """ -function get_device_definition( +get_device_definition( DeviceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/devices/$(DeviceDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/devices/$(DeviceDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_device_definition( DeviceDefinitionId, params::AbstractDict{String}; @@ -1518,18 +1439,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function get_device_definition_version( +get_device_definition_version( DeviceDefinitionId, DeviceDefinitionVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = greengrass( + "GET", + "/greengrass/definition/devices/$(DeviceDefinitionId)/versions/$(DeviceDefinitionVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/devices/$(DeviceDefinitionId)/versions/$(DeviceDefinitionVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_device_definition_version( DeviceDefinitionId, DeviceDefinitionVersionId, @@ -1556,16 +1475,14 @@ latest version. - `function_definition_id`: The ID of the Lambda function definition. """ -function get_function_definition( +get_function_definition( FunctionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/functions/$(FunctionDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/functions/$(FunctionDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_function_definition( FunctionDefinitionId, params::AbstractDict{String}; @@ -1600,18 +1517,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function get_function_definition_version( +get_function_definition_version( FunctionDefinitionId, FunctionDefinitionVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = greengrass( + "GET", + "/greengrass/definition/functions/$(FunctionDefinitionId)/versions/$(FunctionDefinitionVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/functions/$(FunctionDefinitionId)/versions/$(FunctionDefinitionVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_function_definition_version( FunctionDefinitionId, FunctionDefinitionVersionId, @@ -1637,14 +1552,12 @@ Retrieves information about a group. - `group_id`: The ID of the Greengrass group. """ -function get_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "GET", - "/greengrass/groups/$(GroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "GET", + "/greengrass/groups/$(GroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_group( GroupId, params::AbstractDict{String}; @@ -1670,16 +1583,14 @@ Retreives the CA associated with a group. Returns the public key of the CA. - `group_id`: The ID of the Greengrass group. """ -function get_group_certificate_authority( +get_group_certificate_authority( CertificateAuthorityId, GroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/groups/$(GroupId)/certificateauthorities/$(CertificateAuthorityId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/groups/$(GroupId)/certificateauthorities/$(CertificateAuthorityId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_group_certificate_authority( CertificateAuthorityId, GroupId, @@ -1705,16 +1616,14 @@ Retrieves the current configuration for the CA used by the group. - `group_id`: The ID of the Greengrass group. """ -function get_group_certificate_configuration( +get_group_certificate_configuration( GroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/groups/$(GroupId)/certificateauthorities/configuration/expiry"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/groups/$(GroupId)/certificateauthorities/configuration/expiry"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_group_certificate_configuration( GroupId, params::AbstractDict{String}; @@ -1744,16 +1653,14 @@ Retrieves information about a group version. ''GroupInformation'' object. """ -function get_group_version( +get_group_version( GroupId, GroupVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/groups/$(GroupId)/versions/$(GroupVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/groups/$(GroupId)/versions/$(GroupVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_group_version( GroupId, GroupVersionId, @@ -1779,16 +1686,14 @@ Retrieves information about a logger definition. - `logger_definition_id`: The ID of the logger definition. """ -function get_logger_definition( +get_logger_definition( LoggerDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/loggers/$(LoggerDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/loggers/$(LoggerDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_logger_definition( LoggerDefinitionId, params::AbstractDict{String}; @@ -1822,18 +1727,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function get_logger_definition_version( +get_logger_definition_version( LoggerDefinitionId, LoggerDefinitionVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = greengrass( + "GET", + "/greengrass/definition/loggers/$(LoggerDefinitionId)/versions/$(LoggerDefinitionVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/loggers/$(LoggerDefinitionId)/versions/$(LoggerDefinitionVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_logger_definition_version( LoggerDefinitionId, LoggerDefinitionVersionId, @@ -1860,16 +1763,14 @@ version. - `resource_definition_id`: The ID of the resource definition. """ -function get_resource_definition( +get_resource_definition( ResourceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/resources/$(ResourceDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/resources/$(ResourceDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_definition( ResourceDefinitionId, params::AbstractDict{String}; @@ -1900,18 +1801,16 @@ included in the version. ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object. """ -function get_resource_definition_version( +get_resource_definition_version( ResourceDefinitionId, ResourceDefinitionVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = greengrass( + "GET", + "/greengrass/definition/resources/$(ResourceDefinitionId)/versions/$(ResourceDefinitionVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/resources/$(ResourceDefinitionId)/versions/$(ResourceDefinitionVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_definition_version( ResourceDefinitionId, ResourceDefinitionVersionId, @@ -1934,14 +1833,13 @@ end Retrieves the service role that is attached to your account. """ -function get_service_role_for_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +get_service_role_for_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/servicerole"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_service_role_for_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1964,16 +1862,14 @@ Retrieves information about a subscription definition. - `subscription_definition_id`: The ID of the subscription definition. """ -function get_subscription_definition( +get_subscription_definition( SubscriptionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_subscription_definition( SubscriptionDefinitionId, params::AbstractDict{String}; @@ -2007,18 +1903,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function get_subscription_definition_version( +get_subscription_definition_version( SubscriptionDefinitionId, SubscriptionDefinitionVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = greengrass( + "GET", + "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)/versions/$(SubscriptionDefinitionVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)/versions/$(SubscriptionDefinitionVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_subscription_definition_version( SubscriptionDefinitionId, SubscriptionDefinitionVersionId, @@ -2044,16 +1938,14 @@ Get the runtime configuration of a thing. - `thing_name`: The thing name. """ -function get_thing_runtime_configuration( +get_thing_runtime_configuration( ThingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/things/$(ThingName)/runtimeconfig"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/things/$(ThingName)/runtimeconfig"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_thing_runtime_configuration( ThingName, params::AbstractDict{String}; @@ -2084,16 +1976,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_bulk_deployment_detailed_reports( +list_bulk_deployment_detailed_reports( BulkDeploymentId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/bulk/deployments/$(BulkDeploymentId)/detailed-reports"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/bulk/deployments/$(BulkDeploymentId)/detailed-reports"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bulk_deployment_detailed_reports( BulkDeploymentId, params::AbstractDict{String}; @@ -2120,14 +2010,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_bulk_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "GET", - "/greengrass/bulk/deployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_bulk_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "GET", + "/greengrass/bulk/deployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_bulk_deployments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2157,16 +2045,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_connector_definition_versions( +list_connector_definition_versions( ConnectorDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/connectors/$(ConnectorDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/connectors/$(ConnectorDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_connector_definition_versions( ConnectorDefinitionId, params::AbstractDict{String}; @@ -2193,14 +2079,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_connector_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +list_connector_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/definition/connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_connector_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2228,16 +2113,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_core_definition_versions( +list_core_definition_versions( CoreDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/cores/$(CoreDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/cores/$(CoreDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_core_definition_versions( CoreDefinitionId, params::AbstractDict{String}; @@ -2264,14 +2147,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_core_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "GET", - "/greengrass/definition/cores"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_core_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "GET", + "/greengrass/definition/cores"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_core_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2299,14 +2180,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_deployments(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "GET", - "/greengrass/groups/$(GroupId)/deployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_deployments(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "GET", + "/greengrass/groups/$(GroupId)/deployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_deployments( GroupId, params::AbstractDict{String}; @@ -2336,16 +2215,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_device_definition_versions( +list_device_definition_versions( DeviceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/devices/$(DeviceDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/devices/$(DeviceDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_device_definition_versions( DeviceDefinitionId, params::AbstractDict{String}; @@ -2372,14 +2249,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_device_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "GET", - "/greengrass/definition/devices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_device_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "GET", + "/greengrass/definition/devices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_device_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2407,16 +2282,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_function_definition_versions( +list_function_definition_versions( FunctionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/functions/$(FunctionDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/functions/$(FunctionDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_function_definition_versions( FunctionDefinitionId, params::AbstractDict{String}; @@ -2443,14 +2316,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_function_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +list_function_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/definition/functions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_function_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2473,16 +2345,14 @@ Retrieves the current CAs for a group. - `group_id`: The ID of the Greengrass group. """ -function list_group_certificate_authorities( +list_group_certificate_authorities( GroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/groups/$(GroupId)/certificateauthorities"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/groups/$(GroupId)/certificateauthorities"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_group_certificate_authorities( GroupId, params::AbstractDict{String}; @@ -2512,14 +2382,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_group_versions(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +list_group_versions(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/groups/$(GroupId)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_group_versions( GroupId, params::AbstractDict{String}; @@ -2546,11 +2415,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "GET", "/greengrass/groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "GET", "/greengrass/groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2578,16 +2445,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_logger_definition_versions( +list_logger_definition_versions( LoggerDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/loggers/$(LoggerDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/loggers/$(LoggerDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_logger_definition_versions( LoggerDefinitionId, params::AbstractDict{String}; @@ -2614,14 +2479,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_logger_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "GET", - "/greengrass/definition/loggers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_logger_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "GET", + "/greengrass/definition/loggers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_logger_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2649,16 +2512,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_resource_definition_versions( +list_resource_definition_versions( ResourceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/resources/$(ResourceDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/resources/$(ResourceDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resource_definition_versions( ResourceDefinitionId, params::AbstractDict{String}; @@ -2685,14 +2546,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_resource_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +list_resource_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/definition/resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resource_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2720,16 +2580,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_subscription_definition_versions( +list_subscription_definition_versions( SubscriptionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "GET", + "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "GET", - "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_subscription_definition_versions( SubscriptionDefinitionId, params::AbstractDict{String}; @@ -2756,14 +2614,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or ''null'' if there are no additional results. """ -function list_subscription_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( +list_subscription_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/greengrass/definition/subscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_subscription_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2786,16 +2643,13 @@ Retrieves a list of resource tags for a resource arn. - `resource-arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrass( +list_tags_for_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "GET", "/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resource_arn, params::AbstractDict{String}; @@ -2824,14 +2678,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Force"`: If true, performs a best-effort only core reset. - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. """ -function reset_deployments(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "POST", - "/greengrass/groups/$(GroupId)/deployments/$reset"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +reset_deployments(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "POST", + "/greengrass/groups/$(GroupId)/deployments/$reset"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function reset_deployments( GroupId, params::AbstractDict{String}; @@ -2872,19 +2724,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-Client-Token"`: A client token used to correlate requests and responses. - `"tags"`: Tag(s) to add to the new resource. """ -function start_bulk_deployment( +start_bulk_deployment( ExecutionRoleArn, InputFileUri; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "POST", + "/greengrass/bulk/deployments", + Dict{String,Any}( + "ExecutionRoleArn" => ExecutionRoleArn, "InputFileUri" => InputFileUri + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "POST", - "/greengrass/bulk/deployments", - Dict{String,Any}( - "ExecutionRoleArn" => ExecutionRoleArn, "InputFileUri" => InputFileUri - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_bulk_deployment( ExecutionRoleArn, InputFileUri, @@ -2921,16 +2771,13 @@ or cancel pending deployments. - `bulk_deployment_id`: The ID of the bulk deployment. """ -function stop_bulk_deployment( - BulkDeploymentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrass( +stop_bulk_deployment(BulkDeploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "PUT", "/greengrass/bulk/deployments/$(BulkDeploymentId)/$stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_bulk_deployment( BulkDeploymentId, params::AbstractDict{String}; @@ -2960,14 +2807,12 @@ Adds tags to a Greengrass resource. Valid resources are 'Group', 'ConnectorDefin Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: """ -function tag_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "POST", - "/tags/$(resource-arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "POST", + "/tags/$(resource-arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resource_arn, params::AbstractDict{String}; @@ -2993,17 +2838,14 @@ Remove resource tags from a Greengrass Resource. - `tag_keys`: An array of tag keys to delete """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrass( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "DELETE", "/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -3034,16 +2876,13 @@ and connect to it. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ConnectivityInfo"`: A list of connectivity info. """ -function update_connectivity_info( - ThingName; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrass( +update_connectivity_info(ThingName; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrass( "PUT", "/greengrass/things/$(ThingName)/connectivityInfo"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_connectivity_info( ThingName, params::AbstractDict{String}; @@ -3071,16 +2910,14 @@ Updates a connector definition. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name of the definition. """ -function update_connector_definition( +update_connector_definition( ConnectorDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/definition/connectors/$(ConnectorDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/definition/connectors/$(ConnectorDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connector_definition( ConnectorDefinitionId, params::AbstractDict{String}; @@ -3108,16 +2945,14 @@ Updates a core definition. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name of the definition. """ -function update_core_definition( +update_core_definition( CoreDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/definition/cores/$(CoreDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/definition/cores/$(CoreDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_core_definition( CoreDefinitionId, params::AbstractDict{String}; @@ -3145,16 +2980,14 @@ Updates a device definition. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name of the definition. """ -function update_device_definition( +update_device_definition( DeviceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/definition/devices/$(DeviceDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/definition/devices/$(DeviceDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_device_definition( DeviceDefinitionId, params::AbstractDict{String}; @@ -3182,16 +3015,14 @@ Updates a Lambda function definition. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name of the definition. """ -function update_function_definition( +update_function_definition( FunctionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/definition/functions/$(FunctionDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/definition/functions/$(FunctionDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_function_definition( FunctionDefinitionId, params::AbstractDict{String}; @@ -3219,14 +3050,12 @@ Updates a group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name of the definition. """ -function update_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrass( - "PUT", - "/greengrass/groups/$(GroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = greengrass( + "PUT", + "/greengrass/groups/$(GroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_group( GroupId, params::AbstractDict{String}; @@ -3255,16 +3084,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CertificateExpiryInMilliseconds"`: The amount of time remaining before the certificate expires, in milliseconds. """ -function update_group_certificate_configuration( +update_group_certificate_configuration( GroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/groups/$(GroupId)/certificateauthorities/configuration/expiry"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/groups/$(GroupId)/certificateauthorities/configuration/expiry"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_group_certificate_configuration( GroupId, params::AbstractDict{String}; @@ -3292,16 +3119,14 @@ Updates a logger definition. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name of the definition. """ -function update_logger_definition( +update_logger_definition( LoggerDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/definition/loggers/$(LoggerDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/definition/loggers/$(LoggerDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_logger_definition( LoggerDefinitionId, params::AbstractDict{String}; @@ -3329,16 +3154,14 @@ Updates a resource definition. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name of the definition. """ -function update_resource_definition( +update_resource_definition( ResourceDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/definition/resources/$(ResourceDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/definition/resources/$(ResourceDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_definition( ResourceDefinitionId, params::AbstractDict{String}; @@ -3366,16 +3189,14 @@ Updates a subscription definition. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The name of the definition. """ -function update_subscription_definition( +update_subscription_definition( SubscriptionDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/definition/subscriptions/$(SubscriptionDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_subscription_definition( SubscriptionDefinitionId, params::AbstractDict{String}; @@ -3403,16 +3224,14 @@ Updates the runtime configuration of a thing. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"TelemetryConfiguration"`: Configuration for telemetry service. """ -function update_thing_runtime_configuration( +update_thing_runtime_configuration( ThingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrass( + "PUT", + "/greengrass/things/$(ThingName)/runtimeconfig"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrass( - "PUT", - "/greengrass/things/$(ThingName)/runtimeconfig"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_thing_runtime_configuration( ThingName, params::AbstractDict{String}; diff --git a/src/services/greengrassv2.jl b/src/services/greengrassv2.jl index 75aada4d5..fa1591b6c 100644 --- a/src/services/greengrassv2.jl +++ b/src/services/greengrassv2.jl @@ -20,17 +20,15 @@ information, see Greengrass service role in the IoT Greengrass Version 2 Develop Greengrass for your Amazon Web Services account in this Amazon Web Services Region. """ -function associate_service_role_to_account( +associate_service_role_to_account( RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "PUT", + "/greengrass/servicerole", + Dict{String,Any}("RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "PUT", - "/greengrass/servicerole", - Dict{String,Any}("RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_service_role_to_account( RoleArn, params::AbstractDict{String}; @@ -67,16 +65,14 @@ information, see Interact with local IoT devices in the IoT Greengrass V2 Develo Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"entries"`: The list of client devices to associate. """ -function batch_associate_client_device_with_core_device( +batch_associate_client_device_with_core_device( coreDeviceThingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "POST", + "/greengrass/v2/coreDevices/$(coreDeviceThingName)/associateClientDevices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "POST", - "/greengrass/v2/coreDevices/$(coreDeviceThingName)/associateClientDevices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_client_device_with_core_device( coreDeviceThingName, params::AbstractDict{String}; @@ -107,16 +103,14 @@ retrieve the core device's connectivity information and certificates. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"entries"`: The list of client devices to disassociate. """ -function batch_disassociate_client_device_from_core_device( +batch_disassociate_client_device_from_core_device( coreDeviceThingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "POST", + "/greengrass/v2/coreDevices/$(coreDeviceThingName)/disassociateClientDevices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "POST", - "/greengrass/v2/coreDevices/$(coreDeviceThingName)/disassociateClientDevices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_client_device_from_core_device( coreDeviceThingName, params::AbstractDict{String}; @@ -143,14 +137,13 @@ anything for that device. - `deployment_id`: The ID of the deployment. """ -function cancel_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +cancel_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "POST", "/greengrass/v2/deployments/$(deploymentId)/cancel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_deployment( deploymentId, params::AbstractDict{String}; @@ -202,15 +195,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide. """ -function create_component_version(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +create_component_version(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "POST", "/greengrass/v2/createComponentVersion", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_component_version( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -264,15 +256,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide. """ -function create_deployment(targetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +create_deployment(targetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "POST", "/greengrass/v2/deployments", Dict{String,Any}("targetArn" => targetArn, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_deployment( targetArn, params::AbstractDict{String}; @@ -308,14 +299,12 @@ the component from the deployment or update the deployment to use a valid versio - `arn`: The ARN of the component version. """ -function delete_component(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( - "DELETE", - "/greengrass/v2/components/$(arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_component(arn; aws_config::AbstractAWSConfig=current_aws_config()) = greengrassv2( + "DELETE", + "/greengrass/v2/components/$(arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_component( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -341,16 +330,14 @@ information about how to delete the IoT thing, see DeleteThing in the IoT API Re thing. """ -function delete_core_device( +delete_core_device( coreDeviceThingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "DELETE", + "/greengrass/v2/coreDevices/$(coreDeviceThingName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "DELETE", - "/greengrass/v2/coreDevices/$(coreDeviceThingName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_core_device( coreDeviceThingName, params::AbstractDict{String}; @@ -379,14 +366,13 @@ deleted. - `deployment_id`: The ID of the deployment. """ -function delete_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +delete_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "DELETE", "/greengrass/v2/deployments/$(deploymentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_deployment( deploymentId, params::AbstractDict{String}; @@ -411,14 +397,12 @@ Retrieves metadata for a version of a component. - `arn`: The ARN of the component version. """ -function describe_component(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( - "GET", - "/greengrass/v2/components/$(arn)/metadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_component(arn; aws_config::AbstractAWSConfig=current_aws_config()) = greengrassv2( + "GET", + "/greengrass/v2/components/$(arn)/metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_component( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -442,16 +426,14 @@ more information, see Greengrass service role in the IoT Greengrass Version 2 De Guide. """ -function disassociate_service_role_from_account(; +disassociate_service_role_from_account(; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "DELETE", + "/greengrass/servicerole"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "DELETE", - "/greengrass/servicerole"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_service_role_from_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -477,14 +459,12 @@ Gets the recipe for a version of a component. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"recipeOutputFormat"`: The format of the recipe. """ -function get_component(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( - "GET", - "/greengrass/v2/components/$(arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_component(arn; aws_config::AbstractAWSConfig=current_aws_config()) = greengrassv2( + "GET", + "/greengrass/v2/components/$(arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_component( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -523,16 +503,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pre-signed URL endpoint. Specify fips if you want the returned Amazon S3 pre-signed URL to point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default is standard. """ -function get_component_version_artifact( +get_component_version_artifact( arn, artifactName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "GET", + "/greengrass/v2/components/$(arn)/artifacts/$(artifactName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "GET", - "/greengrass/v2/components/$(arn)/artifacts/$(artifactName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_component_version_artifact( arn, artifactName, @@ -563,16 +541,13 @@ Version 2 Developer Guide. - `thing_name`: The name of the core device. This is also the name of the IoT thing. """ -function get_connectivity_info( - thingName; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrassv2( +get_connectivity_info(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "GET", "/greengrass/things/$(thingName)/connectivityInfo"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connectivity_info( thingName, params::AbstractDict{String}; @@ -607,16 +582,13 @@ core device sends status updates upon local deployment and cloud deployment thing. """ -function get_core_device( - coreDeviceThingName; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrassv2( +get_core_device(coreDeviceThingName; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "GET", "/greengrass/v2/coreDevices/$(coreDeviceThingName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_core_device( coreDeviceThingName, params::AbstractDict{String}; @@ -641,14 +613,13 @@ Gets a deployment. Deployments define the components that run on Greengrass core - `deployment_id`: The ID of the deployment. """ -function get_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +get_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "GET", "/greengrass/v2/deployments/$(deploymentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_deployment( deploymentId, params::AbstractDict{String}; @@ -673,14 +644,13 @@ client devices and manage core device connectivity information. For more informa Greengrass service role in the IoT Greengrass Version 2 Developer Guide. """ -function get_service_role_for_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +get_service_role_for_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "GET", "/greengrass/servicerole"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_service_role_for_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -708,16 +678,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per paginated request. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_client_devices_associated_with_core_device( +list_client_devices_associated_with_core_device( coreDeviceThingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "GET", + "/greengrass/v2/coreDevices/$(coreDeviceThingName)/associatedClientDevices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "GET", - "/greengrass/v2/coreDevices/$(coreDeviceThingName)/associatedClientDevices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_client_devices_associated_with_core_device( coreDeviceThingName, params::AbstractDict{String}; @@ -747,14 +715,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per paginated request. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_component_versions(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +list_component_versions(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "GET", "/greengrass/v2/components/$(arn)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_component_versions( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -780,14 +747,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to be used for the next set of paginated results. - `"scope"`: The scope of the components to list. Default: PRIVATE """ -function list_components(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( - "GET", - "/greengrass/v2/components"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_components(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrassv2( + "GET", + "/greengrass/v2/components"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_components( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -829,14 +794,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that targets the thing group. When you remove a core device from a thing group, the list continues to include that core device. """ -function list_core_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( - "GET", - "/greengrass/v2/coreDevices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_core_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrassv2( + "GET", + "/greengrass/v2/coreDevices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_core_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -866,14 +829,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parentTargetArn"`: The parent deployment's target ARN within a subdeployment. - `"targetArn"`: The ARN of the target IoT thing or thing group. """ -function list_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( - "GET", - "/greengrass/v2/deployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) = greengrassv2( + "GET", + "/greengrass/v2/deployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_deployments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -902,16 +863,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per paginated request. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_effective_deployments( +list_effective_deployments( coreDeviceThingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "GET", + "/greengrass/v2/coreDevices/$(coreDeviceThingName)/effectiveDeployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "GET", - "/greengrass/v2/coreDevices/$(coreDeviceThingName)/effectiveDeployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_effective_deployments( coreDeviceThingName, params::AbstractDict{String}; @@ -958,16 +917,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys deployment. When you choose this option, the list doesn't include components that the core device installs as dependencies of other components. Default: ROOT """ -function list_installed_components( +list_installed_components( coreDeviceThingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "GET", + "/greengrass/v2/coreDevices/$(coreDeviceThingName)/installedComponents"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "GET", - "/greengrass/v2/coreDevices/$(coreDeviceThingName)/installedComponents"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_installed_components( coreDeviceThingName, params::AbstractDict{String}; @@ -992,16 +949,13 @@ Retrieves the list of tags for an IoT Greengrass resource. - `resource_arn`: The ARN of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrassv2( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1038,14 +992,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"componentCandidates"`: The list of components to resolve. - `"platform"`: The platform to use to resolve compatible components. """ -function resolve_component_candidates(; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +resolve_component_candidates(; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "POST", "/greengrass/v2/resolveComponentCandidates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resolve_component_candidates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1071,15 +1024,14 @@ operation updates the tag's value. information, see Tag your resources in the IoT Greengrass V2 Developer Guide. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return greengrassv2( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1106,17 +1058,14 @@ Removes a tag from an IoT Greengrass resource. - `tag_keys`: A list of keys for tags to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return greengrassv2( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + greengrassv2( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1148,17 +1097,15 @@ Version 2 Developer Guide. - `thing_name`: The name of the core device. This is also the name of the IoT thing. """ -function update_connectivity_info( +update_connectivity_info( ConnectivityInfo, thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = greengrassv2( + "PUT", + "/greengrass/things/$(thingName)/connectivityInfo", + Dict{String,Any}("ConnectivityInfo" => ConnectivityInfo); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return greengrassv2( - "PUT", - "/greengrass/things/$(thingName)/connectivityInfo", - Dict{String,Any}("ConnectivityInfo" => ConnectivityInfo); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connectivity_info( ConnectivityInfo, thingName, diff --git a/src/services/groundstation.jl b/src/services/groundstation.jl index 8778c1745..73a8de392 100644 --- a/src/services/groundstation.jl +++ b/src/services/groundstation.jl @@ -14,14 +14,13 @@ Cancels a contact with a specified contact ID. - `contact_id`: UUID of a contact. """ -function cancel_contact(contactId; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +cancel_contact(contactId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "DELETE", "/contact/$(contactId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_contact( contactId, params::AbstractDict{String}; @@ -51,15 +50,14 @@ be specified. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: Tags assigned to a Config. """ -function create_config(configData, name; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +create_config(configData, name; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "POST", "/config", Dict{String,Any}("configData" => configData, "name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_config( configData, name, @@ -103,17 +101,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Endpoint Group enters and exits the PREPASS state. - `"tags"`: Tags of a dataflow endpoint group. """ -function create_dataflow_endpoint_group( +create_dataflow_endpoint_group( endpointDetails; aws_config::AbstractAWSConfig=current_aws_config() +) = groundstation( + "POST", + "/dataflowEndpointGroup", + Dict{String,Any}("endpointDetails" => endpointDetails); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "POST", - "/dataflowEndpointGroup", - Dict{String,Any}("endpointDetails" => endpointDetails); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataflow_endpoint_group( endpointDetails, params::AbstractDict{String}; @@ -156,17 +152,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys priority is 1, and higher numbers take precedence. Priority must be 1 or greater - `"tags"`: Tags assigned to an ephemeris. """ -function create_ephemeris( - name, satelliteId; aws_config::AbstractAWSConfig=current_aws_config() -) - return groundstation( +create_ephemeris(name, satelliteId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "POST", "/ephemeris", Dict{String,Any}("name" => name, "satelliteId" => satelliteId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_ephemeris( name, satelliteId, @@ -214,26 +207,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"streamsKmsRole"`: Role to use for encrypting streams with KMS key. - `"tags"`: Tags assigned to a mission profile. """ -function create_mission_profile( +create_mission_profile( dataflowEdges, minimumViableContactDurationSeconds, name, trackingConfigArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = groundstation( + "POST", + "/missionprofile", + Dict{String,Any}( + "dataflowEdges" => dataflowEdges, + "minimumViableContactDurationSeconds" => minimumViableContactDurationSeconds, + "name" => name, + "trackingConfigArn" => trackingConfigArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "POST", - "/missionprofile", - Dict{String,Any}( - "dataflowEdges" => dataflowEdges, - "minimumViableContactDurationSeconds" => minimumViableContactDurationSeconds, - "name" => name, - "trackingConfigArn" => trackingConfigArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_mission_profile( dataflowEdges, minimumViableContactDurationSeconds, @@ -274,16 +265,13 @@ Deletes a Config. - `config_type`: Type of a Config. """ -function delete_config( - configId, configType; aws_config::AbstractAWSConfig=current_aws_config() -) - return groundstation( +delete_config(configId, configType; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "DELETE", "/config/$(configType)/$(configId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_config( configId, configType, @@ -309,16 +297,14 @@ Deletes a dataflow endpoint group. - `dataflow_endpoint_group_id`: UUID of a dataflow endpoint group. """ -function delete_dataflow_endpoint_group( +delete_dataflow_endpoint_group( dataflowEndpointGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = groundstation( + "DELETE", + "/dataflowEndpointGroup/$(dataflowEndpointGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "DELETE", - "/dataflowEndpointGroup/$(dataflowEndpointGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dataflow_endpoint_group( dataflowEndpointGroupId, params::AbstractDict{String}; @@ -343,14 +329,13 @@ Deletes an ephemeris - `ephemeris_id`: The AWS Ground Station ephemeris ID. """ -function delete_ephemeris(ephemerisId; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +delete_ephemeris(ephemerisId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "DELETE", "/ephemeris/$(ephemerisId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_ephemeris( ephemerisId, params::AbstractDict{String}; @@ -375,16 +360,14 @@ Deletes a mission profile. - `mission_profile_id`: UUID of a mission profile. """ -function delete_mission_profile( +delete_mission_profile( missionProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = groundstation( + "DELETE", + "/missionprofile/$(missionProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "DELETE", - "/missionprofile/$(missionProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_mission_profile( missionProfileId, params::AbstractDict{String}; @@ -409,14 +392,13 @@ Describes an existing contact. - `contact_id`: UUID of a contact. """ -function describe_contact(contactId; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +describe_contact(contactId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "GET", "/contact/$(contactId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_contact( contactId, params::AbstractDict{String}; @@ -441,14 +423,13 @@ Describes an existing ephemeris. - `ephemeris_id`: The AWS Ground Station ephemeris ID. """ -function describe_ephemeris(ephemerisId; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +describe_ephemeris(ephemerisId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "GET", "/ephemeris/$(ephemerisId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_ephemeris( ephemerisId, params::AbstractDict{String}; @@ -474,16 +455,13 @@ configuration information for a registered agent. - `agent_id`: UUID of agent to get configuration information for. """ -function get_agent_configuration( - agentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return groundstation( +get_agent_configuration(agentId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "GET", "/agent/$(agentId)/configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_agent_configuration( agentId, params::AbstractDict{String}; @@ -509,16 +487,13 @@ Returns Config information. Only one Config response can be returned. - `config_type`: Type of a Config. """ -function get_config( - configId, configType; aws_config::AbstractAWSConfig=current_aws_config() -) - return groundstation( +get_config(configId, configType; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "GET", "/config/$(configType)/$(configId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_config( configId, configType, @@ -544,16 +519,14 @@ Returns the dataflow endpoint group. - `dataflow_endpoint_group_id`: UUID of a dataflow endpoint group. """ -function get_dataflow_endpoint_group( +get_dataflow_endpoint_group( dataflowEndpointGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = groundstation( + "GET", + "/dataflowEndpointGroup/$(dataflowEndpointGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "GET", - "/dataflowEndpointGroup/$(dataflowEndpointGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_dataflow_endpoint_group( dataflowEndpointGroupId, params::AbstractDict{String}; @@ -579,15 +552,14 @@ Returns the number of reserved minutes used by account. - `year`: The year being requested, in the format of YYYY. """ -function get_minute_usage(month, year; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +get_minute_usage(month, year; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "POST", "/minute-usage", Dict{String,Any}("month" => month, "year" => year); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_minute_usage( month, year, @@ -615,16 +587,13 @@ Returns a mission profile. - `mission_profile_id`: UUID of a mission profile. """ -function get_mission_profile( - missionProfileId; aws_config::AbstractAWSConfig=current_aws_config() -) - return groundstation( +get_mission_profile(missionProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "GET", "/missionprofile/$(missionProfileId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_mission_profile( missionProfileId, params::AbstractDict{String}; @@ -649,14 +618,13 @@ Returns a satellite. - `satellite_id`: UUID of a satellite. """ -function get_satellite(satelliteId; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +get_satellite(satelliteId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "GET", "/satellite/$(satelliteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_satellite( satelliteId, params::AbstractDict{String}; @@ -683,11 +651,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Next token returned in the request of a previous ListConfigs call. Used to get the next page of results. """ -function list_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( - "GET", "/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation("GET", "/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -717,19 +682,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to get the next page of results. - `"satelliteArn"`: ARN of a satellite. """ -function list_contacts( +list_contacts( endTime, startTime, statusList; aws_config::AbstractAWSConfig=current_aws_config() +) = groundstation( + "POST", + "/contacts", + Dict{String,Any}( + "endTime" => endTime, "startTime" => startTime, "statusList" => statusList + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "POST", - "/contacts", - Dict{String,Any}( - "endTime" => endTime, "startTime" => startTime, "statusList" => statusList - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_contacts( endTime, startTime, @@ -768,14 +731,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Next token returned in the request of a previous ListDataflowEndpointGroups call. Used to get the next page of results. """ -function list_dataflow_endpoint_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +list_dataflow_endpoint_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "GET", "/dataflowEndpointGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dataflow_endpoint_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -807,19 +769,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Pagination token. - `"statusList"`: The list of ephemeris status to return. """ -function list_ephemerides( +list_ephemerides( endTime, satelliteId, startTime; aws_config::AbstractAWSConfig=current_aws_config() +) = groundstation( + "POST", + "/ephemerides", + Dict{String,Any}( + "endTime" => endTime, "satelliteId" => satelliteId, "startTime" => startTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "POST", - "/ephemerides", - Dict{String,Any}( - "endTime" => endTime, "satelliteId" => satelliteId, "startTime" => startTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_ephemerides( endTime, satelliteId, @@ -859,11 +819,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ground stations. - `"satelliteId"`: Satellite ID to retrieve on-boarded ground stations. """ -function list_ground_stations(; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( - "GET", "/groundstation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_ground_stations(; aws_config::AbstractAWSConfig=current_aws_config()) = groundstation( + "GET", "/groundstation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_ground_stations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -888,11 +846,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Next token returned in the request of a previous ListMissionProfiles call. Used to get the next page of results. """ -function list_mission_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( - "GET", "/missionprofile"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_mission_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = groundstation( + "GET", "/missionprofile"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_mission_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -917,11 +873,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Next token that can be supplied in the next call to get the next page of satellites. """ -function list_satellites(; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( - "GET", "/satellite"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_satellites(; aws_config::AbstractAWSConfig=current_aws_config()) = groundstation( + "GET", "/satellite"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_satellites( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -940,16 +894,13 @@ Returns a list of tags for a specified resource. - `resource_arn`: ARN of a resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return groundstation( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -976,17 +927,15 @@ agent with AWS Ground Station. - `discovery_data`: Data for associating an agent with the capabilities it is managing. """ -function register_agent( +register_agent( agentDetails, discoveryData; aws_config::AbstractAWSConfig=current_aws_config() +) = groundstation( + "POST", + "/agent", + Dict{String,Any}("agentDetails" => agentDetails, "discoveryData" => discoveryData); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "POST", - "/agent", - Dict{String,Any}("agentDetails" => agentDetails, "discoveryData" => discoveryData); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_agent( agentDetails, discoveryData, @@ -1027,28 +976,26 @@ Reserves a contact using specified parameters. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: Tags assigned to a contact. """ -function reserve_contact( +reserve_contact( endTime, groundStation, missionProfileArn, satelliteArn, startTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = groundstation( + "POST", + "/contact", + Dict{String,Any}( + "endTime" => endTime, + "groundStation" => groundStation, + "missionProfileArn" => missionProfileArn, + "satelliteArn" => satelliteArn, + "startTime" => startTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "POST", - "/contact", - Dict{String,Any}( - "endTime" => endTime, - "groundStation" => groundStation, - "missionProfileArn" => missionProfileArn, - "satelliteArn" => satelliteArn, - "startTime" => startTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reserve_contact( endTime, groundStation, @@ -1090,15 +1037,14 @@ Assigns a tag to a resource. - `tags`: Tags assigned to a resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return groundstation( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1125,17 +1071,14 @@ Deassigns a resource tag. - `tag_keys`: Keys of a resource tag. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return groundstation( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1165,25 +1108,23 @@ of the agent. - `task_id`: GUID of agent task. """ -function update_agent_status( +update_agent_status( agentId, aggregateStatus, componentStatuses, taskId; aws_config::AbstractAWSConfig=current_aws_config(), +) = groundstation( + "PUT", + "/agent/$(agentId)", + Dict{String,Any}( + "aggregateStatus" => aggregateStatus, + "componentStatuses" => componentStatuses, + "taskId" => taskId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "PUT", - "/agent/$(agentId)", - Dict{String,Any}( - "aggregateStatus" => aggregateStatus, - "componentStatuses" => componentStatuses, - "taskId" => taskId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_agent_status( agentId, aggregateStatus, @@ -1225,21 +1166,19 @@ execution parameters for existing future contacts scheduled with this Config. - `name`: Name of a Config. """ -function update_config( +update_config( configData, configId, configType, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = groundstation( + "PUT", + "/config/$(configType)/$(configId)", + Dict{String,Any}("configData" => configData, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "PUT", - "/config/$(configType)/$(configId)", - Dict{String,Any}("configData" => configData, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_config( configData, configId, @@ -1280,17 +1219,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys overlapping ephemerides should be used. The default for customer-provided ephemeris priority is 1, and higher numbers take precedence. Priority must be 1 or greater """ -function update_ephemeris( - enabled, ephemerisId; aws_config::AbstractAWSConfig=current_aws_config() -) - return groundstation( +update_ephemeris(enabled, ephemerisId; aws_config::AbstractAWSConfig=current_aws_config()) = + groundstation( "PUT", "/ephemeris/$(ephemerisId)", Dict{String,Any}("enabled" => enabled); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_ephemeris( enabled, ephemerisId, @@ -1332,16 +1268,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"streamsKmsRole"`: Role to use for encrypting streams with KMS key. - `"trackingConfigArn"`: ARN of a tracking Config. """ -function update_mission_profile( +update_mission_profile( missionProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = groundstation( + "PUT", + "/missionprofile/$(missionProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return groundstation( - "PUT", - "/missionprofile/$(missionProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_mission_profile( missionProfileId, params::AbstractDict{String}; diff --git a/src/services/guardduty.jl b/src/services/guardduty.jl index 8c2ca4ba5..d6dd9463f 100644 --- a/src/services/guardduty.jl +++ b/src/services/guardduty.jl @@ -19,22 +19,18 @@ administrator account that sent the invitation. member account. """ -function accept_administrator_invitation( +accept_administrator_invitation( administratorId, detectorId, invitationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = guardduty( + "POST", + "/detector/$(detectorId)/administrator", + Dict{String,Any}("administratorId" => administratorId, "invitationId" => invitationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/administrator", - Dict{String,Any}( - "administratorId" => administratorId, "invitationId" => invitationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_administrator_invitation( administratorId, detectorId, @@ -73,17 +69,15 @@ Accepts the invitation to be monitored by a GuardDuty administrator account. you're accepting. """ -function accept_invitation( +accept_invitation( detectorId, invitationId, masterId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/master", + Dict{String,Any}("invitationId" => invitationId, "masterId" => masterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/master", - Dict{String,Any}("invitationId" => invitationId, "masterId" => masterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_invitation( detectorId, invitationId, @@ -120,17 +114,15 @@ archive findings from their accounts. - `finding_ids`: The IDs of the findings that you want to archive. """ -function archive_findings( +archive_findings( detectorId, findingIds; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/findings/archive", + Dict{String,Any}("findingIds" => findingIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/findings/archive", - Dict{String,Any}("findingIds" => findingIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function archive_findings( detectorId, findingIds, @@ -181,15 +173,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are exported. - `"tags"`: The tags to be added to a new detector resource. """ -function create_detector(enable; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "POST", - "/detector", - Dict{String,Any}("enable" => enable, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_detector(enable; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "POST", + "/detector", + Dict{String,Any}("enable" => enable, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_detector( enable, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -310,21 +300,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specifies the order in which this filter is applied to the findings. - `"tags"`: The tags to be added to a new filter resource. """ -function create_filter( +create_filter( detectorId, findingCriteria, name; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/filter", + Dict{String,Any}( + "findingCriteria" => findingCriteria, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/filter", - Dict{String,Any}( - "findingCriteria" => findingCriteria, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_filter( detectorId, findingCriteria, @@ -376,28 +364,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: The idempotency token for the create request. - `"tags"`: The tags to be added to a new IP set resource. """ -function create_ipset( +create_ipset( activate, detectorId, format, location, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = guardduty( + "POST", + "/detector/$(detectorId)/ipset", + Dict{String,Any}( + "activate" => activate, + "format" => format, + "location" => location, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/ipset", - Dict{String,Any}( - "activate" => activate, - "format" => format, - "location" => location, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ipset( activate, detectorId, @@ -451,21 +437,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: The idempotency token for the create request. - `"tags"`: Tags added to the Malware Protection plan resource. """ -function create_malware_protection_plan( +create_malware_protection_plan( protectedResource, role; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/malware-protection-plan", + Dict{String,Any}( + "protectedResource" => protectedResource, + "role" => role, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/malware-protection-plan", - Dict{String,Any}( - "protectedResource" => protectedResource, - "role" => role, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_malware_protection_plan( protectedResource, role, @@ -521,17 +505,15 @@ member accounts again only by calling the CreateMembers API. associate member accounts with. """ -function create_members( +create_members( accountDetails, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/member", + Dict{String,Any}("accountDetails" => accountDetails); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/member", - Dict{String,Any}("accountDetails" => accountDetails); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_members( accountDetails, detectorId, @@ -568,24 +550,22 @@ must exist before you use this operation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: The idempotency token for the request. """ -function create_publishing_destination( +create_publishing_destination( destinationProperties, destinationType, detectorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = guardduty( + "POST", + "/detector/$(detectorId)/publishingDestination", + Dict{String,Any}( + "destinationProperties" => destinationProperties, + "destinationType" => destinationType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/publishingDestination", - Dict{String,Any}( - "destinationProperties" => destinationProperties, - "destinationType" => destinationType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_publishing_destination( destinationProperties, destinationType, @@ -627,16 +607,13 @@ types. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"findingTypes"`: The types of sample findings to generate. """ -function create_sample_findings( - detectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +create_sample_findings(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/detector/$(detectorId)/findings/create"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_sample_findings( detectorId, params::AbstractDict{String}; @@ -674,28 +651,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: The idempotency token for the create request. - `"tags"`: The tags to be added to a new threat list resource. """ -function create_threat_intel_set( +create_threat_intel_set( activate, detectorId, format, location, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = guardduty( + "POST", + "/detector/$(detectorId)/threatintelset", + Dict{String,Any}( + "activate" => activate, + "format" => format, + "location" => location, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/threatintelset", - Dict{String,Any}( - "activate" => activate, - "format" => format, - "location" => location, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_threat_intel_set( activate, detectorId, @@ -738,15 +713,14 @@ specified by their account IDs. invitations to the current member account that you want to decline invitations from. """ -function decline_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( +decline_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/invitation/decline", Dict{String,Any}("accountIds" => accountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function decline_invitations( accountIds, params::AbstractDict{String}; @@ -773,14 +747,12 @@ Deletes an Amazon GuardDuty detector that is specified by the detector ID. - `detector_id`: The unique ID of the detector that you want to delete. """ -function delete_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "DELETE", - "/detector/$(detectorId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "DELETE", + "/detector/$(detectorId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_detector( detectorId, params::AbstractDict{String}; @@ -806,16 +778,13 @@ Deletes the filter specified by the filter name. - `filter_name`: The name of the filter that you want to delete. """ -function delete_filter( - detectorId, filterName; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +delete_filter(detectorId, filterName; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "DELETE", "/detector/$(detectorId)/filter/$(filterName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_filter( detectorId, filterName, @@ -843,15 +812,14 @@ specified by their account IDs. invitations to the current member account that you want to delete invitations from. """ -function delete_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( +delete_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/invitation/delete", Dict{String,Any}("accountIds" => accountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_invitations( accountIds, params::AbstractDict{String}; @@ -880,16 +848,13 @@ console user interface. - `ip_set_id`: The unique ID of the IPSet to delete. """ -function delete_ipset( - detectorId, ipSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +delete_ipset(detectorId, ipSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "DELETE", "/detector/$(detectorId)/ipset/$(ipSetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_ipset( detectorId, ipSetId, @@ -918,16 +883,14 @@ this Malware Protection plan ID. resource. """ -function delete_malware_protection_plan( +delete_malware_protection_plan( malwareProtectionPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "DELETE", + "/malware-protection-plan/$(malwareProtectionPlanId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "DELETE", - "/malware-protection-plan/$(malwareProtectionPlanId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_malware_protection_plan( malwareProtectionPlanId, params::AbstractDict{String}; @@ -958,17 +921,14 @@ member account in your organization. want to delete. """ -function delete_members( - accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +delete_members(accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/detector/$(detectorId)/member/delete", Dict{String,Any}("accountIds" => accountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_members( accountIds, detectorId, @@ -998,16 +958,14 @@ Deletes the publishing definition with the specified destinationId. to delete. """ -function delete_publishing_destination( +delete_publishing_destination( destinationId, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "DELETE", + "/detector/$(detectorId)/publishingDestination/$(destinationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "DELETE", - "/detector/$(detectorId)/publishingDestination/$(destinationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_publishing_destination( destinationId, detectorId, @@ -1034,16 +992,14 @@ Deletes the ThreatIntelSet specified by the ThreatIntelSet ID. - `threat_intel_set_id`: The unique ID of the threatIntelSet that you want to delete. """ -function delete_threat_intel_set( +delete_threat_intel_set( detectorId, threatIntelSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "DELETE", + "/detector/$(detectorId)/threatintelset/$(threatIntelSetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "DELETE", - "/detector/$(detectorId)/threatintelset/$(threatIntelSetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_threat_intel_set( detectorId, threatIntelSetId, @@ -1085,16 +1041,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortCriteria"`: Represents the criteria used for sorting scan entries. The attributeName is required and it must be scanStartTime. """ -function describe_malware_scans( - detectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +describe_malware_scans(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/detector/$(detectorId)/malware-scans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_malware_scans( detectorId, params::AbstractDict{String}; @@ -1131,16 +1084,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function describe_organization_configuration( +describe_organization_configuration( detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "GET", + "/detector/$(detectorId)/admin"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "GET", - "/detector/$(detectorId)/admin"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_organization_configuration( detectorId, params::AbstractDict{String}; @@ -1168,16 +1119,14 @@ destinationId. to retrieve. """ -function describe_publishing_destination( +describe_publishing_destination( destinationId, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "GET", + "/detector/$(detectorId)/publishingDestination/$(destinationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "GET", - "/detector/$(detectorId)/publishingDestination/$(destinationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_publishing_destination( destinationId, detectorId, @@ -1205,17 +1154,15 @@ organization's management account can run this API operation. be disabled as a GuardDuty delegated administrator. """ -function disable_organization_admin_account( +disable_organization_admin_account( adminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/admin/disable", + Dict{String,Any}("adminAccountId" => adminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/admin/disable", - Dict{String,Any}("adminAccountId" => adminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_organization_admin_account( adminAccountId, params::AbstractDict{String}; @@ -1249,16 +1196,14 @@ receive an error if you attempt to disable GuardDuty in a member account. - `detector_id`: The unique ID of the detector of the GuardDuty member account. """ -function disassociate_from_administrator_account( +disassociate_from_administrator_account( detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/administrator/disassociate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/administrator/disassociate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_from_administrator_account( detectorId, params::AbstractDict{String}; @@ -1288,16 +1233,14 @@ with a member account, the delegated administrator must invoke the DeleteMembers - `detector_id`: The unique ID of the detector of the GuardDuty member account. """ -function disassociate_from_master_account( +disassociate_from_master_account( detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/master/disassociate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/master/disassociate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_from_master_account( detectorId, params::AbstractDict{String}; @@ -1341,17 +1284,15 @@ member accounts again only by calling the CreateMembers API. want to disassociate from the administrator account. """ -function disassociate_members( +disassociate_members( accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/member/disassociate", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/member/disassociate", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_members( accountIds, detectorId, @@ -1382,17 +1323,15 @@ operation. enabled as a GuardDuty delegated administrator. """ -function enable_organization_admin_account( +enable_organization_admin_account( adminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/admin/enable", + Dict{String,Any}("adminAccountId" => adminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/admin/enable", - Dict{String,Any}("adminAccountId" => adminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_organization_admin_account( adminAccountId, params::AbstractDict{String}; @@ -1421,16 +1360,13 @@ administrator runs this API, it will return success (HTTP 200) but no content. - `detector_id`: The unique ID of the detector of the GuardDuty member account. """ -function get_administrator_account( - detectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +get_administrator_account(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/detector/$(detectorId)/administrator"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_administrator_account( detectorId, params::AbstractDict{String}; @@ -1463,17 +1399,15 @@ security agent running on their resources. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"filterCriteria"`: Represents the criteria used to filter the coverage statistics """ -function get_coverage_statistics( +get_coverage_statistics( detectorId, statisticsType; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/coverage/statistics", + Dict{String,Any}("statisticsType" => statisticsType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/coverage/statistics", - Dict{String,Any}("statisticsType" => statisticsType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_coverage_statistics( detectorId, statisticsType, @@ -1504,14 +1438,12 @@ endpoints. - `detector_id`: The unique ID of the detector that you want to get. """ -function get_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "GET", - "/detector/$(detectorId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "GET", + "/detector/$(detectorId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_detector( detectorId, params::AbstractDict{String}; @@ -1537,16 +1469,13 @@ Returns the details of the filter specified by the filter name. - `filter_name`: The name of the filter you want to get. """ -function get_filter( - detectorId, filterName; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +get_filter(detectorId, filterName; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/detector/$(detectorId)/filter/$(filterName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_filter( detectorId, filterName, @@ -1577,17 +1506,14 @@ Describes Amazon GuardDuty findings specified by finding IDs. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"sortCriteria"`: Represents the criteria used for sorting findings. """ -function get_findings( - detectorId, findingIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +get_findings(detectorId, findingIds; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/detector/$(detectorId)/findings/get", Dict{String,Any}("findingIds" => findingIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_findings( detectorId, findingIds, @@ -1622,17 +1548,15 @@ GuardDuty is currently supported. For more information, see Regions and endpoint Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"findingCriteria"`: Represents the criteria that is used for querying findings. """ -function get_findings_statistics( +get_findings_statistics( detectorId, findingStatisticTypes; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/findings/statistics", + Dict{String,Any}("findingStatisticTypes" => findingStatisticTypes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/findings/statistics", - Dict{String,Any}("findingStatisticTypes" => findingStatisticTypes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_findings_statistics( detectorId, findingStatisticTypes, @@ -1662,11 +1586,9 @@ Returns the count of all GuardDuty membership invitations that were sent to the member account except the currently accepted invitation. """ -function get_invitations_count(; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "GET", "/invitation/count"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_invitations_count(; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "GET", "/invitation/count"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_invitations_count( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1690,14 +1612,13 @@ Retrieves the IPSet specified by the ipSetId. - `ip_set_id`: The unique ID of the IPSet to retrieve. """ -function get_ipset(detectorId, ipSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( +get_ipset(detectorId, ipSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/detector/$(detectorId)/ipset/$(ipSetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_ipset( detectorId, ipSetId, @@ -1724,16 +1645,14 @@ Retrieves the Malware Protection plan details associated with a Malware Protecti resource. """ -function get_malware_protection_plan( +get_malware_protection_plan( malwareProtectionPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "GET", + "/malware-protection-plan/$(malwareProtectionPlanId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "GET", - "/malware-protection-plan/$(malwareProtectionPlanId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_malware_protection_plan( malwareProtectionPlanId, params::AbstractDict{String}; @@ -1760,16 +1679,13 @@ where GuardDuty is presently supported. For more information, see Regions and en - `detector_id`: The unique ID of the detector that the scan setting is associated with. """ -function get_malware_scan_settings( - detectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +get_malware_scan_settings(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/detector/$(detectorId)/malware-scan-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_malware_scan_settings( detectorId, params::AbstractDict{String}; @@ -1795,14 +1711,13 @@ GuardDuty member account. - `detector_id`: The unique ID of the detector of the GuardDuty member account. """ -function get_master_account(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( +get_master_account(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/detector/$(detectorId)/master"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_master_account( detectorId, params::AbstractDict{String}; @@ -1831,17 +1746,15 @@ and endpoints. - `detector_id`: The detector ID for the administrator account. """ -function get_member_detectors( +get_member_detectors( accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/member/detector/get", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/member/detector/get", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_member_detectors( accountIds, detectorId, @@ -1873,17 +1786,14 @@ specified by the account IDs. want to retrieve. """ -function get_members( - accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +get_members(accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/detector/$(detectorId)/member/get", Dict{String,Any}("accountIds" => accountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_members( accountIds, detectorId, @@ -1911,14 +1821,13 @@ new organization, it might take up to 24 hours to generate the statistics for th organization. """ -function get_organization_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( +get_organization_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/organization/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_organization_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1944,16 +1853,14 @@ Provides the number of days left for each data source used in the free trial per Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountIds"`: A list of account identifiers of the GuardDuty member account. """ -function get_remaining_free_trial_days( +get_remaining_free_trial_days( detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/freeTrial/daysRemaining"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/freeTrial/daysRemaining"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_remaining_free_trial_days( detectorId, params::AbstractDict{String}; @@ -1979,16 +1886,14 @@ Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID. - `threat_intel_set_id`: The unique ID of the threatIntelSet that you want to get. """ -function get_threat_intel_set( +get_threat_intel_set( detectorId, threatIntelSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "GET", + "/detector/$(detectorId)/threatintelset/$(threatIntelSetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "GET", - "/detector/$(detectorId)/threatintelset/$(threatIntelSetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_threat_intel_set( detectorId, threatIntelSetId, @@ -2030,22 +1935,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"unit"`: The currency unit you would like to view your usage statistics in. Current valid values are USD. """ -function get_usage_statistics( +get_usage_statistics( detectorId, usageCriteria, usageStatisticsType; aws_config::AbstractAWSConfig=current_aws_config(), +) = guardduty( + "POST", + "/detector/$(detectorId)/usage/statistics", + Dict{String,Any}( + "usageCriteria" => usageCriteria, "usageStatisticsType" => usageStatisticsType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/usage/statistics", - Dict{String,Any}( - "usageCriteria" => usageCriteria, "usageStatisticsType" => usageStatisticsType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_usage_statistics( detectorId, usageCriteria, @@ -2112,17 +2015,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"message"`: The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members. """ -function invite_members( - accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +invite_members(accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/detector/$(detectorId)/member/invite", Dict{String,Any}("accountIds" => accountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invite_members( accountIds, detectorId, @@ -2162,14 +2062,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys listing results after the first page. - `"sortCriteria"`: Represents the criteria used to sort the coverage details. """ -function list_coverage(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "POST", - "/detector/$(detectorId)/coverage"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_coverage(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "POST", + "/detector/$(detectorId)/coverage"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_coverage( detectorId, params::AbstractDict{String}; @@ -2199,11 +2097,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "GET", "/detector"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty("GET", "/detector"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_detectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2230,14 +2125,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_filters(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "GET", - "/detector/$(detectorId)/filter"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_filters(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "GET", + "/detector/$(detectorId)/filter"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_filters( detectorId, params::AbstractDict{String}; @@ -2311,14 +2204,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response to continue listing data. - `"sortCriteria"`: Represents the criteria used for sorting findings. """ -function list_findings(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "POST", - "/detector/$(detectorId)/findings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_findings(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "POST", + "/detector/$(detectorId)/findings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_findings( detectorId, params::AbstractDict{String}; @@ -2349,11 +2240,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "GET", "/invitation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty("GET", "/invitation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_invitations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2382,14 +2270,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_ipsets(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "GET", - "/detector/$(detectorId)/ipset"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_ipsets(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "GET", + "/detector/$(detectorId)/ipset"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_ipsets( detectorId, params::AbstractDict{String}; @@ -2418,14 +2304,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_malware_protection_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( +list_malware_protection_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/malware-protection-plan"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_malware_protection_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2460,14 +2345,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys accounts must have been previously associated with the GuardDuty administrator account using Create Members . """ -function list_members(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "GET", - "/detector/$(detectorId)/member"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_members(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "GET", + "/detector/$(detectorId)/member"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_members( detectorId, params::AbstractDict{String}; @@ -2497,13 +2380,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page. """ -function list_organization_admin_accounts(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( - "GET", "/admin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_organization_admin_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty("GET", "/admin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_organization_admin_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2529,16 +2407,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page. """ -function list_publishing_destinations( +list_publishing_destinations( detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "GET", + "/detector/$(detectorId)/publishingDestination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "GET", - "/detector/$(detectorId)/publishingDestination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_publishing_destinations( detectorId, params::AbstractDict{String}; @@ -2565,16 +2441,13 @@ resource. When invoked, this operation returns all assigned tags for a given res - `resource_arn`: The Amazon Resource Name (ARN) for the given GuardDuty resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2609,16 +2482,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_threat_intel_sets( - detectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +list_threat_intel_sets(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "GET", "/detector/$(detectorId)/threatintelset"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_threat_intel_sets( detectorId, params::AbstractDict{String}; @@ -2645,15 +2515,14 @@ scan ID to track the status of the scan. For more information, see DescribeMalwa - `resource_arn`: Amazon Resource Name (ARN) of the resource for which you invoked the API. """ -function start_malware_scan(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( +start_malware_scan(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/malware-scan/start", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_malware_scan( resourceArn, params::AbstractDict{String}; @@ -2684,17 +2553,15 @@ operation. associated with the member accounts to monitor. """ -function start_monitoring_members( +start_monitoring_members( accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/member/start", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/member/start", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_monitoring_members( accountIds, detectorId, @@ -2727,17 +2594,15 @@ receive an error if you attempt to stop monitoring the member accounts in your o account that is monitoring member accounts. """ -function stop_monitoring_members( +stop_monitoring_members( accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/member/stop", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/member/stop", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_monitoring_members( accountIds, detectorId, @@ -2767,15 +2632,14 @@ Adds tags to a resource. - `tags`: The tags to be added to a resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2802,17 +2666,15 @@ Unarchives GuardDuty findings specified by the findingIds. - `finding_ids`: The IDs of the findings to unarchive. """ -function unarchive_findings( +unarchive_findings( detectorId, findingIds; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/findings/unarchive", + Dict{String,Any}("findingIds" => findingIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/findings/unarchive", - Dict{String,Any}("findingIds" => findingIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unarchive_findings( detectorId, findingIds, @@ -2841,17 +2703,14 @@ Removes tags from a resource. - `tag_keys`: The tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2893,14 +2752,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"findingPublishingFrequency"`: An enum value that specifies how frequently findings are exported, such as to CloudWatch Events. """ -function update_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return guardduty( - "POST", - "/detector/$(detectorId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_detector(detectorId; aws_config::AbstractAWSConfig=current_aws_config()) = guardduty( + "POST", + "/detector/$(detectorId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_detector( detectorId, params::AbstractDict{String}; @@ -2939,16 +2796,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"rank"`: Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings. """ -function update_filter( - detectorId, filterName; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +update_filter(detectorId, filterName; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/detector/$(detectorId)/filter/$(filterName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_filter( detectorId, filterName, @@ -2979,17 +2833,15 @@ Marks the specified GuardDuty findings as useful or not useful. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"comments"`: Additional feedback about the GuardDuty findings. """ -function update_findings_feedback( +update_findings_feedback( detectorId, feedback, findingIds; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/findings/feedback", + Dict{String,Any}("feedback" => feedback, "findingIds" => findingIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/findings/feedback", - Dict{String,Any}("feedback" => feedback, "findingIds" => findingIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_findings_feedback( detectorId, feedback, @@ -3029,16 +2881,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"location"`: The updated URI of the file that contains the IPSet. - `"name"`: The unique ID that specifies the IPSet that you want to update. """ -function update_ipset( - detectorId, ipSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return guardduty( +update_ipset(detectorId, ipSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + guardduty( "POST", "/detector/$(detectorId)/ipset/$(ipSetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_ipset( detectorId, ipSetId, @@ -3074,16 +2923,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"role"`: IAM role with permissions required to scan and add tags to the associated protected resource. """ -function update_malware_protection_plan( +update_malware_protection_plan( malwareProtectionPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "PATCH", + "/malware-protection-plan/$(malwareProtectionPlanId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "PATCH", - "/malware-protection-plan/$(malwareProtectionPlanId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_malware_protection_plan( malwareProtectionPlanId, params::AbstractDict{String}; @@ -3117,16 +2964,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"scanResourceCriteria"`: Represents the criteria to be used in the filter for selecting resources to scan. """ -function update_malware_scan_settings( +update_malware_scan_settings( detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/malware-scan-settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/malware-scan-settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_malware_scan_settings( detectorId, params::AbstractDict{String}; @@ -3162,17 +3007,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"dataSources"`: Describes which data sources will be updated. - `"features"`: A list of features that will be updated for the specified member accounts. """ -function update_member_detectors( +update_member_detectors( accountIds, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/member/detector/update", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/member/detector/update", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_member_detectors( accountIds, detectorId, @@ -3230,16 +3073,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"dataSources"`: Describes which data sources will be updated. - `"features"`: A list of features that will be configured for the organization. """ -function update_organization_configuration( +update_organization_configuration( detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/admin"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/admin"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_organization_configuration( detectorId, params::AbstractDict{String}; @@ -3270,16 +3111,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"destinationProperties"`: A DestinationProperties object that includes the DestinationArn and KmsKeyArn of the publishing destination. """ -function update_publishing_destination( +update_publishing_destination( destinationId, detectorId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/publishingDestination/$(destinationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/publishingDestination/$(destinationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_publishing_destination( destinationId, detectorId, @@ -3314,16 +3153,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"location"`: The updated URI of the file that contains the ThreateIntelSet. - `"name"`: The unique ID that specifies the ThreatIntelSet that you want to update. """ -function update_threat_intel_set( +update_threat_intel_set( detectorId, threatIntelSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = guardduty( + "POST", + "/detector/$(detectorId)/threatintelset/$(threatIntelSetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return guardduty( - "POST", - "/detector/$(detectorId)/threatintelset/$(threatIntelSetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_threat_intel_set( detectorId, threatIntelSetId, diff --git a/src/services/health.jl b/src/services/health.jl index 23fbec784..0d961725a 100644 --- a/src/services/health.jl +++ b/src/services/health.jl @@ -31,16 +31,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function describe_affected_accounts_for_organization( +describe_affected_accounts_for_organization( eventArn; aws_config::AbstractAWSConfig=current_aws_config() +) = health( + "DescribeAffectedAccountsForOrganization", + Dict{String,Any}("eventArn" => eventArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return health( - "DescribeAffectedAccountsForOrganization", - Dict{String,Any}("eventArn" => eventArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_affected_accounts_for_organization( eventArn, params::AbstractDict{String}; @@ -84,16 +82,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function describe_affected_entities( - filter; aws_config::AbstractAWSConfig=current_aws_config() -) - return health( +describe_affected_entities(filter; aws_config::AbstractAWSConfig=current_aws_config()) = + health( "DescribeAffectedEntities", Dict{String,Any}("filter" => filter); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_affected_entities( filter, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -137,15 +132,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"organizationEntityFilters"`: A JSON set of elements including the awsAccountId and the eventArn. """ -function describe_affected_entities_for_organization(; +describe_affected_entities_for_organization(; aws_config::AbstractAWSConfig=current_aws_config() +) = health( + "DescribeAffectedEntitiesForOrganization"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return health( - "DescribeAffectedEntitiesForOrganization"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_affected_entities_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -171,11 +164,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101 \" """ -function describe_entity_aggregates(; aws_config::AbstractAWSConfig=current_aws_config()) - return health( - "DescribeEntityAggregates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_entity_aggregates(; aws_config::AbstractAWSConfig=current_aws_config()) = health( + "DescribeEntityAggregates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_entity_aggregates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -206,16 +197,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"awsAccountIds"`: A list of 12-digit Amazon Web Services account numbers that contains the affected entities. """ -function describe_entity_aggregates_for_organization( +describe_entity_aggregates_for_organization( eventArns; aws_config::AbstractAWSConfig=current_aws_config() +) = health( + "DescribeEntityAggregatesForOrganization", + Dict{String,Any}("eventArns" => eventArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return health( - "DescribeEntityAggregatesForOrganization", - Dict{String,Any}("eventArns" => eventArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_entity_aggregates_for_organization( eventArns, params::AbstractDict{String}; @@ -253,16 +242,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function describe_event_aggregates( +describe_event_aggregates( aggregateField; aws_config::AbstractAWSConfig=current_aws_config() +) = health( + "DescribeEventAggregates", + Dict{String,Any}("aggregateField" => aggregateField); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return health( - "DescribeEventAggregates", - Dict{String,Any}("aggregateField" => aggregateField); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_event_aggregates( aggregateField, params::AbstractDict{String}; @@ -304,16 +291,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"locale"`: The locale (language) to return information in. English (en) is the default and the only supported value at this time. """ -function describe_event_details( - eventArns; aws_config::AbstractAWSConfig=current_aws_config() -) - return health( +describe_event_details(eventArns; aws_config::AbstractAWSConfig=current_aws_config()) = + health( "DescribeEventDetails", Dict{String,Any}("eventArns" => eventArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_event_details( eventArns, params::AbstractDict{String}; @@ -363,18 +347,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"locale"`: The locale (language) to return information in. English (en) is the default and the only supported value at this time. """ -function describe_event_details_for_organization( +describe_event_details_for_organization( organizationEventDetailFilters; aws_config::AbstractAWSConfig=current_aws_config() +) = health( + "DescribeEventDetailsForOrganization", + Dict{String,Any}("organizationEventDetailFilters" => organizationEventDetailFilters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return health( - "DescribeEventDetailsForOrganization", - Dict{String,Any}( - "organizationEventDetailFilters" => organizationEventDetailFilters - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_event_details_for_organization( organizationEventDetailFilters, params::AbstractDict{String}; @@ -420,11 +400,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function describe_event_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return health( - "DescribeEventTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_event_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + health("DescribeEventTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_event_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -463,9 +440,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return health("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + health("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -504,15 +480,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function describe_events_for_organization(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return health( +describe_events_for_organization(; aws_config::AbstractAWSConfig=current_aws_config()) = + health( "DescribeEventsForOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_events_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -533,15 +506,13 @@ your organization. To call this operation, you must use the organization's manag account. """ -function describe_health_service_status_for_organization(; +describe_health_service_status_for_organization(; aws_config::AbstractAWSConfig=current_aws_config() +) = health( + "DescribeHealthServiceStatusForOrganization"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return health( - "DescribeHealthServiceStatusForOrganization"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_health_service_status_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -570,15 +541,13 @@ returns an error. Health continues to aggregate health events for your Amazon We account. """ -function disable_health_service_access_for_organization(; +disable_health_service_access_for_organization(; aws_config::AbstractAWSConfig=current_aws_config() +) = health( + "DisableHealthServiceAccessForOrganization"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return health( - "DisableHealthServiceAccessForOrganization"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_health_service_access_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -608,15 +577,13 @@ support plan, you can instead use the Health console to enable the organizationa feature. For more information, see Aggregating Health events in the Health User Guide. """ -function enable_health_service_access_for_organization(; +enable_health_service_access_for_organization(; aws_config::AbstractAWSConfig=current_aws_config() +) = health( + "EnableHealthServiceAccessForOrganization"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return health( - "EnableHealthServiceAccessForOrganization"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_health_service_access_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/healthlake.jl b/src/services/healthlake.jl index 970ab26bc..f85d4e4bb 100644 --- a/src/services/healthlake.jl +++ b/src/services/healthlake.jl @@ -27,18 +27,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided encryption key specified for creating a data store. - `"Tags"`: Resource tags that are applied to a data store when it is created. """ -function create_fhirdatastore( +create_fhirdatastore( DatastoreTypeVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = healthlake( + "CreateFHIRDatastore", + Dict{String,Any}( + "DatastoreTypeVersion" => DatastoreTypeVersion, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return healthlake( - "CreateFHIRDatastore", - Dict{String,Any}( - "DatastoreTypeVersion" => DatastoreTypeVersion, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fhirdatastore( DatastoreTypeVersion, params::AbstractDict{String}; @@ -71,16 +69,13 @@ Deletes a data store. - `datastore_id`: The AWS-generated ID for the data store to be deleted. """ -function delete_fhirdatastore( - DatastoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return healthlake( +delete_fhirdatastore(DatastoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + healthlake( "DeleteFHIRDatastore", Dict{String,Any}("DatastoreId" => DatastoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_fhirdatastore( DatastoreId, params::AbstractDict{String}; @@ -108,16 +103,13 @@ type version, and the data store's endpoint. - `datastore_id`: The AWS-generated data store ID. """ -function describe_fhirdatastore( - DatastoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return healthlake( +describe_fhirdatastore(DatastoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + healthlake( "DescribeFHIRDatastore", Dict{String,Any}("DatastoreId" => DatastoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_fhirdatastore( DatastoreId, params::AbstractDict{String}; @@ -146,16 +138,14 @@ of the job. - `job_id`: The AWS generated ID for an export job. """ -function describe_fhirexport_job( +describe_fhirexport_job( DatastoreId, JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = healthlake( + "DescribeFHIRExportJob", + Dict{String,Any}("DatastoreId" => DatastoreId, "JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return healthlake( - "DescribeFHIRExportJob", - Dict{String,Any}("DatastoreId" => DatastoreId, "JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fhirexport_job( DatastoreId, JobId, @@ -188,16 +178,14 @@ of the job. - `job_id`: The AWS-generated job ID. """ -function describe_fhirimport_job( +describe_fhirimport_job( DatastoreId, JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = healthlake( + "DescribeFHIRImportJob", + Dict{String,Any}("DatastoreId" => DatastoreId, "JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return healthlake( - "DescribeFHIRImportJob", - Dict{String,Any}("DatastoreId" => DatastoreId, "JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fhirimport_job( DatastoreId, JobId, @@ -232,11 +220,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListFHIRDatastoresRequest call. - `"NextToken"`: Fetches the next page of data stores when results are paginated. """ -function list_fhirdatastores(; aws_config::AbstractAWSConfig=current_aws_config()) - return healthlake( - "ListFHIRDatastores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_fhirdatastores(; aws_config::AbstractAWSConfig=current_aws_config()) = + healthlake("ListFHIRDatastores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_fhirdatastores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -270,16 +255,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubmittedBefore"`: This parameter limits the response to FHIR export jobs submitted before a user specified date. """ -function list_fhirexport_jobs( - DatastoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return healthlake( +list_fhirexport_jobs(DatastoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + healthlake( "ListFHIRExportJobs", Dict{String,Any}("DatastoreId" => DatastoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_fhirexport_jobs( DatastoreId, params::AbstractDict{String}; @@ -320,16 +302,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubmittedBefore"`: This parameter limits the response to FHIR import jobs submitted before a user specified date. """ -function list_fhirimport_jobs( - DatastoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return healthlake( +list_fhirimport_jobs(DatastoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + healthlake( "ListFHIRImportJobs", Dict{String,Any}("DatastoreId" => DatastoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_fhirimport_jobs( DatastoreId, params::AbstractDict{String}; @@ -356,16 +335,13 @@ end added. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return healthlake( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + healthlake( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -399,25 +375,23 @@ Begins a FHIR export job. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"JobName"`: The user generated name for an export job. """ -function start_fhirexport_job( +start_fhirexport_job( ClientToken, DataAccessRoleArn, DatastoreId, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = healthlake( + "StartFHIRExportJob", + Dict{String,Any}( + "ClientToken" => ClientToken, + "DataAccessRoleArn" => DataAccessRoleArn, + "DatastoreId" => DatastoreId, + "OutputDataConfig" => OutputDataConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return healthlake( - "StartFHIRExportJob", - Dict{String,Any}( - "ClientToken" => ClientToken, - "DataAccessRoleArn" => DataAccessRoleArn, - "DatastoreId" => DatastoreId, - "OutputDataConfig" => OutputDataConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_fhirexport_job( ClientToken, DataAccessRoleArn, @@ -464,27 +438,25 @@ Begins a FHIR Import job. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"JobName"`: The name of the FHIR Import job in the StartFHIRImport job request. """ -function start_fhirimport_job( +start_fhirimport_job( ClientToken, DataAccessRoleArn, DatastoreId, InputDataConfig, JobOutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = healthlake( + "StartFHIRImportJob", + Dict{String,Any}( + "ClientToken" => ClientToken, + "DataAccessRoleArn" => DataAccessRoleArn, + "DatastoreId" => DatastoreId, + "InputDataConfig" => InputDataConfig, + "JobOutputDataConfig" => JobOutputDataConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return healthlake( - "StartFHIRImportJob", - Dict{String,Any}( - "ClientToken" => ClientToken, - "DataAccessRoleArn" => DataAccessRoleArn, - "DatastoreId" => DatastoreId, - "InputDataConfig" => InputDataConfig, - "JobOutputDataConfig" => JobOutputDataConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_fhirimport_job( ClientToken, DataAccessRoleArn, @@ -526,14 +498,13 @@ end - `tags`: The user specified key and value pair tags being added to a data store. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return healthlake( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + healthlake( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -566,16 +537,13 @@ end - `tag_keys`: The keys for the tags to be removed from the HealthLake data store. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return healthlake( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + healthlake( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, diff --git a/src/services/iam.jl b/src/services/iam.jl index b368c1fd4..ea7b774c4 100644 --- a/src/services/iam.jl +++ b/src/services/iam.jl @@ -21,18 +21,16 @@ provider. by using the ListOpenIDConnectProviders operation. """ -function add_client_idto_open_idconnect_provider( +add_client_idto_open_idconnect_provider( ClientID, OpenIDConnectProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "AddClientIDToOpenIDConnectProvider", + Dict{String,Any}( + "ClientID" => ClientID, "OpenIDConnectProviderArn" => OpenIDConnectProviderArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "AddClientIDToOpenIDConnectProvider", - Dict{String,Any}( - "ClientID" => ClientID, "OpenIDConnectProviderArn" => OpenIDConnectProviderArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_client_idto_open_idconnect_provider( ClientID, OpenIDConnectProviderArn, @@ -80,18 +78,14 @@ instance profiles, see Using instance profiles in the IAM User Guide. with no spaces. You can also include any of the following characters: _+=,.@- """ -function add_role_to_instance_profile( +add_role_to_instance_profile( InstanceProfileName, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "AddRoleToInstanceProfile", + Dict{String,Any}("InstanceProfileName" => InstanceProfileName, "RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "AddRoleToInstanceProfile", - Dict{String,Any}( - "InstanceProfileName" => InstanceProfileName, "RoleName" => RoleName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_role_to_instance_profile( InstanceProfileName, RoleName, @@ -129,16 +123,13 @@ Adds the specified user to the specified group. with no spaces. You can also include any of the following characters: _+=,.@- """ -function add_user_to_group( - GroupName, UserName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +add_user_to_group(GroupName, UserName; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "AddUserToGroup", Dict{String,Any}("GroupName" => GroupName, "UserName" => UserName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_user_to_group( GroupName, UserName, @@ -179,16 +170,14 @@ Managed policies and inline policies in the IAM User Guide. General Reference. """ -function attach_group_policy( +attach_group_policy( GroupName, PolicyArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "AttachGroupPolicy", + Dict{String,Any}("GroupName" => GroupName, "PolicyArn" => PolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "AttachGroupPolicy", - Dict{String,Any}("GroupName" => GroupName, "PolicyArn" => PolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_group_policy( GroupName, PolicyArn, @@ -233,16 +222,14 @@ the IAM User Guide. characters: _+=,.@- """ -function attach_role_policy( +attach_role_policy( PolicyArn, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "AttachRolePolicy", + Dict{String,Any}("PolicyArn" => PolicyArn, "RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "AttachRolePolicy", - Dict{String,Any}("PolicyArn" => PolicyArn, "RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_role_policy( PolicyArn, RoleName, @@ -283,16 +270,14 @@ and inline policies in the IAM User Guide. following characters: _+=,.@- """ -function attach_user_policy( +attach_user_policy( PolicyArn, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "AttachUserPolicy", + Dict{String,Any}("PolicyArn" => PolicyArn, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "AttachUserPolicy", - Dict{String,Any}("PolicyArn" => PolicyArn, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_user_policy( PolicyArn, UserName, @@ -337,16 +322,14 @@ IAM User Guide. - `old_password`: The IAM user's current password. """ -function change_password( +change_password( NewPassword, OldPassword; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ChangePassword", + Dict{String,Any}("NewPassword" => NewPassword, "OldPassword" => OldPassword); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ChangePassword", - Dict{String,Any}("NewPassword" => NewPassword, "OldPassword" => OldPassword); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function change_password( NewPassword, OldPassword, @@ -393,9 +376,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function create_access_key(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("CreateAccessKey"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_access_key(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("CreateAccessKey"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_access_key( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -418,16 +400,13 @@ Services account alias in the Amazon Web Services Sign-In User Guide. cannot start or finish with a dash, nor can you have two dashes in a row. """ -function create_account_alias( - AccountAlias; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +create_account_alias(AccountAlias; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "CreateAccountAlias", Dict{String,Any}("AccountAlias" => AccountAlias); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_account_alias( AccountAlias, params::AbstractDict{String}; @@ -466,14 +445,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function create_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "CreateGroup", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "CreateGroup", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_group( GroupName, params::AbstractDict{String}; @@ -519,16 +496,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. """ -function create_instance_profile( +create_instance_profile( InstanceProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreateInstanceProfile", + Dict{String,Any}("InstanceProfileName" => InstanceProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreateInstanceProfile", - Dict{String,Any}("InstanceProfileName" => InstanceProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instance_profile( InstanceProfileName, params::AbstractDict{String}; @@ -577,16 +552,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PasswordResetRequired"`: Specifies whether the user is required to set a new password on next sign-in. """ -function create_login_profile( +create_login_profile( Password, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreateLoginProfile", + Dict{String,Any}("Password" => Password, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreateLoginProfile", - Dict{String,Any}("Password" => Password, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_login_profile( Password, UserName, @@ -625,14 +598,13 @@ audiences) that identify the application or applications allowed to authenticate OIDC provider A list of tags that are attached to the specified IAM OIDC provider A list of thumbprints of one or more server certificates that the IdP uses You get all of this information from the OIDC IdP you want to use to access Amazon Web Services. Amazon -Web Services secures communication with some OIDC identity providers (IdPs) through our -library of trusted root certificate authorities (CAs) instead of using a certificate -thumbprint to verify your IdP server certificate. In these cases, your legacy thumbprint -remains in your configuration, but is no longer used for validation. These OIDC IdPs -include Auth0, GitHub, GitLab, Google, and those that use an Amazon S3 bucket to host a -JSON Web Key Set (JWKS) endpoint. The trust for the OIDC provider is derived from the IAM -provider that this operation creates. Therefore, it is best to limit access to the -CreateOpenIDConnectProvider operation to highly privileged users. +Web Services secures communication with OIDC identity providers (IdPs) using our library of +trusted root certificate authorities (CAs) to verify the JSON Web Key Set (JWKS) endpoint's +TLS certificate. If your OIDC IdP relies on a certificate that is not signed by one of +these trusted CAs, only then we secure communication using the thumbprints set in the IdP's +configuration. The trust for the OIDC provider is derived from the IAM provider that this +operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider +operation to highly privileged users. # Arguments - `url`: The URL of the identity provider. The URL must begin with https:// and should @@ -675,16 +647,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys thumbprint, see Obtaining the thumbprint for an OpenID Connect provider in the IAM user Guide. """ -function create_open_idconnect_provider( - Url; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +create_open_idconnect_provider(Url; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "CreateOpenIDConnectProvider", Dict{String,Any}("Url" => Url); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_open_idconnect_provider( Url, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -744,16 +713,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. """ -function create_policy( +create_policy( PolicyDocument, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreatePolicy", + Dict{String,Any}("PolicyDocument" => PolicyDocument, "PolicyName" => PolicyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreatePolicy", - Dict{String,Any}("PolicyDocument" => PolicyDocument, "PolicyName" => PolicyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_policy( PolicyDocument, PolicyName, @@ -813,16 +780,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys policy is attached to. For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide. """ -function create_policy_version( +create_policy_version( PolicyArn, PolicyDocument; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreatePolicyVersion", + Dict{String,Any}("PolicyArn" => PolicyArn, "PolicyDocument" => PolicyDocument); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreatePolicyVersion", - Dict{String,Any}("PolicyArn" => PolicyArn, "PolicyDocument" => PolicyDocument); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_policy_version( PolicyArn, PolicyDocument, @@ -905,18 +870,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys allowed maximum number of tags, then the entire request fails and the resource is not created. """ -function create_role( +create_role( AssumeRolePolicyDocument, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreateRole", + Dict{String,Any}( + "AssumeRolePolicyDocument" => AssumeRolePolicyDocument, "RoleName" => RoleName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreateRole", - Dict{String,Any}( - "AssumeRolePolicyDocument" => AssumeRolePolicyDocument, "RoleName" => RoleName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_role( AssumeRolePolicyDocument, RoleName, @@ -977,16 +940,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. """ -function create_samlprovider( +create_samlprovider( Name, SAMLMetadataDocument; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreateSAMLProvider", + Dict{String,Any}("Name" => Name, "SAMLMetadataDocument" => SAMLMetadataDocument); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreateSAMLProvider", - Dict{String,Any}("Name" => Name, "SAMLMetadataDocument" => SAMLMetadataDocument); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_samlprovider( Name, SAMLMetadataDocument, @@ -1041,16 +1002,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and the operation fails, try the operation again without the suffix. - `"Description"`: The description of the role. """ -function create_service_linked_role( +create_service_linked_role( AWSServiceName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreateServiceLinkedRole", + Dict{String,Any}("AWSServiceName" => AWSServiceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreateServiceLinkedRole", - Dict{String,Any}("AWSServiceName" => AWSServiceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_linked_role( AWSServiceName, params::AbstractDict{String}; @@ -1091,16 +1050,14 @@ keys in the IAM User Guide. characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function create_service_specific_credential( +create_service_specific_credential( ServiceName, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreateServiceSpecificCredential", + Dict{String,Any}("ServiceName" => ServiceName, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreateServiceSpecificCredential", - Dict{String,Any}("ServiceName" => ServiceName, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_specific_credential( ServiceName, UserName, @@ -1155,14 +1112,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys allowed maximum number of tags, then the entire request fails and the resource is not created. """ -function create_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "CreateUser", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "CreateUser", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_user( UserName, params::AbstractDict{String}; @@ -1213,16 +1168,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. """ -function create_virtual_mfadevice( +create_virtual_mfadevice( VirtualMFADeviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "CreateVirtualMFADevice", + Dict{String,Any}("VirtualMFADeviceName" => VirtualMFADeviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "CreateVirtualMFADevice", - Dict{String,Any}("VirtualMFADeviceName" => VirtualMFADeviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_virtual_mfadevice( VirtualMFADeviceName, params::AbstractDict{String}; @@ -1262,16 +1215,14 @@ IAM User Guide. characters: _+=,.@- """ -function deactivate_mfadevice( +deactivate_mfadevice( SerialNumber, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeactivateMFADevice", + Dict{String,Any}("SerialNumber" => SerialNumber, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeactivateMFADevice", - Dict{String,Any}("SerialNumber" => SerialNumber, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deactivate_mfadevice( SerialNumber, UserName, @@ -1315,14 +1266,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function delete_access_key(AccessKeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "DeleteAccessKey", - Dict{String,Any}("AccessKeyId" => AccessKeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_access_key(AccessKeyId; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "DeleteAccessKey", + Dict{String,Any}("AccessKeyId" => AccessKeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_access_key( AccessKeyId, params::AbstractDict{String}; @@ -1352,16 +1301,13 @@ Services account alias in the Amazon Web Services Sign-In User Guide. dashes. You cannot start or finish with a dash, nor can you have two dashes in a row. """ -function delete_account_alias( - AccountAlias; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +delete_account_alias(AccountAlias; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "DeleteAccountAlias", Dict{String,Any}("AccountAlias" => AccountAlias); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_account_alias( AccountAlias, params::AbstractDict{String}; @@ -1384,15 +1330,11 @@ end Deletes the password policy for the Amazon Web Services account. There are no parameters. """ -function delete_account_password_policy(; - aws_config::AbstractAWSConfig=current_aws_config() +delete_account_password_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "DeleteAccountPasswordPolicy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteAccountPasswordPolicy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_account_password_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1417,14 +1359,12 @@ policies. characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function delete_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "DeleteGroup", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "DeleteGroup", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_group( GroupName, params::AbstractDict{String}; @@ -1460,16 +1400,14 @@ inline policies in the IAM User Guide. characters: _+=,.@- """ -function delete_group_policy( +delete_group_policy( GroupName, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteGroupPolicy", + Dict{String,Any}("GroupName" => GroupName, "PolicyName" => PolicyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteGroupPolicy", - Dict{String,Any}("GroupName" => GroupName, "PolicyName" => PolicyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_group_policy( GroupName, PolicyName, @@ -1507,16 +1445,14 @@ information about instance profiles, see Using instance profiles in the IAM User characters: _+=,.@- """ -function delete_instance_profile( +delete_instance_profile( InstanceProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteInstanceProfile", + Dict{String,Any}("InstanceProfileName" => InstanceProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteInstanceProfile", - Dict{String,Any}("InstanceProfileName" => InstanceProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_instance_profile( InstanceProfileName, params::AbstractDict{String}; @@ -1557,14 +1493,12 @@ DeleteAccessKey. characters: _+=,.@- """ -function delete_login_profile(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "DeleteLoginProfile", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_login_profile(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "DeleteLoginProfile", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_login_profile( UserName, params::AbstractDict{String}; @@ -1596,16 +1530,14 @@ operation for a provider that does not exist. ARNs by using the ListOpenIDConnectProviders operation. """ -function delete_open_idconnect_provider( +delete_open_idconnect_provider( OpenIDConnectProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteOpenIDConnectProvider", + Dict{String,Any}("OpenIDConnectProviderArn" => OpenIDConnectProviderArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteOpenIDConnectProvider", - Dict{String,Any}("OpenIDConnectProviderArn" => OpenIDConnectProviderArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_open_idconnect_provider( OpenIDConnectProviderArn, params::AbstractDict{String}; @@ -1648,14 +1580,12 @@ policies, see Managed policies and inline policies in the IAM User Guide. General Reference. """ -function delete_policy(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "DeletePolicy", - Dict{String,Any}("PolicyArn" => PolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_policy(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "DeletePolicy", + Dict{String,Any}("PolicyArn" => PolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_policy( PolicyArn, params::AbstractDict{String}; @@ -1692,16 +1622,14 @@ Versioning for managed policies in the IAM User Guide. the IAM User Guide. """ -function delete_policy_version( +delete_policy_version( PolicyArn, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeletePolicyVersion", + Dict{String,Any}("PolicyArn" => PolicyArn, "VersionId" => VersionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeletePolicyVersion", - Dict{String,Any}("PolicyArn" => PolicyArn, "VersionId" => VersionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_policy_version( PolicyArn, VersionId, @@ -1743,14 +1671,12 @@ running on the instance. with no spaces. You can also include any of the following characters: _+=,.@- """ -function delete_role(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "DeleteRole", - Dict{String,Any}("RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_role(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "DeleteRole", + Dict{String,Any}("RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_role( RoleName, params::AbstractDict{String}; @@ -1780,16 +1706,14 @@ actions granted in its permissions policies. remove the permissions boundary. """ -function delete_role_permissions_boundary( +delete_role_permissions_boundary( RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteRolePermissionsBoundary", + Dict{String,Any}("RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteRolePermissionsBoundary", - Dict{String,Any}("RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_role_permissions_boundary( RoleName, params::AbstractDict{String}; @@ -1825,16 +1749,14 @@ policies in the IAM User Guide. include any of the following characters: _+=,.@- """ -function delete_role_policy( +delete_role_policy( PolicyName, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteRolePolicy", + Dict{String,Any}("PolicyName" => PolicyName, "RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteRolePolicy", - Dict{String,Any}("PolicyName" => PolicyName, "RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_role_policy( PolicyName, RoleName, @@ -1868,16 +1790,13 @@ resource ARN fails. This operation requires Signature Version 4. - `samlprovider_arn`: The Amazon Resource Name (ARN) of the SAML provider to delete. """ -function delete_samlprovider( - SAMLProviderArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +delete_samlprovider(SAMLProviderArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "DeleteSAMLProvider", Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_samlprovider( SAMLProviderArn, params::AbstractDict{String}; @@ -1917,16 +1836,14 @@ DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference. characters: _+=,.@- """ -function delete_server_certificate( +delete_server_certificate( ServerCertificateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteServerCertificate", + Dict{String,Any}("ServerCertificateName" => ServerCertificateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteServerCertificate", - Dict{String,Any}("ServerCertificateName" => ServerCertificateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_server_certificate( ServerCertificateName, params::AbstractDict{String}; @@ -1969,16 +1886,13 @@ terms and concepts: Amazon Web Services service-linked role in the IAM User Guid - `role_name`: The name of the service-linked role to be deleted. """ -function delete_service_linked_role( - RoleName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +delete_service_linked_role(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "DeleteServiceLinkedRole", Dict{String,Any}("RoleName" => RoleName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_service_linked_role( RoleName, params::AbstractDict{String}; @@ -2014,16 +1928,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function delete_service_specific_credential( +delete_service_specific_credential( ServiceSpecificCredentialId; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteServiceSpecificCredential", + Dict{String,Any}("ServiceSpecificCredentialId" => ServiceSpecificCredentialId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteServiceSpecificCredential", - Dict{String,Any}("ServiceSpecificCredentialId" => ServiceSpecificCredentialId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service_specific_credential( ServiceSpecificCredentialId, params::AbstractDict{String}; @@ -2068,16 +1980,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function delete_signing_certificate( +delete_signing_certificate( CertificateId; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteSigningCertificate", + Dict{String,Any}("CertificateId" => CertificateId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteSigningCertificate", - Dict{String,Any}("CertificateId" => CertificateId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_signing_certificate( CertificateId, params::AbstractDict{String}; @@ -2112,16 +2022,14 @@ CodeCommit for SSH connections in the CodeCommit User Guide. characters: _+=,.@- """ -function delete_sshpublic_key( +delete_sshpublic_key( SSHPublicKeyId, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteSSHPublicKey", + Dict{String,Any}("SSHPublicKeyId" => SSHPublicKeyId, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteSSHPublicKey", - Dict{String,Any}("SSHPublicKeyId" => SSHPublicKeyId, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sshpublic_key( SSHPublicKeyId, UserName, @@ -2164,14 +2072,12 @@ authentication (MFA) device (DeactivateMFADevice, DeleteVirtualMFADevice) Inli with no spaces. You can also include any of the following characters: _+=,.@- """ -function delete_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "DeleteUser", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "DeleteUser", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_user( UserName, params::AbstractDict{String}; @@ -2200,16 +2106,14 @@ actions granted in its permissions policies. remove the permissions boundary. """ -function delete_user_permissions_boundary( +delete_user_permissions_boundary( UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteUserPermissionsBoundary", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteUserPermissionsBoundary", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_permissions_boundary( UserName, params::AbstractDict{String}; @@ -2245,16 +2149,14 @@ policies in the IAM User Guide. include any of the following characters: _+=,.@- """ -function delete_user_policy( +delete_user_policy( PolicyName, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DeleteUserPolicy", + Dict{String,Any}("PolicyName" => PolicyName, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DeleteUserPolicy", - Dict{String,Any}("PolicyName" => PolicyName, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_policy( PolicyName, UserName, @@ -2289,16 +2191,13 @@ can delete it. For information about deactivating MFA devices, see DeactivateMFA characters with no spaces. You can also include any of the following characters: =,.@:/- """ -function delete_virtual_mfadevice( - SerialNumber; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +delete_virtual_mfadevice(SerialNumber; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "DeleteVirtualMFADevice", Dict{String,Any}("SerialNumber" => SerialNumber); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_virtual_mfadevice( SerialNumber, params::AbstractDict{String}; @@ -2332,16 +2231,14 @@ information about policies, see Managed policies and inline policies in the IAM General Reference. """ -function detach_group_policy( +detach_group_policy( GroupName, PolicyArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DetachGroupPolicy", + Dict{String,Any}("GroupName" => GroupName, "PolicyArn" => PolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DetachGroupPolicy", - Dict{String,Any}("GroupName" => GroupName, "PolicyArn" => PolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_group_policy( GroupName, PolicyArn, @@ -2380,16 +2277,14 @@ information about policies, see Managed policies and inline policies in the IAM following characters: _+=,.@- """ -function detach_role_policy( +detach_role_policy( PolicyArn, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DetachRolePolicy", + Dict{String,Any}("PolicyArn" => PolicyArn, "RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DetachRolePolicy", - Dict{String,Any}("PolicyArn" => PolicyArn, "RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_role_policy( PolicyArn, RoleName, @@ -2428,16 +2323,14 @@ information about policies, see Managed policies and inline policies in the IAM following characters: _+=,.@- """ -function detach_user_policy( +detach_user_policy( PolicyArn, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "DetachUserPolicy", + Dict{String,Any}("PolicyArn" => PolicyArn, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "DetachUserPolicy", - Dict{String,Any}("PolicyArn" => PolicyArn, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_user_policy( PolicyArn, UserName, @@ -2489,25 +2382,23 @@ with the device. characters: _+=,.@- """ -function enable_mfadevice( +enable_mfadevice( AuthenticationCode1, AuthenticationCode2, SerialNumber, UserName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iam( + "EnableMFADevice", + Dict{String,Any}( + "AuthenticationCode1" => AuthenticationCode1, + "AuthenticationCode2" => AuthenticationCode2, + "SerialNumber" => SerialNumber, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "EnableMFADevice", - Dict{String,Any}( - "AuthenticationCode1" => AuthenticationCode1, - "AuthenticationCode2" => AuthenticationCode2, - "SerialNumber" => SerialNumber, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_mfadevice( AuthenticationCode1, AuthenticationCode2, @@ -2543,11 +2434,8 @@ end about the credential report, see Getting credential reports in the IAM User Guide. """ -function generate_credential_report(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "GenerateCredentialReport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +generate_credential_report(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("GenerateCredentialReport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function generate_credential_report( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2651,16 +2539,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account principal that is limited by the SCP attempted to access an Amazon Web Services service. """ -function generate_organizations_access_report( +generate_organizations_access_report( EntityPath; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GenerateOrganizationsAccessReport", + Dict{String,Any}("EntityPath" => EntityPath); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GenerateOrganizationsAccessReport", - Dict{String,Any}("EntityPath" => EntityPath); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_organizations_access_report( EntityPath, params::AbstractDict{String}; @@ -2729,16 +2615,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify action-level granularity, it generates service and action data. If you don't include this optional parameter, the operation generates service data. """ -function generate_service_last_accessed_details( +generate_service_last_accessed_details( Arn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GenerateServiceLastAccessedDetails", + Dict{String,Any}("Arn" => Arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GenerateServiceLastAccessedDetails", - Dict{String,Any}("Arn" => Arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_service_last_accessed_details( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2764,16 +2648,13 @@ Region that were specified in the last request made with that key. digit. """ -function get_access_key_last_used( - AccessKeyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +get_access_key_last_used(AccessKeyId; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "GetAccessKeyLastUsed", Dict{String,Any}("AccessKeyId" => AccessKeyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_access_key_last_used( AccessKeyId, params::AbstractDict{String}; @@ -2821,15 +2702,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function get_account_authorization_details(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +get_account_authorization_details(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "GetAccountAuthorizationDetails"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_account_authorization_details( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2851,11 +2729,8 @@ account. For more information about using a password policy, see Managing an IAM policy. """ -function get_account_password_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "GetAccountPasswordPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account_password_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("GetAccountPasswordPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_account_password_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2875,9 +2750,8 @@ Retrieves information about IAM entity usage and IAM quotas in the Amazon Web Se account. For information about IAM quotas, see IAM and STS quotas in the IAM User Guide. """ -function get_account_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("GetAccountSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_account_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("GetAccountSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_account_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2911,16 +2785,14 @@ of a real HTML request. return (u000D) """ -function get_context_keys_for_custom_policy( +get_context_keys_for_custom_policy( PolicyInputList; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetContextKeysForCustomPolicy", + Dict{String,Any}("PolicyInputList" => PolicyInputList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetContextKeysForCustomPolicy", - Dict{String,Any}("PolicyInputList" => PolicyInputList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_context_keys_for_custom_policy( PolicyInputList, params::AbstractDict{String}; @@ -2975,16 +2847,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys u00FF) The special characters tab (u0009), line feed (u000A), and carriage return (u000D) """ -function get_context_keys_for_principal_policy( +get_context_keys_for_principal_policy( PolicySourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetContextKeysForPrincipalPolicy", + Dict{String,Any}("PolicySourceArn" => PolicySourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetContextKeysForPrincipalPolicy", - Dict{String,Any}("PolicySourceArn" => PolicySourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_context_keys_for_principal_policy( PolicySourceArn, params::AbstractDict{String}; @@ -3010,11 +2880,8 @@ end about the credential report, see Getting credential reports in the IAM User Guide. """ -function get_credential_report(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "GetCredentialReport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_credential_report(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("GetCredentialReport"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_credential_report( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3051,14 +2918,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function get_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "GetGroup", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "GetGroup", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_group( GroupName, params::AbstractDict{String}; @@ -3098,16 +2963,14 @@ and inline policies in the IAM User Guide. characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function get_group_policy( +get_group_policy( GroupName, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetGroupPolicy", + Dict{String,Any}("GroupName" => GroupName, "PolicyName" => PolicyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetGroupPolicy", - Dict{String,Any}("GroupName" => GroupName, "PolicyName" => PolicyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_group_policy( GroupName, PolicyName, @@ -3143,16 +3006,14 @@ Using instance profiles in the IAM User Guide. characters: _+=,.@- """ -function get_instance_profile( +get_instance_profile( InstanceProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetInstanceProfile", + Dict{String,Any}("InstanceProfileName" => InstanceProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetInstanceProfile", - Dict{String,Any}("InstanceProfileName" => InstanceProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_profile( InstanceProfileName, params::AbstractDict{String}; @@ -3193,14 +3054,12 @@ for the user to access the Amazon Web Services Management Console. characters: _+=,.@- """ -function get_login_profile(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "GetLoginProfile", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_login_profile(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "GetLoginProfile", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_login_profile( UserName, params::AbstractDict{String}; @@ -3230,14 +3089,12 @@ Retrieves information about an MFA device for a specified user. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"UserName"`: The friendly name identifying the user. """ -function get_mfadevice(SerialNumber; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "GetMFADevice", - Dict{String,Any}("SerialNumber" => SerialNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_mfadevice(SerialNumber; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "GetMFADevice", + Dict{String,Any}("SerialNumber" => SerialNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_mfadevice( SerialNumber, params::AbstractDict{String}; @@ -3267,16 +3124,14 @@ IAM. see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. """ -function get_open_idconnect_provider( +get_open_idconnect_provider( OpenIDConnectProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetOpenIDConnectProvider", + Dict{String,Any}("OpenIDConnectProviderArn" => OpenIDConnectProviderArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetOpenIDConnectProvider", - Dict{String,Any}("OpenIDConnectProviderArn" => OpenIDConnectProviderArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_open_idconnect_provider( OpenIDConnectProviderArn, params::AbstractDict{String}; @@ -3334,16 +3189,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the results are returned in alphabetical order. If you choose the time key, the results are sorted numerically by the date and time. """ -function get_organizations_access_report( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +get_organizations_access_report(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "GetOrganizationsAccessReport", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_organizations_access_report( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3375,14 +3227,12 @@ Managed policies and inline policies in the IAM User Guide. Amazon Web Services General Reference. """ -function get_policy(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "GetPolicy", - Dict{String,Any}("PolicyArn" => PolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_policy(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "GetPolicy", + Dict{String,Any}("PolicyArn" => PolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_policy( PolicyArn, params::AbstractDict{String}; @@ -3424,16 +3274,14 @@ managed policy versions, see Versioning for managed policies in the IAM User Gui letters and digits. """ -function get_policy_version( +get_policy_version( PolicyArn, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetPolicyVersion", + Dict{String,Any}("PolicyArn" => PolicyArn, "VersionId" => VersionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetPolicyVersion", - Dict{String,Any}("PolicyArn" => PolicyArn, "VersionId" => VersionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_policy_version( PolicyArn, VersionId, @@ -3473,14 +3321,12 @@ similar functionality. characters: _+=,.@- """ -function get_role(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "GetRole", - Dict{String,Any}("RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_role(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "GetRole", + Dict{String,Any}("RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_role( RoleName, params::AbstractDict{String}; @@ -3521,16 +3367,13 @@ roles, see IAM roles in the IAM User Guide. characters: _+=,.@- """ -function get_role_policy( - PolicyName, RoleName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +get_role_policy(PolicyName, RoleName; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "GetRolePolicy", Dict{String,Any}("PolicyName" => PolicyName, "RoleName" => RoleName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_role_policy( PolicyName, RoleName, @@ -3564,16 +3407,12 @@ resource object was created or updated. This operation requires Signature Versi (ARNs) in the Amazon Web Services General Reference. """ -function get_samlprovider( - SAMLProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +get_samlprovider(SAMLProviderArn; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "GetSAMLProvider", + Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetSAMLProvider", - Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_samlprovider( SAMLProviderArn, params::AbstractDict{String}; @@ -3607,16 +3446,14 @@ the server certificates that you manage with IAM. include any of the following characters: _+=,.@- """ -function get_server_certificate( +get_server_certificate( ServerCertificateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetServerCertificate", + Dict{String,Any}("ServerCertificateName" => ServerCertificateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetServerCertificate", - Dict{String,Any}("ServerCertificateName" => ServerCertificateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_server_certificate( ServerCertificateName, params::AbstractDict{String}; @@ -3686,16 +3523,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function get_service_last_accessed_details( +get_service_last_accessed_details( JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetServiceLastAccessedDetails", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetServiceLastAccessedDetails", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_last_accessed_details( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3748,16 +3583,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function get_service_last_accessed_details_with_entities( +get_service_last_accessed_details_with_entities( JobId, ServiceNamespace; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetServiceLastAccessedDetailsWithEntities", + Dict{String,Any}("JobId" => JobId, "ServiceNamespace" => ServiceNamespace); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetServiceLastAccessedDetailsWithEntities", - Dict{String,Any}("JobId" => JobId, "ServiceNamespace" => ServiceNamespace); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_last_accessed_details_with_entities( JobId, ServiceNamespace, @@ -3794,16 +3627,14 @@ information is returned by the service. task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>. """ -function get_service_linked_role_deletion_status( +get_service_linked_role_deletion_status( DeletionTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetServiceLinkedRoleDeletionStatus", + Dict{String,Any}("DeletionTaskId" => DeletionTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetServiceLinkedRoleDeletionStatus", - Dict{String,Any}("DeletionTaskId" => DeletionTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_linked_role_deletion_status( DeletionTaskId, params::AbstractDict{String}; @@ -3842,20 +3673,18 @@ Guide. characters: _+=,.@- """ -function get_sshpublic_key( +get_sshpublic_key( Encoding, SSHPublicKeyId, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "GetSSHPublicKey", + Dict{String,Any}( + "Encoding" => Encoding, + "SSHPublicKeyId" => SSHPublicKeyId, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "GetSSHPublicKey", - Dict{String,Any}( - "Encoding" => Encoding, - "SSHPublicKeyId" => SSHPublicKeyId, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sshpublic_key( Encoding, SSHPublicKeyId, @@ -3898,9 +3727,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function get_user(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("GetUser"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_user(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("GetUser"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_user( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3931,16 +3759,13 @@ and inline policies in the IAM User Guide. characters: _+=,.@- """ -function get_user_policy( - PolicyName, UserName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +get_user_policy(PolicyName, UserName; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "GetUserPolicy", Dict{String,Any}("PolicyName" => PolicyName, "UserName" => UserName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_user_policy( PolicyName, UserName, @@ -3993,9 +3818,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function list_access_keys(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListAccessKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_access_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListAccessKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_access_keys( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4010,8 +3834,7 @@ end Lists the account alias associated with the Amazon Web Services account (Note: you can have only one). For information about using an Amazon Web Services account alias, see Creating, -deleting, and listing an Amazon Web Services account alias in the Amazon Web Services -Sign-In User Guide. +deleting, and listing an Amazon Web Services account alias in the IAM User Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -4026,9 +3849,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_account_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListAccountAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_account_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListAccountAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_account_aliases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4075,16 +3897,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contain any ASCII character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function list_attached_group_policies( +list_attached_group_policies( GroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ListAttachedGroupPolicies", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ListAttachedGroupPolicies", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_attached_group_policies( GroupName, params::AbstractDict{String}; @@ -4138,16 +3958,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contain any ASCII character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function list_attached_role_policies( - RoleName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +list_attached_role_policies(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "ListAttachedRolePolicies", Dict{String,Any}("RoleName" => RoleName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_attached_role_policies( RoleName, params::AbstractDict{String}; @@ -4201,16 +4018,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contain any ASCII character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function list_attached_user_policies( - UserName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +list_attached_user_policies(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "ListAttachedUserPolicies", Dict{String,Any}("UserName" => UserName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_attached_user_policies( UserName, params::AbstractDict{String}; @@ -4268,17 +4082,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys only permissions policies, set PolicyUsageFilter to PermissionsPolicy. To list only the policies used to set permissions boundaries, set the value to PermissionsBoundary. This parameter is optional. If it is not included, all policies are returned. -""" -function list_entities_for_policy( - PolicyArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +""" +list_entities_for_policy(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "ListEntitiesForPolicy", Dict{String,Any}("PolicyArn" => PolicyArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_entities_for_policy( PolicyArn, params::AbstractDict{String}; @@ -4323,14 +4134,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_group_policies(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListGroupPolicies", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_group_policies(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListGroupPolicies", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_group_policies( GroupName, params::AbstractDict{String}; @@ -4374,9 +4183,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function list_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4408,14 +4216,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_groups_for_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListGroupsForUser", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_groups_for_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListGroupsForUser", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_groups_for_user( UserName, params::AbstractDict{String}; @@ -4458,16 +4264,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_instance_profile_tags( +list_instance_profile_tags( InstanceProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ListInstanceProfileTags", + Dict{String,Any}("InstanceProfileName" => InstanceProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ListInstanceProfileTags", - Dict{String,Any}("InstanceProfileName" => InstanceProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_instance_profile_tags( InstanceProfileName, params::AbstractDict{String}; @@ -4520,11 +4324,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ASCII character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function list_instance_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListInstanceProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_instance_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListInstanceProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_instance_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4564,16 +4365,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_instance_profiles_for_role( +list_instance_profiles_for_role( RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ListInstanceProfilesForRole", + Dict{String,Any}("RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ListInstanceProfilesForRole", - Dict{String,Any}("RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_instance_profiles_for_role( RoleName, params::AbstractDict{String}; @@ -4617,16 +4416,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_mfadevice_tags( - SerialNumber; aws_config::AbstractAWSConfig=current_aws_config() +list_mfadevice_tags(SerialNumber; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListMFADeviceTags", + Dict{String,Any}("SerialNumber" => SerialNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ListMFADeviceTags", - Dict{String,Any}("SerialNumber" => SerialNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_mfadevice_tags( SerialNumber, params::AbstractDict{String}; @@ -4669,9 +4464,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function list_mfadevices(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListMFADevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_mfadevices(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListMFADevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_mfadevices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4708,16 +4502,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_open_idconnect_provider_tags( +list_open_idconnect_provider_tags( OpenIDConnectProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ListOpenIDConnectProviderTags", + Dict{String,Any}("OpenIDConnectProviderArn" => OpenIDConnectProviderArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ListOpenIDConnectProviderTags", - Dict{String,Any}("OpenIDConnectProviderArn" => OpenIDConnectProviderArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_open_idconnect_provider_tags( OpenIDConnectProviderArn, params::AbstractDict{String}; @@ -4748,11 +4540,9 @@ even though they are an attribute of the returned object. To view all of the inf for an OIDC provider, see GetOpenIDConnectProvider. """ -function list_open_idconnect_providers(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListOpenIDConnectProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_open_idconnect_providers(; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListOpenIDConnectProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_open_idconnect_providers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4811,9 +4601,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Web Services account, set Scope to Local. This parameter is optional. If it is not included, or if it is set to All, all policies are returned. """ -function list_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4862,16 +4651,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start. """ -function list_policies_granting_service_access( +list_policies_granting_service_access( Arn, ServiceNamespaces; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ListPoliciesGrantingServiceAccess", + Dict{String,Any}("Arn" => Arn, "ServiceNamespaces" => ServiceNamespaces); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ListPoliciesGrantingServiceAccess", - Dict{String,Any}("Arn" => Arn, "ServiceNamespaces" => ServiceNamespaces); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_policies_granting_service_access( Arn, ServiceNamespaces, @@ -4919,14 +4706,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_policy_tags(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListPolicyTags", - Dict{String,Any}("PolicyArn" => PolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_policy_tags(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListPolicyTags", + Dict{String,Any}("PolicyArn" => PolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_policy_tags( PolicyArn, params::AbstractDict{String}; @@ -4968,14 +4753,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_policy_versions(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListPolicyVersions", - Dict{String,Any}("PolicyArn" => PolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_policy_versions(PolicyArn; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListPolicyVersions", + Dict{String,Any}("PolicyArn" => PolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_policy_versions( PolicyArn, params::AbstractDict{String}; @@ -5020,14 +4803,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_role_policies(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListRolePolicies", - Dict{String,Any}("RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_role_policies(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListRolePolicies", + Dict{String,Any}("RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_role_policies( RoleName, params::AbstractDict{String}; @@ -5070,14 +4851,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_role_tags(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListRoleTags", - Dict{String,Any}("RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_role_tags(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListRoleTags", + Dict{String,Any}("RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_role_tags( RoleName, params::AbstractDict{String}; @@ -5126,9 +4905,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function list_roles(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListRoles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_roles(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListRoles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_roles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5163,16 +4941,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_samlprovider_tags( +list_samlprovider_tags( SAMLProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ListSAMLProviderTags", + Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ListSAMLProviderTags", - Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_samlprovider_tags( SAMLProviderArn, params::AbstractDict{String}; @@ -5201,9 +4977,8 @@ returned object. To view all of the information for a SAML provider, see GetSAML This operation requires Signature Version 4. """ -function list_samlproviders(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListSAMLProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_samlproviders(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListSAMLProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_samlproviders( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5242,16 +5017,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_server_certificate_tags( +list_server_certificate_tags( ServerCertificateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ListServerCertificateTags", + Dict{String,Any}("ServerCertificateName" => ServerCertificateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ListServerCertificateTags", - Dict{String,Any}("ServerCertificateName" => ServerCertificateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_server_certificate_tags( ServerCertificateName, params::AbstractDict{String}; @@ -5306,11 +5079,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function list_server_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListServerCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_server_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListServerCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_server_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5344,15 +5114,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function list_service_specific_credentials(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +list_service_specific_credentials(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "ListServiceSpecificCredentials"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_service_specific_credentials( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5394,11 +5161,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function list_signing_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListSigningCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_signing_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListSigningCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_signing_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5440,9 +5204,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function list_sshpublic_keys(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListSSHPublicKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_sshpublic_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListSSHPublicKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_sshpublic_keys( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5480,14 +5243,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_user_policies(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListUserPolicies", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_user_policies(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListUserPolicies", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_user_policies( UserName, params::AbstractDict{String}; @@ -5530,14 +5291,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_user_tags(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListUserTags", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_user_tags(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "ListUserTags", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_user_tags( UserName, params::AbstractDict{String}; @@ -5586,9 +5345,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function list_users(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam("ListUsers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_users(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListUsers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_users( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5623,11 +5381,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker contains a value to include in the subsequent call that tells the service where to continue from. """ -function list_virtual_mfadevices(; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "ListVirtualMFADevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_virtual_mfadevices(; aws_config::AbstractAWSConfig=current_aws_config()) = + iam("ListVirtualMFADevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_virtual_mfadevices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5670,23 +5425,21 @@ using the Query API with IAM, see Making query requests in the IAM User Guide. with no spaces. You can also include any of the following characters: _+=,.@- """ -function put_group_policy( +put_group_policy( GroupName, PolicyDocument, PolicyName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iam( + "PutGroupPolicy", + Dict{String,Any}( + "GroupName" => GroupName, + "PolicyDocument" => PolicyDocument, + "PolicyName" => PolicyName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "PutGroupPolicy", - Dict{String,Any}( - "GroupName" => GroupName, - "PolicyDocument" => PolicyDocument, - "PolicyName" => PolicyName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_group_policy( GroupName, PolicyDocument, @@ -5736,18 +5489,14 @@ IAM JSON policy evaluation logic in the IAM User Guide. the permissions boundary. """ -function put_role_permissions_boundary( +put_role_permissions_boundary( PermissionsBoundary, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "PutRolePermissionsBoundary", + Dict{String,Any}("PermissionsBoundary" => PermissionsBoundary, "RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "PutRolePermissionsBoundary", - Dict{String,Any}( - "PermissionsBoundary" => PermissionsBoundary, "RoleName" => RoleName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_role_permissions_boundary( PermissionsBoundary, RoleName, @@ -5805,20 +5554,18 @@ using the Query API with IAM, see Making query requests in the IAM User Guide. characters: _+=,.@- """ -function put_role_policy( +put_role_policy( PolicyDocument, PolicyName, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "PutRolePolicy", + Dict{String,Any}( + "PolicyDocument" => PolicyDocument, + "PolicyName" => PolicyName, + "RoleName" => RoleName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "PutRolePolicy", - Dict{String,Any}( - "PolicyDocument" => PolicyDocument, - "PolicyName" => PolicyName, - "RoleName" => RoleName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_role_policy( PolicyDocument, PolicyName, @@ -5868,18 +5615,14 @@ Guide. the permissions boundary. """ -function put_user_permissions_boundary( +put_user_permissions_boundary( PermissionsBoundary, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "PutUserPermissionsBoundary", + Dict{String,Any}("PermissionsBoundary" => PermissionsBoundary, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "PutUserPermissionsBoundary", - Dict{String,Any}( - "PermissionsBoundary" => PermissionsBoundary, "UserName" => UserName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_user_permissions_boundary( PermissionsBoundary, UserName, @@ -5933,20 +5676,18 @@ using the Query API with IAM, see Making query requests in the IAM User Guide. characters: _+=,.@- """ -function put_user_policy( +put_user_policy( PolicyDocument, PolicyName, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "PutUserPolicy", + Dict{String,Any}( + "PolicyDocument" => PolicyDocument, + "PolicyName" => PolicyName, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "PutUserPolicy", - Dict{String,Any}( - "PolicyDocument" => PolicyDocument, - "PolicyName" => PolicyName, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_user_policy( PolicyDocument, PolicyName, @@ -5990,18 +5731,16 @@ ID that does not exist. Resource Names (ARNs) in the Amazon Web Services General Reference. """ -function remove_client_idfrom_open_idconnect_provider( +remove_client_idfrom_open_idconnect_provider( ClientID, OpenIDConnectProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "RemoveClientIDFromOpenIDConnectProvider", + Dict{String,Any}( + "ClientID" => ClientID, "OpenIDConnectProviderArn" => OpenIDConnectProviderArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "RemoveClientIDFromOpenIDConnectProvider", - Dict{String,Any}( - "ClientID" => ClientID, "OpenIDConnectProviderArn" => OpenIDConnectProviderArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_client_idfrom_open_idconnect_provider( ClientID, OpenIDConnectProviderArn, @@ -6046,18 +5785,14 @@ instance profiles, see Using instance profiles in the IAM User Guide. with no spaces. You can also include any of the following characters: _+=,.@- """ -function remove_role_from_instance_profile( +remove_role_from_instance_profile( InstanceProfileName, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "RemoveRoleFromInstanceProfile", + Dict{String,Any}("InstanceProfileName" => InstanceProfileName, "RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "RemoveRoleFromInstanceProfile", - Dict{String,Any}( - "InstanceProfileName" => InstanceProfileName, "RoleName" => RoleName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_role_from_instance_profile( InstanceProfileName, RoleName, @@ -6095,16 +5830,14 @@ Removes the specified user from the specified group. with no spaces. You can also include any of the following characters: _+=,.@- """ -function remove_user_from_group( +remove_user_from_group( GroupName, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "RemoveUserFromGroup", + Dict{String,Any}("GroupName" => GroupName, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "RemoveUserFromGroup", - Dict{String,Any}("GroupName" => GroupName, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_user_from_group( GroupName, UserName, @@ -6147,16 +5880,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function reset_service_specific_credential( +reset_service_specific_credential( ServiceSpecificCredentialId; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "ResetServiceSpecificCredential", + Dict{String,Any}("ServiceSpecificCredentialId" => ServiceSpecificCredentialId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ResetServiceSpecificCredential", - Dict{String,Any}("ServiceSpecificCredentialId" => ServiceSpecificCredentialId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_service_specific_credential( ServiceSpecificCredentialId, params::AbstractDict{String}; @@ -6201,25 +5932,23 @@ see Using a virtual MFA device in the IAM User Guide. characters: _+=,.@- """ -function resync_mfadevice( +resync_mfadevice( AuthenticationCode1, AuthenticationCode2, SerialNumber, UserName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iam( + "ResyncMFADevice", + Dict{String,Any}( + "AuthenticationCode1" => AuthenticationCode1, + "AuthenticationCode2" => AuthenticationCode2, + "SerialNumber" => SerialNumber, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "ResyncMFADevice", - Dict{String,Any}( - "AuthenticationCode1" => AuthenticationCode1, - "AuthenticationCode2" => AuthenticationCode2, - "SerialNumber" => SerialNumber, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function resync_mfadevice( AuthenticationCode1, AuthenticationCode2, @@ -6266,16 +5995,14 @@ inline policies in the IAM User Guide. IAM User Guide. """ -function set_default_policy_version( +set_default_policy_version( PolicyArn, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "SetDefaultPolicyVersion", + Dict{String,Any}("PolicyArn" => PolicyArn, "VersionId" => VersionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "SetDefaultPolicyVersion", - Dict{String,Any}("PolicyArn" => PolicyArn, "VersionId" => VersionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_default_policy_version( PolicyArn, VersionId, @@ -6325,16 +6052,14 @@ GlobalEndpointTokenVersion entry in the response of the GetAccountSummary operat deactivating STS in an Amazon Web Services Region in the IAM User Guide. """ -function set_security_token_service_preferences( +set_security_token_service_preferences( GlobalEndpointTokenVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "SetSecurityTokenServicePreferences", + Dict{String,Any}("GlobalEndpointTokenVersion" => GlobalEndpointTokenVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "SetSecurityTokenServicePreferences", - Dict{String,Any}("GlobalEndpointTokenVersion" => GlobalEndpointTokenVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_security_token_service_preferences( GlobalEndpointTokenVersion, params::AbstractDict{String}; @@ -6482,19 +6207,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) The special characters tab (u0009), line feed (u000A), and carriage return (u000D) Simulation of resource-based policies isn't supported for IAM roles. -""" -function simulate_custom_policy( - ActionNames, PolicyInputList; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( - "SimulateCustomPolicy", - Dict{String,Any}( - "ActionNames" => ActionNames, "PolicyInputList" => PolicyInputList - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +""" +simulate_custom_policy( + ActionNames, PolicyInputList; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "SimulateCustomPolicy", + Dict{String,Any}("ActionNames" => ActionNames, "PolicyInputList" => PolicyInputList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function simulate_custom_policy( ActionNames, PolicyInputList, @@ -6655,18 +6376,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys special characters tab (u0009), line feed (u000A), and carriage return (u000D) Simulation of resource-based policies isn't supported for IAM roles. """ -function simulate_principal_policy( +simulate_principal_policy( ActionNames, PolicySourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "SimulatePrincipalPolicy", + Dict{String,Any}("ActionNames" => ActionNames, "PolicySourceArn" => PolicySourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "SimulatePrincipalPolicy", - Dict{String,Any}( - "ActionNames" => ActionNames, "PolicySourceArn" => PolicySourceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function simulate_principal_policy( ActionNames, PolicySourceArn, @@ -6718,16 +6435,14 @@ values in the string. However, you must interpret the value in your code. consists of a key name and an associated value. """ -function tag_instance_profile( +tag_instance_profile( InstanceProfileName, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "TagInstanceProfile", + Dict{String,Any}("InstanceProfileName" => InstanceProfileName, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "TagInstanceProfile", - Dict{String,Any}("InstanceProfileName" => InstanceProfileName, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_instance_profile( InstanceProfileName, Tags, @@ -6781,16 +6496,12 @@ in your code. consists of a key name and an associated value. """ -function tag_mfadevice( - SerialNumber, Tags; aws_config::AbstractAWSConfig=current_aws_config() +tag_mfadevice(SerialNumber, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "TagMFADevice", + Dict{String,Any}("SerialNumber" => SerialNumber, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "TagMFADevice", - Dict{String,Any}("SerialNumber" => SerialNumber, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_mfadevice( SerialNumber, Tags, @@ -6841,18 +6552,16 @@ comma-separated values in the string. However, you must interpret the value in y Each tag consists of a key name and an associated value. """ -function tag_open_idconnect_provider( +tag_open_idconnect_provider( OpenIDConnectProviderArn, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "TagOpenIDConnectProvider", + Dict{String,Any}( + "OpenIDConnectProviderArn" => OpenIDConnectProviderArn, "Tags" => Tags + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "TagOpenIDConnectProvider", - Dict{String,Any}( - "OpenIDConnectProviderArn" => OpenIDConnectProviderArn, "Tags" => Tags - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_open_idconnect_provider( OpenIDConnectProviderArn, Tags, @@ -6904,14 +6613,12 @@ comma-separated values in the string. However, you must interpret the value in y tag consists of a key name and an associated value. """ -function tag_policy(PolicyArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "TagPolicy", - Dict{String,Any}("PolicyArn" => PolicyArn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_policy(PolicyArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "TagPolicy", + Dict{String,Any}("PolicyArn" => PolicyArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_policy( PolicyArn, Tags, @@ -6963,14 +6670,12 @@ the IAM User Guide. key name and an associated value. """ -function tag_role(RoleName, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "TagRole", - Dict{String,Any}("RoleName" => RoleName, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_role(RoleName, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "TagRole", + Dict{String,Any}("RoleName" => RoleName, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_role( RoleName, Tags, @@ -7019,16 +6724,14 @@ comma-separated values in the string. However, you must interpret the value in y Each tag consists of a key name and an associated value. """ -function tag_samlprovider( +tag_samlprovider( SAMLProviderArn, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "TagSAMLProvider", + Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "TagSAMLProvider", - Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_samlprovider( SAMLProviderArn, Tags, @@ -7083,16 +6786,14 @@ you must interpret the value in your code. consists of a key name and an associated value. """ -function tag_server_certificate( +tag_server_certificate( ServerCertificateName, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "TagServerCertificate", + Dict{String,Any}("ServerCertificateName" => ServerCertificateName, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "TagServerCertificate", - Dict{String,Any}("ServerCertificateName" => ServerCertificateName, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_server_certificate( ServerCertificateName, Tags, @@ -7147,14 +6848,12 @@ information about tagging, see Tagging IAM identities in the IAM User Guide. characters: _+=,.@- """ -function tag_user(Tags, UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "TagUser", - Dict{String,Any}("Tags" => Tags, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_user(Tags, UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "TagUser", + Dict{String,Any}("Tags" => Tags, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_user( Tags, UserName, @@ -7189,18 +6888,14 @@ tagging, see Tagging IAM resources in the IAM User Guide. are removed from the specified instance profile. """ -function untag_instance_profile( +untag_instance_profile( InstanceProfileName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UntagInstanceProfile", + Dict{String,Any}("InstanceProfileName" => InstanceProfileName, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UntagInstanceProfile", - Dict{String,Any}( - "InstanceProfileName" => InstanceProfileName, "TagKeys" => TagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_instance_profile( InstanceProfileName, TagKeys, @@ -7240,16 +6935,13 @@ For more information about tagging, see Tagging IAM resources in the IAM User Gu are removed from the specified instance profile. """ -function untag_mfadevice( - SerialNumber, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +untag_mfadevice(SerialNumber, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "UntagMFADevice", Dict{String,Any}("SerialNumber" => SerialNumber, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_mfadevice( SerialNumber, TagKeys, @@ -7288,18 +6980,16 @@ Guide. are removed from the specified OIDC provider. """ -function untag_open_idconnect_provider( +untag_open_idconnect_provider( OpenIDConnectProviderArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UntagOpenIDConnectProvider", + Dict{String,Any}( + "OpenIDConnectProviderArn" => OpenIDConnectProviderArn, "TagKeys" => TagKeys + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UntagOpenIDConnectProvider", - Dict{String,Any}( - "OpenIDConnectProviderArn" => OpenIDConnectProviderArn, "TagKeys" => TagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_open_idconnect_provider( OpenIDConnectProviderArn, TagKeys, @@ -7339,16 +7029,12 @@ tagging, see Tagging IAM resources in the IAM User Guide. are removed from the specified policy. """ -function untag_policy( - PolicyArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +untag_policy(PolicyArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "UntagPolicy", + Dict{String,Any}("PolicyArn" => PolicyArn, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UntagPolicy", - Dict{String,Any}("PolicyArn" => PolicyArn, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_policy( PolicyArn, TagKeys, @@ -7385,14 +7071,12 @@ IAM resources in the IAM User Guide. are removed from the specified role. """ -function untag_role(RoleName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "UntagRole", - Dict{String,Any}("RoleName" => RoleName, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_role(RoleName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "UntagRole", + Dict{String,Any}("RoleName" => RoleName, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_role( RoleName, TagKeys, @@ -7431,16 +7115,14 @@ IAM User Guide. are removed from the specified SAML identity provider. """ -function untag_samlprovider( +untag_samlprovider( SAMLProviderArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UntagSAMLProvider", + Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UntagSAMLProvider", - Dict{String,Any}("SAMLProviderArn" => SAMLProviderArn, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_samlprovider( SAMLProviderArn, TagKeys, @@ -7483,18 +7165,16 @@ IAM User Guide. are removed from the specified IAM server certificate. """ -function untag_server_certificate( +untag_server_certificate( ServerCertificateName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UntagServerCertificate", + Dict{String,Any}( + "ServerCertificateName" => ServerCertificateName, "TagKeys" => TagKeys + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UntagServerCertificate", - Dict{String,Any}( - "ServerCertificateName" => ServerCertificateName, "TagKeys" => TagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_server_certificate( ServerCertificateName, TagKeys, @@ -7533,14 +7213,12 @@ IAM resources in the IAM User Guide. characters: _+=,.@- """ -function untag_user(TagKeys, UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "UntagUser", - Dict{String,Any}("TagKeys" => TagKeys, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_user(TagKeys, UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "UntagUser", + Dict{String,Any}("TagKeys" => TagKeys, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_user( TagKeys, UserName, @@ -7590,16 +7268,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function update_access_key( - AccessKeyId, Status; aws_config::AbstractAWSConfig=current_aws_config() -) - return iam( +update_access_key(AccessKeyId, Status; aws_config::AbstractAWSConfig=current_aws_config()) = + iam( "UpdateAccessKey", Dict{String,Any}("AccessKeyId" => AccessKeyId, "Status" => Status); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_access_key( AccessKeyId, Status, @@ -7679,15 +7354,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify a value for this parameter, then the operation uses the default value of false. The result is that passwords do not require at least one uppercase character. """ -function update_account_password_policy(; - aws_config::AbstractAWSConfig=current_aws_config() +update_account_password_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "UpdateAccountPasswordPolicy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateAccountPasswordPolicy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_account_password_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7723,16 +7394,14 @@ to delegate permissions and federate identities. characters: _+=,.@- """ -function update_assume_role_policy( +update_assume_role_policy( PolicyDocument, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UpdateAssumeRolePolicy", + Dict{String,Any}("PolicyDocument" => PolicyDocument, "RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateAssumeRolePolicy", - Dict{String,Any}("PolicyDocument" => PolicyDocument, "RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_assume_role_policy( PolicyDocument, RoleName, @@ -7787,14 +7456,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys character (u007F), including most punctuation characters, digits, and upper and lowercased letters. """ -function update_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "UpdateGroup", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "UpdateGroup", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_group( GroupName, params::AbstractDict{String}; @@ -7839,14 +7506,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PasswordResetRequired"`: Allows this new password to be used only once by requiring the specified IAM user to set a new password on next sign-in. """ -function update_login_profile(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "UpdateLoginProfile", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_login_profile(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "UpdateLoginProfile", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_login_profile( UserName, params::AbstractDict{String}; @@ -7873,13 +7538,12 @@ are not merged.) Typically, you need to update a thumbprint only when the identi certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal fails until the certificate thumbprint is updated. Amazon Web Services secures -communication with some OIDC identity providers (IdPs) through our library of trusted root -certificate authorities (CAs) instead of using a certificate thumbprint to verify your IdP -server certificate. In these cases, your legacy thumbprint remains in your configuration, -but is no longer used for validation. These OIDC IdPs include Auth0, GitHub, GitLab, -Google, and those that use an Amazon S3 bucket to host a JSON Web Key Set (JWKS) endpoint. - Trust for the OIDC provider is derived from the provider certificate and is validated by -the thumbprint. Therefore, it is best to limit access to the +communication with OIDC identity providers (IdPs) using our library of trusted root +certificate authorities (CAs) to verify the JSON Web Key Set (JWKS) endpoint's TLS +certificate. If your OIDC IdP relies on a certificate that is not signed by one of these +trusted CAs, only then we secure communication using the thumbprints set in the IdP's +configuration. Trust for the OIDC provider is derived from the provider certificate and +is validated by the thumbprint. Therefore, it is best to limit access to the UpdateOpenIDConnectProviderThumbprint operation to highly privileged users. # Arguments @@ -7892,21 +7556,19 @@ UpdateOpenIDConnectProviderThumbprint operation to highly privileged users. CreateOpenIDConnectProvider. """ -function update_open_idconnect_provider_thumbprint( +update_open_idconnect_provider_thumbprint( OpenIDConnectProviderArn, ThumbprintList; aws_config::AbstractAWSConfig=current_aws_config(), +) = iam( + "UpdateOpenIDConnectProviderThumbprint", + Dict{String,Any}( + "OpenIDConnectProviderArn" => OpenIDConnectProviderArn, + "ThumbprintList" => ThumbprintList, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateOpenIDConnectProviderThumbprint", - Dict{String,Any}( - "OpenIDConnectProviderArn" => OpenIDConnectProviderArn, - "ThumbprintList" => ThumbprintList, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_open_idconnect_provider_thumbprint( OpenIDConnectProviderArn, ThumbprintList, @@ -7955,14 +7617,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys User Guide. IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration. """ -function update_role(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "UpdateRole", - Dict{String,Any}("RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_role(RoleName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "UpdateRole", + Dict{String,Any}("RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_role( RoleName, params::AbstractDict{String}; @@ -7990,16 +7650,14 @@ the same function as the Description parameter in the UpdateRole operation. - `role_name`: The name of the role that you want to modify. """ -function update_role_description( +update_role_description( Description, RoleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UpdateRoleDescription", + Dict{String,Any}("Description" => Description, "RoleName" => RoleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateRoleDescription", - Dict{String,Any}("Description" => Description, "RoleName" => RoleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_role_description( Description, RoleName, @@ -8038,21 +7696,19 @@ operation requires Signature Version 4. General Reference. """ -function update_samlprovider( +update_samlprovider( SAMLMetadataDocument, SAMLProviderArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iam( + "UpdateSAMLProvider", + Dict{String,Any}( + "SAMLMetadataDocument" => SAMLMetadataDocument, + "SAMLProviderArn" => SAMLProviderArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateSAMLProvider", - Dict{String,Any}( - "SAMLMetadataDocument" => SAMLMetadataDocument, - "SAMLProviderArn" => SAMLProviderArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_samlprovider( SAMLMetadataDocument, SAMLProviderArn, @@ -8113,16 +7769,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function update_server_certificate( +update_server_certificate( ServerCertificateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UpdateServerCertificate", + Dict{String,Any}("ServerCertificateName" => ServerCertificateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateServerCertificate", - Dict{String,Any}("ServerCertificateName" => ServerCertificateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_server_certificate( ServerCertificateName, params::AbstractDict{String}; @@ -8165,18 +7819,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function update_service_specific_credential( +update_service_specific_credential( ServiceSpecificCredentialId, Status; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UpdateServiceSpecificCredential", + Dict{String,Any}( + "ServiceSpecificCredentialId" => ServiceSpecificCredentialId, "Status" => Status + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateServiceSpecificCredential", - Dict{String,Any}( - "ServiceSpecificCredentialId" => ServiceSpecificCredentialId, "Status" => Status - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_specific_credential( ServiceSpecificCredentialId, Status, @@ -8227,16 +7879,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function update_signing_certificate( +update_signing_certificate( CertificateId, Status; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UpdateSigningCertificate", + Dict{String,Any}("CertificateId" => CertificateId, "Status" => Status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateSigningCertificate", - Dict{String,Any}("CertificateId" => CertificateId, "Status" => Status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_signing_certificate( CertificateId, Status, @@ -8281,18 +7931,16 @@ repository, see Set up CodeCommit for SSH connections in the CodeCommit User Gui characters: _+=,.@- """ -function update_sshpublic_key( +update_sshpublic_key( SSHPublicKeyId, Status, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UpdateSSHPublicKey", + Dict{String,Any}( + "SSHPublicKeyId" => SSHPublicKeyId, "Status" => Status, "UserName" => UserName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UpdateSSHPublicKey", - Dict{String,Any}( - "SSHPublicKeyId" => SSHPublicKeyId, "Status" => Status, "UserName" => UserName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sshpublic_key( SSHPublicKeyId, Status, @@ -8349,14 +7997,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Names are not distinguished by case. For example, you cannot create resources named both \"MyResource\" and \"myresource\". """ -function update_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return iam( - "UpdateUser", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = iam( + "UpdateUser", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_user( UserName, params::AbstractDict{String}; @@ -8437,23 +8083,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. """ -function upload_server_certificate( +upload_server_certificate( CertificateBody, PrivateKey, ServerCertificateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iam( + "UploadServerCertificate", + Dict{String,Any}( + "CertificateBody" => CertificateBody, + "PrivateKey" => PrivateKey, + "ServerCertificateName" => ServerCertificateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UploadServerCertificate", - Dict{String,Any}( - "CertificateBody" => CertificateBody, - "PrivateKey" => PrivateKey, - "ServerCertificateName" => ServerCertificateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_server_certificate( CertificateBody, PrivateKey, @@ -8513,16 +8157,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ -function upload_signing_certificate( +upload_signing_certificate( CertificateBody; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UploadSigningCertificate", + Dict{String,Any}("CertificateBody" => CertificateBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UploadSigningCertificate", - Dict{String,Any}("CertificateBody" => CertificateBody); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_signing_certificate( CertificateBody, params::AbstractDict{String}; @@ -8565,16 +8207,14 @@ Guide. characters: _+=,.@- """ -function upload_sshpublic_key( +upload_sshpublic_key( SSHPublicKeyBody, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = iam( + "UploadSSHPublicKey", + Dict{String,Any}("SSHPublicKeyBody" => SSHPublicKeyBody, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iam( - "UploadSSHPublicKey", - Dict{String,Any}("SSHPublicKeyBody" => SSHPublicKeyBody, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_sshpublic_key( SSHPublicKeyBody, UserName, diff --git a/src/services/identitystore.jl b/src/services/identitystore.jl index 711f9f76f..ef01a808b 100644 --- a/src/services/identitystore.jl +++ b/src/services/identitystore.jl @@ -20,14 +20,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys displayed when the group is referenced. Administrator and AWSAdministrators are reserved names and can't be used for users or groups. """ -function create_group(IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return identitystore( +create_group(IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + identitystore( "CreateGroup", Dict{String,Any}("IdentityStoreId" => IdentityStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_group( IdentityStoreId, params::AbstractDict{String}; @@ -60,20 +59,18 @@ specified: GroupId, IdentityStoreId, and MemberId. group. """ -function create_group_membership( +create_group_membership( GroupId, IdentityStoreId, MemberId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "CreateGroupMembership", + Dict{String,Any}( + "GroupId" => GroupId, + "IdentityStoreId" => IdentityStoreId, + "MemberId" => MemberId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "CreateGroupMembership", - Dict{String,Any}( - "GroupId" => GroupId, - "IdentityStoreId" => IdentityStoreId, - "MemberId" => MemberId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_group_membership( GroupId, IdentityStoreId, @@ -133,14 +130,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserType"`: A string indicating the type of user. Possible values are left unspecified. The value can vary based on your specific use case. """ -function create_user(IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return identitystore( +create_user(IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + identitystore( "CreateUser", Dict{String,Any}("IdentityStoreId" => IdentityStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_user( IdentityStoreId, params::AbstractDict{String}; @@ -169,16 +165,13 @@ Delete a group within an identity store given GroupId. - `identity_store_id`: The globally unique identifier for the identity store. """ -function delete_group( - GroupId, IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return identitystore( +delete_group(GroupId, IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + identitystore( "DeleteGroup", Dict{String,Any}("GroupId" => GroupId, "IdentityStoreId" => IdentityStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_group( GroupId, IdentityStoreId, @@ -212,18 +205,14 @@ Delete a membership within a group given MembershipId. - `membership_id`: The identifier for a GroupMembership in an identity store. """ -function delete_group_membership( +delete_group_membership( IdentityStoreId, MembershipId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "DeleteGroupMembership", + Dict{String,Any}("IdentityStoreId" => IdentityStoreId, "MembershipId" => MembershipId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "DeleteGroupMembership", - Dict{String,Any}( - "IdentityStoreId" => IdentityStoreId, "MembershipId" => MembershipId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_group_membership( IdentityStoreId, MembershipId, @@ -257,16 +246,13 @@ Deletes a user within an identity store given UserId. - `user_id`: The identifier for a user in the identity store. """ -function delete_user( - IdentityStoreId, UserId; aws_config::AbstractAWSConfig=current_aws_config() -) - return identitystore( +delete_user(IdentityStoreId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + identitystore( "DeleteUser", Dict{String,Any}("IdentityStoreId" => IdentityStoreId, "UserId" => UserId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user( IdentityStoreId, UserId, @@ -303,16 +289,14 @@ Read about member accounts in the Organizations User Guide. that a new identity store is created. """ -function describe_group( +describe_group( GroupId, IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "DescribeGroup", + Dict{String,Any}("GroupId" => GroupId, "IdentityStoreId" => IdentityStoreId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "DescribeGroup", - Dict{String,Any}("GroupId" => GroupId, "IdentityStoreId" => IdentityStoreId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_group( GroupId, IdentityStoreId, @@ -348,18 +332,14 @@ account. Read about member accounts in the Organizations User Guide. - `membership_id`: The identifier for a GroupMembership in an identity store. """ -function describe_group_membership( +describe_group_membership( IdentityStoreId, MembershipId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "DescribeGroupMembership", + Dict{String,Any}("IdentityStoreId" => IdentityStoreId, "MembershipId" => MembershipId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "DescribeGroupMembership", - Dict{String,Any}( - "IdentityStoreId" => IdentityStoreId, "MembershipId" => MembershipId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_group_membership( IdentityStoreId, MembershipId, @@ -398,16 +378,13 @@ account. Read about member accounts in the Organizations User Guide. - `user_id`: The identifier for a user in the identity store. """ -function describe_user( - IdentityStoreId, UserId; aws_config::AbstractAWSConfig=current_aws_config() -) - return identitystore( +describe_user(IdentityStoreId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + identitystore( "DescribeUser", Dict{String,Any}("IdentityStoreId" => IdentityStoreId, "UserId" => UserId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_user( IdentityStoreId, UserId, @@ -444,19 +421,17 @@ Organizations User Guide. - `identity_store_id`: The globally unique identifier for the identity store. """ -function get_group_id( +get_group_id( AlternateIdentifier, IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "GetGroupId", + Dict{String,Any}( + "AlternateIdentifier" => AlternateIdentifier, + "IdentityStoreId" => IdentityStoreId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "GetGroupId", - Dict{String,Any}( - "AlternateIdentifier" => AlternateIdentifier, - "IdentityStoreId" => IdentityStoreId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_group_id( AlternateIdentifier, IdentityStoreId, @@ -496,20 +471,18 @@ the Organizations User Guide. group. """ -function get_group_membership_id( +get_group_membership_id( GroupId, IdentityStoreId, MemberId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "GetGroupMembershipId", + Dict{String,Any}( + "GroupId" => GroupId, + "IdentityStoreId" => IdentityStoreId, + "MemberId" => MemberId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "GetGroupMembershipId", - Dict{String,Any}( - "GroupId" => GroupId, - "IdentityStoreId" => IdentityStoreId, - "MemberId" => MemberId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_group_membership_id( GroupId, IdentityStoreId, @@ -551,19 +524,17 @@ Organizations User Guide. - `identity_store_id`: The globally unique identifier for the identity store. """ -function get_user_id( +get_user_id( AlternateIdentifier, IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "GetUserId", + Dict{String,Any}( + "AlternateIdentifier" => AlternateIdentifier, + "IdentityStoreId" => IdentityStoreId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "GetUserId", - Dict{String,Any}( - "AlternateIdentifier" => AlternateIdentifier, - "IdentityStoreId" => IdentityStoreId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_user_id( AlternateIdentifier, IdentityStoreId, @@ -601,20 +572,18 @@ API from the member account. Read about member accounts in the Organizations Use - `member_id`: An object containing the identifier of a group member. """ -function is_member_in_groups( +is_member_in_groups( GroupIds, IdentityStoreId, MemberId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "IsMemberInGroups", + Dict{String,Any}( + "GroupIds" => GroupIds, + "IdentityStoreId" => IdentityStoreId, + "MemberId" => MemberId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "IsMemberInGroups", - Dict{String,Any}( - "GroupIds" => GroupIds, - "IdentityStoreId" => IdentityStoreId, - "MemberId" => MemberId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function is_member_in_groups( GroupIds, IdentityStoreId, @@ -662,16 +631,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page. """ -function list_group_memberships( +list_group_memberships( GroupId, IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "ListGroupMemberships", + Dict{String,Any}("GroupId" => GroupId, "IdentityStoreId" => IdentityStoreId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "ListGroupMemberships", - Dict{String,Any}("GroupId" => GroupId, "IdentityStoreId" => IdentityStoreId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_group_memberships( GroupId, IdentityStoreId, @@ -719,16 +686,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page. """ -function list_group_memberships_for_member( +list_group_memberships_for_member( IdentityStoreId, MemberId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "ListGroupMembershipsForMember", + Dict{String,Any}("IdentityStoreId" => IdentityStoreId, "MemberId" => MemberId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "ListGroupMembershipsForMember", - Dict{String,Any}("IdentityStoreId" => IdentityStoreId, "MemberId" => MemberId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_group_memberships_for_member( IdentityStoreId, MemberId, @@ -779,14 +744,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page. """ -function list_groups(IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return identitystore( +list_groups(IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + identitystore( "ListGroups", Dict{String,Any}("IdentityStoreId" => IdentityStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_groups( IdentityStoreId, params::AbstractDict{String}; @@ -831,14 +795,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page. """ -function list_users(IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return identitystore( +list_users(IdentityStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + identitystore( "ListUsers", Dict{String,Any}("IdentityStoreId" => IdentityStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_users( IdentityStoreId, params::AbstractDict{String}; @@ -870,20 +833,18 @@ attributes. operations might add, replace, or remove an attribute. """ -function update_group( +update_group( GroupId, IdentityStoreId, Operations; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "UpdateGroup", + Dict{String,Any}( + "GroupId" => GroupId, + "IdentityStoreId" => IdentityStoreId, + "Operations" => Operations, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "UpdateGroup", - Dict{String,Any}( - "GroupId" => GroupId, - "IdentityStoreId" => IdentityStoreId, - "Operations" => Operations, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_group( GroupId, IdentityStoreId, @@ -923,20 +884,18 @@ attributes. - `user_id`: The identifier for a user in the identity store. """ -function update_user( +update_user( IdentityStoreId, Operations, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = identitystore( + "UpdateUser", + Dict{String,Any}( + "IdentityStoreId" => IdentityStoreId, + "Operations" => Operations, + "UserId" => UserId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return identitystore( - "UpdateUser", - Dict{String,Any}( - "IdentityStoreId" => IdentityStoreId, - "Operations" => Operations, - "UserId" => UserId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user( IdentityStoreId, Operations, diff --git a/src/services/imagebuilder.jl b/src/services/imagebuilder.jl index 17f5152c4..65e432d7b 100644 --- a/src/services/imagebuilder.jl +++ b/src/services/imagebuilder.jl @@ -18,19 +18,17 @@ images in a non-terminal state. cancel creation for. """ -function cancel_image_creation( +cancel_image_creation( clientToken, imageBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "PUT", + "/CancelImageCreation", + Dict{String,Any}( + "clientToken" => clientToken, "imageBuildVersionArn" => imageBuildVersionArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CancelImageCreation", - Dict{String,Any}( - "clientToken" => clientToken, "imageBuildVersionArn" => imageBuildVersionArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_image_creation( clientToken, imageBuildVersionArn, @@ -68,19 +66,17 @@ Cancel a specific image lifecycle policy runtime instance. to cancel. """ -function cancel_lifecycle_execution( +cancel_lifecycle_execution( clientToken, lifecycleExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "PUT", + "/CancelLifecycleExecution", + Dict{String,Any}( + "clientToken" => clientToken, "lifecycleExecutionId" => lifecycleExecutionId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CancelLifecycleExecution", - Dict{String,Any}( - "clientToken" => clientToken, "lifecycleExecutionId" => lifecycleExecutionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_lifecycle_execution( clientToken, lifecycleExecutionId, @@ -150,26 +146,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Alternatively, you can specify the YAML document inline, using the component data property. You cannot specify both properties. """ -function create_component( +create_component( clientToken, name, platform, semanticVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/CreateComponent", + Dict{String,Any}( + "clientToken" => clientToken, + "name" => name, + "platform" => platform, + "semanticVersion" => semanticVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateComponent", - Dict{String,Any}( - "clientToken" => clientToken, - "name" => name, - "platform" => platform, - "semanticVersion" => semanticVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_component( clientToken, name, @@ -241,7 +235,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Tags that are attached to the container recipe. - `"workingDirectory"`: The working directory for use during build and test workflows. """ -function create_container_recipe( +create_container_recipe( clientToken, components, containerType, @@ -250,23 +244,21 @@ function create_container_recipe( semanticVersion, targetRepository; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/CreateContainerRecipe", + Dict{String,Any}( + "clientToken" => clientToken, + "components" => components, + "containerType" => containerType, + "name" => name, + "parentImage" => parentImage, + "semanticVersion" => semanticVersion, + "targetRepository" => targetRepository, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateContainerRecipe", - Dict{String,Any}( - "clientToken" => clientToken, - "components" => components, - "containerType" => containerType, - "name" => name, - "parentImage" => parentImage, - "semanticVersion" => semanticVersion, - "targetRepository" => targetRepository, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_container_recipe( clientToken, components, @@ -319,19 +311,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the distribution configuration. - `"tags"`: The tags of the distribution configuration. """ -function create_distribution_configuration( +create_distribution_configuration( clientToken, distributions, name; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "PUT", + "/CreateDistributionConfiguration", + Dict{String,Any}( + "clientToken" => clientToken, "distributions" => distributions, "name" => name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateDistributionConfiguration", - Dict{String,Any}( - "clientToken" => clientToken, "distributions" => distributions, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_distribution_configuration( clientToken, distributions, @@ -390,22 +380,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags of the image. - `"workflows"`: Contains an array of workflow configuration objects. """ -function create_image( +create_image( clientToken, infrastructureConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/CreateImage", + Dict{String,Any}( + "clientToken" => clientToken, + "infrastructureConfigurationArn" => infrastructureConfigurationArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateImage", - Dict{String,Any}( - "clientToken" => clientToken, - "infrastructureConfigurationArn" => infrastructureConfigurationArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_image( clientToken, infrastructureConfigurationArn, @@ -466,24 +454,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags of the image pipeline. - `"workflows"`: Contains an array of workflow configuration objects. """ -function create_image_pipeline( +create_image_pipeline( clientToken, infrastructureConfigurationArn, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/CreateImagePipeline", + Dict{String,Any}( + "clientToken" => clientToken, + "infrastructureConfigurationArn" => infrastructureConfigurationArn, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateImagePipeline", - Dict{String,Any}( - "clientToken" => clientToken, - "infrastructureConfigurationArn" => infrastructureConfigurationArn, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_image_pipeline( clientToken, infrastructureConfigurationArn, @@ -547,28 +533,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags of the image recipe. - `"workingDirectory"`: The working directory used during build and test workflows. """ -function create_image_recipe( +create_image_recipe( clientToken, components, name, parentImage, semanticVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/CreateImageRecipe", + Dict{String,Any}( + "clientToken" => clientToken, + "components" => components, + "name" => name, + "parentImage" => parentImage, + "semanticVersion" => semanticVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateImageRecipe", - Dict{String,Any}( - "clientToken" => clientToken, - "components" => components, - "name" => name, - "parentImage" => parentImage, - "semanticVersion" => semanticVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_image_recipe( clientToken, components, @@ -638,24 +622,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails. """ -function create_infrastructure_configuration( +create_infrastructure_configuration( clientToken, instanceProfileName, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/CreateInfrastructureConfiguration", + Dict{String,Any}( + "clientToken" => clientToken, + "instanceProfileName" => instanceProfileName, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateInfrastructureConfiguration", - Dict{String,Any}( - "clientToken" => clientToken, - "instanceProfileName" => instanceProfileName, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_infrastructure_configuration( clientToken, instanceProfileName, @@ -705,7 +687,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Indicates whether the lifecycle policy resource is enabled. - `"tags"`: Tags to apply to the lifecycle policy resource. """ -function create_lifecycle_policy( +create_lifecycle_policy( clientToken, executionRole, name, @@ -713,22 +695,20 @@ function create_lifecycle_policy( resourceSelection, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/CreateLifecyclePolicy", + Dict{String,Any}( + "clientToken" => clientToken, + "executionRole" => executionRole, + "name" => name, + "policyDetails" => policyDetails, + "resourceSelection" => resourceSelection, + "resourceType" => resourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateLifecyclePolicy", - Dict{String,Any}( - "clientToken" => clientToken, - "executionRole" => executionRole, - "name" => name, - "policyDetails" => policyDetails, - "resourceSelection" => resourceSelection, - "resourceType" => resourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lifecycle_policy( clientToken, executionRole, @@ -799,26 +779,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Alternatively, you can specify the YAML document inline, using the component data property. You cannot specify both properties. """ -function create_workflow( +create_workflow( clientToken, name, semanticVersion, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/CreateWorkflow", + Dict{String,Any}( + "clientToken" => clientToken, + "name" => name, + "semanticVersion" => semanticVersion, + "type" => type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/CreateWorkflow", - Dict{String,Any}( - "clientToken" => clientToken, - "name" => name, - "semanticVersion" => semanticVersion, - "type" => type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workflow( clientToken, name, @@ -858,17 +836,15 @@ Deletes a component build version. version to delete. """ -function delete_component( +delete_component( componentBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "DELETE", + "/DeleteComponent", + Dict{String,Any}("componentBuildVersionArn" => componentBuildVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "DELETE", - "/DeleteComponent", - Dict{String,Any}("componentBuildVersionArn" => componentBuildVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_component( componentBuildVersionArn, params::AbstractDict{String}; @@ -899,17 +875,15 @@ Deletes a container recipe. - `container_recipe_arn`: The Amazon Resource Name (ARN) of the container recipe to delete. """ -function delete_container_recipe( +delete_container_recipe( containerRecipeArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "DELETE", + "/DeleteContainerRecipe", + Dict{String,Any}("containerRecipeArn" => containerRecipeArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "DELETE", - "/DeleteContainerRecipe", - Dict{String,Any}("containerRecipeArn" => containerRecipeArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_container_recipe( containerRecipeArn, params::AbstractDict{String}; @@ -939,17 +913,15 @@ Deletes a distribution configuration. configuration to delete. """ -function delete_distribution_configuration( +delete_distribution_configuration( distributionConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "DELETE", + "/DeleteDistributionConfiguration", + Dict{String,Any}("distributionConfigurationArn" => distributionConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "DELETE", - "/DeleteDistributionConfiguration", - Dict{String,Any}("distributionConfigurationArn" => distributionConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_distribution_configuration( distributionConfigurationArn, params::AbstractDict{String}; @@ -989,17 +961,14 @@ Amazon ECR User Guide. resource to delete. """ -function delete_image( - imageBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +delete_image(imageBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "DELETE", "/DeleteImage", Dict{String,Any}("imageBuildVersionArn" => imageBuildVersionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_image( imageBuildVersionArn, params::AbstractDict{String}; @@ -1030,17 +999,15 @@ Deletes an image pipeline. - `image_pipeline_arn`: The Amazon Resource Name (ARN) of the image pipeline to delete. """ -function delete_image_pipeline( +delete_image_pipeline( imagePipelineArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "DELETE", + "/DeleteImagePipeline", + Dict{String,Any}("imagePipelineArn" => imagePipelineArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "DELETE", - "/DeleteImagePipeline", - Dict{String,Any}("imagePipelineArn" => imagePipelineArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_image_pipeline( imagePipelineArn, params::AbstractDict{String}; @@ -1069,17 +1036,14 @@ Deletes an image recipe. - `image_recipe_arn`: The Amazon Resource Name (ARN) of the image recipe to delete. """ -function delete_image_recipe( - imageRecipeArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +delete_image_recipe(imageRecipeArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "DELETE", "/DeleteImageRecipe", Dict{String,Any}("imageRecipeArn" => imageRecipeArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_image_recipe( imageRecipeArn, params::AbstractDict{String}; @@ -1107,19 +1071,15 @@ Deletes an infrastructure configuration. configuration to delete. """ -function delete_infrastructure_configuration( +delete_infrastructure_configuration( infrastructureConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "DELETE", + "/DeleteInfrastructureConfiguration", + Dict{String,Any}("infrastructureConfigurationArn" => infrastructureConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "DELETE", - "/DeleteInfrastructureConfiguration", - Dict{String,Any}( - "infrastructureConfigurationArn" => infrastructureConfigurationArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_infrastructure_configuration( infrastructureConfigurationArn, params::AbstractDict{String}; @@ -1153,17 +1113,15 @@ Delete the specified lifecycle policy resource. to delete. """ -function delete_lifecycle_policy( +delete_lifecycle_policy( lifecyclePolicyArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "DELETE", + "/DeleteLifecyclePolicy", + Dict{String,Any}("lifecyclePolicyArn" => lifecyclePolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "DELETE", - "/DeleteLifecyclePolicy", - Dict{String,Any}("lifecyclePolicyArn" => lifecyclePolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_lifecycle_policy( lifecyclePolicyArn, params::AbstractDict{String}; @@ -1193,17 +1151,15 @@ Deletes a specific workflow resource. delete. """ -function delete_workflow( +delete_workflow( workflowBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "DELETE", + "/DeleteWorkflow", + Dict{String,Any}("workflowBuildVersionArn" => workflowBuildVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "DELETE", - "/DeleteWorkflow", - Dict{String,Any}("workflowBuildVersionArn" => workflowBuildVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workflow( workflowBuildVersionArn, params::AbstractDict{String}; @@ -1235,17 +1191,15 @@ Gets a component object. want to get. Regex requires the suffix /d+. """ -function get_component( +get_component( componentBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetComponent", + Dict{String,Any}("componentBuildVersionArn" => componentBuildVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetComponent", - Dict{String,Any}("componentBuildVersionArn" => componentBuildVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_component( componentBuildVersionArn, params::AbstractDict{String}; @@ -1277,17 +1231,14 @@ Gets a component policy. retrieve. """ -function get_component_policy( - componentArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +get_component_policy(componentArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "GET", "/GetComponentPolicy", Dict{String,Any}("componentArn" => componentArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_component_policy( componentArn, params::AbstractDict{String}; @@ -1315,17 +1266,15 @@ Retrieves a container recipe. retrieve. """ -function get_container_recipe( +get_container_recipe( containerRecipeArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetContainerRecipe", + Dict{String,Any}("containerRecipeArn" => containerRecipeArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetContainerRecipe", - Dict{String,Any}("containerRecipeArn" => containerRecipeArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_container_recipe( containerRecipeArn, params::AbstractDict{String}; @@ -1355,17 +1304,15 @@ Retrieves the policy for a container recipe. policy being requested. """ -function get_container_recipe_policy( +get_container_recipe_policy( containerRecipeArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetContainerRecipePolicy", + Dict{String,Any}("containerRecipeArn" => containerRecipeArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetContainerRecipePolicy", - Dict{String,Any}("containerRecipeArn" => containerRecipeArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_container_recipe_policy( containerRecipeArn, params::AbstractDict{String}; @@ -1395,17 +1342,15 @@ Gets a distribution configuration. configuration that you want to retrieve. """ -function get_distribution_configuration( +get_distribution_configuration( distributionConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetDistributionConfiguration", + Dict{String,Any}("distributionConfigurationArn" => distributionConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetDistributionConfiguration", - Dict{String,Any}("distributionConfigurationArn" => distributionConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_distribution_configuration( distributionConfigurationArn, params::AbstractDict{String}; @@ -1439,15 +1384,14 @@ Gets an image. get. """ -function get_image(imageBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( +get_image(imageBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "GET", "/GetImage", Dict{String,Any}("imageBuildVersionArn" => imageBuildVersionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_image( imageBuildVersionArn, params::AbstractDict{String}; @@ -1479,17 +1423,14 @@ Gets an image pipeline. to retrieve. """ -function get_image_pipeline( - imagePipelineArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +get_image_pipeline(imagePipelineArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "GET", "/GetImagePipeline", Dict{String,Any}("imagePipelineArn" => imagePipelineArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_image_pipeline( imagePipelineArn, params::AbstractDict{String}; @@ -1519,15 +1460,14 @@ Gets an image policy. retrieve. """ -function get_image_policy(imageArn; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( +get_image_policy(imageArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "GET", "/GetImagePolicy", Dict{String,Any}("imageArn" => imageArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_image_policy( imageArn, params::AbstractDict{String}; @@ -1555,17 +1495,14 @@ Gets an image recipe. retrieve. """ -function get_image_recipe( - imageRecipeArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +get_image_recipe(imageRecipeArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "GET", "/GetImageRecipe", Dict{String,Any}("imageRecipeArn" => imageRecipeArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_image_recipe( imageRecipeArn, params::AbstractDict{String}; @@ -1593,17 +1530,15 @@ Gets an image recipe policy. want to retrieve. """ -function get_image_recipe_policy( +get_image_recipe_policy( imageRecipeArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetImageRecipePolicy", + Dict{String,Any}("imageRecipeArn" => imageRecipeArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetImageRecipePolicy", - Dict{String,Any}("imageRecipeArn" => imageRecipeArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_image_recipe_policy( imageRecipeArn, params::AbstractDict{String}; @@ -1631,19 +1566,15 @@ Gets an infrastructure configuration. configuration that you want to retrieve. """ -function get_infrastructure_configuration( +get_infrastructure_configuration( infrastructureConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetInfrastructureConfiguration", + Dict{String,Any}("infrastructureConfigurationArn" => infrastructureConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetInfrastructureConfiguration", - Dict{String,Any}( - "infrastructureConfigurationArn" => infrastructureConfigurationArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_infrastructure_configuration( infrastructureConfigurationArn, params::AbstractDict{String}; @@ -1678,17 +1609,15 @@ lifecycle policy. lifecycle policy to get runtime details. """ -function get_lifecycle_execution( +get_lifecycle_execution( lifecycleExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetLifecycleExecution", + Dict{String,Any}("lifecycleExecutionId" => lifecycleExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetLifecycleExecution", - Dict{String,Any}("lifecycleExecutionId" => lifecycleExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_lifecycle_execution( lifecycleExecutionId, params::AbstractDict{String}; @@ -1720,17 +1649,15 @@ Get details for the specified image lifecycle policy. policy resource to get. """ -function get_lifecycle_policy( +get_lifecycle_policy( lifecyclePolicyArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetLifecyclePolicy", + Dict{String,Any}("lifecyclePolicyArn" => lifecyclePolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetLifecyclePolicy", - Dict{String,Any}("lifecyclePolicyArn" => lifecyclePolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_lifecycle_policy( lifecyclePolicyArn, params::AbstractDict{String}; @@ -1760,17 +1687,14 @@ Get a workflow resource object. that you want to get. """ -function get_workflow( - workflowBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +get_workflow(workflowBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "GET", "/GetWorkflow", Dict{String,Any}("workflowBuildVersionArn" => workflowBuildVersionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_workflow( workflowBuildVersionArn, params::AbstractDict{String}; @@ -1800,19 +1724,17 @@ Get the runtime information that was logged for a specific runtime instance of t # Arguments - `workflow_execution_id`: Use the unique identifier for a runtime instance of the workflow to get runtime details. - -""" -function get_workflow_execution( - workflowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( - "GET", - "/GetWorkflowExecution", - Dict{String,Any}("workflowExecutionId" => workflowExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + +""" +get_workflow_execution( + workflowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetWorkflowExecution", + Dict{String,Any}("workflowExecutionId" => workflowExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_workflow_execution( workflowExecutionId, params::AbstractDict{String}; @@ -1845,17 +1767,15 @@ step. workflow step to get runtime details for that step. """ -function get_workflow_step_execution( +get_workflow_step_execution( stepExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "GET", + "/GetWorkflowStepExecution", + Dict{String,Any}("stepExecutionId" => stepExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "GET", - "/GetWorkflowStepExecution", - Dict{String,Any}("stepExecutionId" => stepExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workflow_step_execution( stepExecutionId, params::AbstractDict{String}; @@ -1912,7 +1832,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys content up to your service quota. Either data or uri can be used to specify the data within the component. """ -function import_component( +import_component( clientToken, format, name, @@ -1920,22 +1840,20 @@ function import_component( semanticVersion, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/ImportComponent", + Dict{String,Any}( + "clientToken" => clientToken, + "format" => format, + "name" => name, + "platform" => platform, + "semanticVersion" => semanticVersion, + "type" => type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/ImportComponent", - Dict{String,Any}( - "clientToken" => clientToken, - "format" => format, - "name" => name, - "platform" => platform, - "semanticVersion" => semanticVersion, - "type" => type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_component( clientToken, format, @@ -2003,28 +1921,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"osVersion"`: The operating system version for the imported VM. - `"tags"`: Tags that are attached to the import resources. """ -function import_vm_image( +import_vm_image( clientToken, name, platform, semanticVersion, vmImportTaskId; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/ImportVmImage", + Dict{String,Any}( + "clientToken" => clientToken, + "name" => name, + "platform" => platform, + "semanticVersion" => semanticVersion, + "vmImportTaskId" => vmImportTaskId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/ImportVmImage", - Dict{String,Any}( - "clientToken" => clientToken, - "name" => name, - "platform" => platform, - "semanticVersion" => semanticVersion, - "vmImportTaskId" => vmImportTaskId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_vm_image( clientToken, name, @@ -2077,17 +1993,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_component_build_versions( +list_component_build_versions( componentVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "POST", + "/ListComponentBuildVersions", + Dict{String,Any}("componentVersionArn" => componentVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "POST", - "/ListComponentBuildVersions", - Dict{String,Any}("componentVersionArn" => componentVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_component_build_versions( componentVersionArn, params::AbstractDict{String}; @@ -2134,11 +2048,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of owners, you can specify components that Amazon manages, third party components, or components that other accounts have shared with you. """ -function list_components(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( - "POST", "/ListComponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_components(; aws_config::AbstractAWSConfig=current_aws_config()) = imagebuilder( + "POST", "/ListComponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_components( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2168,14 +2080,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys shared with you. You can omit this field to return container recipes belonging to your account. """ -function list_container_recipes(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( - "POST", - "/ListContainerRecipes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_container_recipes(; aws_config::AbstractAWSConfig=current_aws_config()) = imagebuilder( + "POST", + "/ListContainerRecipes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_container_recipes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2201,16 +2111,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_distribution_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +list_distribution_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "POST", "/ListDistributionConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_distribution_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2241,17 +2148,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_image_build_versions( +list_image_build_versions( imageVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "POST", + "/ListImageBuildVersions", + Dict{String,Any}("imageVersionArn" => imageVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "POST", - "/ListImageBuildVersions", - Dict{String,Any}("imageVersionArn" => imageVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_image_build_versions( imageVersionArn, params::AbstractDict{String}; @@ -2287,17 +2192,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_image_packages( +list_image_packages( imageBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "POST", + "/ListImagePackages", + Dict{String,Any}("imageBuildVersionArn" => imageBuildVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "POST", - "/ListImagePackages", - Dict{String,Any}("imageBuildVersionArn" => imageBuildVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_image_packages( imageBuildVersionArn, params::AbstractDict{String}; @@ -2335,17 +2238,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_image_pipeline_images( +list_image_pipeline_images( imagePipelineArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "POST", + "/ListImagePipelineImages", + Dict{String,Any}("imagePipelineArn" => imagePipelineArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "POST", - "/ListImagePipelineImages", - Dict{String,Any}("imagePipelineArn" => imagePipelineArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_image_pipeline_images( imagePipelineArn, params::AbstractDict{String}; @@ -2379,14 +2280,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_image_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( - "POST", - "/ListImagePipelines"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_image_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = imagebuilder( + "POST", + "/ListImagePipelines"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_image_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2417,11 +2316,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify if you want to view image recipes owned by yourself, by Amazon, or those image recipes that have been shared with you by other customers. """ -function list_image_recipes(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( - "POST", "/ListImageRecipes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_image_recipes(; aws_config::AbstractAWSConfig=current_aws_config()) = imagebuilder( + "POST", "/ListImageRecipes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_image_recipes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2452,16 +2349,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_image_scan_finding_aggregations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +list_image_scan_finding_aggregations(; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "POST", "/ListImageScanFindingAggregations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_image_scan_finding_aggregations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2490,14 +2384,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_image_scan_findings(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( +list_image_scan_findings(; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "POST", "/ListImageScanFindings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_image_scan_findings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2531,11 +2424,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys view images owned by yourself, by Amazon, or those images that have been shared with you by other customers. """ -function list_images(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( - "POST", "/ListImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_images(; aws_config::AbstractAWSConfig=current_aws_config()) = imagebuilder( + "POST", "/ListImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2561,16 +2452,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_infrastructure_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +list_infrastructure_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "POST", "/ListInfrastructureConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_infrastructure_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2605,17 +2493,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Associated resources are produced from your image and distributed when you run a build, such as AMIs or container images stored in ECR repositories. """ -function list_lifecycle_execution_resources( +list_lifecycle_execution_resources( lifecycleExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "POST", + "/ListLifecycleExecutionResources", + Dict{String,Any}("lifecycleExecutionId" => lifecycleExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "POST", - "/ListLifecycleExecutionResources", - Dict{String,Any}("lifecycleExecutionId" => lifecycleExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_lifecycle_execution_resources( lifecycleExecutionId, params::AbstractDict{String}; @@ -2652,17 +2538,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_lifecycle_executions( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +list_lifecycle_executions(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "POST", "/ListLifecycleExecutions", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_lifecycle_executions( resourceArn, params::AbstractDict{String}; @@ -2692,14 +2575,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_lifecycle_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( +list_lifecycle_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "POST", "/ListLifecyclePolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_lifecycle_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2723,16 +2605,13 @@ Returns the list of tags for the specified resource. retrieve. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2760,14 +2639,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_waiting_workflow_steps(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( +list_waiting_workflow_steps(; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "POST", "/ListWaitingWorkflowSteps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_waiting_workflow_steps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2796,17 +2674,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_workflow_build_versions( +list_workflow_build_versions( workflowVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "POST", + "/ListWorkflowBuildVersions", + Dict{String,Any}("workflowVersionArn" => workflowVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "POST", - "/ListWorkflowBuildVersions", - Dict{String,Any}("workflowVersionArn" => workflowVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workflow_build_versions( workflowVersionArn, params::AbstractDict{String}; @@ -2842,17 +2718,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_workflow_executions( +list_workflow_executions( imageBuildVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "POST", + "/ListWorkflowExecutions", + Dict{String,Any}("imageBuildVersionArn" => imageBuildVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "POST", - "/ListWorkflowExecutions", - Dict{String,Any}("imageBuildVersionArn" => imageBuildVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workflow_executions( imageBuildVersionArn, params::AbstractDict{String}; @@ -2890,17 +2764,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. This is the nextToken from a previously truncated response. """ -function list_workflow_step_executions( +list_workflow_step_executions( workflowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "POST", + "/ListWorkflowStepExecutions", + Dict{String,Any}("workflowExecutionId" => workflowExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "POST", - "/ListWorkflowStepExecutions", - Dict{String,Any}("workflowExecutionId" => workflowExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workflow_step_executions( workflowExecutionId, params::AbstractDict{String}; @@ -2937,11 +2809,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"owner"`: Used to get a list of workflow build version filtered by the identity of the creator. """ -function list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( - "POST", "/ListWorkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) = imagebuilder( + "POST", "/ListWorkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_workflows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2969,17 +2839,15 @@ visible to all principals with whom the resource is shared. - `policy`: The policy to apply. """ -function put_component_policy( +put_component_policy( componentArn, policy; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "PUT", + "/PutComponentPolicy", + Dict{String,Any}("componentArn" => componentArn, "policy" => policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/PutComponentPolicy", - Dict{String,Any}("componentArn" => componentArn, "policy" => policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_component_policy( componentArn, policy, @@ -3020,17 +2888,15 @@ is shared. - `policy`: The policy to apply to the container recipe. """ -function put_container_recipe_policy( +put_container_recipe_policy( containerRecipeArn, policy; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "PUT", + "/PutContainerRecipePolicy", + Dict{String,Any}("containerRecipeArn" => containerRecipeArn, "policy" => policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/PutContainerRecipePolicy", - Dict{String,Any}("containerRecipeArn" => containerRecipeArn, "policy" => policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_container_recipe_policy( containerRecipeArn, policy, @@ -3069,17 +2935,14 @@ all principals with whom the resource is shared. - `policy`: The policy to apply. """ -function put_image_policy( - imageArn, policy; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +put_image_policy(imageArn, policy; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "PUT", "/PutImagePolicy", Dict{String,Any}("imageArn" => imageArn, "policy" => policy); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_image_policy( imageArn, policy, @@ -3114,17 +2977,15 @@ in order for the resource to be visible to all principals with whom the resource - `policy`: The policy to apply. """ -function put_image_recipe_policy( +put_image_recipe_policy( imageRecipeArn, policy; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "PUT", + "/PutImageRecipePolicy", + Dict{String,Any}("imageRecipeArn" => imageRecipeArn, "policy" => policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/PutImageRecipePolicy", - Dict{String,Any}("imageRecipeArn" => imageRecipeArn, "policy" => policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_image_recipe_policy( imageRecipeArn, policy, @@ -3165,26 +3026,24 @@ Pauses or resumes image creation when the associated workflow runs a WaitForActi Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"reason"`: The reason why this action is sent. """ -function send_workflow_step_action( +send_workflow_step_action( action, clientToken, imageBuildVersionArn, stepExecutionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/SendWorkflowStepAction", + Dict{String,Any}( + "action" => action, + "clientToken" => clientToken, + "imageBuildVersionArn" => imageBuildVersionArn, + "stepExecutionId" => stepExecutionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/SendWorkflowStepAction", - Dict{String,Any}( - "action" => action, - "clientToken" => clientToken, - "imageBuildVersionArn" => imageBuildVersionArn, - "stepExecutionId" => stepExecutionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_workflow_step_action( action, clientToken, @@ -3226,19 +3085,15 @@ Manually triggers a pipeline to create an image. to manually invoke. """ -function start_image_pipeline_execution( +start_image_pipeline_execution( clientToken, imagePipelineArn; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "PUT", + "/StartImagePipelineExecution", + Dict{String,Any}("clientToken" => clientToken, "imagePipelineArn" => imagePipelineArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/StartImagePipelineExecution", - Dict{String,Any}( - "clientToken" => clientToken, "imagePipelineArn" => imagePipelineArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_image_pipeline_execution( clientToken, imagePipelineArn, @@ -3286,19 +3141,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"updateAt"`: The timestamp that indicates when resources are updated by a lifecycle action. """ -function start_resource_state_update( +start_resource_state_update( clientToken, resourceArn, state; aws_config::AbstractAWSConfig=current_aws_config() +) = imagebuilder( + "PUT", + "/StartResourceStateUpdate", + Dict{String,Any}( + "clientToken" => clientToken, "resourceArn" => resourceArn, "state" => state + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/StartResourceStateUpdate", - Dict{String,Any}( - "clientToken" => clientToken, "resourceArn" => resourceArn, "state" => state - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_resource_state_update( clientToken, resourceArn, @@ -3336,15 +3189,14 @@ Adds a tag to a resource. - `tags`: The tags to apply to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return imagebuilder( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -3371,17 +3223,14 @@ Removes a tag from a resource. - `tag_keys`: The tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return imagebuilder( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + imagebuilder( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -3415,24 +3264,22 @@ the outputs of your pipeline. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the distribution configuration. """ -function update_distribution_configuration( +update_distribution_configuration( clientToken, distributionConfigurationArn, distributions; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/UpdateDistributionConfiguration", + Dict{String,Any}( + "clientToken" => clientToken, + "distributionConfigurationArn" => distributionConfigurationArn, + "distributions" => distributions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/UpdateDistributionConfiguration", - Dict{String,Any}( - "clientToken" => clientToken, - "distributionConfigurationArn" => distributionConfigurationArn, - "distributions" => distributions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_distribution_configuration( clientToken, distributionConfigurationArn, @@ -3498,24 +3345,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the image pipeline. - `"workflows"`: Contains the workflows to run for the pipeline. """ -function update_image_pipeline( +update_image_pipeline( clientToken, imagePipelineArn, infrastructureConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/UpdateImagePipeline", + Dict{String,Any}( + "clientToken" => clientToken, + "imagePipelineArn" => imagePipelineArn, + "infrastructureConfigurationArn" => infrastructureConfigurationArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/UpdateImagePipeline", - Dict{String,Any}( - "clientToken" => clientToken, - "imagePipelineArn" => imagePipelineArn, - "infrastructureConfigurationArn" => infrastructureConfigurationArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_image_pipeline( clientToken, imagePipelineArn, @@ -3585,24 +3430,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails. """ -function update_infrastructure_configuration( +update_infrastructure_configuration( clientToken, infrastructureConfigurationArn, instanceProfileName; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/UpdateInfrastructureConfiguration", + Dict{String,Any}( + "clientToken" => clientToken, + "infrastructureConfigurationArn" => infrastructureConfigurationArn, + "instanceProfileName" => instanceProfileName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/UpdateInfrastructureConfiguration", - Dict{String,Any}( - "clientToken" => clientToken, - "infrastructureConfigurationArn" => infrastructureConfigurationArn, - "instanceProfileName" => instanceProfileName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_infrastructure_configuration( clientToken, infrastructureConfigurationArn, @@ -3651,7 +3494,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Optional description for the lifecycle policy. - `"status"`: Indicates whether the lifecycle policy resource is enabled. """ -function update_lifecycle_policy( +update_lifecycle_policy( clientToken, executionRole, lifecyclePolicyArn, @@ -3659,22 +3502,20 @@ function update_lifecycle_policy( resourceSelection, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = imagebuilder( + "PUT", + "/UpdateLifecyclePolicy", + Dict{String,Any}( + "clientToken" => clientToken, + "executionRole" => executionRole, + "lifecyclePolicyArn" => lifecyclePolicyArn, + "policyDetails" => policyDetails, + "resourceSelection" => resourceSelection, + "resourceType" => resourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return imagebuilder( - "PUT", - "/UpdateLifecyclePolicy", - Dict{String,Any}( - "clientToken" => clientToken, - "executionRole" => executionRole, - "lifecyclePolicyArn" => lifecyclePolicyArn, - "policyDetails" => policyDetails, - "resourceSelection" => resourceSelection, - "resourceType" => resourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_lifecycle_policy( clientToken, executionRole, diff --git a/src/services/importexport.jl b/src/services/importexport.jl index 2ea47f89d..7fc4cb2b0 100644 --- a/src/services/importexport.jl +++ b/src/services/importexport.jl @@ -18,14 +18,12 @@ fails if the job has already started or is complete. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"APIVersion"`: """ -function cancel_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return importexport( - "CancelJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = importexport( + "CancelJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -57,18 +55,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"APIVersion"`: - `"ManifestAddendum"`: """ -function create_job( +create_job( JobType, Manifest, ValidateOnly; aws_config::AbstractAWSConfig=current_aws_config() +) = importexport( + "CreateJob", + Dict{String,Any}( + "JobType" => JobType, "Manifest" => Manifest, "ValidateOnly" => ValidateOnly + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return importexport( - "CreateJob", - Dict{String,Any}( - "JobType" => JobType, "Manifest" => Manifest, "ValidateOnly" => ValidateOnly - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_job( JobType, Manifest, @@ -118,14 +114,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"street2"`: - `"street3"`: """ -function get_shipping_label(jobIds; aws_config::AbstractAWSConfig=current_aws_config()) - return importexport( +get_shipping_label(jobIds; aws_config::AbstractAWSConfig=current_aws_config()) = + importexport( "GetShippingLabel", Dict{String,Any}("jobIds" => jobIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_shipping_label( jobIds, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -152,14 +147,12 @@ job. You can only return information about jobs you own. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"APIVersion"`: """ -function get_status(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return importexport( - "GetStatus", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_status(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = importexport( + "GetStatus", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_status( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -186,9 +179,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Marker"`: - `"MaxJobs"`: """ -function list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return importexport("ListJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + importexport("ListJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -216,25 +208,23 @@ the data transfer starts and you can only use it on jobs you own. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"APIVersion"`: """ -function update_job( +update_job( JobId, JobType, Manifest, ValidateOnly; aws_config::AbstractAWSConfig=current_aws_config(), +) = importexport( + "UpdateJob", + Dict{String,Any}( + "JobId" => JobId, + "JobType" => JobType, + "Manifest" => Manifest, + "ValidateOnly" => ValidateOnly, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return importexport( - "UpdateJob", - Dict{String,Any}( - "JobId" => JobId, - "JobType" => JobType, - "Manifest" => Manifest, - "ValidateOnly" => ValidateOnly, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_job( JobId, JobType, diff --git a/src/services/inspector.jl b/src/services/inspector.jl index e82b22b6a..ad523c67a 100644 --- a/src/services/inspector.jl +++ b/src/services/inspector.jl @@ -16,16 +16,14 @@ the findings. - `finding_arns`: The ARNs that specify the findings that you want to assign attributes to. """ -function add_attributes_to_findings( +add_attributes_to_findings( attributes, findingArns; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "AddAttributesToFindings", + Dict{String,Any}("attributes" => attributes, "findingArns" => findingArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "AddAttributesToFindings", - Dict{String,Any}("attributes" => attributes, "findingArns" => findingArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_attributes_to_findings( attributes, findingArns, @@ -68,16 +66,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. """ -function create_assessment_target( +create_assessment_target( assessmentTargetName; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "CreateAssessmentTarget", + Dict{String,Any}("assessmentTargetName" => assessmentTargetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "CreateAssessmentTarget", - Dict{String,Any}("assessmentTargetName" => assessmentTargetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_assessment_target( assessmentTargetName, params::AbstractDict{String}; @@ -124,25 +120,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique. """ -function create_assessment_template( +create_assessment_template( assessmentTargetArn, assessmentTemplateName, durationInSeconds, rulesPackageArns; aws_config::AbstractAWSConfig=current_aws_config(), +) = inspector( + "CreateAssessmentTemplate", + Dict{String,Any}( + "assessmentTargetArn" => assessmentTargetArn, + "assessmentTemplateName" => assessmentTemplateName, + "durationInSeconds" => durationInSeconds, + "rulesPackageArns" => rulesPackageArns, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "CreateAssessmentTemplate", - Dict{String,Any}( - "assessmentTargetArn" => assessmentTargetArn, - "assessmentTemplateName" => assessmentTemplateName, - "durationInSeconds" => durationInSeconds, - "rulesPackageArns" => rulesPackageArns, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_assessment_template( assessmentTargetArn, assessmentTemplateName, @@ -183,16 +177,14 @@ detect before it runs the assessment. want to create an exclusions preview. """ -function create_exclusions_preview( +create_exclusions_preview( assessmentTemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "CreateExclusionsPreview", + Dict{String,Any}("assessmentTemplateArn" => assessmentTemplateArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "CreateExclusionsPreview", - Dict{String,Any}("assessmentTemplateArn" => assessmentTemplateArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_exclusions_preview( assessmentTemplateArn, params::AbstractDict{String}; @@ -227,16 +219,14 @@ For more information, see CreateAssessmentTarget. e3\"]}]'. For example,'[{\"key\":\"Name\",\"values\":[\"TestEC2Instance\"]}]'. """ -function create_resource_group( +create_resource_group( resourceGroupTags; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "CreateResourceGroup", + Dict{String,Any}("resourceGroupTags" => resourceGroupTags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "CreateResourceGroup", - Dict{String,Any}("resourceGroupTags" => resourceGroupTags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource_group( resourceGroupTags, params::AbstractDict{String}; @@ -264,16 +254,14 @@ Deletes the assessment run that is specified by the ARN of the assessment run. - `assessment_run_arn`: The ARN that specifies the assessment run that you want to delete. """ -function delete_assessment_run( +delete_assessment_run( assessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "DeleteAssessmentRun", + Dict{String,Any}("assessmentRunArn" => assessmentRunArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "DeleteAssessmentRun", - Dict{String,Any}("assessmentRunArn" => assessmentRunArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_assessment_run( assessmentRunArn, params::AbstractDict{String}; @@ -302,16 +290,14 @@ Deletes the assessment target that is specified by the ARN of the assessment tar delete. """ -function delete_assessment_target( +delete_assessment_target( assessmentTargetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "DeleteAssessmentTarget", + Dict{String,Any}("assessmentTargetArn" => assessmentTargetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "DeleteAssessmentTarget", - Dict{String,Any}("assessmentTargetArn" => assessmentTargetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_assessment_target( assessmentTargetArn, params::AbstractDict{String}; @@ -342,16 +328,14 @@ Deletes the assessment template that is specified by the ARN of the assessment t to delete. """ -function delete_assessment_template( +delete_assessment_template( assessmentTemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "DeleteAssessmentTemplate", + Dict{String,Any}("assessmentTemplateArn" => assessmentTemplateArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "DeleteAssessmentTemplate", - Dict{String,Any}("assessmentTemplateArn" => assessmentTemplateArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_assessment_template( assessmentTemplateArn, params::AbstractDict{String}; @@ -382,16 +366,14 @@ Describes the assessment runs that are specified by the ARNs of the assessment r describe. """ -function describe_assessment_runs( +describe_assessment_runs( assessmentRunArns; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "DescribeAssessmentRuns", + Dict{String,Any}("assessmentRunArns" => assessmentRunArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "DescribeAssessmentRuns", - Dict{String,Any}("assessmentRunArns" => assessmentRunArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_assessment_runs( assessmentRunArns, params::AbstractDict{String}; @@ -420,16 +402,14 @@ Describes the assessment targets that are specified by the ARNs of the assessmen describe. """ -function describe_assessment_targets( +describe_assessment_targets( assessmentTargetArns; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "DescribeAssessmentTargets", + Dict{String,Any}("assessmentTargetArns" => assessmentTargetArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "DescribeAssessmentTargets", - Dict{String,Any}("assessmentTargetArns" => assessmentTargetArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_assessment_targets( assessmentTargetArns, params::AbstractDict{String}; @@ -460,16 +440,14 @@ templates. - `assessment_template_arns`: """ -function describe_assessment_templates( +describe_assessment_templates( assessmentTemplateArns; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "DescribeAssessmentTemplates", + Dict{String,Any}("assessmentTemplateArns" => assessmentTemplateArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "DescribeAssessmentTemplates", - Dict{String,Any}("assessmentTemplateArns" => assessmentTemplateArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_assessment_templates( assessmentTemplateArns, params::AbstractDict{String}; @@ -496,15 +474,12 @@ end Describes the IAM role that enables Amazon Inspector to access your AWS account. """ -function describe_cross_account_access_role(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector( +describe_cross_account_access_role(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector( "DescribeCrossAccountAccessRole"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cross_account_access_role( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -530,16 +505,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"locale"`: The locale into which you want to translate the exclusion's title, description, and recommendation. """ -function describe_exclusions( - exclusionArns; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector( +describe_exclusions(exclusionArns; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector( "DescribeExclusions", Dict{String,Any}("exclusionArns" => exclusionArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_exclusions( exclusionArns, params::AbstractDict{String}; @@ -569,14 +541,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"locale"`: The locale into which you want to translate a finding description, recommendation, and the short description that identifies the finding. """ -function describe_findings(findingArns; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector( +describe_findings(findingArns; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector( "DescribeFindings", Dict{String,Any}("findingArns" => findingArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_findings( findingArns, params::AbstractDict{String}; @@ -603,16 +574,14 @@ Describes the resource groups that are specified by the ARNs of the resource gro describe. """ -function describe_resource_groups( +describe_resource_groups( resourceGroupArns; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "DescribeResourceGroups", + Dict{String,Any}("resourceGroupArns" => resourceGroupArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "DescribeResourceGroups", - Dict{String,Any}("resourceGroupArns" => resourceGroupArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_resource_groups( resourceGroupArns, params::AbstractDict{String}; @@ -643,16 +612,14 @@ Describes the rules packages that are specified by the ARNs of the rules package Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"locale"`: The locale that you want to translate a rules package description into. """ -function describe_rules_packages( +describe_rules_packages( rulesPackageArns; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "DescribeRulesPackages", + Dict{String,Any}("rulesPackageArns" => rulesPackageArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "DescribeRulesPackages", - Dict{String,Any}("rulesPackageArns" => rulesPackageArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_rules_packages( rulesPackageArns, params::AbstractDict{String}; @@ -687,23 +654,21 @@ specified assessment run. information, see Assessment Reports. """ -function get_assessment_report( +get_assessment_report( assessmentRunArn, reportFileFormat, reportType; aws_config::AbstractAWSConfig=current_aws_config(), +) = inspector( + "GetAssessmentReport", + Dict{String,Any}( + "assessmentRunArn" => assessmentRunArn, + "reportFileFormat" => reportFileFormat, + "reportType" => reportType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "GetAssessmentReport", - Dict{String,Any}( - "assessmentRunArn" => assessmentRunArn, - "reportFileFormat" => reportFileFormat, - "reportType" => reportType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_assessment_report( assessmentRunArn, reportFileFormat, @@ -752,18 +717,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data. """ -function get_exclusions_preview( +get_exclusions_preview( assessmentTemplateArn, previewToken; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "GetExclusionsPreview", + Dict{String,Any}( + "assessmentTemplateArn" => assessmentTemplateArn, "previewToken" => previewToken + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "GetExclusionsPreview", - Dict{String,Any}( - "assessmentTemplateArn" => assessmentTemplateArn, "previewToken" => previewToken - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_exclusions_preview( assessmentTemplateArn, previewToken, @@ -798,16 +761,14 @@ Information about the data that is collected for the specified assessment run. data that you want to obtain. """ -function get_telemetry_metadata( +get_telemetry_metadata( assessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "GetTelemetryMetadata", + Dict{String,Any}("assessmentRunArn" => assessmentRunArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "GetTelemetryMetadata", - Dict{String,Any}("assessmentRunArn" => assessmentRunArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_telemetry_metadata( assessmentRunArn, params::AbstractDict{String}; @@ -849,16 +810,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_assessment_run_agents( +list_assessment_run_agents( assessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "ListAssessmentRunAgents", + Dict{String,Any}("assessmentRunArn" => assessmentRunArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "ListAssessmentRunAgents", - Dict{String,Any}("assessmentRunArn" => assessmentRunArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_assessment_run_agents( assessmentRunArn, params::AbstractDict{String}; @@ -898,11 +857,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_assessment_runs(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector( - "ListAssessmentRuns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_assessment_runs(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector("ListAssessmentRuns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_assessment_runs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -931,11 +887,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_assessment_targets(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector( - "ListAssessmentTargets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_assessment_targets(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector( + "ListAssessmentTargets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_assessment_targets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -969,11 +923,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_assessment_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector( - "ListAssessmentTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_assessment_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector( + "ListAssessmentTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_assessment_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1004,11 +956,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceArn"`: The ARN of the assessment template for which you want to list the existing event subscriptions. """ -function list_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector( - "ListEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector( + "ListEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_event_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1039,16 +989,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data. """ -function list_exclusions( - assessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector( +list_exclusions(assessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector( "ListExclusions", Dict{String,Any}("assessmentRunArn" => assessmentRunArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_exclusions( assessmentRunArn, params::AbstractDict{String}; @@ -1088,9 +1035,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_findings(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector("ListFindings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_findings(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector("ListFindings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_findings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1114,11 +1060,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function list_rules_packages(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector( - "ListRulesPackages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rules_packages(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector("ListRulesPackages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rules_packages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1138,16 +1081,13 @@ Lists all tags associated with an assessment template. list. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1182,16 +1122,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action fill nextToken in the request with the value of NextToken from the previous response to continue listing data. """ -function preview_agents( - previewAgentsArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector( +preview_agents(previewAgentsArn; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector( "PreviewAgents", Dict{String,Any}("previewAgentsArn" => previewAgentsArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function preview_agents( previewAgentsArn, params::AbstractDict{String}; @@ -1221,16 +1158,14 @@ perform security assessments. needed to perform security assessments. """ -function register_cross_account_access_role( +register_cross_account_access_role( roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "RegisterCrossAccountAccessRole", + Dict{String,Any}("roleArn" => roleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "RegisterCrossAccountAccessRole", - Dict{String,Any}("roleArn" => roleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_cross_account_access_role( roleArn, params::AbstractDict{String}; @@ -1258,16 +1193,14 @@ ARNs of the findings where an attribute with the specified key exists. from. """ -function remove_attributes_from_findings( +remove_attributes_from_findings( attributeKeys, findingArns; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "RemoveAttributesFromFindings", + Dict{String,Any}("attributeKeys" => attributeKeys, "findingArns" => findingArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "RemoveAttributesFromFindings", - Dict{String,Any}("attributeKeys" => attributeKeys, "findingArns" => findingArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_attributes_from_findings( attributeKeys, findingArns, @@ -1305,16 +1238,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of key and value pairs that you want to set to the assessment template. """ -function set_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector( +set_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector( "SetTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1347,16 +1277,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"assessmentRunName"`: You can specify the name for the assessment run. The name must be unique for the assessment template whose ARN is used to start the assessment run. """ -function start_assessment_run( +start_assessment_run( assessmentTemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "StartAssessmentRun", + Dict{String,Any}("assessmentTemplateArn" => assessmentTemplateArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "StartAssessmentRun", - Dict{String,Any}("assessmentTemplateArn" => assessmentTemplateArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_assessment_run( assessmentTemplateArn, params::AbstractDict{String}; @@ -1392,16 +1320,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data and begins the results evaluation and the findings generation process. SKIP_EVALUATION cancels the assessment run immediately, after which no findings are generated. """ -function stop_assessment_run( - assessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector( +stop_assessment_run(assessmentRunArn; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector( "StopAssessmentRun", Dict{String,Any}("assessmentRunArn" => assessmentRunArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_assessment_run( assessmentRunArn, params::AbstractDict{String}; @@ -1433,18 +1358,16 @@ a specified event to a specified SNS topic. - `topic_arn`: The ARN of the SNS topic to which the SNS notifications are sent. """ -function subscribe_to_event( +subscribe_to_event( event, resourceArn, topicArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "SubscribeToEvent", + Dict{String,Any}( + "event" => event, "resourceArn" => resourceArn, "topicArn" => topicArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "SubscribeToEvent", - Dict{String,Any}( - "event" => event, "resourceArn" => resourceArn, "topicArn" => topicArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function subscribe_to_event( event, resourceArn, @@ -1482,18 +1405,16 @@ about a specified event to a specified SNS topic. - `topic_arn`: The ARN of the SNS topic to which SNS notifications are sent. """ -function unsubscribe_from_event( +unsubscribe_from_event( event, resourceArn, topicArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector( + "UnsubscribeFromEvent", + Dict{String,Any}( + "event" => event, "resourceArn" => resourceArn, "topicArn" => topicArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "UnsubscribeFromEvent", - Dict{String,Any}( - "event" => event, "resourceArn" => resourceArn, "topicArn" => topicArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unsubscribe_from_event( event, resourceArn, @@ -1534,21 +1455,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceGroupArn"`: The ARN of the resource group that is used to specify the new resource group to associate with the assessment target. """ -function update_assessment_target( +update_assessment_target( assessmentTargetArn, assessmentTargetName; aws_config::AbstractAWSConfig=current_aws_config(), +) = inspector( + "UpdateAssessmentTarget", + Dict{String,Any}( + "assessmentTargetArn" => assessmentTargetArn, + "assessmentTargetName" => assessmentTargetName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector( - "UpdateAssessmentTarget", - Dict{String,Any}( - "assessmentTargetArn" => assessmentTargetArn, - "assessmentTargetName" => assessmentTargetName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_assessment_target( assessmentTargetArn, assessmentTargetName, diff --git a/src/services/inspector2.jl b/src/services/inspector2.jl index f4a597a4b..c37ce87b6 100644 --- a/src/services/inspector2.jl +++ b/src/services/inspector2.jl @@ -17,15 +17,14 @@ ListMembers for multiple accounts or GetMembers for a single account. - `account_id`: The Amazon Web Services account ID of the member account to be associated. """ -function associate_member(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +associate_member(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/members/associate", Dict{String,Any}("accountId" => accountId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_member( accountId, params::AbstractDict{String}; @@ -54,11 +53,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"accountIds"`: The 12-digit Amazon Web Services account IDs of the accounts to retrieve Amazon Inspector status for. """ -function batch_get_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/status/batch/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +batch_get_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", "/status/batch/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function batch_get_account_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -83,17 +80,14 @@ in. snippets from. """ -function batch_get_code_snippet( - findingArns; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +batch_get_code_snippet(findingArns; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/codesnippet/batchget", Dict{String,Any}("findingArns" => findingArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_code_snippet( findingArns, params::AbstractDict{String}; @@ -120,17 +114,14 @@ Gets vulnerability details for findings. - `finding_arns`: A list of finding ARNs. """ -function batch_get_finding_details( - findingArns; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +batch_get_finding_details(findingArns; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/findings/details/batch/get", Dict{String,Any}("findingArns" => findingArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_finding_details( findingArns, params::AbstractDict{String}; @@ -157,17 +148,14 @@ Gets free trial status for multiple Amazon Web Services accounts. - `account_ids`: The account IDs to get free trial status for. """ -function batch_get_free_trial_info( - accountIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +batch_get_free_trial_info(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/freetrialinfo/batchget", Dict{String,Any}("accountIds" => accountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_free_trial_info( accountIds, params::AbstractDict{String}; @@ -197,16 +185,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"accountIds"`: The unique identifiers for the Amazon Web Services accounts to retrieve Amazon Inspector deep inspection activation status for. </p> """ -function batch_get_member_ec2_deep_inspection_status(; +batch_get_member_ec2_deep_inspection_status(; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/ec2deepinspectionstatus/member/batch/get"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/ec2deepinspectionstatus/member/batch/get"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_member_ec2_deep_inspection_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -232,17 +218,15 @@ Inspector to use this API. Amazon Inspector deep inspection status for. """ -function batch_update_member_ec2_deep_inspection_status( +batch_update_member_ec2_deep_inspection_status( accountIds; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/ec2deepinspectionstatus/member/batch/update", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/ec2deepinspectionstatus/member/batch/update", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_member_ec2_deep_inspection_status( accountIds, params::AbstractDict{String}; @@ -269,17 +253,14 @@ Cancels the given findings report. - `report_id`: The ID of the report to be canceled. """ -function cancel_findings_report( - reportId; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +cancel_findings_report(reportId; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/reporting/cancel", Dict{String,Any}("reportId" => reportId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_findings_report( reportId, params::AbstractDict{String}; @@ -306,15 +287,14 @@ Cancels a software bill of materials (SBOM) report. - `report_id`: The report ID of the SBOM export to cancel. """ -function cancel_sbom_export(reportId; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +cancel_sbom_export(reportId; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/sbomexport/cancel", Dict{String,Any}("reportId" => reportId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_sbom_export( reportId, params::AbstractDict{String}; @@ -348,26 +328,24 @@ Creates a CIS scan configuration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The tags for the CIS scan configuration. """ -function create_cis_scan_configuration( +create_cis_scan_configuration( scanName, schedule, securityLevel, targets; aws_config::AbstractAWSConfig=current_aws_config(), +) = inspector2( + "POST", + "/cis/scan-configuration/create", + Dict{String,Any}( + "scanName" => scanName, + "schedule" => schedule, + "securityLevel" => securityLevel, + "targets" => targets, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/cis/scan-configuration/create", - Dict{String,Any}( - "scanName" => scanName, - "schedule" => schedule, - "securityLevel" => securityLevel, - "targets" => targets, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cis_scan_configuration( scanName, schedule, @@ -416,19 +394,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reason"`: The reason for creating the filter. - `"tags"`: A list of tags for the filter. """ -function create_filter( +create_filter( action, filterCriteria, name; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/filters/create", + Dict{String,Any}( + "action" => action, "filterCriteria" => filterCriteria, "name" => name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/filters/create", - Dict{String,Any}( - "action" => action, "filterCriteria" => filterCriteria, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_filter( action, filterCriteria, @@ -469,17 +445,15 @@ criteria. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"filterCriteria"`: The filter criteria to apply to the results of the finding report. """ -function create_findings_report( +create_findings_report( reportFormat, s3Destination; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/reporting/create", + Dict{String,Any}("reportFormat" => reportFormat, "s3Destination" => s3Destination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/reporting/create", - Dict{String,Any}("reportFormat" => reportFormat, "s3Destination" => s3Destination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_findings_report( reportFormat, s3Destination, @@ -518,17 +492,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceFilterCriteria"`: The resource filter criteria for the software bill of materials (SBOM) report. """ -function create_sbom_export( +create_sbom_export( reportFormat, s3Destination; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/sbomexport/create", + Dict{String,Any}("reportFormat" => reportFormat, "s3Destination" => s3Destination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/sbomexport/create", - Dict{String,Any}("reportFormat" => reportFormat, "s3Destination" => s3Destination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sbom_export( reportFormat, s3Destination, @@ -562,17 +534,15 @@ Deletes a CIS scan configuration. - `scan_configuration_arn`: The ARN of the CIS scan configuration. """ -function delete_cis_scan_configuration( +delete_cis_scan_configuration( scanConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/cis/scan-configuration/delete", + Dict{String,Any}("scanConfigurationArn" => scanConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/cis/scan-configuration/delete", - Dict{String,Any}("scanConfigurationArn" => scanConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cis_scan_configuration( scanConfigurationArn, params::AbstractDict{String}; @@ -603,15 +573,13 @@ Deletes a filter resource. - `arn`: The Amazon Resource Number (ARN) of the filter to be deleted. """ -function delete_filter(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", - "/filters/delete", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_filter(arn; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", + "/filters/delete", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_filter( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -631,16 +599,13 @@ end Describe Amazon Inspector configuration settings for an Amazon Web Services organization. """ -function describe_organization_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +describe_organization_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/organizationconfiguration/describe"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_organization_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -665,11 +630,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"accountIds"`: An array of account IDs you want to disable Amazon Inspector scans for. - `"resourceTypes"`: The resource scan types you want to disable. """ -function disable(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/disable"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +disable(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2("POST", "/disable"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function disable( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -689,17 +651,15 @@ Disables the Amazon Inspector delegated administrator for your organization. Inspector delegated administrator. """ -function disable_delegated_admin_account( +disable_delegated_admin_account( delegatedAdminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/delegatedadminaccounts/disable", + Dict{String,Any}("delegatedAdminAccountId" => delegatedAdminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/delegatedadminaccounts/disable", - Dict{String,Any}("delegatedAdminAccountId" => delegatedAdminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_delegated_admin_account( delegatedAdminAccountId, params::AbstractDict{String}; @@ -730,15 +690,14 @@ Disassociates a member account from an Amazon Inspector delegated administrator. - `account_id`: The Amazon Web Services account ID of the member account to disassociate. """ -function disassociate_member(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +disassociate_member(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/members/disassociate", Dict{String,Any}("accountId" => accountId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_member( accountId, params::AbstractDict{String}; @@ -769,17 +728,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"accountIds"`: A list of account IDs you want to enable Amazon Inspector scans for. - `"clientToken"`: The idempotency token for the request. """ -function enable(resourceTypes; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", - "/enable", - Dict{String,Any}( - "resourceTypes" => resourceTypes, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable(resourceTypes; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", + "/enable", + Dict{String,Any}("resourceTypes" => resourceTypes, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable( resourceTypes, params::AbstractDict{String}; @@ -816,20 +771,18 @@ Enables the Amazon Inspector delegated administrator for your Organizations orga Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: The idempotency token for the request. """ -function enable_delegated_admin_account( +enable_delegated_admin_account( delegatedAdminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/delegatedadminaccounts/enable", + Dict{String,Any}( + "delegatedAdminAccountId" => delegatedAdminAccountId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/delegatedadminaccounts/enable", - Dict{String,Any}( - "delegatedAdminAccountId" => delegatedAdminAccountId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_delegated_admin_account( delegatedAdminAccountId, params::AbstractDict{String}; @@ -868,15 +821,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified, the report format defaults to PDF. - `"targetAccounts"`: The target accounts. """ -function get_cis_scan_report(scanArn; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +get_cis_scan_report(scanArn; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/cis/scan/report/get", Dict{String,Any}("scanArn" => scanArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cis_scan_report( scanArn, params::AbstractDict{String}; @@ -912,21 +864,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: The sort by order. - `"sortOrder"`: The sort order. """ -function get_cis_scan_result_details( +get_cis_scan_result_details( accountId, scanArn, targetResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/cis/scan-result/details/get", + Dict{String,Any}( + "accountId" => accountId, + "scanArn" => scanArn, + "targetResourceId" => targetResourceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/cis/scan-result/details/get", - Dict{String,Any}( - "accountId" => accountId, - "scanArn" => scanArn, - "targetResourceId" => targetResourceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cis_scan_result_details( accountId, scanArn, @@ -960,11 +910,9 @@ end Retrieves setting configurations for Inspector scans. """ -function get_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/configuration/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", "/configuration/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -985,14 +933,13 @@ Retrieves information about the Amazon Inspector delegated administrator for you organization. """ -function get_delegated_admin_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +get_delegated_admin_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/delegatedadminaccounts/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_delegated_admin_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1013,16 +960,14 @@ Retrieves the activation status of Amazon Inspector deep inspection and custom p associated with your account. """ -function get_ec2_deep_inspection_configuration(; +get_ec2_deep_inspection_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/ec2deepinspectionconfiguration/get"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/ec2deepinspectionconfiguration/get"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ec2_deep_inspection_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1046,17 +991,15 @@ Gets an encryption key. - `scan_type`: The scan type the key encrypts. """ -function get_encryption_key( +get_encryption_key( resourceType, scanType; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "GET", + "/encryptionkey/get", + Dict{String,Any}("resourceType" => resourceType, "scanType" => scanType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "GET", - "/encryptionkey/get", - Dict{String,Any}("resourceType" => resourceType, "scanType" => scanType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_encryption_key( resourceType, scanType, @@ -1088,14 +1031,13 @@ Gets the status of a findings report. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"reportId"`: The ID of the report to retrieve the status of. """ -function get_findings_report_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +get_findings_report_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/reporting/status/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_findings_report_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1119,15 +1061,13 @@ Gets member information for your organization. information on. """ -function get_member(accountId; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", - "/members/get", - Dict{String,Any}("accountId" => accountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_member(accountId; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", + "/members/get", + Dict{String,Any}("accountId" => accountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_member( accountId, params::AbstractDict{String}; @@ -1154,15 +1094,13 @@ Gets details of a software bill of materials (SBOM) report. - `report_id`: The report ID of the SBOM export to get details for. """ -function get_sbom_export(reportId; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", - "/sbomexport/get", - Dict{String,Any}("reportId" => reportId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_sbom_export(reportId; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", + "/sbomexport/get", + Dict{String,Any}("reportId" => reportId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_sbom_export( reportId, params::AbstractDict{String}; @@ -1197,14 +1135,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys continue listing results after the first page. - `"service"`: The service scan type to check permissions for. """ -function list_account_permissions(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", - "/accountpermissions/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_account_permissions(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", + "/accountpermissions/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_account_permissions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1233,14 +1169,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: The CIS scan configuration sort by order. - `"sortOrder"`: The CIS scan configuration sort order order. """ -function list_cis_scan_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +list_cis_scan_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/cis/scan-configuration/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cis_scan_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1272,17 +1207,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: The sort by order. - `"sortOrder"`: The sort order. """ -function list_cis_scan_results_aggregated_by_checks( +list_cis_scan_results_aggregated_by_checks( scanArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/cis/scan-result/check/list", + Dict{String,Any}("scanArn" => scanArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/cis/scan-result/check/list", - Dict{String,Any}("scanArn" => scanArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_cis_scan_results_aggregated_by_checks( scanArn, params::AbstractDict{String}; @@ -1316,17 +1249,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: The sort by order. - `"sortOrder"`: The sort order. """ -function list_cis_scan_results_aggregated_by_target_resource( +list_cis_scan_results_aggregated_by_target_resource( scanArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/cis/scan-result/resource/list", + Dict{String,Any}("scanArn" => scanArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/cis/scan-result/resource/list", - Dict{String,Any}("scanArn" => scanArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_cis_scan_results_aggregated_by_target_resource( scanArn, params::AbstractDict{String}; @@ -1357,11 +1288,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: The CIS scans sort by order. - `"sortOrder"`: The CIS scans sort order. """ -function list_cis_scans(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/cis/scan/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_cis_scans(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", "/cis/scan/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_cis_scans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1393,11 +1322,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page. """ -function list_coverage(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/coverage/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_coverage(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", "/coverage/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_coverage( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1426,14 +1353,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page. """ -function list_coverage_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", - "/coverage/statistics/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_coverage_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", + "/coverage/statistics/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_coverage_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1463,14 +1388,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page. """ -function list_delegated_admin_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +list_delegated_admin_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/delegatedadminaccounts/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_delegated_admin_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1502,11 +1426,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page. """ -function list_filters(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/filters/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_filters(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", "/filters/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_filters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1543,17 +1465,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page. """ -function list_finding_aggregations( +list_finding_aggregations( aggregationType; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/findings/aggregation/list", + Dict{String,Any}("aggregationType" => aggregationType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/findings/aggregation/list", - Dict{String,Any}("aggregationType" => aggregationType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_finding_aggregations( aggregationType, params::AbstractDict{String}; @@ -1591,11 +1511,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys continue listing results after the first page. - `"sortCriteria"`: Details on the sort criteria to apply to your finding results. """ -function list_findings(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/findings/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_findings(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", "/findings/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_findings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1628,11 +1546,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"onlyAssociated"`: Specifies whether to list only currently associated members if True or to list all members within the organization if False. """ -function list_members(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/members/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_members(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", "/members/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_members( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1655,16 +1571,13 @@ Lists all tags attached to a given resource. - `resource_arn`: The Amazon resource number (ARN) of the resource to list tags of. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1697,11 +1610,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page. """ -function list_usage_totals(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", "/usage/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_usage_totals(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", "/usage/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_usage_totals( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1726,17 +1637,15 @@ Amazon Web Services owned key. - `scan_type`: The scan type the key encrypts. """ -function reset_encryption_key( +reset_encryption_key( resourceType, scanType; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "PUT", + "/encryptionkey/reset", + Dict{String,Any}("resourceType" => resourceType, "scanType" => scanType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "PUT", - "/encryptionkey/reset", - Dict{String,Any}("resourceType" => resourceType, "scanType" => scanType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_encryption_key( resourceType, scanType, @@ -1774,17 +1683,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page. """ -function search_vulnerabilities( - filterCriteria; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +search_vulnerabilities(filterCriteria; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/vulnerabilities/search", Dict{String,Any}("filterCriteria" => filterCriteria); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_vulnerabilities( filterCriteria, params::AbstractDict{String}; @@ -1814,17 +1720,15 @@ API to start a CIS scan session for the scan ID supplied by the service. - `session_token`: The unique token that identifies the CIS session. """ -function send_cis_session_health( +send_cis_session_health( scanJobId, sessionToken; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "PUT", + "/cissession/health/send", + Dict{String,Any}("scanJobId" => scanJobId, "sessionToken" => sessionToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "PUT", - "/cissession/health/send", - Dict{String,Any}("scanJobId" => scanJobId, "sessionToken" => sessionToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_cis_session_health( scanJobId, sessionToken, @@ -1860,19 +1764,17 @@ API to start a CIS scan session for the scan ID supplied by the service. - `session_token`: The unique token that identifies the CIS session. """ -function send_cis_session_telemetry( +send_cis_session_telemetry( messages, scanJobId, sessionToken; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "PUT", + "/cissession/telemetry/send", + Dict{String,Any}( + "messages" => messages, "scanJobId" => scanJobId, "sessionToken" => sessionToken + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "PUT", - "/cissession/telemetry/send", - Dict{String,Any}( - "messages" => messages, "scanJobId" => scanJobId, "sessionToken" => sessionToken - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_cis_session_telemetry( messages, scanJobId, @@ -1912,17 +1814,14 @@ a CIS scan session for the scan ID supplied by the service. - `scan_job_id`: A unique identifier for the scan job. """ -function start_cis_session( - message, scanJobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +start_cis_session(message, scanJobId; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "PUT", "/cissession/start", Dict{String,Any}("message" => message, "scanJobId" => scanJobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_cis_session( message, scanJobId, @@ -1958,19 +1857,17 @@ a CIS scan session for the scan ID supplied by the service. - `session_token`: The unique token that identifies the CIS session. """ -function stop_cis_session( +stop_cis_session( message, scanJobId, sessionToken; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "PUT", + "/cissession/stop", + Dict{String,Any}( + "message" => message, "scanJobId" => scanJobId, "sessionToken" => sessionToken + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "PUT", - "/cissession/stop", - Dict{String,Any}( - "message" => message, "scanJobId" => scanJobId, "sessionToken" => sessionToken - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_cis_session( message, scanJobId, @@ -2008,15 +1905,14 @@ Adds tags to a resource. - `tags`: The tags to be added to a resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2043,17 +1939,14 @@ Removes tags from a resource. - `tag_keys`: The tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return inspector2( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + inspector2( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2086,17 +1979,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys refers to the Benchmark levels that CIS assigns to a profile. - `"targets"`: The targets for the CIS scan configuration. """ -function update_cis_scan_configuration( +update_cis_scan_configuration( scanConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/cis/scan-configuration/update", + Dict{String,Any}("scanConfigurationArn" => scanConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/cis/scan-configuration/update", - Dict{String,Any}("scanConfigurationArn" => scanConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cis_scan_configuration( scanConfigurationArn, params::AbstractDict{String}; @@ -2132,14 +2023,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ecrConfiguration"`: Specifies how the ECR automated re-scan will be updated for your environment. """ -function update_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", - "/configuration/update"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", + "/configuration/update"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2168,16 +2057,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"packagePaths"`: The Amazon Inspector deep inspection custom paths you are adding for your account. """ -function update_ec2_deep_inspection_configuration(; +update_ec2_deep_inspection_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/ec2deepinspectionconfiguration/update"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/ec2deepinspectionconfiguration/update"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_ec2_deep_inspection_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2203,19 +2090,17 @@ owned key is being used for encryption. - `scan_type`: The scan type for the encryption key. """ -function update_encryption_key( +update_encryption_key( kmsKeyId, resourceType, scanType; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "PUT", + "/encryptionkey/update", + Dict{String,Any}( + "kmsKeyId" => kmsKeyId, "resourceType" => resourceType, "scanType" => scanType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "PUT", - "/encryptionkey/update", - Dict{String,Any}( - "kmsKeyId" => kmsKeyId, "resourceType" => resourceType, "scanType" => scanType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_encryption_key( kmsKeyId, resourceType, @@ -2260,15 +2145,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the filter. - `"reason"`: The reason the filter was updated. """ -function update_filter(filterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector2( - "POST", - "/filters/update", - Dict{String,Any}("filterArn" => filterArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_filter(filterArn; aws_config::AbstractAWSConfig=current_aws_config()) = inspector2( + "POST", + "/filters/update", + Dict{String,Any}("filterArn" => filterArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_filter( filterArn, params::AbstractDict{String}; @@ -2297,17 +2180,15 @@ be an Amazon Inspector delegated administrator to use this API. your organization. """ -function update_org_ec2_deep_inspection_configuration( +update_org_ec2_deep_inspection_configuration( orgPackagePaths; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/ec2deepinspectionconfiguration/org/update", + Dict{String,Any}("orgPackagePaths" => orgPackagePaths); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/ec2deepinspectionconfiguration/org/update", - Dict{String,Any}("orgPackagePaths" => orgPackagePaths); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_org_ec2_deep_inspection_configuration( orgPackagePaths, params::AbstractDict{String}; @@ -2337,17 +2218,15 @@ Updates the configurations for your Amazon Inspector organization. Amazon Inspector organization. """ -function update_organization_configuration( +update_organization_configuration( autoEnable; aws_config::AbstractAWSConfig=current_aws_config() +) = inspector2( + "POST", + "/organizationconfiguration/update", + Dict{String,Any}("autoEnable" => autoEnable); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return inspector2( - "POST", - "/organizationconfiguration/update", - Dict{String,Any}("autoEnable" => autoEnable); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_organization_configuration( autoEnable, params::AbstractDict{String}; diff --git a/src/services/inspector_scan.jl b/src/services/inspector_scan.jl index cf407b3f1..f9634d59c 100644 --- a/src/services/inspector_scan.jl +++ b/src/services/inspector_scan.jl @@ -20,15 +20,13 @@ generator. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"outputFormat"`: The output format for the vulnerability report. """ -function scan_sbom(sbom; aws_config::AbstractAWSConfig=current_aws_config()) - return inspector_scan( - "POST", - "/scan/sbom", - Dict{String,Any}("sbom" => sbom); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +scan_sbom(sbom; aws_config::AbstractAWSConfig=current_aws_config()) = inspector_scan( + "POST", + "/scan/sbom", + Dict{String,Any}("sbom" => sbom); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function scan_sbom( sbom, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/internetmonitor.jl b/src/services/internetmonitor.jl index 51fdb1e90..bcd67c5ad 100644 --- a/src/services/internetmonitor.jl +++ b/src/services/internetmonitor.jl @@ -60,15 +60,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the CloudWatch User Guide. """ -function create_monitor(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( +create_monitor(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "POST", "/v20210603/Monitors", Dict{String,Any}("MonitorName" => MonitorName, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_monitor( MonitorName, params::AbstractDict{String}; @@ -101,14 +100,13 @@ Deletes a monitor in Amazon CloudWatch Internet Monitor. - `monitor_name`: The name of the monitor to delete. """ -function delete_monitor(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( +delete_monitor(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "DELETE", "/v20210603/Monitors/$(MonitorName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_monitor( MonitorName, params::AbstractDict{String}; @@ -147,16 +145,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys using Amazon CloudWatch Observability Access Manager. For more information, see Internet Monitor cross-account observability in the Amazon CloudWatch Internet Monitor User Guide. """ -function get_health_event( - EventId, MonitorName; aws_config::AbstractAWSConfig=current_aws_config() -) - return internetmonitor( +get_health_event(EventId, MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "GET", "/v20210603/Monitors/$(MonitorName)/HealthEvents/$(EventId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_health_event( EventId, MonitorName, @@ -187,14 +182,13 @@ and the status (ACTIVE or RESOLVED). - `event_id`: The EventId of the internet event to return information for. """ -function get_internet_event(EventId; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( +get_internet_event(EventId; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "GET", "/v20210603/InternetEvents/$(EventId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_internet_event( EventId, params::AbstractDict{String}; @@ -227,14 +221,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys using Amazon CloudWatch Observability Access Manager. For more information, see Internet Monitor cross-account observability in the Amazon CloudWatch Internet Monitor User Guide. """ -function get_monitor(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( +get_monitor(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "GET", "/v20210603/Monitors/$(MonitorName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_monitor( MonitorName, params::AbstractDict{String}; @@ -270,16 +263,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function get_query_results( +get_query_results( MonitorName, QueryId; aws_config::AbstractAWSConfig=current_aws_config() +) = internetmonitor( + "GET", + "/v20210603/Monitors/$(MonitorName)/Queries/$(QueryId)/Results"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return internetmonitor( - "GET", - "/v20210603/Monitors/$(MonitorName)/Queries/$(QueryId)/Results"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_query_results( MonitorName, QueryId, @@ -312,16 +303,13 @@ The query was canceled. internally-generated dentifier for a specific query. """ -function get_query_status( - MonitorName, QueryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return internetmonitor( +get_query_status(MonitorName, QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "GET", "/v20210603/Monitors/$(MonitorName)/Queries/$(QueryId)/Status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_query_status( MonitorName, QueryId, @@ -364,14 +352,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call. - `"StartTime"`: The time when a health event started. """ -function list_health_events(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( +list_health_events(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "GET", "/v20210603/Monitors/$(MonitorName)/HealthEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_health_events( MonitorName, params::AbstractDict{String}; @@ -413,14 +400,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: The start time of the time window that you want to get a list of internet events for. """ -function list_internet_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( +list_internet_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "GET", "/v20210603/InternetEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_internet_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -454,11 +440,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( - "GET", "/v20210603/Monitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) = internetmonitor( + "GET", "/v20210603/Monitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_monitors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -482,16 +466,13 @@ Internet Monitor. - `resource_arn`: The Amazon Resource Name (ARN) for a resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return internetmonitor( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -528,9 +509,14 @@ Amazon CloudWatch Internet Monitor User Guide. and time to first byte (TTFB) information, for the top location and ASN combinations that you're monitoring, by traffic volume. TOP_LOCATION_DETAILS: Provides TTFB for Amazon CloudFront, your current configuration, and the best performing EC2 configuration, at 1 - hour intervals. For lists of the fields returned with each query type and more - information about how each type of query is performed, see Using the Amazon CloudWatch - Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide. + hour intervals. OVERALL_TRAFFIC_SUGGESTIONS: Provides TTFB, using a 30-day weighted + average, for all traffic in each Amazon Web Services location that is monitored. + OVERALL_TRAFFIC_SUGGESTIONS_DETAILS: Provides TTFB, using a 30-day weighted average, for + each top location, for a proposed Amazon Web Services location. Must provide a Amazon Web + Services location to search. For lists of the fields returned with each query type and + more information about how each type of query is performed, see Using the Amazon + CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User + Guide. - `start_time`: The timestamp that is the beginning of the period that you want to retrieve data for with your query. @@ -547,23 +533,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys using Amazon CloudWatch Observability Access Manager. For more information, see Internet Monitor cross-account observability in the Amazon CloudWatch Internet Monitor User Guide. """ -function start_query( +start_query( EndTime, MonitorName, QueryType, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = internetmonitor( + "POST", + "/v20210603/Monitors/$(MonitorName)/Queries", + Dict{String,Any}( + "EndTime" => EndTime, "QueryType" => QueryType, "StartTime" => StartTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return internetmonitor( - "POST", - "/v20210603/Monitors/$(MonitorName)/Queries", - Dict{String,Any}( - "EndTime" => EndTime, "QueryType" => QueryType, "StartTime" => StartTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_query( EndTime, MonitorName, @@ -601,16 +585,13 @@ Stop a query that is progress for a specific monitor. internally-generated identifier for a specific query. """ -function stop_query( - MonitorName, QueryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return internetmonitor( +stop_query(MonitorName, QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "DELETE", "/v20210603/Monitors/$(MonitorName)/Queries/$(QueryId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_query( MonitorName, QueryId, @@ -642,15 +623,14 @@ tag is required for this call. It returns an error if you use the TagResource re Monitor. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -677,17 +657,14 @@ Removes a tag from a resource. - `tag_keys`: Tag keys that you remove from a resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return internetmonitor( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -753,15 +730,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the CloudWatch User Guide. """ -function update_monitor(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) - return internetmonitor( +update_monitor(MonitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + internetmonitor( "PATCH", "/v20210603/Monitors/$(MonitorName)", Dict{String,Any}("ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_monitor( MonitorName, params::AbstractDict{String}; diff --git a/src/services/iot.jl b/src/services/iot.jl index f56b746ae..d7a45317e 100644 --- a/src/services/iot.jl +++ b/src/services/iot.jl @@ -20,16 +20,14 @@ certificates. Requires permission to access the AcceptCertificateTransfer action Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"setAsActive"`: Specifies whether the certificate is active. """ -function accept_certificate_transfer( +accept_certificate_transfer( certificateId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/accept-certificate-transfer/$(certificateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/accept-certificate-transfer/$(certificateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_certificate_transfer( certificateId, params::AbstractDict{String}; @@ -59,14 +57,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingArn"`: The ARN of the thing to be added to the billing group. - `"thingName"`: The name of the thing to be added to the billing group. """ -function add_thing_to_billing_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/billing-groups/addThingToBillingGroup"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +add_thing_to_billing_group(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/billing-groups/addThingToBillingGroup"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function add_thing_to_billing_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -97,14 +93,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingGroupName"`: The name of the group to which you are adding a thing. - `"thingName"`: The name of the thing to add to a group. """ -function add_thing_to_thing_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/thing-groups/addThingToThingGroup"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +add_thing_to_thing_group(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/thing-groups/addThingToThingGroup"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function add_thing_to_thing_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -141,17 +135,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is only supported by IoT Greengrass at this time. For more information, see Setting up IoT Greengrass core devices. """ -function associate_targets_with_job( +associate_targets_with_job( jobId, targets; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/jobs/$(jobId)/targets", + Dict{String,Any}("targets" => targets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/jobs/$(jobId)/targets", - Dict{String,Any}("targets" => targets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_targets_with_job( jobId, targets, @@ -180,17 +172,13 @@ Requires permission to access the AttachPolicy action. certificate. """ -function attach_policy( - policyName, target; aws_config::AbstractAWSConfig=current_aws_config() +attach_policy(policyName, target; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/target-policies/$(policyName)", + Dict{String,Any}("target" => target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/target-policies/$(policyName)", - Dict{String,Any}("target" => target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_policy( policyName, target, @@ -221,19 +209,17 @@ AttachPrincipalPolicy action. the CreateCertificate operation) or an Amazon Cognito ID. """ -function attach_principal_policy( +attach_principal_policy( policyName, x_amzn_iot_principal; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/principal-policies/$(policyName)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amzn-iot-principal" => x_amzn_iot_principal) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/principal-policies/$(policyName)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amzn-iot-principal" => x_amzn_iot_principal) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_principal_policy( policyName, x_amzn_iot_principal, @@ -272,19 +258,17 @@ permission to access the AttachSecurityProfile action. profile is attached. """ -function attach_security_profile( +attach_security_profile( securityProfileName, securityProfileTargetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "PUT", + "/security-profiles/$(securityProfileName)/targets", + Dict{String,Any}("securityProfileTargetArn" => securityProfileTargetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/security-profiles/$(securityProfileName)/targets", - Dict{String,Any}("securityProfileTargetArn" => securityProfileTargetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_security_profile( securityProfileName, securityProfileTargetArn, @@ -320,19 +304,15 @@ access the AttachThingPrincipal action. CreateCertificate operation) or an Amazon Cognito ID. """ -function attach_thing_principal( +attach_thing_principal( thingName, x_amzn_principal; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/things/$(thingName)/principals", + Dict{String,Any}("headers" => Dict{String,Any}("x-amzn-principal" => x_amzn_principal)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/things/$(thingName)/principals", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amzn-principal" => x_amzn_principal) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_thing_principal( thingName, x_amzn_principal, @@ -368,16 +348,14 @@ CancelAuditMitigationActionsTask action. - `task_id`: The unique identifier for the task that you want to cancel. """ -function cancel_audit_mitigation_actions_task( +cancel_audit_mitigation_actions_task( taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/audit/mitigationactions/tasks/$(taskId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/audit/mitigationactions/tasks/$(taskId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_audit_mitigation_actions_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -403,14 +381,12 @@ access the CancelAuditTask action. \"IN_PROGRESS\". """ -function cancel_audit_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/audit/tasks/$(taskId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_audit_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/audit/tasks/$(taskId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_audit_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -440,16 +416,14 @@ access the CancelCertificateTransfer action. contains the certificate ID.) """ -function cancel_certificate_transfer( +cancel_certificate_transfer( certificateId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/cancel-certificate-transfer/$(certificateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/cancel-certificate-transfer/$(certificateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_certificate_transfer( certificateId, params::AbstractDict{String}; @@ -475,16 +449,14 @@ CancelDetectMitigationActionsTask action. - `task_id`: The unique identifier of the task. """ -function cancel_detect_mitigation_actions_task( +cancel_detect_mitigation_actions_task( taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/detect/mitigationactions/tasks/$(taskId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/detect/mitigationactions/tasks/$(taskId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_detect_mitigation_actions_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -516,14 +488,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that each device executing a job which is canceled is able to recover to a valid state. - `"reasonCode"`: (Optional)A reason code string that explains why the job was canceled. """ -function cancel_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/jobs/$(jobId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/jobs/$(jobId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -566,16 +536,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs. """ -function cancel_job_execution( - jobId, thingName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +cancel_job_execution(jobId, thingName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "PUT", "/things/$(thingName)/jobs/$(jobId)/cancel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_job_execution( jobId, thingName, @@ -599,14 +566,12 @@ Clears the default authorizer. Requires permission to access the ClearDefaultAut action. """ -function clear_default_authorizer(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/default-authorizer"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +clear_default_authorizer(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/default-authorizer"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function clear_default_authorizer( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -634,16 +599,14 @@ ConfirmTopicRuleDestination action. confirmation URL. """ -function confirm_topic_rule_destination( +confirm_topic_rule_destination( confirmationToken; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/confirmdestination/$(confirmationToken)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/confirmdestination/$(confirmationToken)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function confirm_topic_rule_destination( confirmationToken, params::AbstractDict{String}; @@ -680,24 +643,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"suppressIndefinitely"`: Indicates whether a suppression should exist indefinitely or not. """ -function create_audit_suppression( +create_audit_suppression( checkName, clientRequestToken, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/audit/suppressions/create", + Dict{String,Any}( + "checkName" => checkName, + "clientRequestToken" => clientRequestToken, + "resourceIdentifier" => resourceIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/audit/suppressions/create", - Dict{String,Any}( - "checkName" => checkName, - "clientRequestToken" => clientRequestToken, - "resourceIdentifier" => resourceIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_audit_suppression( checkName, clientRequestToken, @@ -752,19 +713,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tokenSigningPublicKeys"`: The public keys used to verify the digital signature returned by your custom authentication service. """ -function create_authorizer( +create_authorizer( authorizerFunctionArn, authorizerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/authorizer/$(authorizerName)", + Dict{String,Any}("authorizerFunctionArn" => authorizerFunctionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/authorizer/$(authorizerName)", - Dict{String,Any}("authorizerFunctionArn" => authorizerFunctionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_authorizer( authorizerFunctionArn, authorizerName, @@ -800,16 +759,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"billingGroupProperties"`: The properties of the billing group. - `"tags"`: Metadata which can be used to manage the billing group. """ -function create_billing_group( - billingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +create_billing_group(billingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/billing-groups/$(billingGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_billing_group( billingGroupName, params::AbstractDict{String}; @@ -859,17 +815,15 @@ is: > forfiles /p my-csr-directory /c \"cmd /c aws iot create-certificate-fr Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"setAsActive"`: Specifies whether the certificate is active. """ -function create_certificate_from_csr( +create_certificate_from_csr( certificateSigningRequest; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/certificates", + Dict{String,Any}("certificateSigningRequest" => certificateSigningRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/certificates", - Dict{String,Any}("certificateSigningRequest" => certificateSigningRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_certificate_from_csr( certificateSigningRequest, params::AbstractDict{String}; @@ -917,24 +871,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request to make sure the request is idempotent. - `"tags"`: Metadata which can be used to manage the certificate provider. """ -function create_certificate_provider( +create_certificate_provider( accountDefaultForOperations, certificateProviderName, lambdaFunctionArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/certificate-providers/$(certificateProviderName)", + Dict{String,Any}( + "accountDefaultForOperations" => accountDefaultForOperations, + "lambdaFunctionArn" => lambdaFunctionArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/certificate-providers/$(certificateProviderName)", - Dict{String,Any}( - "accountDefaultForOperations" => accountDefaultForOperations, - "lambdaFunctionArn" => lambdaFunctionArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_certificate_provider( accountDefaultForOperations, certificateProviderName, @@ -987,22 +939,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys metric report. You can update the friendly name after you define it. - `"tags"`: Metadata that can be used to manage the custom metric. """ -function create_custom_metric( +create_custom_metric( clientRequestToken, metricName, metricType; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/custom-metric/$(metricName)", + Dict{String,Any}( + "clientRequestToken" => clientRequestToken, "metricType" => metricType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/custom-metric/$(metricName)", - Dict{String,Any}( - "clientRequestToken" => clientRequestToken, "metricType" => metricType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_metric( clientRequestToken, metricName, @@ -1052,25 +1002,23 @@ specified in the dimension. Requires permission to access the CreateDimension ac Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: Metadata that can be used to manage the dimension. """ -function create_dimension( +create_dimension( clientRequestToken, name, stringValues, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/dimensions/$(name)", + Dict{String,Any}( + "clientRequestToken" => clientRequestToken, + "stringValues" => stringValues, + "type" => type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/dimensions/$(name)", - Dict{String,Any}( - "clientRequestToken" => clientRequestToken, - "stringValues" => stringValues, - "type" => type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dimension( clientRequestToken, name, @@ -1128,16 +1076,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys prove domain name ownership. This certificate must be signed by a public certificate authority. This value is not required for Amazon Web Services-managed domains. """ -function create_domain_configuration( +create_domain_configuration( domainConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/domainConfigurations/$(domainConfigurationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/domainConfigurations/$(domainConfigurationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_domain_configuration( domainConfigurationName, params::AbstractDict{String}; @@ -1173,17 +1119,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Metadata which can be used to manage the dynamic thing group. - `"thingGroupProperties"`: The dynamic thing group properties. """ -function create_dynamic_thing_group( +create_dynamic_thing_group( queryString, thingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/dynamic-thing-groups/$(thingGroupName)", + Dict{String,Any}("queryString" => queryString); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/dynamic-thing-groups/$(thingGroupName)", - Dict{String,Any}("queryString" => queryString); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dynamic_thing_group( queryString, thingGroupName, @@ -1224,27 +1168,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"unit"`: Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null. """ -function create_fleet_metric( +create_fleet_metric( aggregationField, aggregationType, metricName, period, queryString; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "PUT", + "/fleet-metric/$(metricName)", + Dict{String,Any}( + "aggregationField" => aggregationField, + "aggregationType" => aggregationType, + "period" => period, + "queryString" => queryString, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/fleet-metric/$(metricName)", - Dict{String,Any}( - "aggregationField" => aggregationField, - "aggregationType" => aggregationType, - "period" => period, - "queryString" => queryString, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fleet_metric( aggregationField, aggregationType, @@ -1330,15 +1272,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the job execution status is not set to another terminal state before the time expires, it will be automatically set to TIMED_OUT. """ -function create_job(jobId, targets; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/jobs/$(jobId)", - Dict{String,Any}("targets" => targets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_job(jobId, targets; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/jobs/$(jobId)", + Dict{String,Any}("targets" => targets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_job( jobId, targets, @@ -1388,17 +1328,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Metadata that can be used to manage the job template. - `"timeoutConfig"`: """ -function create_job_template( +create_job_template( description, jobTemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/job-templates/$(jobTemplateId)", + Dict{String,Any}("description" => description); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/job-templates/$(jobTemplateId)", - Dict{String,Any}("description" => description); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_job_template( description, jobTemplateId, @@ -1430,14 +1368,12 @@ permission to access the CreateKeysAndCertificate action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"setAsActive"`: Specifies whether the certificate is active. """ -function create_keys_and_certificate(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/keys-and-certificate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_keys_and_certificate(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/keys-and-certificate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_keys_and_certificate( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1470,17 +1406,15 @@ action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: Metadata that can be used to manage the mitigation action. """ -function create_mitigation_action( +create_mitigation_action( actionName, actionParams, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/mitigationactions/actions/$(actionName)", + Dict{String,Any}("actionParams" => actionParams, "roleArn" => roleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/mitigationactions/actions/$(actionName)", - Dict{String,Any}("actionParams" => actionParams, "roleArn" => roleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_mitigation_action( actionName, actionParams, @@ -1540,17 +1474,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT. """ -function create_otaupdate( +create_otaupdate( files, otaUpdateId, roleArn, targets; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/otaUpdates/$(otaUpdateId)", + Dict{String,Any}("files" => files, "roleArn" => roleArn, "targets" => targets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/otaUpdates/$(otaUpdateId)", - Dict{String,Any}("files" => files, "roleArn" => roleArn, "targets" => targets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_otaupdate( files, otaUpdateId, @@ -1595,15 +1527,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys package's contents or purpose. - `"tags"`: Metadata that can be used to manage the package. """ -function create_package(packageName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/packages/$(packageName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_package(packageName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/packages/$(packageName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_package( packageName, params::AbstractDict{String}; @@ -1643,17 +1573,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys outline the package's contents or purpose. - `"tags"`: Metadata that can be used to manage the package version. """ -function create_package_version( +create_package_version( packageName, versionName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/packages/$(packageName)/versions/$(versionName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/packages/$(packageName)/versions/$(versionName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_package_version( packageName, versionName, @@ -1691,17 +1619,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys format: &&tags \"key1=value1&key2=value2...\" For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\" """ -function create_policy( +create_policy( policyDocument, policyName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/policies/$(policyName)", + Dict{String,Any}("policyDocument" => policyDocument); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/policies/$(policyName)", - Dict{String,Any}("policyDocument" => policyDocument); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_policy( policyDocument, policyName, @@ -1742,17 +1668,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached). """ -function create_policy_version( +create_policy_version( policyDocument, policyName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/policies/$(policyName)/version", + Dict{String,Any}("policyDocument" => policyDocument); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/policies/$(policyName)/version", - Dict{String,Any}("policyDocument" => policyDocument); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_policy_version( policyDocument, policyName, @@ -1781,16 +1705,14 @@ action. - `template_name`: The name of the provisioning template to use. """ -function create_provisioning_claim( +create_provisioning_claim( templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/provisioning-templates/$(templateName)/provisioning-claim"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/provisioning-templates/$(templateName)/provisioning-claim"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_provisioning_claim( templateName, params::AbstractDict{String}; @@ -1834,24 +1756,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys FLEET_PROVISIONING. For more information about provisioning template, see: Provisioning template. """ -function create_provisioning_template( +create_provisioning_template( provisioningRoleArn, templateBody, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/provisioning-templates", + Dict{String,Any}( + "provisioningRoleArn" => provisioningRoleArn, + "templateBody" => templateBody, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/provisioning-templates", - Dict{String,Any}( - "provisioningRoleArn" => provisioningRoleArn, - "templateBody" => templateBody, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_provisioning_template( provisioningRoleArn, templateBody, @@ -1893,17 +1813,15 @@ CreateProvisioningTemplateVersion action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"setAsDefault"`: Sets a fleet provision template version as the default version. """ -function create_provisioning_template_version( +create_provisioning_template_version( templateBody, templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/provisioning-templates/$(templateName)/versions", + Dict{String,Any}("templateBody" => templateBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/provisioning-templates/$(templateName)/versions", - Dict{String,Any}("templateBody" => templateBody); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_provisioning_template_version( templateBody, templateName, @@ -1942,17 +1860,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use format: &&tags \"key1=value1&key2=value2...\" For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\" """ -function create_role_alias( - roleAlias, roleArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +create_role_alias(roleAlias, roleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/role-aliases/$(roleAlias)", Dict{String,Any}("roleArn" => roleArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_role_alias( roleAlias, roleArn, @@ -1995,20 +1910,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to WEEKLY or BIWEEKLY. - `"tags"`: Metadata that can be used to manage the scheduled audit. """ -function create_scheduled_audit( +create_scheduled_audit( frequency, scheduledAuditName, targetCheckNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/audit/scheduledaudits/$(scheduledAuditName)", + Dict{String,Any}("frequency" => frequency, "targetCheckNames" => targetCheckNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/audit/scheduledaudits/$(scheduledAuditName)", - Dict{String,Any}("frequency" => frequency, "targetCheckNames" => targetCheckNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_scheduled_audit( frequency, scheduledAuditName, @@ -2062,16 +1975,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"securityProfileDescription"`: A description of the security profile. - `"tags"`: Metadata that can be used to manage the security profile. """ -function create_security_profile( +create_security_profile( securityProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/security-profiles/$(securityProfileName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/security-profiles/$(securityProfileName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_security_profile( securityProfileName, params::AbstractDict{String}; @@ -2105,17 +2016,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the stream. - `"tags"`: Metadata which can be used to manage streams. """ -function create_stream( +create_stream( files, roleArn, streamId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/streams/$(streamId)", + Dict{String,Any}("files" => files, "roleArn" => roleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/streams/$(streamId)", - Dict{String,Any}("files" => files, "roleArn" => roleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_stream( files, roleArn, @@ -2158,14 +2067,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"billingGroupName"`: The name of the billing group the thing will be added to. - `"thingTypeName"`: The name of the thing type associated with the new thing. """ -function create_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/things/$(thingName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/things/$(thingName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_thing( thingName, params::AbstractDict{String}; @@ -2198,16 +2105,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Metadata which can be used to manage the thing group. - `"thingGroupProperties"`: The thing group properties. """ -function create_thing_group( - thingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +create_thing_group(thingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/thing-groups/$(thingGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_thing_group( thingGroupName, params::AbstractDict{String}; @@ -2238,16 +2142,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains information about the new thing type including a description, and a list of searchable thing attribute names. """ -function create_thing_type( - thingTypeName; aws_config::AbstractAWSConfig=current_aws_config() +create_thing_type(thingTypeName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/thing-types/$(thingTypeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/thing-types/$(thingTypeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_thing_type( thingTypeName, params::AbstractDict{String}; @@ -2281,17 +2181,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use format: --tags \"key1=value1&key2=value2...\" For the cli-input-json file use format: \"tags\": \"key1=value1&key2=value2...\" """ -function create_topic_rule( +create_topic_rule( ruleName, topicRulePayload; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/rules/$(ruleName)", + Dict{String,Any}("topicRulePayload" => topicRulePayload); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/rules/$(ruleName)", - Dict{String,Any}("topicRulePayload" => topicRulePayload); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_topic_rule( ruleName, topicRulePayload, @@ -2322,17 +2220,15 @@ permission to access the CreateTopicRuleDestination action. - `destination_configuration`: The topic rule destination configuration. """ -function create_topic_rule_destination( +create_topic_rule_destination( destinationConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/destinations", + Dict{String,Any}("destinationConfiguration" => destinationConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/destinations", - Dict{String,Any}("destinationConfiguration" => destinationConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_topic_rule_destination( destinationConfiguration, params::AbstractDict{String}; @@ -2365,16 +2261,13 @@ Requires permission to access the DeleteAccountAuditConfiguration action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"deleteScheduledAudits"`: If true, all scheduled audits are deleted. """ -function delete_account_audit_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +delete_account_audit_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "DELETE", "/audit/configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_account_audit_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2399,19 +2292,15 @@ DeleteAuditSuppression action. - `resource_identifier`: """ -function delete_audit_suppression( +delete_audit_suppression( checkName, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/audit/suppressions/delete", + Dict{String,Any}("checkName" => checkName, "resourceIdentifier" => resourceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/audit/suppressions/delete", - Dict{String,Any}( - "checkName" => checkName, "resourceIdentifier" => resourceIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_audit_suppression( checkName, resourceIdentifier, @@ -2445,16 +2334,12 @@ Deletes an authorizer. Requires permission to access the DeleteAuthorizer action - `authorizer_name`: The name of the authorizer to delete. """ -function delete_authorizer( - authorizerName; aws_config::AbstractAWSConfig=current_aws_config() +delete_authorizer(authorizerName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/authorizer/$(authorizerName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/authorizer/$(authorizerName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_authorizer( authorizerName, params::AbstractDict{String}; @@ -2484,16 +2369,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys billing group does not match the expected version specified in the request, the DeleteBillingGroup request is rejected with a VersionConflictException. """ -function delete_billing_group( - billingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +delete_billing_group(billingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "DELETE", "/billing-groups/$(billingGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_billing_group( billingGroupName, params::AbstractDict{String}; @@ -2520,16 +2402,13 @@ action. certificate ARN contains the certificate ID.) """ -function delete_cacertificate( - caCertificateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +delete_cacertificate(caCertificateId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "DELETE", "/cacertificate/$(caCertificateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cacertificate( caCertificateId, params::AbstractDict{String}; @@ -2563,16 +2442,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"forceDelete"`: Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing. """ -function delete_certificate( - certificateId; aws_config::AbstractAWSConfig=current_aws_config() +delete_certificate(certificateId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/certificates/$(certificateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/certificates/$(certificateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_certificate( certificateId, params::AbstractDict{String}; @@ -2600,16 +2475,14 @@ certificate signing request (CSR). - `certificate_provider_name`: The name of the certificate provider. """ -function delete_certificate_provider( +delete_certificate_provider( certificateProviderName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/certificate-providers/$(certificateProviderName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/certificate-providers/$(certificateProviderName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_certificate_provider( certificateProviderName, params::AbstractDict{String}; @@ -2638,16 +2511,12 @@ metricName set to your custom metric name. - `metric_name`: The name of the custom metric. """ -function delete_custom_metric( - metricName; aws_config::AbstractAWSConfig=current_aws_config() +delete_custom_metric(metricName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/custom-metric/$(metricName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/custom-metric/$(metricName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_metric( metricName, params::AbstractDict{String}; @@ -2673,14 +2542,12 @@ to access the DeleteDimension action. - `name`: The unique identifier for the dimension that you want to delete. """ -function delete_dimension(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/dimensions/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_dimension(name; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/dimensions/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_dimension( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2704,16 +2571,14 @@ DeleteDomainConfiguration action. - `domain_configuration_name`: The name of the domain configuration to be deleted. """ -function delete_domain_configuration( +delete_domain_configuration( domainConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/domainConfigurations/$(domainConfigurationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/domainConfigurations/$(domainConfigurationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_domain_configuration( domainConfigurationName, params::AbstractDict{String}; @@ -2742,16 +2607,14 @@ action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"expectedVersion"`: The expected version of the dynamic thing group to delete. """ -function delete_dynamic_thing_group( +delete_dynamic_thing_group( thingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/dynamic-thing-groups/$(thingGroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/dynamic-thing-groups/$(thingGroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dynamic_thing_group( thingGroupName, params::AbstractDict{String}; @@ -2781,14 +2644,12 @@ the DeleteFleetMetric action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"expectedVersion"`: The expected version of the fleet metric to delete. """ -function delete_fleet_metric(metricName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/fleet-metric/$(metricName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fleet_metric(metricName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/fleet-metric/$(metricName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fleet_metric( metricName, params::AbstractDict{String}; @@ -2834,11 +2695,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is only supported by IoT Greengrass at this time. For more information, see Setting up IoT Greengrass core devices. """ -function delete_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("DELETE", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2880,16 +2738,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is only supported by IoT Greengrass at this time. For more information, see Setting up IoT Greengrass core devices. """ -function delete_job_execution( +delete_job_execution( executionNumber, jobId, thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/things/$(thingName)/jobs/$(jobId)/executionNumber/$(executionNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/things/$(thingName)/jobs/$(jobId)/executionNumber/$(executionNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_job_execution( executionNumber, jobId, @@ -2916,16 +2772,13 @@ Deletes the specified job template. - `job_template_id`: The unique identifier of the job template to delete. """ -function delete_job_template( - jobTemplateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +delete_job_template(jobTemplateId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "DELETE", "/job-templates/$(jobTemplateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_job_template( jobTemplateId, params::AbstractDict{String}; @@ -2951,16 +2804,13 @@ permission to access the DeleteMitigationAction action. - `action_name`: The name of the mitigation action that you want to delete. """ -function delete_mitigation_action( - actionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +delete_mitigation_action(actionName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "DELETE", "/mitigationactions/actions/$(actionName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_mitigation_action( actionName, params::AbstractDict{String}; @@ -2993,14 +2843,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys even if it is \"IN_PROGRESS\". Otherwise, if the job is not in a terminal state (\"COMPLETED\" or \"CANCELED\") an exception will occur. The default is false. """ -function delete_otaupdate(otaUpdateId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/otaUpdates/$(otaUpdateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_otaupdate(otaUpdateId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/otaUpdates/$(otaUpdateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_otaupdate( otaUpdateId, params::AbstractDict{String}; @@ -3032,15 +2880,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_package(packageName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/packages/$(packageName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_package(packageName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/packages/$(packageName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_package( packageName, params::AbstractDict{String}; @@ -3075,17 +2921,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_package_version( +delete_package_version( packageName, versionName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/packages/$(packageName)/versions/$(versionName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/packages/$(packageName)/versions/$(versionName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_package_version( packageName, versionName, @@ -3120,14 +2964,12 @@ the DeletePolicy action. - `policy_name`: The name of the policy to delete. """ -function delete_policy(policyName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/policies/$(policyName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_policy(policyName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/policies/$(policyName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_policy( policyName, params::AbstractDict{String}; @@ -3156,16 +2998,14 @@ ListPolicyVersions. Requires permission to access the DeletePolicyVersion action - `policy_version_id`: The policy version ID. """ -function delete_policy_version( +delete_policy_version( policyName, policyVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/policies/$(policyName)/version/$(policyVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/policies/$(policyName)/version/$(policyVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_policy_version( policyName, policyVersionId, @@ -3192,16 +3032,14 @@ DeleteProvisioningTemplate action. - `template_name`: The name of the fleet provision template to delete. """ -function delete_provisioning_template( +delete_provisioning_template( templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/provisioning-templates/$(templateName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/provisioning-templates/$(templateName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_provisioning_template( templateName, params::AbstractDict{String}; @@ -3228,16 +3066,14 @@ DeleteProvisioningTemplateVersion action. - `version_id`: The provisioning template version ID to delete. """ -function delete_provisioning_template_version( +delete_provisioning_template_version( templateName, versionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/provisioning-templates/$(templateName)/versions/$(versionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/provisioning-templates/$(templateName)/versions/$(versionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_provisioning_template_version( templateName, versionId, @@ -3261,14 +3097,12 @@ Deletes a CA certificate registration code. Requires permission to access the DeleteRegistrationCode action. """ -function delete_registration_code(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/registrationcode"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_registration_code(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/registrationcode"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_registration_code( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3291,14 +3125,12 @@ Deletes a role alias Requires permission to access the DeleteRoleAlias action. - `role_alias`: The role alias to delete. """ -function delete_role_alias(roleAlias; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/role-aliases/$(roleAlias)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_role_alias(roleAlias; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/role-aliases/$(roleAlias)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_role_alias( roleAlias, params::AbstractDict{String}; @@ -3323,16 +3155,14 @@ Deletes a scheduled audit. Requires permission to access the DeleteScheduledAudi - `scheduled_audit_name`: The name of the scheduled audit you want to delete. """ -function delete_scheduled_audit( +delete_scheduled_audit( scheduledAuditName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/audit/scheduledaudits/$(scheduledAuditName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/audit/scheduledaudits/$(scheduledAuditName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_scheduled_audit( scheduledAuditName, params::AbstractDict{String}; @@ -3363,16 +3193,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys generated whenever the security profile is updated. If you specify a value that is different from the actual version, a VersionConflictException is thrown. """ -function delete_security_profile( +delete_security_profile( securityProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/security-profiles/$(securityProfileName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/security-profiles/$(securityProfileName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_security_profile( securityProfileName, params::AbstractDict{String}; @@ -3397,14 +3225,12 @@ Deletes a stream. Requires permission to access the DeleteStream action. - `stream_id`: The stream ID. """ -function delete_stream(streamId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/streams/$(streamId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_stream(streamId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/streams/$(streamId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_stream( streamId, params::AbstractDict{String}; @@ -3436,14 +3262,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version of the record in the registry does not match the expected version specified in the request, the DeleteThing request is rejected with a VersionConflictException. """ -function delete_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/things/$(thingName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/things/$(thingName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_thing( thingName, params::AbstractDict{String}; @@ -3471,16 +3295,13 @@ Deletes a thing group. Requires permission to access the DeleteThingGroup action Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"expectedVersion"`: The expected version of the thing group to delete. """ -function delete_thing_group( - thingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +delete_thing_group(thingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "DELETE", "/thing-groups/$(thingGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_thing_group( thingGroupName, params::AbstractDict{String}; @@ -3509,16 +3330,12 @@ type. Requires permission to access the DeleteThingType action. - `thing_type_name`: The name of the thing type. """ -function delete_thing_type( - thingTypeName; aws_config::AbstractAWSConfig=current_aws_config() +delete_thing_type(thingTypeName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/thing-types/$(thingTypeName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/thing-types/$(thingTypeName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_thing_type( thingTypeName, params::AbstractDict{String}; @@ -3543,14 +3360,12 @@ Deletes the rule. Requires permission to access the DeleteTopicRule action. - `rule_name`: The name of the rule. """ -function delete_topic_rule(ruleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "DELETE", - "/rules/$(ruleName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_topic_rule(ruleName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "DELETE", + "/rules/$(ruleName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_topic_rule( ruleName, params::AbstractDict{String}; @@ -3576,16 +3391,13 @@ DeleteTopicRuleDestination action. - `arn`: The ARN of the topic rule destination to delete. """ -function delete_topic_rule_destination( - arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +delete_topic_rule_destination(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "DELETE", "/destinations/$(arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_topic_rule_destination( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3610,17 +3422,15 @@ Deletes a logging level. Requires permission to access the DeleteV2LoggingLevel THING_Group. """ -function delete_v2_logging_level( +delete_v2_logging_level( targetName, targetType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/v2LoggingLevel", + Dict{String,Any}("targetName" => targetName, "targetType" => targetType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/v2LoggingLevel", - Dict{String,Any}("targetName" => targetName, "targetType" => targetType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_v2_logging_level( targetName, targetType, @@ -3657,16 +3467,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"undoDeprecate"`: Whether to undeprecate a deprecated thing type. If true, the thing type will not be deprecated anymore and you can associate it with things. """ -function deprecate_thing_type( - thingTypeName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +deprecate_thing_type(thingTypeName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/thing-types/$(thingTypeName)/deprecate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deprecate_thing_type( thingTypeName, params::AbstractDict{String}; @@ -3690,16 +3497,13 @@ include how audit notifications are sent and which audit checks are enabled or d Requires permission to access the DescribeAccountAuditConfiguration action. """ -function describe_account_audit_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +describe_account_audit_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/audit/configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_account_audit_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3725,16 +3529,12 @@ the finding. Requires permission to access the DescribeAuditFinding action. to apply mitigation actions to the finding. """ -function describe_audit_finding( - findingId; aws_config::AbstractAWSConfig=current_aws_config() +describe_audit_finding(findingId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/audit/findings/$(findingId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/audit/findings/$(findingId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_audit_finding( findingId, params::AbstractDict{String}; @@ -3761,16 +3561,14 @@ which they're being applied, the task status, and aggregated task statistics. - `task_id`: The unique identifier for the audit mitigation task. """ -function describe_audit_mitigation_actions_task( +describe_audit_mitigation_actions_task( taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/audit/mitigationactions/tasks/$(taskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/audit/mitigationactions/tasks/$(taskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_audit_mitigation_actions_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3794,19 +3592,15 @@ end - `resource_identifier`: """ -function describe_audit_suppression( +describe_audit_suppression( checkName, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/audit/suppressions/describe", + Dict{String,Any}("checkName" => checkName, "resourceIdentifier" => resourceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/audit/suppressions/describe", - Dict{String,Any}( - "checkName" => checkName, "resourceIdentifier" => resourceIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_audit_suppression( checkName, resourceIdentifier, @@ -3841,14 +3635,12 @@ DescribeAuditTask action. - `task_id`: The ID of the audit whose information you want to get. """ -function describe_audit_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/audit/tasks/$(taskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_audit_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/audit/tasks/$(taskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_audit_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3871,16 +3663,13 @@ Describes an authorizer. Requires permission to access the DescribeAuthorizer ac - `authorizer_name`: The name of the authorizer to describe. """ -function describe_authorizer( - authorizerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +describe_authorizer(authorizerName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/authorizer/$(authorizerName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_authorizer( authorizerName, params::AbstractDict{String}; @@ -3906,16 +3695,14 @@ DescribeBillingGroup action. - `billing_group_name`: The name of the billing group. """ -function describe_billing_group( +describe_billing_group( billingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/billing-groups/$(billingGroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/billing-groups/$(billingGroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_billing_group( billingGroupName, params::AbstractDict{String}; @@ -3941,16 +3728,14 @@ DescribeCACertificate action. - `ca_certificate_id`: The CA certificate identifier. """ -function describe_cacertificate( +describe_cacertificate( caCertificateId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/cacertificate/$(caCertificateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/cacertificate/$(caCertificateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cacertificate( caCertificateId, params::AbstractDict{String}; @@ -3977,16 +3762,13 @@ DescribeCertificate action. contains the certificate ID.) """ -function describe_certificate( - certificateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +describe_certificate(certificateId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/certificates/$(certificateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_certificate( certificateId, params::AbstractDict{String}; @@ -4012,16 +3794,14 @@ DescribeCertificateProvider action. - `certificate_provider_name`: The name of the certificate provider. """ -function describe_certificate_provider( +describe_certificate_provider( certificateProviderName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/certificate-providers/$(certificateProviderName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/certificate-providers/$(certificateProviderName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_certificate_provider( certificateProviderName, params::AbstractDict{String}; @@ -4047,16 +3827,13 @@ access the DescribeCustomMetric action. - `metric_name`: The name of the custom metric. """ -function describe_custom_metric( - metricName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +describe_custom_metric(metricName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/custom-metric/$(metricName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_custom_metric( metricName, params::AbstractDict{String}; @@ -4079,11 +3856,9 @@ Describes the default authorizer. Requires permission to access the DescribeDefaultAuthorizer action. """ -function describe_default_authorizer(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/default-authorizer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_default_authorizer(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", "/default-authorizer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_default_authorizer( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4107,16 +3882,14 @@ to access the DescribeDetectMitigationActionsTask action. - `task_id`: The unique identifier of the task. """ -function describe_detect_mitigation_actions_task( +describe_detect_mitigation_actions_task( taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/detect/mitigationactions/tasks/$(taskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/detect/mitigationactions/tasks/$(taskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_detect_mitigation_actions_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4140,11 +3913,9 @@ Requires permission to access the DescribeDimension action. - `name`: The unique identifier for the dimension. """ -function describe_dimension(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/dimensions/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dimension(name; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", "/dimensions/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dimension( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4168,16 +3939,14 @@ DescribeDomainConfiguration action. - `domain_configuration_name`: The name of the domain configuration. """ -function describe_domain_configuration( +describe_domain_configuration( domainConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/domainConfigurations/$(domainConfigurationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/domainConfigurations/$(domainConfigurationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_domain_configuration( domainConfigurationName, params::AbstractDict{String}; @@ -4211,9 +3980,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys widespread distrust of Symantec certificate authorities. ATS Signed Certificates are more secure and are trusted by most popular browsers. """ -function describe_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/endpoint"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/endpoint"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_endpoint( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4230,14 +3998,12 @@ Describes event configurations. Requires permission to access the DescribeEventConfigurations action. """ -function describe_event_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/event-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_event_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/event-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_event_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4261,16 +4027,12 @@ DescribeFleetMetric action. - `metric_name`: The name of the fleet metric to describe. """ -function describe_fleet_metric( - metricName; aws_config::AbstractAWSConfig=current_aws_config() +describe_fleet_metric(metricName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/fleet-metric/$(metricName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/fleet-metric/$(metricName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fleet_metric( metricName, params::AbstractDict{String}; @@ -4295,14 +4057,12 @@ Describes a search index. Requires permission to access the DescribeIndex action - `index_name`: The index name. """ -function describe_index(indexName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/indices/$(indexName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_index(indexName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/indices/$(indexName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_index( indexName, params::AbstractDict{String}; @@ -4327,11 +4087,8 @@ Describes a job. Requires permission to access the DescribeJob action. - `job_id`: The unique identifier you assigned to this job when it was created. """ -function describe_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4359,16 +4116,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"executionNumber"`: A string (consisting of the digits \"0\" through \"9\" which is used to specify a particular job execution on a particular device. """ -function describe_job_execution( +describe_job_execution( jobId, thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/things/$(thingName)/jobs/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/things/$(thingName)/jobs/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_job_execution( jobId, thingName, @@ -4394,16 +4149,13 @@ Returns information about a job template. - `job_template_id`: The unique identifier of the job template. """ -function describe_job_template( - jobTemplateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +describe_job_template(jobTemplateId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/job-templates/$(jobTemplateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_job_template( jobTemplateId, params::AbstractDict{String}; @@ -4432,16 +4184,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateVersion"`: An optional parameter to specify version of a managed template. If not specified, the pre-defined default version is returned. """ -function describe_managed_job_template( +describe_managed_job_template( templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/managed-job-templates/$(templateName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/managed-job-templates/$(templateName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_managed_job_template( templateName, params::AbstractDict{String}; @@ -4467,16 +4217,13 @@ DescribeMitigationAction action. - `action_name`: The friendly name that uniquely identifies the mitigation action. """ -function describe_mitigation_action( - actionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +describe_mitigation_action(actionName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/mitigationactions/actions/$(actionName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_mitigation_action( actionName, params::AbstractDict{String}; @@ -4502,16 +4249,14 @@ DescribeProvisioningTemplate action. - `template_name`: The name of the provisioning template. """ -function describe_provisioning_template( +describe_provisioning_template( templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/provisioning-templates/$(templateName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/provisioning-templates/$(templateName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_provisioning_template( templateName, params::AbstractDict{String}; @@ -4538,16 +4283,14 @@ the DescribeProvisioningTemplateVersion action. - `version_id`: The provisioning template version ID. """ -function describe_provisioning_template_version( +describe_provisioning_template_version( templateName, versionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/provisioning-templates/$(templateName)/versions/$(versionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/provisioning-templates/$(templateName)/versions/$(versionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_provisioning_template_version( templateName, versionId, @@ -4573,14 +4316,12 @@ Describes a role alias. Requires permission to access the DescribeRoleAlias acti - `role_alias`: The role alias to describe. """ -function describe_role_alias(roleAlias; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/role-aliases/$(roleAlias)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_role_alias(roleAlias; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/role-aliases/$(roleAlias)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_role_alias( roleAlias, params::AbstractDict{String}; @@ -4606,16 +4347,14 @@ DescribeScheduledAudit action. - `scheduled_audit_name`: The name of the scheduled audit whose information you want to get. """ -function describe_scheduled_audit( +describe_scheduled_audit( scheduledAuditName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/audit/scheduledaudits/$(scheduledAuditName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/audit/scheduledaudits/$(scheduledAuditName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scheduled_audit( scheduledAuditName, params::AbstractDict{String}; @@ -4642,16 +4381,14 @@ the DescribeSecurityProfile action. get. """ -function describe_security_profile( +describe_security_profile( securityProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/security-profiles/$(securityProfileName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/security-profiles/$(securityProfileName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_security_profile( securityProfileName, params::AbstractDict{String}; @@ -4676,14 +4413,12 @@ Gets information about a stream. Requires permission to access the DescribeStrea - `stream_id`: The stream ID. """ -function describe_stream(streamId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/streams/$(streamId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_stream(streamId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/streams/$(streamId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_stream( streamId, params::AbstractDict{String}; @@ -4709,14 +4444,12 @@ action. - `thing_name`: The name of the thing. """ -function describe_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/things/$(thingName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/things/$(thingName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_thing( thingName, params::AbstractDict{String}; @@ -4741,16 +4474,13 @@ Describe a thing group. Requires permission to access the DescribeThingGroup act - `thing_group_name`: The name of the thing group. """ -function describe_thing_group( - thingGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +describe_thing_group(thingGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/thing-groups/$(thingGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_thing_group( thingGroupName, params::AbstractDict{String}; @@ -4776,16 +4506,14 @@ DescribeThingRegistrationTask action. - `task_id`: The task ID. """ -function describe_thing_registration_task( +describe_thing_registration_task( taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/thing-registration-tasks/$(taskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/thing-registration-tasks/$(taskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_thing_registration_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4809,16 +4537,13 @@ DescribeThingType action. - `thing_type_name`: The name of the thing type. """ -function describe_thing_type( - thingTypeName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +describe_thing_type(thingTypeName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/thing-types/$(thingTypeName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_thing_type( thingTypeName, params::AbstractDict{String}; @@ -4846,17 +4571,13 @@ to be deleted. Requires permission to access the DetachPolicy action. - `target`: The target from which the policy will be detached. """ -function detach_policy( - policyName, target; aws_config::AbstractAWSConfig=current_aws_config() +detach_policy(policyName, target; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/target-policies/$(policyName)", + Dict{String,Any}("target" => target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/target-policies/$(policyName)", - Dict{String,Any}("target" => target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_policy( policyName, target, @@ -4887,19 +4608,17 @@ Use DetachPolicy instead. Requires permission to access the DetachPrincipalPolic (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id). """ -function detach_principal_policy( +detach_principal_policy( policyName, x_amzn_iot_principal; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/principal-policies/$(policyName)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amzn-iot-principal" => x_amzn_iot_principal) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/principal-policies/$(policyName)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amzn-iot-principal" => x_amzn_iot_principal) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_principal_policy( policyName, x_amzn_iot_principal, @@ -4937,19 +4656,17 @@ Requires permission to access the DetachSecurityProfile action. is detached. """ -function detach_security_profile( +detach_security_profile( securityProfileName, securityProfileTargetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "DELETE", + "/security-profiles/$(securityProfileName)/targets", + Dict{String,Any}("securityProfileTargetArn" => securityProfileTargetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/security-profiles/$(securityProfileName)/targets", - Dict{String,Any}("securityProfileTargetArn" => securityProfileTargetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_security_profile( securityProfileName, securityProfileTargetArn, @@ -4987,19 +4704,15 @@ propagate. Requires permission to access the DetachThingPrincipal action. the Amazon Cognito identity. """ -function detach_thing_principal( +detach_thing_principal( thingName, x_amzn_principal; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "DELETE", + "/things/$(thingName)/principals", + Dict{String,Any}("headers" => Dict{String,Any}("x-amzn-principal" => x_amzn_principal)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "DELETE", - "/things/$(thingName)/principals", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amzn-principal" => x_amzn_principal) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_thing_principal( thingName, x_amzn_principal, @@ -5033,14 +4746,12 @@ Disables the rule. Requires permission to access the DisableTopicRule action. - `rule_name`: The name of the rule to disable. """ -function disable_topic_rule(ruleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/rules/$(ruleName)/disable"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_topic_rule(ruleName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/rules/$(ruleName)/disable"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_topic_rule( ruleName, params::AbstractDict{String}; @@ -5065,14 +4776,12 @@ Enables the rule. Requires permission to access the EnableTopicRule action. - `rule_name`: The name of the topic rule to enable. """ -function enable_topic_rule(ruleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/rules/$(ruleName)/enable"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_topic_rule(ruleName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/rules/$(ruleName)/enable"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_topic_rule( ruleName, params::AbstractDict{String}; @@ -5100,16 +4809,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. - `"securityProfileName"`: The name of the security profile. """ -function get_behavior_model_training_summaries(; +get_behavior_model_training_summaries(; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/behavior-model-training/summaries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/behavior-model-training/summaries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_behavior_model_training_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5140,24 +4847,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"indexName"`: The name of the index to search. - `"queryVersion"`: The version of the query. """ -function get_buckets_aggregation( +get_buckets_aggregation( aggregationField, bucketsAggregationType, queryString; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/indices/buckets", + Dict{String,Any}( + "aggregationField" => aggregationField, + "bucketsAggregationType" => bucketsAggregationType, + "queryString" => queryString, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/indices/buckets", - Dict{String,Any}( - "aggregationField" => aggregationField, - "bucketsAggregationType" => bucketsAggregationType, - "queryString" => queryString, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_buckets_aggregation( aggregationField, bucketsAggregationType, @@ -5200,15 +4905,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"indexName"`: The name of the index to search. - `"queryVersion"`: The query version. """ -function get_cardinality(queryString; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/indices/cardinality", - Dict{String,Any}("queryString" => queryString); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_cardinality(queryString; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/indices/cardinality", + Dict{String,Any}("queryString" => queryString); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_cardinality( queryString, params::AbstractDict{String}; @@ -5241,14 +4944,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id). - `"thingName"`: The thing name. """ -function get_effective_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/effective-policies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_effective_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/effective-policies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_effective_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5269,11 +4970,8 @@ Gets the indexing configuration. Requires permission to access the GetIndexingCo action. """ -function get_indexing_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/indexing/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_indexing_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/indexing/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_indexing_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5296,14 +4994,12 @@ Gets a job document. Requires permission to access the GetJobDocument action. - `job_id`: The unique identifier you assigned to this job when it was created. """ -function get_job_document(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/jobs/$(jobId)/job-document"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job_document(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/jobs/$(jobId)/job-document"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job_document( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5322,13 +5018,10 @@ end Gets the logging options. NOTE: use of this command is not recommended. Use GetV2LoggingOptions instead. Requires permission to access the GetLoggingOptions action. - -""" -function get_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/loggingOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end + +""" +get_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/loggingOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_logging_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5351,14 +5044,12 @@ Gets an OTA update. Requires permission to access the GetOTAUpdate action. - `ota_update_id`: The OTA update ID. """ -function get_otaupdate(otaUpdateId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/otaUpdates/$(otaUpdateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_otaupdate(otaUpdateId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/otaUpdates/$(otaUpdateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_otaupdate( otaUpdateId, params::AbstractDict{String}; @@ -5384,14 +5075,12 @@ GetPackage action. - `package_name`: The name of the target software package. """ -function get_package(packageName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/packages/$(packageName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_package(packageName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/packages/$(packageName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_package( packageName, params::AbstractDict{String}; @@ -5414,14 +5103,12 @@ Gets information about the specified software package's configuration. Requires to access the GetPackageConfiguration action. """ -function get_package_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/package-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_package_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/package-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_package_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5446,16 +5133,14 @@ GetPackageVersion action. - `version_name`: The name of the target package version. """ -function get_package_version( +get_package_version( packageName, versionName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/packages/$(packageName)/versions/$(versionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/packages/$(packageName)/versions/$(versionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_package_version( packageName, versionName, @@ -5495,15 +5180,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"percents"`: The percentile groups returned. - `"queryVersion"`: The query version. """ -function get_percentiles(queryString; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/indices/percentiles", - Dict{String,Any}("queryString" => queryString); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_percentiles(queryString; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/indices/percentiles", + Dict{String,Any}("queryString" => queryString); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_percentiles( queryString, params::AbstractDict{String}; @@ -5531,14 +5214,12 @@ version. Requires permission to access the GetPolicy action. - `policy_name`: The name of the policy. """ -function get_policy(policyName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/policies/$(policyName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_policy(policyName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/policies/$(policyName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_policy( policyName, params::AbstractDict{String}; @@ -5565,16 +5246,14 @@ GetPolicyVersion action. - `policy_version_id`: The policy version ID. """ -function get_policy_version( +get_policy_version( policyName, policyVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/policies/$(policyName)/version/$(policyVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/policies/$(policyName)/version/$(policyVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_policy_version( policyName, policyVersionId, @@ -5600,11 +5279,8 @@ been deleted. If you already have a registration code, this API call will return registration code. Requires permission to access the GetRegistrationCode action. """ -function get_registration_code(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/registrationcode"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_registration_code(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/registrationcode"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_registration_code( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5636,15 +5312,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"indexName"`: The name of the index to search. The default value is AWS_Things. - `"queryVersion"`: The version of the query used to search. """ -function get_statistics(queryString; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/indices/statistics", - Dict{String,Any}("queryString" => queryString); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_statistics(queryString; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/indices/statistics", + Dict{String,Any}("queryString" => queryString); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_statistics( queryString, params::AbstractDict{String}; @@ -5671,11 +5345,8 @@ Gets information about the rule. Requires permission to access the GetTopicRule - `rule_name`: The name of the rule. """ -function get_topic_rule(ruleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/rules/$(ruleName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_topic_rule(ruleName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/rules/$(ruleName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_topic_rule( ruleName, params::AbstractDict{String}; @@ -5701,14 +5372,12 @@ GetTopicRuleDestination action. - `arn`: The ARN of the topic rule destination. """ -function get_topic_rule_destination(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/destinations/$(arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_topic_rule_destination(arn; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/destinations/$(arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_topic_rule_destination( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5729,11 +5398,8 @@ Gets the fine grained logging options. Requires permission to access the GetV2LoggingOptions action. """ -function get_v2_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/v2LoggingOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_v2_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/v2LoggingOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_v2_logging_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5764,11 +5430,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingName"`: The name of the thing whose active violations are listed. - `"verificationState"`: The verification state of the violation (detect alarm). """ -function list_active_violations(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/active-violations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_active_violations(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/active-violations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_active_violations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5799,14 +5462,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pageSize"`: The maximum number of results to be returned per request. - `"recursive"`: When true, recursively list attached policies. """ -function list_attached_policies(target; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/attached-policies/$(target)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_attached_policies(target; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/attached-policies/$(target)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_attached_policies( target, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5843,11 +5504,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"taskId"`: A filter to limit results to the audit with the specified ID. You must specify either the taskId or the startTime and endTime, but not both. """ -function list_audit_findings(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", "/audit/findings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_audit_findings(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("POST", "/audit/findings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_audit_findings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5879,17 +5537,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. The default is 25. - `"nextToken"`: The token for the next set of results. """ -function list_audit_mitigation_actions_executions( +list_audit_mitigation_actions_executions( findingId, taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/audit/mitigationactions/executions", + Dict{String,Any}("findingId" => findingId, "taskId" => taskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/audit/mitigationactions/executions", - Dict{String,Any}("findingId" => findingId, "taskId" => taskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_audit_mitigation_actions_executions( findingId, taskId, @@ -5935,17 +5591,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"taskStatus"`: Specify this filter to limit results to tasks that are in a specific state. """ -function list_audit_mitigation_actions_tasks( +list_audit_mitigation_actions_tasks( endTime, startTime; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/audit/mitigationactions/tasks", + Dict{String,Any}("endTime" => endTime, "startTime" => startTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/audit/mitigationactions/tasks", - Dict{String,Any}("endTime" => endTime, "startTime" => startTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_audit_mitigation_actions_tasks( endTime, startTime, @@ -5983,14 +5637,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. - `"resourceIdentifier"`: """ -function list_audit_suppressions(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/audit/suppressions/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_audit_suppressions(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/audit/suppressions/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_audit_suppressions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6025,17 +5677,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"taskType"`: A filter to limit the output to the specified type of audit: can be one of \"ON_DEMAND_AUDIT_TASK\" or \"SCHEDULED__AUDIT_TASK\". """ -function list_audit_tasks( - endTime, startTime; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +list_audit_tasks(endTime, startTime; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/audit/tasks", Dict{String,Any}("endTime" => endTime, "startTime" => startTime); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_audit_tasks( endTime, startTime, @@ -6071,11 +5720,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pageSize"`: The maximum number of results to return at one time. - `"status"`: The status of the list authorizers request. """ -function list_authorizers(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/authorizers/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_authorizers(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/authorizers/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_authorizers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6103,11 +5749,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_billing_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/billing-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_billing_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/billing-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_billing_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6135,11 +5778,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pageSize"`: The result page size. - `"templateName"`: The name of the provisioning template. """ -function list_cacertificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/cacertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_cacertificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/cacertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_cacertificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6166,14 +5806,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null if there are no more results. """ -function list_certificate_providers(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/certificate-providers/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_certificate_providers(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/certificate-providers/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_certificate_providers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6201,11 +5839,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. - `"pageSize"`: The result page size. """ -function list_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/certificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/certificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6236,16 +5871,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. - `"pageSize"`: The result page size. """ -function list_certificates_by_ca( +list_certificates_by_ca( caCertificateId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/certificates-by-ca/$(caCertificateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/certificates-by-ca/$(caCertificateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_certificates_by_ca( caCertificateId, params::AbstractDict{String}; @@ -6272,11 +5905,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. The default is 25. - `"nextToken"`: The token for the next set of results. """ -function list_custom_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/custom-metrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_custom_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/custom-metrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_custom_metrics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6308,16 +5938,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingName"`: The name of the thing whose mitigation actions are listed. - `"violationId"`: The unique identifier of the violation. """ -function list_detect_mitigation_actions_executions(; +list_detect_mitigation_actions_executions(; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/detect/mitigationactions/executions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/detect/mitigationactions/executions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_detect_mitigation_actions_executions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6348,17 +5976,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. The default is 25. - `"nextToken"`: The token for the next set of results. """ -function list_detect_mitigation_actions_tasks( +list_detect_mitigation_actions_tasks( endTime, startTime; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/detect/mitigationactions/tasks", + Dict{String,Any}("endTime" => endTime, "startTime" => startTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/detect/mitigationactions/tasks", - Dict{String,Any}("endTime" => endTime, "startTime" => startTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_detect_mitigation_actions_tasks( endTime, startTime, @@ -6392,9 +6018,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to retrieve at one time. - `"nextToken"`: The token for the next set of results. """ -function list_dimensions(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/dimensions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_dimensions(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/dimensions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_dimensions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6417,14 +6042,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pageSize"`: The result page size. - `"serviceType"`: The type of service delivered by the endpoint. """ -function list_domain_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/domainConfigurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_domain_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/domainConfigurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_domain_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6449,11 +6072,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_fleet_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/fleet-metrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_fleet_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/fleet-metrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_fleet_metrics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6478,9 +6098,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token used to get the next set of results, or null if there are no additional results. """ -function list_indices(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/indices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_indices(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/indices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_indices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6505,16 +6124,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to retrieve the next set of results. - `"status"`: The status of the job. """ -function list_job_executions_for_job( - jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +list_job_executions_for_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/jobs/$(jobId)/things"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_job_executions_for_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6551,16 +6167,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: An optional filter that lets you search for jobs that have the specified status. """ -function list_job_executions_for_thing( +list_job_executions_for_thing( thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/things/$(thingName)/jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/things/$(thingName)/jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_job_executions_for_thing( thingName, params::AbstractDict{String}; @@ -6586,11 +6200,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return in the list. - `"nextToken"`: The token to use to return the next set of results in the list. """ -function list_job_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/job-templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_job_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/job-templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_job_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6633,9 +6244,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingGroupName"`: A filter that limits the returned jobs to those for the specified group. """ -function list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6658,14 +6268,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys versions of the managed job templates that have the specified template name will be returned. """ -function list_managed_job_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/managed-job-templates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_managed_job_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/managed-job-templates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_managed_job_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6698,26 +6306,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. - `"nextToken"`: The token for the next set of results. """ -function list_metric_values( +list_metric_values( endTime, metricName, startTime, thingName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "GET", + "/metric-values", + Dict{String,Any}( + "endTime" => endTime, + "metricName" => metricName, + "startTime" => startTime, + "thingName" => thingName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/metric-values", - Dict{String,Any}( - "endTime" => endTime, - "metricName" => metricName, - "startTime" => startTime, - "thingName" => thingName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_metric_values( endTime, metricName, @@ -6760,14 +6366,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. The default is 25. - `"nextToken"`: The token for the next set of results. """ -function list_mitigation_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/mitigationactions/actions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_mitigation_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/mitigationactions/actions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_mitigation_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6792,9 +6396,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used to retrieve the next set of results. - `"otaUpdateStatus"`: The OTA update job status. """ -function list_otaupdates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/otaUpdates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_otaupdates(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/otaUpdates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_otaupdates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6817,14 +6420,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. - `"pageSize"`: The result page size. """ -function list_outgoing_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/certificates-out-going"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_outgoing_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/certificates-out-going"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_outgoing_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6854,16 +6455,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the package version. For more information, see Package version lifecycle. """ -function list_package_versions( - packageName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +list_package_versions(packageName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/packages/$(packageName)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_package_versions( packageName, params::AbstractDict{String}; @@ -6890,9 +6488,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results returned at one time. - `"nextToken"`: The token for the next set of results. """ -function list_packages(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/packages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_packages(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/packages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_packages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6914,9 +6511,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. - `"pageSize"`: The result page size. """ -function list_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6943,19 +6539,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. - `"pageSize"`: The result page size. """ -function list_policy_principals( +list_policy_principals( x_amzn_iot_policy; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/policy-principals", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amzn-iot-policy" => x_amzn_iot_policy) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/policy-principals", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amzn-iot-policy" => x_amzn_iot_policy) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_policy_principals( x_amzn_iot_policy, params::AbstractDict{String}; @@ -6989,16 +6583,12 @@ permission to access the ListPolicyVersions action. - `policy_name`: The policy name. """ -function list_policy_versions( - policyName; aws_config::AbstractAWSConfig=current_aws_config() +list_policy_versions(policyName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/policies/$(policyName)/version"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/policies/$(policyName)/version"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_policy_versions( policyName, params::AbstractDict{String}; @@ -7035,19 +6625,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. - `"pageSize"`: The result page size. """ -function list_principal_policies( +list_principal_policies( x_amzn_iot_principal; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/principal-policies", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amzn-iot-principal" => x_amzn_iot_principal) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/principal-policies", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amzn-iot-principal" => x_amzn_iot_principal) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_principal_policies( x_amzn_iot_principal, params::AbstractDict{String}; @@ -7088,19 +6676,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_principal_things( +list_principal_things( x_amzn_principal; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/principals/things", + Dict{String,Any}("headers" => Dict{String,Any}("x-amzn-principal" => x_amzn_principal)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/principals/things", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amzn-principal" => x_amzn_principal) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_principal_things( x_amzn_principal, params::AbstractDict{String}; @@ -7138,16 +6722,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. - `"nextToken"`: A token to retrieve the next set of results. """ -function list_provisioning_template_versions( +list_provisioning_template_versions( templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/provisioning-templates/$(templateName)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/provisioning-templates/$(templateName)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_provisioning_template_versions( templateName, params::AbstractDict{String}; @@ -7174,14 +6756,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. - `"nextToken"`: A token to retrieve the next set of results. """ -function list_provisioning_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/provisioning-templates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_provisioning_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/provisioning-templates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_provisioning_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7216,17 +6796,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that can be used to retrieve the next set of results, or null if there are no additional results. """ -function list_related_resources_for_audit_finding( +list_related_resources_for_audit_finding( findingId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/audit/relatedResources", + Dict{String,Any}("findingId" => findingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/audit/relatedResources", - Dict{String,Any}("findingId" => findingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_related_resources_for_audit_finding( findingId, params::AbstractDict{String}; @@ -7256,11 +6834,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: A marker used to get the next set of results. - `"pageSize"`: The maximum number of results to return at one time. """ -function list_role_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/role-aliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_role_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/role-aliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_role_aliases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7285,14 +6860,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. The default is 25. - `"nextToken"`: The token for the next set of results. """ -function list_scheduled_audits(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/audit/scheduledaudits"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_scheduled_audits(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/audit/scheduledaudits"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_scheduled_audits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7322,11 +6895,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"metricName"`: The name of the custom metric. Cannot be used with dimensionName. - `"nextToken"`: The token for the next set of results. """ -function list_security_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/security-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_security_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/security-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_security_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7356,17 +6926,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. - `"recursive"`: If true, return child groups too. """ -function list_security_profiles_for_target( +list_security_profiles_for_target( securityProfileTargetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/security-profiles-for-target", + Dict{String,Any}("securityProfileTargetArn" => securityProfileTargetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/security-profiles-for-target", - Dict{String,Any}("securityProfileTargetArn" => securityProfileTargetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_security_profiles_for_target( securityProfileTargetArn, params::AbstractDict{String}; @@ -7400,9 +6968,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at a time. - `"nextToken"`: A token used to get the next set of results. """ -function list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/streams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/streams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7426,17 +6993,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/tags", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -7468,16 +7032,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: A marker used to get the next set of results. - `"pageSize"`: The maximum number of results to return at one time. """ -function list_targets_for_policy( - policyName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +list_targets_for_policy(policyName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/policy-targets/$(policyName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_targets_for_policy( policyName, params::AbstractDict{String}; @@ -7507,16 +7068,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. - `"nextToken"`: The token for the next set of results. """ -function list_targets_for_security_profile( +list_targets_for_security_profile( securityProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/security-profiles/$(securityProfileName)/targets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/security-profiles/$(securityProfileName)/targets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_targets_for_security_profile( securityProfileName, params::AbstractDict{String}; @@ -7549,11 +7108,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys group. - `"recursive"`: If true, return child groups as well. """ -function list_thing_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/thing-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_thing_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/thing-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_thing_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7582,16 +7138,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_thing_groups_for_thing( - thingName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +list_thing_groups_for_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "GET", "/things/$(thingName)/thing-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_thing_groups_for_thing( thingName, params::AbstractDict{String}; @@ -7623,16 +7176,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_thing_principals( - thingName; aws_config::AbstractAWSConfig=current_aws_config() +list_thing_principals(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/things/$(thingName)/principals"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/things/$(thingName)/principals"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_thing_principals( thingName, params::AbstractDict{String}; @@ -7663,17 +7212,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_thing_registration_task_reports( +list_thing_registration_task_reports( reportType, taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/thing-registration-tasks/$(taskId)/reports", + Dict{String,Any}("reportType" => reportType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/thing-registration-tasks/$(taskId)/reports", - Dict{String,Any}("reportType" => reportType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_thing_registration_task_reports( reportType, taskId, @@ -7705,14 +7252,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response; otherwise null to receive the first set of results. - `"status"`: The status of the bulk thing provisioning task. """ -function list_thing_registration_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", - "/thing-registration-tasks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_thing_registration_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "GET", + "/thing-registration-tasks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_thing_registration_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7738,11 +7283,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response; otherwise null to receive the first set of results. - `"thingTypeName"`: The name of the thing type. """ -function list_thing_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/thing-types"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_thing_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/thing-types"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_thing_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7781,9 +7323,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the action returns only the thing resources with attribute values that match the entire attributeValue provided. """ -function list_things(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/things"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_things(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/things"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_things( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7808,16 +7349,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_things_in_billing_group( +list_things_in_billing_group( billingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/billing-groups/$(billingGroupName)/things"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/billing-groups/$(billingGroupName)/things"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_things_in_billing_group( billingGroupName, params::AbstractDict{String}; @@ -7849,16 +7388,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response; otherwise null to receive the first set of results. - `"recursive"`: When true, list things in this thing group and in all child groups as well. """ -function list_things_in_thing_group( +list_things_in_thing_group( thingGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/thing-groups/$(thingGroupName)/things"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/thing-groups/$(thingGroupName)/things"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_things_in_thing_group( thingGroupName, params::AbstractDict{String}; @@ -7886,11 +7423,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_topic_rule_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/destinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_topic_rule_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/destinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_topic_rule_destinations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7918,9 +7452,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ruleDisabled"`: Specifies whether the rule is disabled. - `"topic"`: The topic. """ -function list_topic_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot("GET", "/rules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_topic_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/rules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_topic_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7943,11 +7476,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"targetType"`: The type of resource for which you are configuring logging. Must be THING_Group. """ -function list_v2_logging_levels(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "GET", "/v2LoggingLevel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_v2_logging_levels(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("GET", "/v2LoggingLevel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_v2_logging_levels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7984,17 +7514,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingName"`: A filter to limit results to those alerts caused by the specified thing. - `"verificationState"`: The verification state of the violation (detect alarm). """ -function list_violation_events( +list_violation_events( endTime, startTime; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "GET", + "/violation-events", + Dict{String,Any}("endTime" => endTime, "startTime" => startTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "GET", - "/violation-events", - Dict{String,Any}("endTime" => endTime, "startTime" => startTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_violation_events( endTime, startTime, @@ -8032,17 +7560,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"verificationStateDescription"`: The description of the verification state of the violation (detect alarm). """ -function put_verification_state_on_violation( +put_verification_state_on_violation( verificationState, violationId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/violations/verification-state/$(violationId)", + Dict{String,Any}("verificationState" => verificationState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/violations/verification-state/$(violationId)", - Dict{String,Any}("verificationState" => verificationState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_verification_state_on_violation( verificationState, violationId, @@ -8096,17 +7622,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is SNI_ONLY, the verificationCertificate field must be empty. If certificateMode is DEFAULT or not provided, the verificationCertificate field must not be empty. """ -function register_cacertificate( - caCertificate; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +register_cacertificate(caCertificate; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/cacertificate", Dict{String,Any}("caCertificate" => caCertificate); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function register_cacertificate( caCertificate, params::AbstractDict{String}; @@ -8144,17 +7667,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the register certificate request. Valid values that you can use include ACTIVE, INACTIVE, and REVOKED. """ -function register_certificate( - certificatePem; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +register_certificate(certificatePem; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/certificate/register", Dict{String,Any}("certificatePem" => certificatePem); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function register_certificate( certificatePem, params::AbstractDict{String}; @@ -8185,17 +7705,15 @@ certificates, consult Certificate signing algorithms supported by IoT. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"status"`: The status of the register certificate request. """ -function register_certificate_without_ca( +register_certificate_without_ca( certificatePem; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/certificate/register-no-ca", + Dict{String,Any}("certificatePem" => certificatePem); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/certificate/register-no-ca", - Dict{String,Any}("certificatePem" => certificatePem); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_certificate_without_ca( certificatePem, params::AbstractDict{String}; @@ -8230,15 +7748,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parameters"`: The parameters for provisioning a thing. See Provisioning Templates for more information. """ -function register_thing(templateBody; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/things", - Dict{String,Any}("templateBody" => templateBody); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +register_thing(templateBody; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/things", + Dict{String,Any}("templateBody" => templateBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function register_thing( templateBody, params::AbstractDict{String}; @@ -8274,16 +7790,14 @@ RejectCertificateTransfer action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"rejectReason"`: The reason the certificate transfer was rejected. """ -function reject_certificate_transfer( +reject_certificate_transfer( certificateId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/reject-certificate-transfer/$(certificateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/reject-certificate-transfer/$(certificateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_certificate_transfer( certificateId, params::AbstractDict{String}; @@ -8313,16 +7827,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingArn"`: The ARN of the thing to be removed from the billing group. - `"thingName"`: The name of the thing to be removed from the billing group. """ -function remove_thing_from_billing_group(; - aws_config::AbstractAWSConfig=current_aws_config() +remove_thing_from_billing_group(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/billing-groups/removeThingFromBillingGroup"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/billing-groups/removeThingFromBillingGroup"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_thing_from_billing_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8351,14 +7861,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingGroupName"`: The group name. - `"thingName"`: The name of the thing to remove from the group. """ -function remove_thing_from_thing_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/thing-groups/removeThingFromThingGroup"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +remove_thing_from_thing_group(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/thing-groups/removeThingFromThingGroup"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function remove_thing_from_thing_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8385,17 +7893,15 @@ action. - `topic_rule_payload`: The rule payload. """ -function replace_topic_rule( +replace_topic_rule( ruleName, topicRulePayload; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/rules/$(ruleName)", + Dict{String,Any}("topicRulePayload" => topicRulePayload); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/rules/$(ruleName)", - Dict{String,Any}("topicRulePayload" => topicRulePayload); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replace_topic_rule( ruleName, topicRulePayload, @@ -8436,15 +7942,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys additional results. - `"queryVersion"`: The query version. """ -function search_index(queryString; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/indices/search", - Dict{String,Any}("queryString" => queryString); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_index(queryString; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/indices/search", + Dict{String,Any}("queryString" => queryString); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_index( queryString, params::AbstractDict{String}; @@ -8472,17 +7976,14 @@ specifying an authorizer. Requires permission to access the SetDefaultAuthorizer - `authorizer_name`: The authorizer name. """ -function set_default_authorizer( - authorizerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +set_default_authorizer(authorizerName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/default-authorizer", Dict{String,Any}("authorizerName" => authorizerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_default_authorizer( authorizerName, params::AbstractDict{String}; @@ -8513,16 +8014,14 @@ permission to access the SetDefaultPolicyVersion action. - `policy_version_id`: The policy version ID. """ -function set_default_policy_version( +set_default_policy_version( policyName, policyVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/policies/$(policyName)/version/$(policyVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/policies/$(policyName)/version/$(policyVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_default_policy_version( policyName, policyVersionId, @@ -8549,17 +8048,15 @@ SetV2LoggingOptions instead. Requires permission to access the SetLoggingOptions - `logging_options_payload`: The logging options payload. """ -function set_logging_options( +set_logging_options( loggingOptionsPayload; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/loggingOptions", + Dict{String,Any}("loggingOptionsPayload" => loggingOptionsPayload); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/loggingOptions", - Dict{String,Any}("loggingOptionsPayload" => loggingOptionsPayload); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_logging_options( loggingOptionsPayload, params::AbstractDict{String}; @@ -8591,17 +8088,15 @@ Sets the logging level. Requires permission to access the SetV2LoggingLevel acti - `log_target`: The log target. """ -function set_v2_logging_level( +set_v2_logging_level( logLevel, logTarget; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/v2LoggingLevel", + Dict{String,Any}("logLevel" => logLevel, "logTarget" => logTarget); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/v2LoggingLevel", - Dict{String,Any}("logLevel" => logLevel, "logTarget" => logTarget); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_v2_logging_level( logLevel, logTarget, @@ -8636,11 +8131,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"disableAllLogs"`: If true all logs are disabled. The default is false. - `"roleArn"`: The ARN of the role that allows IoT to write to Cloudwatch logs. """ -function set_v2_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", "/v2LoggingOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +set_v2_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("POST", "/v2LoggingOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function set_v2_logging_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8674,25 +8166,23 @@ permission to access the StartAuditMitigationActionsTask action. status of the task or to cancel it. """ -function start_audit_mitigation_actions_task( +start_audit_mitigation_actions_task( auditCheckToActionsMapping, clientRequestToken, target, taskId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/audit/mitigationactions/tasks/$(taskId)", + Dict{String,Any}( + "auditCheckToActionsMapping" => auditCheckToActionsMapping, + "clientRequestToken" => clientRequestToken, + "target" => target, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/audit/mitigationactions/tasks/$(taskId)", - Dict{String,Any}( - "auditCheckToActionsMapping" => auditCheckToActionsMapping, - "clientRequestToken" => clientRequestToken, - "target" => target, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_audit_mitigation_actions_task( auditCheckToActionsMapping, clientRequestToken, @@ -8743,25 +8233,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"violationEventOccurrenceRange"`: Specifies the time period of which violation events occurred between. """ -function start_detect_mitigation_actions_task( +start_detect_mitigation_actions_task( actions, clientRequestToken, target, taskId; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return iot( - "PUT", - "/detect/mitigationactions/tasks/$(taskId)", - Dict{String,Any}( - "actions" => actions, - "clientRequestToken" => clientRequestToken, - "target" => target, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "PUT", + "/detect/mitigationactions/tasks/$(taskId)", + Dict{String,Any}( + "actions" => actions, + "clientRequestToken" => clientRequestToken, + "target" => target, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_detect_mitigation_actions_task( actions, clientRequestToken, @@ -8803,17 +8291,15 @@ StartOnDemandAuditTask action. enabled or UpdateAccountAuditConfiguration to select which checks are enabled. """ -function start_on_demand_audit_task( +start_on_demand_audit_task( targetCheckNames; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/audit/tasks", + Dict{String,Any}("targetCheckNames" => targetCheckNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/audit/tasks", - Dict{String,Any}("targetCheckNames" => targetCheckNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_on_demand_audit_task( targetCheckNames, params::AbstractDict{String}; @@ -8848,26 +8334,24 @@ StartThingRegistrationTask action. - `template_body`: The provisioning template. """ -function start_thing_registration_task( +start_thing_registration_task( inputFileBucket, inputFileKey, roleArn, templateBody; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "POST", + "/thing-registration-tasks", + Dict{String,Any}( + "inputFileBucket" => inputFileBucket, + "inputFileKey" => inputFileKey, + "roleArn" => roleArn, + "templateBody" => templateBody, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/thing-registration-tasks", - Dict{String,Any}( - "inputFileBucket" => inputFileBucket, - "inputFileKey" => inputFileKey, - "roleArn" => roleArn, - "templateBody" => templateBody, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_thing_registration_task( inputFileBucket, inputFileKey, @@ -8907,16 +8391,13 @@ StopThingRegistrationTask action. - `task_id`: The bulk thing provisioning task ID. """ -function stop_thing_registration_task( - taskId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +stop_thing_registration_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "PUT", "/thing-registration-tasks/$(taskId)/cancel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_thing_registration_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8941,15 +8422,13 @@ manage a resource. Requires permission to access the TagResource action. - `tags`: The new or modified tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/tags", - Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/tags", + Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -8995,15 +8474,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id). """ -function test_authorization(authInfos; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", - "/test-authorization", - Dict{String,Any}("authInfos" => authInfos); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +test_authorization(authInfos; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "POST", + "/test-authorization", + Dict{String,Any}("authInfos" => authInfos); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function test_authorization( authInfos, params::AbstractDict{String}; @@ -9040,16 +8517,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tokenSignature"`: The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded. """ -function test_invoke_authorizer( - authorizerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +test_invoke_authorizer(authorizerName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/authorizer/$(authorizerName)/test"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function test_invoke_authorizer( authorizerName, params::AbstractDict{String}; @@ -9085,17 +8559,15 @@ DetachPolicy action to detach them. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"transferMessage"`: The transfer message. """ -function transfer_certificate( +transfer_certificate( certificateId, targetAwsAccount; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/transfer-certificate/$(certificateId)", + Dict{String,Any}("targetAwsAccount" => targetAwsAccount); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/transfer-certificate/$(certificateId)", - Dict{String,Any}("targetAwsAccount" => targetAwsAccount); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function transfer_certificate( certificateId, targetAwsAccount, @@ -9127,17 +8599,14 @@ UntagResource action. - `tag_keys`: A list of the keys of the tags to be removed from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "POST", "/untag", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -9183,16 +8652,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys access information about your devices, policies, certificates, and other items as required when performing an audit. """ -function update_account_audit_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +update_account_audit_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "PATCH", "/audit/configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_account_audit_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9223,19 +8689,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"suppressIndefinitely"`: Indicates whether a suppression should exist indefinitely or not. """ -function update_audit_suppression( +update_audit_suppression( checkName, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/audit/suppressions/update", + Dict{String,Any}("checkName" => checkName, "resourceIdentifier" => resourceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/audit/suppressions/update", - Dict{String,Any}( - "checkName" => checkName, "resourceIdentifier" => resourceIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_audit_suppression( checkName, resourceIdentifier, @@ -9278,16 +8740,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tokenKeyName"`: The key used to extract the token from the HTTP headers. - `"tokenSigningPublicKeys"`: The public keys used to verify the token signature. """ -function update_authorizer( - authorizerName; aws_config::AbstractAWSConfig=current_aws_config() +update_authorizer(authorizerName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/authorizer/$(authorizerName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/authorizer/$(authorizerName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_authorizer( authorizerName, params::AbstractDict{String}; @@ -9319,19 +8777,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys billing group does not match the expected version specified in the request, the UpdateBillingGroup request is rejected with a VersionConflictException. """ -function update_billing_group( +update_billing_group( billingGroupName, billingGroupProperties; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot( + "PATCH", + "/billing-groups/$(billingGroupName)", + Dict{String,Any}("billingGroupProperties" => billingGroupProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/billing-groups/$(billingGroupName)", - Dict{String,Any}("billingGroupProperties" => billingGroupProperties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_billing_group( billingGroupName, billingGroupProperties, @@ -9372,16 +8828,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"registrationConfig"`: Information about the registration configuration. - `"removeAutoRegistration"`: If true, removes auto registration. """ -function update_cacertificate( - caCertificateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +update_cacertificate(caCertificateId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "PUT", "/cacertificate/$(caCertificateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_cacertificate( caCertificateId, params::AbstractDict{String}; @@ -9416,17 +8869,15 @@ in the ACTIVE state to reconnect. use. Note: The status value REGISTER_INACTIVE is deprecated and should not be used. """ -function update_certificate( +update_certificate( certificateId, newStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/certificates/$(certificateId)", + Dict{String,Any}("newStatus" => newStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/certificates/$(certificateId)", - Dict{String,Any}("newStatus" => newStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_certificate( certificateId, newStatus, @@ -9461,16 +8912,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"lambdaFunctionArn"`: The Lambda function ARN that's associated with the certificate provider. """ -function update_certificate_provider( +update_certificate_provider( certificateProviderName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/certificate-providers/$(certificateProviderName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/certificate-providers/$(certificateProviderName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_certificate_provider( certificateProviderName, params::AbstractDict{String}; @@ -9499,17 +8948,15 @@ UpdateCustomMetric action. - `metric_name`: The name of the custom metric. Cannot be updated. """ -function update_custom_metric( +update_custom_metric( displayName, metricName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/custom-metric/$(metricName)", + Dict{String,Any}("displayName" => displayName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/custom-metric/$(metricName)", - Dict{String,Any}("displayName" => displayName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_custom_metric( displayName, metricName, @@ -9543,17 +8990,14 @@ UpdateDimension action. \"admin/#\"). """ -function update_dimension( - name, stringValues; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +update_dimension(name, stringValues; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "PATCH", "/dimensions/$(name)", Dict{String,Any}("stringValues" => stringValues); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_dimension( name, stringValues, @@ -9591,16 +9035,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serverCertificateConfig"`: The server certificate configuration. - `"tlsConfig"`: An object that specifies the TLS configuration for a domain. """ -function update_domain_configuration( +update_domain_configuration( domainConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PUT", + "/domainConfigurations/$(domainConfigurationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PUT", - "/domainConfigurations/$(domainConfigurationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_domain_configuration( domainConfigurationName, params::AbstractDict{String}; @@ -9636,17 +9078,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version is supported: \"2017-09-30\". If not specified, the query version defaults to this value. """ -function update_dynamic_thing_group( +update_dynamic_thing_group( thingGroupName, thingGroupProperties; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/dynamic-thing-groups/$(thingGroupName)", + Dict{String,Any}("thingGroupProperties" => thingGroupProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/dynamic-thing-groups/$(thingGroupName)", - Dict{String,Any}("thingGroupProperties" => thingGroupProperties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dynamic_thing_group( thingGroupName, thingGroupProperties, @@ -9679,14 +9119,12 @@ UpdateEventConfigurations action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"eventConfigurations"`: The new event configuration values. """ -function update_event_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PATCH", - "/event-configurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_event_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PATCH", + "/event-configurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_event_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9723,17 +9161,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"unit"`: Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. """ -function update_fleet_metric( +update_fleet_metric( indexName, metricName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/fleet-metric/$(metricName)", + Dict{String,Any}("indexName" => indexName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/fleet-metric/$(metricName)", - Dict{String,Any}("indexName" => indexName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_fleet_metric( indexName, metricName, @@ -9763,11 +9199,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingGroupIndexingConfiguration"`: Thing group indexing configuration. - `"thingIndexingConfiguration"`: Thing indexing configuration. """ -function update_indexing_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "POST", "/indexing/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_indexing_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("POST", "/indexing/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_indexing_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9808,11 +9241,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the job execution status is not set to another terminal state before the time expires, it will be automatically set to TIMED_OUT. """ -function update_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PATCH", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot("PATCH", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9842,16 +9272,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"actionParams"`: Defines the type of action and the parameters for that action. - `"roleArn"`: The ARN of the IAM role that is used to apply the mitigation action. """ -function update_mitigation_action( - actionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot( +update_mitigation_action(actionName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot( "PATCH", "/mitigationactions/actions/$(actionName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_mitigation_action( actionName, params::AbstractDict{String}; @@ -9889,15 +9316,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Note: You cannot name a defaultVersion and set unsetDefaultVersion equal to true at the same time. """ -function update_package(packageName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PATCH", - "/packages/$(packageName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_package(packageName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PATCH", + "/packages/$(packageName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_package( packageName, params::AbstractDict{String}; @@ -9929,15 +9354,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versionUpdateByJobsConfig"`: Configuration to manage job's package version reporting. This updates the thing's reserved named shadow that the job targets. """ -function update_package_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PATCH", - "/package-configuration", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_package_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PATCH", + "/package-configuration", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_package_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9976,17 +9399,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys required. - `"description"`: The package version description. """ -function update_package_version( +update_package_version( packageName, versionName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/packages/$(packageName)/versions/$(versionName)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/packages/$(packageName)/versions/$(versionName)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_package_version( packageName, versionName, @@ -10026,16 +9447,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This IoT role grants permission to provision a device. - `"removePreProvisioningHook"`: Removes pre-provisioning hook template. """ -function update_provisioning_template( +update_provisioning_template( templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/provisioning-templates/$(templateName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/provisioning-templates/$(templateName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_provisioning_template( templateName, params::AbstractDict{String}; @@ -10066,14 +9485,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys role alias references. - `"roleArn"`: The role ARN. """ -function update_role_alias(roleAlias; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/role-aliases/$(roleAlias)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_role_alias(roleAlias; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/role-aliases/$(roleAlias)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_role_alias( roleAlias, params::AbstractDict{String}; @@ -10114,16 +9531,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys checks, including those that are enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.) """ -function update_scheduled_audit( +update_scheduled_audit( scheduledAuditName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/audit/scheduledaudits/$(scheduledAuditName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/audit/scheduledaudits/$(scheduledAuditName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_scheduled_audit( scheduledAuditName, params::AbstractDict{String}; @@ -10177,16 +9592,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"metricsExportConfig"`: Specifies the MQTT topic and role ARN required for metric export. - `"securityProfileDescription"`: A description of the security profile. """ -function update_security_profile( +update_security_profile( securityProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/security-profiles/$(securityProfileName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/security-profiles/$(securityProfileName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_security_profile( securityProfileName, params::AbstractDict{String}; @@ -10218,14 +9631,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"roleArn"`: An IAM role that allows the IoT service principal assumes to access your S3 files. """ -function update_stream(streamId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/streams/$(streamId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_stream(streamId; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/streams/$(streamId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_stream( streamId, params::AbstractDict{String}; @@ -10262,14 +9673,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"removeThingType"`: Remove a thing type association. If true, the association is removed. - `"thingTypeName"`: The name of the thing type. """ -function update_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PATCH", - "/things/$(thingName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_thing(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PATCH", + "/things/$(thingName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_thing( thingName, params::AbstractDict{String}; @@ -10299,17 +9708,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"expectedVersion"`: The expected version of the thing group. If this does not match the version of the thing group being updated, the update will fail. """ -function update_thing_group( +update_thing_group( thingGroupName, thingGroupProperties; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/thing-groups/$(thingGroupName)", + Dict{String,Any}("thingGroupProperties" => thingGroupProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/thing-groups/$(thingGroupName)", - Dict{String,Any}("thingGroupProperties" => thingGroupProperties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_thing_group( thingGroupName, thingGroupProperties, @@ -10348,14 +9755,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"thingGroupsToRemove"`: The groups from which the thing will be removed. - `"thingName"`: The thing whose group memberships will be updated. """ -function update_thing_groups_for_thing(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot( - "PUT", - "/thing-groups/updateThingGroupsForThing"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_thing_groups_for_thing(; aws_config::AbstractAWSConfig=current_aws_config()) = iot( + "PUT", + "/thing-groups/updateThingGroupsForThing"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_thing_groups_for_thing( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10392,17 +9797,15 @@ UpdateTopicRuleDestination action. confirmation endpoint. """ -function update_topic_rule_destination( +update_topic_rule_destination( arn, status; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "PATCH", + "/destinations", + Dict{String,Any}("arn" => arn, "status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "PATCH", - "/destinations", - Dict{String,Any}("arn" => arn, "status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_topic_rule_destination( arn, status, @@ -10432,17 +9835,15 @@ to access the ValidateSecurityProfileBehaviors action. alert. """ -function validate_security_profile_behaviors( +validate_security_profile_behaviors( behaviors; aws_config::AbstractAWSConfig=current_aws_config() +) = iot( + "POST", + "/security-profile-behaviors/validate", + Dict{String,Any}("behaviors" => behaviors); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot( - "POST", - "/security-profile-behaviors/validate", - Dict{String,Any}("behaviors" => behaviors); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_security_profile_behaviors( behaviors, params::AbstractDict{String}; diff --git a/src/services/iot_1click_devices_service.jl b/src/services/iot_1click_devices_service.jl index f1d73988c..1831a3fc8 100644 --- a/src/services/iot_1click_devices_service.jl +++ b/src/services/iot_1click_devices_service.jl @@ -16,16 +16,13 @@ received a claim code with the device(s). manufacturer. """ -function claim_devices_by_claim_code( - claimCode; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_1click_devices_service( +claim_devices_by_claim_code(claimCode; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "PUT", "/claims/$(claimCode)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function claim_devices_by_claim_code( claimCode, params::AbstractDict{String}; @@ -52,14 +49,13 @@ device. - `device_id`: The unique identifier of the device. """ -function describe_device(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_devices_service( +describe_device(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "GET", "/devices/$(deviceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_device( deviceId, params::AbstractDict{String}; @@ -95,14 +91,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"tags\": {\"key1\": \"value1\", \"key2\": \"value2\"} }. For more information, see AWS Tagging Strategies. """ -function finalize_device_claim(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_devices_service( +finalize_device_claim(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "PUT", "/devices/$(deviceId)/finalize-claim"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function finalize_device_claim( deviceId, params::AbstractDict{String}; @@ -127,14 +122,13 @@ Given a device ID, returns the invokable methods associated with the device. - `device_id`: The unique identifier of the device. """ -function get_device_methods(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_devices_service( +get_device_methods(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "GET", "/devices/$(deviceId)/methods"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_device_methods( deviceId, params::AbstractDict{String}; @@ -165,14 +159,13 @@ device. - `device_id`: The unique identifier of the device. """ -function initiate_device_claim(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_devices_service( +initiate_device_claim(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "PUT", "/devices/$(deviceId)/initiate-claim"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function initiate_device_claim( deviceId, params::AbstractDict{String}; @@ -203,14 +196,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deviceMethodParameters"`: A JSON encoded string containing the device method request parameters. """ -function invoke_device_method(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_devices_service( +invoke_device_method(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "POST", "/devices/$(deviceId)/methods"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invoke_device_method( deviceId, params::AbstractDict{String}; @@ -249,17 +241,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 100 is used. - `"nextToken"`: The token to retrieve the next set of results. """ -function list_device_events( +list_device_events( deviceId, fromTimeStamp, toTimeStamp; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_1click_devices_service( + "GET", + "/devices/$(deviceId)/events", + Dict{String,Any}("fromTimeStamp" => fromTimeStamp, "toTimeStamp" => toTimeStamp); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_1click_devices_service( - "GET", - "/devices/$(deviceId)/events", - Dict{String,Any}("fromTimeStamp" => fromTimeStamp, "toTimeStamp" => toTimeStamp); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_device_events( deviceId, fromTimeStamp, @@ -298,11 +288,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 100 is used. - `"nextToken"`: The token to retrieve the next set of results. """ -function list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_devices_service( +list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "GET", "/devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -321,16 +310,13 @@ Lists the tags associated with the specified resource ARN. - `resource-arn`: The ARN of the resource. """ -function list_tags_for_resource( - resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_1click_devices_service( +list_tags_for_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "GET", "/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resource_arn, params::AbstractDict{String}; @@ -360,17 +346,14 @@ Limits for the maximum number of tags allowed per Tagging Strategies. """ -function tag_resource( - resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_1click_devices_service( +tag_resource(resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "POST", "/tags/$(resource-arn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resource_arn, tags, @@ -396,14 +379,13 @@ Disassociates a device from your AWS account using its device ID. - `device_id`: The unique identifier of the device. """ -function unclaim_device(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_devices_service( +unclaim_device(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "PUT", "/devices/$(deviceId)/unclaim"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function unclaim_device( deviceId, params::AbstractDict{String}; @@ -431,17 +413,14 @@ ARN. - `tag_keys`: A collections of tag keys. For example, {\"key1\",\"key2\"} """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_1click_devices_service( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "DELETE", "/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -473,14 +452,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"enabled"`: If true, the device is enabled. If false, the device is disabled. """ -function update_device_state(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_devices_service( +update_device_state(deviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_devices_service( "PUT", "/devices/$(deviceId)/state"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_device_state( deviceId, params::AbstractDict{String}; diff --git a/src/services/iot_1click_projects.jl b/src/services/iot_1click_projects.jl index 8ba9ca9f9..3fd1814fe 100644 --- a/src/services/iot_1click_projects.jl +++ b/src/services/iot_1click_projects.jl @@ -19,21 +19,19 @@ Associates a physical device with a placement. the device. """ -function associate_device_with_placement( +associate_device_with_placement( deviceId, deviceTemplateName, placementName, projectName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_1click_projects( + "PUT", + "/projects/$(projectName)/placements/$(placementName)/devices/$(deviceTemplateName)", + Dict{String,Any}("deviceId" => deviceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_1click_projects( - "PUT", - "/projects/$(projectName)/placements/$(placementName)/devices/$(deviceTemplateName)", - Dict{String,Any}("deviceId" => deviceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_device_with_placement( deviceId, deviceTemplateName, @@ -68,17 +66,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"attributes"`: Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement. """ -function create_placement( +create_placement( placementName, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_1click_projects( + "POST", + "/projects/$(projectName)/placements", + Dict{String,Any}("placementName" => placementName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_1click_projects( - "POST", - "/projects/$(projectName)/placements", - Dict{String,Any}("placementName" => placementName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_placement( placementName, projectName, @@ -117,15 +113,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys example, { {\"key1\": \"value1\", \"key2\": \"value2\"} }. For more information, see AWS Tagging Strategies. """ -function create_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_projects( +create_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_projects( "POST", "/projects", Dict{String,Any}("projectName" => projectName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_project( projectName, params::AbstractDict{String}; @@ -154,16 +149,14 @@ it. When you delete a placement, all associated data becomes irretrievable. - `project_name`: The project containing the empty placement to delete. """ -function delete_placement( +delete_placement( placementName, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_1click_projects( + "DELETE", + "/projects/$(projectName)/placements/$(placementName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_1click_projects( - "DELETE", - "/projects/$(projectName)/placements/$(placementName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_placement( placementName, projectName, @@ -190,14 +183,13 @@ Deletes a project. To delete a project, it must not have any placements associat - `project_name`: The name of the empty project to delete. """ -function delete_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_projects( +delete_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_projects( "DELETE", "/projects/$(projectName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_project( projectName, params::AbstractDict{String}; @@ -223,16 +215,14 @@ Describes a placement in a project. - `project_name`: The project containing the placement to be described. """ -function describe_placement( +describe_placement( placementName, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_1click_projects( + "GET", + "/projects/$(projectName)/placements/$(placementName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_1click_projects( - "GET", - "/projects/$(projectName)/placements/$(placementName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_placement( placementName, projectName, @@ -258,14 +248,13 @@ Returns an object describing a project. - `project_name`: The name of the project to be described. """ -function describe_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_projects( +describe_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_projects( "GET", "/projects/$(projectName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_project( projectName, params::AbstractDict{String}; @@ -292,19 +281,17 @@ Removes a physical device from a placement. - `project_name`: The name of the project that contains the placement. """ -function disassociate_device_from_placement( +disassociate_device_from_placement( deviceTemplateName, placementName, projectName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_1click_projects( + "DELETE", + "/projects/$(projectName)/placements/$(placementName)/devices/$(deviceTemplateName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_1click_projects( - "DELETE", - "/projects/$(projectName)/placements/$(placementName)/devices/$(deviceTemplateName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_device_from_placement( deviceTemplateName, placementName, @@ -332,16 +319,14 @@ Returns an object enumerating the devices in a placement. - `project_name`: The name of the project containing the placement. """ -function get_devices_in_placement( +get_devices_in_placement( placementName, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_1click_projects( + "GET", + "/projects/$(projectName)/placements/$(placementName)/devices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_1click_projects( - "GET", - "/projects/$(projectName)/placements/$(placementName)/devices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_devices_in_placement( placementName, projectName, @@ -372,14 +357,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default value of 100 is used. - `"nextToken"`: The token to retrieve the next set of results. """ -function list_placements(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_projects( +list_placements(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_projects( "GET", "/projects/$(projectName)/placements"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_placements( projectName, params::AbstractDict{String}; @@ -406,11 +390,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default value of 100 is used. - `"nextToken"`: The token to retrieve the next set of results. """ -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_projects( - "GET", "/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_1click_projects( + "GET", "/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -429,16 +411,13 @@ Lists the tags (metadata key/value pairs) which you have assigned to the resourc - `resource_arn`: The ARN of the resource whose tags you want to list. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_1click_projects( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_projects( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -466,15 +445,14 @@ used to manage a resource. For more information, see AWS Tagging Strategies. for the maximum number of tags allowed per resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_projects( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_projects( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -501,17 +479,14 @@ Removes one or more tags (metadata key/value pairs) from a resource. - `tag_keys`: The keys of those tags which you want to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_1click_projects( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_projects( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -543,16 +518,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"attributes"`: The user-defined object of attributes used to update the placement. The maximum number of key/value pairs is 50. """ -function update_placement( +update_placement( placementName, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_1click_projects( + "PUT", + "/projects/$(projectName)/placements/$(placementName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_1click_projects( - "PUT", - "/projects/$(projectName)/placements/$(placementName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_placement( placementName, projectName, @@ -588,14 +561,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys placementTemplate, you can update the associated callbackOverrides for the device definition using this API. """ -function update_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_1click_projects( +update_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_1click_projects( "PUT", "/projects/$(projectName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_project( projectName, params::AbstractDict{String}; diff --git a/src/services/iot_data_plane.jl b/src/services/iot_data_plane.jl index cb05aa660..1af184540 100644 --- a/src/services/iot_data_plane.jl +++ b/src/services/iot_data_plane.jl @@ -19,14 +19,13 @@ Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"name"`: The name of the shadow. """ -function delete_thing_shadow(thingName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_data_plane( +delete_thing_shadow(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_data_plane( "DELETE", "/things/$(thingName)/shadow"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_thing_shadow( thingName, params::AbstractDict{String}; @@ -55,14 +54,13 @@ Amazon Web Services IoT Core pricing - Messaging. - `topic`: The topic name of the retained message to retrieve. """ -function get_retained_message(topic; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_data_plane( +get_retained_message(topic; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_data_plane( "GET", "/retainedMessage/$(topic)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_retained_message( topic, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -89,14 +87,13 @@ action. For more information, see GetThingShadow in the IoT Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"name"`: The name of the shadow. """ -function get_thing_shadow(thingName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_data_plane( +get_thing_shadow(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_data_plane( "GET", "/things/$(thingName)/shadow"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_thing_shadow( thingName, params::AbstractDict{String}; @@ -126,16 +123,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to retrieve the next set of results. - `"pageSize"`: The result page size. """ -function list_named_shadows_for_thing( +list_named_shadows_for_thing( thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_data_plane( + "GET", + "/api/things/shadow/ListNamedShadowsForThing/$(thingName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_data_plane( - "GET", - "/api/things/shadow/ListNamedShadowsForThing/$(thingName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_named_shadows_for_thing( thingName, params::AbstractDict{String}; @@ -168,11 +163,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_retained_messages(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_data_plane( +list_retained_messages(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_data_plane( "GET", "/retainedMessage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_retained_messages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -226,11 +220,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys User Properties. Note that it needs to be base64-encoded: [{\"deviceName\": \"alpha\"}, {\"deviceCnt\": \"45\"}] """ -function publish(topic; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_data_plane( - "POST", "/topics/$(topic)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +publish(topic; aws_config::AbstractAWSConfig=current_aws_config()) = iot_data_plane( + "POST", "/topics/$(topic)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function publish( topic, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -259,17 +251,15 @@ Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"name"`: The name of the shadow. """ -function update_thing_shadow( +update_thing_shadow( payload, thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_data_plane( + "POST", + "/things/$(thingName)/shadow", + Dict{String,Any}("payload" => payload); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_data_plane( - "POST", - "/things/$(thingName)/shadow", - Dict{String,Any}("payload" => payload); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_thing_shadow( payload, thingName, diff --git a/src/services/iot_events.jl b/src/services/iot_events.jl index 6bf3ba955..b7b769f75 100644 --- a/src/services/iot_events.jl +++ b/src/services/iot_events.jl @@ -34,21 +34,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resources in the AWS IoT Events Developer Guide. You can create up to 50 tags for one alarm model. """ -function create_alarm_model( +create_alarm_model( alarmModelName, alarmRule, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "POST", + "/alarm-models", + Dict{String,Any}( + "alarmModelName" => alarmModelName, + "alarmRule" => alarmRule, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "POST", - "/alarm-models", - Dict{String,Any}( - "alarmModelName" => alarmModelName, - "alarmRule" => alarmRule, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_alarm_model( alarmModelName, alarmRule, @@ -99,24 +97,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys device associated with the input. - `"tags"`: Metadata that can be used to manage the detector model. """ -function create_detector_model( +create_detector_model( detectorModelDefinition, detectorModelName, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_events( + "POST", + "/detector-models", + Dict{String,Any}( + "detectorModelDefinition" => detectorModelDefinition, + "detectorModelName" => detectorModelName, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "POST", - "/detector-models", - Dict{String,Any}( - "detectorModelDefinition" => detectorModelDefinition, - "detectorModelName" => detectorModelName, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_detector_model( detectorModelDefinition, detectorModelName, @@ -158,17 +154,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"inputDescription"`: A brief description of the input. - `"tags"`: Metadata that can be used to manage the input. """ -function create_input( +create_input( inputDefinition, inputName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "POST", + "/inputs", + Dict{String,Any}("inputDefinition" => inputDefinition, "inputName" => inputName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "POST", - "/inputs", - Dict{String,Any}("inputDefinition" => inputDefinition, "inputName" => inputName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_input( inputDefinition, inputName, @@ -203,16 +197,13 @@ also deleted. This action can't be undone. - `alarm_model_name`: The name of the alarm model. """ -function delete_alarm_model( - alarmModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events( +delete_alarm_model(alarmModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events( "DELETE", "/alarm-models/$(alarmModelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_alarm_model( alarmModelName, params::AbstractDict{String}; @@ -237,16 +228,14 @@ Deletes a detector model. Any active instances of the detector model are also de - `detector_model_name`: The name of the detector model to be deleted. """ -function delete_detector_model( +delete_detector_model( detectorModelName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "DELETE", + "/detector-models/$(detectorModelName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "DELETE", - "/detector-models/$(detectorModelName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_detector_model( detectorModelName, params::AbstractDict{String}; @@ -271,14 +260,12 @@ Deletes an input. - `input_name`: The name of the input to delete. """ -function delete_input(inputName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events( - "DELETE", - "/inputs/$(inputName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_input(inputName; aws_config::AbstractAWSConfig=current_aws_config()) = iot_events( + "DELETE", + "/inputs/$(inputName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_input( inputName, params::AbstractDict{String}; @@ -307,16 +294,13 @@ alarmModelVersion parameter, the latest version is returned. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"version"`: The version of the alarm model. """ -function describe_alarm_model( - alarmModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events( +describe_alarm_model(alarmModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events( "GET", "/alarm-models/$(alarmModelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_alarm_model( alarmModelName, params::AbstractDict{String}; @@ -345,16 +329,14 @@ the latest version is returned. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"version"`: The version of the detector model. """ -function describe_detector_model( +describe_detector_model( detectorModelName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "GET", + "/detector-models/$(detectorModelName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "GET", - "/detector-models/$(detectorModelName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_detector_model( detectorModelName, params::AbstractDict{String}; @@ -380,16 +362,14 @@ analyzing your detector model, you have up to 24 hours to retrieve the analysis - `analysis_id`: The ID of the analysis result that you want to retrieve. """ -function describe_detector_model_analysis( +describe_detector_model_analysis( analysisId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "GET", + "/analysis/detector-models/$(analysisId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "GET", - "/analysis/detector-models/$(analysisId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_detector_model_analysis( analysisId, params::AbstractDict{String}; @@ -414,14 +394,12 @@ Describes an input. - `input_name`: The name of the input. """ -function describe_input(inputName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events( - "GET", - "/inputs/$(inputName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_input(inputName; aws_config::AbstractAWSConfig=current_aws_config()) = iot_events( + "GET", + "/inputs/$(inputName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_input( inputName, params::AbstractDict{String}; @@ -443,11 +421,8 @@ end Retrieves the current settings of the AWS IoT Events logging options. """ -function describe_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events( - "GET", "/logging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events("GET", "/logging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_logging_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -471,16 +446,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per request. - `"nextToken"`: The token that you can use to return the next set of results. """ -function get_detector_model_analysis_results( +get_detector_model_analysis_results( analysisId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "GET", + "/analysis/detector-models/$(analysisId)/results"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "GET", - "/analysis/detector-models/$(analysisId)/results"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_detector_model_analysis_results( analysisId, params::AbstractDict{String}; @@ -510,16 +483,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per request. - `"nextToken"`: The token that you can use to return the next set of results. """ -function list_alarm_model_versions( +list_alarm_model_versions( alarmModelName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "GET", + "/alarm-models/$(alarmModelName)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "GET", - "/alarm-models/$(alarmModelName)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_alarm_model_versions( alarmModelName, params::AbstractDict{String}; @@ -546,11 +517,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per request. - `"nextToken"`: The token that you can use to return the next set of results. """ -function list_alarm_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events( - "GET", "/alarm-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_alarm_models(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_events( + "GET", "/alarm-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_alarm_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -578,16 +547,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per request. - `"nextToken"`: The token that you can use to return the next set of results. """ -function list_detector_model_versions( +list_detector_model_versions( detectorModelName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "GET", + "/detector-models/$(detectorModelName)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "GET", - "/detector-models/$(detectorModelName)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_detector_model_versions( detectorModelName, params::AbstractDict{String}; @@ -614,11 +581,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per request. - `"nextToken"`: The token that you can use to return the next set of results. """ -function list_detector_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events( - "GET", "/detector-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_detector_models(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_events( + "GET", "/detector-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_detector_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -645,17 +610,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per request. - `"nextToken"`: The token that you can use to return the next set of results. """ -function list_input_routings( - inputIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events( +list_input_routings(inputIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events( "POST", "/input-routings", Dict{String,Any}("inputIdentifier" => inputIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_input_routings( inputIdentifier, params::AbstractDict{String}; @@ -685,11 +647,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per request. - `"nextToken"`: The token that you can use to return the next set of results. """ -function list_inputs(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events( - "GET", "/inputs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_inputs(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events("GET", "/inputs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_inputs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -708,17 +667,14 @@ Lists the tags (metadata) you have assigned to the resource. - `resource_arn`: The ARN of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events( "GET", "/tags", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -748,17 +704,14 @@ correct an invalid policy), it takes up to five minutes for that change to take - `logging_options`: The new values of the AWS IoT Events logging options. """ -function put_logging_options( - loggingOptions; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events( +put_logging_options(loggingOptions; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events( "PUT", "/logging", Dict{String,Any}("loggingOptions" => loggingOptions); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_logging_options( loggingOptions, params::AbstractDict{String}; @@ -786,17 +739,15 @@ detector model in the AWS IoT Events Developer Guide. - `detector_model_definition`: """ -function start_detector_model_analysis( +start_detector_model_analysis( detectorModelDefinition; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "POST", + "/analysis/detector-models/", + Dict{String,Any}("detectorModelDefinition" => detectorModelDefinition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "POST", - "/analysis/detector-models/", - Dict{String,Any}("detectorModelDefinition" => detectorModelDefinition); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_detector_model_analysis( detectorModelDefinition, params::AbstractDict{String}; @@ -829,15 +780,14 @@ manage a resource. - `tags`: The new or modified tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events( "POST", "/tags", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -870,17 +820,14 @@ Removes the given tags (metadata) from the resource. - `tag_keys`: A list of the keys of the tags to be removed from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events( "DELETE", "/tags", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -924,17 +871,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"alarmNotification"`: Contains information about one or more notification actions. - `"severity"`: A non-negative integer that reflects the severity level of the alarm. """ -function update_alarm_model( +update_alarm_model( alarmModelName, alarmRule, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "POST", + "/alarm-models/$(alarmModelName)", + Dict{String,Any}("alarmRule" => alarmRule, "roleArn" => roleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "POST", - "/alarm-models/$(alarmModelName)", - Dict{String,Any}("alarmRule" => alarmRule, "roleArn" => roleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_alarm_model( alarmModelName, alarmRule, @@ -976,22 +921,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"evaluationMethod"`: Information about the order in which events are evaluated and how actions are executed. """ -function update_detector_model( +update_detector_model( detectorModelDefinition, detectorModelName, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_events( + "POST", + "/detector-models/$(detectorModelName)", + Dict{String,Any}( + "detectorModelDefinition" => detectorModelDefinition, "roleArn" => roleArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "POST", - "/detector-models/$(detectorModelName)", - Dict{String,Any}( - "detectorModelDefinition" => detectorModelDefinition, "roleArn" => roleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_detector_model( detectorModelDefinition, detectorModelName, @@ -1031,17 +974,15 @@ Updates an input. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"inputDescription"`: A brief description of the input. """ -function update_input( +update_input( inputDefinition, inputName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events( + "PUT", + "/inputs/$(inputName)", + Dict{String,Any}("inputDefinition" => inputDefinition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events( - "PUT", - "/inputs/$(inputName)", - Dict{String,Any}("inputDefinition" => inputDefinition); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_input( inputDefinition, inputName, diff --git a/src/services/iot_events_data.jl b/src/services/iot_events_data.jl index d3c0f09fc..73d7e1154 100644 --- a/src/services/iot_events_data.jl +++ b/src/services/iot_events_data.jl @@ -16,17 +16,15 @@ acknowledge them. up to 10 requests per operation. """ -function batch_acknowledge_alarm( +batch_acknowledge_alarm( acknowledgeActionRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events_data( + "POST", + "/alarms/acknowledge", + Dict{String,Any}("acknowledgeActionRequests" => acknowledgeActionRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events_data( - "POST", - "/alarms/acknowledge", - Dict{String,Any}("acknowledgeActionRequests" => acknowledgeActionRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_acknowledge_alarm( acknowledgeActionRequests, params::AbstractDict{String}; @@ -59,17 +57,14 @@ detector will no longer appear if referenced in the ListDetectors API call. - `detectors`: The list of one or more detectors to be deleted. """ -function batch_delete_detector( - detectors; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events_data( +batch_delete_detector(detectors; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events_data( "POST", "/detectors/delete", Dict{String,Any}("detectors" => detectors); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_delete_detector( detectors, params::AbstractDict{String}; @@ -97,17 +92,15 @@ Disables one or more alarms. The alarms change to the DISABLED state after you d requests per operation. """ -function batch_disable_alarm( +batch_disable_alarm( disableActionRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events_data( + "POST", + "/alarms/disable", + Dict{String,Any}("disableActionRequests" => disableActionRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events_data( - "POST", - "/alarms/disable", - Dict{String,Any}("disableActionRequests" => disableActionRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disable_alarm( disableActionRequests, params::AbstractDict{String}; @@ -139,17 +132,15 @@ Enables one or more alarms. The alarms change to the NORMAL state after you enab requests per operation. """ -function batch_enable_alarm( +batch_enable_alarm( enableActionRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events_data( + "POST", + "/alarms/enable", + Dict{String,Any}("enableActionRequests" => enableActionRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events_data( - "POST", - "/alarms/enable", - Dict{String,Any}("enableActionRequests" => enableActionRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_enable_alarm( enableActionRequests, params::AbstractDict{String}; @@ -185,15 +176,14 @@ successful response. \"messageId\": \"string\", \"inputName\": \"string\", \"payload\": \"string\"}' """ -function batch_put_message(messages; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events_data( +batch_put_message(messages; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events_data( "POST", "/inputs/messages", Dict{String,Any}("messages" => messages); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_put_message( messages, params::AbstractDict{String}; @@ -221,17 +211,14 @@ Resets one or more alarms. The alarms return to the NORMAL state after you reset requests per operation. """ -function batch_reset_alarm( - resetActionRequests; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events_data( +batch_reset_alarm(resetActionRequests; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events_data( "POST", "/alarms/reset", Dict{String,Any}("resetActionRequests" => resetActionRequests); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_reset_alarm( resetActionRequests, params::AbstractDict{String}; @@ -264,17 +251,15 @@ state after you set them to the snooze mode. requests per operation. """ -function batch_snooze_alarm( +batch_snooze_alarm( snoozeActionRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_events_data( + "POST", + "/alarms/snooze", + Dict{String,Any}("snoozeActionRequests" => snoozeActionRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_events_data( - "POST", - "/alarms/snooze", - Dict{String,Any}("snoozeActionRequests" => snoozeActionRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_snooze_alarm( snoozeActionRequests, params::AbstractDict{String}; @@ -306,17 +291,14 @@ of a specified detector model. - `detectors`: The list of detectors (instances) to update, along with the values to update. """ -function batch_update_detector( - detectors; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events_data( +batch_update_detector(detectors; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events_data( "POST", "/detectors", Dict{String,Any}("detectors" => detectors); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_update_detector( detectors, params::AbstractDict{String}; @@ -347,14 +329,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"keyValue"`: The value of the key used as a filter to select only the alarms associated with the key. """ -function describe_alarm(alarmModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events_data( +describe_alarm(alarmModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events_data( "GET", "/alarms/$(alarmModelName)/keyValues/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_alarm( alarmModelName, params::AbstractDict{String}; @@ -384,16 +365,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"keyValue"`: A filter used to limit results to detectors (instances) created because of the given key ID. """ -function describe_detector( - detectorModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events_data( +describe_detector(detectorModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events_data( "GET", "/detectors/$(detectorModelName)/keyValues/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_detector( detectorModelName, params::AbstractDict{String}; @@ -423,14 +401,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to be returned per request. - `"nextToken"`: The token that you can use to return the next set of results. """ -function list_alarms(alarmModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_events_data( +list_alarms(alarmModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events_data( "GET", "/alarms/$(alarmModelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_alarms( alarmModelName, params::AbstractDict{String}; @@ -462,16 +439,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"stateName"`: A filter that limits results to those detectors (instances) in the given state. """ -function list_detectors( - detectorModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_events_data( +list_detectors(detectorModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_events_data( "GET", "/detectors/$(detectorModelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_detectors( detectorModelName, params::AbstractDict{String}; diff --git a/src/services/iot_jobs_data_plane.jl b/src/services/iot_jobs_data_plane.jl index a3210c277..71349789e 100644 --- a/src/services/iot_jobs_data_plane.jl +++ b/src/services/iot_jobs_data_plane.jl @@ -21,16 +21,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includeJobDocument"`: Optional. When set to true, the response contains the job document. The default is false. """ -function describe_job_execution( +describe_job_execution( jobId, thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_jobs_data_plane( + "GET", + "/things/$(thingName)/jobs/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_jobs_data_plane( - "GET", - "/things/$(thingName)/jobs/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_job_execution( jobId, thingName, @@ -56,16 +54,13 @@ Gets the list of all jobs for a thing that are not in a terminal status. - `thing_name`: The name of the thing that is executing the job. """ -function get_pending_job_executions( - thingName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_jobs_data_plane( +get_pending_job_executions(thingName; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_jobs_data_plane( "GET", "/things/$(thingName)/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_pending_job_executions( thingName, params::AbstractDict{String}; @@ -101,16 +96,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob using field timeoutConfig). """ -function start_next_pending_job_execution( +start_next_pending_job_execution( thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_jobs_data_plane( + "PUT", + "/things/$(thingName)/jobs/$next"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_jobs_data_plane( - "PUT", - "/things/$(thingName)/jobs/$next"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_next_pending_job_execution( thingName, params::AbstractDict{String}; @@ -161,17 +154,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob using field timeoutConfig). """ -function update_job_execution( +update_job_execution( jobId, status, thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_jobs_data_plane( + "POST", + "/things/$(thingName)/jobs/$(jobId)", + Dict{String,Any}("status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_jobs_data_plane( - "POST", - "/things/$(thingName)/jobs/$(jobId)", - Dict{String,Any}("status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_job_execution( jobId, status, diff --git a/src/services/iot_wireless.jl b/src/services/iot_wireless.jl index 928f11ea3..6c485188d 100644 --- a/src/services/iot_wireless.jl +++ b/src/services/iot_wireless.jl @@ -25,17 +25,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to attach to the specified resource. Tags are metadata that you can use to manage a resource. """ -function associate_aws_account_with_partner_account( +associate_aws_account_with_partner_account( Sidewalk; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/partner-accounts", + Dict{String,Any}("Sidewalk" => Sidewalk, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/partner-accounts", - Dict{String,Any}("Sidewalk" => Sidewalk, "ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_aws_account_with_partner_account( Sidewalk, params::AbstractDict{String}; @@ -69,17 +67,15 @@ Associate a multicast group with a FUOTA task. - `multicast_group_id`: """ -function associate_multicast_group_with_fuota_task( +associate_multicast_group_with_fuota_task( Id, MulticastGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PUT", + "/fuota-tasks/$(Id)/multicast-group", + Dict{String,Any}("MulticastGroupId" => MulticastGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/fuota-tasks/$(Id)/multicast-group", - Dict{String,Any}("MulticastGroupId" => MulticastGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_multicast_group_with_fuota_task( Id, MulticastGroupId, @@ -110,17 +106,15 @@ Associate a wireless device with a FUOTA task. - `wireless_device_id`: """ -function associate_wireless_device_with_fuota_task( +associate_wireless_device_with_fuota_task( Id, WirelessDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PUT", + "/fuota-tasks/$(Id)/wireless-device", + Dict{String,Any}("WirelessDeviceId" => WirelessDeviceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/fuota-tasks/$(Id)/wireless-device", - Dict{String,Any}("WirelessDeviceId" => WirelessDeviceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_wireless_device_with_fuota_task( Id, WirelessDeviceId, @@ -151,17 +145,15 @@ Associates a wireless device with a multicast group. - `wireless_device_id`: """ -function associate_wireless_device_with_multicast_group( +associate_wireless_device_with_multicast_group( Id, WirelessDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PUT", + "/multicast-groups/$(Id)/wireless-device", + Dict{String,Any}("WirelessDeviceId" => WirelessDeviceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/multicast-groups/$(Id)/wireless-device", - Dict{String,Any}("WirelessDeviceId" => WirelessDeviceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_wireless_device_with_multicast_group( Id, WirelessDeviceId, @@ -192,17 +184,15 @@ Associates a wireless device with a thing. - `thing_arn`: The ARN of the thing to associate with the wireless device. """ -function associate_wireless_device_with_thing( +associate_wireless_device_with_thing( Id, ThingArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PUT", + "/wireless-devices/$(Id)/thing", + Dict{String,Any}("ThingArn" => ThingArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/wireless-devices/$(Id)/thing", - Dict{String,Any}("ThingArn" => ThingArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_wireless_device_with_thing( Id, ThingArn, @@ -231,17 +221,15 @@ Associates a wireless gateway with a certificate. - `iot_certificate_id`: The ID of the certificate to associate with the wireless gateway. """ -function associate_wireless_gateway_with_certificate( +associate_wireless_gateway_with_certificate( Id, IotCertificateId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PUT", + "/wireless-gateways/$(Id)/certificate", + Dict{String,Any}("IotCertificateId" => IotCertificateId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/wireless-gateways/$(Id)/certificate", - Dict{String,Any}("IotCertificateId" => IotCertificateId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_wireless_gateway_with_certificate( Id, IotCertificateId, @@ -272,17 +260,15 @@ Associates a wireless gateway with a thing. - `thing_arn`: The ARN of the thing to associate with the wireless gateway. """ -function associate_wireless_gateway_with_thing( +associate_wireless_gateway_with_thing( Id, ThingArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PUT", + "/wireless-gateways/$(Id)/thing", + Dict{String,Any}("ThingArn" => ThingArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/wireless-gateways/$(Id)/thing", - Dict{String,Any}("ThingArn" => ThingArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_wireless_gateway_with_thing( Id, ThingArn, @@ -310,16 +296,13 @@ Cancels an existing multicast group session. - `id`: """ -function cancel_multicast_group_session( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +cancel_multicast_group_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/multicast-groups/$(Id)/session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_multicast_group_session( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -357,27 +340,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to attach to the new destination. Tags are metadata that you can use to manage a resource. """ -function create_destination( +create_destination( Expression, ExpressionType, Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_wireless( + "POST", + "/destinations", + Dict{String,Any}( + "Expression" => Expression, + "ExpressionType" => ExpressionType, + "Name" => Name, + "RoleArn" => RoleArn, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/destinations", - Dict{String,Any}( - "Expression" => Expression, - "ExpressionType" => ExpressionType, - "Name" => Name, - "RoleArn" => RoleArn, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_destination( Expression, ExpressionType, @@ -428,15 +409,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to attach to the new device profile. Tags are metadata that you can use to manage a resource. """ -function create_device_profile(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "POST", - "/device-profiles", - Dict{String,Any}("ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_device_profile(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "POST", + "/device-profiles", + Dict{String,Any}("ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_device_profile( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -474,23 +453,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RedundancyPercent"`: - `"Tags"`: """ -function create_fuota_task( +create_fuota_task( FirmwareUpdateImage, FirmwareUpdateRole; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_wireless( + "POST", + "/fuota-tasks", + Dict{String,Any}( + "FirmwareUpdateImage" => FirmwareUpdateImage, + "FirmwareUpdateRole" => FirmwareUpdateRole, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/fuota-tasks", - Dict{String,Any}( - "FirmwareUpdateImage" => FirmwareUpdateImage, - "FirmwareUpdateRole" => FirmwareUpdateRole, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fuota_task( FirmwareUpdateImage, FirmwareUpdateRole, @@ -538,15 +515,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: - `"Tags"`: """ -function create_multicast_group(LoRaWAN; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +create_multicast_group(LoRaWAN; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "POST", "/multicast-groups", Dict{String,Any}("LoRaWAN" => LoRaWAN, "ClientRequestToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_multicast_group( LoRaWAN, params::AbstractDict{String}; @@ -591,17 +567,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WirelessGateways"`: Wireless gateway resources to add to the network analyzer configuration. Provide the WirelessGatewayId of the resource to add in the input array. """ -function create_network_analyzer_configuration( +create_network_analyzer_configuration( Name; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/network-analyzer-configurations", + Dict{String,Any}("Name" => Name, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/network-analyzer-configurations", - Dict{String,Any}("Name" => Name, "ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network_analyzer_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -640,15 +614,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to attach to the new service profile. Tags are metadata that you can use to manage a resource. """ -function create_service_profile(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "POST", - "/service-profiles", - Dict{String,Any}("ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_service_profile(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "POST", + "/service-profiles", + Dict{String,Any}("ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_service_profile( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -693,21 +665,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to attach to the new wireless device. Tags are metadata that you can use to manage a resource. """ -function create_wireless_device( +create_wireless_device( DestinationName, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/wireless-devices", + Dict{String,Any}( + "DestinationName" => DestinationName, + "Type" => Type, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/wireless-devices", - Dict{String,Any}( - "DestinationName" => DestinationName, - "Type" => Type, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_wireless_device( DestinationName, Type, @@ -760,17 +730,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to attach to the new wireless gateway. Tags are metadata that you can use to manage a resource. """ -function create_wireless_gateway( - LoRaWAN; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +create_wireless_gateway(LoRaWAN; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "POST", "/wireless-gateways", Dict{String,Any}("LoRaWAN" => LoRaWAN, "ClientRequestToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_wireless_gateway( LoRaWAN, params::AbstractDict{String}; @@ -804,19 +771,15 @@ Creates a task for a wireless gateway. - `wireless_gateway_task_definition_id`: The ID of the WirelessGatewayTaskDefinition. """ -function create_wireless_gateway_task( +create_wireless_gateway_task( Id, WirelessGatewayTaskDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/wireless-gateways/$(Id)/tasks", + Dict{String,Any}("WirelessGatewayTaskDefinitionId" => WirelessGatewayTaskDefinitionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/wireless-gateways/$(Id)/tasks", - Dict{String,Any}( - "WirelessGatewayTaskDefinitionId" => WirelessGatewayTaskDefinitionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_wireless_gateway_task( Id, WirelessGatewayTaskDefinitionId, @@ -865,19 +828,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use to manage a resource. - `"Update"`: Information about the gateways to update. """ -function create_wireless_gateway_task_definition( +create_wireless_gateway_task_definition( AutoCreateTasks; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/wireless-gateway-task-definitions", + Dict{String,Any}( + "AutoCreateTasks" => AutoCreateTasks, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/wireless-gateway-task-definitions", - Dict{String,Any}( - "AutoCreateTasks" => AutoCreateTasks, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_wireless_gateway_task_definition( AutoCreateTasks, params::AbstractDict{String}; @@ -911,14 +872,12 @@ Deletes a destination. - `name`: The name of the resource to delete. """ -function delete_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "DELETE", - "/destinations/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "DELETE", + "/destinations/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -941,14 +900,13 @@ Deletes a device profile. - `id`: The ID of the resource to delete. """ -function delete_device_profile(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +delete_device_profile(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/device-profiles/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_device_profile( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -971,14 +929,12 @@ Deletes a FUOTA task. - `id`: """ -function delete_fuota_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "DELETE", - "/fuota-tasks/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fuota_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "DELETE", + "/fuota-tasks/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fuota_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1001,14 +957,13 @@ Deletes a multicast group if it is not in use by a fuota task. - `id`: """ -function delete_multicast_group(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +delete_multicast_group(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/multicast-groups/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_multicast_group( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1031,16 +986,14 @@ Deletes a network analyzer configuration. - `configuration_name`: """ -function delete_network_analyzer_configuration( +delete_network_analyzer_configuration( ConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/network-analyzer-configurations/$(ConfigurationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/network-analyzer-configurations/$(ConfigurationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_analyzer_configuration( ConfigurationName, params::AbstractDict{String}; @@ -1071,17 +1024,14 @@ Remove queued messages from the downlink queue. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"WirelessDeviceType"`: The wireless device type, which can be either Sidewalk or LoRaWAN. """ -function delete_queued_messages( - Id, messageId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +delete_queued_messages(Id, messageId; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/wireless-devices/$(Id)/data", Dict{String,Any}("messageId" => messageId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_queued_messages( Id, messageId, @@ -1109,14 +1059,13 @@ Deletes a service profile. - `id`: The ID of the resource to delete. """ -function delete_service_profile(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +delete_service_profile(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/service-profiles/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_service_profile( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1139,14 +1088,13 @@ Deletes a wireless device. - `id`: The ID of the resource to delete. """ -function delete_wireless_device(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +delete_wireless_device(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/wireless-devices/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_wireless_device( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1169,16 +1117,13 @@ Delete an import task. - `id`: The unique identifier of the import task to be deleted. """ -function delete_wireless_device_import_task( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +delete_wireless_device_import_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/wireless_device_import_task/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_wireless_device_import_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1205,14 +1150,13 @@ for each request within the specified time period. - `id`: The ID of the resource to delete. """ -function delete_wireless_gateway(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +delete_wireless_gateway(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/wireless-gateways/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_wireless_gateway( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1235,16 +1179,13 @@ Deletes a wireless gateway task. - `id`: The ID of the resource to delete. """ -function delete_wireless_gateway_task( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +delete_wireless_gateway_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/wireless-gateways/$(Id)/tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_wireless_gateway_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1268,16 +1209,14 @@ tasks that are currently in progress. - `id`: The ID of the resource to delete. """ -function delete_wireless_gateway_task_definition( +delete_wireless_gateway_task_definition( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/wireless-gateway-task-definitions/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/wireless-gateway-task-definitions/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_wireless_gateway_task_definition( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1304,16 +1243,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WirelessDeviceType"`: The type of wireless device to deregister from AWS IoT Wireless, which can be LoRaWAN or Sidewalk. """ -function deregister_wireless_device( - Identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +deregister_wireless_device(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "PATCH", "/wireless-devices/$(Identifier)/deregister"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_wireless_device( Identifier, params::AbstractDict{String}; @@ -1340,17 +1276,15 @@ are null, disassociates your AWS account from all partner accounts. - `partner_type`: The partner type. """ -function disassociate_aws_account_from_partner_account( +disassociate_aws_account_from_partner_account( PartnerAccountId, partnerType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/partner-accounts/$(PartnerAccountId)", + Dict{String,Any}("partnerType" => partnerType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/partner-accounts/$(PartnerAccountId)", - Dict{String,Any}("partnerType" => partnerType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_aws_account_from_partner_account( PartnerAccountId, partnerType, @@ -1379,16 +1313,14 @@ Disassociates a multicast group from a fuota task. - `multicast_group_id`: """ -function disassociate_multicast_group_from_fuota_task( +disassociate_multicast_group_from_fuota_task( Id, MulticastGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/fuota-tasks/$(Id)/multicast-groups/$(MulticastGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/fuota-tasks/$(Id)/multicast-groups/$(MulticastGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_multicast_group_from_fuota_task( Id, MulticastGroupId, @@ -1415,16 +1347,14 @@ Disassociates a wireless device from a FUOTA task. - `wireless_device_id`: """ -function disassociate_wireless_device_from_fuota_task( +disassociate_wireless_device_from_fuota_task( Id, WirelessDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/fuota-tasks/$(Id)/wireless-devices/$(WirelessDeviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/fuota-tasks/$(Id)/wireless-devices/$(WirelessDeviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_wireless_device_from_fuota_task( Id, WirelessDeviceId, @@ -1451,16 +1381,14 @@ Disassociates a wireless device from a multicast group. - `wireless_device_id`: """ -function disassociate_wireless_device_from_multicast_group( +disassociate_wireless_device_from_multicast_group( Id, WirelessDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/multicast-groups/$(Id)/wireless-devices/$(WirelessDeviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/multicast-groups/$(Id)/wireless-devices/$(WirelessDeviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_wireless_device_from_multicast_group( Id, WirelessDeviceId, @@ -1486,16 +1414,14 @@ Disassociates a wireless device from its currently associated thing. - `id`: The ID of the resource to update. """ -function disassociate_wireless_device_from_thing( +disassociate_wireless_device_from_thing( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/wireless-devices/$(Id)/thing"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/wireless-devices/$(Id)/thing"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_wireless_device_from_thing( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1518,16 +1444,14 @@ Disassociates a wireless gateway from its currently associated certificate. - `id`: The ID of the resource to update. """ -function disassociate_wireless_gateway_from_certificate( +disassociate_wireless_gateway_from_certificate( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/wireless-gateways/$(Id)/certificate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/wireless-gateways/$(Id)/certificate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_wireless_gateway_from_certificate( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1550,16 +1474,14 @@ Disassociates a wireless gateway from its currently associated thing. - `id`: The ID of the resource to update. """ -function disassociate_wireless_gateway_from_thing( +disassociate_wireless_gateway_from_thing( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/wireless-gateways/$(Id)/thing"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/wireless-gateways/$(Id)/thing"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_wireless_gateway_from_thing( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1582,14 +1504,12 @@ Gets information about a destination. - `name`: The name of the resource to get. """ -function get_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", - "/destinations/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", + "/destinations/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1612,14 +1532,12 @@ Gets information about a device profile. - `id`: The ID of the resource to get. """ -function get_device_profile(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", - "/device-profiles/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_device_profile(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", + "/device-profiles/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_device_profile( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1639,16 +1557,14 @@ end Get the event configuration based on resource types. """ -function get_event_configuration_by_resource_types(; +get_event_configuration_by_resource_types(; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/event-configurations-resource-types"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/event-configurations-resource-types"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_event_configuration_by_resource_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1671,11 +1587,9 @@ Gets information about a FUOTA task. - `id`: """ -function get_fuota_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/fuota-tasks/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_fuota_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/fuota-tasks/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_fuota_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1696,13 +1610,10 @@ Returns current default log levels or log levels by resource types. Based on res types, log levels can be for wireless device log options or wireless gateway log options. """ -function get_log_levels_by_resource_types(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +get_log_levels_by_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/log-levels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_log_levels_by_resource_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1718,14 +1629,13 @@ end Get the metric configuration status for this AWS account. """ -function get_metric_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +get_metric_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/metric-configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_metric_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1748,11 +1658,8 @@ Get the summary metrics for this AWS account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SummaryMetricQueries"`: The list of queries to retrieve the summary metrics. """ -function get_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "POST", "/metrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless("POST", "/metrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_metrics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1771,14 +1678,12 @@ Gets information about a multicast group. - `id`: """ -function get_multicast_group(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", - "/multicast-groups/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_multicast_group(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", + "/multicast-groups/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_multicast_group( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1801,14 +1706,13 @@ Gets information about a multicast group session. - `id`: """ -function get_multicast_group_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +get_multicast_group_session(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/multicast-groups/$(Id)/session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_multicast_group_session( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1831,16 +1735,14 @@ Get network analyzer configuration. - `configuration_name`: """ -function get_network_analyzer_configuration( +get_network_analyzer_configuration( ConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/network-analyzer-configurations/$(ConfigurationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/network-analyzer-configurations/$(ConfigurationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_network_analyzer_configuration( ConfigurationName, params::AbstractDict{String}; @@ -1867,17 +1769,15 @@ returns all partner accounts. - `partner_type`: The partner type. """ -function get_partner_account( +get_partner_account( PartnerAccountId, partnerType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/partner-accounts/$(PartnerAccountId)", + Dict{String,Any}("partnerType" => partnerType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/partner-accounts/$(PartnerAccountId)", - Dict{String,Any}("partnerType" => partnerType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_partner_account( PartnerAccountId, partnerType, @@ -1909,17 +1809,15 @@ instead. retrieved. """ -function get_position( +get_position( ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/positions/$(ResourceIdentifier)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/positions/$(ResourceIdentifier)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_position( ResourceIdentifier, resourceType, @@ -1951,17 +1849,15 @@ instead. retrieved. """ -function get_position_configuration( +get_position_configuration( ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/position-configurations/$(ResourceIdentifier)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/position-configurations/$(ResourceIdentifier)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_position_configuration( ResourceIdentifier, resourceType, @@ -2001,11 +1897,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WiFiAccessPoints"`: Retrieves an estimated device position by resolving WLAN measurement data. The position is resolved using HERE's Wi-Fi based solver. """ -function get_position_estimate(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "POST", "/position-estimate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_position_estimate(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "POST", "/position-estimate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_position_estimate( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2033,17 +1927,15 @@ Get the event configuration for a particular resource identifier. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"partnerType"`: Partner type of the resource if the identifier type is PartnerAccountId. """ -function get_resource_event_configuration( +get_resource_event_configuration( Identifier, identifierType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/event-configurations/$(Identifier)", + Dict{String,Any}("identifierType" => identifierType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/event-configurations/$(Identifier)", - Dict{String,Any}("identifierType" => identifierType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_event_configuration( Identifier, identifierType, @@ -2073,17 +1965,15 @@ be used for a wireless device or a wireless gateway. - `resource_type`: The type of the resource, which can be WirelessDevice or WirelessGateway. """ -function get_resource_log_level( +get_resource_log_level( ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/log-levels/$(ResourceIdentifier)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/log-levels/$(ResourceIdentifier)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_log_level( ResourceIdentifier, resourceType, @@ -2116,17 +2006,15 @@ The position information uses the World Geodetic System (WGS84). can be a wireless device or a wireless gateway. """ -function get_resource_position( +get_resource_position( ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/resource-positions/$(ResourceIdentifier)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/resource-positions/$(ResourceIdentifier)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_position( ResourceIdentifier, resourceType, @@ -2157,11 +2045,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CUPS for the Configuration and Update Server endpoint, or LNS for the LoRaWAN Network Server endpoint or CLAIM for the global endpoint. """ -function get_service_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/service-endpoint"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_service_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/service-endpoint"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_service_endpoint( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2184,14 +2070,12 @@ Gets information about a service profile. - `id`: The ID of the resource to get. """ -function get_service_profile(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", - "/service-profiles/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_service_profile(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", + "/service-profiles/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_service_profile( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2215,17 +2099,15 @@ Gets information about a wireless device. - `identifier_type`: The type of identifier used in identifier. """ -function get_wireless_device( +get_wireless_device( Identifier, identifierType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/wireless-devices/$(Identifier)", + Dict{String,Any}("identifierType" => identifierType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/wireless-devices/$(Identifier)", - Dict{String,Any}("identifierType" => identifierType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_wireless_device( Identifier, identifierType, @@ -2254,16 +2136,13 @@ the import task. - `id`: The identifier of the import task for which information is requested. """ -function get_wireless_device_import_task( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +get_wireless_device_import_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/wireless_device_import_task/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_wireless_device_import_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2286,16 +2165,13 @@ Gets operating information about a wireless device. - `id`: The ID of the wireless device for which to get the data. """ -function get_wireless_device_statistics( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +get_wireless_device_statistics(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/wireless-devices/$(Id)/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_wireless_device_statistics( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2319,17 +2195,15 @@ Gets information about a wireless gateway. - `identifier_type`: The type of identifier used in identifier. """ -function get_wireless_gateway( +get_wireless_gateway( Identifier, identifierType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/wireless-gateways/$(Identifier)", + Dict{String,Any}("identifierType" => identifierType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/wireless-gateways/$(Identifier)", - Dict{String,Any}("identifierType" => identifierType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_wireless_gateway( Identifier, identifierType, @@ -2357,16 +2231,13 @@ Gets the ID of the certificate that is currently associated with a wireless gate - `id`: The ID of the resource to get. """ -function get_wireless_gateway_certificate( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +get_wireless_gateway_certificate(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/wireless-gateways/$(Id)/certificate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_wireless_gateway_certificate( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2389,16 +2260,14 @@ Gets the firmware version and other information about a wireless gateway. - `id`: The ID of the resource to get. """ -function get_wireless_gateway_firmware_information( +get_wireless_gateway_firmware_information( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/wireless-gateways/$(Id)/firmware-information"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/wireless-gateways/$(Id)/firmware-information"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_wireless_gateway_firmware_information( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2421,16 +2290,13 @@ Gets operating information about a wireless gateway. - `id`: The ID of the wireless gateway for which to get the data. """ -function get_wireless_gateway_statistics( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +get_wireless_gateway_statistics(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/wireless-gateways/$(Id)/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_wireless_gateway_statistics( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2453,14 +2319,13 @@ Gets information about a wireless gateway task. - `id`: The ID of the resource to get. """ -function get_wireless_gateway_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +get_wireless_gateway_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/wireless-gateways/$(Id)/tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_wireless_gateway_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2483,16 +2348,14 @@ Gets information about a wireless gateway task definition. - `id`: The ID of the resource to get. """ -function get_wireless_gateway_task_definition( +get_wireless_gateway_task_definition( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/wireless-gateway-task-definitions/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/wireless-gateway-task-definitions/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_wireless_gateway_task_definition( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2517,11 +2380,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/destinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/destinations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_destinations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2548,11 +2409,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_device_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/device-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_device_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/device-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_device_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2581,17 +2440,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response; otherwise null to receive the first set of results. - `"status"`: The status of the devices in the import task. """ -function list_devices_for_wireless_device_import_task( +list_devices_for_wireless_device_import_task( id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/wireless_device_import_task", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/wireless_device_import_task", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_devices_for_wireless_device_import_task( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2619,17 +2476,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_event_configurations( +list_event_configurations( resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/event-configurations", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/event-configurations", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_event_configurations( resourceType, params::AbstractDict{String}; @@ -2658,11 +2513,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_fuota_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/fuota-tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_fuota_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/fuota-tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_fuota_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2687,11 +2540,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_multicast_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/multicast-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_multicast_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/multicast-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_multicast_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2719,16 +2570,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_multicast_groups_by_fuota_task( +list_multicast_groups_by_fuota_task( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/fuota-tasks/$(Id)/multicast-groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/fuota-tasks/$(Id)/multicast-groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_multicast_groups_by_fuota_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2753,16 +2602,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_network_analyzer_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +list_network_analyzer_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/network-analyzer-configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_network_analyzer_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2787,11 +2633,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_partner_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/partner-accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_partner_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/partner-accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_partner_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2819,14 +2663,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response; otherwise null to receive the first set of results. - `"resourceType"`: Resource type for which position configurations are listed. """ -function list_position_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +list_position_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/position-configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_position_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2855,14 +2698,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_queued_messages(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", - "/wireless-devices/$(Id)/data"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_queued_messages(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", + "/wireless-devices/$(Id)/data"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_queued_messages( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2887,11 +2728,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_service_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/service-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_service_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/service-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_service_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2914,17 +2753,14 @@ Lists the tags (metadata) you have assigned to the resource. - `resource_arn`: The ARN of the resource for which you want to list tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/tags", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2953,16 +2789,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_wireless_device_import_tasks(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +list_wireless_device_import_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "GET", "/wireless_device_import_tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_wireless_device_import_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2996,11 +2829,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"wirelessDeviceType"`: A filter to list only the wireless devices that use this wireless device type. """ -function list_wireless_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/wireless-devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_wireless_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/wireless-devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_wireless_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3027,16 +2858,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"taskDefinitionType"`: A filter to list only the wireless gateway task definitions that use this task definition type. """ -function list_wireless_gateway_task_definitions(; +list_wireless_gateway_task_definitions(; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "GET", + "/wireless-gateway-task-definitions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "GET", - "/wireless-gateway-task-definitions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_wireless_gateway_task_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3061,11 +2890,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. """ -function list_wireless_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "GET", "/wireless-gateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_wireless_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "GET", "/wireless-gateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_wireless_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3098,17 +2925,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Solvers"`: The positioning solvers used to update the position configuration of the resource. """ -function put_position_configuration( +put_position_configuration( ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PUT", + "/position-configurations/$(ResourceIdentifier)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/position-configurations/$(ResourceIdentifier)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_position_configuration( ResourceIdentifier, resourceType, @@ -3140,20 +2965,18 @@ can be set per account. - `resource_type`: The type of the resource, which can be WirelessDevice or WirelessGateway. """ -function put_resource_log_level( +put_resource_log_level( LogLevel, ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_wireless( + "PUT", + "/log-levels/$(ResourceIdentifier)", + Dict{String,Any}("LogLevel" => LogLevel, "resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/log-levels/$(ResourceIdentifier)", - Dict{String,Any}("LogLevel" => LogLevel, "resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_log_level( LogLevel, ResourceIdentifier, @@ -3184,11 +3007,10 @@ Removes the log-level overrides for all resources; both wireless devices and wir gateways. """ -function reset_all_resource_log_levels(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +reset_all_resource_log_levels(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/log-levels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function reset_all_resource_log_levels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3213,17 +3035,15 @@ can be used for a wireless device or a wireless gateway. - `resource_type`: The type of the resource, which can be WirelessDevice or WirelessGateway. """ -function reset_resource_log_level( +reset_resource_log_level( ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "DELETE", + "/log-levels/$(ResourceIdentifier)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "DELETE", - "/log-levels/$(ResourceIdentifier)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_resource_log_level( ResourceIdentifier, resourceType, @@ -3253,19 +3073,15 @@ Sends the specified data to a multicast group. - `wireless_metadata`: """ -function send_data_to_multicast_group( +send_data_to_multicast_group( Id, PayloadData, WirelessMetadata; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/multicast-groups/$(Id)/data", + Dict{String,Any}("PayloadData" => PayloadData, "WirelessMetadata" => WirelessMetadata); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/multicast-groups/$(Id)/data", - Dict{String,Any}( - "PayloadData" => PayloadData, "WirelessMetadata" => WirelessMetadata - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_data_to_multicast_group( Id, PayloadData, @@ -3306,17 +3122,15 @@ Sends a decrypted application data frame to a device. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"WirelessMetadata"`: Metadata about the message request. """ -function send_data_to_wireless_device( +send_data_to_wireless_device( Id, PayloadData, TransmitMode; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/wireless-devices/$(Id)/data", + Dict{String,Any}("PayloadData" => PayloadData, "TransmitMode" => TransmitMode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/wireless-devices/$(Id)/data", - Dict{String,Any}("PayloadData" => PayloadData, "TransmitMode" => TransmitMode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_data_to_wireless_device( Id, PayloadData, @@ -3355,16 +3169,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"QueryString"`: - `"Tags"`: """ -function start_bulk_associate_wireless_device_with_multicast_group( +start_bulk_associate_wireless_device_with_multicast_group( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PATCH", + "/multicast-groups/$(Id)/bulk"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PATCH", - "/multicast-groups/$(Id)/bulk"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_bulk_associate_wireless_device_with_multicast_group( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3391,16 +3203,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"QueryString"`: - `"Tags"`: """ -function start_bulk_disassociate_wireless_device_from_multicast_group( +start_bulk_disassociate_wireless_device_from_multicast_group( Id; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/multicast-groups/$(Id)/bulk"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/multicast-groups/$(Id)/bulk"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_bulk_disassociate_wireless_device_from_multicast_group( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3426,11 +3236,9 @@ Starts a FUOTA task. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LoRaWAN"`: """ -function start_fuota_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "PUT", "/fuota-tasks/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +start_fuota_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "PUT", "/fuota-tasks/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function start_fuota_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3454,17 +3262,15 @@ Starts a multicast group session. - `lo_ra_wan`: """ -function start_multicast_group_session( +start_multicast_group_session( Id, LoRaWAN; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PUT", + "/multicast-groups/$(Id)/session", + Dict{String,Any}("LoRaWAN" => LoRaWAN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PUT", - "/multicast-groups/$(Id)/session", - Dict{String,Any}("LoRaWAN" => LoRaWAN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_multicast_group_session( Id, LoRaWAN, @@ -3498,21 +3304,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeviceName"`: The name of the wireless device for which an import task is being started. - `"Tags"`: """ -function start_single_wireless_device_import_task( +start_single_wireless_device_import_task( DestinationName, Sidewalk; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/wireless_single_device_import_task", + Dict{String,Any}( + "DestinationName" => DestinationName, + "Sidewalk" => Sidewalk, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/wireless_single_device_import_task", - Dict{String,Any}( - "DestinationName" => DestinationName, - "Sidewalk" => Sidewalk, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_single_wireless_device_import_task( DestinationName, Sidewalk, @@ -3555,21 +3359,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: - `"Tags"`: """ -function start_wireless_device_import_task( +start_wireless_device_import_task( DestinationName, Sidewalk; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "POST", + "/wireless_device_import_task", + Dict{String,Any}( + "DestinationName" => DestinationName, + "Sidewalk" => Sidewalk, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "POST", - "/wireless_device_import_task", - Dict{String,Any}( - "DestinationName" => DestinationName, - "Sidewalk" => Sidewalk, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_wireless_device_import_task( DestinationName, Sidewalk, @@ -3607,15 +3409,14 @@ Adds a tag to a resource. - `resource_arn`: The ARN of the resource to add tags to. """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "POST", "/tags", Dict{String,Any}("Tags" => Tags, "resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Tags, resourceArn, @@ -3647,14 +3448,12 @@ Simulates a provisioned device by sending an uplink data payload of Hello. - `id`: The ID of the wireless device to test. """ -function test_wireless_device(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "POST", - "/wireless-devices/$(Id)/test"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +test_wireless_device(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "POST", + "/wireless-devices/$(Id)/test"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function test_wireless_device( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3678,17 +3477,14 @@ Removes one or more tags from a resource. - `tag_keys`: A list of the keys of the tags to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "DELETE", "/tags", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -3726,14 +3522,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ExpressionType"`: The type of value in Expression. - `"RoleArn"`: The ARN of the IAM Role that authorizes the destination. """ -function update_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "PATCH", - "/destinations/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_destination(Name; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "PATCH", + "/destinations/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_destination( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3765,16 +3559,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Proximity"`: Proximity resource type event configuration object for enabling and disabling wireless gateway topic. """ -function update_event_configuration_by_resource_types(; +update_event_configuration_by_resource_types(; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PATCH", + "/event-configurations-resource-types"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PATCH", - "/event-configurations-resource-types"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_event_configuration_by_resource_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3807,14 +3599,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: - `"RedundancyPercent"`: """ -function update_fuota_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( - "PATCH", - "/fuota-tasks/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_fuota_task(Id; aws_config::AbstractAWSConfig=current_aws_config()) = iot_wireless( + "PATCH", + "/fuota-tasks/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_fuota_task( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3841,13 +3631,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WirelessDeviceLogOptions"`: - `"WirelessGatewayLogOptions"`: """ -function update_log_levels_by_resource_types(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iot_wireless( +update_log_levels_by_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "POST", "/log-levels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_log_levels_by_resource_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3870,14 +3657,13 @@ Update the summary metric configuration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SummaryMetric"`: The value to be used to set summary metric configuration. """ -function update_metric_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +update_metric_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "PUT", "/metric-configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_metric_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3905,14 +3691,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LoRaWAN"`: - `"Name"`: """ -function update_multicast_group(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +update_multicast_group(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "PATCH", "/multicast-groups/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_multicast_group( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3954,16 +3739,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys analyzer configuration. Provide the WirelessGatewayId of the resources to remove in the input array. """ -function update_network_analyzer_configuration( +update_network_analyzer_configuration( ConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PATCH", + "/network-analyzer-configurations/$(ConfigurationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PATCH", - "/network-analyzer-configurations/$(ConfigurationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_network_analyzer_configuration( ConfigurationName, params::AbstractDict{String}; @@ -3990,20 +3773,18 @@ Updates properties of a partner account. - `partner_type`: The partner type. """ -function update_partner_account( +update_partner_account( PartnerAccountId, Sidewalk, partnerType; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_wireless( + "PATCH", + "/partner-accounts/$(PartnerAccountId)", + Dict{String,Any}("Sidewalk" => Sidewalk, "partnerType" => partnerType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PATCH", - "/partner-accounts/$(PartnerAccountId)", - Dict{String,Any}("Sidewalk" => Sidewalk, "partnerType" => partnerType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_partner_account( PartnerAccountId, Sidewalk, @@ -4040,20 +3821,18 @@ instead. - `resource_type`: Resource type of the resource for which position is updated. """ -function update_position( +update_position( Position, ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = iot_wireless( + "PATCH", + "/positions/$(ResourceIdentifier)", + Dict{String,Any}("Position" => Position, "resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PATCH", - "/positions/$(ResourceIdentifier)", - Dict{String,Any}("Position" => Position, "resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_position( Position, ResourceIdentifier, @@ -4096,17 +3875,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Proximity"`: Event configuration for the proximity event. - `"partnerType"`: Partner type of the resource if the identifier type is PartnerAccountId """ -function update_resource_event_configuration( +update_resource_event_configuration( Identifier, identifierType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PATCH", + "/event-configurations/$(Identifier)", + Dict{String,Any}("identifierType" => identifierType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PATCH", - "/event-configurations/$(Identifier)", - Dict{String,Any}("identifierType" => identifierType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_event_configuration( Identifier, identifierType, @@ -4144,17 +3921,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see GeoJSON. """ -function update_resource_position( +update_resource_position( ResourceIdentifier, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PATCH", + "/resource-positions/$(ResourceIdentifier)", + Dict{String,Any}("resourceType" => resourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PATCH", - "/resource-positions/$(ResourceIdentifier)", - Dict{String,Any}("resourceType" => resourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_position( ResourceIdentifier, resourceType, @@ -4190,14 +3965,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Positioning"`: FPort values for the GNSS, stream, and ClockSync functions of the positioning information. """ -function update_wireless_device(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +update_wireless_device(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "PATCH", "/wireless-devices/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_wireless_device( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4221,17 +3995,15 @@ Update an import task to add more devices to the task. - `sidewalk`: The Sidewalk-related parameters of the import task to be updated. """ -function update_wireless_device_import_task( +update_wireless_device_import_task( Id, Sidewalk; aws_config::AbstractAWSConfig=current_aws_config() +) = iot_wireless( + "PATCH", + "/wireless_device_import_task/$(Id)", + Dict{String,Any}("Sidewalk" => Sidewalk); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iot_wireless( - "PATCH", - "/wireless_device_import_task/$(Id)", - Dict{String,Any}("Sidewalk" => Sidewalk); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_wireless_device_import_task( Id, Sidewalk, @@ -4266,14 +4038,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The new name of the resource. - `"NetIdFilters"`: """ -function update_wireless_gateway(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return iot_wireless( +update_wireless_gateway(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + iot_wireless( "PATCH", "/wireless-gateways/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_wireless_gateway( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/iotanalytics.jl b/src/services/iotanalytics.jl index 548c0990d..ed9a03e9a 100644 --- a/src/services/iotanalytics.jl +++ b/src/services/iotanalytics.jl @@ -24,17 +24,15 @@ Sends messages to a channel. payloads. """ -function batch_put_message( +batch_put_message( channelName, messages; aws_config::AbstractAWSConfig=current_aws_config() +) = iotanalytics( + "POST", + "/messages/batch", + Dict{String,Any}("channelName" => channelName, "messages" => messages); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotanalytics( - "POST", - "/messages/batch", - Dict{String,Any}("channelName" => channelName, "messages" => messages); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_message( channelName, messages, @@ -68,16 +66,14 @@ Cancels the reprocessing of data through the pipeline. StartPipelineReprocessing). """ -function cancel_pipeline_reprocessing( +cancel_pipeline_reprocessing( pipelineName, reprocessingId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotanalytics( + "DELETE", + "/pipelines/$(pipelineName)/reprocessing/$(reprocessingId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotanalytics( - "DELETE", - "/pipelines/$(pipelineName)/reprocessing/$(reprocessingId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_pipeline_reprocessing( pipelineName, reprocessingId, @@ -112,15 +108,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys customerManagedS3 storage is selected, this parameter is ignored. - `"tags"`: Metadata which can be used to manage the channel. """ -function create_channel(channelName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +create_channel(channelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "POST", "/channels", Dict{String,Any}("channelName" => channelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_channel( channelName, params::AbstractDict{String}; @@ -171,17 +166,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide. """ -function create_dataset( - actions, datasetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +create_dataset(actions, datasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "POST", "/datasets", Dict{String,Any}("actions" => actions, "datasetName" => datasetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_dataset( actions, datasetName, @@ -218,16 +210,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versionId"`: The version ID of the dataset content. To specify versionId for a dataset content, the dataset must use a DeltaTimer filter. """ -function create_dataset_content( - datasetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +create_dataset_content(datasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "POST", "/datasets/$(datasetName)/content"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_dataset_content( datasetName, params::AbstractDict{String}; @@ -266,15 +255,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys customerManagedS3 storage is selected, this parameter is ignored. - `"tags"`: Metadata which can be used to manage the data store. """ -function create_datastore(datastoreName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +create_datastore(datastoreName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "POST", "/datastores", Dict{String,Any}("datastoreName" => datastoreName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_datastore( datastoreName, params::AbstractDict{String}; @@ -314,19 +302,17 @@ pipelineActivities array. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: Metadata which can be used to manage the pipeline. """ -function create_pipeline( +create_pipeline( pipelineActivities, pipelineName; aws_config::AbstractAWSConfig=current_aws_config() +) = iotanalytics( + "POST", + "/pipelines", + Dict{String,Any}( + "pipelineActivities" => pipelineActivities, "pipelineName" => pipelineName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotanalytics( - "POST", - "/pipelines", - Dict{String,Any}( - "pipelineActivities" => pipelineActivities, "pipelineName" => pipelineName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pipeline( pipelineActivities, pipelineName, @@ -361,14 +347,13 @@ Deletes the specified channel. - `channel_name`: The name of the channel to delete. """ -function delete_channel(channelName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +delete_channel(channelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "DELETE", "/channels/$(channelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_channel( channelName, params::AbstractDict{String}; @@ -394,14 +379,13 @@ you perform this operation. - `dataset_name`: The name of the dataset to delete. """ -function delete_dataset(datasetName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +delete_dataset(datasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "DELETE", "/datasets/$(datasetName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dataset( datasetName, params::AbstractDict{String}; @@ -431,16 +415,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys strings \"LATEST\" or \"LATEST_SUCCEEDED\" to delete the latest or latest successfully completed data set. If not specified, \"LATEST_SUCCEEDED\" is the default. """ -function delete_dataset_content( - datasetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +delete_dataset_content(datasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "DELETE", "/datasets/$(datasetName)/content"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dataset_content( datasetName, params::AbstractDict{String}; @@ -465,14 +446,13 @@ Deletes the specified data store. - `datastore_name`: The name of the data store to delete. """ -function delete_datastore(datastoreName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +delete_datastore(datastoreName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "DELETE", "/datastores/$(datastoreName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_datastore( datastoreName, params::AbstractDict{String}; @@ -497,14 +477,13 @@ Deletes the specified pipeline. - `pipeline_name`: The name of the pipeline to delete. """ -function delete_pipeline(pipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +delete_pipeline(pipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "DELETE", "/pipelines/$(pipelineName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_pipeline( pipelineName, params::AbstractDict{String}; @@ -534,14 +513,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response. This feature can't be used with a channel whose S3 storage is customer-managed. """ -function describe_channel(channelName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +describe_channel(channelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "GET", "/channels/$(channelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_channel( channelName, params::AbstractDict{String}; @@ -566,14 +544,13 @@ Retrieves information about a dataset. - `dataset_name`: The name of the dataset whose information is retrieved. """ -function describe_dataset(datasetName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +describe_dataset(datasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "GET", "/datasets/$(datasetName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dataset( datasetName, params::AbstractDict{String}; @@ -603,16 +580,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is included in the response. This feature can't be used with a data store whose S3 storage is customer-managed. """ -function describe_datastore( - datastoreName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +describe_datastore(datastoreName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "GET", "/datastores/$(datastoreName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_datastore( datastoreName, params::AbstractDict{String}; @@ -634,11 +608,8 @@ end Retrieves the current settings of the IoT Analytics logging options. """ -function describe_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( - "GET", "/logging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics("GET", "/logging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_logging_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -657,14 +628,13 @@ Retrieves information about a pipeline. - `pipeline_name`: The name of the pipeline whose information is retrieved. """ -function describe_pipeline(pipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +describe_pipeline(pipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "GET", "/pipelines/$(pipelineName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_pipeline( pipelineName, params::AbstractDict{String}; @@ -695,16 +665,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys latest successfully completed dataset. If not specified, \"LATEST_SUCCEEDED\" is the default. """ -function get_dataset_content( - datasetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +get_dataset_content(datasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "GET", "/datasets/$(datasetName)/content"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_dataset_content( datasetName, params::AbstractDict{String}; @@ -731,11 +698,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value is 100. - `"nextToken"`: The token for the next set of results. """ -function list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( - "GET", "/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics("GET", "/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -764,16 +728,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys creation is scheduled on or after the given time. See the field triggers.schedule in the CreateDataset request. (timestamp) """ -function list_dataset_contents( - datasetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +list_dataset_contents(datasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "GET", "/datasets/$(datasetName)/contents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dataset_contents( datasetName, params::AbstractDict{String}; @@ -800,11 +761,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value is 100. - `"nextToken"`: The token for the next set of results. """ -function list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( - "GET", "/datasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics("GET", "/datasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_datasets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -825,11 +783,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value is 100. - `"nextToken"`: The token for the next set of results. """ -function list_datastores(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( - "GET", "/datastores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_datastores(; aws_config::AbstractAWSConfig=current_aws_config()) = iotanalytics( + "GET", "/datastores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_datastores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -850,11 +806,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value is 100. - `"nextToken"`: The token for the next set of results. """ -function list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( - "GET", "/pipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = iotanalytics( + "GET", "/pipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -873,17 +827,14 @@ Lists the tags (metadata) that you have assigned to the resource. - `resource_arn`: The ARN of the resource whose tags you want to list. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "GET", "/tags", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -913,17 +864,14 @@ correct an invalid policy), it takes up to five minutes for that change to take - `logging_options`: The new values of the IoT Analytics logging options. """ -function put_logging_options( - loggingOptions; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +put_logging_options(loggingOptions; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "PUT", "/logging", Dict{String,Any}("loggingOptions" => loggingOptions); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_logging_options( loggingOptions, params::AbstractDict{String}; @@ -955,17 +903,15 @@ Simulates the results of running a pipeline activity on a message payload. than 30 seconds or less) can be used. """ -function run_pipeline_activity( +run_pipeline_activity( payloads, pipelineActivity; aws_config::AbstractAWSConfig=current_aws_config() +) = iotanalytics( + "POST", + "/pipelineactivities/run", + Dict{String,Any}("payloads" => payloads, "pipelineActivity" => pipelineActivity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotanalytics( - "POST", - "/pipelineactivities/run", - Dict{String,Any}("payloads" => payloads, "pipelineActivity" => pipelineActivity); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function run_pipeline_activity( payloads, pipelineActivity, @@ -1006,16 +952,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default is also 10. - `"startTime"`: The start of the time window from which sample messages are retrieved. """ -function sample_channel_data( - channelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +sample_channel_data(channelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "GET", "/channels/$(channelName)/sample"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function sample_channel_data( channelName, params::AbstractDict{String}; @@ -1049,16 +992,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startTime"`: The start time (inclusive) of raw message data that is reprocessed. If you specify a value for the startTime parameter, you must not use the channelMessages object. """ -function start_pipeline_reprocessing( +start_pipeline_reprocessing( pipelineName; aws_config::AbstractAWSConfig=current_aws_config() +) = iotanalytics( + "POST", + "/pipelines/$(pipelineName)/reprocessing"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotanalytics( - "POST", - "/pipelines/$(pipelineName)/reprocessing"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_pipeline_reprocessing( pipelineName, params::AbstractDict{String}; @@ -1085,15 +1026,14 @@ manage a resource. - `tags`: The new or modified tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "POST", "/tags", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1126,17 +1066,14 @@ Removes the given tags (metadata) from the resource. - `tag_keys`: The keys of those tags which you want to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "DELETE", "/tags", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1175,14 +1112,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retentionPeriod"`: How long, in days, message data is kept for the channel. The retention period can't be updated if the channel's Amazon S3 storage is customer-managed. """ -function update_channel(channelName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +update_channel(channelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "PUT", "/channels/$(channelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_channel( channelName, params::AbstractDict{String}; @@ -1222,17 +1158,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide. """ -function update_dataset( - actions, datasetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotanalytics( +update_dataset(actions, datasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "PUT", "/datasets/$(datasetName)", Dict{String,Any}("actions" => actions); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_dataset( actions, datasetName, @@ -1269,14 +1202,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retentionPeriod"`: How long, in days, message data is kept for the data store. The retention period can't be updated if the data store's Amazon S3 storage is customer-managed. """ -function update_datastore(datastoreName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotanalytics( +update_datastore(datastoreName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotanalytics( "PUT", "/datastores/$(datastoreName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_datastore( datastoreName, params::AbstractDict{String}; @@ -1310,17 +1242,15 @@ array. - `pipeline_name`: The name of the pipeline to update. """ -function update_pipeline( +update_pipeline( pipelineActivities, pipelineName; aws_config::AbstractAWSConfig=current_aws_config() +) = iotanalytics( + "PUT", + "/pipelines/$(pipelineName)", + Dict{String,Any}("pipelineActivities" => pipelineActivities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotanalytics( - "PUT", - "/pipelines/$(pipelineName)", - Dict{String,Any}("pipelineActivities" => pipelineActivities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pipeline( pipelineActivities, pipelineName, diff --git a/src/services/iotdeviceadvisor.jl b/src/services/iotdeviceadvisor.jl index c01361842..6dfcea91a 100644 --- a/src/services/iotdeviceadvisor.jl +++ b/src/services/iotdeviceadvisor.jl @@ -19,17 +19,15 @@ CreateSuiteDefinition action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The tags to be attached to the suite definition. """ -function create_suite_definition( +create_suite_definition( suiteDefinitionConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = iotdeviceadvisor( + "POST", + "/suiteDefinitions", + Dict{String,Any}("suiteDefinitionConfiguration" => suiteDefinitionConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotdeviceadvisor( - "POST", - "/suiteDefinitions", - Dict{String,Any}("suiteDefinitionConfiguration" => suiteDefinitionConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_suite_definition( suiteDefinitionConfiguration, params::AbstractDict{String}; @@ -63,16 +61,14 @@ DeleteSuiteDefinition action. - `suite_definition_id`: Suite definition ID of the test suite to be deleted. """ -function delete_suite_definition( +delete_suite_definition( suiteDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotdeviceadvisor( + "DELETE", + "/suiteDefinitions/$(suiteDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotdeviceadvisor( - "DELETE", - "/suiteDefinitions/$(suiteDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_suite_definition( suiteDefinitionId, params::AbstractDict{String}; @@ -100,11 +96,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deviceRoleArn"`: The device role ARN of the device. This is an optional parameter. - `"thingArn"`: The thing ARN of the device. This is an optional parameter. """ -function get_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotdeviceadvisor( - "GET", "/endpoint"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_endpoint(; aws_config::AbstractAWSConfig=current_aws_config()) = iotdeviceadvisor( + "GET", "/endpoint"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_endpoint( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -127,16 +121,14 @@ GetSuiteDefinition action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"suiteDefinitionVersion"`: Suite definition version of the test suite to get. """ -function get_suite_definition( +get_suite_definition( suiteDefinitionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotdeviceadvisor( + "GET", + "/suiteDefinitions/$(suiteDefinitionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotdeviceadvisor( - "GET", - "/suiteDefinitions/$(suiteDefinitionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_suite_definition( suiteDefinitionId, params::AbstractDict{String}; @@ -163,16 +155,14 @@ GetSuiteRun action. - `suite_run_id`: Suite run ID for the test suite run. """ -function get_suite_run( +get_suite_run( suiteDefinitionId, suiteRunId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotdeviceadvisor( + "GET", + "/suiteDefinitions/$(suiteDefinitionId)/suiteRuns/$(suiteRunId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotdeviceadvisor( - "GET", - "/suiteDefinitions/$(suiteDefinitionId)/suiteRuns/$(suiteRunId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_suite_run( suiteDefinitionId, suiteRunId, @@ -200,16 +190,14 @@ Requires permission to access the GetSuiteRunReport action. - `suite_run_id`: Suite run ID of the test suite run. """ -function get_suite_run_report( +get_suite_run_report( suiteDefinitionId, suiteRunId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotdeviceadvisor( + "GET", + "/suiteDefinitions/$(suiteDefinitionId)/suiteRuns/$(suiteRunId)/report"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotdeviceadvisor( - "GET", - "/suiteDefinitions/$(suiteDefinitionId)/suiteRuns/$(suiteRunId)/report"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_suite_run_report( suiteDefinitionId, suiteRunId, @@ -237,11 +225,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at once. - `"nextToken"`: A token used to get the next set of results. """ -function list_suite_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotdeviceadvisor( +list_suite_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotdeviceadvisor( "GET", "/suiteDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_suite_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -271,11 +258,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"suiteDefinitionVersion"`: Must be passed along with suiteDefinitionId. Lists the test suite runs of the specified test suite based on suite definition version. """ -function list_suite_runs(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotdeviceadvisor( - "GET", "/suiteRuns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_suite_runs(; aws_config::AbstractAWSConfig=current_aws_config()) = iotdeviceadvisor( + "GET", "/suiteRuns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_suite_runs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -296,16 +281,13 @@ the ListTagsForResource action. SuiteDefinition ARN or SuiteRun ARN. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotdeviceadvisor( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iotdeviceadvisor( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -336,19 +318,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"suiteDefinitionVersion"`: Suite definition version of the test suite. - `"tags"`: The tags to be attached to the suite run. """ -function start_suite_run( +start_suite_run( suiteDefinitionId, suiteRunConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotdeviceadvisor( + "POST", + "/suiteDefinitions/$(suiteDefinitionId)/suiteRuns", + Dict{String,Any}("suiteRunConfiguration" => suiteRunConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotdeviceadvisor( - "POST", - "/suiteDefinitions/$(suiteDefinitionId)/suiteRuns", - Dict{String,Any}("suiteRunConfiguration" => suiteRunConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_suite_run( suiteDefinitionId, suiteRunConfiguration, @@ -382,16 +362,14 @@ access the StopSuiteRun action. - `suite_run_id`: Suite run ID of the test suite run to be stopped. """ -function stop_suite_run( +stop_suite_run( suiteDefinitionId, suiteRunId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotdeviceadvisor( + "POST", + "/suiteDefinitions/$(suiteDefinitionId)/suiteRuns/$(suiteRunId)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotdeviceadvisor( - "POST", - "/suiteDefinitions/$(suiteDefinitionId)/suiteRuns/$(suiteRunId)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_suite_run( suiteDefinitionId, suiteRunId, @@ -420,15 +398,14 @@ to access the TagResource action. - `tags`: The tags to be attached to the IoT Device Advisor resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iotdeviceadvisor( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iotdeviceadvisor( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -457,17 +434,14 @@ UntagResource action. - `tag_keys`: List of tag keys to remove from the IoT Device Advisor resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotdeviceadvisor( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iotdeviceadvisor( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -496,19 +470,17 @@ UpdateSuiteDefinition action. - `suite_definition_id`: Suite definition ID of the test suite to be updated. """ -function update_suite_definition( +update_suite_definition( suiteDefinitionConfiguration, suiteDefinitionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotdeviceadvisor( + "PATCH", + "/suiteDefinitions/$(suiteDefinitionId)", + Dict{String,Any}("suiteDefinitionConfiguration" => suiteDefinitionConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotdeviceadvisor( - "PATCH", - "/suiteDefinitions/$(suiteDefinitionId)", - Dict{String,Any}("suiteDefinitionConfiguration" => suiteDefinitionConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_suite_definition( suiteDefinitionConfiguration, suiteDefinitionId, diff --git a/src/services/iotfleethub.jl b/src/services/iotfleethub.jl index bb2b41eff..1988342b1 100644 --- a/src/services/iotfleethub.jl +++ b/src/services/iotfleethub.jl @@ -29,21 +29,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A set of key/value pairs that you can use to manage the web application resource. """ -function create_application( +create_application( applicationName, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleethub( + "POST", + "/applications", + Dict{String,Any}( + "applicationName" => applicationName, + "roleArn" => roleArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleethub( - "POST", - "/applications", - Dict{String,Any}( - "applicationName" => applicationName, - "roleArn" => roleArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( applicationName, roleArn, @@ -84,17 +82,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleethub( +delete_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleethub( "DELETE", "/applications/$(applicationId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( applicationId, params::AbstractDict{String}; @@ -121,16 +116,13 @@ Gets information about a Fleet Hub for IoT Device Management web application. - `application_id`: The unique Id of the web application. """ -function describe_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleethub( +describe_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleethub( "GET", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_application( applicationId, params::AbstractDict{String}; @@ -155,11 +147,9 @@ Gets a list of Fleet Hub for IoT Device Management web applications for the curr Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: A token used to get the next set of results. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleethub( - "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleethub( + "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -182,16 +172,13 @@ Lists the tags for the specified resource. - `resource_arn`: The ARN of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleethub( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleethub( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -218,15 +205,14 @@ to manage a resource. - `tags`: The new or modified tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleethub( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleethub( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -253,17 +239,14 @@ Removes the specified tags (metadata) from the resource. - `tag_keys`: A list of the keys of the tags to be removed from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleethub( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleethub( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -296,17 +279,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function update_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleethub( +update_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleethub( "PATCH", "/applications/$(applicationId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( applicationId, params::AbstractDict{String}; diff --git a/src/services/iotfleetwise.jl b/src/services/iotfleetwise.jl index f6f8e5316..7619cd967 100644 --- a/src/services/iotfleetwise.jl +++ b/src/services/iotfleetwise.jl @@ -15,16 +15,14 @@ using AWS.UUIDs - `vehicle_name`: The unique ID of the vehicle to associate with the fleet. """ -function associate_vehicle_fleet( +associate_vehicle_fleet( fleetId, vehicleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "AssociateVehicleFleet", + Dict{String,Any}("fleetId" => fleetId, "vehicleName" => vehicleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "AssociateVehicleFleet", - Dict{String,Any}("fleetId" => fleetId, "vehicleName" => vehicleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_vehicle_fleet( fleetId, vehicleName, @@ -58,14 +56,13 @@ multiple vehicles (AWS CLI) in the Amazon Web Services IoT FleetWise Developer G see the API data type. """ -function batch_create_vehicle(vehicles; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +batch_create_vehicle(vehicles; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "BatchCreateVehicle", Dict{String,Any}("vehicles" => vehicles); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_create_vehicle( vehicles, params::AbstractDict{String}; @@ -94,14 +91,13 @@ multiple vehicles (AWS CLI) in the Amazon Web Services IoT FleetWise Developer G see the API data type. """ -function batch_update_vehicle(vehicles; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +batch_update_vehicle(vehicles; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "BatchUpdateVehicle", Dict{String,Any}("vehicles" => vehicles); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_update_vehicle( vehicles, params::AbstractDict{String}; @@ -177,25 +173,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys approved. If it's not specified, 0 is used. Default: 0 - `"tags"`: Metadata that can be used to manage the campaign. """ -function create_campaign( +create_campaign( collectionScheme, name, signalCatalogArn, targetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotfleetwise( + "CreateCampaign", + Dict{String,Any}( + "collectionScheme" => collectionScheme, + "name" => name, + "signalCatalogArn" => signalCatalogArn, + "targetArn" => targetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "CreateCampaign", - Dict{String,Any}( - "collectionScheme" => collectionScheme, - "name" => name, - "signalCatalogArn" => signalCatalogArn, - "targetArn" => targetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_campaign( collectionScheme, name, @@ -244,16 +238,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"signalDecoders"`: A list of information about signal decoders. - `"tags"`: Metadata that can be used to manage the decoder manifest. """ -function create_decoder_manifest( +create_decoder_manifest( modelManifestArn, name; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "CreateDecoderManifest", + Dict{String,Any}("modelManifestArn" => modelManifestArn, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "CreateDecoderManifest", - Dict{String,Any}("modelManifestArn" => modelManifestArn, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_decoder_manifest( modelManifestArn, name, @@ -291,16 +283,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A brief description of the fleet to create. - `"tags"`: Metadata that can be used to manage the fleet. """ -function create_fleet( +create_fleet( fleetId, signalCatalogArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "CreateFleet", + Dict{String,Any}("fleetId" => fleetId, "signalCatalogArn" => signalCatalogArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "CreateFleet", - Dict{String,Any}("fleetId" => fleetId, "signalCatalogArn" => signalCatalogArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_fleet( fleetId, signalCatalogArn, @@ -341,18 +331,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A brief description of the vehicle model. - `"tags"`: Metadata that can be used to manage the vehicle model. """ -function create_model_manifest( +create_model_manifest( name, nodes, signalCatalogArn; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "CreateModelManifest", + Dict{String,Any}( + "name" => name, "nodes" => nodes, "signalCatalogArn" => signalCatalogArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "CreateModelManifest", - Dict{String,Any}( - "name" => name, "nodes" => nodes, "signalCatalogArn" => signalCatalogArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_manifest( name, nodes, @@ -392,14 +380,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys signals. For more information, see the API data type. - `"tags"`: Metadata that can be used to manage the signal catalog. """ -function create_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +create_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "CreateSignalCatalog", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_signal_catalog( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -437,23 +424,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys dataExtraDimensions for them to display in Amazon Timestream. - `"tags"`: Metadata that can be used to manage the vehicle. """ -function create_vehicle( +create_vehicle( decoderManifestArn, modelManifestArn, vehicleName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotfleetwise( + "CreateVehicle", + Dict{String,Any}( + "decoderManifestArn" => decoderManifestArn, + "modelManifestArn" => modelManifestArn, + "vehicleName" => vehicleName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "CreateVehicle", - Dict{String,Any}( - "decoderManifestArn" => decoderManifestArn, - "modelManifestArn" => modelManifestArn, - "vehicleName" => vehicleName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vehicle( decoderManifestArn, modelManifestArn, @@ -490,14 +475,12 @@ removes it from any vehicles. - `name`: The name of the campaign to delete. """ -function delete_campaign(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "DeleteCampaign", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_campaign(name; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "DeleteCampaign", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_campaign( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -521,14 +504,13 @@ IoT FleetWise sends back an HTTP 200 response with an empty body. - `name`: The name of the decoder manifest to delete. """ -function delete_decoder_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +delete_decoder_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "DeleteDecoderManifest", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_decoder_manifest( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -553,14 +535,12 @@ FleetWise sends back an HTTP 200 response with an empty body. - `fleet_id`: The ID of the fleet to delete. """ -function delete_fleet(fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "DeleteFleet", - Dict{String,Any}("fleetId" => fleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fleet(fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "DeleteFleet", + Dict{String,Any}("fleetId" => fleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fleet( fleetId, params::AbstractDict{String}; @@ -585,14 +565,13 @@ Amazon Web Services IoT FleetWise sends back an HTTP 200 response with an empty - `name`: The name of the model manifest to delete. """ -function delete_model_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +delete_model_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "DeleteModelManifest", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_model_manifest( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -615,14 +594,13 @@ Services IoT FleetWise sends back an HTTP 200 response with an empty body. - `name`: The name of the signal catalog to delete. """ -function delete_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +delete_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "DeleteSignalCatalog", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_signal_catalog( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -646,14 +624,13 @@ body. - `vehicle_name`: The ID of the vehicle to delete. """ -function delete_vehicle(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +delete_vehicle(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "DeleteVehicle", Dict{String,Any}("vehicleName" => vehicleName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vehicle( vehicleName, params::AbstractDict{String}; @@ -682,16 +659,14 @@ Amazon Web Services IoT FleetWise sends back an HTTP 200 response with an empty - `vehicle_name`: The unique ID of the vehicle to disassociate from the fleet. """ -function disassociate_vehicle_fleet( +disassociate_vehicle_fleet( fleetId, vehicleName; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "DisassociateVehicleFleet", + Dict{String,Any}("fleetId" => fleetId, "vehicleName" => vehicleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "DisassociateVehicleFleet", - Dict{String,Any}("fleetId" => fleetId, "vehicleName" => vehicleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_vehicle_fleet( fleetId, vehicleName, @@ -722,14 +697,12 @@ end - `name`: The name of the campaign to retrieve information about. """ -function get_campaign(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "GetCampaign", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_campaign(name; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "GetCampaign", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_campaign( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -751,14 +724,13 @@ end - `name`: The name of the decoder manifest to retrieve information about. """ -function get_decoder_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +get_decoder_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "GetDecoderManifest", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_decoder_manifest( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -778,11 +750,10 @@ Retrieves the encryption configuration for resources and data in Amazon Web Serv FleetWise. """ -function get_encryption_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +get_encryption_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "GetEncryptionConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_encryption_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -804,14 +775,12 @@ end - `fleet_id`: The ID of the fleet to retrieve information about. """ -function get_fleet(fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "GetFleet", - Dict{String,Any}("fleetId" => fleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_fleet(fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "GetFleet", + Dict{String,Any}("fleetId" => fleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_fleet( fleetId, params::AbstractDict{String}; @@ -832,11 +801,9 @@ end Retrieves the logging options. """ -function get_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "GetLoggingOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "GetLoggingOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_logging_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -855,14 +822,12 @@ end - `name`: The name of the vehicle model to retrieve information about. """ -function get_model_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "GetModelManifest", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_model_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "GetModelManifest", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_model_manifest( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -885,11 +850,10 @@ step-by-step procedures, see Setting up Amazon Web Services IoT FleetWise. Thi operation doesn't require input parameters. """ -function get_register_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +get_register_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "GetRegisterAccountStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_register_account_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -911,14 +875,12 @@ end - `name`: The name of the signal catalog to retrieve information about. """ -function get_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "GetSignalCatalog", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "GetSignalCatalog", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_signal_catalog( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -940,14 +902,12 @@ end - `vehicle_name`: The ID of the vehicle to retrieve information about. """ -function get_vehicle(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "GetVehicle", - Dict{String,Any}("vehicleName" => vehicleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_vehicle(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "GetVehicle", + Dict{String,Any}("vehicleName" => vehicleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_vehicle( vehicleName, params::AbstractDict{String}; @@ -981,14 +941,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function get_vehicle_status(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +get_vehicle_status(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "GetVehicleStatus", Dict{String,Any}("vehicleName" => vehicleName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_vehicle_status( vehicleName, params::AbstractDict{String}; @@ -1015,18 +974,14 @@ end - `network_file_definitions`: The file to load into an Amazon Web Services account. """ -function import_decoder_manifest( +import_decoder_manifest( name, networkFileDefinitions; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "ImportDecoderManifest", + Dict{String,Any}("name" => name, "networkFileDefinitions" => networkFileDefinitions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "ImportDecoderManifest", - Dict{String,Any}( - "name" => name, "networkFileDefinitions" => networkFileDefinitions - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_decoder_manifest( name, networkFileDefinitions, @@ -1065,14 +1020,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vss"`: The contents of the Vehicle Signal Specification (VSS) configuration. VSS is a precise language used to describe and model signals in vehicle networks. """ -function import_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +import_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "ImportSignalCatalog", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function import_signal_catalog( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1103,11 +1057,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys campaign in your account. The status can be one of: CREATING, WAITING_FOR_APPROVAL, RUNNING, or SUSPENDED. """ -function list_campaigns(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "ListCampaigns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_campaigns(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise("ListCampaigns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_campaigns( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1135,16 +1086,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_decoder_manifest_network_interfaces( +list_decoder_manifest_network_interfaces( name; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "ListDecoderManifestNetworkInterfaces", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "ListDecoderManifestNetworkInterfaces", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_decoder_manifest_network_interfaces( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1176,16 +1125,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_decoder_manifest_signals( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleetwise( +list_decoder_manifest_signals(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "ListDecoderManifestSignals", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_decoder_manifest_signals( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1215,11 +1161,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_decoder_manifests(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "ListDecoderManifests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_decoder_manifests(; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "ListDecoderManifests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_decoder_manifests( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1248,11 +1192,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "ListFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise("ListFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1281,16 +1222,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_fleets_for_vehicle( - vehicleName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleetwise( +list_fleets_for_vehicle(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "ListFleetsForVehicle", Dict{String,Any}("vehicleName" => vehicleName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_fleets_for_vehicle( vehicleName, params::AbstractDict{String}; @@ -1326,14 +1264,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_model_manifest_nodes(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +list_model_manifest_nodes(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "ListModelManifestNodes", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_model_manifest_nodes( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1363,11 +1300,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"signalCatalogArn"`: The ARN of a signal catalog. If you specify a signal catalog, only the vehicle models associated with it are returned. """ -function list_model_manifests(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "ListModelManifests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_model_manifests(; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "ListModelManifests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_model_manifests( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1397,14 +1332,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contain a pagination token value. - `"signalNodeType"`: The type of node in the signal catalog. """ -function list_signal_catalog_nodes(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +list_signal_catalog_nodes(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "ListSignalCatalogNodes", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_signal_catalog_nodes( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1434,11 +1368,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_signal_catalogs(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "ListSignalCatalogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_signal_catalogs(; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "ListSignalCatalogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_signal_catalogs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1457,16 +1389,13 @@ Lists the tags (metadata) you have assigned to the resource. - `resource_arn`: The ARN of the resource. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleetwise( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1505,11 +1434,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_vehicles(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "ListVehicles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_vehicles(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise("ListVehicles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_vehicles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1538,14 +1464,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and include the returned token. When all results have been returned, the response does not contain a pagination token value. """ -function list_vehicles_in_fleet(fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +list_vehicles_in_fleet(fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "ListVehiclesInFleet", Dict{String,Any}("fleetId" => fleetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_vehicles_in_fleet( fleetId, params::AbstractDict{String}; @@ -1576,16 +1501,14 @@ Web Services IoT FleetWise Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"kmsKeyId"`: The ID of the KMS key that is used for encryption. """ -function put_encryption_configuration( +put_encryption_configuration( encryptionType; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "PutEncryptionConfiguration", + Dict{String,Any}("encryptionType" => encryptionType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "PutEncryptionConfiguration", - Dict{String,Any}("encryptionType" => encryptionType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_encryption_configuration( encryptionType, params::AbstractDict{String}; @@ -1612,16 +1535,14 @@ Creates or updates the logging option. CloudWatch Logs. """ -function put_logging_options( +put_logging_options( cloudWatchLogDelivery; aws_config::AbstractAWSConfig=current_aws_config() +) = iotfleetwise( + "PutLoggingOptions", + Dict{String,Any}("cloudWatchLogDelivery" => cloudWatchLogDelivery); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotfleetwise( - "PutLoggingOptions", - Dict{String,Any}("cloudWatchLogDelivery" => cloudWatchLogDelivery); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_logging_options( cloudWatchLogDelivery, params::AbstractDict{String}; @@ -1669,11 +1590,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data to Amazon Timestream. - `"timestreamResources"`: """ -function register_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "RegisterAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +register_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise("RegisterAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function register_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1694,14 +1612,13 @@ manage a resource. - `tags`: The new or modified tags for the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1733,16 +1650,13 @@ Removes the given tags (metadata) from the resource. - `tag_keys`: A list of the keys of the tags to be removed from the resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotfleetwise( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1784,14 +1698,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: An empty array - `"description"`: The description of the campaign. """ -function update_campaign(action, name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +update_campaign(action, name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "UpdateCampaign", Dict{String,Any}("action" => action, "name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_campaign( action, name, @@ -1836,14 +1749,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The state of the decoder manifest. If the status is ACTIVE, the decoder manifest can't be edited. If the status is DRAFT, you can edit the decoder manifest. """ -function update_decoder_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +update_decoder_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "UpdateDecoderManifest", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_decoder_manifest( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1869,14 +1781,12 @@ Amazon Web Services IoT FleetWise sends back an HTTP 200 response with an empty Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: An updated description of the fleet. """ -function update_fleet(fleetId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( - "UpdateFleet", - Dict{String,Any}("fleetId" => fleetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_fleet(fleetId; aws_config::AbstractAWSConfig=current_aws_config()) = iotfleetwise( + "UpdateFleet", + Dict{String,Any}("fleetId" => fleetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_fleet( fleetId, params::AbstractDict{String}; @@ -1910,14 +1820,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The state of the vehicle model. If the status is ACTIVE, the vehicle model can't be edited. If the status is DRAFT, you can edit the vehicle model. """ -function update_model_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +update_model_manifest(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "UpdateModelManifest", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_model_manifest( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1946,14 +1855,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys catalog. - `"nodesToUpdate"`: A list of information about nodes to update in the signal catalog. """ -function update_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +update_signal_catalog(name; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "UpdateSignalCatalog", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_signal_catalog( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1986,14 +1894,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"modelManifestArn"`: The ARN of a vehicle model (model manifest) associated with the vehicle. """ -function update_vehicle(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) - return iotfleetwise( +update_vehicle(vehicleName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotfleetwise( "UpdateVehicle", Dict{String,Any}("vehicleName" => vehicleName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_vehicle( vehicleName, params::AbstractDict{String}; diff --git a/src/services/iotsecuretunneling.jl b/src/services/iotsecuretunneling.jl index 3b91810d3..5eadc9d2b 100644 --- a/src/services/iotsecuretunneling.jl +++ b/src/services/iotsecuretunneling.jl @@ -19,14 +19,13 @@ transmitted. Requires permission to access the CloseTunnel action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"delete"`: When set to true, IoT Secure Tunneling deletes the tunnel data immediately. """ -function close_tunnel(tunnelId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsecuretunneling( +close_tunnel(tunnelId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsecuretunneling( "CloseTunnel", Dict{String,Any}("tunnelId" => tunnelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function close_tunnel( tunnelId, params::AbstractDict{String}; @@ -53,14 +52,13 @@ access the DescribeTunnel action. - `tunnel_id`: The tunnel to describe. """ -function describe_tunnel(tunnelId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsecuretunneling( +describe_tunnel(tunnelId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsecuretunneling( "DescribeTunnel", Dict{String,Any}("tunnelId" => tunnelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_tunnel( tunnelId, params::AbstractDict{String}; @@ -86,16 +84,13 @@ Lists the tags for the specified resource. - `resource_arn`: The resource ARN. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsecuretunneling( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsecuretunneling( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -126,11 +121,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response; otherwise null to receive the first set of results. - `"thingName"`: The name of the IoT thing associated with the destination device. """ -function list_tunnels(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsecuretunneling( - "ListTunnels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tunnels(; aws_config::AbstractAWSConfig=current_aws_config()) = iotsecuretunneling( + "ListTunnels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_tunnels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -153,11 +146,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of tag metadata. - `"timeoutConfig"`: Timeout configuration for a tunnel. """ -function open_tunnel(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsecuretunneling( - "OpenTunnel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +open_tunnel(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsecuretunneling("OpenTunnel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function open_tunnel( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -186,16 +176,14 @@ used for the remaining 8 hours. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"destinationConfig"`: """ -function rotate_tunnel_access_token( +rotate_tunnel_access_token( clientMode, tunnelId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsecuretunneling( + "RotateTunnelAccessToken", + Dict{String,Any}("clientMode" => clientMode, "tunnelId" => tunnelId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsecuretunneling( - "RotateTunnelAccessToken", - Dict{String,Any}("clientMode" => clientMode, "tunnelId" => tunnelId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rotate_tunnel_access_token( clientMode, tunnelId, @@ -227,14 +215,13 @@ A resource tag. - `tags`: The tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsecuretunneling( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsecuretunneling( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -266,16 +253,13 @@ Removes a tag from a resource. - `tag_keys`: The keys of the tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsecuretunneling( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsecuretunneling( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/iotsitewise.jl b/src/services/iotsitewise.jl index 6d564db1d..a60d638e6 100644 --- a/src/services/iotsitewise.jl +++ b/src/services/iotsitewise.jl @@ -33,21 +33,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function associate_assets( +associate_assets( assetId, childAssetId, hierarchyId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/assets/$(assetId)/associate", + Dict{String,Any}( + "childAssetId" => childAssetId, + "hierarchyId" => hierarchyId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/assets/$(assetId)/associate", - Dict{String,Any}( - "childAssetId" => childAssetId, - "hierarchyId" => hierarchyId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_assets( assetId, childAssetId, @@ -96,22 +94,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function associate_time_series_to_asset_property( +associate_time_series_to_asset_property( alias, assetId, propertyId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/timeseries/associate/", + Dict{String,Any}( + "alias" => alias, + "assetId" => assetId, + "propertyId" => propertyId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/timeseries/associate/", - Dict{String,Any}( - "alias" => alias, - "assetId" => assetId, - "propertyId" => propertyId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_time_series_to_asset_property( alias, assetId, @@ -155,17 +151,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function batch_associate_project_assets( +batch_associate_project_assets( assetIds, projectId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/projects/$(projectId)/assets/associate", + Dict{String,Any}("assetIds" => assetIds, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/projects/$(projectId)/assets/associate", - Dict{String,Any}("assetIds" => assetIds, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_project_assets( assetIds, projectId, @@ -203,17 +197,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function batch_disassociate_project_assets( +batch_disassociate_project_assets( assetIds, projectId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/projects/$(projectId)/assets/disassociate", + Dict{String,Any}("assetIds" => assetIds, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/projects/$(projectId)/assets/disassociate", - Dict{String,Any}("assetIds" => assetIds, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_project_assets( assetIds, projectId, @@ -254,17 +246,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of maxResults. The maximum value of maxResults is 4000. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function batch_get_asset_property_aggregates( +batch_get_asset_property_aggregates( entries; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/properties/batch/aggregates", + Dict{String,Any}("entries" => entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/properties/batch/aggregates", - Dict{String,Any}("entries" => entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_asset_property_aggregates( entries, params::AbstractDict{String}; @@ -294,17 +284,15 @@ current values in the IoT SiteWise User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: The token to be used for the next set of paginated results. """ -function batch_get_asset_property_value( +batch_get_asset_property_value( entries; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/properties/batch/latest", + Dict{String,Any}("entries" => entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/properties/batch/latest", - Dict{String,Any}("entries" => entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_asset_property_value( entries, params::AbstractDict{String}; @@ -338,17 +326,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of maxResults. The maximum value of maxResults is 20000. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function batch_get_asset_property_value_history( +batch_get_asset_property_value_history( entries; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/properties/batch/history", + Dict{String,Any}("entries" => entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/properties/batch/history", - Dict{String,Any}("entries" => entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_asset_property_value_history( entries, params::AbstractDict{String}; @@ -387,17 +373,15 @@ BatchPutAssetPropertyValue authorization in the IoT SiteWise User Guide. specify up to 10 entries per request. """ -function batch_put_asset_property_value( +batch_put_asset_property_value( entries; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/properties", + Dict{String,Any}("entries" => entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/properties", - Dict{String,Any}("entries" => entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_asset_property_value( entries, params::AbstractDict{String}; @@ -436,25 +420,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide. """ -function create_access_policy( +create_access_policy( accessPolicyIdentity, accessPolicyPermission, accessPolicyResource; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "POST", + "/access-policies", + Dict{String,Any}( + "accessPolicyIdentity" => accessPolicyIdentity, + "accessPolicyPermission" => accessPolicyPermission, + "accessPolicyResource" => accessPolicyResource, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/access-policies", - Dict{String,Any}( - "accessPolicyIdentity" => accessPolicyIdentity, - "accessPolicyPermission" => accessPolicyPermission, - "accessPolicyResource" => accessPolicyResource, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_policy( accessPolicyIdentity, accessPolicyPermission, @@ -512,10 +494,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide. """ -function create_asset( - assetModelId, assetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +create_asset(assetModelId, assetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "POST", "/assets", Dict{String,Any}( @@ -526,7 +506,6 @@ function create_asset( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_asset( assetModelId, assetName, @@ -567,7 +546,7 @@ reusable component that you can include in the composite models of other asset m can't create assets directly from this type of asset model. # Arguments -- `asset_model_name`: A unique, friendly name for the asset model. +- `asset_model_name`: A unique name for the asset model. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -576,7 +555,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys composite models that model parts of your industrial equipment. Each composite model has a type that defines the properties that the composite model supports. Use composite models to define alarms on this asset model. When creating custom composite models, you need to use - CreateAssetModelCompositeModel. For more information, see <LINK>. + CreateAssetModelCompositeModel. For more information, see Creating custom composite models + (Components) in the IoT SiteWise User Guide. - `"assetModelDescription"`: A description for the asset model. - `"assetModelExternalId"`: An external ID to assign to the asset model. The external ID must be unique within your Amazon Web Services account. For more information, see Using @@ -603,10 +583,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide. """ -function create_asset_model( - assetModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +create_asset_model(assetModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "POST", "/asset-models", Dict{String,Any}( @@ -615,7 +593,6 @@ function create_asset_model( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_asset_model( assetModelName, params::AbstractDict{String}; @@ -657,13 +634,22 @@ with assetModelType of COMPONENT_MODEL. To create an inline model, specify the assetModelCompositeModelProperties and don't include an composedAssetModelId. # Arguments -- `asset_model_composite_model_name`: A unique, friendly name for the composite model. +- `asset_model_composite_model_name`: A unique name for the composite model. - `asset_model_composite_model_type`: The composite model type. Valid values are AWS/ALARM, CUSTOM, or AWS/L4E_ANOMALY. - `asset_model_id`: The ID of the asset model this composite model is a part of. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"If-Match"`: The expected current entity tag (ETag) for the asset model’s latest or + active version (specified using matchForVersionType). The create request is rejected if the + tag does not match the latest or active version's current entity tag. See Optimistic + locking for asset model writes in the IoT SiteWise User Guide. +- `"If-None-Match"`: Accepts * to reject the create request if an active version (specified + using matchForVersionType as ACTIVE) already exists for the asset model. +- `"Match-For-Version-Type"`: Specifies the asset model version type (LATEST or ACTIVE) + used in conjunction with If-Match or If-None-Match headers to determine the target ETag for + the create operation. - `"assetModelCompositeModelDescription"`: A description for the composite model. - `"assetModelCompositeModelExternalId"`: An external ID to assign to the composite model. If the composite model is a derived composite model, or one nested inside a component @@ -674,33 +660,33 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique. - `"assetModelCompositeModelProperties"`: The property definitions of the composite model. - For more information, see <LINK>. You can specify up to 200 properties per composite - model. For more information, see Quotas in the IoT SiteWise User Guide. + For more information, see Inline custom composite models in the IoT SiteWise User Guide. + You can specify up to 200 properties per composite model. For more information, see Quotas + in the IoT SiteWise User Guide. - `"clientToken"`: A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required. -- `"composedAssetModelId"`: The ID of a composite model on this asset. +- `"composedAssetModelId"`: The ID of a component model which is reused to create this + composite model. - `"parentAssetModelCompositeModelId"`: The ID of the parent composite model in this asset model relationship. """ -function create_asset_model_composite_model( +create_asset_model_composite_model( assetModelCompositeModelName, assetModelCompositeModelType, assetModelId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "POST", + "/asset-models/$(assetModelId)/composite-models", + Dict{String,Any}( + "assetModelCompositeModelName" => assetModelCompositeModelName, + "assetModelCompositeModelType" => assetModelCompositeModelType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/asset-models/$(assetModelId)/composite-models", - Dict{String,Any}( - "assetModelCompositeModelName" => assetModelCompositeModelName, - "assetModelCompositeModelType" => assetModelCompositeModelType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_asset_model_composite_model( assetModelCompositeModelName, assetModelCompositeModelType, @@ -755,28 +741,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deleteFilesAfterImport"`: If set to true, your data files is deleted from S3, after ingestion into IoT SiteWise storage. """ -function create_bulk_import_job( +create_bulk_import_job( errorReportLocation, files, jobConfiguration, jobName, jobRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "POST", + "/jobs", + Dict{String,Any}( + "errorReportLocation" => errorReportLocation, + "files" => files, + "jobConfiguration" => jobConfiguration, + "jobName" => jobName, + "jobRoleArn" => jobRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/jobs", - Dict{String,Any}( - "errorReportLocation" => errorReportLocation, - "files" => files, - "jobConfiguration" => jobConfiguration, - "jobName" => jobName, - "jobRoleArn" => jobRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_bulk_import_job( errorReportLocation, files, @@ -828,25 +812,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the dashboard. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide. """ -function create_dashboard( +create_dashboard( dashboardDefinition, dashboardName, projectId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "POST", + "/dashboards", + Dict{String,Any}( + "dashboardDefinition" => dashboardDefinition, + "dashboardName" => dashboardName, + "projectId" => projectId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/dashboards", - Dict{String,Any}( - "dashboardDefinition" => dashboardDefinition, - "dashboardName" => dashboardName, - "projectId" => projectId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dashboard( dashboardDefinition, dashboardName, @@ -883,7 +865,7 @@ from local servers to IoT SiteWise. For more information, see Ingesting data usi gateway in the IoT SiteWise User Guide. # Arguments -- `gateway_name`: A unique, friendly name for the gateway. +- `gateway_name`: A unique name for the gateway. - `gateway_platform`: The gateway's platform. You can only specify one platform in a gateway. @@ -892,19 +874,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the gateway. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide. """ -function create_gateway( +create_gateway( gatewayName, gatewayPlatform; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/20200301/gateways", + Dict{String,Any}("gatewayName" => gatewayName, "gatewayPlatform" => gatewayPlatform); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/20200301/gateways", - Dict{String,Any}( - "gatewayName" => gatewayName, "gatewayPlatform" => gatewayPlatform - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_gateway( gatewayName, gatewayPlatform, @@ -971,25 +949,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the portal. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide. """ -function create_portal( +create_portal( portalContactEmail, portalName, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "POST", + "/portals", + Dict{String,Any}( + "portalContactEmail" => portalContactEmail, + "portalName" => portalName, + "roleArn" => roleArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/portals", - Dict{String,Any}( - "portalContactEmail" => portalContactEmail, - "portalName" => portalName, - "roleArn" => roleArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_portal( portalContactEmail, portalName, @@ -1037,10 +1013,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of key-value pairs that contain metadata for the project. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide. """ -function create_project( - portalId, projectName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +create_project(portalId, projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "POST", "/projects", Dict{String,Any}( @@ -1051,7 +1025,6 @@ function create_project( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_project( portalId, projectName, @@ -1094,17 +1067,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_access_policy( - accessPolicyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +delete_access_policy(accessPolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "DELETE", "/access-policies/$(accessPolicyId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_access_policy( accessPolicyId, params::AbstractDict{String}; @@ -1140,15 +1110,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_asset(assetId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "DELETE", - "/assets/$(assetId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_asset(assetId; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "DELETE", + "/assets/$(assetId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_asset( assetId, params::AbstractDict{String}; @@ -1182,21 +1150,27 @@ models in the IoT SiteWise User Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"If-Match"`: The expected current entity tag (ETag) for the asset model’s latest or + active version (specified using matchForVersionType). The delete request is rejected if the + tag does not match the latest or active version's current entity tag. See Optimistic + locking for asset model writes in the IoT SiteWise User Guide. +- `"If-None-Match"`: Accepts * to reject the delete request if an active version (specified + using matchForVersionType as ACTIVE) already exists for the asset model. +- `"Match-For-Version-Type"`: Specifies the asset model version type (LATEST or ACTIVE) + used in conjunction with If-Match or If-None-Match headers to determine the target ETag for + the delete operation. - `"clientToken"`: A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_asset_model( - assetModelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +delete_asset_model(assetModelId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "DELETE", "/asset-models/$(assetModelId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_asset_model( assetModelId, params::AbstractDict{String}; @@ -1229,23 +1203,30 @@ assets and models in the IoT SiteWise User Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"If-Match"`: The expected current entity tag (ETag) for the asset model’s latest or + active version (specified using matchForVersionType). The delete request is rejected if the + tag does not match the latest or active version's current entity tag. See Optimistic + locking for asset model writes in the IoT SiteWise User Guide. +- `"If-None-Match"`: Accepts * to reject the delete request if an active version (specified + using matchForVersionType as ACTIVE) already exists for the asset model. +- `"Match-For-Version-Type"`: Specifies the asset model version type (LATEST or ACTIVE) + used in conjunction with If-Match or If-None-Match headers to determine the target ETag for + the delete operation. - `"clientToken"`: A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_asset_model_composite_model( +delete_asset_model_composite_model( assetModelCompositeModelId, assetModelId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "DELETE", + "/asset-models/$(assetModelId)/composite-models/$(assetModelCompositeModelId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "DELETE", - "/asset-models/$(assetModelId)/composite-models/$(assetModelCompositeModelId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_asset_model_composite_model( assetModelCompositeModelId, assetModelId, @@ -1278,15 +1259,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_dashboard(dashboardId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +delete_dashboard(dashboardId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "DELETE", "/dashboards/$(dashboardId)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dashboard( dashboardId, params::AbstractDict{String}; @@ -1314,14 +1294,12 @@ remain in your gateway's file system. - `gateway_id`: The ID of the gateway to delete. """ -function delete_gateway(gatewayId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "DELETE", - "/20200301/gateways/$(gatewayId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_gateway(gatewayId; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "DELETE", + "/20200301/gateways/$(gatewayId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_gateway( gatewayId, params::AbstractDict{String}; @@ -1351,15 +1329,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_portal(portalId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "DELETE", - "/portals/$(portalId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_portal(portalId; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "DELETE", + "/portals/$(portalId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_portal( portalId, params::AbstractDict{String}; @@ -1391,15 +1367,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function delete_project(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "DELETE", - "/projects/$(projectId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_project(projectId; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "DELETE", + "/projects/$(projectId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_project( projectId, params::AbstractDict{String}; @@ -1442,15 +1416,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide. """ -function delete_time_series(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "POST", - "/timeseries/delete/", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_time_series(; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "POST", + "/timeseries/delete/", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_time_series( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1476,16 +1448,13 @@ portal or project. - `access_policy_id`: The ID of the access policy. """ -function describe_access_policy( - accessPolicyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +describe_access_policy(accessPolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/access-policies/$(accessPolicyId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_access_policy( accessPolicyId, params::AbstractDict{String}; @@ -1510,14 +1479,12 @@ Retrieves information about an action. - `action_id`: The ID of the action. """ -function describe_action(actionId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", - "/actions/$(actionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_action(actionId; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", + "/actions/$(actionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_action( actionId, params::AbstractDict{String}; @@ -1547,11 +1514,9 @@ Retrieves information about an asset. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"excludeProperties"`: Whether or not to exclude asset properties from the response. """ -function describe_asset(assetId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/assets/$(assetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_asset(assetId; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", "/assets/$(assetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_asset( assetId, params::AbstractDict{String}; @@ -1584,16 +1549,14 @@ information about the model this is based on, call DescribeAssetModelCompositeMo Referencing objects with external IDs in the IoT SiteWise User Guide. """ -function describe_asset_composite_model( +describe_asset_composite_model( assetCompositeModelId, assetId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/assets/$(assetId)/composite-models/$(assetCompositeModelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/assets/$(assetId)/composite-models/$(assetCompositeModelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_asset_composite_model( assetCompositeModelId, assetId, @@ -1622,19 +1585,19 @@ Retrieves information about an asset model. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"assetModelVersion"`: The version alias that specifies the latest or active version of + the asset model. The details are returned in the response. The default value is LATEST. See + Asset model versions in the IoT SiteWise User Guide. - `"excludeProperties"`: Whether or not to exclude asset model properties from the response. """ -function describe_asset_model( - assetModelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +describe_asset_model(assetModelId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/asset-models/$(assetModelId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_asset_model( assetModelId, params::AbstractDict{String}; @@ -1666,19 +1629,22 @@ SiteWise User Guide. format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide. +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"assetModelVersion"`: The version alias that specifies the latest or active version of + the asset model. The details are returned in the response. The default value is LATEST. See + Asset model versions in the IoT SiteWise User Guide. """ -function describe_asset_model_composite_model( +describe_asset_model_composite_model( assetModelCompositeModelId, assetModelId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "GET", + "/asset-models/$(assetModelId)/composite-models/$(assetModelCompositeModelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/asset-models/$(assetModelId)/composite-models/$(assetModelCompositeModelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_asset_model_composite_model( assetModelCompositeModelId, assetModelId, @@ -1713,16 +1679,14 @@ property. To get the value of an asset property, use GetAssetPropertyValue. information, see Referencing objects with external IDs in the IoT SiteWise User Guide. """ -function describe_asset_property( +describe_asset_property( assetId, propertyId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/assets/$(assetId)/properties/$(propertyId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/assets/$(assetId)/properties/$(propertyId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_asset_property( assetId, propertyId, @@ -1749,11 +1713,10 @@ bulk import job (CLI) in the Amazon Simple Storage Service User Guide. - `job_id`: The ID of the job. """ -function describe_bulk_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +describe_bulk_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_bulk_import_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1776,14 +1739,13 @@ Retrieves information about a dashboard. - `dashboard_id`: The ID of the dashboard. """ -function describe_dashboard(dashboardId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +describe_dashboard(dashboardId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/dashboards/$(dashboardId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dashboard( dashboardId, params::AbstractDict{String}; @@ -1807,16 +1769,14 @@ Services account in the default or specified Region. For more information, see K management in the IoT SiteWise User Guide. """ -function describe_default_encryption_configuration(; +describe_default_encryption_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/configuration/account/encryption"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/configuration/account/encryption"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_default_encryption_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1839,14 +1799,13 @@ Retrieves information about a gateway. - `gateway_id`: The ID of the gateway device. """ -function describe_gateway(gatewayId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +describe_gateway(gatewayId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/20200301/gateways/$(gatewayId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_gateway( gatewayId, params::AbstractDict{String}; @@ -1879,16 +1838,14 @@ capability configurations for a gateway, use DescribeGateway. - `gateway_id`: The ID of the gateway that defines the capability configuration. """ -function describe_gateway_capability_configuration( +describe_gateway_capability_configuration( capabilityNamespace, gatewayId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/20200301/gateways/$(gatewayId)/capability/$(capabilityNamespace)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/20200301/gateways/$(gatewayId)/capability/$(capabilityNamespace)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_gateway_capability_configuration( capabilityNamespace, gatewayId, @@ -1911,11 +1868,8 @@ end Retrieves the current IoT SiteWise logging options. """ -function describe_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/logging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_logging_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise("GET", "/logging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_logging_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1934,14 +1888,12 @@ Retrieves information about a portal. - `portal_id`: The ID of the portal. """ -function describe_portal(portalId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", - "/portals/$(portalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_portal(portalId; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", + "/portals/$(portalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_portal( portalId, params::AbstractDict{String}; @@ -1966,14 +1918,13 @@ Retrieves information about a project. - `project_id`: The ID of the project. """ -function describe_project(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +describe_project(projectId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/projects/$(projectId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_project( projectId, params::AbstractDict{String}; @@ -1995,16 +1946,13 @@ end Retrieves information about the storage configuration for IoT SiteWise. """ -function describe_storage_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +describe_storage_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/configuration/account/storage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_storage_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2038,14 +1986,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide. """ -function describe_time_series(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", - "/timeseries/describe/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_time_series(; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", + "/timeseries/describe/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_time_series( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2087,21 +2033,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function disassociate_assets( +disassociate_assets( assetId, childAssetId, hierarchyId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/assets/$(assetId)/disassociate", + Dict{String,Any}( + "childAssetId" => childAssetId, + "hierarchyId" => hierarchyId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/assets/$(assetId)/disassociate", - Dict{String,Any}( - "childAssetId" => childAssetId, - "hierarchyId" => hierarchyId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_assets( assetId, childAssetId, @@ -2150,22 +2094,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function disassociate_time_series_from_asset_property( +disassociate_time_series_from_asset_property( alias, assetId, propertyId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/timeseries/disassociate/", + Dict{String,Any}( + "alias" => alias, + "assetId" => assetId, + "propertyId" => propertyId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/timeseries/disassociate/", - Dict{String,Any}( - "alias" => alias, - "assetId" => assetId, - "propertyId" => propertyId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_time_series_from_asset_property( alias, assetId, @@ -2210,24 +2152,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function execute_action( +execute_action( actionDefinitionId, actionPayload, targetResource; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "POST", + "/actions", + Dict{String,Any}( + "actionDefinitionId" => actionDefinitionId, + "actionPayload" => actionPayload, + "targetResource" => targetResource, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/actions", - Dict{String,Any}( - "actionDefinitionId" => actionDefinitionId, - "actionPayload" => actionPayload, - "targetResource" => targetResource, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_action( actionDefinitionId, actionPayload, @@ -2269,15 +2209,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. The default is 25. - `"nextToken"`: The string that specifies the next page of results. """ -function execute_query(queryStatement; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +execute_query(queryStatement; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "POST", "/queries/execution", Dict{String,Any}("queryStatement" => queryStatement); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function execute_query( queryStatement, params::AbstractDict{String}; @@ -2328,26 +2267,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"timeOrdering"`: The chronological sorting order of the requested information. Default: ASCENDING """ -function get_asset_property_aggregates( +get_asset_property_aggregates( aggregateTypes, endDate, resolution, startDate; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "GET", + "/properties/aggregates", + Dict{String,Any}( + "aggregateTypes" => aggregateTypes, + "endDate" => endDate, + "resolution" => resolution, + "startDate" => startDate, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/properties/aggregates", - Dict{String,Any}( - "aggregateTypes" => aggregateTypes, - "endDate" => endDate, - "resolution" => resolution, - "startDate" => startDate, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_asset_property_aggregates( aggregateTypes, endDate, @@ -2394,11 +2331,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide. - `"propertyId"`: The ID of the asset property, in UUID format. """ -function get_asset_property_value(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +get_asset_property_value(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/properties/latest"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_asset_property_value( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2442,13 +2378,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"timeOrdering"`: The chronological sorting order of the requested information. Default: ASCENDING """ -function get_asset_property_value_history(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +get_asset_property_value_history(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/properties/history"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_asset_property_value_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2525,28 +2458,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"propertyId"`: The ID of the asset property, in UUID format. - `"startTimeOffsetInNanos"`: The nanosecond offset converted from startTimeInSeconds. """ -function get_interpolated_asset_property_values( +get_interpolated_asset_property_values( endTimeInSeconds, intervalInSeconds, quality, startTimeInSeconds, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "GET", + "/properties/interpolated", + Dict{String,Any}( + "endTimeInSeconds" => endTimeInSeconds, + "intervalInSeconds" => intervalInSeconds, + "quality" => quality, + "startTimeInSeconds" => startTimeInSeconds, + "type" => type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/properties/interpolated", - Dict{String,Any}( - "endTimeInSeconds" => endTimeInSeconds, - "intervalInSeconds" => intervalInSeconds, - "quality" => quality, - "startTimeInSeconds" => startTimeInSeconds, - "type" => type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_interpolated_asset_property_values( endTimeInSeconds, intervalInSeconds, @@ -2601,11 +2532,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceType"`: The type of resource (portal or project). This parameter is required if you specify resourceId. """ -function list_access_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/access-policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_access_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", "/access-policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_access_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2633,20 +2562,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return for each paginated request. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_actions( +list_actions( targetResourceId, targetResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/actions", + Dict{String,Any}( + "targetResourceId" => targetResourceId, + "targetResourceType" => targetResourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/actions", - Dict{String,Any}( - "targetResourceId" => targetResourceId, - "targetResourceType" => targetResourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_actions( targetResourceId, targetResourceType, @@ -2684,20 +2611,21 @@ Retrieves a paginated list of composite models associated with the asset model # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"assetModelVersion"`: The version alias that specifies the latest or active version of + the asset model. The details are returned in the response. The default value is LATEST. See + Asset model versions in the IoT SiteWise User Guide. - `"maxResults"`: The maximum number of results to return for each paginated request. Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_asset_model_composite_models( +list_asset_model_composite_models( assetModelId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/asset-models/$(assetModelId)/composite-models"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/asset-models/$(assetModelId)/composite-models"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_asset_model_composite_models( assetModelId, params::AbstractDict{String}; @@ -2727,6 +2655,9 @@ to start all over again. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"assetModelVersion"`: The version alias that specifies the latest or active version of + the asset model. The details are returned in the response. The default value is LATEST. See + Asset model versions in the IoT SiteWise User Guide. - `"filter"`: Filters the requested list of asset model properties. You can choose one of the following options: ALL – The list includes all asset model properties for a given asset model ID. BASE – The list includes only base asset model properties for a given @@ -2735,16 +2666,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not specified, the default value is 50. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_asset_model_properties( +list_asset_model_properties( assetModelId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/asset-models/$(assetModelId)/properties"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/asset-models/$(assetModelId)/properties"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_asset_model_properties( assetModelId, params::AbstractDict{String}; @@ -2767,19 +2696,21 @@ Retrieves a paginated list of summaries of all asset models. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"assetModelTypes"`: The type of asset model. ASSET_MODEL – (default) An asset model - that you can use to create assets. Can't be included as a component in another asset model. - COMPONENT_MODEL – A reusable component that you can include in the composite models of +- `"assetModelTypes"`: The type of asset model. If you don't provide an assetModelTypes, + all types of asset models are returned. ASSET_MODEL – An asset model that you can use + to create assets. Can't be included as a component in another asset model. + COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model. +- `"assetModelVersion"`: The version alias that specifies the latest or active version of + the asset model. The details are returned in the response. The default value is LATEST. See + Asset model versions in the IoT SiteWise User Guide. - `"maxResults"`: The maximum number of results to return for each paginated request. Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_asset_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/asset-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_asset_models(; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", "/asset-models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_asset_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2815,14 +2746,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not specified, the default value is 50. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_asset_properties(assetId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +list_asset_properties(assetId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/assets/$(assetId)/properties"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_asset_properties( assetId, params::AbstractDict{String}; @@ -2858,17 +2788,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return for each paginated request. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_asset_relationships( +list_asset_relationships( assetId, traversalType; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/assets/$(assetId)/assetRelationships", + Dict{String,Any}("traversalType" => traversalType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/assets/$(assetId)/assetRelationships", - Dict{String,Any}("traversalType" => traversalType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_asset_relationships( assetId, traversalType, @@ -2910,11 +2838,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_assets(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/assets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_assets(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise("GET", "/assets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_assets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2928,8 +2853,8 @@ end list_associated_assets(asset_id, params::Dict{String,<:Any}) Retrieves a paginated list of associated assets. You can use this operation to do the -following: List child assets associated to a parent asset by a hierarchy that you -specify. List an asset's parent asset. +following: CHILD - List all child assets associated to the asset. PARENT - List the +asset's parent asset. # Arguments - `asset_id`: The ID of the asset to query. This can be either the actual ID in UUID @@ -2938,29 +2863,26 @@ specify. List an asset's parent asset. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"hierarchyId"`: The ID of the hierarchy by which child assets are associated to the - asset. (This can be either the actual ID in UUID format, or else externalId: followed by - the external ID, if it has one. For more information, see Referencing objects with external - IDs in the IoT SiteWise User Guide.) To find a hierarchy ID, use the DescribeAsset or - DescribeAssetModel operations. This parameter is required if you choose CHILD for - traversalDirection. For more information, see Asset hierarchies in the IoT SiteWise User - Guide. +- `"hierarchyId"`: (Optional) If you don't provide a hierarchyId, all the immediate assets + in the traversalDirection will be returned. The ID of the hierarchy by which child assets + are associated to the asset. (This can be either the actual ID in UUID format, or else + externalId: followed by the external ID, if it has one. For more information, see + Referencing objects with external IDs in the IoT SiteWise User Guide.) For more + information, see Asset hierarchies in the IoT SiteWise User Guide. - `"maxResults"`: The maximum number of results to return for each paginated request. Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. - `"traversalDirection"`: The direction to list associated assets. Choose one of the following options: CHILD – The list includes all child assets associated to the asset. - The hierarchyId parameter is required if you choose CHILD. PARENT – The list includes - the asset's parent asset. Default: CHILD + PARENT – The list includes the asset's parent asset. Default: CHILD """ -function list_associated_assets(assetId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +list_associated_assets(assetId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/assets/$(assetId)/hierarchies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_associated_assets( assetId, params::AbstractDict{String}; @@ -2988,11 +2910,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return for each paginated request. - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_bulk_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_bulk_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise("GET", "/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_bulk_import_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3019,16 +2938,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_composition_relationships( +list_composition_relationships( assetModelId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "GET", + "/asset-models/$(assetModelId)/composition-relationships"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "GET", - "/asset-models/$(assetModelId)/composition-relationships"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_composition_relationships( assetModelId, params::AbstractDict{String}; @@ -3058,15 +2975,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_dashboards(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +list_dashboards(projectId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/dashboards", Dict{String,Any}("projectId" => projectId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dashboards( projectId, params::AbstractDict{String}; @@ -3095,11 +3011,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/20200301/gateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", "/20200301/gateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3124,11 +3038,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_portals(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/portals"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_portals(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise("GET", "/portals"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_portals( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3152,14 +3063,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_project_assets(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +list_project_assets(projectId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/projects/$(projectId)/assets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_project_assets( projectId, params::AbstractDict{String}; @@ -3189,15 +3099,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 50 - `"nextToken"`: The token to be used for the next set of paginated results. """ -function list_projects(portalId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", - "/projects", - Dict{String,Any}("portalId" => portalId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_projects(portalId; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", + "/projects", + Dict{String,Any}("portalId" => portalId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_projects( portalId, params::AbstractDict{String}; @@ -3224,17 +3132,14 @@ Retrieves the list of tags for an IoT SiteWise resource. - `resource_arn`: The ARN of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "GET", "/tags", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -3270,11 +3175,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys following values: ASSOCIATED – The time series is associated with an asset property. DISASSOCIATED – The time series isn't associated with any asset property. """ -function list_time_series(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( - "GET", "/timeseries/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_time_series(; aws_config::AbstractAWSConfig=current_aws_config()) = iotsitewise( + "GET", "/timeseries/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_time_series( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3302,17 +3205,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"kmsKeyId"`: The Key ID of the customer managed key used for KMS encryption. This is required if you use KMS_BASED_ENCRYPTION. """ -function put_default_encryption_configuration( +put_default_encryption_configuration( encryptionType; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "POST", + "/configuration/account/encryption", + Dict{String,Any}("encryptionType" => encryptionType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/configuration/account/encryption", - Dict{String,Any}("encryptionType" => encryptionType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_default_encryption_configuration( encryptionType, params::AbstractDict{String}; @@ -3339,17 +3240,14 @@ Sets logging options for IoT SiteWise. - `logging_options`: The logging options to set. """ -function put_logging_options( - loggingOptions; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +put_logging_options(loggingOptions; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "PUT", "/logging", Dict{String,Any}("loggingOptions" => loggingOptions); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_logging_options( loggingOptions, params::AbstractDict{String}; @@ -3397,17 +3295,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"warmTierRetentionPeriod"`: Set this period to specify how long your data is stored in the warm tier before it is deleted. You can set this only if cold tier is enabled. """ -function put_storage_configuration( - storageType; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +put_storage_configuration(storageType; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "POST", "/configuration/account/storage", Dict{String,Any}("storageType" => storageType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_storage_configuration( storageType, params::AbstractDict{String}; @@ -3437,15 +3332,14 @@ operation updates the tag's value. information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iotsitewise( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "POST", "/tags", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -3478,17 +3372,14 @@ Removes a tag from an IoT SiteWise resource. - `tag_keys`: A list of keys for tags to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "DELETE", "/tags", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -3532,26 +3423,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function update_access_policy( +update_access_policy( accessPolicyId, accessPolicyIdentity, accessPolicyPermission, accessPolicyResource; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "PUT", + "/access-policies/$(accessPolicyId)", + Dict{String,Any}( + "accessPolicyIdentity" => accessPolicyIdentity, + "accessPolicyPermission" => accessPolicyPermission, + "accessPolicyResource" => accessPolicyResource, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "PUT", - "/access-policies/$(accessPolicyId)", - Dict{String,Any}( - "accessPolicyIdentity" => accessPolicyIdentity, - "accessPolicyPermission" => accessPolicyPermission, - "accessPolicyResource" => accessPolicyResource, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_access_policy( accessPolicyId, accessPolicyIdentity, @@ -3603,17 +3492,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function update_asset( - assetId, assetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +update_asset(assetId, assetName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "PUT", "/assets/$(assetId)", Dict{String,Any}("assetName" => assetName, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_asset( assetId, assetName, @@ -3644,28 +3530,38 @@ end Updates an asset model and all of the assets that were created from the model. Each asset created from the model inherits the updated asset model's property and hierarchy definitions. For more information, see Updating assets and models in the IoT SiteWise User -Guide. This operation overwrites the existing model with the provided model. To avoid -deleting your asset model's properties or hierarchies, you must include their IDs and -definitions in the updated asset model payload. For more information, see -DescribeAssetModel. If you remove a property from an asset model, IoT SiteWise deletes all -previous data for that property. If you remove a hierarchy definition from an asset model, -IoT SiteWise disassociates every asset associated with that hierarchy. You can't change the -type or data type of an existing property. +Guide. If you remove a property from an asset model, IoT SiteWise deletes all previous +data for that property. You can’t change the type or data type of an existing property. +To replace an existing asset model property with a new one with the same name, do the +following: Submit an UpdateAssetModel request with the entire existing property removed. + Submit a second UpdateAssetModel request that includes the new property. The new asset +property will have the same name as the previous one and IoT SiteWise will generate a new +unique id. # Arguments - `asset_model_id`: The ID of the asset model to update. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide. -- `asset_model_name`: A unique, friendly name for the asset model. +- `asset_model_name`: A unique name for the asset model. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"If-Match"`: The expected current entity tag (ETag) for the asset model’s latest or + active version (specified using matchForVersionType). The update request is rejected if the + tag does not match the latest or active version's current entity tag. See Optimistic + locking for asset model writes in the IoT SiteWise User Guide. +- `"If-None-Match"`: Accepts * to reject the update request if an active version (specified + using matchForVersionType as ACTIVE) already exists for the asset model. +- `"Match-For-Version-Type"`: Specifies the asset model version type (LATEST or ACTIVE) + used in conjunction with If-Match or If-None-Match headers to determine the target ETag for + the update operation. - `"assetModelCompositeModels"`: The composite models that are part of this asset model. It groups properties (such as attributes, measurements, transforms, and metrics) and child composite models that model parts of your industrial equipment. Each composite model has a type that defines the properties that the composite model supports. Use composite models to define alarms on this asset model. When creating custom composite models, you need to use - CreateAssetModelCompositeModel. For more information, see <LINK>. + CreateAssetModelCompositeModel. For more information, see Creating custom composite models + (Components) in the IoT SiteWise User Guide. - `"assetModelDescription"`: A description for the asset model. - `"assetModelExternalId"`: An external ID to assign to the asset model. The asset model must not already have an external ID. The external ID must be unique within your Amazon Web @@ -3683,19 +3579,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function update_asset_model( +update_asset_model( assetModelId, assetModelName; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "PUT", + "/asset-models/$(assetModelId)", + Dict{String,Any}("assetModelName" => assetModelName, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "PUT", - "/asset-models/$(assetModelId)", - Dict{String,Any}( - "assetModelName" => assetModelName, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_asset_model( assetModelId, assetModelName, @@ -3736,39 +3628,47 @@ previous one and IoT SiteWise will generate a new unique id. # Arguments - `asset_model_composite_model_id`: The ID of a composite model on this asset model. -- `asset_model_composite_model_name`: A unique, friendly name for the composite model. +- `asset_model_composite_model_name`: A unique name for the composite model. - `asset_model_id`: The ID of the asset model, in UUID format. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"If-Match"`: The expected current entity tag (ETag) for the asset model’s latest or + active version (specified using matchForVersionType). The update request is rejected if the + tag does not match the latest or active version's current entity tag. See Optimistic + locking for asset model writes in the IoT SiteWise User Guide. +- `"If-None-Match"`: Accepts * to reject the update request if an active version (specified + using matchForVersionType as ACTIVE) already exists for the asset model. +- `"Match-For-Version-Type"`: Specifies the asset model version type (LATEST or ACTIVE) + used in conjunction with If-Match or If-None-Match headers to determine the target ETag for + the update operation. - `"assetModelCompositeModelDescription"`: A description for the composite model. - `"assetModelCompositeModelExternalId"`: An external ID to assign to the asset model. You can only set the external ID of the asset model if it wasn't set when it was created, or you're setting it to the exact same thing as when it was created. - `"assetModelCompositeModelProperties"`: The property definitions of the composite model. - For more information, see <LINK>. You can specify up to 200 properties per composite - model. For more information, see Quotas in the IoT SiteWise User Guide. + For more information, see Inline custom composite models in the IoT SiteWise User Guide. + You can specify up to 200 properties per composite model. For more information, see Quotas + in the IoT SiteWise User Guide. - `"clientToken"`: A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required. """ -function update_asset_model_composite_model( +update_asset_model_composite_model( assetModelCompositeModelId, assetModelCompositeModelName, assetModelId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "PUT", + "/asset-models/$(assetModelId)/composite-models/$(assetModelCompositeModelId)", + Dict{String,Any}( + "assetModelCompositeModelName" => assetModelCompositeModelName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "PUT", - "/asset-models/$(assetModelId)/composite-models/$(assetModelCompositeModelId)", - Dict{String,Any}( - "assetModelCompositeModelName" => assetModelCompositeModelName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_asset_model_composite_model( assetModelCompositeModelId, assetModelCompositeModelName, @@ -3829,17 +3729,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you don't specify a value for this parameter, the service uses the value of the assetModelProperty in the asset model. """ -function update_asset_property( +update_asset_property( assetId, propertyId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotsitewise( + "PUT", + "/assets/$(assetId)/properties/$(propertyId)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "PUT", - "/assets/$(assetId)/properties/$(propertyId)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_asset_property( assetId, propertyId, @@ -3876,24 +3774,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys required. - `"dashboardDescription"`: A new description for the dashboard. """ -function update_dashboard( +update_dashboard( dashboardDefinition, dashboardId, dashboardName; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "PUT", + "/dashboards/$(dashboardId)", + Dict{String,Any}( + "dashboardDefinition" => dashboardDefinition, + "dashboardName" => dashboardName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "PUT", - "/dashboards/$(dashboardId)", - Dict{String,Any}( - "dashboardDefinition" => dashboardDefinition, - "dashboardName" => dashboardName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dashboard( dashboardDefinition, dashboardId, @@ -3928,20 +3824,17 @@ Updates a gateway's name. # Arguments - `gateway_id`: The ID of the gateway to update. -- `gateway_name`: A unique, friendly name for the gateway. +- `gateway_name`: A unique name for the gateway. """ -function update_gateway( - gatewayId, gatewayName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +update_gateway(gatewayId, gatewayName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "PUT", "/20200301/gateways/$(gatewayId)", Dict{String,Any}("gatewayName" => gatewayName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_gateway( gatewayId, gatewayName, @@ -3980,23 +3873,21 @@ configuration. To list all capability configurations for a gateway, use Describe - `gateway_id`: The ID of the gateway to be updated. """ -function update_gateway_capability_configuration( +update_gateway_capability_configuration( capabilityConfiguration, capabilityNamespace, gatewayId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "POST", + "/20200301/gateways/$(gatewayId)/capability", + Dict{String,Any}( + "capabilityConfiguration" => capabilityConfiguration, + "capabilityNamespace" => capabilityNamespace, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "POST", - "/20200301/gateways/$(gatewayId)/capability", - Dict{String,Any}( - "capabilityConfiguration" => capabilityConfiguration, - "capabilityNamespace" => capabilityNamespace, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_gateway_capability_configuration( capabilityConfiguration, capabilityNamespace, @@ -4049,26 +3940,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"portalDescription"`: A new description for the portal. - `"portalLogoImage"`: """ -function update_portal( +update_portal( portalContactEmail, portalId, portalName, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = iotsitewise( + "PUT", + "/portals/$(portalId)", + Dict{String,Any}( + "portalContactEmail" => portalContactEmail, + "portalName" => portalName, + "roleArn" => roleArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotsitewise( - "PUT", - "/portals/$(portalId)", - Dict{String,Any}( - "portalContactEmail" => portalContactEmail, - "portalName" => portalName, - "roleArn" => roleArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_portal( portalContactEmail, portalId, @@ -4114,17 +4003,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys required. - `"projectDescription"`: A new description for the project. """ -function update_project( - projectId, projectName; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotsitewise( +update_project(projectId, projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + iotsitewise( "PUT", "/projects/$(projectId)", Dict{String,Any}("projectName" => projectName, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_project( projectId, projectName, diff --git a/src/services/iotthingsgraph.jl b/src/services/iotthingsgraph.jl index 751965674..3d3a3b31f 100644 --- a/src/services/iotthingsgraph.jl +++ b/src/services/iotthingsgraph.jl @@ -22,16 +22,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"namespaceVersion"`: The version of the user's namespace. Defaults to the latest version of the user's namespace. """ -function associate_entity_to_thing( +associate_entity_to_thing( entityId, thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iotthingsgraph( + "AssociateEntityToThing", + Dict{String,Any}("entityId" => entityId, "thingName" => thingName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotthingsgraph( - "AssociateEntityToThing", - Dict{String,Any}("entityId" => entityId, "thingName" => thingName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_entity_to_thing( entityId, thingName, @@ -69,16 +67,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"compatibleNamespaceVersion"`: The namespace version in which the workflow is to be created. If no value is specified, the latest version is used by default. """ -function create_flow_template( - definition; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotthingsgraph( +create_flow_template(definition; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "CreateFlowTemplate", Dict{String,Any}("definition" => definition); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_flow_template( definition, params::AbstractDict{String}; @@ -130,16 +125,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Metadata, consisting of key-value pairs, that can be used to categorize your system instances. """ -function create_system_instance( +create_system_instance( definition, target; aws_config::AbstractAWSConfig=current_aws_config() +) = iotthingsgraph( + "CreateSystemInstance", + Dict{String,Any}("definition" => definition, "target" => target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotthingsgraph( - "CreateSystemInstance", - Dict{String,Any}("definition" => definition, "target" => target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_system_instance( definition, target, @@ -175,16 +168,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"compatibleNamespaceVersion"`: The namespace version in which the system is to be created. If no value is specified, the latest version is used by default. """ -function create_system_template( - definition; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotthingsgraph( +create_system_template(definition; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "CreateSystemTemplate", Dict{String,Any}("definition" => definition); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_system_template( definition, params::AbstractDict{String}; @@ -213,14 +203,13 @@ update or deploy. Existing deployments that contain the workflow will continue t urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME """ -function delete_flow_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +delete_flow_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "DeleteFlowTemplate", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_flow_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -241,11 +230,9 @@ Delete the systems and flows that use entities in the namespace before performin action. This action takes no request parameters. """ -function delete_namespace(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( - "DeleteNamespace"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_namespace(; aws_config::AbstractAWSConfig=current_aws_config()) = iotthingsgraph( + "DeleteNamespace"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_namespace( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -266,11 +253,10 @@ same ID as a deleted system instance. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"id"`: The ID of the system instance to be deleted. """ -function delete_system_instance(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +delete_system_instance(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "DeleteSystemInstance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_system_instance( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -295,14 +281,13 @@ the system that is taken when it is deployed. urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME """ -function delete_system_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +delete_system_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "DeleteSystemTemplate", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_system_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -333,11 +318,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action. The ID should be in the following format. urn:tdm:REGION/ACCOUNT ID/default:deployment:DEPLOYMENTNAME """ -function deploy_system_instance(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +deploy_system_instance(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "DeploySystemInstance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function deploy_system_instance( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -361,14 +345,13 @@ flows can't be deployed, but existing deployments will continue to run. urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME """ -function deprecate_flow_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +deprecate_flow_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "DeprecateFlowTemplate", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deprecate_flow_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -391,14 +374,13 @@ Deprecates the specified system. urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME """ -function deprecate_system_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +deprecate_system_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "DeprecateSystemTemplate", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deprecate_system_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -421,11 +403,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"namespaceName"`: The name of the user's namespace. Set this to aws to get the public namespace. """ -function describe_namespace(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( - "DescribeNamespace"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_namespace(; aws_config::AbstractAWSConfig=current_aws_config()) = iotthingsgraph( + "DescribeNamespace"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_namespace( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -447,16 +427,14 @@ associated with a thing. - `thing_name`: The name of the thing to disassociate. """ -function dissociate_entity_from_thing( +dissociate_entity_from_thing( entityType, thingName; aws_config::AbstractAWSConfig=current_aws_config() +) = iotthingsgraph( + "DissociateEntityFromThing", + Dict{String,Any}("entityType" => entityType, "thingName" => thingName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotthingsgraph( - "DissociateEntityFromThing", - Dict{String,Any}("entityType" => entityType, "thingName" => thingName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function dissociate_entity_from_thing( entityType, thingName, @@ -495,14 +473,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"namespaceVersion"`: The version of the user's namespace. Defaults to the latest version of the user's namespace. """ -function get_entities(ids; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( - "GetEntities", - Dict{String,Any}("ids" => ids); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_entities(ids; aws_config::AbstractAWSConfig=current_aws_config()) = iotthingsgraph( + "GetEntities", + Dict{String,Any}("ids" => ids); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_entities( ids, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -529,14 +505,12 @@ workflow. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"revisionNumber"`: The number of the workflow revision to retrieve. """ -function get_flow_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( - "GetFlowTemplate", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_flow_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = iotthingsgraph( + "GetFlowTemplate", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_flow_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -566,14 +540,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The string that specifies the next page of results. Use this when you're paginating results. """ -function get_flow_template_revisions(id; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +get_flow_template_revisions(id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "GetFlowTemplateRevisions", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_flow_template_revisions( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -592,11 +565,10 @@ end Gets the status of a namespace deletion task. """ -function get_namespace_deletion_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +get_namespace_deletion_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "GetNamespaceDeletionStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_namespace_deletion_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -620,14 +592,13 @@ Gets a system instance. ID/default:deployment:DEPLOYMENTNAME """ -function get_system_instance(id; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +get_system_instance(id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "GetSystemInstance", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_system_instance( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -653,14 +624,13 @@ Gets a system. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"revisionNumber"`: The number that specifies the revision of the system to get. """ -function get_system_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +get_system_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "GetSystemTemplate", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_system_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -690,16 +660,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The string that specifies the next page of results. Use this when you're paginating results. """ -function get_system_template_revisions( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotthingsgraph( +get_system_template_revisions(id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "GetSystemTemplateRevisions", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_system_template_revisions( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -722,14 +689,13 @@ Gets the status of the specified upload. action. """ -function get_upload_status(uploadId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +get_upload_status(uploadId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "GetUploadStatus", Dict{String,Any}("uploadId" => uploadId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_upload_status( uploadId, params::AbstractDict{String}; @@ -760,16 +726,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The string that specifies the next page of results. Use this when you're paginating results. """ -function list_flow_execution_messages( +list_flow_execution_messages( flowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotthingsgraph( + "ListFlowExecutionMessages", + Dict{String,Any}("flowExecutionId" => flowExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotthingsgraph( - "ListFlowExecutionMessages", - Dict{String,Any}("flowExecutionId" => flowExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_flow_execution_messages( flowExecutionId, params::AbstractDict{String}; @@ -802,16 +766,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of tags to return. - `"nextToken"`: The token that specifies the next page of results to return. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotthingsgraph( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -850,14 +811,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The string that specifies the next page of results. Use this when you're paginating results. """ -function search_entities(entityTypes; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +search_entities(entityTypes; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "SearchEntities", Dict{String,Any}("entityTypes" => entityTypes); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_entities( entityTypes, params::AbstractDict{String}; @@ -891,16 +851,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginating results. - `"startTime"`: The date and time of the earliest flow execution to return. """ -function search_flow_executions( +search_flow_executions( systemInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iotthingsgraph( + "SearchFlowExecutions", + Dict{String,Any}("systemInstanceId" => systemInstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iotthingsgraph( - "SearchFlowExecutions", - Dict{String,Any}("systemInstanceId" => systemInstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_flow_executions( systemInstanceId, params::AbstractDict{String}; @@ -932,11 +890,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The string that specifies the next page of results. Use this when you're paginating results. """ -function search_flow_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +search_flow_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "SearchFlowTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function search_flow_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -963,11 +920,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The string that specifies the next page of results. Use this when you're paginating results. """ -function search_system_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +search_system_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "SearchSystemInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function search_system_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -994,11 +950,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The string that specifies the next page of results. Use this when you're paginating results. """ -function search_system_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +search_system_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "SearchSystemTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function search_system_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1033,14 +988,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The string that specifies the next page of results. Use this when you're paginating results. """ -function search_things(entityId; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +search_things(entityId; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "SearchThings", Dict{String,Any}("entityId" => entityId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_things( entityId, params::AbstractDict{String}; @@ -1067,14 +1021,13 @@ Creates a tag for the specified resource. - `tags`: A list of tags to add to the resource.> """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1105,11 +1058,10 @@ Removes a system instance from its target (Cloud or Greengrass). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"id"`: The ID of the system instance to remove from its target. """ -function undeploy_system_instance(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +undeploy_system_instance(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "UndeploySystemInstance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function undeploy_system_instance( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1137,16 +1089,13 @@ Removes a tag from the specified resource. User Guide. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotthingsgraph( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1187,16 +1136,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified, the latest version is used by default. Use the GetFlowTemplateRevisions if you want to find earlier revisions of the flow to update. """ -function update_flow_template( - definition, id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotthingsgraph( +update_flow_template(definition, id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "UpdateFlowTemplate", Dict{String,Any}("definition" => definition, "id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_flow_template( definition, id, @@ -1234,16 +1180,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys latest version of the user's namespace. If no value is specified, the latest version is used by default. """ -function update_system_template( - definition, id; aws_config::AbstractAWSConfig=current_aws_config() -) - return iotthingsgraph( +update_system_template(definition, id; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "UpdateSystemTemplate", Dict{String,Any}("definition" => definition, "id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_system_template( definition, id, @@ -1291,11 +1234,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys latest version of the public namespace. If set to true, the upload will create a new namespace version. """ -function upload_entity_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return iotthingsgraph( +upload_entity_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + iotthingsgraph( "UploadEntityDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function upload_entity_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/iottwinmaker.jl b/src/services/iottwinmaker.jl index 9ed627840..8330a2c5d 100644 --- a/src/services/iottwinmaker.jl +++ b/src/services/iottwinmaker.jl @@ -16,17 +16,15 @@ Sets values for multiple time series properties. - `workspace_id`: The ID of the workspace that contains the properties to set. """ -function batch_put_property_values( +batch_put_property_values( entries, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/workspaces/$(workspaceId)/entity-properties", + Dict{String,Any}("entries" => entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/workspaces/$(workspaceId)/entity-properties", - Dict{String,Any}("entries" => entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_property_values( entries, workspaceId, @@ -52,16 +50,14 @@ Cancels the metadata transfer job. - `metadata_transfer_job_id`: The metadata transfer job Id. """ -function cancel_metadata_transfer_job( +cancel_metadata_transfer_job( metadataTransferJobId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "PUT", + "/metadata-transfer-jobs/$(metadataTransferJobId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "PUT", - "/metadata-transfer-jobs/$(metadataTransferJobId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_metadata_transfer_job( metadataTransferJobId, params::AbstractDict{String}; @@ -103,16 +99,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"propertyGroups"`: - `"tags"`: Metadata that you can use to manage the component type. """ -function create_component_type( +create_component_type( componentTypeId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/workspaces/$(workspaceId)/component-types/$(componentTypeId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/workspaces/$(workspaceId)/component-types/$(componentTypeId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_component_type( componentTypeId, workspaceId, @@ -150,17 +144,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parentEntityId"`: The ID of the entity's parent entity. - `"tags"`: Metadata that you can use to manage the entity. """ -function create_entity( - entityName, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +create_entity(entityName, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/workspaces/$(workspaceId)/entities", Dict{String,Any}("entityName" => entityName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_entity( entityName, workspaceId, @@ -193,17 +184,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The metadata transfer job description. - `"metadataTransferJobId"`: The metadata transfer job Id. """ -function create_metadata_transfer_job( +create_metadata_transfer_job( destination, sources; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/metadata-transfer-jobs", + Dict{String,Any}("destination" => destination, "sources" => sources); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/metadata-transfer-jobs", - Dict{String,Any}("destination" => destination, "sources" => sources); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_metadata_transfer_job( destination, sources, @@ -244,20 +233,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sceneMetadata"`: The request metadata. - `"tags"`: Metadata that you can use to manage the scene. """ -function create_scene( +create_scene( contentLocation, sceneId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = iottwinmaker( + "POST", + "/workspaces/$(workspaceId)/scenes", + Dict{String,Any}("contentLocation" => contentLocation, "sceneId" => sceneId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/workspaces/$(workspaceId)/scenes", - Dict{String,Any}("contentLocation" => contentLocation, "sceneId" => sceneId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_scene( contentLocation, sceneId, @@ -298,17 +285,15 @@ This action creates a SyncJob. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The SyncJob tags. """ -function create_sync_job( +create_sync_job( syncRole, syncSource, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/workspaces/$(workspaceId)/sync-jobs/$(syncSource)", + Dict{String,Any}("syncRole" => syncRole); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/workspaces/$(workspaceId)/sync-jobs/$(syncSource)", - Dict{String,Any}("syncRole" => syncRole); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sync_job( syncRole, syncSource, @@ -344,14 +329,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are stored. - `"tags"`: Metadata that you can use to manage the workspace """ -function create_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( +create_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/workspaces/$(workspaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_workspace( workspaceId, params::AbstractDict{String}; @@ -377,16 +361,14 @@ Deletes a component type. - `workspace_id`: The ID of the workspace that contains the component type. """ -function delete_component_type( +delete_component_type( componentTypeId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "DELETE", + "/workspaces/$(workspaceId)/component-types/$(componentTypeId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "DELETE", - "/workspaces/$(workspaceId)/component-types/$(componentTypeId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_component_type( componentTypeId, workspaceId, @@ -417,16 +399,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"isRecursive"`: A Boolean value that specifies whether the operation deletes child entities. """ -function delete_entity( - entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +delete_entity(entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "DELETE", "/workspaces/$(workspaceId)/entities/$(entityId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_entity( entityId, workspaceId, @@ -453,16 +432,13 @@ Deletes a scene. - `workspace_id`: The ID of the workspace. """ -function delete_scene( - sceneId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +delete_scene(sceneId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "DELETE", "/workspaces/$(workspaceId)/scenes/$(sceneId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_scene( sceneId, workspaceId, @@ -489,16 +465,14 @@ Delete the SyncJob. - `workspace_id`: The workspace ID. """ -function delete_sync_job( +delete_sync_job( syncSource, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "DELETE", + "/workspaces/$(workspaceId)/sync-jobs/$(syncSource)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "DELETE", - "/workspaces/$(workspaceId)/sync-jobs/$(syncSource)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sync_job( syncSource, workspaceId, @@ -524,14 +498,13 @@ Deletes a workspace. - `workspace_id`: The ID of the workspace to delete. """ -function delete_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( +delete_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "DELETE", "/workspaces/$(workspaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_workspace( workspaceId, params::AbstractDict{String}; @@ -563,17 +536,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. The default is 50. - `"nextToken"`: The string that specifies the next page of results. """ -function execute_query( +execute_query( queryStatement, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/queries/execution", + Dict{String,Any}("queryStatement" => queryStatement, "workspaceId" => workspaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/queries/execution", - Dict{String,Any}("queryStatement" => queryStatement, "workspaceId" => workspaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_query( queryStatement, workspaceId, @@ -608,16 +579,14 @@ Retrieves information about a component type. - `workspace_id`: The ID of the workspace that contains the component type. """ -function get_component_type( +get_component_type( componentTypeId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "GET", + "/workspaces/$(workspaceId)/component-types/$(componentTypeId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "GET", - "/workspaces/$(workspaceId)/component-types/$(componentTypeId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_component_type( componentTypeId, workspaceId, @@ -644,16 +613,13 @@ Retrieves information about an entity. - `workspace_id`: The ID of the workspace. """ -function get_entity( - entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +get_entity(entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "GET", "/workspaces/$(workspaceId)/entities/$(entityId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_entity( entityId, workspaceId, @@ -679,16 +645,14 @@ Gets a nmetadata transfer job. - `metadata_transfer_job_id`: The metadata transfer job Id. """ -function get_metadata_transfer_job( +get_metadata_transfer_job( metadataTransferJobId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "GET", + "/metadata-transfer-jobs/$(metadataTransferJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "GET", - "/metadata-transfer-jobs/$(metadataTransferJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_metadata_transfer_job( metadataTransferJobId, params::AbstractDict{String}; @@ -710,11 +674,9 @@ end Gets the pricing plan. """ -function get_pricing_plan(; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( - "GET", "/pricingplan"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_pricing_plan(; aws_config::AbstractAWSConfig=current_aws_config()) = iottwinmaker( + "GET", "/pricingplan"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_pricing_plan( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -752,17 +714,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"propertyGroupName"`: The property group name. - `"tabularConditions"`: The tabular conditions. """ -function get_property_value( +get_property_value( selectedProperties, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/workspaces/$(workspaceId)/entity-properties/value", + Dict{String,Any}("selectedProperties" => selectedProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/workspaces/$(workspaceId)/entity-properties/value", - Dict{String,Any}("selectedProperties" => selectedProperties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_property_value( selectedProperties, workspaceId, @@ -816,17 +776,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startTime"`: The ISO8601 DateTime of the earliest property value to return. For more information about the ISO8601 DateTime format, see the data type PropertyValue. """ -function get_property_value_history( +get_property_value_history( selectedProperties, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/workspaces/$(workspaceId)/entity-properties/history", + Dict{String,Any}("selectedProperties" => selectedProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/workspaces/$(workspaceId)/entity-properties/history", - Dict{String,Any}("selectedProperties" => selectedProperties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_property_value_history( selectedProperties, workspaceId, @@ -857,14 +815,13 @@ Retrieves information about a scene. - `workspace_id`: The ID of the workspace that contains the scene. """ -function get_scene(sceneId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( +get_scene(sceneId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "GET", "/workspaces/$(workspaceId)/scenes/$(sceneId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_scene( sceneId, workspaceId, @@ -893,14 +850,12 @@ Gets the SyncJob. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"workspace"`: The workspace ID. """ -function get_sync_job(syncSource; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( - "GET", - "/sync-jobs/$(syncSource)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_sync_job(syncSource; aws_config::AbstractAWSConfig=current_aws_config()) = iottwinmaker( + "GET", + "/sync-jobs/$(syncSource)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_sync_job( syncSource, params::AbstractDict{String}; @@ -925,14 +880,13 @@ Retrieves information about a workspace. - `workspace_id`: The ID of the workspace. """ -function get_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( +get_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "GET", "/workspaces/$(workspaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_workspace( workspaceId, params::AbstractDict{String}; @@ -963,16 +917,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Valid Range: Minimum value of 1. Maximum value of 250. - `"nextToken"`: The string that specifies the next page of results. """ -function list_component_types( - workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +list_component_types(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/workspaces/$(workspaceId)/component-types-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_component_types( workspaceId, params::AbstractDict{String}; @@ -1005,16 +956,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results returned at one time. The default is 25. - `"nextToken"`: The string that specifies the next page of results. """ -function list_components( - entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +list_components(entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/workspaces/$(workspaceId)/entities/$(entityId)/components-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_components( entityId, workspaceId, @@ -1047,14 +995,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Valid Range: Minimum value of 1. Maximum value of 250. - `"nextToken"`: The string that specifies the next page of results. """ -function list_entities(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( +list_entities(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/workspaces/$(workspaceId)/entities-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_entities( workspaceId, params::AbstractDict{String}; @@ -1085,17 +1032,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return at one time. - `"nextToken"`: The string that specifies the next page of results. """ -function list_metadata_transfer_jobs( +list_metadata_transfer_jobs( destinationType, sourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/metadata-transfer-jobs-list", + Dict{String,Any}("destinationType" => destinationType, "sourceType" => sourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/metadata-transfer-jobs-list", - Dict{String,Any}("destinationType" => destinationType, "sourceType" => sourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_metadata_transfer_jobs( destinationType, sourceType, @@ -1139,17 +1084,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results returned at one time. The default is 25. - `"nextToken"`: The string that specifies the next page of results. """ -function list_properties( - entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +list_properties(entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/workspaces/$(workspaceId)/properties-list", Dict{String,Any}("entityId" => entityId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_properties( entityId, workspaceId, @@ -1181,14 +1123,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Specifies the maximum number of results to display. - `"nextToken"`: The string that specifies the next page of results. """ -function list_scenes(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( - "POST", - "/workspaces/$(workspaceId)/scenes-list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_scenes(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = iottwinmaker( + "POST", + "/workspaces/$(workspaceId)/scenes-list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_scenes( workspaceId, params::AbstractDict{String}; @@ -1218,14 +1158,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Valid Range: Minimum value of 0. Maximum value of 200. - `"nextToken"`: The string that specifies the next page of results. """ -function list_sync_jobs(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( +list_sync_jobs(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/workspaces/$(workspaceId)/sync-jobs-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_sync_jobs( workspaceId, params::AbstractDict{String}; @@ -1259,16 +1198,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Valid Range: Minimum value of 0. Maximum value of 200. - `"nextToken"`: The string that specifies the next page of results. """ -function list_sync_resources( +list_sync_resources( syncSource, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "POST", + "/workspaces/$(workspaceId)/sync-jobs/$(syncSource)/resources-list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "POST", - "/workspaces/$(workspaceId)/sync-jobs/$(syncSource)/resources-list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_sync_resources( syncSource, workspaceId, @@ -1299,17 +1236,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Valid Range: Minimum value of 1. Maximum value of 250. - `"nextToken"`: The string that specifies the next page of results. """ -function list_tags_for_resource( - resourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +list_tags_for_resource(resourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/tags-list", Dict{String,Any}("resourceARN" => resourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceARN, params::AbstractDict{String}; @@ -1338,11 +1272,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Valid Range: Minimum value of 1. Maximum value of 250. - `"nextToken"`: The string that specifies the next page of results. """ -function list_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( - "POST", "/workspaces-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) = iottwinmaker( + "POST", "/workspaces-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_workspaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1366,15 +1298,14 @@ Adds tags to a resource. - `tags`: Metadata to add to this resource. """ -function tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( +tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/tags", Dict{String,Any}("resourceARN" => resourceARN, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceARN, tags, @@ -1408,17 +1339,14 @@ Removes tags from a resource. value. Both the key and its associated value are removed. """ -function untag_resource( - resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +untag_resource(resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "DELETE", "/tags", Dict{String,Any}("resourceARN" => resourceARN, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceARN, tagKeys, @@ -1466,16 +1394,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys component type. Each string in the mapping must be unique to this object. - `"propertyGroups"`: The property groups. """ -function update_component_type( +update_component_type( componentTypeId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = iottwinmaker( + "PUT", + "/workspaces/$(workspaceId)/component-types/$(componentTypeId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return iottwinmaker( - "PUT", - "/workspaces/$(workspaceId)/component-types/$(componentTypeId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_component_type( componentTypeId, workspaceId, @@ -1512,16 +1438,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"entityName"`: The name of the entity. - `"parentEntityUpdate"`: An object that describes the update request for a parent entity. """ -function update_entity( - entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +update_entity(entityId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "PUT", "/workspaces/$(workspaceId)/entities/$(entityId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_entity( entityId, workspaceId, @@ -1550,17 +1473,14 @@ Update the pricing plan. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"bundleNames"`: The bundle names. """ -function update_pricing_plan( - pricingMode; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +update_pricing_plan(pricingMode; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "POST", "/pricingplan", Dict{String,Any}("pricingMode" => pricingMode); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_pricing_plan( pricingMode, params::AbstractDict{String}; @@ -1595,16 +1515,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of this scene. - `"sceneMetadata"`: The scene metadata. """ -function update_scene( - sceneId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return iottwinmaker( +update_scene(sceneId, workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "PUT", "/workspaces/$(workspaceId)/scenes/$(sceneId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_scene( sceneId, workspaceId, @@ -1636,14 +1553,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"s3Location"`: The ARN of the S3 bucket where resources associated with the workspace are stored. """ -function update_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return iottwinmaker( +update_workspace(workspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + iottwinmaker( "PUT", "/workspaces/$(workspaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_workspace( workspaceId, params::AbstractDict{String}; diff --git a/src/services/ivs.jl b/src/services/ivs.jl index 6909e7d5d..3c563788b 100644 --- a/src/services/ivs.jl +++ b/src/services/ivs.jl @@ -14,15 +14,13 @@ Performs GetChannel on multiple ARNs simultaneously. - `arns`: Array of ARNs, one per channel. """ -function batch_get_channel(arns; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/BatchGetChannel", - Dict{String,Any}("arns" => arns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_channel(arns; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/BatchGetChannel", + Dict{String,Any}("arns" => arns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_channel( arns, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -45,15 +43,13 @@ Performs GetStreamKey on multiple ARNs simultaneously. - `arns`: Array of ARNs, one per stream key. """ -function batch_get_stream_key(arns; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/BatchGetStreamKey", - Dict{String,Any}("arns" => arns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_stream_key(arns; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/BatchGetStreamKey", + Dict{String,Any}("arns" => arns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_stream_key( arns, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -77,17 +73,15 @@ simultaneously. - `viewer_sessions`: Array of viewer sessions, one per channel-ARN and viewer-ID pair. """ -function batch_start_viewer_session_revocation( +batch_start_viewer_session_revocation( viewerSessions; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs( + "POST", + "/BatchStartViewerSessionRevocation", + Dict{String,Any}("viewerSessions" => viewerSessions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs( - "POST", - "/BatchStartViewerSessionRevocation", - Dict{String,Any}("viewerSessions" => viewerSessions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_start_viewer_session_revocation( viewerSessions, params::AbstractDict{String}; @@ -137,11 +131,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types. """ -function create_channel(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", "/CreateChannel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_channel(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs("POST", "/CreateChannel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_channel( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -178,16 +169,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there. """ -function create_playback_restriction_policy(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs( +create_playback_restriction_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs( "POST", "/CreatePlaybackRestrictionPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_playback_restriction_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -234,17 +222,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys recording of thumbnails for a live session and modify the interval at which thumbnails are generated for the live session. """ -function create_recording_configuration( +create_recording_configuration( destinationConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs( + "POST", + "/CreateRecordingConfiguration", + Dict{String,Any}("destinationConfiguration" => destinationConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs( - "POST", - "/CreateRecordingConfiguration", - Dict{String,Any}("destinationConfiguration" => destinationConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_recording_configuration( destinationConfiguration, params::AbstractDict{String}; @@ -285,15 +271,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there. """ -function create_stream_key(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/CreateStreamKey", - Dict{String,Any}("channelArn" => channelArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_stream_key(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/CreateStreamKey", + Dict{String,Any}("channelArn" => channelArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_stream_key( channelArn, params::AbstractDict{String}; @@ -324,15 +308,13 @@ Amazon IVS.) - `arn`: ARN of the channel to be deleted. """ -function delete_channel(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/DeleteChannel", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_channel(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/DeleteChannel", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_channel( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -357,15 +339,13 @@ the Amazon IVS User Guide. - `arn`: ARN of the key pair to be deleted. """ -function delete_playback_key_pair(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/DeletePlaybackKeyPair", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_playback_key_pair(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/DeletePlaybackKeyPair", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_playback_key_pair( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -388,17 +368,15 @@ Deletes the specified playback restriction policy. - `arn`: ARN of the playback restriction policy to be deleted. """ -function delete_playback_restriction_policy( +delete_playback_restriction_policy( arn; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs( + "POST", + "/DeletePlaybackRestrictionPolicy", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs( - "POST", - "/DeletePlaybackRestrictionPolicy", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_playback_restriction_policy( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -425,17 +403,14 @@ empty string, then use DeleteRecordingConfiguration. - `arn`: ARN of the recording configuration to be deleted. """ -function delete_recording_configuration( - arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs( +delete_recording_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs( "POST", "/DeleteRecordingConfiguration", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_recording_configuration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -458,15 +433,13 @@ Deletes the stream key for the specified ARN, so it can no longer be used to str - `arn`: ARN of the stream key to be deleted. """ -function delete_stream_key(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/DeleteStreamKey", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_stream_key(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/DeleteStreamKey", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_stream_key( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -489,15 +462,13 @@ Gets the channel configuration for the specified channel ARN. See also BatchGetC - `arn`: ARN of the channel for which the configuration is to be retrieved. """ -function get_channel(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/GetChannel", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_channel(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/GetChannel", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_channel( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -523,15 +494,13 @@ in the Amazon IVS User Guide. - `arn`: ARN of the key pair to be returned. """ -function get_playback_key_pair(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/GetPlaybackKeyPair", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_playback_key_pair(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/GetPlaybackKeyPair", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_playback_key_pair( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -554,17 +523,14 @@ Gets the specified playback restriction policy. - `arn`: ARN of the playback restriction policy to be returned. """ -function get_playback_restriction_policy( - arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs( +get_playback_restriction_policy(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs( "POST", "/GetPlaybackRestrictionPolicy", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_playback_restriction_policy( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -587,17 +553,13 @@ Gets the recording configuration for the specified ARN. - `arn`: ARN of the recording configuration to be retrieved. """ -function get_recording_configuration( - arn; aws_config::AbstractAWSConfig=current_aws_config() +get_recording_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/GetRecordingConfiguration", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs( - "POST", - "/GetRecordingConfiguration", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recording_configuration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -620,15 +582,13 @@ Gets information about the active (live) stream on a specified channel. - `channel_arn`: Channel ARN for stream to be accessed. """ -function get_stream(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/GetStream", - Dict{String,Any}("channelArn" => channelArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_stream(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/GetStream", + Dict{String,Any}("channelArn" => channelArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_stream( channelArn, params::AbstractDict{String}; @@ -655,15 +615,13 @@ Gets stream-key information for a specified ARN. - `arn`: ARN for the stream key to be retrieved. """ -function get_stream_key(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/GetStreamKey", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_stream_key(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/GetStreamKey", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_stream_key( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -691,15 +649,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys channel. If no streamId is provided, this returns the most recent stream session for the channel, if it exists. """ -function get_stream_session(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/GetStreamSession", - Dict{String,Any}("channelArn" => channelArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_stream_session(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/GetStreamSession", + Dict{String,Any}("channelArn" => channelArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_stream_session( channelArn, params::AbstractDict{String}; @@ -736,17 +692,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there. """ -function import_playback_key_pair( +import_playback_key_pair( publicKeyMaterial; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs( + "POST", + "/ImportPlaybackKeyPair", + Dict{String,Any}("publicKeyMaterial" => publicKeyMaterial); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs( - "POST", - "/ImportPlaybackKeyPair", - Dict{String,Any}("publicKeyMaterial" => publicKeyMaterial); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_playback_key_pair( publicKeyMaterial, params::AbstractDict{String}; @@ -785,11 +739,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first channel to retrieve. This is used for pagination; see the nextToken response field. """ -function list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", "/ListChannels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs("POST", "/ListChannels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -816,14 +767,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first key pair to retrieve. This is used for pagination; see the nextToken response field. """ -function list_playback_key_pairs(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/ListPlaybackKeyPairs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_playback_key_pairs(; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/ListPlaybackKeyPairs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_playback_key_pairs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -848,16 +797,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first policy to retrieve. This is used for pagination; see the nextToken response field. """ -function list_playback_restriction_policies(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs( +list_playback_restriction_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs( "POST", "/ListPlaybackRestrictionPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_playback_restriction_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -884,14 +830,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first recording configuration to retrieve. This is used for pagination; see the nextToken response field. """ -function list_recording_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/ListRecordingConfigurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_recording_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/ListRecordingConfigurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_recording_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -919,15 +863,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first stream key to retrieve. This is used for pagination; see the nextToken response field. """ -function list_stream_keys(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/ListStreamKeys", - Dict{String,Any}("channelArn" => channelArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_stream_keys(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/ListStreamKeys", + Dict{String,Any}("channelArn" => channelArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_stream_keys( channelArn, params::AbstractDict{String}; @@ -960,17 +902,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first stream to retrieve. This is used for pagination; see the nextToken response field. """ -function list_stream_sessions( - channelArn; aws_config::AbstractAWSConfig=current_aws_config() +list_stream_sessions(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/ListStreamSessions", + Dict{String,Any}("channelArn" => channelArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs( - "POST", - "/ListStreamSessions", - Dict{String,Any}("channelArn" => channelArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_stream_sessions( channelArn, params::AbstractDict{String}; @@ -1001,11 +939,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first stream to retrieve. This is used for pagination; see the nextToken response field. """ -function list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", "/ListStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs("POST", "/ListStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1028,16 +963,13 @@ Gets information about Amazon Web Services tags for the specified ARN. - `resource_arn`: The ARN of the resource to be retrieved. The ARN must be URL-encoded. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1068,17 +1000,14 @@ a Video Stream in the Amazon IVS User Guide. - `metadata`: Metadata to insert into the stream. Maximum: 1 KB per request. """ -function put_metadata( - channelArn, metadata; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs( +put_metadata(channelArn, metadata; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs( "POST", "/PutMetadata", Dict{String,Any}("channelArn" => channelArn, "metadata" => metadata); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_metadata( channelArn, metadata, @@ -1120,17 +1049,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys viewer session to revoke. All versions less than or equal to the specified version will be revoked. Default: 0. """ -function start_viewer_session_revocation( +start_viewer_session_revocation( channelArn, viewerId; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs( + "POST", + "/StartViewerSessionRevocation", + Dict{String,Any}("channelArn" => channelArn, "viewerId" => viewerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs( - "POST", - "/StartViewerSessionRevocation", - Dict{String,Any}("channelArn" => channelArn, "viewerId" => viewerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_viewer_session_revocation( channelArn, viewerId, @@ -1165,15 +1092,13 @@ stream permanently, you may want to first revoke the streamKey attached to the c - `channel_arn`: ARN of the channel for which the stream is to be stopped. """ -function stop_stream(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/StopStream", - Dict{String,Any}("channelArn" => channelArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_stream(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/StopStream", + Dict{String,Any}("channelArn" => channelArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_stream( channelArn, params::AbstractDict{String}; @@ -1205,15 +1130,13 @@ Adds or updates tags for the Amazon Web Services resource with the specified ARN Amazon IVS has no service-specific constraints beyond what is documented there. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -1244,17 +1167,14 @@ Removes tags from the resource with the specified ARN. no service-specific constraints beyond what is documented there. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1302,15 +1222,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types. """ -function update_channel(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs( - "POST", - "/UpdateChannel", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_channel(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs( + "POST", + "/UpdateChannel", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_channel( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1345,17 +1263,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys site. Default: false. - `"name"`: Playback-restriction-policy name. The value does not need to be unique. """ -function update_playback_restriction_policy( +update_playback_restriction_policy( arn; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs( + "POST", + "/UpdatePlaybackRestrictionPolicy", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs( - "POST", - "/UpdatePlaybackRestrictionPolicy", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_playback_restriction_policy( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/ivs_realtime.jl b/src/services/ivs_realtime.jl index 32514ca7d..27876b8d2 100644 --- a/src/services/ivs_realtime.jl +++ b/src/services/ivs_realtime.jl @@ -20,14 +20,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"video"`: Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps. """ -function create_encoder_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( +create_encoder_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/CreateEncoderConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_encoder_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -65,17 +64,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information. """ -function create_participant_token( - stageArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs_realtime( +create_participant_token(stageArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/CreateParticipantToken", Dict{String,Any}("stageArn" => stageArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_participant_token( stageArn, params::AbstractDict{String}; @@ -100,8 +96,8 @@ Creates a new stage (and optionally participant tokens). # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"autoParticipantRecordingConfiguration"`: Auto participant recording configuration - object attached to the stage. +- `"autoParticipantRecordingConfiguration"`: Configuration object for individual + participant recording, to attach to the new stage. - `"name"`: Optional name that can be specified for the stage being created. - `"participantTokenConfigurations"`: Array of participant token configuration objects to attach to the new stage. @@ -110,11 +106,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints on tags beyond what is documented there. """ -function create_stage(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( - "POST", "/CreateStage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_stage(; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", "/CreateStage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function create_stage( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -148,17 +142,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints on tags beyond what is documented there. """ -function create_storage_configuration( - s3; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs_realtime( +create_storage_configuration(s3; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/CreateStorageConfiguration", Dict{String,Any}("s3" => s3); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_storage_configuration( s3, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -182,17 +173,14 @@ template; otherwise, returns an error. - `arn`: ARN of the EncoderConfiguration. """ -function delete_encoder_configuration( - arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs_realtime( +delete_encoder_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/DeleteEncoderConfiguration", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_encoder_configuration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -206,24 +194,52 @@ function delete_encoder_configuration( end """ - delete_stage(arn) - delete_stage(arn, params::Dict{String,<:Any}) + delete_public_key(arn) + delete_public_key(arn, params::Dict{String,<:Any}) -Shuts down and deletes the specified stage (disconnecting all participants). +Deletes the specified public key used to sign stage participant tokens. This invalidates +future participant tokens generated using the key pair’s private key. # Arguments -- `arn`: ARN of the stage to be deleted. +- `arn`: ARN of the public key to be deleted. """ -function delete_stage(arn; aws_config::AbstractAWSConfig=current_aws_config()) +delete_public_key(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", + "/DeletePublicKey", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_public_key( + arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return ivs_realtime( "POST", - "/DeleteStage", - Dict{String,Any}("arn" => arn); + "/DeletePublicKey", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end + +""" + delete_stage(arn) + delete_stage(arn, params::Dict{String,<:Any}) + +Shuts down and deletes the specified stage (disconnecting all participants). + +# Arguments +- `arn`: ARN of the stage to be deleted. + +""" +delete_stage(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", + "/DeleteStage", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_stage( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -249,17 +265,14 @@ StopComposition and wait for it to complete, then use DeleteStorageConfiguration - `arn`: ARN of the storage configuration to be deleted. """ -function delete_storage_configuration( - arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs_realtime( +delete_storage_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/DeleteStorageConfiguration", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_storage_configuration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -288,17 +301,15 @@ specified stage. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"reason"`: Description of why this participant is being disconnected. """ -function disconnect_participant( +disconnect_participant( participantId, stageArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs_realtime( + "POST", + "/DisconnectParticipant", + Dict{String,Any}("participantId" => participantId, "stageArn" => stageArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs_realtime( - "POST", - "/DisconnectParticipant", - Dict{String,Any}("participantId" => participantId, "stageArn" => stageArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disconnect_participant( participantId, stageArn, @@ -330,15 +341,13 @@ Get information about the specified Composition resource. - `arn`: ARN of the Composition resource. """ -function get_composition(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( - "POST", - "/GetComposition", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_composition(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", + "/GetComposition", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_composition( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -361,15 +370,14 @@ Gets information about the specified EncoderConfiguration resource. - `arn`: ARN of the EncoderConfiguration resource. """ -function get_encoder_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( +get_encoder_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/GetEncoderConfiguration", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_encoder_configuration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -395,21 +403,19 @@ Gets information about the specified participant token. - `stage_arn`: Stage ARN. """ -function get_participant( +get_participant( participantId, sessionId, stageArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs_realtime( + "POST", + "/GetParticipant", + Dict{String,Any}( + "participantId" => participantId, + "sessionId" => sessionId, + "stageArn" => stageArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs_realtime( - "POST", - "/GetParticipant", - Dict{String,Any}( - "participantId" => participantId, - "sessionId" => sessionId, - "stageArn" => stageArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_participant( participantId, sessionId, @@ -437,24 +443,51 @@ function get_participant( end """ - get_stage(arn) - get_stage(arn, params::Dict{String,<:Any}) + get_public_key(arn) + get_public_key(arn, params::Dict{String,<:Any}) -Gets information for the specified stage. +Gets information for the specified public key. # Arguments -- `arn`: ARN of the stage for which the information is to be retrieved. +- `arn`: ARN of the public key for which the information is to be retrieved. """ -function get_stage(arn; aws_config::AbstractAWSConfig=current_aws_config()) +get_public_key(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", + "/GetPublicKey", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_public_key( + arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return ivs_realtime( "POST", - "/GetStage", - Dict{String,Any}("arn" => arn); + "/GetPublicKey", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("arn" => arn), params)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end + +""" + get_stage(arn) + get_stage(arn, params::Dict{String,<:Any}) + +Gets information for the specified stage. + +# Arguments +- `arn`: ARN of the stage for which the information is to be retrieved. + +""" +get_stage(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", + "/GetStage", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_stage( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -478,17 +511,14 @@ Gets information for the specified stage session. - `stage_arn`: ARN of the stage for which the information is to be retrieved. """ -function get_stage_session( - sessionId, stageArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs_realtime( +get_stage_session(sessionId, stageArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/GetStageSession", Dict{String,Any}("sessionId" => sessionId, "stageArn" => stageArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_stage_session( sessionId, stageArn, @@ -520,15 +550,14 @@ Gets the storage configuration for the specified ARN. - `arn`: ARN of the storage configuration to be retrieved. """ -function get_storage_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( +get_storage_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/GetStorageConfiguration", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_storage_configuration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -541,6 +570,49 @@ function get_storage_configuration( ) end +""" + import_public_key(public_key_material) + import_public_key(public_key_material, params::Dict{String,<:Any}) + +Import a public key to be used for signing stage participant tokens. + +# Arguments +- `public_key_material`: The content of the public key to be imported. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"name"`: Name of the public key to be imported. +- `"tags"`: Tags attached to the resource. Array of maps, each of the form string:string + (key:value). See Tagging AWS Resources for details, including restrictions that apply to + tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints on tags + beyond what is documented there. +""" +import_public_key(publicKeyMaterial; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( + "POST", + "/ImportPublicKey", + Dict{String,Any}("publicKeyMaterial" => publicKeyMaterial); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function import_public_key( + publicKeyMaterial, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ivs_realtime( + "POST", + "/ImportPublicKey", + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("publicKeyMaterial" => publicKeyMaterial), params + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_compositions() list_compositions(params::Dict{String,<:Any}) @@ -557,11 +629,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first Composition to retrieve. This is used for pagination; see the nextToken response field. """ -function list_compositions(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( - "POST", "/ListCompositions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_compositions(; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", "/ListCompositions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_compositions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -587,14 +657,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first encoder configuration to retrieve. This is used for pagination; see the nextToken response field. """ -function list_encoder_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( +list_encoder_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/ListEncoderConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_encoder_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -625,21 +694,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first participant event to retrieve. This is used for pagination; see the nextToken response field. """ -function list_participant_events( +list_participant_events( participantId, sessionId, stageArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs_realtime( + "POST", + "/ListParticipantEvents", + Dict{String,Any}( + "participantId" => participantId, + "sessionId" => sessionId, + "stageArn" => stageArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs_realtime( - "POST", - "/ListParticipantEvents", - Dict{String,Any}( - "participantId" => participantId, - "sessionId" => sessionId, - "stageArn" => stageArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_participant_events( participantId, sessionId, @@ -695,17 +762,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first participant to retrieve. This is used for pagination; see the nextToken response field. """ -function list_participants( - sessionId, stageArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs_realtime( +list_participants(sessionId, stageArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/ListParticipants", Dict{String,Any}("sessionId" => sessionId, "stageArn" => stageArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_participants( sessionId, stageArn, @@ -727,6 +791,34 @@ function list_participants( ) end +""" + list_public_keys() + list_public_keys(params::Dict{String,<:Any}) + +Gets summary information about all public keys in your account, in the AWS region where the +API request is processed. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: Maximum number of results to return. Default: 50. +- `"nextToken"`: The first public key to retrieve. This is used for pagination; see the + nextToken response field. +""" +list_public_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", "/ListPublicKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_public_keys( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ivs_realtime( + "POST", + "/ListPublicKeys", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_stage_sessions(stage_arn) list_stage_sessions(stage_arn, params::Dict{String,<:Any}) @@ -742,15 +834,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first stage session to retrieve. This is used for pagination; see the nextToken response field. """ -function list_stage_sessions(stageArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( +list_stage_sessions(stageArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/ListStageSessions", Dict{String,Any}("stageArn" => stageArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_stage_sessions( stageArn, params::AbstractDict{String}; @@ -780,11 +871,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first stage to retrieve. This is used for pagination; see the nextToken response field. """ -function list_stages(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( - "POST", "/ListStages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_stages(; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", "/ListStages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_stages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -811,14 +900,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first storage configuration to retrieve. This is used for pagination; see the nextToken response field. """ -function list_storage_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( +list_storage_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/ListStorageConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_storage_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -841,16 +929,13 @@ Gets information about AWS tags for the specified ARN. - `resource_arn`: The ARN of the resource to be retrieved. The ARN must be URL-encoded. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs_realtime( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -890,21 +975,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints on tags beyond what is documented there. """ -function start_composition( +start_composition( destinations, stageArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ivs_realtime( + "POST", + "/StartComposition", + Dict{String,Any}( + "destinations" => destinations, + "stageArn" => stageArn, + "idempotencyToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivs_realtime( - "POST", - "/StartComposition", - Dict{String,Any}( - "destinations" => destinations, - "stageArn" => stageArn, - "idempotencyToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_composition( destinations, stageArn, @@ -941,15 +1024,13 @@ stopped. - `arn`: ARN of the Composition. """ -function stop_composition(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( - "POST", - "/StopComposition", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_composition(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", + "/StopComposition", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_composition( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -976,15 +1057,14 @@ Adds or updates tags for the AWS resource with the specified ARN. constraints beyond what is documented there. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1014,17 +1094,14 @@ Removes tags from the resource with the specified ARN. is documented there. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivs_realtime( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ivs_realtime( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1051,20 +1128,18 @@ Updates a stage’s configuration. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"autoParticipantRecordingConfiguration"`: Auto-participant-recording configuration - object to attach to the stage. Auto-participant-recording configuration cannot be updated - while recording is active. +- `"autoParticipantRecordingConfiguration"`: Configuration object for individual + participant recording, to attach to the stage. Note that this cannot be updated while + recording is active. - `"name"`: Name of the stage to be updated. """ -function update_stage(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ivs_realtime( - "POST", - "/UpdateStage", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_stage(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ivs_realtime( + "POST", + "/UpdateStage", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_stage( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/ivschat.jl b/src/services/ivschat.jl index df7b143d2..abdfa97ea 100644 --- a/src/services/ivschat.jl +++ b/src/services/ivschat.jl @@ -35,17 +35,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sessionDurationInMinutes"`: Session duration (in minutes), after which the session expires. Default: 60 (1 hour). """ -function create_chat_token( +create_chat_token( roomIdentifier, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = ivschat( + "POST", + "/CreateChatToken", + Dict{String,Any}("roomIdentifier" => roomIdentifier, "userId" => userId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivschat( - "POST", - "/CreateChatToken", - Dict{String,Any}("roomIdentifier" => roomIdentifier, "userId" => userId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_chat_token( roomIdentifier, userId, @@ -86,17 +84,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags and \"Tag naming limits and requirements\"; Amazon IVS Chat has no constraints on tags beyond what is documented there. """ -function create_logging_configuration( +create_logging_configuration( destinationConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = ivschat( + "POST", + "/CreateLoggingConfiguration", + Dict{String,Any}("destinationConfiguration" => destinationConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivschat( - "POST", - "/CreateLoggingConfiguration", - Dict{String,Any}("destinationConfiguration" => destinationConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_logging_configuration( destinationConfiguration, params::AbstractDict{String}; @@ -139,11 +135,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags and \"Tag naming limits and requirements\"; Amazon IVS Chat has no constraints beyond what is documented there. """ -function create_room(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivschat( - "POST", "/CreateRoom"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_room(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivschat("POST", "/CreateRoom"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_room( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -166,17 +159,15 @@ Deletes the specified logging configuration. - `identifier`: Identifier of the logging configuration to be deleted. """ -function delete_logging_configuration( +delete_logging_configuration( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = ivschat( + "POST", + "/DeleteLoggingConfiguration", + Dict{String,Any}("identifier" => identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivschat( - "POST", - "/DeleteLoggingConfiguration", - Dict{String,Any}("identifier" => identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_logging_configuration( identifier, params::AbstractDict{String}; @@ -212,17 +203,14 @@ the Amazon IVS Chat Messaging API. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"reason"`: Reason for deleting the message. """ -function delete_message( - id, roomIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivschat( +delete_message(id, roomIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + ivschat( "POST", "/DeleteMessage", Dict{String,Any}("id" => id, "roomIdentifier" => roomIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_message( id, roomIdentifier, @@ -254,15 +242,13 @@ Deletes the specified room. - `identifier`: Identifier of the room to be deleted. Currently this must be an ARN. """ -function delete_room(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return ivschat( - "POST", - "/DeleteRoom", - Dict{String,Any}("identifier" => identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_room(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = ivschat( + "POST", + "/DeleteRoom", + Dict{String,Any}("identifier" => identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_room( identifier, params::AbstractDict{String}; @@ -295,17 +281,15 @@ DisconnectUser WebSocket operation in the Amazon IVS Chat Messaging API. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"reason"`: Reason for disconnecting the user. """ -function disconnect_user( +disconnect_user( roomIdentifier, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = ivschat( + "POST", + "/DisconnectUser", + Dict{String,Any}("roomIdentifier" => roomIdentifier, "userId" => userId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivschat( - "POST", - "/DisconnectUser", - Dict{String,Any}("roomIdentifier" => roomIdentifier, "userId" => userId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disconnect_user( roomIdentifier, userId, @@ -337,17 +321,14 @@ Gets the specified logging configuration. - `identifier`: Identifier of the logging configuration to be retrieved. """ -function get_logging_configuration( - identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivschat( +get_logging_configuration(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + ivschat( "POST", "/GetLoggingConfiguration", Dict{String,Any}("identifier" => identifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_logging_configuration( identifier, params::AbstractDict{String}; @@ -375,15 +356,13 @@ Gets the specified room. Currently this must be an ARN. """ -function get_room(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return ivschat( - "POST", - "/GetRoom", - Dict{String,Any}("identifier" => identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_room(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = ivschat( + "POST", + "/GetRoom", + Dict{String,Any}("identifier" => identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_room( identifier, params::AbstractDict{String}; @@ -413,14 +392,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first logging configurations to retrieve. This is used for pagination; see the nextToken response field. """ -function list_logging_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivschat( - "POST", - "/ListLoggingConfigurations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_logging_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = ivschat( + "POST", + "/ListLoggingConfigurations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_logging_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -450,11 +427,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The first room to retrieve. This is used for pagination; see the nextToken response field. """ -function list_rooms(; aws_config::AbstractAWSConfig=current_aws_config()) - return ivschat( - "POST", "/ListRooms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rooms(; aws_config::AbstractAWSConfig=current_aws_config()) = + ivschat("POST", "/ListRooms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rooms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -473,16 +447,13 @@ Gets information about AWS tags for the specified ARN. - `resource_arn`: The ARN of the resource to be retrieved. The ARN must be URL-encoded. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivschat( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ivschat( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -515,17 +486,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"attributes"`: Application-defined metadata to attach to the event sent to clients. The maximum length of the metadata is 1 KB total. """ -function send_event( - eventName, roomIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivschat( +send_event(eventName, roomIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + ivschat( "POST", "/SendEvent", Dict{String,Any}("eventName" => eventName, "roomIdentifier" => roomIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_event( eventName, roomIdentifier, @@ -563,15 +531,14 @@ Adds or updates tags for the AWS resource with the specified ARN. constraints beyond what is documented there. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ivschat( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + ivschat( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -601,17 +568,14 @@ Removes tags from the resource with the specified ARN. what is documented there. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ivschat( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ivschat( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -643,17 +607,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (cloudWatchLogs, firehose, or s3) in a destinationConfiguration. - `"name"`: Logging-configuration name. The value does not need to be unique. """ -function update_logging_configuration( +update_logging_configuration( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = ivschat( + "POST", + "/UpdateLoggingConfiguration", + Dict{String,Any}("identifier" => identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ivschat( - "POST", - "/UpdateLoggingConfiguration", - Dict{String,Any}("identifier" => identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_logging_configuration( identifier, params::AbstractDict{String}; @@ -693,15 +655,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys room. - `"name"`: Room name. The value does not need to be unique. """ -function update_room(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return ivschat( - "POST", - "/UpdateRoom", - Dict{String,Any}("identifier" => identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_room(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = ivschat( + "POST", + "/UpdateRoom", + Dict{String,Any}("identifier" => identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_room( identifier, params::AbstractDict{String}; diff --git a/src/services/kafka.jl b/src/services/kafka.jl index a2d0b06e9..e80a0d3e5 100644 --- a/src/services/kafka.jl +++ b/src/services/kafka.jl @@ -19,17 +19,15 @@ using AWS.UUIDs List of AWS Secrets Manager secret ARNs. """ -function batch_associate_scram_secret( +batch_associate_scram_secret( clusterArn, secretArnList; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "POST", + "/v1/clusters/$(clusterArn)/scram-secrets", + Dict{String,Any}("secretArnList" => secretArnList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "POST", - "/v1/clusters/$(clusterArn)/scram-secrets", - Dict{String,Any}("secretArnList" => secretArnList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_scram_secret( clusterArn, secretArnList, @@ -62,17 +60,15 @@ end List of AWS Secrets Manager secret ARNs. """ -function batch_disassociate_scram_secret( +batch_disassociate_scram_secret( clusterArn, secretArnList; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "PATCH", + "/v1/clusters/$(clusterArn)/scram-secrets", + Dict{String,Any}("secretArnList" => secretArnList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PATCH", - "/v1/clusters/$(clusterArn)/scram-secrets", - Dict{String,Any}("secretArnList" => secretArnList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_scram_secret( clusterArn, secretArnList, @@ -132,26 +128,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Create tags when creating the cluster. """ -function create_cluster( +create_cluster( brokerNodeGroupInfo, clusterName, kafkaVersion, numberOfBrokerNodes; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "POST", + "/v1/clusters", + Dict{String,Any}( + "brokerNodeGroupInfo" => brokerNodeGroupInfo, + "clusterName" => clusterName, + "kafkaVersion" => kafkaVersion, + "numberOfBrokerNodes" => numberOfBrokerNodes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "POST", - "/v1/clusters", - Dict{String,Any}( - "brokerNodeGroupInfo" => brokerNodeGroupInfo, - "clusterName" => clusterName, - "kafkaVersion" => kafkaVersion, - "numberOfBrokerNodes" => numberOfBrokerNodes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster( brokerNodeGroupInfo, clusterName, @@ -200,15 +194,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A map of tags that you want the cluster to have. """ -function create_cluster_v2(clusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "POST", - "/api/v2/clusters", - Dict{String,Any}("clusterName" => clusterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_cluster_v2(clusterName; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "POST", + "/api/v2/clusters", + Dict{String,Any}("clusterName" => clusterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_cluster_v2( clusterName, params::AbstractDict{String}; @@ -250,17 +242,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The versions of Apache Kafka with which you can use this MSK configuration. """ -function create_configuration( +create_configuration( name, serverProperties; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "POST", + "/v1/configurations", + Dict{String,Any}("name" => name, "serverProperties" => serverProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "POST", - "/v1/configurations", - Dict{String,Any}("name" => name, "serverProperties" => serverProperties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration( name, serverProperties, @@ -302,26 +292,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A summary description of the replicator. - `"tags"`: List of tags to attach to created Replicator. """ -function create_replicator( +create_replicator( kafkaClusters, replicationInfoList, replicatorName, serviceExecutionRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "POST", + "/replication/v1/replicators", + Dict{String,Any}( + "kafkaClusters" => kafkaClusters, + "replicationInfoList" => replicationInfoList, + "replicatorName" => replicatorName, + "serviceExecutionRoleArn" => serviceExecutionRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "POST", - "/replication/v1/replicators", - Dict{String,Any}( - "kafkaClusters" => kafkaClusters, - "replicationInfoList" => replicationInfoList, - "replicatorName" => replicatorName, - "serviceExecutionRoleArn" => serviceExecutionRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replicator( kafkaClusters, replicationInfoList, @@ -375,28 +363,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A map of tags for the VPC connection. """ -function create_vpc_connection( +create_vpc_connection( authentication, clientSubnets, securityGroups, targetClusterArn, vpcId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "POST", + "/v1/vpc-connection", + Dict{String,Any}( + "authentication" => authentication, + "clientSubnets" => clientSubnets, + "securityGroups" => securityGroups, + "targetClusterArn" => targetClusterArn, + "vpcId" => vpcId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "POST", - "/v1/vpc-connection", - Dict{String,Any}( - "authentication" => authentication, - "clientSubnets" => clientSubnets, - "securityGroups" => securityGroups, - "targetClusterArn" => targetClusterArn, - "vpcId" => vpcId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_connection( authentication, clientSubnets, @@ -445,14 +431,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"currentVersion"`: The current version of the MSK cluster. """ -function delete_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "DELETE", - "/v1/clusters/$(clusterArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "DELETE", + "/v1/clusters/$(clusterArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_cluster( clusterArn, params::AbstractDict{String}; @@ -480,16 +464,13 @@ the request. The Amazon Resource Name (ARN) of the cluster. """ -function delete_cluster_policy( - clusterArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +delete_cluster_policy(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "DELETE", "/v1/clusters/$(clusterArn)/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cluster_policy( clusterArn, params::AbstractDict{String}; @@ -517,14 +498,12 @@ end configuration. """ -function delete_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "DELETE", - "/v1/configurations/$(arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "DELETE", + "/v1/configurations/$(arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_configuration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -550,16 +529,13 @@ Deletes a replicator. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"currentVersion"`: The current version of the replicator. """ -function delete_replicator( - replicatorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +delete_replicator(replicatorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "DELETE", "/replication/v1/replicators/$(replicatorArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_replicator( replicatorArn, params::AbstractDict{String}; @@ -587,14 +563,12 @@ end connection. """ -function delete_vpc_connection(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "DELETE", - "/v1/vpc-connection/$(arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_vpc_connection(arn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "DELETE", + "/v1/vpc-connection/$(arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_vpc_connection( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -621,14 +595,12 @@ specified in the request. cluster. """ -function describe_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/v1/clusters/$(clusterArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_cluster(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/v1/clusters/$(clusterArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_cluster( clusterArn, params::AbstractDict{String}; @@ -656,16 +628,14 @@ end identifies the MSK cluster operation. """ -function describe_cluster_operation( +describe_cluster_operation( clusterOperationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "GET", + "/v1/operations/$(clusterOperationArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "GET", - "/v1/operations/$(clusterOperationArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cluster_operation( clusterOperationArn, params::AbstractDict{String}; @@ -691,16 +661,14 @@ end - `cluster_operation_arn`: ARN of the cluster operation to describe. """ -function describe_cluster_operation_v2( +describe_cluster_operation_v2( clusterOperationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "GET", + "/api/v2/operations/$(clusterOperationArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "GET", - "/api/v2/operations/$(clusterOperationArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cluster_operation_v2( clusterOperationArn, params::AbstractDict{String}; @@ -729,14 +697,12 @@ specified in the request. cluster. """ -function describe_cluster_v2(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/api/v2/clusters/$(clusterArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_cluster_v2(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/api/v2/clusters/$(clusterArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_cluster_v2( clusterArn, params::AbstractDict{String}; @@ -764,14 +730,12 @@ end configuration and all of its revisions. """ -function describe_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/v1/configurations/$(arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_configuration(arn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/v1/configurations/$(arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_configuration( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -800,16 +764,14 @@ end configuration. """ -function describe_configuration_revision( +describe_configuration_revision( arn, revision; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "GET", + "/v1/configurations/$(arn)/revisions/$(revision)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "GET", - "/v1/configurations/$(arn)/revisions/$(revision)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_configuration_revision( arn, revision, @@ -835,16 +797,13 @@ Describes a replicator. - `replicator_arn`: The Amazon Resource Name (ARN) of the replicator to be described. """ -function describe_replicator( - replicatorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +describe_replicator(replicatorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "GET", "/replication/v1/replicators/$(replicatorArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_replicator( replicatorArn, params::AbstractDict{String}; @@ -872,14 +831,12 @@ end connection. """ -function describe_vpc_connection(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/v1/vpc-connection/$(arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_vpc_connection(arn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/v1/vpc-connection/$(arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_vpc_connection( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -905,16 +862,13 @@ end cluster. """ -function get_bootstrap_brokers( - clusterArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +get_bootstrap_brokers(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "GET", "/v1/clusters/$(clusterArn)/bootstrap-brokers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_bootstrap_brokers( clusterArn, params::AbstractDict{String}; @@ -942,14 +896,12 @@ request. The Amazon Resource Name (ARN) of the cluster. """ -function get_cluster_policy(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/v1/clusters/$(clusterArn)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_cluster_policy(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/v1/clusters/$(clusterArn)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_cluster_policy( clusterArn, params::AbstractDict{String}; @@ -978,14 +930,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The Amazon Resource Name (ARN) of the cluster check. """ -function get_compatible_kafka_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/v1/compatible-kafka-versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_compatible_kafka_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/v1/compatible-kafka-versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_compatible_kafka_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1020,16 +970,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the next batch, provide this token in your next request. """ -function list_client_vpc_connections( +list_client_vpc_connections( clusterArn; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "GET", + "/v1/clusters/$(clusterArn)/client-vpc-connections"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "GET", - "/v1/clusters/$(clusterArn)/client-vpc-connections"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_client_vpc_connections( clusterArn, params::AbstractDict{String}; @@ -1068,16 +1016,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the next batch, provide this token in your next request. """ -function list_cluster_operations( - clusterArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +list_cluster_operations(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "GET", "/v1/clusters/$(clusterArn)/operations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cluster_operations( clusterArn, params::AbstractDict{String}; @@ -1108,16 +1053,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maxResults of the query. - `"nextToken"`: The nextToken of the query. """ -function list_cluster_operations_v2( - clusterArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +list_cluster_operations_v2(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "GET", "/api/v2/clusters/$(clusterArn)/operations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cluster_operations_v2( clusterArn, params::AbstractDict{String}; @@ -1154,11 +1096,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the next batch, provide this token in your next request. """ -function list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", "/v1/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka("GET", "/v1/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1195,11 +1134,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the next batch, provide this token in your next request. """ -function list_clusters_v2(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", "/api/v2/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_clusters_v2(; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka("GET", "/api/v2/clusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_clusters_v2( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1235,16 +1171,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the next batch, provide this token in your next request. """ -function list_configuration_revisions( - arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +list_configuration_revisions(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "GET", "/v1/configurations/$(arn)/revisions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_configuration_revisions( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1275,11 +1208,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the next batch, provide this token in your next request. """ -function list_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", "/v1/configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", "/v1/configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1309,11 +1240,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation is truncated, the call returns NextToken in the response. To get the next batch, provide this token in your next request. """ -function list_kafka_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", "/v1/kafka-versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_kafka_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", "/v1/kafka-versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_kafka_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1349,14 +1278,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the next batch, provide this token in your next request. """ -function list_nodes(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/v1/clusters/$(clusterArn)/nodes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_nodes(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/v1/clusters/$(clusterArn)/nodes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_nodes( clusterArn, params::AbstractDict{String}; @@ -1385,14 +1312,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response. This NextToken should be sent in the subsequent request to ListReplicators. - `"replicatorNameFilter"`: Returns replicators starting with given name. """ -function list_replicators(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/replication/v1/replicators"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_replicators(; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/replication/v1/replicators"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_replicators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1424,14 +1349,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken of the query. """ -function list_scram_secrets(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", - "/v1/clusters/$(clusterArn)/scram-secrets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_scram_secrets(clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", + "/v1/clusters/$(clusterArn)/scram-secrets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_scram_secrets( clusterArn, params::AbstractDict{String}; @@ -1459,16 +1382,13 @@ end resource that's associated with the tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "GET", "/v1/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1501,11 +1421,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the next batch, provide this token in your next request. """ -function list_vpc_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "GET", "/v1/vpc-connections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_vpc_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "GET", "/v1/vpc-connections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_vpc_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1537,17 +1455,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"currentVersion"`: The policy version. """ -function put_cluster_policy( - clusterArn, policy; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +put_cluster_policy(clusterArn, policy; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "PUT", "/v1/clusters/$(clusterArn)/policy", Dict{String,Any}("policy" => policy); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_cluster_policy( clusterArn, policy, @@ -1578,17 +1493,14 @@ Reboots brokers. """ -function reboot_broker( - brokerIds, clusterArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +reboot_broker(brokerIds, clusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "PUT", "/v1/clusters/$(clusterArn)/reboot-broker", Dict{String,Any}("brokerIds" => brokerIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reboot_broker( brokerIds, clusterArn, @@ -1620,17 +1532,15 @@ end The VPC connection ARN. """ -function reject_client_vpc_connection( +reject_client_vpc_connection( clusterArn, vpcConnectionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/client-vpc-connection", + Dict{String,Any}("vpcConnectionArn" => vpcConnectionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/client-vpc-connection", - Dict{String,Any}("vpcConnectionArn" => vpcConnectionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_client_vpc_connection( clusterArn, vpcConnectionArn, @@ -1665,15 +1575,13 @@ end The key-value pair for the resource tag. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kafka( - "POST", - "/v1/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = kafka( + "POST", + "/v1/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -1721,17 +1629,14 @@ end @. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafka( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + kafka( "DELETE", "/v1/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1766,23 +1671,21 @@ end the cluster to have after this operation completes successfully. """ -function update_broker_count( +update_broker_count( clusterArn, currentVersion, targetNumberOfBrokerNodes; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/nodes/count", + Dict{String,Any}( + "currentVersion" => currentVersion, + "targetNumberOfBrokerNodes" => targetNumberOfBrokerNodes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/nodes/count", - Dict{String,Any}( - "currentVersion" => currentVersion, - "targetNumberOfBrokerNodes" => targetNumberOfBrokerNodes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_broker_count( clusterArn, currentVersion, @@ -1827,23 +1730,21 @@ end of the broker to apply the update to. """ -function update_broker_storage( +update_broker_storage( clusterArn, currentVersion, targetBrokerEBSVolumeInfo; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/nodes/storage", + Dict{String,Any}( + "currentVersion" => currentVersion, + "targetBrokerEBSVolumeInfo" => targetBrokerEBSVolumeInfo, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/nodes/storage", - Dict{String,Any}( - "currentVersion" => currentVersion, - "targetBrokerEBSVolumeInfo" => targetBrokerEBSVolumeInfo, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_broker_storage( clusterArn, currentVersion, @@ -1888,22 +1789,20 @@ end brokers in this cluster to be. """ -function update_broker_type( +update_broker_type( clusterArn, currentVersion, targetInstanceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/nodes/type", + Dict{String,Any}( + "currentVersion" => currentVersion, "targetInstanceType" => targetInstanceType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/nodes/type", - Dict{String,Any}( - "currentVersion" => currentVersion, "targetInstanceType" => targetInstanceType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_broker_type( clusterArn, currentVersion, @@ -1949,22 +1848,20 @@ body. """ -function update_cluster_configuration( +update_cluster_configuration( clusterArn, configurationInfo, currentVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/configuration", + Dict{String,Any}( + "configurationInfo" => configurationInfo, "currentVersion" => currentVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/configuration", - Dict{String,Any}( - "configurationInfo" => configurationInfo, "currentVersion" => currentVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cluster_configuration( clusterArn, configurationInfo, @@ -2012,22 +1909,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The custom configuration that should be applied on the new version of cluster. """ -function update_cluster_kafka_version( +update_cluster_kafka_version( clusterArn, currentVersion, targetKafkaVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/version", + Dict{String,Any}( + "currentVersion" => currentVersion, "targetKafkaVersion" => targetKafkaVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/version", - Dict{String,Any}( - "currentVersion" => currentVersion, "targetKafkaVersion" => targetKafkaVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cluster_kafka_version( clusterArn, currentVersion, @@ -2075,17 +1970,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the configuration revision. """ -function update_configuration( +update_configuration( arn, serverProperties; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "PUT", + "/v1/configurations/$(arn)", + Dict{String,Any}("serverProperties" => serverProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/configurations/$(arn)", - Dict{String,Any}("serverProperties" => serverProperties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration( arn, serverProperties, @@ -2124,22 +2017,20 @@ end this update operation is successful, it generates a new cluster version. """ -function update_connectivity( +update_connectivity( clusterArn, connectivityInfo, currentVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/connectivity", + Dict{String,Any}( + "connectivityInfo" => connectivityInfo, "currentVersion" => currentVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/connectivity", - Dict{String,Any}( - "connectivityInfo" => connectivityInfo, "currentVersion" => currentVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connectivity( clusterArn, connectivityInfo, @@ -2192,17 +2083,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"openMonitoring"`: The settings for open monitoring. """ -function update_monitoring( +update_monitoring( clusterArn, currentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/monitoring", + Dict{String,Any}("currentVersion" => currentVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/monitoring", - Dict{String,Any}("currentVersion" => currentVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_monitoring( clusterArn, currentVersion, @@ -2237,25 +2126,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"consumerGroupReplication"`: Updated consumer group replication information. - `"topicReplication"`: Updated topic replication information. """ -function update_replication_info( +update_replication_info( currentVersion, replicatorArn, sourceKafkaClusterArn, targetKafkaClusterArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafka( + "PUT", + "/replication/v1/replicators/$(replicatorArn)/replication-info", + Dict{String,Any}( + "currentVersion" => currentVersion, + "sourceKafkaClusterArn" => sourceKafkaClusterArn, + "targetKafkaClusterArn" => targetKafkaClusterArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/replication/v1/replicators/$(replicatorArn)/replication-info", - Dict{String,Any}( - "currentVersion" => currentVersion, - "sourceKafkaClusterArn" => sourceKafkaClusterArn, - "targetKafkaClusterArn" => targetKafkaClusterArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_replication_info( currentVersion, replicatorArn, @@ -2308,17 +2195,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"encryptionInfo"`: Includes all encryption-related information. """ -function update_security( +update_security( clusterArn, currentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "PATCH", + "/v1/clusters/$(clusterArn)/security", + Dict{String,Any}("currentVersion" => currentVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PATCH", - "/v1/clusters/$(clusterArn)/security", - Dict{String,Any}("currentVersion" => currentVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_security( clusterArn, currentVersion, @@ -2360,17 +2245,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"volumeSizeGB"`: size of the EBS volume to update. """ -function update_storage( +update_storage( clusterArn, currentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = kafka( + "PUT", + "/v1/clusters/$(clusterArn)/storage", + Dict{String,Any}("currentVersion" => currentVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafka( - "PUT", - "/v1/clusters/$(clusterArn)/storage", - Dict{String,Any}("currentVersion" => currentVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_storage( clusterArn, currentVersion, diff --git a/src/services/kafkaconnect.jl b/src/services/kafkaconnect.jl index dd5f95bda..ab0fe77a6 100644 --- a/src/services/kafkaconnect.jl +++ b/src/services/kafkaconnect.jl @@ -40,7 +40,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags you want to attach to the connector. - `"workerConfiguration"`: Specifies which worker configuration to use with the connector. """ -function create_connector( +create_connector( capacity, connectorConfiguration, connectorName, @@ -51,25 +51,23 @@ function create_connector( plugins, serviceExecutionRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafkaconnect( + "POST", + "/v1/connectors", + Dict{String,Any}( + "capacity" => capacity, + "connectorConfiguration" => connectorConfiguration, + "connectorName" => connectorName, + "kafkaCluster" => kafkaCluster, + "kafkaClusterClientAuthentication" => kafkaClusterClientAuthentication, + "kafkaClusterEncryptionInTransit" => kafkaClusterEncryptionInTransit, + "kafkaConnectVersion" => kafkaConnectVersion, + "plugins" => plugins, + "serviceExecutionRoleArn" => serviceExecutionRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafkaconnect( - "POST", - "/v1/connectors", - Dict{String,Any}( - "capacity" => capacity, - "connectorConfiguration" => connectorConfiguration, - "connectorName" => connectorName, - "kafkaCluster" => kafkaCluster, - "kafkaClusterClientAuthentication" => kafkaClusterClientAuthentication, - "kafkaClusterEncryptionInTransit" => kafkaClusterEncryptionInTransit, - "kafkaConnectVersion" => kafkaConnectVersion, - "plugins" => plugins, - "serviceExecutionRoleArn" => serviceExecutionRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connector( capacity, connectorConfiguration, @@ -124,19 +122,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A summary description of the custom plugin. - `"tags"`: The tags you want to attach to the custom plugin. """ -function create_custom_plugin( +create_custom_plugin( contentType, location, name; aws_config::AbstractAWSConfig=current_aws_config() +) = kafkaconnect( + "POST", + "/v1/custom-plugins", + Dict{String,Any}("contentType" => contentType, "location" => location, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafkaconnect( - "POST", - "/v1/custom-plugins", - Dict{String,Any}( - "contentType" => contentType, "location" => location, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_plugin( contentType, location, @@ -176,17 +170,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A summary description of the worker configuration. - `"tags"`: The tags you want to attach to the worker configuration. """ -function create_worker_configuration( +create_worker_configuration( name, propertiesFileContent; aws_config::AbstractAWSConfig=current_aws_config() +) = kafkaconnect( + "POST", + "/v1/worker-configurations", + Dict{String,Any}("name" => name, "propertiesFileContent" => propertiesFileContent); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafkaconnect( - "POST", - "/v1/worker-configurations", - Dict{String,Any}("name" => name, "propertiesFileContent" => propertiesFileContent); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_worker_configuration( name, propertiesFileContent, @@ -223,14 +215,13 @@ Deletes the specified connector. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"currentVersion"`: The current version of the connector that you want to delete. """ -function delete_connector(connectorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return kafkaconnect( +delete_connector(connectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafkaconnect( "DELETE", "/v1/connectors/$(connectorArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connector( connectorArn, params::AbstractDict{String}; @@ -256,16 +247,13 @@ Deletes a custom plugin. delete. """ -function delete_custom_plugin( - customPluginArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafkaconnect( +delete_custom_plugin(customPluginArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafkaconnect( "DELETE", "/v1/custom-plugins/$(customPluginArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_custom_plugin( customPluginArn, params::AbstractDict{String}; @@ -291,16 +279,14 @@ Deletes the specified worker configuration. that you want to delete. """ -function delete_worker_configuration( +delete_worker_configuration( workerConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = kafkaconnect( + "DELETE", + "/v1/worker-configurations/$(workerConfigurationArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafkaconnect( - "DELETE", - "/v1/worker-configurations/$(workerConfigurationArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_worker_configuration( workerConfigurationArn, params::AbstractDict{String}; @@ -326,16 +312,13 @@ Returns summary information about the connector. describe. """ -function describe_connector( - connectorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafkaconnect( +describe_connector(connectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafkaconnect( "GET", "/v1/connectors/$(connectorArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_connector( connectorArn, params::AbstractDict{String}; @@ -360,16 +343,14 @@ A summary description of the custom plugin. - `custom_plugin_arn`: Returns information about a custom plugin. """ -function describe_custom_plugin( +describe_custom_plugin( customPluginArn; aws_config::AbstractAWSConfig=current_aws_config() +) = kafkaconnect( + "GET", + "/v1/custom-plugins/$(customPluginArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafkaconnect( - "GET", - "/v1/custom-plugins/$(customPluginArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_custom_plugin( customPluginArn, params::AbstractDict{String}; @@ -395,16 +376,14 @@ Returns information about a worker configuration. that you want to get information about. """ -function describe_worker_configuration( +describe_worker_configuration( workerConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = kafkaconnect( + "GET", + "/v1/worker-configurations/$(workerConfigurationArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafkaconnect( - "GET", - "/v1/worker-configurations/$(workerConfigurationArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_worker_configuration( workerConfigurationArn, params::AbstractDict{String}; @@ -436,11 +415,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off. """ -function list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafkaconnect( - "GET", "/v1/connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = kafkaconnect( + "GET", "/v1/connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -467,11 +444,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off. """ -function list_custom_plugins(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafkaconnect( - "GET", "/v1/custom-plugins"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_custom_plugins(; aws_config::AbstractAWSConfig=current_aws_config()) = kafkaconnect( + "GET", "/v1/custom-plugins"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_custom_plugins( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -495,16 +470,13 @@ Lists all the tags attached to the specified resource. all attached tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafkaconnect( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kafkaconnect( "GET", "/v1/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -534,14 +506,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off. """ -function list_worker_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return kafkaconnect( +list_worker_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + kafkaconnect( "GET", "/v1/worker-configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_worker_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -566,15 +537,14 @@ Attaches tags to the specified resource. - `tags`: The tags that you want to attach to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kafkaconnect( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + kafkaconnect( "POST", "/v1/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -602,17 +572,14 @@ Removes tags from the specified resource. - `tag_keys`: The keys of the tags that you want to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return kafkaconnect( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + kafkaconnect( "DELETE", "/v1/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -640,20 +607,18 @@ Updates the specified connector. - `current_version`: The current version of the connector that you want to update. """ -function update_connector( +update_connector( capacity, connectorArn, currentVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = kafkaconnect( + "PUT", + "/v1/connectors/$(connectorArn)", + Dict{String,Any}("capacity" => capacity, "currentVersion" => currentVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kafkaconnect( - "PUT", - "/v1/connectors/$(connectorArn)", - Dict{String,Any}("capacity" => capacity, "currentVersion" => currentVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connector( capacity, connectorArn, diff --git a/src/services/kendra.jl b/src/services/kendra.jl index dcb54415e..92c286fc5 100644 --- a/src/services/kendra.jl +++ b/src/services/kendra.jl @@ -19,16 +19,14 @@ experience with no code. - `index_id`: The identifier of the index for your Amazon Kendra experience. """ -function associate_entities_to_experience( +associate_entities_to_experience( EntityList, Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "AssociateEntitiesToExperience", + Dict{String,Any}("EntityList" => EntityList, "Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "AssociateEntitiesToExperience", - Dict{String,Any}("EntityList" => EntityList, "Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_entities_to_experience( EntityList, Id, @@ -69,16 +67,14 @@ application experience, see Building a search experience with no code. Viewer. For more information on these personas, see Providing access to your search page. """ -function associate_personas_to_entities( +associate_personas_to_entities( Id, IndexId, Personas; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "AssociatePersonasToEntities", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId, "Personas" => Personas); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "AssociatePersonasToEntities", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId, "Personas" => Personas); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_personas_to_entities( Id, IndexId, @@ -120,16 +116,14 @@ more, depending on the number of documents you want to delete. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DataSourceSyncJobMetricTarget"`: """ -function batch_delete_document( +batch_delete_document( DocumentIdList, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "BatchDeleteDocument", + Dict{String,Any}("DocumentIdList" => DocumentIdList, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "BatchDeleteDocument", - Dict{String,Any}("DocumentIdList" => DocumentIdList, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_document( DocumentIdList, IndexId, @@ -164,18 +158,16 @@ specific documents are featured in the search results. - `index_id`: The identifier of the index used for featuring results. """ -function batch_delete_featured_results_set( +batch_delete_featured_results_set( FeaturedResultsSetIds, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "BatchDeleteFeaturedResultsSet", + Dict{String,Any}( + "FeaturedResultsSetIds" => FeaturedResultsSetIds, "IndexId" => IndexId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "BatchDeleteFeaturedResultsSet", - Dict{String,Any}( - "FeaturedResultsSetIds" => FeaturedResultsSetIds, "IndexId" => IndexId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_featured_results_set( FeaturedResultsSetIds, IndexId, @@ -217,16 +209,14 @@ document is deleted from the index, Amazon Kendra returns NOT_FOUND as the statu the CreateIndex API. """ -function batch_get_document_status( +batch_get_document_status( DocumentInfoList, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "BatchGetDocumentStatus", + Dict{String,Any}("DocumentInfoList" => DocumentInfoList, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "BatchGetDocumentStatus", - Dict{String,Any}("DocumentInfoList" => DocumentInfoList, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_document_status( DocumentInfoList, IndexId, @@ -280,16 +270,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleArn"`: The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket. For more information, see IAM access roles for Amazon Kendra. """ -function batch_put_document( - Documents, IndexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +batch_put_document(Documents, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "BatchPutDocument", Dict{String,Any}("Documents" => Documents, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_put_document( Documents, IndexId, @@ -325,16 +312,13 @@ supported in the Amazon Web Services GovCloud (US-West) region. - `index_id`: The identifier of the index you want to clear query suggestions from. """ -function clear_query_suggestions( - IndexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +clear_query_suggestions(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "ClearQuerySuggestions", Dict{String,Any}("IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function clear_query_suggestions( IndexId, params::AbstractDict{String}; @@ -387,18 +371,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HierarchicalAccessControlList"`: The list of principal lists that define the hierarchy for which documents users should have access to. """ -function create_access_control_configuration( +create_access_control_configuration( IndexId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "CreateAccessControlConfiguration", + Dict{String,Any}( + "IndexId" => IndexId, "Name" => Name, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "CreateAccessControlConfiguration", - Dict{String,Any}( - "IndexId" => IndexId, "Name" => Name, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_control_configuration( IndexId, Name, @@ -475,21 +457,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcConfiguration"`: Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC. """ -function create_data_source( +create_data_source( IndexId, Name, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "CreateDataSource", + Dict{String,Any}( + "IndexId" => IndexId, + "Name" => Name, + "Type" => Type, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "CreateDataSource", - Dict{String,Any}( - "IndexId" => IndexId, - "Name" => Name, - "Type" => Type, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_source( IndexId, Name, @@ -543,10 +523,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permission to access IAM Identity Center that stores your user and group information. For more information, see IAM access roles for Amazon Kendra. """ -function create_experience( - IndexId, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +create_experience(IndexId, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "CreateExperience", Dict{String,Any}( "IndexId" => IndexId, "Name" => Name, "ClientToken" => string(uuid4()) @@ -554,7 +532,6 @@ function create_experience( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_experience( IndexId, Name, @@ -610,22 +587,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of key-value pairs that identify the FAQ. You can use the tags to identify and organize your resources and to control access to resources. """ -function create_faq( +create_faq( IndexId, Name, RoleArn, S3Path; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "CreateFaq", + Dict{String,Any}( + "IndexId" => IndexId, + "Name" => Name, + "RoleArn" => RoleArn, + "S3Path" => S3Path, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "CreateFaq", - Dict{String,Any}( - "IndexId" => IndexId, - "Name" => Name, - "RoleArn" => RoleArn, - "S3Path" => S3Path, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_faq( IndexId, Name, @@ -690,18 +665,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys values can consist of Unicode letters, digits, white space, and any of the following symbols:_ . : / = + - @. """ -function create_featured_results_set( +create_featured_results_set( FeaturedResultsSetName, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "CreateFeaturedResultsSet", + Dict{String,Any}( + "FeaturedResultsSetName" => FeaturedResultsSetName, "IndexId" => IndexId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "CreateFeaturedResultsSet", - Dict{String,Any}( - "FeaturedResultsSetName" => FeaturedResultsSetName, "IndexId" => IndexId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_featured_results_set( FeaturedResultsSetName, IndexId, @@ -770,16 +743,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys group access to documents. - `"UserTokenConfigurations"`: The user token configuration. """ -function create_index(Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "CreateIndex", - Dict{String,Any}( - "Name" => Name, "RoleArn" => RoleArn, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_index(Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "CreateIndex", + Dict{String,Any}( + "Name" => Name, "RoleArn" => RoleArn, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_index( Name, RoleArn, @@ -839,22 +810,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @. """ -function create_query_suggestions_block_list( +create_query_suggestions_block_list( IndexId, Name, RoleArn, SourceS3Path; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "CreateQuerySuggestionsBlockList", + Dict{String,Any}( + "IndexId" => IndexId, + "Name" => Name, + "RoleArn" => RoleArn, + "SourceS3Path" => SourceS3Path, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "CreateQuerySuggestionsBlockList", - Dict{String,Any}( - "IndexId" => IndexId, - "Name" => Name, - "RoleArn" => RoleArn, - "SourceS3Path" => SourceS3Path, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_query_suggestions_block_list( IndexId, Name, @@ -909,22 +878,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys also use tags to help control access to the thesaurus. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @. """ -function create_thesaurus( +create_thesaurus( IndexId, Name, RoleArn, SourceS3Path; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "CreateThesaurus", + Dict{String,Any}( + "IndexId" => IndexId, + "Name" => Name, + "RoleArn" => RoleArn, + "SourceS3Path" => SourceS3Path, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "CreateThesaurus", - Dict{String,Any}( - "IndexId" => IndexId, - "Name" => Name, - "RoleArn" => RoleArn, - "SourceS3Path" => SourceS3Path, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_thesaurus( IndexId, Name, @@ -967,16 +934,14 @@ access to documents. - `index_id`: The identifier of the index for an access control configuration. """ -function delete_access_control_configuration( +delete_access_control_configuration( Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DeleteAccessControlConfiguration", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DeleteAccessControlConfiguration", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_control_configuration( Id, IndexId, @@ -1009,14 +974,13 @@ on the number of documents you want to delete. - `index_id`: The identifier of the index used with the data source connector. """ -function delete_data_source(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( +delete_data_source(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "DeleteDataSource", Dict{String,Any}("Id" => Id, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_data_source( Id, IndexId, @@ -1045,14 +1009,12 @@ creating a search application experience, see Building a search experience with - `index_id`: The identifier of the index for your Amazon Kendra experience. """ -function delete_experience(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "DeleteExperience", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_experience(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "DeleteExperience", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_experience( Id, IndexId, @@ -1080,14 +1042,12 @@ Removes an FAQ from an index. - `index_id`: The identifier of the index for the FAQ. """ -function delete_faq(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "DeleteFaq", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_faq(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "DeleteFaq", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_faq( Id, IndexId, @@ -1116,14 +1076,12 @@ DescribeIndex API is set to DELETING. - `id`: The identifier of the index you want to delete. """ -function delete_index(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "DeleteIndex", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_index(Id; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "DeleteIndex", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_index( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1175,16 +1133,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys yet to be processed. The default ordering ID is the current Unix time in milliseconds that the action was received by Amazon Kendra. """ -function delete_principal_mapping( +delete_principal_mapping( GroupId, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DeletePrincipalMapping", + Dict{String,Any}("GroupId" => GroupId, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DeletePrincipalMapping", - Dict{String,Any}("GroupId" => GroupId, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_principal_mapping( GroupId, IndexId, @@ -1217,16 +1173,14 @@ currently not supported in the Amazon Web Services GovCloud (US-West) region. - `index_id`: The identifier of the index for the block list. """ -function delete_query_suggestions_block_list( +delete_query_suggestions_block_list( Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DeleteQuerySuggestionsBlockList", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DeleteQuerySuggestionsBlockList", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_query_suggestions_block_list( Id, IndexId, @@ -1254,14 +1208,12 @@ Deletes an Amazon Kendra thesaurus. - `index_id`: The identifier of the index for the thesaurus. """ -function delete_thesaurus(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "DeleteThesaurus", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_thesaurus(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "DeleteThesaurus", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_thesaurus( Id, IndexId, @@ -1292,16 +1244,14 @@ their group access to documents. - `index_id`: The identifier of the index for an access control configuration. """ -function describe_access_control_configuration( +describe_access_control_configuration( Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DescribeAccessControlConfiguration", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DescribeAccessControlConfiguration", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_access_control_configuration( Id, IndexId, @@ -1329,16 +1279,13 @@ Gets information about an Amazon Kendra data source connector. - `index_id`: The identifier of the index used with the data source connector. """ -function describe_data_source( - Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +describe_data_source(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "DescribeDataSource", Dict{String,Any}("Id" => Id, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_data_source( Id, IndexId, @@ -1368,16 +1315,13 @@ with no code. - `index_id`: The identifier of the index for your Amazon Kendra experience. """ -function describe_experience( - Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +describe_experience(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "DescribeExperience", Dict{String,Any}("Id" => Id, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_experience( Id, IndexId, @@ -1405,14 +1349,12 @@ Gets information about an FAQ list. - `index_id`: The identifier of the index for the FAQ. """ -function describe_faq(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "DescribeFaq", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_faq(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "DescribeFaq", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_faq( Id, IndexId, @@ -1443,18 +1385,14 @@ specific documents are featured in the search results. - `index_id`: The identifier of the index used for featuring results. """ -function describe_featured_results_set( +describe_featured_results_set( FeaturedResultsSetId, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DescribeFeaturedResultsSet", + Dict{String,Any}("FeaturedResultsSetId" => FeaturedResultsSetId, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DescribeFeaturedResultsSet", - Dict{String,Any}( - "FeaturedResultsSetId" => FeaturedResultsSetId, "IndexId" => IndexId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_featured_results_set( FeaturedResultsSetId, IndexId, @@ -1487,14 +1425,12 @@ Gets information about an Amazon Kendra index. - `id`: The identifier of the index you want to get information on. """ -function describe_index(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "DescribeIndex", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_index(Id; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "DescribeIndex", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_index( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1528,16 +1464,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DataSourceId"`: The identifier of the data source to check the processing of PUT and DELETE actions for mapping users to their groups. """ -function describe_principal_mapping( +describe_principal_mapping( GroupId, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DescribePrincipalMapping", + Dict{String,Any}("GroupId" => GroupId, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DescribePrincipalMapping", - Dict{String,Any}("GroupId" => GroupId, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_principal_mapping( GroupId, IndexId, @@ -1570,16 +1504,14 @@ GovCloud (US-West) region. - `index_id`: The identifier of the index for the block list. """ -function describe_query_suggestions_block_list( +describe_query_suggestions_block_list( Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DescribeQuerySuggestionsBlockList", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DescribeQuerySuggestionsBlockList", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_query_suggestions_block_list( Id, IndexId, @@ -1609,16 +1541,14 @@ currently not supported in the Amazon Web Services GovCloud (US-West) region. information on. """ -function describe_query_suggestions_config( +describe_query_suggestions_config( IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DescribeQuerySuggestionsConfig", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DescribeQuerySuggestionsConfig", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_query_suggestions_config( IndexId, params::AbstractDict{String}; @@ -1643,14 +1573,13 @@ Gets information about an Amazon Kendra thesaurus. - `index_id`: The identifier of the index for the thesaurus. """ -function describe_thesaurus(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( +describe_thesaurus(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "DescribeThesaurus", Dict{String,Any}("Id" => Id, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_thesaurus( Id, IndexId, @@ -1682,16 +1611,14 @@ a search experience with no code. - `index_id`: The identifier of the index for your Amazon Kendra experience. """ -function disassociate_entities_from_experience( +disassociate_entities_from_experience( EntityList, Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DisassociateEntitiesFromExperience", + Dict{String,Any}("EntityList" => EntityList, "Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DisassociateEntitiesFromExperience", - Dict{String,Any}("EntityList" => EntityList, "Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_entities_from_experience( EntityList, Id, @@ -1731,16 +1658,14 @@ application experience, see Building a search experience with no code. - `index_id`: The identifier of the index for your Amazon Kendra experience. """ -function disassociate_personas_from_entities( +disassociate_personas_from_entities( EntityIds, Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "DisassociatePersonasFromEntities", + Dict{String,Any}("EntityIds" => EntityIds, "Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "DisassociatePersonasFromEntities", - Dict{String,Any}("EntityIds" => EntityIds, "Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_personas_from_entities( EntityIds, Id, @@ -1792,16 +1717,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields. """ -function get_query_suggestions( +get_query_suggestions( IndexId, QueryText; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "GetQuerySuggestions", + Dict{String,Any}("IndexId" => IndexId, "QueryText" => QueryText); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "GetQuerySuggestions", - Dict{String,Any}("IndexId" => IndexId, "QueryText" => QueryText); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_query_suggestions( IndexId, QueryText, @@ -1852,18 +1775,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of search metrics data. """ -function get_snapshots( +get_snapshots( IndexId, Interval, MetricType; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "GetSnapshots", + Dict{String,Any}( + "IndexId" => IndexId, "Interval" => Interval, "MetricType" => MetricType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "GetSnapshots", - Dict{String,Any}( - "IndexId" => IndexId, "Interval" => Interval, "MetricType" => MetricType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_snapshots( IndexId, Interval, @@ -1905,16 +1826,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of access control configurations. """ -function list_access_control_configurations( +list_access_control_configurations( IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "ListAccessControlConfigurations", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "ListAccessControlConfigurations", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_access_control_configurations( IndexId, params::AbstractDict{String}; @@ -1950,16 +1869,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StatusFilter"`: Only returns synchronization jobs with the Status field equal to the specified status. """ -function list_data_source_sync_jobs( +list_data_source_sync_jobs( Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "ListDataSourceSyncJobs", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "ListDataSourceSyncJobs", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_source_sync_jobs( Id, IndexId, @@ -1992,14 +1909,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of data source connectors. """ -function list_data_sources(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "ListDataSources", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_data_sources(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "ListDataSources", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_data_sources( IndexId, params::AbstractDict{String}; @@ -2030,16 +1945,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of users or groups. """ -function list_entity_personas( - Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +list_entity_personas(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "ListEntityPersonas", Dict{String,Any}("Id" => Id, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_entity_personas( Id, IndexId, @@ -2075,16 +1987,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of users or groups. """ -function list_experience_entities( - Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +list_experience_entities(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "ListExperienceEntities", Dict{String,Any}("Id" => Id, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_experience_entities( Id, IndexId, @@ -2119,14 +2028,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Kendra experiences. """ -function list_experiences(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "ListExperiences", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_experiences(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "ListExperiences", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_experiences( IndexId, params::AbstractDict{String}; @@ -2157,14 +2064,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of FAQs. """ -function list_faqs(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "ListFaqs", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_faqs(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "ListFaqs", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_faqs( IndexId, params::AbstractDict{String}; @@ -2196,16 +2101,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response. You can use this pagination token to retrieve the next set of featured results sets. """ -function list_featured_results_sets( - IndexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +list_featured_results_sets(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "ListFeaturedResultsSets", Dict{String,Any}("IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_featured_results_sets( IndexId, params::AbstractDict{String}; @@ -2244,16 +2146,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token to retrieve the next set of groups that are mapped to users before a given ordering or timestamp identifier. """ -function list_groups_older_than_ordering_id( +list_groups_older_than_ordering_id( IndexId, OrderingId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "ListGroupsOlderThanOrderingId", + Dict{String,Any}("IndexId" => IndexId, "OrderingId" => OrderingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "ListGroupsOlderThanOrderingId", - Dict{String,Any}("IndexId" => IndexId, "OrderingId" => OrderingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_groups_older_than_ordering_id( IndexId, OrderingId, @@ -2287,9 +2187,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of indexes. """ -function list_indices(; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra("ListIndices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_indices(; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra("ListIndices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_indices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2319,16 +2218,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of block lists (BlockListSummaryItems). """ -function list_query_suggestions_block_lists( +list_query_suggestions_block_lists( IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "ListQuerySuggestionsBlockLists", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "ListQuerySuggestionsBlockLists", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_query_suggestions_block_lists( IndexId, params::AbstractDict{String}; @@ -2354,16 +2251,13 @@ can have tags associated with them. list of tags for. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -2395,14 +2289,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of thesauri (ThesaurusSummaryItems). """ -function list_thesauri(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "ListThesauri", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_thesauri(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "ListThesauri", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_thesauri( IndexId, params::AbstractDict{String}; @@ -2463,18 +2355,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains your list of users or sub groups that belong to a group. For more information, see IAM roles for Amazon Kendra. """ -function put_principal_mapping( +put_principal_mapping( GroupId, GroupMembers, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "PutPrincipalMapping", + Dict{String,Any}( + "GroupId" => GroupId, "GroupMembers" => GroupMembers, "IndexId" => IndexId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "PutPrincipalMapping", - Dict{String,Any}( - "GroupId" => GroupId, "GroupMembers" => GroupMembers, "IndexId" => IndexId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_principal_mapping( GroupId, GroupMembers, @@ -2577,14 +2467,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys unique identifier, such as a GUID. Don't use personally identifiable information, such as the user's email address, as the VisitorId. """ -function query(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "Query", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +query(IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "Query", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function query( IndexId, params::AbstractDict{String}; @@ -2652,14 +2540,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys document fields are included in the response. - `"UserContext"`: The user context token or user and group information. """ -function retrieve(IndexId, QueryText; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "Retrieve", - Dict{String,Any}("IndexId" => IndexId, "QueryText" => QueryText); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +retrieve(IndexId, QueryText; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "Retrieve", + Dict{String,Any}("IndexId" => IndexId, "QueryText" => QueryText); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function retrieve( IndexId, QueryText, @@ -2695,16 +2581,14 @@ documents to sync. - `index_id`: The identifier of the index used with the data source connector. """ -function start_data_source_sync_job( +start_data_source_sync_job( Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "StartDataSourceSyncJob", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "StartDataSourceSyncJob", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_data_source_sync_job( Id, IndexId, @@ -2734,16 +2618,13 @@ synchronization job. - `index_id`: The identifier of the index used with the data source connector. """ -function stop_data_source_sync_job( - Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +stop_data_source_sync_job(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "StopDataSourceSyncJob", Dict{String,Any}("Id" => Id, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_data_source_sync_job( Id, IndexId, @@ -2780,16 +2661,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RelevanceFeedbackItems"`: Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the search. """ -function submit_feedback( - IndexId, QueryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +submit_feedback(IndexId, QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "SubmitFeedback", Dict{String,Any}("IndexId" => IndexId, "QueryId" => QueryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function submit_feedback( IndexId, QueryId, @@ -2821,14 +2699,13 @@ already exists, the existing value is replaced with the new value. exists, the existing value is replaced with the new value. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -2862,16 +2739,13 @@ Removes a tag from an index, FAQ, or a data source. key does not exist on the resource, it is ignored. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -2927,16 +2801,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hierarchy for which documents users should have access to. - `"Name"`: A new name for the access control configuration. """ -function update_access_control_configuration( +update_access_control_configuration( Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "UpdateAccessControlConfiguration", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "UpdateAccessControlConfiguration", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_access_control_configuration( Id, IndexId, @@ -2984,14 +2856,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcConfiguration"`: Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC. """ -function update_data_source(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( +update_data_source(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra( "UpdateDataSource", Dict{String,Any}("Id" => Id, "IndexId" => IndexId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_data_source( Id, IndexId, @@ -3029,14 +2900,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys API, QuerySuggestions API, SubmitFeedback API, and IAM Identity Center that stores your user and group information. For more information, see IAM roles for Amazon Kendra. """ -function update_experience(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "UpdateExperience", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_experience(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "UpdateExperience", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_experience( Id, IndexId, @@ -3081,18 +2950,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the status to ACTIVE. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE. """ -function update_featured_results_set( +update_featured_results_set( FeaturedResultsSetId, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "UpdateFeaturedResultsSet", + Dict{String,Any}("FeaturedResultsSetId" => FeaturedResultsSetId, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "UpdateFeaturedResultsSet", - Dict{String,Any}( - "FeaturedResultsSetId" => FeaturedResultsSetId, "IndexId" => IndexId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_featured_results_set( FeaturedResultsSetId, IndexId, @@ -3144,14 +3009,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys group access to documents. - `"UserTokenConfigurations"`: The user token configuration. """ -function update_index(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "UpdateIndex", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_index(Id; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "UpdateIndex", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_index( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3193,16 +3056,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys refreshes all query suggestions with the latest content in the S3 file. This means changes might not take effect immediately. """ -function update_query_suggestions_block_list( +update_query_suggestions_block_list( Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "UpdateQuerySuggestionsBlockList", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "UpdateQuerySuggestionsBlockList", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_query_suggestions_block_list( Id, IndexId, @@ -3265,16 +3126,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys window. The time window is the number of days from current day to past days. By default, Amazon Kendra sets this to 180. """ -function update_query_suggestions_config( +update_query_suggestions_config( IndexId; aws_config::AbstractAWSConfig=current_aws_config() +) = kendra( + "UpdateQuerySuggestionsConfig", + Dict{String,Any}("IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra( - "UpdateQuerySuggestionsConfig", - Dict{String,Any}("IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_query_suggestions_config( IndexId, params::AbstractDict{String}; @@ -3306,14 +3165,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified in SourceS3Path. - `"SourceS3Path"`: """ -function update_thesaurus(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra( - "UpdateThesaurus", - Dict{String,Any}("Id" => Id, "IndexId" => IndexId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_thesaurus(Id, IndexId; aws_config::AbstractAWSConfig=current_aws_config()) = kendra( + "UpdateThesaurus", + Dict{String,Any}("Id" => Id, "IndexId" => IndexId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_thesaurus( Id, IndexId, diff --git a/src/services/kendra_ranking.jl b/src/services/kendra_ranking.jl index 9c06c6ca8..89d48c6d3 100644 --- a/src/services/kendra_ranking.jl +++ b/src/services/kendra_ranking.jl @@ -32,16 +32,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @. """ -function create_rescore_execution_plan( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra_ranking( +create_rescore_execution_plan(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra_ranking( "CreateRescoreExecutionPlan", Dict{String,Any}("Name" => Name, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_rescore_execution_plan( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -70,16 +67,13 @@ Ranking resource used for provisioning the Rescore API. - `id`: The identifier of the rescore execution plan that you want to delete. """ -function delete_rescore_execution_plan( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra_ranking( +delete_rescore_execution_plan(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra_ranking( "DeleteRescoreExecutionPlan", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_rescore_execution_plan( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -102,16 +96,13 @@ Kendra Intelligent Ranking resource used for provisioning the Rescore API. - `id`: The identifier of the rescore execution plan that you want to get information on. """ -function describe_rescore_execution_plan( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra_ranking( +describe_rescore_execution_plan(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra_ranking( "DescribeRescoreExecutionPlan", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_rescore_execution_plan( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -137,11 +128,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token in the response. You can use this pagination token to retrieve the next set of rescore execution plans. """ -function list_rescore_execution_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra_ranking( +list_rescore_execution_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra_ranking( "ListRescoreExecutionPlans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_rescore_execution_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -165,16 +155,13 @@ example of a resource that can have tags associated with it. list of tags for. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra_ranking( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra_ranking( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -207,23 +194,21 @@ improve the search service's results. - `search_query`: The input query from the search service. """ -function rescore( +rescore( Documents, RescoreExecutionPlanId, SearchQuery; aws_config::AbstractAWSConfig=current_aws_config(), +) = kendra_ranking( + "Rescore", + Dict{String,Any}( + "Documents" => Documents, + "RescoreExecutionPlanId" => RescoreExecutionPlanId, + "SearchQuery" => SearchQuery, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kendra_ranking( - "Rescore", - Dict{String,Any}( - "Documents" => Documents, - "RescoreExecutionPlanId" => RescoreExecutionPlanId, - "SearchQuery" => SearchQuery, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rescore( Documents, RescoreExecutionPlanId, @@ -263,14 +248,13 @@ tag already exists, the existing value is replaced with the new value. the existing value is replaced with the new value. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kendra_ranking( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra_ranking( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -305,16 +289,13 @@ Intelligent Ranking resource used for provisioning the Rescore operation. does not exist on the resource, it is ignored. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra_ranking( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra_ranking( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -356,16 +337,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A new description for the rescore execution plan. - `"Name"`: A new name for the rescore execution plan. """ -function update_rescore_execution_plan( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return kendra_ranking( +update_rescore_execution_plan(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + kendra_ranking( "UpdateRescoreExecutionPlan", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_rescore_execution_plan( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/keyspaces.jl b/src/services/keyspaces.jl index 2646d52f2..846c62216 100644 --- a/src/services/keyspaces.jl +++ b/src/services/keyspaces.jl @@ -29,14 +29,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide. """ -function create_keyspace(keyspaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return keyspaces( +create_keyspace(keyspaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces( "CreateKeyspace", Dict{String,Any}("keyspaceName" => keyspaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_keyspace( keyspaceName, params::AbstractDict{String}; @@ -131,23 +130,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you can't disable it for the table. For more information, see Expiring data by using Amazon Keyspaces Time to Live (TTL) in the Amazon Keyspaces Developer Guide. """ -function create_table( +create_table( keyspaceName, schemaDefinition, tableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = keyspaces( + "CreateTable", + Dict{String,Any}( + "keyspaceName" => keyspaceName, + "schemaDefinition" => schemaDefinition, + "tableName" => tableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return keyspaces( - "CreateTable", - Dict{String,Any}( - "keyspaceName" => keyspaceName, - "schemaDefinition" => schemaDefinition, - "tableName" => tableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_table( keyspaceName, schemaDefinition, @@ -183,14 +180,13 @@ The DeleteKeyspace operation deletes a keyspace and all of its tables. - `keyspace_name`: The name of the keyspace to be deleted. """ -function delete_keyspace(keyspaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return keyspaces( +delete_keyspace(keyspaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces( "DeleteKeyspace", Dict{String,Any}("keyspaceName" => keyspaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_keyspace( keyspaceName, params::AbstractDict{String}; @@ -223,16 +219,13 @@ returned. - `table_name`: The name of the table to be deleted. """ -function delete_table( - keyspaceName, tableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return keyspaces( +delete_table(keyspaceName, tableName; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces( "DeleteTable", Dict{String,Any}("keyspaceName" => keyspaceName, "tableName" => tableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_table( keyspaceName, tableName, @@ -263,14 +256,12 @@ Returns the name and the Amazon Resource Name (ARN) of the specified table. - `keyspace_name`: The name of the keyspace. """ -function get_keyspace(keyspaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return keyspaces( - "GetKeyspace", - Dict{String,Any}("keyspaceName" => keyspaceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_keyspace(keyspaceName; aws_config::AbstractAWSConfig=current_aws_config()) = keyspaces( + "GetKeyspace", + Dict{String,Any}("keyspaceName" => keyspaceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_keyspace( keyspaceName, params::AbstractDict{String}; @@ -300,16 +291,13 @@ operation. - `table_name`: The name of the table. """ -function get_table( - keyspaceName, tableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return keyspaces( +get_table(keyspaceName, tableName; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces( "GetTable", Dict{String,Any}("keyspaceName" => keyspaceName, "tableName" => tableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_table( keyspaceName, tableName, @@ -351,16 +339,14 @@ application-autoscaling:DescribeScalingPolicies - `table_name`: The name of the table. """ -function get_table_auto_scaling_settings( +get_table_auto_scaling_settings( keyspaceName, tableName; aws_config::AbstractAWSConfig=current_aws_config() +) = keyspaces( + "GetTableAutoScalingSettings", + Dict{String,Any}("keyspaceName" => keyspaceName, "tableName" => tableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return keyspaces( - "GetTableAutoScalingSettings", - Dict{String,Any}("keyspaceName" => keyspaceName, "tableName" => tableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_table_auto_scaling_settings( keyspaceName, tableName, @@ -396,11 +382,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation. """ -function list_keyspaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return keyspaces( - "ListKeyspaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_keyspaces(; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces("ListKeyspaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_keyspaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -427,14 +410,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token. To resume pagination, provide the NextToken value as an argument of a subsequent API invocation. """ -function list_tables(keyspaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return keyspaces( - "ListTables", - Dict{String,Any}("keyspaceName" => keyspaceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tables(keyspaceName; aws_config::AbstractAWSConfig=current_aws_config()) = keyspaces( + "ListTables", + Dict{String,Any}("keyspaceName" => keyspaceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tables( keyspaceName, params::AbstractDict{String}; @@ -468,16 +449,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return keyspaces( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -554,25 +532,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide. """ -function restore_table( +restore_table( sourceKeyspaceName, sourceTableName, targetKeyspaceName, targetTableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = keyspaces( + "RestoreTable", + Dict{String,Any}( + "sourceKeyspaceName" => sourceKeyspaceName, + "sourceTableName" => sourceTableName, + "targetKeyspaceName" => targetKeyspaceName, + "targetTableName" => targetTableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return keyspaces( - "RestoreTable", - Dict{String,Any}( - "sourceKeyspaceName" => sourceKeyspaceName, - "sourceTableName" => sourceTableName, - "targetKeyspaceName" => targetKeyspaceName, - "targetTableName" => targetTableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_table( sourceKeyspaceName, sourceTableName, @@ -617,14 +593,13 @@ based on tags in the Amazon Keyspaces Developer Guide. - `tags`: The tags to be assigned to the Amazon Keyspaces resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return keyspaces( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -657,16 +632,13 @@ Removes the association of tags from a Amazon Keyspaces resource. - `tags`: A list of existing tags to be removed from the Amazon Keyspaces resource. """ -function untag_resource( - resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return keyspaces( +untag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tags, @@ -742,16 +714,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you can't disable it for the table. For more information, see Expiring data by using Amazon Keyspaces Time to Live (TTL) in the Amazon Keyspaces Developer Guide. """ -function update_table( - keyspaceName, tableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return keyspaces( +update_table(keyspaceName, tableName; aws_config::AbstractAWSConfig=current_aws_config()) = + keyspaces( "UpdateTable", Dict{String,Any}("keyspaceName" => keyspaceName, "tableName" => tableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_table( keyspaceName, tableName, diff --git a/src/services/kinesis.jl b/src/services/kinesis.jl index e5ff9dec0..00de857ce 100644 --- a/src/services/kinesis.jl +++ b/src/services/kinesis.jl @@ -23,14 +23,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream. """ -function add_tags_to_stream(Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( - "AddTagsToStream", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +add_tags_to_stream(Tags; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis( + "AddTagsToStream", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function add_tags_to_stream( Tags, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -90,14 +88,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams. """ -function create_stream(StreamName; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( - "CreateStream", - Dict{String,Any}("StreamName" => StreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_stream(StreamName; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis( + "CreateStream", + Dict{String,Any}("StreamName" => StreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_stream( StreamName, params::AbstractDict{String}; @@ -134,16 +130,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream to modify. """ -function decrease_stream_retention_period( +decrease_stream_retention_period( RetentionPeriodHours; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "DecreaseStreamRetentionPeriod", + Dict{String,Any}("RetentionPeriodHours" => RetentionPeriodHours); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "DecreaseStreamRetentionPeriod", - Dict{String,Any}("RetentionPeriodHours" => RetentionPeriodHours); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function decrease_stream_retention_period( RetentionPeriodHours, params::AbstractDict{String}; @@ -176,16 +170,13 @@ pattern: - `resource_arn`: The Amazon Resource Name (ARN) of the data stream or consumer. """ -function delete_resource_policy( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis( +delete_resource_policy(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis( "DeleteResourcePolicy", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( ResourceARN, params::AbstractDict{String}; @@ -228,9 +219,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream to delete. """ -function delete_stream(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis("DeleteStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +delete_stream(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis("DeleteStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_stream( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -263,11 +253,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces. """ -function deregister_stream_consumer(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( - "DeregisterStreamConsumer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +deregister_stream_consumer(; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis( + "DeregisterStreamConsumer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function deregister_stream_consumer( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -288,9 +276,8 @@ the old limits might be returned for a few minutes. This operation has a limit o transaction per second per account. """ -function describe_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis("DescribeLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis("DescribeLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -332,9 +319,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream to describe. """ -function describe_stream(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis("DescribeStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_stream(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis("DescribeStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_stream( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -366,11 +352,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces. """ -function describe_stream_consumer(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( - "DescribeStreamConsumer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_stream_consumer(; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis( + "DescribeStreamConsumer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_stream_consumer( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -399,11 +383,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream to describe. """ -function describe_stream_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( - "DescribeStreamSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_stream_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis("DescribeStreamSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_stream_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -438,16 +419,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the Kinesis data stream for which to disable enhanced monitoring. """ -function disable_enhanced_monitoring( +disable_enhanced_monitoring( ShardLevelMetrics; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "DisableEnhancedMonitoring", + Dict{String,Any}("ShardLevelMetrics" => ShardLevelMetrics); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "DisableEnhancedMonitoring", - Dict{String,Any}("ShardLevelMetrics" => ShardLevelMetrics); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_enhanced_monitoring( ShardLevelMetrics, params::AbstractDict{String}; @@ -487,16 +466,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream for which to enable enhanced monitoring. """ -function enable_enhanced_monitoring( +enable_enhanced_monitoring( ShardLevelMetrics; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "EnableEnhancedMonitoring", + Dict{String,Any}("ShardLevelMetrics" => ShardLevelMetrics); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "EnableEnhancedMonitoring", - Dict{String,Any}("ShardLevelMetrics" => ShardLevelMetrics); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_enhanced_monitoring( ShardLevelMetrics, params::AbstractDict{String}; @@ -575,14 +552,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys InvalidArgumentException. The default value is 10,000. - `"StreamARN"`: The ARN of the stream. """ -function get_records(ShardIterator; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( - "GetRecords", - Dict{String,Any}("ShardIterator" => ShardIterator); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_records(ShardIterator; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis( + "GetRecords", + Dict{String,Any}("ShardIterator" => ShardIterator); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_records( ShardIterator, params::AbstractDict{String}; @@ -611,16 +586,13 @@ Consumer pattern: - `resource_arn`: The Amazon Resource Name (ARN) of the data stream or consumer. """ -function get_resource_policy( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis( +get_resource_policy(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis( "GetResourcePolicy", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( ResourceARN, params::AbstractDict{String}; @@ -695,16 +667,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys record. If the time stamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). """ -function get_shard_iterator( +get_shard_iterator( ShardId, ShardIteratorType; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "GetShardIterator", + Dict{String,Any}("ShardId" => ShardId, "ShardIteratorType" => ShardIteratorType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "GetShardIterator", - Dict{String,Any}("ShardId" => ShardId, "ShardIteratorType" => ShardIteratorType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_shard_iterator( ShardId, ShardIteratorType, @@ -752,16 +722,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream to modify. """ -function increase_stream_retention_period( +increase_stream_retention_period( RetentionPeriodHours; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "IncreaseStreamRetentionPeriod", + Dict{String,Any}("RetentionPeriodHours" => RetentionPeriodHours); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "IncreaseStreamRetentionPeriod", - Dict{String,Any}("RetentionPeriodHours" => RetentionPeriodHours); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function increase_stream_retention_period( RetentionPeriodHours, params::AbstractDict{String}; @@ -843,9 +811,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the data stream whose shards you want to list. You cannot specify this parameter if you specify the NextToken parameter. """ -function list_shards(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis("ListShards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_shards(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis("ListShards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_shards( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -893,16 +860,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to specify which of the two streams you want to list the consumers for. You can't specify this parameter if you specify the NextToken parameter. """ -function list_stream_consumers( - StreamARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis( +list_stream_consumers(StreamARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis( "ListStreamConsumers", Dict{String,Any}("StreamARN" => StreamARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_stream_consumers( StreamARN, params::AbstractDict{String}; @@ -941,9 +905,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify a value greater than 100, at most 100 results are returned. - `"NextToken"`: """ -function list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis("ListStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis("ListStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -972,11 +935,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream. """ -function list_tags_for_stream(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( - "ListTagsForStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tags_for_stream(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis("ListTagsForStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tags_for_stream( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1027,18 +987,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream for the merge. """ -function merge_shards( +merge_shards( AdjacentShardToMerge, ShardToMerge; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "MergeShards", + Dict{String,Any}( + "AdjacentShardToMerge" => AdjacentShardToMerge, "ShardToMerge" => ShardToMerge + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "MergeShards", - Dict{String,Any}( - "AdjacentShardToMerge" => AdjacentShardToMerge, "ShardToMerge" => ShardToMerge - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function merge_shards( AdjacentShardToMerge, ShardToMerge, @@ -1120,14 +1078,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream to put the data record into. """ -function put_record(Data, PartitionKey; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( +put_record(Data, PartitionKey; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis( "PutRecord", Dict{String,Any}("Data" => Data, "PartitionKey" => PartitionKey); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_record( Data, PartitionKey, @@ -1206,14 +1163,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The stream name associated with the request. """ -function put_records(Records; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis( - "PutRecords", - Dict{String,Any}("Records" => Records); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_records(Records; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis( + "PutRecords", + Dict{String,Any}("Records" => Records); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_records( Records, params::AbstractDict{String}; @@ -1250,16 +1205,14 @@ IAM. - `resource_arn`: The Amazon Resource Name (ARN) of the data stream or consumer. """ -function put_resource_policy( +put_resource_policy( Policy, ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "PutResourcePolicy", + Dict{String,Any}("Policy" => Policy, "ResourceARN" => ResourceARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "PutResourcePolicy", - Dict{String,Any}("Policy" => Policy, "ResourceARN" => ResourceARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( Policy, ResourceARN, @@ -1304,16 +1257,14 @@ LimitExceededException. Namespaces. """ -function register_stream_consumer( +register_stream_consumer( ConsumerName, StreamARN; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "RegisterStreamConsumer", + Dict{String,Any}("ConsumerName" => ConsumerName, "StreamARN" => StreamARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "RegisterStreamConsumer", - Dict{String,Any}("ConsumerName" => ConsumerName, "StreamARN" => StreamARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_stream_consumer( ConsumerName, StreamARN, @@ -1353,16 +1304,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream. """ -function remove_tags_from_stream( - TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis( +remove_tags_from_stream(TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis( "RemoveTagsFromStream", Dict{String,Any}("TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_tags_from_stream( TagKeys, params::AbstractDict{String}; @@ -1426,18 +1374,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream for the shard split. """ -function split_shard( +split_shard( NewStartingHashKey, ShardToSplit; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "SplitShard", + Dict{String,Any}( + "NewStartingHashKey" => NewStartingHashKey, "ShardToSplit" => ShardToSplit + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "SplitShard", - Dict{String,Any}( - "NewStartingHashKey" => NewStartingHashKey, "ShardToSplit" => ShardToSplit - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function split_shard( NewStartingHashKey, ShardToSplit, @@ -1497,16 +1443,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream for which to start encrypting records. """ -function start_stream_encryption( +start_stream_encryption( EncryptionType, KeyId; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "StartStreamEncryption", + Dict{String,Any}("EncryptionType" => EncryptionType, "KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "StartStreamEncryption", - Dict{String,Any}("EncryptionType" => EncryptionType, "KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_stream_encryption( EncryptionType, KeyId, @@ -1563,16 +1507,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream on which to stop encrypting records. """ -function stop_stream_encryption( +stop_stream_encryption( EncryptionType, KeyId; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "StopStreamEncryption", + Dict{String,Any}("EncryptionType" => EncryptionType, "KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "StopStreamEncryption", - Dict{String,Any}("EncryptionType" => EncryptionType, "KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_stream_encryption( EncryptionType, KeyId, @@ -1638,18 +1580,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The ARN of the stream. - `"StreamName"`: The name of the stream. """ -function update_shard_count( +update_shard_count( ScalingType, TargetShardCount; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "UpdateShardCount", + Dict{String,Any}("ScalingType" => ScalingType, "TargetShardCount" => TargetShardCount); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "UpdateShardCount", - Dict{String,Any}( - "ScalingType" => ScalingType, "TargetShardCount" => TargetShardCount - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_shard_count( ScalingType, TargetShardCount, @@ -1688,18 +1626,14 @@ stream. mode and a provisioned capacity mode for your data streams. """ -function update_stream_mode( +update_stream_mode( StreamARN, StreamModeDetails; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis( + "UpdateStreamMode", + Dict{String,Any}("StreamARN" => StreamARN, "StreamModeDetails" => StreamModeDetails); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis( - "UpdateStreamMode", - Dict{String,Any}( - "StreamARN" => StreamARN, "StreamModeDetails" => StreamModeDetails - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_stream_mode( StreamARN, StreamModeDetails, diff --git a/src/services/kinesis_analytics.jl b/src/services/kinesis_analytics.jl index 8309fd615..ca420261b 100644 --- a/src/services/kinesis_analytics.jl +++ b/src/services/kinesis_analytics.jl @@ -23,23 +23,21 @@ see Working with Amazon CloudWatch Logs. - `current_application_version_id`: The version ID of the Kinesis Analytics application. """ -function add_application_cloud_watch_logging_option( +add_application_cloud_watch_logging_option( ApplicationName, CloudWatchLoggingOption, CurrentApplicationVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "AddApplicationCloudWatchLoggingOption", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CloudWatchLoggingOption" => CloudWatchLoggingOption, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "AddApplicationCloudWatchLoggingOption", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CloudWatchLoggingOption" => CloudWatchLoggingOption, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_cloud_watch_logging_option( ApplicationName, CloudWatchLoggingOption, @@ -90,23 +88,21 @@ kinesisanalytics:AddApplicationInput action. - `input`: The Input to add. """ -function add_application_input( +add_application_input( ApplicationName, CurrentApplicationVersionId, Input; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "AddApplicationInput", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "Input" => Input, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "AddApplicationInput", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "Input" => Input, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_input( ApplicationName, CurrentApplicationVersionId, @@ -157,25 +153,23 @@ input processor available is AWS Lambda. application. """ -function add_application_input_processing_configuration( +add_application_input_processing_configuration( ApplicationName, CurrentApplicationVersionId, InputId, InputProcessingConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "AddApplicationInputProcessingConfiguration", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "InputId" => InputId, + "InputProcessingConfiguration" => InputProcessingConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "AddApplicationInputProcessingConfiguration", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "InputId" => InputId, - "InputProcessingConfiguration" => InputProcessingConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_input_processing_configuration( ApplicationName, CurrentApplicationVersionId, @@ -238,23 +232,21 @@ kinesisanalytics:AddApplicationOutput action. function), and record the formation to use when writing to the destination. """ -function add_application_output( +add_application_output( ApplicationName, CurrentApplicationVersionId, Output; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "AddApplicationOutput", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "Output" => Output, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "AddApplicationOutput", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "Output" => Output, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_output( ApplicationName, CurrentApplicationVersionId, @@ -310,23 +302,21 @@ permissions to perform the kinesisanalytics:AddApplicationOutput action. S3 bucket on your behalf. """ -function add_application_reference_data_source( +add_application_reference_data_source( ApplicationName, CurrentApplicationVersionId, ReferenceDataSource; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "AddApplicationReferenceDataSource", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "ReferenceDataSource" => ReferenceDataSource, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "AddApplicationReferenceDataSource", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "ReferenceDataSource" => ReferenceDataSource, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_reference_data_source( ApplicationName, CurrentApplicationVersionId, @@ -422,16 +412,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging. """ -function create_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics( +create_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics( "CreateApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_application( ApplicationName, params::AbstractDict{String}; @@ -466,18 +453,16 @@ perform the kinesisanalytics:DeleteApplication action. - `create_timestamp`: You can use the DescribeApplication operation to get this value. """ -function delete_application( +delete_application( ApplicationName, CreateTimestamp; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics( + "DeleteApplication", + Dict{String,Any}( + "ApplicationName" => ApplicationName, "CreateTimestamp" => CreateTimestamp + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "DeleteApplication", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "CreateTimestamp" => CreateTimestamp - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application( ApplicationName, CreateTimestamp, @@ -520,23 +505,21 @@ CloudWatch Logs. - `current_application_version_id`: The version ID of the Kinesis Analytics application. """ -function delete_application_cloud_watch_logging_option( +delete_application_cloud_watch_logging_option( ApplicationName, CloudWatchLoggingOptionId, CurrentApplicationVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "DeleteApplicationCloudWatchLoggingOption", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CloudWatchLoggingOptionId" => CloudWatchLoggingOptionId, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "DeleteApplicationCloudWatchLoggingOption", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CloudWatchLoggingOptionId" => CloudWatchLoggingOptionId, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_cloud_watch_logging_option( ApplicationName, CloudWatchLoggingOptionId, @@ -579,23 +562,21 @@ Deletes an InputProcessingConfiguration from an input. DescribeApplication operation. """ -function delete_application_input_processing_configuration( +delete_application_input_processing_configuration( ApplicationName, CurrentApplicationVersionId, InputId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "DeleteApplicationInputProcessingConfiguration", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "InputId" => InputId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "DeleteApplicationInputProcessingConfiguration", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "InputId" => InputId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_input_processing_configuration( ApplicationName, CurrentApplicationVersionId, @@ -646,23 +627,21 @@ kinesisanalytics:DeleteApplicationOutput action. configuration. You can use the DescribeApplication operation to get the specific OutputId. """ -function delete_application_output( +delete_application_output( ApplicationName, CurrentApplicationVersionId, OutputId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "DeleteApplicationOutput", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "OutputId" => OutputId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "DeleteApplicationOutput", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "OutputId" => OutputId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_output( ApplicationName, CurrentApplicationVersionId, @@ -711,23 +690,21 @@ kinesisanalytics.DeleteApplicationReferenceDataSource action. assigns an ID. You can use the DescribeApplication operation to get the reference ID. """ -function delete_application_reference_data_source( +delete_application_reference_data_source( ApplicationName, CurrentApplicationVersionId, ReferenceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "DeleteApplicationReferenceDataSource", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "ReferenceId" => ReferenceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "DeleteApplicationReferenceDataSource", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "ReferenceId" => ReferenceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_reference_data_source( ApplicationName, CurrentApplicationVersionId, @@ -770,16 +747,13 @@ need to call other operations such as Update. - `application_name`: Name of the application. """ -function describe_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics( +describe_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics( "DescribeApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_application( ApplicationName, params::AbstractDict{String}; @@ -826,11 +800,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"S3Configuration"`: Specify this parameter to discover a schema from data in an Amazon S3 object. """ -function discover_input_schema(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_analytics( +discover_input_schema(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics( "DiscoverInputSchema"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function discover_input_schema( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -865,11 +838,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous response to get the next page of applications. - `"Limit"`: Maximum number of applications to list. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_analytics( - "ListApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis_analytics( + "ListApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -889,16 +860,13 @@ Using Tagging. - `resource_arn`: The ARN of the application for which to retrieve tags. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -938,19 +906,17 @@ operation requires permissions to perform the kinesisanalytics:StartApplication to start reading. """ -function start_application( +start_application( ApplicationName, InputConfigurations; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics( + "StartApplication", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "InputConfigurations" => InputConfigurations, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "StartApplication", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "InputConfigurations" => InputConfigurations, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_application( ApplicationName, InputConfigurations, @@ -992,16 +958,13 @@ kinesisanalytics:StopApplication action. - `application_name`: Name of the running application to stop. """ -function stop_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics( +stop_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics( "StopApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_application( ApplicationName, params::AbstractDict{String}; @@ -1032,14 +995,13 @@ application tags is 50. For more information, see Using Tagging. - `tags`: The key-value tags to assign to the application. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_analytics( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1073,16 +1035,13 @@ Using Tagging. - `tag_keys`: A list of keys of tags to remove from the specified application. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1122,23 +1081,21 @@ This operation requires permission for the kinesisanalytics:UpdateApplication ac DescribeApplication operation to get this value. """ -function update_application( +update_application( ApplicationName, ApplicationUpdate, CurrentApplicationVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics( + "UpdateApplication", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "ApplicationUpdate" => ApplicationUpdate, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics( - "UpdateApplication", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "ApplicationUpdate" => ApplicationUpdate, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application( ApplicationName, ApplicationUpdate, diff --git a/src/services/kinesis_analytics_v2.jl b/src/services/kinesis_analytics_v2.jl index b98443b0d..306c54a04 100644 --- a/src/services/kinesis_analytics_v2.jl +++ b/src/services/kinesis_analytics_v2.jl @@ -27,21 +27,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can retrieve the application version ID using DescribeApplication. For better concurrency support, use the ConditionalToken parameter instead of CurrentApplicationVersionId. """ -function add_application_cloud_watch_logging_option( +add_application_cloud_watch_logging_option( ApplicationName, CloudWatchLoggingOption; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "AddApplicationCloudWatchLoggingOption", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CloudWatchLoggingOption" => CloudWatchLoggingOption, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "AddApplicationCloudWatchLoggingOption", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CloudWatchLoggingOption" => CloudWatchLoggingOption, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_cloud_watch_logging_option( ApplicationName, CloudWatchLoggingOption, @@ -85,23 +83,21 @@ operation to find the current application version. - `input`: The Input to add. """ -function add_application_input( +add_application_input( ApplicationName, CurrentApplicationVersionId, Input; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "AddApplicationInput", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "Input" => Input, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "AddApplicationInput", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "Input" => Input, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_input( ApplicationName, CurrentApplicationVersionId, @@ -149,25 +145,23 @@ executes. Currently, the only input processor available is Amazon Lambda. application. """ -function add_application_input_processing_configuration( +add_application_input_processing_configuration( ApplicationName, CurrentApplicationVersionId, InputId, InputProcessingConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "AddApplicationInputProcessingConfiguration", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "InputId" => InputId, + "InputProcessingConfiguration" => InputProcessingConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "AddApplicationInputProcessingConfiguration", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "InputId" => InputId, - "InputProcessingConfiguration" => InputProcessingConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_input_processing_configuration( ApplicationName, CurrentApplicationVersionId, @@ -224,23 +218,21 @@ to find the current application version. function), and record the formation to use when writing to the destination. """ -function add_application_output( +add_application_output( ApplicationName, CurrentApplicationVersionId, Output; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "AddApplicationOutput", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "Output" => Output, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "AddApplicationOutput", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "Output" => Output, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_output( ApplicationName, CurrentApplicationVersionId, @@ -289,23 +281,21 @@ columns in the resulting in-application table. in-application table that is created. """ -function add_application_reference_data_source( +add_application_reference_data_source( ApplicationName, CurrentApplicationVersionId, ReferenceDataSource; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "AddApplicationReferenceDataSource", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "ReferenceDataSource" => ReferenceDataSource, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "AddApplicationReferenceDataSource", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "ReferenceDataSource" => ReferenceDataSource, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_reference_data_source( ApplicationName, CurrentApplicationVersionId, @@ -359,18 +349,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ConcurrentModificationException is returned. For better concurrency support, use the ConditionalToken parameter instead of CurrentApplicationVersionId. """ -function add_application_vpc_configuration( +add_application_vpc_configuration( ApplicationName, VpcConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "AddApplicationVpcConfiguration", + Dict{String,Any}( + "ApplicationName" => ApplicationName, "VpcConfiguration" => VpcConfiguration + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "AddApplicationVpcConfiguration", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "VpcConfiguration" => VpcConfiguration - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_application_vpc_configuration( ApplicationName, VpcConfiguration, @@ -422,23 +410,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging. """ -function create_application( +create_application( ApplicationName, RuntimeEnvironment, ServiceExecutionRole; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "CreateApplication", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "RuntimeEnvironment" => RuntimeEnvironment, + "ServiceExecutionRole" => ServiceExecutionRole, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "CreateApplication", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "RuntimeEnvironment" => RuntimeEnvironment, - "ServiceExecutionRole" => ServiceExecutionRole, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( ApplicationName, RuntimeEnvironment, @@ -489,16 +475,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SessionExpirationDurationInSeconds"`: The duration in seconds for which the returned URL will be valid. """ -function create_application_presigned_url( +create_application_presigned_url( ApplicationName, UrlType; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "CreateApplicationPresignedUrl", + Dict{String,Any}("ApplicationName" => ApplicationName, "UrlType" => UrlType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "CreateApplicationPresignedUrl", - Dict{String,Any}("ApplicationName" => ApplicationName, "UrlType" => UrlType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application_presigned_url( ApplicationName, UrlType, @@ -532,18 +516,14 @@ Creates a snapshot of the application's state data. - `snapshot_name`: An identifier for the application snapshot. """ -function create_application_snapshot( +create_application_snapshot( ApplicationName, SnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "CreateApplicationSnapshot", + Dict{String,Any}("ApplicationName" => ApplicationName, "SnapshotName" => SnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "CreateApplicationSnapshot", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "SnapshotName" => SnapshotName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application_snapshot( ApplicationName, SnapshotName, @@ -578,18 +558,16 @@ execution and deletes the application. - `create_timestamp`: Use the DescribeApplication operation to get this value. """ -function delete_application( +delete_application( ApplicationName, CreateTimestamp; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "DeleteApplication", + Dict{String,Any}( + "ApplicationName" => ApplicationName, "CreateTimestamp" => CreateTimestamp + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DeleteApplication", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "CreateTimestamp" => CreateTimestamp - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application( ApplicationName, CreateTimestamp, @@ -638,21 +616,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version ID using DescribeApplication. For better concurrency support, use the ConditionalToken parameter instead of CurrentApplicationVersionId. """ -function delete_application_cloud_watch_logging_option( +delete_application_cloud_watch_logging_option( ApplicationName, CloudWatchLoggingOptionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "DeleteApplicationCloudWatchLoggingOption", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CloudWatchLoggingOptionId" => CloudWatchLoggingOptionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DeleteApplicationCloudWatchLoggingOption", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CloudWatchLoggingOptionId" => CloudWatchLoggingOptionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_cloud_watch_logging_option( ApplicationName, CloudWatchLoggingOptionId, @@ -692,23 +668,21 @@ Deletes an InputProcessingConfiguration from an input. DescribeApplication operation. """ -function delete_application_input_processing_configuration( +delete_application_input_processing_configuration( ApplicationName, CurrentApplicationVersionId, InputId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "DeleteApplicationInputProcessingConfiguration", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "InputId" => InputId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DeleteApplicationInputProcessingConfiguration", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "InputId" => InputId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_input_processing_configuration( ApplicationName, CurrentApplicationVersionId, @@ -754,23 +728,21 @@ corresponding in-application stream to the external output destination. configuration. You can use the DescribeApplication operation to get the specific OutputId. """ -function delete_application_output( +delete_application_output( ApplicationName, CurrentApplicationVersionId, OutputId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "DeleteApplicationOutput", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "OutputId" => OutputId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DeleteApplicationOutput", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "OutputId" => OutputId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_output( ApplicationName, CurrentApplicationVersionId, @@ -815,23 +787,21 @@ AddApplicationReferenceDataSource operation. assigns an ID. You can use the DescribeApplication operation to get the reference ID. """ -function delete_application_reference_data_source( +delete_application_reference_data_source( ApplicationName, CurrentApplicationVersionId, ReferenceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "DeleteApplicationReferenceDataSource", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + "ReferenceId" => ReferenceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DeleteApplicationReferenceDataSource", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - "ReferenceId" => ReferenceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_reference_data_source( ApplicationName, CurrentApplicationVersionId, @@ -870,23 +840,21 @@ Deletes a snapshot of application state. - `snapshot_name`: The identifier for the snapshot delete. """ -function delete_application_snapshot( +delete_application_snapshot( ApplicationName, SnapshotCreationTimestamp, SnapshotName; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "DeleteApplicationSnapshot", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "SnapshotCreationTimestamp" => SnapshotCreationTimestamp, + "SnapshotName" => SnapshotName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DeleteApplicationSnapshot", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "SnapshotCreationTimestamp" => SnapshotCreationTimestamp, - "SnapshotName" => SnapshotName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_snapshot( ApplicationName, SnapshotCreationTimestamp, @@ -934,18 +902,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version ID using DescribeApplication. For better concurrency support, use the ConditionalToken parameter instead of CurrentApplicationVersionId. """ -function delete_application_vpc_configuration( +delete_application_vpc_configuration( ApplicationName, VpcConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "DeleteApplicationVpcConfiguration", + Dict{String,Any}( + "ApplicationName" => ApplicationName, "VpcConfigurationId" => VpcConfigurationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DeleteApplicationVpcConfiguration", - Dict{String,Any}( - "ApplicationName" => ApplicationName, "VpcConfigurationId" => VpcConfigurationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_vpc_configuration( ApplicationName, VpcConfigurationId, @@ -985,16 +951,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IncludeAdditionalDetails"`: Displays verbose information about a Managed Service for Apache Flink application, including the application's job plan. """ -function describe_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics_v2( +describe_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics_v2( "DescribeApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_application( ApplicationName, params::AbstractDict{String}; @@ -1013,29 +976,67 @@ function describe_application( end """ - describe_application_snapshot(application_name, snapshot_name) - describe_application_snapshot(application_name, snapshot_name, params::Dict{String,<:Any}) + describe_application_operation(application_name, operation_id) + describe_application_operation(application_name, operation_id, params::Dict{String,<:Any}) -Returns information about a snapshot of application state data. +Returns information about a specific operation performed on a Managed Service for Apache +Flink application # Arguments -- `application_name`: The name of an existing application. -- `snapshot_name`: The identifier of an application snapshot. You can retrieve this value - using . +- `application_name`: +- `operation_id`: """ -function describe_application_snapshot( - ApplicationName, SnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +describe_application_operation( + ApplicationName, OperationId; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "DescribeApplicationOperation", + Dict{String,Any}("ApplicationName" => ApplicationName, "OperationId" => OperationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_application_operation( + ApplicationName, + OperationId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return kinesis_analytics_v2( - "DescribeApplicationSnapshot", + "DescribeApplicationOperation", Dict{String,Any}( - "ApplicationName" => ApplicationName, "SnapshotName" => SnapshotName + mergewith( + _merge, + Dict{String,Any}( + "ApplicationName" => ApplicationName, "OperationId" => OperationId + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end + +""" + describe_application_snapshot(application_name, snapshot_name) + describe_application_snapshot(application_name, snapshot_name, params::Dict{String,<:Any}) + +Returns information about a snapshot of application state data. + +# Arguments +- `application_name`: The name of an existing application. +- `snapshot_name`: The identifier of an application snapshot. You can retrieve this value + using . + +""" +describe_application_snapshot( + ApplicationName, SnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "DescribeApplicationSnapshot", + Dict{String,Any}("ApplicationName" => ApplicationName, "SnapshotName" => SnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_application_snapshot( ApplicationName, SnapshotName, @@ -1073,21 +1074,19 @@ operation is supported only for Managed Service for Apache Flink. description. """ -function describe_application_version( +describe_application_version( ApplicationName, ApplicationVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "DescribeApplicationVersion", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "ApplicationVersionId" => ApplicationVersionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DescribeApplicationVersion", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "ApplicationVersionId" => ApplicationVersionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application_version( ApplicationName, ApplicationVersionId, @@ -1137,16 +1136,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"S3Configuration"`: Specify this parameter to discover a schema from data in an Amazon S3 object. """ -function discover_input_schema( +discover_input_schema( ServiceExecutionRole; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "DiscoverInputSchema", + Dict{String,Any}("ServiceExecutionRole" => ServiceExecutionRole); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "DiscoverInputSchema", - Dict{String,Any}("ServiceExecutionRole" => ServiceExecutionRole); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function discover_input_schema( ServiceExecutionRole, params::AbstractDict{String}; @@ -1166,6 +1163,48 @@ function discover_input_schema( ) end +""" + list_application_operations(application_name) + list_application_operations(application_name, params::Dict{String,<:Any}) + +Lists information about operations performed on a Managed Service for Apache Flink +application + +# Arguments +- `application_name`: + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"Limit"`: +- `"NextToken"`: +- `"Operation"`: +- `"OperationStatus"`: +""" +list_application_operations( + ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "ListApplicationOperations", + Dict{String,Any}("ApplicationName" => ApplicationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_application_operations( + ApplicationName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return kinesis_analytics_v2( + "ListApplicationOperations", + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("ApplicationName" => ApplicationName), params + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_application_snapshots(application_name) list_application_snapshots(application_name, params::Dict{String,<:Any}) @@ -1182,16 +1221,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_application_snapshots( +list_application_snapshots( ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "ListApplicationSnapshots", + Dict{String,Any}("ApplicationName" => ApplicationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "ListApplicationSnapshots", - Dict{String,Any}("ApplicationName" => ApplicationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_snapshots( ApplicationName, params::AbstractDict{String}; @@ -1229,16 +1266,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pass it into this value to retrieve the next set of results. For more information about pagination, see Using the Amazon Command Line Interface's Pagination Options. """ -function list_application_versions( +list_application_versions( ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_analytics_v2( + "ListApplicationVersions", + Dict{String,Any}("ApplicationName" => ApplicationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "ListApplicationVersions", - Dict{String,Any}("ApplicationName" => ApplicationName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_versions( ApplicationName, params::AbstractDict{String}; @@ -1272,11 +1307,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to retrieve the next set of results. For more information about pagination, see Using the Amazon Command Line Interface's Pagination Options. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_analytics_v2( +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics_v2( "ListApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1296,16 +1330,13 @@ Using Tagging. - `resource_arn`: The ARN of the application for which to retrieve tags. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics_v2( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics_v2( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1326,11 +1357,10 @@ end rollback_application(application_name, current_application_version_id, params::Dict{String,<:Any}) Reverts the application to the previous running version. You can roll back an application -if you suspect it is stuck in a transient status. You can roll back an application only if -it is in the UPDATING or AUTOSCALING status. When you rollback an application, it loads -state data from the last successful snapshot. If the application has no snapshots, Managed -Service for Apache Flink rejects the rollback request. This action is not supported for -Managed Service for Apache Flink for SQL applications. +if you suspect it is stuck in a transient status or in the running status. You can roll +back an application only if it is in the UPDATING, AUTOSCALING, or RUNNING statuses. When +you rollback an application, it loads state data from the last successful snapshot. If the +application has no snapshots, Managed Service for Apache Flink rejects the rollback request. # Arguments - `application_name`: The name of the application. @@ -1338,21 +1368,19 @@ Managed Service for Apache Flink for SQL applications. the application version ID using DescribeApplication. """ -function rollback_application( +rollback_application( ApplicationName, CurrentApplicationVersionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "RollbackApplication", + Dict{String,Any}( + "ApplicationName" => ApplicationName, + "CurrentApplicationVersionId" => CurrentApplicationVersionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "RollbackApplication", - Dict{String,Any}( - "ApplicationName" => ApplicationName, - "CurrentApplicationVersionId" => CurrentApplicationVersionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rollback_application( ApplicationName, CurrentApplicationVersionId, @@ -1391,16 +1419,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RunConfiguration"`: Identifies the run configuration (start parameters) of a Managed Service for Apache Flink application. """ -function start_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics_v2( +start_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics_v2( "StartApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_application( ApplicationName, params::AbstractDict{String}; @@ -1441,16 +1466,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys application. The application must be in the STARTING, UPDATING, STOPPING, AUTOSCALING, or RUNNING status. """ -function stop_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics_v2( +stop_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics_v2( "StopApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_application( ApplicationName, params::AbstractDict{String}; @@ -1481,14 +1503,13 @@ user-defined application tags is 50. For more information, see Using Tagging. - `tags`: The key-value tags to assign to the application. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_analytics_v2( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics_v2( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1522,16 +1543,13 @@ information, see Using Tagging. - `tag_keys`: A list of keys of tags to remove from the specified application. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics_v2( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics_v2( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1586,16 +1604,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is compatible with the snapshot from which your application will start - `"ServiceExecutionRoleUpdate"`: Describes updates to the service execution role. """ -function update_application( - ApplicationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_analytics_v2( +update_application(ApplicationName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_analytics_v2( "UpdateApplication", Dict{String,Any}("ApplicationName" => ApplicationName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( ApplicationName, params::AbstractDict{String}; @@ -1638,22 +1653,20 @@ operation is supported only for Managed Service for Apache Flink. maintenance configuration. """ -function update_application_maintenance_configuration( +update_application_maintenance_configuration( ApplicationMaintenanceConfigurationUpdate, ApplicationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_analytics_v2( + "UpdateApplicationMaintenanceConfiguration", + Dict{String,Any}( + "ApplicationMaintenanceConfigurationUpdate" => + ApplicationMaintenanceConfigurationUpdate, + "ApplicationName" => ApplicationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_analytics_v2( - "UpdateApplicationMaintenanceConfiguration", - Dict{String,Any}( - "ApplicationMaintenanceConfigurationUpdate" => - ApplicationMaintenanceConfigurationUpdate, - "ApplicationName" => ApplicationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application_maintenance_configuration( ApplicationMaintenanceConfigurationUpdate, ApplicationName, diff --git a/src/services/kinesis_video.jl b/src/services/kinesis_video.jl index cf96d710d..d3bc4488a 100644 --- a/src/services/kinesis_video.jl +++ b/src/services/kinesis_video.jl @@ -22,17 +22,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SINGLE_MASTER channel type. - `"Tags"`: A set of tags (key-value pairs) that you want to associate with this channel. """ -function create_signaling_channel( - ChannelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video( +create_signaling_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/createSignalingChannel", Dict{String,Any}("ChannelName" => ChannelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_signaling_channel( ChannelName, params::AbstractDict{String}; @@ -85,15 +82,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional). """ -function create_stream(StreamName; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +create_stream(StreamName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/createStream", Dict{String,Any}("StreamName" => StreamName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_stream( StreamName, params::AbstractDict{String}; @@ -129,14 +125,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream from which to delete the edge configuration. Specify either the StreamName or the StreamARN. """ -function delete_edge_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +delete_edge_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/deleteEdgeConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_edge_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -166,17 +161,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You can obtain the current version by invoking the DescribeSignalingChannel or ListSignalingChannels API operations. """ -function delete_signaling_channel( - ChannelARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video( +delete_signaling_channel(ChannelARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/deleteSignalingChannel", Dict{String,Any}("ChannelARN" => ChannelARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_signaling_channel( ChannelARN, params::AbstractDict{String}; @@ -215,15 +207,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys stream version, use the DescribeStream API. If not specified, only the CreationTime is checked before deleting the stream. """ -function delete_stream(StreamARN; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +delete_stream(StreamARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/deleteStream", Dict{String,Any}("StreamARN" => StreamARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_stream( StreamARN, params::AbstractDict{String}; @@ -257,14 +248,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream whose edge configuration you want to update. Specify either the StreamName or the StreamARN. """ -function describe_edge_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +describe_edge_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/describeEdgeConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_edge_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -291,16 +281,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream from which to retrieve the image generation configuration. You must specify either the StreamName or the StreamARN. """ -function describe_image_generation_configuration(; +describe_image_generation_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video( + "POST", + "/describeImageGenerationConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/describeImageGenerationConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_image_generation_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -327,16 +315,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The Amazon Resource Name (ARN) of the stream. - `"StreamName"`: The name of the stream. """ -function describe_mapped_resource_configuration(; +describe_mapped_resource_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video( + "POST", + "/describeMappedResourceConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/describeMappedResourceConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_mapped_resource_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -361,16 +347,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ChannelARN"`: The Amazon Resource Name (ARN) of the channel. - `"ChannelName"`: The name of the channel. """ -function describe_media_storage_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video( +describe_media_storage_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/describeMediaStorageConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_media_storage_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -397,16 +380,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream from which to retrieve the notification configuration. You must specify either the StreamName or the StreamARN. """ -function describe_notification_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video( +describe_notification_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/describeNotificationConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_notification_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -431,14 +411,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ChannelARN"`: The ARN of the signaling channel that you want to describe. - `"ChannelName"`: The name of the signaling channel that you want to describe. """ -function describe_signaling_channel(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +describe_signaling_channel(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/describeSignalingChannel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_signaling_channel( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -463,11 +442,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamARN"`: The Amazon Resource Name (ARN) of the stream. - `"StreamName"`: The name of the stream. """ -function describe_stream(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( - "POST", "/describeStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_stream(; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis_video( + "POST", "/describeStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_stream( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -501,15 +478,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamARN in the request. """ -function get_data_endpoint(APIName; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +get_data_endpoint(APIName; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/getDataEndpoint", Dict{String,Any}("APIName" => APIName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_endpoint( APIName, params::AbstractDict{String}; @@ -547,17 +523,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SingleMasterChannelEndpointConfiguration"`: A structure containing the endpoint configuration for the SINGLE_MASTER channel type. """ -function get_signaling_channel_endpoint( +get_signaling_channel_endpoint( ChannelARN; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video( + "POST", + "/getSignalingChannelEndpoint", + Dict{String,Any}("ChannelARN" => ChannelARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/getSignalingChannelEndpoint", - Dict{String,Any}("ChannelARN" => ChannelARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_signaling_channel_endpoint( ChannelARN, params::AbstractDict{String}; @@ -593,17 +567,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. To get another batch of edge configurations, provide this token in your next request. """ -function list_edge_agent_configurations( +list_edge_agent_configurations( HubDeviceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video( + "POST", + "/listEdgeAgentConfigurations", + Dict{String,Any}("HubDeviceArn" => HubDeviceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/listEdgeAgentConfigurations", - Dict{String,Any}("HubDeviceArn" => HubDeviceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_edge_agent_configurations( HubDeviceArn, params::AbstractDict{String}; @@ -638,14 +610,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation is truncated, the call returns the NextToken in the response. To get another batch of channels, provide this token in your next request. """ -function list_signaling_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +list_signaling_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/listSignalingChannels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_signaling_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -675,11 +646,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamNameCondition"`: Optional: Returns only streams that satisfy a specific condition. Currently, you can specify only the prefix of a stream name as a condition. """ -function list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( - "POST", "/listStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis_video( + "POST", "/listStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -708,17 +677,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is truncated, the response includes a token that you can use in the next request to fetch the next batch of tags. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -751,11 +717,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for. - `"StreamName"`: The name of the stream that you want to list tags for. """ -function list_tags_for_stream(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( - "POST", "/listTagsForStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tags_for_stream(; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis_video( + "POST", "/listTagsForStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_tags_for_stream( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -797,17 +761,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream whose edge configuration you want to update. Specify either the StreamName or the StreamARN. """ -function start_edge_configuration_update( +start_edge_configuration_update( EdgeConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video( + "POST", + "/startEdgeConfigurationUpdate", + Dict{String,Any}("EdgeConfig" => EdgeConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/startEdgeConfigurationUpdate", - Dict{String,Any}("EdgeConfig" => EdgeConfig); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_edge_configuration_update( EdgeConfig, params::AbstractDict{String}; @@ -841,15 +803,14 @@ Management and Cost Management User Guide. key-value pair. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -893,15 +854,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tag or tags to. - `"StreamName"`: The name of the stream that you want to add the tag or tags to. """ -function tag_stream(Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( - "POST", - "/tagStream", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_stream(Tags; aws_config::AbstractAWSConfig=current_aws_config()) = kinesis_video( + "POST", + "/tagStream", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_stream( Tags, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -928,17 +887,15 @@ ignored. - `tag_key_list`: A list of the keys of the tags that you want to remove. """ -function untag_resource( +untag_resource( ResourceARN, TagKeyList; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video( + "POST", + "/UntagResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeyList" => TagKeyList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/UntagResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeyList" => TagKeyList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource( ResourceARN, TagKeyList, @@ -977,15 +934,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from. - `"StreamName"`: The name of the stream that you want to remove tags from. """ -function untag_stream(TagKeyList; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +untag_stream(TagKeyList; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/untagStream", Dict{String,Any}("TagKeyList" => TagKeyList); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_stream( TagKeyList, params::AbstractDict{String}; @@ -1034,24 +990,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys want to change. - `"StreamName"`: The name of the stream whose retention period you want to change. """ -function update_data_retention( +update_data_retention( CurrentVersion, DataRetentionChangeInHours, Operation; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_video( + "POST", + "/updateDataRetention", + Dict{String,Any}( + "CurrentVersion" => CurrentVersion, + "DataRetentionChangeInHours" => DataRetentionChangeInHours, + "Operation" => Operation, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/updateDataRetention", - Dict{String,Any}( - "CurrentVersion" => CurrentVersion, - "DataRetentionChangeInHours" => DataRetentionChangeInHours, - "Operation" => Operation, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_retention( CurrentVersion, DataRetentionChangeInHours, @@ -1095,16 +1049,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream from which to update the image generation configuration. You must specify either the StreamName or the StreamARN. """ -function update_image_generation_configuration(; +update_image_generation_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video( + "POST", + "/updateImageGenerationConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/updateImageGenerationConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_image_generation_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1136,22 +1088,20 @@ establish a connection between a peer and the storage session. storage configuration properties. """ -function update_media_storage_configuration( +update_media_storage_configuration( ChannelARN, MediaStorageConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_video( + "POST", + "/updateMediaStorageConfiguration", + Dict{String,Any}( + "ChannelARN" => ChannelARN, + "MediaStorageConfiguration" => MediaStorageConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/updateMediaStorageConfiguration", - Dict{String,Any}( - "ChannelARN" => ChannelARN, - "MediaStorageConfiguration" => MediaStorageConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_media_storage_configuration( ChannelARN, MediaStorageConfiguration, @@ -1192,16 +1142,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream from which to update the notification configuration. You must specify either the StreamName or the StreamARN. """ -function update_notification_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video( +update_notification_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/updateNotificationConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_notification_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1233,17 +1180,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SingleMasterConfiguration"`: The structure containing the configuration for the SINGLE_MASTER type of the signaling channel that you want to update. """ -function update_signaling_channel( +update_signaling_channel( ChannelARN, CurrentVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video( + "POST", + "/updateSignalingChannel", + Dict{String,Any}("ChannelARN" => ChannelARN, "CurrentVersion" => CurrentVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video( - "POST", - "/updateSignalingChannel", - Dict{String,Any}("ChannelARN" => ChannelARN, "CurrentVersion" => CurrentVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_signaling_channel( ChannelARN, CurrentVersion, @@ -1294,15 +1239,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream whose metadata you want to update. The stream name is an identifier for the stream, and must be unique for each account and region. """ -function update_stream(CurrentVersion; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video( +update_stream(CurrentVersion; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video( "POST", "/updateStream", Dict{String,Any}("CurrentVersion" => CurrentVersion); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_stream( CurrentVersion, params::AbstractDict{String}; diff --git a/src/services/kinesis_video_archived_media.jl b/src/services/kinesis_video_archived_media.jl index a7fb8c2b4..fe43dff9d 100644 --- a/src/services/kinesis_video_archived_media.jl +++ b/src/services/kinesis_video_archived_media.jl @@ -40,15 +40,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream for which to retrieve the media clip. You must specify either the StreamName or the StreamARN. """ -function get_clip(ClipFragmentSelector; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video_archived_media( +get_clip(ClipFragmentSelector; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video_archived_media( "POST", "/getClip", Dict{String,Any}("ClipFragmentSelector" => ClipFragmentSelector); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_clip( ClipFragmentSelector, params::AbstractDict{String}; @@ -216,14 +215,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream for which to retrieve the MPEG-DASH manifest URL. You must specify either the StreamName or the StreamARN. """ -function get_dashstreaming_session_url(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video_archived_media( +get_dashstreaming_session_url(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video_archived_media( "POST", "/getDASHStreamingSessionURL"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_dashstreaming_session_url( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -422,14 +420,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream for which to retrieve the HLS master playlist URL. You must specify either the StreamName or the StreamARN. """ -function get_hlsstreaming_session_url(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video_archived_media( +get_hlsstreaming_session_url(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video_archived_media( "POST", "/getHLSStreamingSessionURL"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_hlsstreaming_session_url( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -493,26 +490,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys be thrown. If neither parameter is provided, the original image size from the stream will be returned. """ -function get_images( +get_images( EndTimestamp, Format, ImageSelectorType, StartTimestamp; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_video_archived_media( + "POST", + "/getImages", + Dict{String,Any}( + "EndTimestamp" => EndTimestamp, + "Format" => Format, + "ImageSelectorType" => ImageSelectorType, + "StartTimestamp" => StartTimestamp, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video_archived_media( - "POST", - "/getImages", - Dict{String,Any}( - "EndTimestamp" => EndTimestamp, - "Format" => Format, - "ImageSelectorType" => ImageSelectorType, - "StartTimestamp" => StartTimestamp, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_images( EndTimestamp, Format, @@ -571,17 +566,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream from which to retrieve fragment media. Specify either this parameter or the StreamARN parameter. """ -function get_media_for_fragment_list( - Fragments; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video_archived_media( +get_media_for_fragment_list(Fragments; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video_archived_media( "POST", "/getMediaForFragmentList", Dict{String,Any}("Fragments" => Fragments); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_media_for_fragment_list( Fragments, params::AbstractDict{String}; @@ -634,11 +626,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The name of the stream from which to retrieve a fragment list. Specify either this parameter or the StreamARN parameter. """ -function list_fragments(; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video_archived_media( +list_fragments(; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video_archived_media( "POST", "/listFragments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_fragments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/kinesis_video_media.jl b/src/services/kinesis_video_media.jl index 5a8c39fa5..85dbb5a34 100644 --- a/src/services/kinesis_video_media.jl +++ b/src/services/kinesis_video_media.jl @@ -40,15 +40,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamName"`: The Kinesis video stream name from where you want to get the media content. If you don't specify the streamName, you must specify the streamARN. """ -function get_media(StartSelector; aws_config::AbstractAWSConfig=current_aws_config()) - return kinesis_video_media( +get_media(StartSelector; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video_media( "POST", "/getMedia", Dict{String,Any}("StartSelector" => StartSelector); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_media( StartSelector, params::AbstractDict{String}; diff --git a/src/services/kinesis_video_signaling.jl b/src/services/kinesis_video_signaling.jl index c38167b43..577021db2 100644 --- a/src/services/kinesis_video_signaling.jl +++ b/src/services/kinesis_video_signaling.jl @@ -31,17 +31,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Service"`: Specifies the desired service. Currently, TURN is the only valid value. - `"Username"`: An optional user ID to be associated with the credentials. """ -function get_ice_server_config( - ChannelARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video_signaling( +get_ice_server_config(ChannelARN; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video_signaling( "POST", "/v1/get-ice-server-config", Dict{String,Any}("ChannelARN" => ChannelARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_ice_server_config( ChannelARN, params::AbstractDict{String}; @@ -75,24 +72,22 @@ connected to the signaling channel, redelivery requests are made until the messa - `sender_client_id`: The unique identifier for the sender client. """ -function send_alexa_offer_to_master( +send_alexa_offer_to_master( ChannelARN, MessagePayload, SenderClientId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kinesis_video_signaling( + "POST", + "/v1/send-alexa-offer-to-master", + Dict{String,Any}( + "ChannelARN" => ChannelARN, + "MessagePayload" => MessagePayload, + "SenderClientId" => SenderClientId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kinesis_video_signaling( - "POST", - "/v1/send-alexa-offer-to-master", - Dict{String,Any}( - "ChannelARN" => ChannelARN, - "MessagePayload" => MessagePayload, - "SenderClientId" => SenderClientId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_alexa_offer_to_master( ChannelARN, MessagePayload, diff --git a/src/services/kinesis_video_webrtc_storage.jl b/src/services/kinesis_video_webrtc_storage.jl index 071a02690..7ea60ec86 100644 --- a/src/services/kinesis_video_webrtc_storage.jl +++ b/src/services/kinesis_video_webrtc_storage.jl @@ -8,35 +8,40 @@ using AWS.UUIDs join_storage_session(channel_arn) join_storage_session(channel_arn, params::Dict{String,<:Any}) - Join the ongoing one way-video and/or multi-way audio WebRTC session as a video producing -device for an input channel. If there’s no existing session for the channel, a new -streaming session needs to be created, and the Amazon Resource Name (ARN) of the signaling -channel must be provided. Currently for the SINGLE_MASTER type, a video producing device -is able to ingest both audio and video media into a stream, while viewers can only ingest -audio. Both a video producing device and viewers can join the session first, and wait for -other participants. While participants are having peer to peer conversations through -webRTC, the ingested media session will be stored into the Kinesis Video Stream. Multiple -viewers are able to playback real-time media. Customers can also use existing Kinesis Video -Streams features like HLS or DASH playback, Image generation, and more with ingested WebRTC -media. Assume that only one video producing device client can be associated with a session -for the channel. If more than one client joins the session of a specific channel as a video -producing device, the most recent client request takes precedence. + Before using this API, you must call the GetSignalingChannelEndpoint API to request the +WEBRTC endpoint. You then specify the endpoint and region in your JoinStorageSession API +request. Join the ongoing one way-video and/or multi-way audio WebRTC session as a video +producing device for an input channel. If there’s no existing session for the channel, a +new streaming session needs to be created, and the Amazon Resource Name (ARN) of the +signaling channel must be provided. Currently for the SINGLE_MASTER type, a video +producing device is able to ingest both audio and video media into a stream. Only video +producing devices can join the session and record media. Both audio and video tracks are +currently required for WebRTC ingestion. Current requirements: Video track: H.264 Audio +track: Opus The resulting ingested video in the Kinesis video stream will have the +following parameters: H.264 video and AAC audio. Once a master participant has negotiated a +connection through WebRTC, the ingested media session will be stored in the Kinesis video +stream. Multiple viewers are then able to play back real-time media through our Playback +APIs. You can also use existing Kinesis Video Streams features like HLS or DASH playback, +image generation via GetImages, and more with ingested WebRTC media. S3 image delivery and +notifications are not currently supported. Assume that only one video producing device +client can be associated with a session for the channel. If more than one client joins the +session of a specific channel as a video producing device, the most recent client request +takes precedence. Additional information Idempotent - This API is not idempotent. +Retry behavior - This is counted as a new API call. Concurrent calls - Concurrent calls +are allowed. An offer is sent once per each call. # Arguments - `channel_arn`: The Amazon Resource Name (ARN) of the signaling channel. """ -function join_storage_session( - channelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return kinesis_video_webrtc_storage( +join_storage_session(channelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + kinesis_video_webrtc_storage( "POST", "/joinStorageSession", Dict{String,Any}("channelArn" => channelArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function join_storage_session( channelArn, params::AbstractDict{String}; @@ -52,3 +57,55 @@ function join_storage_session( feature_set=SERVICE_FEATURE_SET, ) end + +""" + join_storage_session_as_viewer(channel_arn, client_id) + join_storage_session_as_viewer(channel_arn, client_id, params::Dict{String,<:Any}) + + Join the ongoing one way-video and/or multi-way audio WebRTC session as a viewer for an +input channel. If there’s no existing session for the channel, create a new streaming +session and provide the Amazon Resource Name (ARN) of the signaling channel (channelArn) +and client id (clientId). Currently for SINGLE_MASTER type, a video producing device is +able to ingest both audio and video media into a stream, while viewers can only ingest +audio. Both a video producing device and viewers can join a session first and wait for +other participants. While participants are having peer to peer conversations through +WebRTC, the ingested media session will be stored into the Kinesis Video Stream. Multiple +viewers are able to playback real-time media. Customers can also use existing Kinesis +Video Streams features like HLS or DASH playback, Image generation, and more with ingested +WebRTC media. If there’s an existing session with the same clientId that's found in the +join session request, the new request takes precedence. + +# Arguments +- `channel_arn`: The Amazon Resource Name (ARN) of the signaling channel. +- `client_id`: The unique identifier for the sender client. + +""" +join_storage_session_as_viewer( + channelArn, clientId; aws_config::AbstractAWSConfig=current_aws_config() +) = kinesis_video_webrtc_storage( + "POST", + "/joinStorageSessionAsViewer", + Dict{String,Any}("channelArn" => channelArn, "clientId" => clientId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function join_storage_session_as_viewer( + channelArn, + clientId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return kinesis_video_webrtc_storage( + "POST", + "/joinStorageSessionAsViewer", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("channelArn" => channelArn, "clientId" => clientId), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end diff --git a/src/services/kms.jl b/src/services/kms.jl index e8d0ed080..885f9e382 100644 --- a/src/services/kms.jl +++ b/src/services/kms.jl @@ -25,14 +25,12 @@ follows an eventual consistency model. For more information, see KMS eventual co the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function cancel_key_deletion(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "CancelKeyDeletion", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_key_deletion(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "CancelKeyDeletion", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_key_deletion( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -99,16 +97,14 @@ follows an eventual consistency model. For more information, see KMS eventual co connect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation. """ -function connect_custom_key_store( +connect_custom_key_store( CustomKeyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "ConnectCustomKeyStore", + Dict{String,Any}("CustomKeyStoreId" => CustomKeyStoreId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "ConnectCustomKeyStore", - Dict{String,Any}("CustomKeyStoreId" => CustomKeyStoreId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function connect_custom_key_store( CustomKeyStoreId, params::AbstractDict{String}; @@ -170,16 +166,13 @@ consistency model. For more information, see KMS eventual consistency. key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function create_alias( - AliasName, TargetKeyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kms( +create_alias(AliasName, TargetKeyId; aws_config::AbstractAWSConfig=current_aws_config()) = + kms( "CreateAlias", Dict{String,Any}("AliasName" => AliasName, "TargetKeyId" => TargetKeyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_alias( AliasName, TargetKeyId, @@ -337,16 +330,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys connectivity can share an Amazon VPC, but each external key store must have its own VPC endpoint service and private DNS name. """ -function create_custom_key_store( +create_custom_key_store( CustomKeyStoreName; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "CreateCustomKeyStore", + Dict{String,Any}("CustomKeyStoreName" => CustomKeyStoreName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "CreateCustomKeyStore", - Dict{String,Any}("CustomKeyStoreName" => CustomKeyStoreName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_key_store( CustomKeyStoreName, params::AbstractDict{String}; @@ -459,20 +450,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys grant or revoke the grant. For details, see RevokeGrant and Retiring and revoking grants in the Key Management Service Developer Guide. """ -function create_grant( +create_grant( GranteePrincipal, KeyId, Operations; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "CreateGrant", + Dict{String,Any}( + "GranteePrincipal" => GranteePrincipal, + "KeyId" => KeyId, + "Operations" => Operations, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "CreateGrant", - Dict{String,Any}( - "GranteePrincipal" => GranteePrincipal, - "KeyId" => KeyId, - "Operations" => Operations, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_grant( GranteePrincipal, KeyId, @@ -735,9 +724,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys using the specified external key, a process known as double encryption. For details, see Double encryption in the Key Management Service Developer Guide. """ -function create_key(; aws_config::AbstractAWSConfig=current_aws_config()) - return kms("CreateKey"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_key(; aws_config::AbstractAWSConfig=current_aws_config()) = + kms("CreateKey"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_key( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -845,14 +833,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide. """ -function decrypt(CiphertextBlob; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "Decrypt", - Dict{String,Any}("CiphertextBlob" => CiphertextBlob); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +decrypt(CiphertextBlob; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "Decrypt", + Dict{String,Any}("CiphertextBlob" => CiphertextBlob); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function decrypt( CiphertextBlob, params::AbstractDict{String}; @@ -892,14 +878,12 @@ consistency model. For more information, see KMS eventual consistency. the alias name, such as alias/ExampleAlias. """ -function delete_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "DeleteAlias", - Dict{String,Any}("AliasName" => AliasName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "DeleteAlias", + Dict{String,Any}("AliasName" => AliasName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_alias( AliasName, params::AbstractDict{String}; @@ -952,16 +936,14 @@ follows an eventual consistency model. For more information, see KMS eventual co the ID of a custom key store, use the DescribeCustomKeyStores operation. """ -function delete_custom_key_store( +delete_custom_key_store( CustomKeyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "DeleteCustomKeyStore", + Dict{String,Any}("CustomKeyStoreId" => CustomKeyStoreId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "DeleteCustomKeyStore", - Dict{String,Any}("CustomKeyStoreId" => CustomKeyStoreId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_key_store( CustomKeyStoreId, params::AbstractDict{String}; @@ -1004,16 +986,13 @@ model. For more information, see KMS eventual consistency. key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function delete_imported_key_material( - KeyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kms( +delete_imported_key_material(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = + kms( "DeleteImportedKeyMaterial", Dict{String,Any}("KeyId" => KeyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_imported_key_material( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1117,23 +1096,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide. """ -function derive_shared_secret( +derive_shared_secret( KeyAgreementAlgorithm, KeyId, PublicKey; aws_config::AbstractAWSConfig=current_aws_config(), +) = kms( + "DeriveSharedSecret", + Dict{String,Any}( + "KeyAgreementAlgorithm" => KeyAgreementAlgorithm, + "KeyId" => KeyId, + "PublicKey" => PublicKey, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "DeriveSharedSecret", - Dict{String,Any}( - "KeyAgreementAlgorithm" => KeyAgreementAlgorithm, - "KeyId" => KeyId, - "PublicKey" => PublicKey, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function derive_shared_secret( KeyAgreementAlgorithm, KeyId, @@ -1208,11 +1185,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys truncated results. Set it to the value of NextMarker from the truncated response you just received. """ -function describe_custom_key_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "DescribeCustomKeyStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_custom_key_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = + kms("DescribeCustomKeyStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_custom_key_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1274,14 +1248,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Grant token and Using a grant token in the Key Management Service Developer Guide. """ -function describe_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "DescribeKey", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "DescribeKey", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_key( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1314,14 +1286,12 @@ information, see KMS eventual consistency. key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function disable_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "DisableKey", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "DisableKey", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_key( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1364,14 +1334,12 @@ eventual consistency model. For more information, see KMS eventual consistency. key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function disable_key_rotation(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "DisableKeyRotation", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_key_rotation(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "DisableKeyRotation", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_key_rotation( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1413,16 +1381,14 @@ model. For more information, see KMS eventual consistency. find the ID of a custom key store, use the DescribeCustomKeyStores operation. """ -function disconnect_custom_key_store( +disconnect_custom_key_store( CustomKeyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "DisconnectCustomKeyStore", + Dict{String,Any}("CustomKeyStoreId" => CustomKeyStoreId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "DisconnectCustomKeyStore", - Dict{String,Any}("CustomKeyStoreId" => CustomKeyStoreId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disconnect_custom_key_store( CustomKeyStoreId, params::AbstractDict{String}; @@ -1459,14 +1425,12 @@ consistency model. For more information, see KMS eventual consistency. key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function enable_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "EnableKey", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "EnableKey", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_key( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1533,14 +1497,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys thereafter. You can use the kms:RotationPeriodInDays condition key to further constrain the values that principals can specify in the RotationPeriodInDays parameter. """ -function enable_key_rotation(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "EnableKeyRotation", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_key_rotation(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "EnableKeyRotation", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_key_rotation( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1631,14 +1593,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Grant token and Using a grant token in the Key Management Service Developer Guide. """ -function encrypt(KeyId, Plaintext; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "Encrypt", - Dict{String,Any}("KeyId" => KeyId, "Plaintext" => Plaintext); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +encrypt(KeyId, Plaintext; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "Encrypt", + Dict{String,Any}("KeyId" => KeyId, "Plaintext" => Plaintext); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function encrypt( KeyId, Plaintext, @@ -1764,14 +1724,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide. """ -function generate_data_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "GenerateDataKey", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +generate_data_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "GenerateDataKey", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function generate_data_key( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1891,16 +1849,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide. """ -function generate_data_key_pair( +generate_data_key_pair( KeyId, KeyPairSpec; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "GenerateDataKeyPair", + Dict{String,Any}("KeyId" => KeyId, "KeyPairSpec" => KeyPairSpec); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "GenerateDataKeyPair", - Dict{String,Any}("KeyId" => KeyId, "KeyPairSpec" => KeyPairSpec); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_data_key_pair( KeyId, KeyPairSpec, @@ -1996,16 +1952,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Grant token and Using a grant token in the Key Management Service Developer Guide. """ -function generate_data_key_pair_without_plaintext( +generate_data_key_pair_without_plaintext( KeyId, KeyPairSpec; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "GenerateDataKeyPairWithoutPlaintext", + Dict{String,Any}("KeyId" => KeyId, "KeyPairSpec" => KeyPairSpec); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "GenerateDataKeyPairWithoutPlaintext", - Dict{String,Any}("KeyId" => KeyId, "KeyPairSpec" => KeyPairSpec); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_data_key_pair_without_plaintext( KeyId, KeyPairSpec, @@ -2105,16 +2059,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys generate a 512-bit data key (64 bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you use the KeySpec field instead of this one. """ -function generate_data_key_without_plaintext( +generate_data_key_without_plaintext( KeyId; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "GenerateDataKeyWithoutPlaintext", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "GenerateDataKeyWithoutPlaintext", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_data_key_without_plaintext( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2174,18 +2126,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Grant token and Using a grant token in the Key Management Service Developer Guide. """ -function generate_mac( +generate_mac( KeyId, MacAlgorithm, Message; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "GenerateMac", + Dict{String,Any}( + "KeyId" => KeyId, "MacAlgorithm" => MacAlgorithm, "Message" => Message + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "GenerateMac", - Dict{String,Any}( - "KeyId" => KeyId, "MacAlgorithm" => MacAlgorithm, "Message" => Message - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_mac( KeyId, MacAlgorithm, @@ -2252,9 +2202,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide. """ -function generate_random(; aws_config::AbstractAWSConfig=current_aws_config()) - return kms("GenerateRandom"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +generate_random(; aws_config::AbstractAWSConfig=current_aws_config()) = + kms("GenerateRandom"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function generate_random( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2285,14 +2234,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default value is default. The only valid name is default. To get the names of key policies, use ListKeyPolicies. """ -function get_key_policy(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "GetKeyPolicy", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_key_policy(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "GetKeyPolicy", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_key_policy( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2349,14 +2296,12 @@ model. For more information, see KMS eventual consistency. the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function get_key_rotation_status(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "GetKeyRotationStatus", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_key_rotation_status(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "GetKeyRotationStatus", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_key_rotation_status( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2437,23 +2382,21 @@ information, see KMS eventual consistency. algorithm or choose a longer RSA public key. """ -function get_parameters_for_import( +get_parameters_for_import( KeyId, WrappingAlgorithm, WrappingKeySpec; aws_config::AbstractAWSConfig=current_aws_config(), +) = kms( + "GetParametersForImport", + Dict{String,Any}( + "KeyId" => KeyId, + "WrappingAlgorithm" => WrappingAlgorithm, + "WrappingKeySpec" => WrappingKeySpec, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "GetParametersForImport", - Dict{String,Any}( - "KeyId" => KeyId, - "WrappingAlgorithm" => WrappingAlgorithm, - "WrappingKeySpec" => WrappingKeySpec, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_parameters_for_import( KeyId, WrappingAlgorithm, @@ -2532,14 +2475,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Grant token and Using a grant token in the Key Management Service Developer Guide. """ -function get_public_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "GetPublicKey", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_public_key(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "GetPublicKey", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_public_key( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2647,23 +2588,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys completes. To change either value, you must delete (DeleteImportedKeyMaterial) and reimport the key material. """ -function import_key_material( +import_key_material( EncryptedKeyMaterial, ImportToken, KeyId; aws_config::AbstractAWSConfig=current_aws_config(), +) = kms( + "ImportKeyMaterial", + Dict{String,Any}( + "EncryptedKeyMaterial" => EncryptedKeyMaterial, + "ImportToken" => ImportToken, + "KeyId" => KeyId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "ImportKeyMaterial", - Dict{String,Any}( - "EncryptedKeyMaterial" => EncryptedKeyMaterial, - "ImportToken" => ImportToken, - "KeyId" => KeyId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_key_material( EncryptedKeyMaterial, ImportToken, @@ -2726,9 +2665,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys truncated results. Set it to the value of NextMarker from the truncated response you just received. """ -function list_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) - return kms("ListAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) = + kms("ListAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_aliases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2778,14 +2716,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys truncated results. Set it to the value of NextMarker from the truncated response you just received. """ -function list_grants(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "ListGrants", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_grants(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "ListGrants", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_grants( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2826,14 +2762,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys truncated results. Set it to the value of NextMarker from the truncated response you just received. """ -function list_key_policies(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "ListKeyPolicies", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_key_policies(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "ListKeyPolicies", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_key_policies( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2875,14 +2809,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys truncated results. Set it to the value of NextMarker from the truncated response you just received. """ -function list_key_rotations(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "ListKeyRotations", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_key_rotations(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "ListKeyRotations", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_key_rotations( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2915,9 +2847,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys truncated results. Set it to the value of NextMarker from the truncated response you just received. """ -function list_keys(; aws_config::AbstractAWSConfig=current_aws_config()) - return kms("ListKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = + kms("ListKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_keys( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2954,14 +2885,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys received. Do not attempt to construct this value. Use only the value of NextMarker from the truncated response you just received. """ -function list_resource_tags(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "ListResourceTags", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_resource_tags(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "ListResourceTags", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_resource_tags( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3017,16 +2946,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys truncated results. Set it to the value of NextMarker from the truncated response you just received. """ -function list_retirable_grants( +list_retirable_grants( RetiringPrincipal; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "ListRetirableGrants", + Dict{String,Any}("RetiringPrincipal" => RetiringPrincipal); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "ListRetirableGrants", - Dict{String,Any}("RetiringPrincipal" => RetiringPrincipal); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_retirable_grants( RetiringPrincipal, params::AbstractDict{String}; @@ -3093,14 +3020,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyName"`: The name of the key policy. If no policy name is specified, the default value is default. The only valid value is default. """ -function put_key_policy(KeyId, Policy; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "PutKeyPolicy", - Dict{String,Any}("KeyId" => KeyId, "Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_key_policy(KeyId, Policy; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "PutKeyPolicy", + Dict{String,Any}("KeyId" => KeyId, "Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_key_policy( KeyId, Policy, @@ -3241,18 +3166,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases. """ -function re_encrypt( +re_encrypt( CiphertextBlob, DestinationKeyId; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "ReEncrypt", + Dict{String,Any}( + "CiphertextBlob" => CiphertextBlob, "DestinationKeyId" => DestinationKeyId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "ReEncrypt", - Dict{String,Any}( - "CiphertextBlob" => CiphertextBlob, "DestinationKeyId" => DestinationKeyId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function re_encrypt( CiphertextBlob, DestinationKeyId, @@ -3401,16 +3324,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys generates a cost allocation report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details, see Tagging Keys. """ -function replicate_key( - KeyId, ReplicaRegion; aws_config::AbstractAWSConfig=current_aws_config() -) - return kms( +replicate_key(KeyId, ReplicaRegion; aws_config::AbstractAWSConfig=current_aws_config()) = + kms( "ReplicateKey", Dict{String,Any}("KeyId" => KeyId, "ReplicaRegion" => ReplicaRegion); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function replicate_key( KeyId, ReplicaRegion, @@ -3468,9 +3388,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListKeys operation. For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab """ -function retire_grant(; aws_config::AbstractAWSConfig=current_aws_config()) - return kms("RetireGrant"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +retire_grant(; aws_config::AbstractAWSConfig=current_aws_config()) = + kms("RetireGrant"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function retire_grant( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3513,14 +3432,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide. """ -function revoke_grant(GrantId, KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "RevokeGrant", - Dict{String,Any}("GrantId" => GrantId, "KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +revoke_grant(GrantId, KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "RevokeGrant", + Dict{String,Any}("GrantId" => GrantId, "KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function revoke_grant( GrantId, KeyId, @@ -3581,14 +3498,12 @@ consistency. key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function rotate_key_on_demand(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "RotateKeyOnDemand", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +rotate_key_on_demand(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "RotateKeyOnDemand", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function rotate_key_on_demand( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3655,14 +3570,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys further constrain the values that principals can specify in the PendingWindowInDays parameter. """ -function schedule_key_deletion(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "ScheduleKeyDeletion", - Dict{String,Any}("KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +schedule_key_deletion(KeyId; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "ScheduleKeyDeletion", + Dict{String,Any}("KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function schedule_key_deletion( KeyId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3755,10 +3668,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use the SHA_512 hashing algorithm. SM2DSA uses the SM3 hashing algorithm. For details, see Offline verification with SM2 key pairs. """ -function sign( - KeyId, Message, SigningAlgorithm; aws_config::AbstractAWSConfig=current_aws_config() -) - return kms( +sign(KeyId, Message, SigningAlgorithm; aws_config::AbstractAWSConfig=current_aws_config()) = + kms( "Sign", Dict{String,Any}( "KeyId" => KeyId, "Message" => Message, "SigningAlgorithm" => SigningAlgorithm @@ -3766,7 +3677,6 @@ function sign( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function sign( KeyId, Message, @@ -3827,14 +3737,12 @@ consistency model. For more information, see KMS eventual consistency. specified one. """ -function tag_resource(KeyId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "TagResource", - Dict{String,Any}("KeyId" => KeyId, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(KeyId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "TagResource", + Dict{String,Any}("KeyId" => KeyId, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( KeyId, Tags, @@ -3879,14 +3787,12 @@ KMS eventual consistency. - `tag_keys`: One or more tag keys. Specify only the tag keys, not the tag values. """ -function untag_resource(KeyId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return kms( - "UntagResource", - Dict{String,Any}("KeyId" => KeyId, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_resource(KeyId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = kms( + "UntagResource", + Dict{String,Any}("KeyId" => KeyId, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_resource( KeyId, TagKeys, @@ -3949,16 +3855,13 @@ consistency model. For more information, see KMS eventual consistency. is mapped to the correct KMS key, use ListAliases. """ -function update_alias( - AliasName, TargetKeyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return kms( +update_alias(AliasName, TargetKeyId; aws_config::AbstractAWSConfig=current_aws_config()) = + kms( "UpdateAlias", Dict{String,Any}("AliasName" => AliasName, "TargetKeyId" => TargetKeyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_alias( AliasName, TargetKeyId, @@ -4100,16 +4003,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys when the CustomKeyStoreType is EXTERNAL_KEY_STORE and the XksProxyConnectivity is VPC_ENDPOINT_SERVICE. To change this value, the external key store must be disconnected. """ -function update_custom_key_store( +update_custom_key_store( CustomKeyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "UpdateCustomKeyStore", + Dict{String,Any}("CustomKeyStoreId" => CustomKeyStoreId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "UpdateCustomKeyStore", - Dict{String,Any}("CustomKeyStoreId" => CustomKeyStoreId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_custom_key_store( CustomKeyStoreId, params::AbstractDict{String}; @@ -4149,16 +4050,14 @@ follows an eventual consistency model. For more information, see KMS eventual co key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ -function update_key_description( +update_key_description( Description, KeyId; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "UpdateKeyDescription", + Dict{String,Any}("Description" => Description, "KeyId" => KeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "UpdateKeyDescription", - Dict{String,Any}("Description" => Description, "KeyId" => KeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_key_description( Description, KeyId, @@ -4234,16 +4133,14 @@ eventual consistency model. For more information, see KMS eventual consistency. primary key. """ -function update_primary_region( +update_primary_region( KeyId, PrimaryRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "UpdatePrimaryRegion", + Dict{String,Any}("KeyId" => KeyId, "PrimaryRegion" => PrimaryRegion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "UpdatePrimaryRegion", - Dict{String,Any}("KeyId" => KeyId, "PrimaryRegion" => PrimaryRegion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_primary_region( KeyId, PrimaryRegion, @@ -4344,25 +4241,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SM2DSA uses the SM3 hashing algorithm. For details, see Offline verification with SM2 key pairs. """ -function verify( +verify( KeyId, Message, Signature, SigningAlgorithm; aws_config::AbstractAWSConfig=current_aws_config(), +) = kms( + "Verify", + Dict{String,Any}( + "KeyId" => KeyId, + "Message" => Message, + "Signature" => Signature, + "SigningAlgorithm" => SigningAlgorithm, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "Verify", - Dict{String,Any}( - "KeyId" => KeyId, - "Message" => Message, - "Signature" => Signature, - "SigningAlgorithm" => SigningAlgorithm, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify( KeyId, Message, @@ -4435,21 +4330,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Grant token and Using a grant token in the Key Management Service Developer Guide. """ -function verify_mac( +verify_mac( KeyId, Mac, MacAlgorithm, Message; aws_config::AbstractAWSConfig=current_aws_config() +) = kms( + "VerifyMac", + Dict{String,Any}( + "KeyId" => KeyId, + "Mac" => Mac, + "MacAlgorithm" => MacAlgorithm, + "Message" => Message, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return kms( - "VerifyMac", - Dict{String,Any}( - "KeyId" => KeyId, - "Mac" => Mac, - "MacAlgorithm" => MacAlgorithm, - "Message" => Message, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_mac( KeyId, Mac, diff --git a/src/services/lakeformation.jl b/src/services/lakeformation.jl index 6520dcf99..ee7d94230 100644 --- a/src/services/lakeformation.jl +++ b/src/services/lakeformation.jl @@ -20,17 +20,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function add_lftags_to_resource( +add_lftags_to_resource( LFTags, Resource; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/AddLFTagsToResource", + Dict{String,Any}("LFTags" => LFTags, "Resource" => Resource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/AddLFTagsToResource", - Dict{String,Any}("LFTags" => LFTags, "Resource" => Resource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_lftags_to_resource( LFTags, Resource, @@ -81,21 +79,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DurationSeconds"`: The time period, between 900 and 43,200 seconds, for the timeout of the temporary credentials. """ -function assume_decorated_role_with_saml( +assume_decorated_role_with_saml( PrincipalArn, RoleArn, SAMLAssertion; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/AssumeDecoratedRoleWithSAML", + Dict{String,Any}( + "PrincipalArn" => PrincipalArn, + "RoleArn" => RoleArn, + "SAMLAssertion" => SAMLAssertion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/AssumeDecoratedRoleWithSAML", - Dict{String,Any}( - "PrincipalArn" => PrincipalArn, - "RoleArn" => RoleArn, - "SAMLAssertion" => SAMLAssertion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_decorated_role_with_saml( PrincipalArn, RoleArn, @@ -138,17 +134,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function batch_grant_permissions( - Entries; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +batch_grant_permissions(Entries; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/BatchGrantPermissions", Dict{String,Any}("Entries" => Entries); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_grant_permissions( Entries, params::AbstractDict{String}; @@ -179,17 +172,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function batch_revoke_permissions( - Entries; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +batch_revoke_permissions(Entries; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/BatchRevokePermissions", Dict{String,Any}("Entries" => Entries); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_revoke_permissions( Entries, params::AbstractDict{String}; @@ -215,17 +205,14 @@ previously committed. - `transaction_id`: The transaction to cancel. """ -function cancel_transaction( - TransactionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +cancel_transaction(TransactionId; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/CancelTransaction", Dict{String,Any}("TransactionId" => TransactionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_transaction( TransactionId, params::AbstractDict{String}; @@ -254,17 +241,14 @@ transaction. - `transaction_id`: The transaction to commit. """ -function commit_transaction( - TransactionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +commit_transaction(TransactionId; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/CommitTransaction", Dict{String,Any}("TransactionId" => TransactionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function commit_transaction( TransactionId, params::AbstractDict{String}; @@ -292,17 +276,14 @@ Creates a data cell filter to allow one to grant access to certain columns on ce filter. """ -function create_data_cells_filter( - TableData; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +create_data_cells_filter(TableData; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/CreateDataCellsFilter", Dict{String,Any}("TableData" => TableData); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_data_cells_filter( TableData, params::AbstractDict{String}; @@ -343,16 +324,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with the principals you want to have access to the resources. If the ShareRecipients value is null or the list is empty, no resource share is created. """ -function create_lake_formation_identity_center_configuration(; +create_lake_formation_identity_center_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/CreateLakeFormationIdentityCenterConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/CreateLakeFormationIdentityCenterConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lake_formation_identity_center_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -376,17 +355,15 @@ Enforce Lake Formation permissions for the given databases, tables, and principa - `resource`: """ -function create_lake_formation_opt_in( +create_lake_formation_opt_in( Principal, Resource; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/CreateLakeFormationOptIn", + Dict{String,Any}("Principal" => Principal, "Resource" => Resource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/CreateLakeFormationOptIn", - Dict{String,Any}("Principal" => Principal, "Resource" => Resource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lake_formation_opt_in( Principal, Resource, @@ -424,15 +401,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function create_lftag(TagKey, TagValues; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +create_lftag(TagKey, TagValues; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/CreateLFTag", Dict{String,Any}("TagKey" => TagKey, "TagValues" => TagValues); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_lftag( TagKey, TagValues, @@ -467,14 +443,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TableCatalogId"`: The ID of the catalog to which the table belongs. - `"TableName"`: A table in the database. """ -function delete_data_cells_filter(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +delete_data_cells_filter(; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/DeleteDataCellsFilter"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_data_cells_filter( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -500,16 +475,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys definitions, view definition, and other control information to manage your Lake Formation environment. """ -function delete_lake_formation_identity_center_configuration(; +delete_lake_formation_identity_center_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/DeleteLakeFormationIdentityCenterConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/DeleteLakeFormationIdentityCenterConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_lake_formation_identity_center_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -534,17 +507,15 @@ principals. - `resource`: """ -function delete_lake_formation_opt_in( +delete_lake_formation_opt_in( Principal, Resource; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/DeleteLakeFormationOptIn", + Dict{String,Any}("Principal" => Principal, "Resource" => Resource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/DeleteLakeFormationOptIn", - Dict{String,Any}("Principal" => Principal, "Resource" => Resource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_lake_formation_opt_in( Principal, Resource, @@ -585,15 +556,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function delete_lftag(TagKey; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", - "/DeleteLFTag", - Dict{String,Any}("TagKey" => TagKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_lftag(TagKey; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", + "/DeleteLFTag", + Dict{String,Any}("TagKey" => TagKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_lftag( TagKey, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -629,26 +598,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CatalogId"`: The Glue data catalog that contains the governed table. Defaults to the current account ID. """ -function delete_objects_on_cancel( +delete_objects_on_cancel( DatabaseName, Objects, TableName, TransactionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lakeformation( + "POST", + "/DeleteObjectsOnCancel", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "Objects" => Objects, + "TableName" => TableName, + "TransactionId" => TransactionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/DeleteObjectsOnCancel", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "Objects" => Objects, - "TableName" => TableName, - "TransactionId" => TransactionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_objects_on_cancel( DatabaseName, Objects, @@ -689,17 +656,14 @@ Formation removes the path from the inline policy attached to your service-linke deregister. """ -function deregister_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +deregister_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/DeregisterResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_resource( ResourceArn, params::AbstractDict{String}; @@ -728,16 +692,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function describe_lake_formation_identity_center_configuration(; +describe_lake_formation_identity_center_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/DescribeLakeFormationIdentityCenterConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/DescribeLakeFormationIdentityCenterConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_lake_formation_identity_center_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -760,15 +722,14 @@ Retrieves the current data access role for the given resource registered in Lake - `resource_arn`: The resource ARN. """ -function describe_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +describe_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/DescribeResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_resource( ResourceArn, params::AbstractDict{String}; @@ -795,17 +756,14 @@ Returns the details of a single transaction. - `transaction_id`: The transaction for which to return status. """ -function describe_transaction( - TransactionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +describe_transaction(TransactionId; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/DescribeTransaction", Dict{String,Any}("TransactionId" => TransactionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_transaction( TransactionId, params::AbstractDict{String}; @@ -834,11 +792,9 @@ automatically aborted unless explicitly extended. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"TransactionId"`: The transaction to extend. """ -function extend_transaction(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", "/ExtendTransaction"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +extend_transaction(; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", "/ExtendTransaction"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function extend_transaction( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -864,26 +820,24 @@ Returns a data cells filter. - `table_name`: A table in the database. """ -function get_data_cells_filter( +get_data_cells_filter( DatabaseName, Name, TableCatalogId, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lakeformation( + "POST", + "/GetDataCellsFilter", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "Name" => Name, + "TableCatalogId" => TableCatalogId, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/GetDataCellsFilter", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "Name" => Name, - "TableCatalogId" => TableCatalogId, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_cells_filter( DatabaseName, Name, @@ -919,14 +873,13 @@ end Returns the identity of the invoking principal. """ -function get_data_lake_principal(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +get_data_lake_principal(; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/GetDataLakePrincipal"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_lake_principal( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -951,14 +904,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function get_data_lake_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +get_data_lake_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/GetDataLakeSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_lake_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -991,17 +943,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return. - `"NextToken"`: A continuation token, if this is not the first call to retrieve this list. """ -function get_effective_permissions_for_path( +get_effective_permissions_for_path( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/GetEffectivePermissionsForPath", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/GetEffectivePermissionsForPath", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_effective_permissions_for_path( ResourceArn, params::AbstractDict{String}; @@ -1033,15 +983,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function get_lftag(TagKey; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", - "/GetLFTag", - Dict{String,Any}("TagKey" => TagKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_lftag(TagKey; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", + "/GetLFTag", + Dict{String,Any}("TagKey" => TagKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_lftag( TagKey, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1067,15 +1015,14 @@ StartQueryPlanning. - `query_id`: The ID of the plan query operation. """ -function get_query_state(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +get_query_state(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/GetQueryState", Dict{String,Any}("QueryId" => QueryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_query_state( QueryId, params::AbstractDict{String}; @@ -1100,15 +1047,14 @@ Retrieves statistics on the planning and execution of a query. - `query_id`: The ID of the plan query operation. """ -function get_query_statistics(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +get_query_statistics(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/GetQueryStatistics", Dict{String,Any}("QueryId" => QueryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_query_statistics( QueryId, params::AbstractDict{String}; @@ -1139,15 +1085,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys definitions, and other control information to manage your Lake Formation environment. - `"ShowAssignedLFTags"`: Indicates whether to show the assigned LF-tags. """ -function get_resource_lftags(Resource; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +get_resource_lftags(Resource; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/GetResourceLFTags", Dict{String,Any}("Resource" => Resource); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_lftags( Resource, params::AbstractDict{String}; @@ -1194,17 +1139,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this transaction has aborted, an error is returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with QueryAsOfTime. """ -function get_table_objects( +get_table_objects( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/GetTableObjects", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/GetTableObjects", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_table_objects( DatabaseName, TableName, @@ -1250,17 +1193,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SupportedPermissionTypes"`: A list of supported permission types for the partition. Valid values are COLUMN_PERMISSION and CELL_FILTER_PERMISSION. """ -function get_temporary_glue_partition_credentials( +get_temporary_glue_partition_credentials( Partition, TableArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/GetTemporaryGluePartitionCredentials", + Dict{String,Any}("Partition" => Partition, "TableArn" => TableArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/GetTemporaryGluePartitionCredentials", - Dict{String,Any}("Partition" => Partition, "TableArn" => TableArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_temporary_glue_partition_credentials( Partition, TableArn, @@ -1310,17 +1251,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SupportedPermissionTypes"`: A list of supported permission types for the table. Valid values are COLUMN_PERMISSION and CELL_FILTER_PERMISSION. """ -function get_temporary_glue_table_credentials( +get_temporary_glue_table_credentials( TableArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/GetTemporaryGlueTableCredentials", + Dict{String,Any}("TableArn" => TableArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/GetTemporaryGlueTableCredentials", - Dict{String,Any}("TableArn" => TableArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_temporary_glue_table_credentials( TableArn, params::AbstractDict{String}; @@ -1353,21 +1292,19 @@ and in parallel. GetWorkUnits. """ -function get_work_unit_results( +get_work_unit_results( QueryId, WorkUnitId, WorkUnitToken; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/GetWorkUnitResults", + Dict{String,Any}( + "QueryId" => QueryId, + "WorkUnitId" => WorkUnitId, + "WorkUnitToken" => WorkUnitToken, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/GetWorkUnitResults", - Dict{String,Any}( - "QueryId" => QueryId, - "WorkUnitId" => WorkUnitId, - "WorkUnitToken" => WorkUnitToken, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_work_unit_results( QueryId, WorkUnitId, @@ -1411,15 +1348,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys page size results in more calls to the Amazon Web Services service, retrieving fewer items in each call. This can help prevent the Amazon Web Services service calls from timing out. """ -function get_work_units(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", - "/GetWorkUnits", - Dict{String,Any}("QueryId" => QueryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_work_units(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", + "/GetWorkUnits", + Dict{String,Any}("QueryId" => QueryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_work_units( QueryId, params::AbstractDict{String}; @@ -1464,19 +1399,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys principal may pass to other users. These permissions may only be a subset of the permissions granted in the Privileges. """ -function grant_permissions( +grant_permissions( Permissions, Principal, Resource; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/GrantPermissions", + Dict{String,Any}( + "Permissions" => Permissions, "Principal" => Principal, "Resource" => Resource + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/GrantPermissions", - Dict{String,Any}( - "Permissions" => Permissions, "Principal" => Principal, "Resource" => Resource - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function grant_permissions( Permissions, Principal, @@ -1515,14 +1448,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A continuation token, if this is a continuation call. - `"Table"`: A table in the Glue Data Catalog. """ -function list_data_cells_filter(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +list_data_cells_filter(; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/ListDataCellsFilter"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_data_cells_filter( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1549,14 +1481,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Principal"`: - `"Resource"`: A structure for the resource. """ -function list_lake_formation_opt_ins(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +list_lake_formation_opt_ins(; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/ListLakeFormationOptIns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_lake_formation_opt_ins( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1587,11 +1518,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys FOREIGN, returns all share LF-tags that the requester can view. If no resource share type is passed, lists LF-tags in the given catalog ID that the requester has permission to view. """ -function list_lftags(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", "/ListLFTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_lftags(; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", "/ListLFTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_lftags( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1628,11 +1557,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation on the table, and the operation returns the table and the table w columns. - `"ResourceType"`: Specifies a resource type to filter the permissions returned. """ -function list_permissions(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", "/ListPermissions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_permissions(; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", "/ListPermissions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_permissions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1659,11 +1586,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A continuation token, if this is not the first call to retrieve these resources. """ -function list_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", "/ListResources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", "/ListResources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1694,17 +1619,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StorageOptimizerType"`: The specific type of storage optimizers to list. The supported value is compaction. """ -function list_table_storage_optimizers( +list_table_storage_optimizers( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/ListTableStorageOptimizers", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/ListTableStorageOptimizers", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_table_storage_optimizers( DatabaseName, TableName, @@ -1745,11 +1668,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StatusFilter"`: A filter indicating the status of transactions to return. Options are ALL | COMPLETED | COMMITTED | ABORTED | ACTIVE. The default is ALL. """ -function list_transactions(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", "/ListTransactions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_transactions(; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", "/ListTransactions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_transactions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1782,17 +1703,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function put_data_lake_settings( +put_data_lake_settings( DataLakeSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/PutDataLakeSettings", + Dict{String,Any}("DataLakeSettings" => DataLakeSettings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/PutDataLakeSettings", - Dict{String,Any}("DataLakeSettings" => DataLakeSettings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_data_lake_settings( DataLakeSettings, params::AbstractDict{String}; @@ -1842,15 +1761,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Using Service-Linked Roles for Lake Formation. - `"WithFederation"`: Whether or not the resource is a federated resource. """ -function register_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( +register_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/RegisterResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function register_resource( ResourceArn, params::AbstractDict{String}; @@ -1885,17 +1803,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. """ -function remove_lftags_from_resource( +remove_lftags_from_resource( LFTags, Resource; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/RemoveLFTagsFromResource", + Dict{String,Any}("LFTags" => LFTags, "Resource" => Resource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/RemoveLFTagsFromResource", - Dict{String,Any}("LFTags" => LFTags, "Resource" => Resource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_lftags_from_resource( LFTags, Resource, @@ -1936,19 +1852,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PermissionsWithGrantOption"`: Indicates a list of permissions for which to revoke the grant option allowing the principal to pass permissions to other principals. """ -function revoke_permissions( +revoke_permissions( Permissions, Principal, Resource; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/RevokePermissions", + Dict{String,Any}( + "Permissions" => Permissions, "Principal" => Principal, "Resource" => Resource + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/RevokePermissions", - Dict{String,Any}( - "Permissions" => Permissions, "Principal" => Principal, "Resource" => Resource - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_permissions( Permissions, Principal, @@ -1995,17 +1909,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return. - `"NextToken"`: A continuation token, if this is not the first call to retrieve this list. """ -function search_databases_by_lftags( - Expression; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +search_databases_by_lftags(Expression; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/SearchDatabasesByLFTags", Dict{String,Any}("Expression" => Expression); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_databases_by_lftags( Expression, params::AbstractDict{String}; @@ -2042,17 +1953,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return. - `"NextToken"`: A continuation token, if this is not the first call to retrieve this list. """ -function search_tables_by_lftags( - Expression; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +search_tables_by_lftags(Expression; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/SearchTablesByLFTags", Dict{String,Any}("Expression" => Expression); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_tables_by_lftags( Expression, params::AbstractDict{String}; @@ -2082,19 +1990,17 @@ WORKUNITS_AVAILABLE or FINISHED. - `query_string`: A PartiQL query statement used as an input to the planner service. """ -function start_query_planning( +start_query_planning( QueryPlanningContext, QueryString; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/StartQueryPlanning", + Dict{String,Any}( + "QueryPlanningContext" => QueryPlanningContext, "QueryString" => QueryString + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/StartQueryPlanning", - Dict{String,Any}( - "QueryPlanningContext" => QueryPlanningContext, "QueryString" => QueryString - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_query_planning( QueryPlanningContext, QueryString, @@ -2132,11 +2038,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys write. Writes made using a read-only transaction ID will be rejected. Read-only transactions do not need to be committed. """ -function start_transaction(; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", "/StartTransaction"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +start_transaction(; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", "/StartTransaction"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function start_transaction( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2160,17 +2064,14 @@ Updates a data cell filter. filter. """ -function update_data_cells_filter( - TableData; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +update_data_cells_filter(TableData; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/UpdateDataCellsFilter", Dict{String,Any}("TableData" => TableData); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_data_cells_filter( TableData, params::AbstractDict{String}; @@ -2210,16 +2111,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remain unchanged. If the ShareRecipients value is an empty list, then the existing share recipients list will be cleared, and the resource share will be deleted. """ -function update_lake_formation_identity_center_configuration(; +update_lake_formation_identity_center_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = lakeformation( + "POST", + "/UpdateLakeFormationIdentityCenterConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/UpdateLakeFormationIdentityCenterConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_lake_formation_identity_center_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2253,15 +2152,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagValuesToAdd"`: A list of LF-tag values to add from the LF-tag. - `"TagValuesToDelete"`: A list of LF-tag values to delete from the LF-tag. """ -function update_lftag(TagKey; aws_config::AbstractAWSConfig=current_aws_config()) - return lakeformation( - "POST", - "/UpdateLFTag", - Dict{String,Any}("TagKey" => TagKey); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_lftag(TagKey; aws_config::AbstractAWSConfig=current_aws_config()) = lakeformation( + "POST", + "/UpdateLFTag", + Dict{String,Any}("TagKey" => TagKey); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_lftag( TagKey, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2292,17 +2189,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys policies. - `"WithFederation"`: Whether or not the resource is a federated resource. """ -function update_resource( - ResourceArn, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lakeformation( +update_resource(ResourceArn, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lakeformation( "POST", "/UpdateResource", Dict{String,Any}("ResourceArn" => ResourceArn, "RoleArn" => RoleArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_resource( ResourceArn, RoleArn, @@ -2342,24 +2236,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys caller’s account ID. - `"TransactionId"`: The transaction at which to do the write. """ -function update_table_objects( +update_table_objects( DatabaseName, TableName, WriteOperations; aws_config::AbstractAWSConfig=current_aws_config(), +) = lakeformation( + "POST", + "/UpdateTableObjects", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "TableName" => TableName, + "WriteOperations" => WriteOperations, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/UpdateTableObjects", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "TableName" => TableName, - "WriteOperations" => WriteOperations, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_table_objects( DatabaseName, TableName, @@ -2401,24 +2293,22 @@ Updates the configuration of the storage optimizers for a table. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CatalogId"`: The Catalog ID of the table. """ -function update_table_storage_optimizer( +update_table_storage_optimizer( DatabaseName, StorageOptimizerConfig, TableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lakeformation( + "POST", + "/UpdateTableStorageOptimizer", + Dict{String,Any}( + "DatabaseName" => DatabaseName, + "StorageOptimizerConfig" => StorageOptimizerConfig, + "TableName" => TableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lakeformation( - "POST", - "/UpdateTableStorageOptimizer", - Dict{String,Any}( - "DatabaseName" => DatabaseName, - "StorageOptimizerConfig" => StorageOptimizerConfig, - "TableName" => TableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_table_storage_optimizer( DatabaseName, StorageOptimizerConfig, diff --git a/src/services/lambda.jl b/src/services/lambda.jl index 1f636da4e..5e845b3e2 100644 --- a/src/services/lambda.jl +++ b/src/services/lambda.jl @@ -33,24 +33,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RevisionId"`: Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it. """ -function add_layer_version_permission( +add_layer_version_permission( Action, LayerName, Principal, StatementId, VersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = lambda( + "POST", + "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)/policy", + Dict{String,Any}( + "Action" => Action, "Principal" => Principal, "StatementId" => StatementId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)/policy", - Dict{String,Any}( - "Action" => Action, "Principal" => Principal, "StatementId" => StatementId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_layer_version_permission( Action, LayerName, @@ -83,20 +81,21 @@ end add_permission(action, function_name, principal, statement_id) add_permission(action, function_name, principal, statement_id, params::Dict{String,<:Any}) -Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services +Grants an Amazon Web Servicesservice, Amazon Web Services account, or Amazon Web Services organization permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version LATEST. To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID -as the PrincipalOrgID. For Amazon Web Services, the principal is a domain-style identifier -that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web -Services, you can also specify the ARN of the associated resource as the SourceArn. If you -grant permission to a service principal without specifying the source, other accounts could -potentially configure resources in their account to invoke your Lambda function. This -operation adds a statement to a resource-based permissions policy for the function. For -more information about function policies, see Using resource-based policies for Lambda. +as the PrincipalOrgID. For Amazon Web Servicesservices, the principal is a domain-style +identifier that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For +Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the +SourceArn. If you grant permission to a service principal without specifying the source, +other accounts could potentially configure resources in their account to invoke your Lambda +function. This operation adds a statement to a resource-based permissions policy for the +function. For more information about function policies, see Using resource-based policies +for Lambda. # Arguments - `action`: The action that the principal can use on the function. For example, @@ -107,9 +106,9 @@ more information about function policies, see Using resource-based policies for 123456789012:function:my-function. You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. -- `principal`: The Amazon Web Service or Amazon Web Services account that invokes the - function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke - the function through that service. +- `principal`: The Amazon Web Servicesservice or Amazon Web Services account that invokes + the function. If you specify a service, use SourceArn or SourceAccount to limit who can + invoke the function through that service. - `statement_id`: A statement identifier that differentiates the statement from others in the same policy. @@ -128,31 +127,29 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RevisionId"`: Update the policy only if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it. -- `"SourceAccount"`: For Amazon Web Service, the ID of the Amazon Web Services account that - owns the resource. Use this together with SourceArn to ensure that the specified account - owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and - recreated by another account. -- `"SourceArn"`: For Amazon Web Services, the ARN of the Amazon Web Services resource that - invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic. Note that - Lambda configures the comparison using the StringLike operator. -""" -function add_permission( +- `"SourceAccount"`: For Amazon Web Servicesservice, the ID of the Amazon Web Services + account that owns the resource. Use this together with SourceArn to ensure that the + specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted + by its owner and recreated by another account. +- `"SourceArn"`: For Amazon Web Servicesservices, the ARN of the Amazon Web Services + resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic. + Note that Lambda configures the comparison using the StringLike operator. +""" +add_permission( Action, FunctionName, Principal, StatementId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lambda( + "POST", + "/2015-03-31/functions/$(FunctionName)/policy", + Dict{String,Any}( + "Action" => Action, "Principal" => Principal, "StatementId" => StatementId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2015-03-31/functions/$(FunctionName)/policy", - Dict{String,Any}( - "Action" => Action, "Principal" => Principal, "StatementId" => StatementId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_permission( Action, FunctionName, @@ -203,17 +200,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the alias. - `"RoutingConfig"`: The routing configuration of the alias. """ -function create_alias( +create_alias( FunctionName, FunctionVersion, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "POST", + "/2015-03-31/functions/$(FunctionName)/aliases", + Dict{String,Any}("FunctionVersion" => FunctionVersion, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2015-03-31/functions/$(FunctionName)/aliases", - Dict{String,Any}("FunctionVersion" => FunctionVersion, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_alias( FunctionName, FunctionVersion, @@ -253,17 +248,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys validation checks fail. - `"Description"`: Descriptive name for this code signing configuration. """ -function create_code_signing_config( +create_code_signing_config( AllowedPublishers; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "POST", + "/2020-04-22/code-signing-configs/", + Dict{String,Any}("AllowedPublishers" => AllowedPublishers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2020-04-22/code-signing-configs/", - Dict{String,Any}("AllowedPublishers" => AllowedPublishers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_code_signing_config( AllowedPublishers, params::AbstractDict{String}; @@ -343,17 +336,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Lambda should process an event. For more information, see Lambda event filtering. - `"FunctionResponseTypes"`: (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping. +- `"KMSKeyArn"`: The ARN of the Key Management Service (KMS) customer managed key that + Lambda uses to encrypt your function's filter criteria. By default, Lambda does not encrypt + your filter criteria object. Specify this property to encrypt data using your own customer + managed key. - `"MaximumBatchingWindowInSeconds"`: The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300 seconds in increments of - seconds. For streams and Amazon SQS event sources, the default batching window is 0 - seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event + seconds. For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window + is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching - window, you must create a new event source mapping. Related setting: For streams and Amazon - SQS event sources, when you set BatchSize to a value greater than 10, you must set - MaximumBatchingWindowInSeconds to at least 1. + window, you must create a new event source mapping. Related setting: For Kinesis, DynamoDB, + and Amazon SQS event sources, when you set BatchSize to a value greater than 10, you must + set MaximumBatchingWindowInSeconds to at least 1. - `"MaximumRecordAgeInSeconds"`: (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is infinite (-1). - `"MaximumRetryAttempts"`: (Kinesis and DynamoDB Streams only) Discard records after the @@ -379,17 +376,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window. """ -function create_event_source_mapping( +create_event_source_mapping( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "POST", + "/2015-03-31/event-source-mappings/", + Dict{String,Any}("FunctionName" => FunctionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2015-03-31/event-source-mappings/", - Dict{String,Any}("FunctionName" => FunctionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_source_mapping( FunctionName, params::AbstractDict{String}; @@ -413,41 +408,41 @@ end Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use -Amazon Web Services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request -tracing. If the deployment package is a container image, then you set the package type to -Image. For a container image, the code property must include the URI of a container image -in the Amazon ECR registry. You do not need to specify the handler and runtime properties. -If the deployment package is a .zip file archive, then you set the package type to Zip. For -a .zip file archive, the code property specifies the location of the .zip file. You must -also specify the handler and runtime properties. The code in the deployment package must be -compatible with the target instruction set architecture of the function (x86-64 or arm64). -If you do not specify the architecture, then the default value is x86-64. When you create a -function, Lambda provisions an instance of the function and its supporting resources. If -your function connects to a VPC, this process can take a minute or so. During this time, -you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields -in the response from GetFunctionConfiguration indicate when the function is ready to -invoke. For more information, see Lambda function states. A function has an unpublished -version, and can have published versions and aliases. The unpublished version changes when -you update your function's code and configuration. A published version is a snapshot of -your function code and configuration that can't be changed. An alias is a named resource -that maps to a version, and can be changed to map to a different version. Use the Publish -parameter to create version 1 of your function from its initial configuration. The other -parameters let you configure version-specific and function-level settings. You can modify -version-specific settings later with UpdateFunctionConfiguration. Function-level settings -apply to both the unpublished and published versions of the function, and include tags -(TagResource) and per-function concurrency limits (PutFunctionConcurrency). You can use -code signing if your deployment package is a .zip file archive. To enable code signing for -this function, specify the ARN of a code-signing configuration. When a user attempts to -deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a -valid signature from a trusted publisher. The code-signing configuration includes set of -signing profiles, which define the trusted publishers for this function. If another Amazon -Web Services account or an Amazon Web Service invokes your function, use AddPermission to -grant permission by creating a resource-based Identity and Access Management (IAM) policy. -You can grant permissions at the function level, on a version, or on an alias. To invoke -your function directly, use Invoke. To invoke your function in response to events in other -Amazon Web Services, create an event source mapping (CreateEventSourceMapping), or -configure a function trigger in the other service. For more information, see Invoking -Lambda functions. +Amazon Web Servicesservices, such as Amazon CloudWatch Logs for log streaming and X-Ray for +request tracing. If the deployment package is a container image, then you set the package +type to Image. For a container image, the code property must include the URI of a container +image in the Amazon ECR registry. You do not need to specify the handler and runtime +properties. If the deployment package is a .zip file archive, then you set the package type +to Zip. For a .zip file archive, the code property specifies the location of the .zip file. +You must also specify the handler and runtime properties. The code in the deployment +package must be compatible with the target instruction set architecture of the function +(x86-64 or arm64). If you do not specify the architecture, then the default value is +x86-64. When you create a function, Lambda provisions an instance of the function and its +supporting resources. If your function connects to a VPC, this process can take a minute or +so. During this time, you can't invoke or modify the function. The State, StateReason, and +StateReasonCode fields in the response from GetFunctionConfiguration indicate when the +function is ready to invoke. For more information, see Lambda function states. A function +has an unpublished version, and can have published versions and aliases. The unpublished +version changes when you update your function's code and configuration. A published version +is a snapshot of your function code and configuration that can't be changed. An alias is a +named resource that maps to a version, and can be changed to map to a different version. +Use the Publish parameter to create version 1 of your function from its initial +configuration. The other parameters let you configure version-specific and function-level +settings. You can modify version-specific settings later with UpdateFunctionConfiguration. +Function-level settings apply to both the unpublished and published versions of the +function, and include tags (TagResource) and per-function concurrency limits +(PutFunctionConcurrency). You can use code signing if your deployment package is a .zip +file archive. To enable code signing for this function, specify the ARN of a code-signing +configuration. When a user attempts to deploy a code package with UpdateFunctionCode, +Lambda checks that the code package has a valid signature from a trusted publisher. The +code-signing configuration includes set of signing profiles, which define the trusted +publishers for this function. If another Amazon Web Services account or an Amazon Web +Servicesservice invokes your function, use AddPermission to grant permission by creating a +resource-based Identity and Access Management (IAM) policy. You can grant permissions at +the function level, on a version, or on an alias. To invoke your function directly, use +Invoke. To invoke your function in response to events in other Amazon Web Servicesservices, +create an event source mapping (CreateEventSourceMapping), or configure a function trigger +in the other service. For more information, see Invoking Lambda functions. # Arguments - `code`: The code for the function. @@ -497,9 +492,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PackageType"`: The type of deployment package. Set to Image for container image and set to Zip for .zip file archive. - `"Publish"`: Set to true to publish the first version of the function during creation. -- `"Runtime"`: The identifier of the function's runtime. Runtime is required if the - deployment package is a .zip file archive. The following list includes deprecated runtimes. - For more information, see Runtime deprecation policy. +- `"Runtime"`: The identifier of the function's runtime. Runtime is required if the + deployment package is a .zip file archive. Specifying a runtime results in an error if + you're deploying a function using a container image. The following list includes deprecated + runtimes. Lambda blocks creating new functions and updating existing functions shortly + after each runtime is deprecated. For more information, see Runtime use after deprecation. + For a list of all currently supported runtimes, see Supported runtimes. - `"SnapStart"`: The function's SnapStart setting. - `"Tags"`: A list of tags to apply to the function. - `"Timeout"`: The amount of time (in seconds) that Lambda allows a function to run before @@ -512,17 +510,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC. """ -function create_function( +create_function( Code, FunctionName, Role; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "POST", + "/2015-03-31/functions", + Dict{String,Any}("Code" => Code, "FunctionName" => FunctionName, "Role" => Role); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2015-03-31/functions", - Dict{String,Any}("Code" => Code, "FunctionName" => FunctionName, "Role" => Role); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_function( Code, FunctionName, @@ -576,17 +572,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response payload size is 20 MB, however, you can request a quota increase. - `"Qualifier"`: The alias name. """ -function create_function_url_config( +create_function_url_config( AuthType, FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "POST", + "/2021-10-31/functions/$(FunctionName)/url", + Dict{String,Any}("AuthType" => AuthType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2021-10-31/functions/$(FunctionName)/url", - Dict{String,Any}("AuthType" => AuthType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_function_url_config( AuthType, FunctionName, @@ -619,16 +613,13 @@ Deletes a Lambda function alias. - `name`: The name of the alias. """ -function delete_alias( - FunctionName, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return lambda( +delete_alias(FunctionName, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + lambda( "DELETE", "/2015-03-31/functions/$(FunctionName)/aliases/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_alias( FunctionName, Name, @@ -656,16 +647,14 @@ if no function is using it. configuration. """ -function delete_code_signing_config( +delete_code_signing_config( CodeSigningConfigArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "DELETE", + "/2020-04-22/code-signing-configs/$(CodeSigningConfigArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2020-04-22/code-signing-configs/$(CodeSigningConfigArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_code_signing_config( CodeSigningConfigArn, params::AbstractDict{String}; @@ -692,16 +681,13 @@ state and might not be completely deleted for several seconds. - `uuid`: The identifier of the event source mapping. """ -function delete_event_source_mapping( - UUID; aws_config::AbstractAWSConfig=current_aws_config() -) - return lambda( +delete_event_source_mapping(UUID; aws_config::AbstractAWSConfig=current_aws_config()) = + lambda( "DELETE", "/2015-03-31/event-source-mappings/$(UUID)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_event_source_mapping( UUID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -721,9 +707,9 @@ end Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias. To delete Lambda event source mappings that -invoke a function, use DeleteEventSourceMapping. For Amazon Web Services and resources that -invoke your function directly, delete the trigger in the service where you originally -configured it. +invoke a function, use DeleteEventSourceMapping. For Amazon Web Servicesservices and +resources that invoke your function directly, delete the trigger in the service where you +originally configured it. # Arguments - `function_name`: The name or ARN of the Lambda function or version. Name formats @@ -738,14 +724,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Qualifier"`: Specify a version to delete. You can't delete a version that an alias references. """ -function delete_function(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "DELETE", - "/2015-03-31/functions/$(FunctionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_function(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "DELETE", + "/2015-03-31/functions/$(FunctionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_function( FunctionName, params::AbstractDict{String}; @@ -774,16 +758,14 @@ Removes the code signing configuration from the function. length. """ -function delete_function_code_signing_config( +delete_function_code_signing_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "DELETE", + "/2020-06-30/functions/$(FunctionName)/code-signing-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2020-06-30/functions/$(FunctionName)/code-signing-config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_function_code_signing_config( FunctionName, params::AbstractDict{String}; @@ -812,16 +794,14 @@ Removes a concurrent execution limit from a function. you specify only the function name, it is limited to 64 characters in length. """ -function delete_function_concurrency( +delete_function_concurrency( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "DELETE", + "/2017-10-31/functions/$(FunctionName)/concurrency"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2017-10-31/functions/$(FunctionName)/concurrency"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_function_concurrency( FunctionName, params::AbstractDict{String}; @@ -855,16 +835,14 @@ configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Qualifier"`: A version number or alias name. """ -function delete_function_event_invoke_config( +delete_function_event_invoke_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "DELETE", + "/2019-09-25/functions/$(FunctionName)/event-invoke-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2019-09-25/functions/$(FunctionName)/event-invoke-config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_function_event_invoke_config( FunctionName, params::AbstractDict{String}; @@ -897,16 +875,14 @@ Creating a new function URL results in a different URL address. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Qualifier"`: The alias name. """ -function delete_function_url_config( +delete_function_url_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "DELETE", + "/2021-10-31/functions/$(FunctionName)/url"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2021-10-31/functions/$(FunctionName)/url"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_function_url_config( FunctionName, params::AbstractDict{String}; @@ -934,16 +910,14 @@ functions refer to it. - `version_number`: The version number. """ -function delete_layer_version( +delete_layer_version( LayerName, VersionNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "DELETE", + "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_layer_version( LayerName, VersionNumber, @@ -974,17 +948,15 @@ Deletes the provisioned concurrency configuration for a function. - `qualifier`: The version number or alias name. """ -function delete_provisioned_concurrency_config( +delete_provisioned_concurrency_config( FunctionName, Qualifier; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "DELETE", + "/2019-09-30/functions/$(FunctionName)/provisioned-concurrency", + Dict{String,Any}("Qualifier" => Qualifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2019-09-30/functions/$(FunctionName)/provisioned-concurrency", - Dict{String,Any}("Qualifier" => Qualifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_provisioned_concurrency_config( FunctionName, Qualifier, @@ -1009,14 +981,12 @@ end Retrieves details about your account's limits and usage in an Amazon Web Services Region. """ -function get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2016-08-19/account-settings/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2016-08-19/account-settings/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1044,14 +1014,12 @@ Returns details about a Lambda function alias. - `name`: The name of the alias. """ -function get_alias(FunctionName, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2015-03-31/functions/$(FunctionName)/aliases/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_alias(FunctionName, Name; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2015-03-31/functions/$(FunctionName)/aliases/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_alias( FunctionName, Name, @@ -1078,16 +1046,14 @@ Returns information about the specified code signing configuration. configuration. """ -function get_code_signing_config( +get_code_signing_config( CodeSigningConfigArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2020-04-22/code-signing-configs/$(CodeSigningConfigArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2020-04-22/code-signing-configs/$(CodeSigningConfigArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_code_signing_config( CodeSigningConfigArn, params::AbstractDict{String}; @@ -1113,14 +1079,12 @@ the output of ListEventSourceMappings. - `uuid`: The identifier of the event source mapping. """ -function get_event_source_mapping(UUID; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2015-03-31/event-source-mappings/$(UUID)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_event_source_mapping(UUID; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2015-03-31/event-source-mappings/$(UUID)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_event_source_mapping( UUID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1154,14 +1118,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Qualifier"`: Specify a version or alias to get details about a published version of the function. """ -function get_function(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2015-03-31/functions/$(FunctionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_function(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2015-03-31/functions/$(FunctionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_function( FunctionName, params::AbstractDict{String}; @@ -1190,16 +1152,14 @@ Returns the code signing configuration for the specified function. length. """ -function get_function_code_signing_config( +get_function_code_signing_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2020-06-30/functions/$(FunctionName)/code-signing-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2020-06-30/functions/$(FunctionName)/code-signing-config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_function_code_signing_config( FunctionName, params::AbstractDict{String}; @@ -1229,16 +1189,13 @@ concurrency limit for a function, use PutFunctionConcurrency. you specify only the function name, it is limited to 64 characters in length. """ -function get_function_concurrency( - FunctionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lambda( +get_function_concurrency(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = + lambda( "GET", "/2019-09-30/functions/$(FunctionName)/concurrency"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_function_concurrency( FunctionName, params::AbstractDict{String}; @@ -1275,16 +1232,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Qualifier"`: Specify a version or alias to get details about a published version of the function. """ -function get_function_configuration( +get_function_configuration( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2015-03-31/functions/$(FunctionName)/configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2015-03-31/functions/$(FunctionName)/configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_function_configuration( FunctionName, params::AbstractDict{String}; @@ -1318,24 +1273,54 @@ To configure options for asynchronous invocation, use PutFunctionEventInvokeConf Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Qualifier"`: A version number or alias name. """ -function get_function_event_invoke_config( +get_function_event_invoke_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2019-09-25/functions/$(FunctionName)/event-invoke-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_function_event_invoke_config( + FunctionName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return lambda( "GET", - "/2019-09-25/functions/$(FunctionName)/event-invoke-config"; + "/2019-09-25/functions/$(FunctionName)/event-invoke-config", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_function_event_invoke_config( + +""" + get_function_recursion_config(function_name) + get_function_recursion_config(function_name, params::Dict{String,<:Any}) + +Returns your function's recursive loop detection configuration. + +# Arguments +- `function_name`: + +""" +get_function_recursion_config( + FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2024-08-31/functions/$(FunctionName)/recursion-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_function_recursion_config( FunctionName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return lambda( "GET", - "/2019-09-25/functions/$(FunctionName)/event-invoke-config", + "/2024-08-31/functions/$(FunctionName)/recursion-config", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1359,16 +1344,13 @@ Returns details about a Lambda function URL. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Qualifier"`: The alias name. """ -function get_function_url_config( - FunctionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lambda( +get_function_url_config(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = + lambda( "GET", "/2021-10-31/functions/$(FunctionName)/url"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_function_url_config( FunctionName, params::AbstractDict{String}; @@ -1395,16 +1377,14 @@ archive that's valid for 10 minutes. - `version_number`: The version number. """ -function get_layer_version( +get_layer_version( LayerName, VersionNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_layer_version( LayerName, VersionNumber, @@ -1431,15 +1411,13 @@ archive that's valid for 10 minutes. - `arn`: The ARN of the layer version. """ -function get_layer_version_by_arn(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2018-10-31/layers?find=LayerVersion", - Dict{String,Any}("Arn" => Arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_layer_version_by_arn(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2018-10-31/layers?find=LayerVersion", + Dict{String,Any}("Arn" => Arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_layer_version_by_arn( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1464,16 +1442,14 @@ AddLayerVersionPermission. - `version_number`: The version number. """ -function get_layer_version_policy( +get_layer_version_policy( LayerName, VersionNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_layer_version_policy( LayerName, VersionNumber, @@ -1507,14 +1483,12 @@ Returns the resource-based IAM policy for a function, version, or alias. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Qualifier"`: Specify a version or alias to get the policy for that resource. """ -function get_policy(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2015-03-31/functions/$(FunctionName)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_policy(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2015-03-31/functions/$(FunctionName)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_policy( FunctionName, params::AbstractDict{String}; @@ -1544,17 +1518,15 @@ Retrieves the provisioned concurrency configuration for a function's alias or ve - `qualifier`: The version number or alias name. """ -function get_provisioned_concurrency_config( +get_provisioned_concurrency_config( FunctionName, Qualifier; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2019-09-30/functions/$(FunctionName)/provisioned-concurrency", + Dict{String,Any}("Qualifier" => Qualifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2019-09-30/functions/$(FunctionName)/provisioned-concurrency", - Dict{String,Any}("Qualifier" => Qualifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_provisioned_concurrency_config( FunctionName, Qualifier, @@ -1594,16 +1566,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version number. If no value is specified, the configuration for the LATEST version is returned. """ -function get_runtime_management_config( +get_runtime_management_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2021-07-20/functions/$(FunctionName)/runtime-management-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2021-07-20/functions/$(FunctionName)/runtime-management-config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_runtime_management_config( FunctionName, params::AbstractDict{String}; @@ -1677,14 +1647,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Log-Type"`: Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only. """ -function invoke(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "POST", - "/2015-03-31/functions/$(FunctionName)/invocations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +invoke(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "POST", + "/2015-03-31/functions/$(FunctionName)/invocations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function invoke( FunctionName, params::AbstractDict{String}; @@ -1717,17 +1685,14 @@ on. - `invoke_args`: The JSON that you want to provide to your Lambda function as input. """ -function invoke_async( - FunctionName, InvokeArgs; aws_config::AbstractAWSConfig=current_aws_config() -) - return lambda( +invoke_async(FunctionName, InvokeArgs; aws_config::AbstractAWSConfig=current_aws_config()) = + lambda( "POST", "/2014-11-13/functions/$(FunctionName)/invoke-async/", Dict{String,Any}("InvokeArgs" => InvokeArgs); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invoke_async( FunctionName, InvokeArgs, @@ -1777,16 +1742,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amz-Log-Type"`: Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only. """ -function invoke_with_response_stream( +invoke_with_response_stream( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "POST", + "/2021-11-15/functions/$(FunctionName)/response-streaming-invocations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2021-11-15/functions/$(FunctionName)/response-streaming-invocations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function invoke_with_response_stream( FunctionName, params::AbstractDict{String}; @@ -1822,14 +1785,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the next page of results. - `"MaxItems"`: Limit the number of aliases returned. """ -function list_aliases(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2015-03-31/functions/$(FunctionName)/aliases"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_aliases(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2015-03-31/functions/$(FunctionName)/aliases"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_aliases( FunctionName, params::AbstractDict{String}; @@ -1858,14 +1819,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the next page of results. - `"MaxItems"`: Maximum number of items to return. """ -function list_code_signing_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2020-04-22/code-signing-configs/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_code_signing_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2020-04-22/code-signing-configs/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_code_signing_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1904,14 +1863,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher. """ -function list_event_source_mappings(; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2015-03-31/event-source-mappings/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_event_source_mappings(; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2015-03-31/event-source-mappings/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_event_source_mappings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1944,16 +1901,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the next page of results. - `"MaxItems"`: The maximum number of configurations to return. """ -function list_function_event_invoke_configs( +list_function_event_invoke_configs( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2019-09-25/functions/$(FunctionName)/event-invoke-config/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2019-09-25/functions/$(FunctionName)/event-invoke-config/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_function_event_invoke_configs( FunctionName, params::AbstractDict{String}; @@ -1989,16 +1944,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListFunctionUrlConfigs returns a maximum of 50 items in each response, even if you set the number higher. """ -function list_function_url_configs( +list_function_url_configs( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2021-10-31/functions/$(FunctionName)/urls"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2021-10-31/functions/$(FunctionName)/urls"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_function_url_configs( FunctionName, params::AbstractDict{String}; @@ -2039,14 +1992,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListFunctions returns a maximum of 50 items in each response, even if you set the number higher. """ -function list_functions(; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2015-03-31/functions/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_functions(; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2015-03-31/functions/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_functions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2077,16 +2028,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the next page of results. - `"MaxItems"`: Maximum number of items to return. """ -function list_functions_by_code_signing_config( +list_functions_by_code_signing_config( CodeSigningConfigArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2020-04-22/code-signing-configs/$(CodeSigningConfigArn)/functions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2020-04-22/code-signing-configs/$(CodeSigningConfigArn)/functions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_functions_by_code_signing_config( CodeSigningConfigArn, params::AbstractDict{String}; @@ -2116,19 +2065,18 @@ are compatible with that architecture. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CompatibleArchitecture"`: The compatible instruction set architecture. -- `"CompatibleRuntime"`: A runtime identifier. For example, java21. The following list - includes deprecated runtimes. For more information, see Runtime deprecation policy. +- `"CompatibleRuntime"`: A runtime identifier. The following list includes deprecated + runtimes. For more information, see Runtime use after deprecation. For a list of all + currently supported runtimes, see Supported runtimes. - `"Marker"`: A pagination token returned by a previous call. - `"MaxItems"`: The maximum number of versions to return. """ -function list_layer_versions(LayerName; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2018-10-31/layers/$(LayerName)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_layer_versions(LayerName; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2018-10-31/layers/$(LayerName)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_layer_versions( LayerName, params::AbstractDict{String}; @@ -2155,16 +2103,15 @@ that instruction set architecture. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CompatibleArchitecture"`: The compatible instruction set architecture. -- `"CompatibleRuntime"`: A runtime identifier. For example, java21. The following list - includes deprecated runtimes. For more information, see Runtime deprecation policy. +- `"CompatibleRuntime"`: A runtime identifier. The following list includes deprecated + runtimes. For more information, see Runtime use after deprecation. For a list of all + currently supported runtimes, see Supported runtimes. - `"Marker"`: A pagination token returned by a previous call. - `"MaxItems"`: The maximum number of layers to return. """ -function list_layers(; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", "/2018-10-31/layers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_layers(; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", "/2018-10-31/layers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_layers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2196,16 +2143,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the next page of results. - `"MaxItems"`: Specify a number to limit the number of configurations returned. """ -function list_provisioned_concurrency_configs( +list_provisioned_concurrency_configs( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2019-09-30/functions/$(FunctionName)/provisioned-concurrency?List=ALL"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2019-09-30/functions/$(FunctionName)/provisioned-concurrency?List=ALL"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_provisioned_concurrency_configs( FunctionName, params::AbstractDict{String}; @@ -2231,14 +2176,12 @@ Returns a function's tags. You can also view tags with GetFunction. tags to aliases or versions. """ -function list_tags(ARN; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "GET", - "/2017-03-31/tags/$(ARN)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(ARN; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "GET", + "/2017-03-31/tags/$(ARN)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( ARN, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2272,16 +2215,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: The maximum number of versions to return. Note that ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher. """ -function list_versions_by_function( +list_versions_by_function( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "GET", + "/2015-03-31/functions/$(FunctionName)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "GET", - "/2015-03-31/functions/$(FunctionName)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_versions_by_function( FunctionName, params::AbstractDict{String}; @@ -2319,17 +2260,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys license identifier. For example, MIT. The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT. The full text of the license. """ -function publish_layer_version( +publish_layer_version( Content, LayerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "POST", + "/2018-10-31/layers/$(LayerName)/versions", + Dict{String,Any}("Content" => Content); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2018-10-31/layers/$(LayerName)/versions", - Dict{String,Any}("Content" => Content); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function publish_layer_version( Content, LayerName, @@ -2375,14 +2314,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it. """ -function publish_version(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "POST", - "/2015-03-31/functions/$(FunctionName)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +publish_version(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "POST", + "/2015-03-31/functions/$(FunctionName)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function publish_version( FunctionName, params::AbstractDict{String}; @@ -2415,17 +2352,15 @@ function. length. """ -function put_function_code_signing_config( +put_function_code_signing_config( CodeSigningConfigArn, FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "PUT", + "/2020-06-30/functions/$(FunctionName)/code-signing-config", + Dict{String,Any}("CodeSigningConfigArn" => CodeSigningConfigArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "PUT", - "/2020-06-30/functions/$(FunctionName)/code-signing-config", - Dict{String,Any}("CodeSigningConfigArn" => CodeSigningConfigArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_function_code_signing_config( CodeSigningConfigArn, FunctionName, @@ -2471,19 +2406,17 @@ per-function limit. For more information, see Lambda function scaling. the function. """ -function put_function_concurrency( +put_function_concurrency( FunctionName, ReservedConcurrentExecutions; aws_config::AbstractAWSConfig=current_aws_config(), +) = lambda( + "PUT", + "/2017-10-31/functions/$(FunctionName)/concurrency", + Dict{String,Any}("ReservedConcurrentExecutions" => ReservedConcurrentExecutions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "PUT", - "/2017-10-31/functions/$(FunctionName)/concurrency", - Dict{String,Any}("ReservedConcurrentExecutions" => ReservedConcurrentExecutions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_function_concurrency( FunctionName, ReservedConcurrentExecutions, @@ -2544,25 +2477,84 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys an error. - `"Qualifier"`: A version number or alias name. """ -function put_function_event_invoke_config( +put_function_event_invoke_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "PUT", + "/2019-09-25/functions/$(FunctionName)/event-invoke-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function put_function_event_invoke_config( + FunctionName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return lambda( "PUT", - "/2019-09-25/functions/$(FunctionName)/event-invoke-config"; + "/2019-09-25/functions/$(FunctionName)/event-invoke-config", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function put_function_event_invoke_config( + +""" + put_function_recursion_config(function_name, recursive_loop) + put_function_recursion_config(function_name, recursive_loop, params::Dict{String,<:Any}) + +Sets your function's recursive loop detection configuration. When you configure a Lambda +function to output to the same service or resource that invokes the function, it's possible +to create an infinite recursive loop. For example, a Lambda function might write a message +to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. +This invocation causes the function to write another message to the queue, which in turn +invokes the function again. Lambda can detect certain types of recursive loops shortly +after they occur. When Lambda detects a recursive loop and your function's recursive loop +detection configuration is set to Terminate, it stops your function being invoked and +notifies you. + +# Arguments +- `function_name`: The name or ARN of the Lambda function. Name formats Function name + – my-function. Function ARN – + arn:aws:lambda:us-west-2:123456789012:function:my-function. Partial ARN – + 123456789012:function:my-function. The length constraint applies only to the full ARN. If + you specify only the function name, it is limited to 64 characters in length. +- `recursive_loop`: If you set your function's recursive loop detection configuration to + Allow, Lambda doesn't take any action when it detects your function being invoked as part + of a recursive loop. We recommend that you only use this setting if your design + intentionally uses a Lambda function to write data back to the same Amazon Web Services + resource that invokes it. If you set your function's recursive loop detection configuration + to Terminate, Lambda stops your function being invoked and notifies you when it detects + your function being invoked as part of a recursive loop. By default, Lambda sets your + function's configuration to Terminate. If your design intentionally uses a Lambda function + to write data back to the same Amazon Web Services resource that invokes the function, then + use caution and implement suitable guard rails to prevent unexpected charges being billed + to your Amazon Web Services account. To learn more about best practices for using recursive + invocation patterns, see Recursive patterns that cause run-away Lambda functions in + Serverless Land. + +""" +put_function_recursion_config( + FunctionName, RecursiveLoop; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "PUT", + "/2024-08-31/functions/$(FunctionName)/recursion-config", + Dict{String,Any}("RecursiveLoop" => RecursiveLoop); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function put_function_recursion_config( FunctionName, + RecursiveLoop, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return lambda( "PUT", - "/2019-09-25/functions/$(FunctionName)/event-invoke-config", - params; + "/2024-08-31/functions/$(FunctionName)/recursion-config", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("RecursiveLoop" => RecursiveLoop), params) + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -2585,23 +2577,21 @@ Adds a provisioned concurrency configuration to a function's alias or version. - `qualifier`: The version number or alias name. """ -function put_provisioned_concurrency_config( +put_provisioned_concurrency_config( FunctionName, ProvisionedConcurrentExecutions, Qualifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = lambda( + "PUT", + "/2019-09-30/functions/$(FunctionName)/provisioned-concurrency", + Dict{String,Any}( + "ProvisionedConcurrentExecutions" => ProvisionedConcurrentExecutions, + "Qualifier" => Qualifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "PUT", - "/2019-09-30/functions/$(FunctionName)/provisioned-concurrency", - Dict{String,Any}( - "ProvisionedConcurrentExecutions" => ProvisionedConcurrentExecutions, - "Qualifier" => Qualifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_provisioned_concurrency_config( FunctionName, ProvisionedConcurrentExecutions, @@ -2662,17 +2652,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RuntimeVersionArn"`: The ARN of the runtime version you want the function to use. This is only required if you're using the Manual runtime update mode. """ -function put_runtime_management_config( +put_runtime_management_config( FunctionName, UpdateRuntimeOn; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "PUT", + "/2021-07-20/functions/$(FunctionName)/runtime-management-config", + Dict{String,Any}("UpdateRuntimeOn" => UpdateRuntimeOn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "PUT", - "/2021-07-20/functions/$(FunctionName)/runtime-management-config", - Dict{String,Any}("UpdateRuntimeOn" => UpdateRuntimeOn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_runtime_management_config( FunctionName, UpdateRuntimeOn, @@ -2709,19 +2697,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RevisionId"`: Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it. """ -function remove_layer_version_permission( +remove_layer_version_permission( LayerName, StatementId, VersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = lambda( + "DELETE", + "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)/policy/$(StatementId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2018-10-31/layers/$(LayerName)/versions/$(VersionNumber)/policy/$(StatementId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_layer_version_permission( LayerName, StatementId, @@ -2742,8 +2728,8 @@ end remove_permission(function_name, statement_id) remove_permission(function_name, statement_id, params::Dict{String,<:Any}) -Revokes function-use permission from an Amazon Web Service or another Amazon Web Services -account. You can get the ID of the statement from the output of GetPolicy. +Revokes function-use permission from an Amazon Web Servicesservice or another Amazon Web +Services account. You can get the ID of the statement from the output of GetPolicy. # Arguments - `function_name`: The name or ARN of the Lambda function, version, or alias. Name formats @@ -2762,16 +2748,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified. Use this option to avoid modifying a policy that has changed since you last read it. """ -function remove_permission( +remove_permission( FunctionName, StatementId; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "DELETE", + "/2015-03-31/functions/$(FunctionName)/policy/$(StatementId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "DELETE", - "/2015-03-31/functions/$(FunctionName)/policy/$(StatementId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_permission( FunctionName, StatementId, @@ -2798,15 +2782,13 @@ Adds tags to a function. - `tags`: A list of tags to apply to the function. """ -function tag_resource(ARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "POST", - "/2017-03-31/tags/$(ARN)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "POST", + "/2017-03-31/tags/$(ARN)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ARN, Tags, @@ -2833,15 +2815,13 @@ Removes tags from a function. - `tag_keys`: A list of tag keys to remove from the function. """ -function untag_resource(ARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return lambda( - "DELETE", - "/2017-03-31/tags/$(ARN)", - Dict{String,Any}("tagKeys" => tagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_resource(ARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = lambda( + "DELETE", + "/2017-03-31/tags/$(ARN)", + Dict{String,Any}("tagKeys" => tagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_resource( ARN, tagKeys, @@ -2879,16 +2859,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use this option to avoid modifying an alias that has changed since you last read it. - `"RoutingConfig"`: The routing configuration of the alias. """ -function update_alias( - FunctionName, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return lambda( +update_alias(FunctionName, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + lambda( "PUT", "/2015-03-31/functions/$(FunctionName)/aliases/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_alias( FunctionName, Name, @@ -2921,16 +2898,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CodeSigningPolicies"`: The code signing policy. - `"Description"`: Descriptive name for this code signing configuration. """ -function update_code_signing_config( +update_code_signing_config( CodeSigningConfigArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "PUT", + "/2020-04-22/code-signing-configs/$(CodeSigningConfigArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "PUT", - "/2020-04-22/code-signing-configs/$(CodeSigningConfigArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_code_signing_config( CodeSigningConfigArn, params::AbstractDict{String}; @@ -2999,17 +2974,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you specify only the function name, it's limited to 64 characters in length. - `"FunctionResponseTypes"`: (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type enums applied to the event source mapping. +- `"KMSKeyArn"`: The ARN of the Key Management Service (KMS) customer managed key that + Lambda uses to encrypt your function's filter criteria. By default, Lambda does not encrypt + your filter criteria object. Specify this property to encrypt data using your own customer + managed key. - `"MaximumBatchingWindowInSeconds"`: The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300 seconds in increments of - seconds. For streams and Amazon SQS event sources, the default batching window is 0 - seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event + seconds. For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window + is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching - window, you must create a new event source mapping. Related setting: For streams and Amazon - SQS event sources, when you set BatchSize to a value greater than 10, you must set - MaximumBatchingWindowInSeconds to at least 1. + window, you must create a new event source mapping. Related setting: For Kinesis, DynamoDB, + and Amazon SQS event sources, when you set BatchSize to a value greater than 10, you must + set MaximumBatchingWindowInSeconds to at least 1. - `"MaximumRecordAgeInSeconds"`: (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is infinite (-1). - `"MaximumRetryAttempts"`: (Kinesis and DynamoDB Streams only) Discard records after the @@ -3025,16 +3004,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window. """ -function update_event_source_mapping( - UUID; aws_config::AbstractAWSConfig=current_aws_config() -) - return lambda( +update_event_source_mapping(UUID; aws_config::AbstractAWSConfig=current_aws_config()) = + lambda( "PUT", "/2015-03-31/event-source-mappings/$(UUID)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_event_source_mapping( UUID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3096,16 +3072,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK and CLI clients handle the encoding for you. Use only with a function defined with a .zip file archive deployment package. """ -function update_function_code( - FunctionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lambda( +update_function_code(FunctionName; aws_config::AbstractAWSConfig=current_aws_config()) = + lambda( "PUT", "/2015-03-31/functions/$(FunctionName)/code"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_function_code( FunctionName, params::AbstractDict{String}; @@ -3134,8 +3107,8 @@ processing events with the new configuration. For more information, see Lambda f states. These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version. To configure function concurrency, use PutFunctionConcurrency. To -grant invoke permissions to an Amazon Web Services account or Amazon Web Service, use -AddPermission. +grant invoke permissions to an Amazon Web Services account or Amazon Web Servicesservice, +use AddPermission. # Arguments - `function_name`: The name or ARN of the Lambda function. Name formats Function name @@ -3179,9 +3152,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified. Use this option to avoid modifying a function that has changed since you last read it. - `"Role"`: The Amazon Resource Name (ARN) of the function's execution role. -- `"Runtime"`: The identifier of the function's runtime. Runtime is required if the - deployment package is a .zip file archive. The following list includes deprecated runtimes. - For more information, see Runtime deprecation policy. +- `"Runtime"`: The identifier of the function's runtime. Runtime is required if the + deployment package is a .zip file archive. Specifying a runtime results in an error if + you're deploying a function using a container image. The following list includes deprecated + runtimes. Lambda blocks creating new functions and updating existing functions shortly + after each runtime is deprecated. For more information, see Runtime use after deprecation. + For a list of all currently supported runtimes, see Supported runtimes. - `"SnapStart"`: The function's SnapStart setting. - `"Timeout"`: The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more @@ -3193,16 +3169,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC. """ -function update_function_configuration( +update_function_configuration( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "PUT", + "/2015-03-31/functions/$(FunctionName)/configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "PUT", - "/2015-03-31/functions/$(FunctionName)/configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_function_configuration( FunctionName, params::AbstractDict{String}; @@ -3244,16 +3218,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys an error. - `"Qualifier"`: A version number or alias name. """ -function update_function_event_invoke_config( +update_function_event_invoke_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "POST", + "/2019-09-25/functions/$(FunctionName)/event-invoke-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "POST", - "/2019-09-25/functions/$(FunctionName)/event-invoke-config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_function_event_invoke_config( FunctionName, params::AbstractDict{String}; @@ -3296,16 +3268,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response payload size is 20 MB, however, you can request a quota increase. - `"Qualifier"`: The alias name. """ -function update_function_url_config( +update_function_url_config( FunctionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lambda( + "PUT", + "/2021-10-31/functions/$(FunctionName)/url"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lambda( - "PUT", - "/2021-10-31/functions/$(FunctionName)/url"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_function_url_config( FunctionName, params::AbstractDict{String}; diff --git a/src/services/launch_wizard.jl b/src/services/launch_wizard.jl index e8e67975f..43abcac79 100644 --- a/src/services/launch_wizard.jl +++ b/src/services/launch_wizard.jl @@ -31,26 +31,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"tags"`: The tags to add to the deployment. """ -function create_deployment( +create_deployment( deploymentPatternName, name, specifications, workloadName; aws_config::AbstractAWSConfig=current_aws_config(), +) = launch_wizard( + "POST", + "/createDeployment", + Dict{String,Any}( + "deploymentPatternName" => deploymentPatternName, + "name" => name, + "specifications" => specifications, + "workloadName" => workloadName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return launch_wizard( - "POST", - "/createDeployment", - Dict{String,Any}( - "deploymentPatternName" => deploymentPatternName, - "name" => name, - "specifications" => specifications, - "workloadName" => workloadName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deployment( deploymentPatternName, name, @@ -89,15 +87,14 @@ Deletes a deployment. - `deployment_id`: The ID of the deployment. """ -function delete_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) - return launch_wizard( +delete_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + launch_wizard( "POST", "/deleteDeployment", Dict{String,Any}("deploymentId" => deploymentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_deployment( deploymentId, params::AbstractDict{String}; @@ -124,15 +121,14 @@ Returns information about the deployment. - `deployment_id`: The ID of the deployment. """ -function get_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) - return launch_wizard( +get_deployment(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + launch_wizard( "POST", "/getDeployment", Dict{String,Any}("deploymentId" => deploymentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_deployment( deploymentId, params::AbstractDict{String}; @@ -159,15 +155,14 @@ Returns information about a workload. - `workload_name`: The name of the workload. """ -function get_workload(workloadName; aws_config::AbstractAWSConfig=current_aws_config()) - return launch_wizard( +get_workload(workloadName; aws_config::AbstractAWSConfig=current_aws_config()) = + launch_wizard( "POST", "/getWorkload", Dict{String,Any}("workloadName" => workloadName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_workload( workloadName, params::AbstractDict{String}; @@ -198,19 +193,17 @@ pattern names of a given workload. - `workload_name`: The name of the workload. """ -function get_workload_deployment_pattern( +get_workload_deployment_pattern( deploymentPatternName, workloadName; aws_config::AbstractAWSConfig=current_aws_config() +) = launch_wizard( + "POST", + "/getWorkloadDeploymentPattern", + Dict{String,Any}( + "deploymentPatternName" => deploymentPatternName, "workloadName" => workloadName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return launch_wizard( - "POST", - "/getWorkloadDeploymentPattern", - Dict{String,Any}( - "deploymentPatternName" => deploymentPatternName, "workloadName" => workloadName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workload_deployment_pattern( deploymentPatternName, workloadName, @@ -251,17 +244,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function list_deployment_events( - deploymentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return launch_wizard( +list_deployment_events(deploymentId; aws_config::AbstractAWSConfig=current_aws_config()) = + launch_wizard( "POST", "/listDeploymentEvents", Dict{String,Any}("deploymentId" => deploymentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_deployment_events( deploymentId, params::AbstractDict{String}; @@ -295,11 +285,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function list_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) - return launch_wizard( - "POST", "/listDeployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) = launch_wizard( + "POST", "/listDeployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_deployments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -322,16 +310,13 @@ Lists the tags associated with a specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return launch_wizard( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + launch_wizard( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -363,17 +348,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function list_workload_deployment_patterns( +list_workload_deployment_patterns( workloadName; aws_config::AbstractAWSConfig=current_aws_config() +) = launch_wizard( + "POST", + "/listWorkloadDeploymentPatterns", + Dict{String,Any}("workloadName" => workloadName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return launch_wizard( - "POST", - "/listWorkloadDeploymentPatterns", - Dict{String,Any}("workloadName" => workloadName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workload_deployment_patterns( workloadName, params::AbstractDict{String}; @@ -404,11 +387,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ -function list_workloads(; aws_config::AbstractAWSConfig=current_aws_config()) - return launch_wizard( - "POST", "/listWorkloads"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_workloads(; aws_config::AbstractAWSConfig=current_aws_config()) = launch_wizard( + "POST", "/listWorkloads"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_workloads( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -432,15 +413,14 @@ Adds the specified tags to the given resource. - `tags`: One or more tags to attach to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return launch_wizard( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + launch_wizard( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -467,17 +447,14 @@ Removes the specified tags from the given resource. - `tag_keys`: Keys identifying the tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return launch_wizard( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + launch_wizard( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/lex_model_building_service.jl b/src/services/lex_model_building_service.jl index 7da4a6110..2da425a57 100644 --- a/src/services/lex_model_building_service.jl +++ b/src/services/lex_model_building_service.jl @@ -27,14 +27,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys PreconditionFailedException exception is returned and Amazon Lex doesn't publish a new version. If you don't specify a checksum, Amazon Lex publishes the LATEST version. """ -function create_bot_version(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +create_bot_version(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "POST", "/bots/$(name)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_bot_version( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -72,14 +71,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys publish a new version. If you don't specify a checksum, Amazon Lex publishes the LATEST version. """ -function create_intent_version(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +create_intent_version(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "POST", "/intents/$(name)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_intent_version( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -116,14 +114,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Lex returns a PreconditionFailedException exception and doesn't publish the new version. If you don't specify a checksum, Amazon Lex publishes the LATEST version. """ -function create_slot_type_version(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +create_slot_type_version(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "POST", "/slottypes/$(name)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_slot_type_version( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -156,11 +153,10 @@ lex:DeleteBot action. - `name`: The name of the bot. The name is case sensitive. """ -function delete_bot(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +delete_bot(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "DELETE", "/bots/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_bot( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -189,14 +185,13 @@ again, delete the referring association until the DeleteBotAlias operation is su - `name`: The name of the alias to delete. The name is case sensitive. """ -function delete_bot_alias(botName, name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +delete_bot_alias(botName, name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "DELETE", "/bots/$(botName)/aliases/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_bot_alias( botName, name, @@ -226,16 +221,14 @@ requires permission for the lex:DeleteBotChannelAssociation action. - `name`: The name of the association. The name is case sensitive. """ -function delete_bot_channel_association( +delete_bot_channel_association( aliasName, botName, name; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_model_building_service( + "DELETE", + "/bots/$(botName)/aliases/$(aliasName)/channels/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "DELETE", - "/bots/$(botName)/aliases/$(aliasName)/channels/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bot_channel_association( aliasName, botName, @@ -265,16 +258,13 @@ operation. This operation requires permissions for the lex:DeleteBotVersion act bot. To delete the LATEST version, use the DeleteBot operation. """ -function delete_bot_version( - name, version; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_model_building_service( +delete_bot_version(name, version; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "DELETE", "/bots/$(name)/versions/$(version)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_bot_version( name, version, @@ -308,11 +298,10 @@ This operation requires permission for the lex:DeleteIntent action. - `name`: The name of the intent. The name is case sensitive. """ -function delete_intent(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +delete_intent(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "DELETE", "/intents/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_intent( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -339,16 +328,13 @@ lex:DeleteIntentVersion action. the intent. To delete the LATEST version, use the DeleteIntent operation. """ -function delete_intent_version( - name, version; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_model_building_service( +delete_intent_version(name, version; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "DELETE", "/intents/$(name)/versions/$(version)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_intent_version( name, version, @@ -383,14 +369,13 @@ lex:DeleteSlotType action. - `name`: The name of the slot type. The name is case sensitive. """ -function delete_slot_type(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +delete_slot_type(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "DELETE", "/slottypes/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_slot_type( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -417,16 +402,14 @@ lex:DeleteSlotTypeVersion action. of the slot type. To delete the LATEST version, use the DeleteSlotType operation. """ -function delete_slot_type_version( +delete_slot_type_version( name, version; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_model_building_service( + "DELETE", + "/slottypes/$(name)/version/$(version)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "DELETE", - "/slottypes/$(name)/version/$(version)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_slot_type_version( name, version, @@ -462,16 +445,13 @@ permissions for the lex:DeleteUtterances action. utterance. """ -function delete_utterances( - botName, userId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_model_building_service( +delete_utterances(botName, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "DELETE", "/bots/$(botName)/utterances/$(userId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_utterances( botName, userId, @@ -499,14 +479,13 @@ version or alias. This operation requires permissions for the lex:GetBot actio - `versionoralias`: The version or alias of the bot. """ -function get_bot(name, versionoralias; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_bot(name, versionoralias; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/bots/$(name)/versions/$(versionoralias)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_bot( name, versionoralias, @@ -534,14 +513,13 @@ versioning-aliases. This operation requires permissions for the lex:GetBotAlias - `name`: The name of the bot alias. The name is case sensitive. """ -function get_bot_alias(botName, name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_bot_alias(botName, name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/bots/$(botName)/aliases/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_bot_alias( botName, name, @@ -578,14 +556,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request. """ -function get_bot_aliases(botName; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_bot_aliases(botName; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/bots/$(botName)/aliases/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_bot_aliases( botName, params::AbstractDict{String}; @@ -615,16 +592,14 @@ platform. This operation requires permissions for the lex:GetBotChannelAssociati sensitive. """ -function get_bot_channel_association( +get_bot_channel_association( aliasName, botName, name; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_model_building_service( + "GET", + "/bots/$(botName)/aliases/$(aliasName)/channels/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "GET", - "/bots/$(botName)/aliases/$(aliasName)/channels/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bot_channel_association( aliasName, botName, @@ -666,16 +641,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request. """ -function get_bot_channel_associations( +get_bot_channel_associations( aliasName, botName; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_model_building_service( + "GET", + "/bots/$(botName)/aliases/$(aliasName)/channels/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "GET", - "/bots/$(botName)/aliases/$(aliasName)/channels/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bot_channel_associations( aliasName, botName, @@ -713,14 +686,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request. """ -function get_bot_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_bot_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/bots/$(name)/versions/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_bot_versions( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -753,11 +725,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of bots, specify the pagination token in the next request. """ -function get_bots(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( - "GET", "/bots/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_bots(; aws_config::AbstractAWSConfig=current_aws_config()) = lex_model_building_service( + "GET", "/bots/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_bots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -778,14 +748,13 @@ lex:GetBuiltinIntent action. intent, see Standard Built-in Intents in the Alexa Skills Kit. """ -function get_builtin_intent(signature; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_builtin_intent(signature; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/builtins/intents/$(signature)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_builtin_intent( signature, params::AbstractDict{String}; @@ -820,11 +789,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys matches both \"xyzabc\" and \"abcxyz.\" To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. """ -function get_builtin_intents(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_builtin_intents(; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/builtins/intents/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_builtin_intents( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -858,14 +826,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will be returned if any part of its signature matches the substring. For example, \"xyz\" matches both \"xyzabc\" and \"abcxyz.\" """ -function get_builtin_slot_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_builtin_slot_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/builtins/slottypes/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_builtin_slot_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -891,26 +858,24 @@ Exports the contents of a Amazon Lex resource in a specified format. - `version`: The version of the bot to export. """ -function get_export( +get_export( exportType, name, resourceType, version; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_model_building_service( + "GET", + "/exports/", + Dict{String,Any}( + "exportType" => exportType, + "name" => name, + "resourceType" => resourceType, + "version" => version, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "GET", - "/exports/", - Dict{String,Any}( - "exportType" => exportType, - "name" => name, - "resourceType" => resourceType, - "version" => version, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_export( exportType, name, @@ -949,14 +914,13 @@ Gets information about an import job started with the StartImport operation. - `import_id`: The identifier of the import job information to return. """ -function get_import(importId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_import(importId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/imports/$(importId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_import( importId, params::AbstractDict{String}; @@ -983,14 +947,13 @@ intent version. This operation requires permissions to perform the lex:GetInte - `version`: The version of the intent. """ -function get_intent(name, version; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_intent(name, version; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/intents/$(name)/versions/$(version)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_intent( name, version, @@ -1028,14 +991,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request. """ -function get_intent_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_intent_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/intents/$(name)/versions/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_intent_versions( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1068,11 +1030,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request. """ -function get_intents(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_intents(; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/intents/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_intents( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1094,14 +1055,13 @@ the migration. returned by the operation. """ -function get_migration(migrationId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_migration(migrationId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/migrations/$(migrationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_migration( migrationId, params::AbstractDict{String}; @@ -1137,11 +1097,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"v1BotNameContains"`: Filters the list to contain only bots whose name contains the specified string. The string is matched anywhere in bot name. """ -function get_migrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_migrations(; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/migrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_migrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1163,14 +1122,13 @@ for the lex:GetSlotType action. - `version`: The version of the slot type. """ -function get_slot_type(name, version; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_slot_type(name, version; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/slottypes/$(name)/versions/$(version)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_slot_type( name, version, @@ -1209,14 +1167,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. To fetch the next page of versions, specify the pagination token in the next request. """ -function get_slot_type_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_slot_type_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/slottypes/$(name)/versions/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_slot_type_versions( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1250,11 +1207,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. To fetch next page of slot types, specify the pagination token in the next request. """ -function get_slot_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +get_slot_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/slottypes/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_slot_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1292,17 +1248,15 @@ the lex:GetUtterancesView action. return utterances that were not recognized, use Missed. """ -function get_utterances_view( +get_utterances_view( bot_versions, botname, status_type; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_model_building_service( + "GET", + "/bots/$(botname)/utterances?view=aggregation", + Dict{String,Any}("bot_versions" => bot_versions, "status_type" => status_type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "GET", - "/bots/$(botname)/utterances?view=aggregation", - Dict{String,Any}("bot_versions" => bot_versions, "status_type" => status_type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_utterances_view( bot_versions, botname, @@ -1338,16 +1292,13 @@ channels can have tags associated with them. - `resource_arn`: The Amazon Resource Name (ARN) of the resource to get a list of tags for. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_model_building_service( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1494,17 +1445,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the bot. For more information, see Voices in Amazon Polly in the Amazon Polly Developer Guide. """ -function put_bot( - childDirected, locale, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_model_building_service( +put_bot(childDirected, locale, name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "PUT", "/bots/$(name)/versions/$LATEST", Dict{String,Any}("childDirected" => childDirected, "locale" => locale); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_bot( childDirected, locale, @@ -1555,17 +1503,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys an alias, you can't use the PutBotAlias operation to update the tags on a bot alias. To update tags, use the TagResource operation. """ -function put_bot_alias( +put_bot_alias( botName, botVersion, name; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_model_building_service( + "PUT", + "/bots/$(botName)/aliases/$(name)", + Dict{String,Any}("botVersion" => botVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "PUT", - "/bots/$(botName)/aliases/$(name)", - Dict{String,Any}("botVersion" => botVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bot_alias( botName, botVersion, @@ -1683,14 +1629,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"slots"`: An array of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. For more information, see how-it-works. """ -function put_intent(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +put_intent(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "PUT", "/intents/$(name)/versions/$LATEST"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_intent( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1759,14 +1704,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys null is returned. If you don't specify the valueSelectionStrategy, the default is ORIGINAL_VALUE. """ -function put_slot_type(name; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +put_slot_type(name; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "PUT", "/slottypes/$(name)/versions/$LATEST"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_slot_type( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1805,21 +1749,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A list of tags to add to the imported bot. You can only add tags when you import a bot, you can't add tags to an intent or slot type. """ -function start_import( +start_import( mergeStrategy, payload, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_model_building_service( + "POST", + "/imports/", + Dict{String,Any}( + "mergeStrategy" => mergeStrategy, + "payload" => payload, + "resourceType" => resourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "POST", - "/imports/", - Dict{String,Any}( - "mergeStrategy" => mergeStrategy, - "payload" => payload, - "resourceType" => resourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_import( mergeStrategy, payload, @@ -1870,28 +1812,26 @@ a bot in the Amazon Lex developer guide. - `v2_bot_role`: The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. """ -function start_migration( +start_migration( migrationStrategy, v1BotName, v1BotVersion, v2BotName, v2BotRole; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_model_building_service( + "POST", + "/migrations", + Dict{String,Any}( + "migrationStrategy" => migrationStrategy, + "v1BotName" => v1BotName, + "v1BotVersion" => v1BotVersion, + "v2BotName" => v2BotName, + "v2BotRole" => v2BotRole, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_model_building_service( - "POST", - "/migrations", - Dict{String,Any}( - "migrationStrategy" => migrationStrategy, - "v1BotName" => v1BotName, - "v1BotVersion" => v1BotVersion, - "v2BotName" => v2BotName, - "v2BotRole" => v2BotRole, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_migration( migrationStrategy, v1BotName, @@ -1936,15 +1876,14 @@ existing value is replaced with the new value. existing value is replaced with the new value. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_model_building_service( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1972,17 +1911,14 @@ Removes tags from a bot, bot alias or bot channel. on the resource, it is ignored. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_model_building_service( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_model_building_service( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/lex_models_v2.jl b/src/services/lex_models_v2.jl index 3fae8917a..b43b6f870 100644 --- a/src/services/lex_models_v2.jl +++ b/src/services/lex_models_v2.jl @@ -21,21 +21,19 @@ Create a batch of custom vocabulary items for a given bot locale's custom vocabu Supported Languages . """ -function batch_create_custom_vocabulary_item( +batch_create_custom_vocabulary_item( botId, botVersion, customVocabularyItemList, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/batchcreate", + Dict{String,Any}("customVocabularyItemList" => customVocabularyItemList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/batchcreate", - Dict{String,Any}("customVocabularyItemList" => customVocabularyItemList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_custom_vocabulary_item( botId, botVersion, @@ -76,21 +74,19 @@ Delete a batch of custom vocabulary items for a given bot locale's custom vocabu Supported Languages . """ -function batch_delete_custom_vocabulary_item( +batch_delete_custom_vocabulary_item( botId, botVersion, customVocabularyItemList, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/batchdelete", + Dict{String,Any}("customVocabularyItemList" => customVocabularyItemList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/batchdelete", - Dict{String,Any}("customVocabularyItemList" => customVocabularyItemList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_custom_vocabulary_item( botId, botVersion, @@ -131,21 +127,19 @@ Update a batch of custom vocabulary items for a given bot locale's custom vocabu Supported Languages . """ -function batch_update_custom_vocabulary_item( +batch_update_custom_vocabulary_item( botId, botVersion, customVocabularyItemList, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/batchupdate", + Dict{String,Any}("customVocabularyItemList" => customVocabularyItemList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/batchupdate", - Dict{String,Any}("customVocabularyItemList" => customVocabularyItemList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_custom_vocabulary_item( botId, botVersion, @@ -186,16 +180,14 @@ into multiple locales. At runtime the locale is used to choose a specific build used in the bot must have the same locale. For more information, see Supported languages. """ -function build_bot_locale( +build_bot_locale( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function build_bot_locale( botId, botVersion, @@ -244,26 +236,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tags when you create a bot. You can't use the UpdateAlias operation to update tags. To update tags on the test alias, use the TagResource operation. """ -function create_bot( +create_bot( botName, dataPrivacy, idleSessionTTLInSeconds, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/", + Dict{String,Any}( + "botName" => botName, + "dataPrivacy" => dataPrivacy, + "idleSessionTTLInSeconds" => idleSessionTTLInSeconds, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/", - Dict{String,Any}( - "botName" => botName, - "dataPrivacy" => dataPrivacy, - "idleSessionTTLInSeconds" => idleSessionTTLInSeconds, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_bot( botName, dataPrivacy, @@ -322,17 +312,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys an alias, you can't use the UpdateBotAlias operation to update the tags on a bot alias. To update tags, use the TagResource operation. """ -function create_bot_alias( - botAliasName, botId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +create_bot_alias(botAliasName, botId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "PUT", "/bots/$(botId)/botaliases/", Dict{String,Any}("botAliasName" => botAliasName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_bot_alias( botAliasName, botId, @@ -382,24 +369,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"voiceSettings"`: The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. """ -function create_bot_locale( +create_bot_locale( botId, botVersion, localeId, nluIntentConfidenceThreshold; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/", + Dict{String,Any}( + "localeId" => localeId, + "nluIntentConfidenceThreshold" => nluIntentConfidenceThreshold, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/", - Dict{String,Any}( - "localeId" => localeId, - "nluIntentConfidenceThreshold" => nluIntentConfidenceThreshold, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_bot_locale( botId, botVersion, @@ -439,17 +424,15 @@ Action to create a replication of the source bot in the secondary region. replication of the source bot. """ -function create_bot_replica( +create_bot_replica( botId, replicaRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "PUT", + "/bots/$(botId)/replicas/", + Dict{String,Any}("replicaRegion" => replicaRegion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/replicas/", - Dict{String,Any}("replicaRegion" => replicaRegion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_bot_replica( botId, replicaRegion, @@ -489,17 +472,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the version. Use the description to help identify the version in lists. """ -function create_bot_version( +create_bot_version( botId, botVersionLocaleSpecification; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/", + Dict{String,Any}("botVersionLocaleSpecification" => botVersionLocaleSpecification); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/", - Dict{String,Any}("botVersionLocaleSpecification" => botVersionLocaleSpecification); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_bot_version( botId, botVersionLocaleSpecification, @@ -545,19 +526,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys optional, but you should encrypt the archive to protect the data in transit between Amazon Lex and your local computer. """ -function create_export( +create_export( fileFormat, resourceSpecification; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "PUT", + "/exports/", + Dict{String,Any}( + "fileFormat" => fileFormat, "resourceSpecification" => resourceSpecification + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/exports/", - Dict{String,Any}( - "fileFormat" => fileFormat, "resourceSpecification" => resourceSpecification - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_export( fileFormat, resourceSpecification, @@ -663,21 +642,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys names are enclosed in curly braces (\"{\", \"}\") to indicate where they should be displayed in the utterance shown to the user.. """ -function create_intent( +create_intent( botId, botVersion, intentName, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/", + Dict{String,Any}("intentName" => intentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/", - Dict{String,Any}("intentName" => intentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_intent( botId, botVersion, @@ -712,17 +689,15 @@ Creates a new resource policy with the specified policy statements. policy is attached to. """ -function create_resource_policy( +create_resource_policy( policy, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/policy/$(resourceArn)/", + Dict{String,Any}("policy" => policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/policy/$(resourceArn)/", - Dict{String,Any}("policy" => policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource_policy( policy, resourceArn, @@ -745,7 +720,8 @@ end Adds a new resource policy statement to a bot or bot alias. If a resource policy exists, the statement is added to the current resource policy. If a policy doesn't exist, a new policy is created. You can't create a resource policy statement that allows cross-account -access. +access. You need to add the CreateResourcePolicy or UpdateResourcePolicy action to the bot +role in order to call the API. # Arguments - `action`: The Amazon Lex action that this policy either allows or denies. The action must @@ -772,27 +748,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values. """ -function create_resource_policy_statement( +create_resource_policy_statement( action, effect, principal, resourceArn, statementId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/policy/$(resourceArn)/statements/", + Dict{String,Any}( + "action" => action, + "effect" => effect, + "principal" => principal, + "statementId" => statementId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/policy/$(resourceArn)/statements/", - Dict{String,Any}( - "action" => action, - "effect" => effect, - "principal" => principal, - "statementId" => statementId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource_policy_statement( action, effect, @@ -858,7 +832,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subSlotSetting"`: Specifications for the constituent sub slots and the expression for the composite slot. """ -function create_slot( +create_slot( botId, botVersion, intentId, @@ -866,17 +840,15 @@ function create_slot( slotName, valueElicitationSetting; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/", + Dict{String,Any}( + "slotName" => slotName, "valueElicitationSetting" => valueElicitationSetting + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/", - Dict{String,Any}( - "slotName" => slotName, "valueElicitationSetting" => valueElicitationSetting - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_slot( botId, botVersion, @@ -942,21 +914,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. """ -function create_slot_type( +create_slot_type( botId, botVersion, localeId, slotTypeName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/", + Dict{String,Any}("slotTypeName" => slotTypeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/", - Dict{String,Any}("slotTypeName" => slotTypeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_slot_type( botId, botVersion, @@ -987,17 +957,15 @@ Create a report that describes the differences between the bot and the test set. - `test_set_id`: The test set Id for the test set discrepancy report. """ -function create_test_set_discrepancy_report( +create_test_set_discrepancy_report( target, testSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/testsets/$(testSetId)/testsetdiscrepancy", + Dict{String,Any}("target" => target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/testsets/$(testSetId)/testsetdiscrepancy", - Dict{String,Any}("target" => target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_test_set_discrepancy_report( target, testSetId, @@ -1021,11 +989,9 @@ Gets a pre-signed S3 write URL that you use to upload the zip archive when impor or a bot locale. """ -function create_upload_url(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "POST", "/createuploadurl/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_upload_url(; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "POST", "/createuploadurl/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function create_upload_url( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1060,11 +1026,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter to true to skip this check and remove the bot even if it is being used by another resource. """ -function delete_bot(botId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "DELETE", "/bots/$(botId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_bot(botId; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "DELETE", "/bots/$(botId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_bot( botId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1095,16 +1059,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter to true to skip this check and remove the alias even if it is being used by another resource. """ -function delete_bot_alias( - botAliasId, botId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +delete_bot_alias(botAliasId, botId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "DELETE", "/bots/$(botId)/botaliases/$(botAliasId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_bot_alias( botAliasId, botId, @@ -1134,16 +1095,14 @@ defined for the locale are also deleted. must match one of the supported locales. For more information, see Supported languages. """ -function delete_bot_locale( +delete_bot_locale( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "DELETE", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "DELETE", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bot_locale( botId, botVersion, @@ -1171,16 +1130,14 @@ The action to delete the replicated bot in the secondary region. - `replica_region`: The secondary region of the replicated bot that will be deleted. """ -function delete_bot_replica( +delete_bot_replica( botId, replicaRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "DELETE", + "/bots/$(botId)/replicas/$(replicaRegion)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "DELETE", - "/bots/$(botId)/replicas/$(replicaRegion)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bot_replica( botId, replicaRegion, @@ -1215,16 +1172,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter to true to skip this check and remove the version even if it is being used by another resource. """ -function delete_bot_version( - botId, botVersion; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +delete_bot_version(botId, botVersion; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "DELETE", "/bots/$(botId)/botversions/$(botVersion)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_bot_version( botId, botVersion, @@ -1253,16 +1207,14 @@ Removes a custom vocabulary from the specified locale in the specified bot. remove. """ -function delete_custom_vocabulary( +delete_custom_vocabulary( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "DELETE", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "DELETE", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_vocabulary( botId, botVersion, @@ -1289,14 +1241,12 @@ Removes a previous export and the associated files stored in an S3 bucket. - `export_id`: The unique identifier of the export to delete. """ -function delete_export(exportId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "DELETE", - "/exports/$(exportId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_export(exportId; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "DELETE", + "/exports/$(exportId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_export( exportId, params::AbstractDict{String}; @@ -1321,14 +1271,12 @@ Removes a previous import and the associated file stored in an S3 bucket. - `import_id`: The unique identifier of the import to delete. """ -function delete_import(importId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "DELETE", - "/imports/$(importId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_import(importId; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "DELETE", + "/imports/$(importId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_import( importId, params::AbstractDict{String}; @@ -1359,20 +1307,18 @@ intent. languages. """ -function delete_intent( +delete_intent( botId, botVersion, intentId, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "DELETE", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "DELETE", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_intent( botId, botVersion, @@ -1407,16 +1353,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the current revision number, Amazon Lex returns an exception If you don't specify a revision ID, Amazon Lex will delete the current policy. """ -function delete_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +delete_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "DELETE", "/policy/$(resourceArn)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( resourceArn, params::AbstractDict{String}; @@ -1438,7 +1381,8 @@ end Deletes a policy statement from a resource policy. If you delete the last statement from a policy, the policy is deleted. If you specify a statement ID that doesn't exist in the policy, or if the bot or bot alias doesn't have a policy attached, Amazon Lex returns an -exception. +exception. You need to add the DeleteResourcePolicy or UpdateResourcePolicy action to the +bot role in order to call the API. # Arguments - `resource_arn`: The Amazon Resource Name (ARN) of the bot or bot alias that the resource @@ -1452,16 +1396,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys throws an exception. If you don't specify a revision, Amazon Lex removes the current contents of the statement. """ -function delete_resource_policy_statement( +delete_resource_policy_statement( resourceArn, statementId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "DELETE", + "/policy/$(resourceArn)/statements/$(statementId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "DELETE", - "/policy/$(resourceArn)/statements/$(statementId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource_policy_statement( resourceArn, statementId, @@ -1493,21 +1435,19 @@ Deletes the specified slot from an intent. - `slot_id`: The identifier of the slot to delete. """ -function delete_slot( +delete_slot( botId, botVersion, intentId, localeId, slotId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "DELETE", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/$(slotId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "DELETE", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/$(slotId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_slot( botId, botVersion, @@ -1549,20 +1489,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys skipResourceInUseCheck parameter to true to skip this check and remove the slot type even if a slot uses it. """ -function delete_slot_type( +delete_slot_type( botId, botVersion, localeId, slotTypeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "DELETE", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/$(slotTypeId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "DELETE", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/$(slotTypeId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_slot_type( botId, botVersion, @@ -1590,14 +1528,13 @@ The action to delete the selected test set. - `test_set_id`: The test set Id of the test set to be deleted. """ -function delete_test_set(testSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +delete_test_set(testSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "DELETE", "/testsets/$(testSetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_test_set( testSetId, params::AbstractDict{String}; @@ -1635,14 +1572,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sessionId"`: The unique identifier of the session with the user. The ID is returned in the response from the RecognizeText and RecognizeUtterance operations. """ -function delete_utterances(botId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +delete_utterances(botId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "DELETE", "/bots/$(botId)/utterances/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_utterances( botId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1665,11 +1601,9 @@ Provides metadata information about a bot. - `bot_id`: The unique identifier of the bot to describe. """ -function describe_bot(botId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "GET", "/bots/$(botId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_bot(botId; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "GET", "/bots/$(botId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_bot( botId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1693,16 +1627,13 @@ Get information about a specific bot alias. - `bot_id`: The identifier of the bot associated with the bot alias to describe. """ -function describe_bot_alias( - botAliasId, botId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +describe_bot_alias(botAliasId, botId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "GET", "/bots/$(botId)/botaliases/$(botAliasId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_bot_alias( botAliasId, botId, @@ -1731,16 +1662,14 @@ Describes the settings that a bot has for a specific locale. of the supported locales. For more information, see Supported languages. """ -function describe_bot_locale( +describe_bot_locale( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "GET", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_bot_locale( botId, botVersion, @@ -1775,20 +1704,18 @@ recommendation. Supported languages. """ -function describe_bot_recommendation( +describe_bot_recommendation( botId, botRecommendationId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "GET", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_bot_recommendation( botId, botRecommendationId, @@ -1817,16 +1744,14 @@ Monitors the bot replication status through the UI console. - `replica_region`: The request for the region of the replicated bot being monitored. """ -function describe_bot_replica( +describe_bot_replica( botId, replicaRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "GET", + "/bots/$(botId)/replicas/$(replicaRegion)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/replicas/$(replicaRegion)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_bot_replica( botId, replicaRegion, @@ -1859,20 +1784,18 @@ configuration. - `locale_id`: The locale of the bot for which to return the generation details. """ -function describe_bot_resource_generation( +describe_bot_resource_generation( botId, botVersion, generationId, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "GET", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/generations/$(generationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/generations/$(generationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_bot_resource_generation( botId, botVersion, @@ -1901,16 +1824,14 @@ Provides metadata about a version of a bot. - `bot_version`: The version of the bot to return metadata for. """ -function describe_bot_version( +describe_bot_version( botId, botVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "GET", + "/bots/$(botId)/botversions/$(botVersion)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/botversions/$(botVersion)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_bot_version( botId, botVersion, @@ -1939,16 +1860,14 @@ Provides metadata information about a custom vocabulary. be en_GB. """ -function describe_custom_vocabulary_metadata( +describe_custom_vocabulary_metadata( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "GET", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/metadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_custom_vocabulary_metadata( botId, botVersion, @@ -1975,14 +1894,13 @@ Gets information about a specific export. - `export_id`: The unique identifier of the export to describe. """ -function describe_export(exportId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +describe_export(exportId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "GET", "/exports/$(exportId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_export( exportId, params::AbstractDict{String}; @@ -2007,14 +1925,13 @@ Gets information about a specific import. - `import_id`: The unique identifier of the import to describe. """ -function describe_import(importId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +describe_import(importId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "GET", "/imports/$(importId)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_import( importId, params::AbstractDict{String}; @@ -2044,20 +1961,18 @@ Returns metadata about an intent. languages. """ -function describe_intent( +describe_intent( botId, botVersion, intentId, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "GET", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_intent( botId, botVersion, @@ -2086,16 +2001,13 @@ Gets the resource policy and policy revision for a bot or bot alias. policy is attached to. """ -function describe_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +describe_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "GET", "/policy/$(resourceArn)/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_resource_policy( resourceArn, params::AbstractDict{String}; @@ -2126,21 +2038,19 @@ Gets metadata information about a slot. - `slot_id`: The unique identifier for the slot. """ -function describe_slot( +describe_slot( botId, botVersion, intentId, localeId, slotId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "GET", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/$(slotId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/$(slotId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_slot( botId, botVersion, @@ -2174,20 +2084,18 @@ Gets metadata information about a slot type. - `slot_type_id`: The identifier of the slot type. """ -function describe_slot_type( +describe_slot_type( botId, botVersion, localeId, slotTypeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "GET", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/$(slotTypeId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/$(slotTypeId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_slot_type( botId, botVersion, @@ -2215,16 +2123,14 @@ Gets metadata information about the test execution. - `test_execution_id`: The execution Id of the test set execution. """ -function describe_test_execution( +describe_test_execution( testExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "GET", + "/testexecutions/$(testExecutionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/testexecutions/$(testExecutionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_test_execution( testExecutionId, params::AbstractDict{String}; @@ -2249,14 +2155,13 @@ Gets metadata information about the test set. - `test_set_id`: The test set Id for the test set request. """ -function describe_test_set(testSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +describe_test_set(testSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "GET", "/testsets/$(testSetId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_test_set( testSetId, params::AbstractDict{String}; @@ -2282,16 +2187,14 @@ Gets metadata information about the test set discrepancy report. report. """ -function describe_test_set_discrepancy_report( +describe_test_set_discrepancy_report( testSetDiscrepancyReportId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "GET", + "/testsetdiscrepancy/$(testSetDiscrepancyReportId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/testsetdiscrepancy/$(testSetDiscrepancyReportId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_test_set_discrepancy_report( testSetDiscrepancyReportId, params::AbstractDict{String}; @@ -2316,16 +2219,14 @@ Gets metadata information about the test set generation. - `test_set_generation_id`: The unique identifier of the test set generation. """ -function describe_test_set_generation( +describe_test_set_generation( testSetGenerationId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "GET", + "/testsetgenerations/$(testSetGenerationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/testsetgenerations/$(testSetGenerationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_test_set_generation( testSetGenerationId, params::AbstractDict{String}; @@ -2353,21 +2254,19 @@ Generates sample utterances for an intent. - `locale_id`: The unique locale Id for the bot request to generate utterances. """ -function generate_bot_element( +generate_bot_element( botId, botVersion, intentId, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/generate", + Dict{String,Any}("intentId" => intentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/generate", - Dict{String,Any}("intentId" => intentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_bot_element( botId, botVersion, @@ -2397,16 +2296,14 @@ The pre-signed Amazon S3 URL to download the test execution result artifacts. - `test_execution_id`: The unique identifier of the completed test execution. """ -function get_test_execution_artifacts_url( +get_test_execution_artifacts_url( testExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "GET", + "/testexecutions/$(testExecutionId)/artifacturl"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "GET", - "/testexecutions/$(testExecutionId)/artifacturl"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_test_execution_artifacts_url( testExecutionId, params::AbstractDict{String}; @@ -2461,19 +2358,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: Specifies sorting parameters for the list of utterances. You can sort by the hit count, the missed count, or the number of distinct sessions the utterance appeared in. """ -function list_aggregated_utterances( +list_aggregated_utterances( aggregationDuration, botId, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/aggregatedutterances/", + Dict{String,Any}("aggregationDuration" => aggregationDuration, "localeId" => localeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/aggregatedutterances/", - Dict{String,Any}( - "aggregationDuration" => aggregationDuration, "localeId" => localeId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_aggregated_utterances( aggregationDuration, botId, @@ -2517,16 +2410,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The request for the next token for the replicated bot created from the source bot alias. """ -function list_bot_alias_replicas( +list_bot_alias_replicas( botId, replicaRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/replicas/$(replicaRegion)/botaliases/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/replicas/$(replicaRegion)/botaliases/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bot_alias_replicas( botId, replicaRegion, @@ -2559,14 +2450,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results. """ -function list_bot_aliases(botId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "POST", - "/bots/$(botId)/botaliases/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_bot_aliases(botId; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "POST", + "/bots/$(botId)/botaliases/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_bot_aliases( botId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2602,16 +2491,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: Specifies sorting parameters for the list of locales. You can sort by locale name in ascending or descending order. """ -function list_bot_locales( - botId, botVersion; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +list_bot_locales(botId, botVersion; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "POST", "/bots/$(botId)/botversions/$(botVersion)/botlocales/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_bot_locales( botId, botVersion, @@ -2647,16 +2533,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results. """ -function list_bot_recommendations( +list_bot_recommendations( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bot_recommendations( botId, botVersion, @@ -2683,14 +2567,13 @@ The action to list the replicated bots. - `bot_id`: The request for the unique bot IDs in the list of replicated bots. """ -function list_bot_replicas(botId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +list_bot_replicas(botId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "POST", "/bots/$(botId)/replicas/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_bot_replicas( botId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2723,16 +2606,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: An object containing information about the attribute and the method by which to sort the results """ -function list_bot_resource_generations( +list_bot_resource_generations( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/generations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/generations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bot_resource_generations( botId, botVersion, @@ -2766,16 +2647,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The next token given in the list of replicated bots. - `"sortBy"`: The requested sort category for the list of replicated bots. """ -function list_bot_version_replicas( +list_bot_version_replicas( botId, replicaRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/replicas/$(replicaRegion)/botversions/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/replicas/$(replicaRegion)/botversions/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bot_version_replicas( botId, replicaRegion, @@ -2815,14 +2694,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: Specifies sorting parameters for the list of versions. You can specify that the list be sorted by version name in either ascending or descending order. """ -function list_bot_versions(botId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +list_bot_versions(botId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "POST", "/bots/$(botId)/botversions/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_bot_versions( botId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2857,11 +2735,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: Specifies sorting parameters for the list of bots. You can specify that the list be sorted by bot name in ascending or descending order. """ -function list_bots(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "POST", "/bots/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_bots(; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2("POST", "/bots/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_bots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2895,14 +2770,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify that the list be sorted by the built-in intent signature in either ascending or descending order. """ -function list_built_in_intents(localeId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +list_built_in_intents(localeId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "POST", "/builtins/locales/$(localeId)/intents/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_built_in_intents( localeId, params::AbstractDict{String}; @@ -2940,16 +2814,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. You can choose to sort by the slot type signature in either ascending or descending order. """ -function list_built_in_slot_types( - localeId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +list_built_in_slot_types(localeId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "POST", "/builtins/locales/$(localeId)/slottypes/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_built_in_slot_types( localeId, params::AbstractDict{String}; @@ -2982,16 +2853,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of items returned by the list operation. - `"nextToken"`: The nextToken identifier to the list custom vocabulary request. """ -function list_custom_vocabulary_items( +list_custom_vocabulary_items( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/customvocabulary/DEFAULT/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_custom_vocabulary_items( botId, botVersion, @@ -3035,11 +2904,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: Determines the field that the list of exports is sorted by. You can sort by the LastUpdatedDateTime field in ascending or descending order. """ -function list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "POST", "/exports/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "POST", "/exports/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3075,11 +2942,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: Determines the field that the list of imports is sorted by. You can sort by the LastUpdatedDateTime field in ascending or descending order. """ -function list_imports(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "POST", "/imports/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_imports(; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "POST", "/imports/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_imports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3133,25 +2998,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys page of results. For a complete set of results, call the ListIntentMetrics operation until the nextToken returned in the response is null. """ -function list_intent_metrics( +list_intent_metrics( botId, endDateTime, metrics, startDateTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/analytics/intentmetrics", + Dict{String,Any}( + "endDateTime" => endDateTime, + "metrics" => metrics, + "startDateTime" => startDateTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/analytics/intentmetrics", - Dict{String,Any}( - "endDateTime" => endDateTime, - "metrics" => metrics, - "startDateTime" => startDateTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_intent_metrics( botId, endDateTime, @@ -3204,27 +3067,25 @@ optional filters field to filter the results. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"filters"`: A list of objects, each describes a condition by which you want to filter - the results. -""" -function list_intent_paths( - botId, - endDateTime, - intentPath, - startDateTime; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return lex_models_v2( - "POST", - "/bots/$(botId)/analytics/intentpaths", - Dict{String,Any}( - "endDateTime" => endDateTime, - "intentPath" => intentPath, - "startDateTime" => startDateTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + the results. +""" +list_intent_paths( + botId, + endDateTime, + intentPath, + startDateTime; + aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/analytics/intentpaths", + Dict{String,Any}( + "endDateTime" => endDateTime, + "intentPath" => intentPath, + "startDateTime" => startDateTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_intent_paths( botId, endDateTime, @@ -3298,25 +3159,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys return the next page of results. For a complete set of results, call the ListIntentStageMetrics operation until the nextToken returned in the response is null. """ -function list_intent_stage_metrics( +list_intent_stage_metrics( botId, endDateTime, metrics, startDateTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/analytics/intentstagemetrics", + Dict{String,Any}( + "endDateTime" => endDateTime, + "metrics" => metrics, + "startDateTime" => startDateTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/analytics/intentstagemetrics", - Dict{String,Any}( - "endDateTime" => endDateTime, - "metrics" => metrics, - "startDateTime" => startDateTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_intent_stage_metrics( botId, endDateTime, @@ -3372,16 +3231,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You can choose to sort by the intent name or last updated date in either ascending or descending order. """ -function list_intents( +list_intents( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_intents( botId, botVersion, @@ -3421,20 +3278,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results. """ -function list_recommended_intents( +list_recommended_intents( botId, botRecommendationId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/intents"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/intents"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_recommended_intents( botId, botRecommendationId, @@ -3486,17 +3341,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: An object specifying the measure and method by which to sort the session analytics data. """ -function list_session_analytics_data( +list_session_analytics_data( botId, endDateTime, startDateTime; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/analytics/sessions", + Dict{String,Any}("endDateTime" => endDateTime, "startDateTime" => startDateTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/analytics/sessions", - Dict{String,Any}("endDateTime" => endDateTime, "startDateTime" => startDateTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_session_analytics_data( botId, endDateTime, @@ -3568,25 +3421,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the next page of results. For a complete set of results, call the ListSessionMetrics operation until the nextToken returned in the response is null. """ -function list_session_metrics( +list_session_metrics( botId, endDateTime, metrics, startDateTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/analytics/sessionmetrics", + Dict{String,Any}( + "endDateTime" => endDateTime, + "metrics" => metrics, + "startDateTime" => startDateTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/analytics/sessionmetrics", - Dict{String,Any}( - "endDateTime" => endDateTime, - "metrics" => metrics, - "startDateTime" => startDateTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_session_metrics( botId, endDateTime, @@ -3642,16 +3493,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys You can choose to sort by the slot type name or last updated date in either ascending or descending order. """ -function list_slot_types( +list_slot_types( botId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_slot_types( botId, botVersion, @@ -3695,20 +3544,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can choose to sort by the slot name or last updated date in either ascending or descending order. """ -function list_slots( +list_slots( botId, botVersion, intentId, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_slots( botId, botVersion, @@ -3737,16 +3584,13 @@ can have tags associated with them. - `resource_arn`: The Amazon Resource Name (ARN) of the resource to get a list of tags for. """ -function list_tags_for_resource( - resourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +list_tags_for_resource(resourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "GET", "/tags/$(resourceARN)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceARN, params::AbstractDict{String}; @@ -3780,17 +3624,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results. """ -function list_test_execution_result_items( +list_test_execution_result_items( resultFilterBy, testExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/testexecutions/$(testExecutionId)/results", + Dict{String,Any}("resultFilterBy" => resultFilterBy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/testexecutions/$(testExecutionId)/results", - Dict{String,Any}("resultFilterBy" => resultFilterBy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_test_execution_result_items( resultFilterBy, testExecutionId, @@ -3823,11 +3665,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use that token in the nextToken parameter to return the next page of results. - `"sortBy"`: The sort order of the test set executions. """ -function list_test_executions(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "POST", "/testexecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_test_executions(; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "POST", "/testexecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_test_executions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3857,16 +3697,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results. """ -function list_test_set_records( - testSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +list_test_set_records(testSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "POST", "/testsets/$(testSetId)/records"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_test_set_records( testSetId, params::AbstractDict{String}; @@ -3896,11 +3733,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the nextToken parameter to return the next page of results. - `"sortBy"`: The sort order for the list of test sets. """ -function list_test_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "POST", "/testsets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_test_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "POST", "/testsets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_test_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3946,17 +3781,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortBy"`: An object specifying the measure and method by which to sort the utterance analytics data. """ -function list_utterance_analytics_data( +list_utterance_analytics_data( botId, endDateTime, startDateTime; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/bots/$(botId)/analytics/utterances", + Dict{String,Any}("endDateTime" => endDateTime, "startDateTime" => startDateTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/analytics/utterances", - Dict{String,Any}("endDateTime" => endDateTime, "startDateTime" => startDateTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_utterance_analytics_data( botId, endDateTime, @@ -4034,25 +3867,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys return the next page of results. For a complete set of results, call the ListUtteranceMetrics operation until the nextToken returned in the response is null. """ -function list_utterance_metrics( +list_utterance_metrics( botId, endDateTime, metrics, startDateTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/analytics/utterancemetrics", + Dict{String,Any}( + "endDateTime" => endDateTime, + "metrics" => metrics, + "startDateTime" => startDateTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/analytics/utterancemetrics", - Dict{String,Any}( - "endDateTime" => endDateTime, - "metrics" => metrics, - "startDateTime" => startDateTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_utterance_metrics( botId, endDateTime, @@ -4108,22 +3939,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"searchOrder"`: How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. """ -function search_associated_transcripts( +search_associated_transcripts( botId, botRecommendationId, botVersion, filters, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "POST", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/associatedtranscripts", + Dict{String,Any}("filters" => filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/associatedtranscripts", - Dict{String,Any}("filters" => filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_associated_transcripts( botId, botRecommendationId, @@ -4163,21 +3992,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the data related to the bot recommendation results, as well as the KMS key ARN used to encrypt the associated metadata. """ -function start_bot_recommendation( +start_bot_recommendation( botId, botVersion, localeId, transcriptSourceSetting; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/", + Dict{String,Any}("transcriptSourceSetting" => transcriptSourceSetting); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/", - Dict{String,Any}("transcriptSourceSetting" => transcriptSourceSetting); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_bot_recommendation( botId, botVersion, @@ -4222,21 +4049,19 @@ this configuration. - `locale_id`: The locale of the bot for which to generate intents and slot types. """ -function start_bot_resource_generation( +start_bot_resource_generation( botId, botVersion, generationInputPrompt, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/startgeneration", + Dict{String,Any}("generationInputPrompt" => generationInputPrompt); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/startgeneration", - Dict{String,Any}("generationInputPrompt" => generationInputPrompt); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_bot_resource_generation( botId, botVersion, @@ -4282,24 +4107,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys definition. You should always encrypt the zip archive to protect it during transit between your site and Amazon Lex. """ -function start_import( +start_import( importId, mergeStrategy, resourceSpecification; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/imports/", + Dict{String,Any}( + "importId" => importId, + "mergeStrategy" => mergeStrategy, + "resourceSpecification" => resourceSpecification, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/imports/", - Dict{String,Any}( - "importId" => importId, - "mergeStrategy" => mergeStrategy, - "resourceSpecification" => resourceSpecification, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_import( importId, mergeStrategy, @@ -4343,17 +4166,15 @@ The action to start test set execution. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"testExecutionModality"`: Indicates whether audio or text is used. """ -function start_test_execution( +start_test_execution( apiMode, target, testSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "POST", + "/testsets/$(testSetId)/testexecutions", + Dict{String,Any}("apiMode" => apiMode, "target" => target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "POST", - "/testsets/$(testSetId)/testexecutions", - Dict{String,Any}("apiMode" => apiMode, "target" => target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_test_execution( apiMode, target, @@ -4394,26 +4215,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys import/generate a new test set. You can't use the UpdateTestSet operation to update tags. To update tags, use the TagResource operation. """ -function start_test_set_generation( +start_test_set_generation( generationDataSource, roleArn, storageLocation, testSetName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/testsetgenerations", + Dict{String,Any}( + "generationDataSource" => generationDataSource, + "roleArn" => roleArn, + "storageLocation" => storageLocation, + "testSetName" => testSetName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/testsetgenerations", - Dict{String,Any}( - "generationDataSource" => generationDataSource, - "roleArn" => roleArn, - "storageLocation" => storageLocation, - "testSetName" => testSetName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_test_set_generation( generationDataSource, roleArn, @@ -4458,20 +4277,18 @@ Stop an already running Bot Recommendation request. languages """ -function stop_bot_recommendation( +stop_bot_recommendation( botId, botRecommendationId, botVersion, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/stopbotrecommendation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/stopbotrecommendation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_bot_recommendation( botId, botRecommendationId, @@ -4503,15 +4320,14 @@ existing value is replaced with the new value. existing value is replaced with the new value. """ -function tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( +tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "POST", "/tags/$(resourceARN)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceARN, tags, @@ -4539,17 +4355,14 @@ Removes tags from a bot, bot alias, or bot channel. on the resource, it is ignored. """ -function untag_resource( - resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_models_v2( +untag_resource(resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_models_v2( "DELETE", "/tags/$(resourceARN)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceARN, tagKeys, @@ -4592,27 +4405,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"botType"`: The type of the bot to be updated. - `"description"`: A description of the bot. """ -function update_bot( +update_bot( botId, botName, dataPrivacy, idleSessionTTLInSeconds, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/", + Dict{String,Any}( + "botName" => botName, + "dataPrivacy" => dataPrivacy, + "idleSessionTTLInSeconds" => idleSessionTTLInSeconds, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/", - Dict{String,Any}( - "botName" => botName, - "dataPrivacy" => dataPrivacy, - "idleSessionTTLInSeconds" => idleSessionTTLInSeconds, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bot( botId, botName, @@ -4663,17 +4474,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The new description to assign to the bot alias. - `"sentimentAnalysisSettings"`: """ -function update_bot_alias( +update_bot_alias( botAliasId, botAliasName, botId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botaliases/$(botAliasId)/", + Dict{String,Any}("botAliasName" => botAliasName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botaliases/$(botAliasId)/", - Dict{String,Any}("botAliasName" => botAliasName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bot_alias( botAliasId, botAliasName, @@ -4717,21 +4526,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"voiceSettings"`: The new Amazon Polly voice Amazon Lex should use for voice interaction with the user. """ -function update_bot_locale( +update_bot_locale( botId, botVersion, localeId, nluIntentConfidenceThreshold; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/", + Dict{String,Any}("nluIntentConfidenceThreshold" => nluIntentConfidenceThreshold); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/", - Dict{String,Any}("nluIntentConfidenceThreshold" => nluIntentConfidenceThreshold); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bot_locale( botId, botVersion, @@ -4776,22 +4583,20 @@ Updates an existing bot recommendation request. Supported languages """ -function update_bot_recommendation( +update_bot_recommendation( botId, botRecommendationId, botVersion, encryptionSetting, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/", + Dict{String,Any}("encryptionSetting" => encryptionSetting); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/botrecommendations/$(botRecommendationId)/", - Dict{String,Any}("encryptionSetting" => encryptionSetting); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bot_recommendation( botId, botRecommendationId, @@ -4830,14 +4635,12 @@ DescribeExport operation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"filePassword"`: The new password to use to encrypt the export zip archive. """ -function update_export(exportId; aws_config::AbstractAWSConfig=current_aws_config()) - return lex_models_v2( - "PUT", - "/exports/$(exportId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_export(exportId; aws_config::AbstractAWSConfig=current_aws_config()) = lex_models_v2( + "PUT", + "/exports/$(exportId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_export( exportId, params::AbstractDict{String}; @@ -4895,22 +4698,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"slotPriorities"`: A new list of slots and their priorities that are contained by the intent. """ -function update_intent( +update_intent( botId, botVersion, intentId, intentName, localeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/", + Dict{String,Any}("intentName" => intentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/", - Dict{String,Any}("intentName" => intentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_intent( botId, botVersion, @@ -4953,17 +4754,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values. """ -function update_resource_policy( +update_resource_policy( policy, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "PUT", + "/policy/$(resourceArn)/", + Dict{String,Any}("policy" => policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/policy/$(resourceArn)/", - Dict{String,Any}("policy" => policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_policy( policy, resourceArn, @@ -5009,7 +4808,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subSlotSetting"`: Specifications for the constituent sub slots and the expression for the composite slot. """ -function update_slot( +update_slot( botId, botVersion, intentId, @@ -5018,17 +4817,15 @@ function update_slot( slotName, valueElicitationSetting; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/$(slotId)/", + Dict{String,Any}( + "slotName" => slotName, "valueElicitationSetting" => valueElicitationSetting + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/intents/$(intentId)/slots/$(slotId)/", - Dict{String,Any}( - "slotName" => slotName, "valueElicitationSetting" => valueElicitationSetting - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_slot( botId, botVersion, @@ -5085,22 +4882,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"valueSelectionSetting"`: The strategy that Amazon Lex should use when deciding on a value from the list of slot type values. """ -function update_slot_type( +update_slot_type( botId, botVersion, localeId, slotTypeId, slotTypeName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_models_v2( + "PUT", + "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/$(slotTypeId)/", + Dict{String,Any}("slotTypeName" => slotTypeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/bots/$(botId)/botversions/$(botVersion)/botlocales/$(localeId)/slottypes/$(slotTypeId)/", - Dict{String,Any}("slotTypeName" => slotTypeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_slot_type( botId, botVersion, @@ -5135,17 +4930,15 @@ The action to update the test set. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The new test set description. """ -function update_test_set( +update_test_set( testSetId, testSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_models_v2( + "PUT", + "/testsets/$(testSetId)", + Dict{String,Any}("testSetName" => testSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_models_v2( - "PUT", - "/testsets/$(testSetId)", - Dict{String,Any}("testSetName" => testSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_test_set( testSetId, testSetName, diff --git a/src/services/lex_runtime_service.jl b/src/services/lex_runtime_service.jl index f28548693..1c348612c 100644 --- a/src/services/lex_runtime_service.jl +++ b/src/services/lex_runtime_service.jl @@ -16,16 +16,14 @@ Removes session information for a specified bot, alias, and user ID. - `user_id`: The identifier of the user associated with the session data. """ -function delete_session( +delete_session( botAlias, botName, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_runtime_service( + "DELETE", + "/bot/$(botName)/alias/$(botAlias)/user/$(userId)/session"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_runtime_service( - "DELETE", - "/bot/$(botName)/alias/$(botAlias)/user/$(userId)/session"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_session( botAlias, botName, @@ -60,16 +58,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys recentIntentSummaryView structure. When you specify a filter, only intents with their checkpointLabel field set to that string are returned. """ -function get_session( - botAlias, botName, userId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_runtime_service( +get_session(botAlias, botName, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_runtime_service( "GET", "/bot/$(botName)/alias/$(botAlias)/user/$(userId)/session/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_session( botAlias, botName, @@ -177,25 +172,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and values. The total size of the sessionAttributes and requestAttributes headers is limited to 12 KB. For more information, see Setting Session Attributes. """ -function post_content( +post_content( Content_Type, botAlias, botName, inputStream, userId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_runtime_service( + "POST", + "/bot/$(botName)/alias/$(botAlias)/user/$(userId)/content", + Dict{String,Any}( + "inputStream" => inputStream, + "headers" => Dict{String,Any}("Content-Type" => Content_Type), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_runtime_service( - "POST", - "/bot/$(botName)/alias/$(botAlias)/user/$(userId)/content", - Dict{String,Any}( - "inputStream" => inputStream, - "headers" => Dict{String,Any}("Content-Type" => Content_Type), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function post_content( Content_Type, botAlias, @@ -285,17 +278,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sessionAttributes"`: Application-specific information passed between Amazon Lex and a client application. For more information, see Setting Session Attributes. """ -function post_text( +post_text( botAlias, botName, inputText, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = lex_runtime_service( + "POST", + "/bot/$(botName)/alias/$(botAlias)/user/$(userId)/text", + Dict{String,Any}("inputText" => inputText); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_runtime_service( - "POST", - "/bot/$(botName)/alias/$(botAlias)/user/$(userId)/text", - Dict{String,Any}("inputText" => inputText); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function post_text( botAlias, botName, @@ -360,16 +351,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information. It contains application information passed between Amazon Lex and a client application. """ -function put_session( - botAlias, botName, userId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lex_runtime_service( +put_session(botAlias, botName, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + lex_runtime_service( "POST", "/bot/$(botName)/alias/$(botAlias)/user/$(userId)/session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_session( botAlias, botName, diff --git a/src/services/lex_runtime_v2.jl b/src/services/lex_runtime_v2.jl index cb625a3a2..d8d4e3532 100644 --- a/src/services/lex_runtime_v2.jl +++ b/src/services/lex_runtime_v2.jl @@ -24,20 +24,18 @@ enables for the alias, you receive a BadRequestException. - `session_id`: The identifier of the session to delete. """ -function delete_session( +delete_session( botAliasId, botId, localeId, sessionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_runtime_v2( + "DELETE", + "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_runtime_v2( - "DELETE", - "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_session( botAliasId, botId, @@ -72,20 +70,18 @@ you receive a BadRequestException. - `session_id`: The identifier of the session to return. """ -function get_session( +get_session( botAliasId, botId, localeId, sessionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_runtime_v2( + "GET", + "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_runtime_v2( - "GET", - "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_session( botAliasId, botId, @@ -130,22 +126,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys client application. The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:. """ -function put_session( +put_session( botAliasId, botId, localeId, sessionId, sessionState; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_runtime_v2( + "POST", + "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)", + Dict{String,Any}("sessionState" => sessionState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_runtime_v2( - "POST", - "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)", - Dict{String,Any}("sessionState" => sessionState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_session( botAliasId, botId, @@ -198,22 +192,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys create any request attributes with the prefix x-amz-lex:. - `"sessionState"`: The current state of the dialog between the user and the bot. """ -function recognize_text( +recognize_text( botAliasId, botId, localeId, sessionId, text; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_runtime_v2( + "POST", + "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)/text", + Dict{String,Any}("text" => text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_runtime_v2( - "POST", - "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)/text", - Dict{String,Any}("text" => text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function recognize_text( botAliasId, botId, @@ -292,22 +284,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the user. The sessionState field must be compressed using gzip and then base64 encoded before sending to Amazon Lex V2. """ -function recognize_utterance( +recognize_utterance( Content_Type, botAliasId, botId, localeId, sessionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = lex_runtime_v2( + "POST", + "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)/utterance", + Dict{String,Any}("headers" => Dict{String,Any}("Content-Type" => Content_Type)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lex_runtime_v2( - "POST", - "/bots/$(botId)/botAliases/$(botAliasId)/botLocales/$(localeId)/sessions/$(sessionId)/utterance", - Dict{String,Any}("headers" => Dict{String,Any}("Content-Type" => Content_Type)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function recognize_utterance( Content_Type, botAliasId, diff --git a/src/services/license_manager.jl b/src/services/license_manager.jl index aa3f6f2ea..6082e8fc0 100644 --- a/src/services/license_manager.jl +++ b/src/services/license_manager.jl @@ -14,14 +14,13 @@ Accepts the specified grant. - `grant_arn`: Amazon Resource Name (ARN) of the grant. """ -function accept_grant(GrantArn; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +accept_grant(GrantArn; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "AcceptGrant", Dict{String,Any}("GrantArn" => GrantArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function accept_grant( GrantArn, params::AbstractDict{String}; @@ -50,16 +49,14 @@ Checks in the specified license. Check in a license when it is no longer in use. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Beneficiary"`: License beneficiary. """ -function check_in_license( +check_in_license( LicenseConsumptionToken; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "CheckInLicense", + Dict{String,Any}("LicenseConsumptionToken" => LicenseConsumptionToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CheckInLicense", - Dict{String,Any}("LicenseConsumptionToken" => LicenseConsumptionToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function check_in_license( LicenseConsumptionToken, params::AbstractDict{String}; @@ -100,25 +97,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CheckoutMetadata"`: Information about constraints. - `"NodeId"`: Node ID. """ -function checkout_borrow_license( +checkout_borrow_license( ClientToken, DigitalSignatureMethod, Entitlements, LicenseArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager( + "CheckoutBorrowLicense", + Dict{String,Any}( + "ClientToken" => ClientToken, + "DigitalSignatureMethod" => DigitalSignatureMethod, + "Entitlements" => Entitlements, + "LicenseArn" => LicenseArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CheckoutBorrowLicense", - Dict{String,Any}( - "ClientToken" => ClientToken, - "DigitalSignatureMethod" => DigitalSignatureMethod, - "Entitlements" => Entitlements, - "LicenseArn" => LicenseArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function checkout_borrow_license( ClientToken, DigitalSignatureMethod, @@ -166,27 +161,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Beneficiary"`: License beneficiary. - `"NodeId"`: Node ID. """ -function checkout_license( +checkout_license( CheckoutType, ClientToken, Entitlements, KeyFingerprint, ProductSKU; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager( + "CheckoutLicense", + Dict{String,Any}( + "CheckoutType" => CheckoutType, + "ClientToken" => ClientToken, + "Entitlements" => Entitlements, + "KeyFingerprint" => KeyFingerprint, + "ProductSKU" => ProductSKU, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CheckoutLicense", - Dict{String,Any}( - "CheckoutType" => CheckoutType, - "ClientToken" => ClientToken, - "Entitlements" => Entitlements, - "KeyFingerprint" => KeyFingerprint, - "ProductSKU" => ProductSKU, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function checkout_license( CheckoutType, ClientToken, @@ -238,7 +231,7 @@ User Guide. organization, which will include all accounts across your organization. """ -function create_grant( +create_grant( AllowedOperations, ClientToken, GrantName, @@ -246,21 +239,19 @@ function create_grant( LicenseArn, Principals; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager( + "CreateGrant", + Dict{String,Any}( + "AllowedOperations" => AllowedOperations, + "ClientToken" => ClientToken, + "GrantName" => GrantName, + "HomeRegion" => HomeRegion, + "LicenseArn" => LicenseArn, + "Principals" => Principals, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CreateGrant", - Dict{String,Any}( - "AllowedOperations" => AllowedOperations, - "ClientToken" => ClientToken, - "GrantName" => GrantName, - "HomeRegion" => HomeRegion, - "LicenseArn" => LicenseArn, - "Principals" => Principals, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_grant( AllowedOperations, ClientToken, @@ -313,16 +304,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: Grant status. - `"StatusReason"`: Grant status reason. """ -function create_grant_version( +create_grant_version( ClientToken, GrantArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "CreateGrantVersion", + Dict{String,Any}("ClientToken" => ClientToken, "GrantArn" => GrantArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CreateGrantVersion", - Dict{String,Any}("ClientToken" => ClientToken, "GrantArn" => GrantArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_grant_version( ClientToken, GrantArn, @@ -368,7 +357,7 @@ Creates a license. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LicenseMetadata"`: Information about the license. """ -function create_license( +create_license( Beneficiary, ClientToken, ConsumptionConfiguration, @@ -380,25 +369,23 @@ function create_license( ProductSKU, Validity; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager( + "CreateLicense", + Dict{String,Any}( + "Beneficiary" => Beneficiary, + "ClientToken" => ClientToken, + "ConsumptionConfiguration" => ConsumptionConfiguration, + "Entitlements" => Entitlements, + "HomeRegion" => HomeRegion, + "Issuer" => Issuer, + "LicenseName" => LicenseName, + "ProductName" => ProductName, + "ProductSKU" => ProductSKU, + "Validity" => Validity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CreateLicense", - Dict{String,Any}( - "Beneficiary" => Beneficiary, - "ClientToken" => ClientToken, - "ConsumptionConfiguration" => ConsumptionConfiguration, - "Entitlements" => Entitlements, - "HomeRegion" => HomeRegion, - "Issuer" => Issuer, - "LicenseName" => LicenseName, - "ProductName" => ProductName, - "ProductSKU" => ProductSKU, - "Validity" => Validity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_license( Beneficiary, ClientToken, @@ -474,16 +461,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProductInformationList"`: Product information. - `"Tags"`: Tags to add to the license configuration. """ -function create_license_configuration( +create_license_configuration( LicenseCountingType, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "CreateLicenseConfiguration", + Dict{String,Any}("LicenseCountingType" => LicenseCountingType, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CreateLicenseConfiguration", - Dict{String,Any}("LicenseCountingType" => LicenseCountingType, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_license_configuration( LicenseCountingType, Name, @@ -523,23 +508,21 @@ Creates a new license conversion task. the License Manager User Guide. """ -function create_license_conversion_task_for_resource( +create_license_conversion_task_for_resource( DestinationLicenseContext, ResourceArn, SourceLicenseContext; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager( + "CreateLicenseConversionTaskForResource", + Dict{String,Any}( + "DestinationLicenseContext" => DestinationLicenseContext, + "ResourceArn" => ResourceArn, + "SourceLicenseContext" => SourceLicenseContext, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CreateLicenseConversionTaskForResource", - Dict{String,Any}( - "DestinationLicenseContext" => DestinationLicenseContext, - "ResourceArn" => ResourceArn, - "SourceLicenseContext" => SourceLicenseContext, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_license_conversion_task_for_resource( DestinationLicenseContext, ResourceArn, @@ -588,27 +571,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: Description of the report generator. - `"Tags"`: Tags to add to the report generator. """ -function create_license_manager_report_generator( +create_license_manager_report_generator( ClientToken, ReportContext, ReportFrequency, ReportGeneratorName, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager( + "CreateLicenseManagerReportGenerator", + Dict{String,Any}( + "ClientToken" => ClientToken, + "ReportContext" => ReportContext, + "ReportFrequency" => ReportFrequency, + "ReportGeneratorName" => ReportGeneratorName, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CreateLicenseManagerReportGenerator", - Dict{String,Any}( - "ClientToken" => ClientToken, - "ReportContext" => ReportContext, - "ReportFrequency" => ReportFrequency, - "ReportGeneratorName" => ReportGeneratorName, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_license_manager_report_generator( ClientToken, ReportContext, @@ -664,7 +645,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LicenseMetadata"`: Information about the license. - `"SourceVersion"`: Current version of the license. """ -function create_license_version( +create_license_version( ClientToken, ConsumptionConfiguration, Entitlements, @@ -676,25 +657,23 @@ function create_license_version( Status, Validity; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager( + "CreateLicenseVersion", + Dict{String,Any}( + "ClientToken" => ClientToken, + "ConsumptionConfiguration" => ConsumptionConfiguration, + "Entitlements" => Entitlements, + "HomeRegion" => HomeRegion, + "Issuer" => Issuer, + "LicenseArn" => LicenseArn, + "LicenseName" => LicenseName, + "ProductName" => ProductName, + "Status" => Status, + "Validity" => Validity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "CreateLicenseVersion", - Dict{String,Any}( - "ClientToken" => ClientToken, - "ConsumptionConfiguration" => ConsumptionConfiguration, - "Entitlements" => Entitlements, - "HomeRegion" => HomeRegion, - "Issuer" => Issuer, - "LicenseArn" => LicenseArn, - "LicenseName" => LicenseName, - "ProductName" => ProductName, - "Status" => Status, - "Validity" => Validity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_license_version( ClientToken, ConsumptionConfiguration, @@ -756,16 +735,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TokenProperties"`: Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token. """ -function create_token( - ClientToken, LicenseArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return license_manager( +create_token(ClientToken, LicenseArn; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "CreateToken", Dict{String,Any}("ClientToken" => ClientToken, "LicenseArn" => LicenseArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_token( ClientToken, LicenseArn, @@ -800,14 +776,13 @@ Deletes the specified grant. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"StatusReason"`: The Status reason for the delete request. """ -function delete_grant(GrantArn, Version; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +delete_grant(GrantArn, Version; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "DeleteGrant", Dict{String,Any}("GrantArn" => GrantArn, "Version" => Version); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_grant( GrantArn, Version, @@ -839,16 +814,14 @@ Deletes the specified license. - `source_version`: Current version of the license. """ -function delete_license( +delete_license( LicenseArn, SourceVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "DeleteLicense", + Dict{String,Any}("LicenseArn" => LicenseArn, "SourceVersion" => SourceVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "DeleteLicense", - Dict{String,Any}("LicenseArn" => LicenseArn, "SourceVersion" => SourceVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_license( LicenseArn, SourceVersion, @@ -882,16 +855,14 @@ is in use. - `license_configuration_arn`: ID of the license configuration. """ -function delete_license_configuration( +delete_license_configuration( LicenseConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "DeleteLicenseConfiguration", + Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "DeleteLicenseConfiguration", - Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_license_configuration( LicenseConfigurationArn, params::AbstractDict{String}; @@ -924,18 +895,16 @@ the previous reports from this generator. generator to be deleted. """ -function delete_license_manager_report_generator( +delete_license_manager_report_generator( LicenseManagerReportGeneratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "DeleteLicenseManagerReportGenerator", + Dict{String,Any}( + "LicenseManagerReportGeneratorArn" => LicenseManagerReportGeneratorArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "DeleteLicenseManagerReportGenerator", - Dict{String,Any}( - "LicenseManagerReportGeneratorArn" => LicenseManagerReportGeneratorArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_license_manager_report_generator( LicenseManagerReportGeneratorArn, params::AbstractDict{String}; @@ -967,14 +936,12 @@ Deletes the specified token. Must be called in the license home Region. - `token_id`: Token ID. """ -function delete_token(TokenId; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( - "DeleteToken", - Dict{String,Any}("TokenId" => TokenId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_token(TokenId; aws_config::AbstractAWSConfig=current_aws_config()) = license_manager( + "DeleteToken", + Dict{String,Any}("TokenId" => TokenId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_token( TokenId, params::AbstractDict{String}; @@ -1003,16 +970,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request. Provides an error response if you do not have the required permissions. """ -function extend_license_consumption( +extend_license_consumption( LicenseConsumptionToken; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "ExtendLicenseConsumption", + Dict{String,Any}("LicenseConsumptionToken" => LicenseConsumptionToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "ExtendLicenseConsumption", - Dict{String,Any}("LicenseConsumptionToken" => LicenseConsumptionToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function extend_license_consumption( LicenseConsumptionToken, params::AbstractDict{String}; @@ -1046,14 +1011,13 @@ valid for one hour. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"TokenProperties"`: Token properties to validate against those present in the JWT token. """ -function get_access_token(Token; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +get_access_token(Token; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "GetAccessToken", Dict{String,Any}("Token" => Token); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_access_token( Token, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1078,14 +1042,12 @@ Gets detailed information about the specified grant. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Version"`: Grant version. """ -function get_grant(GrantArn; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( - "GetGrant", - Dict{String,Any}("GrantArn" => GrantArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_grant(GrantArn; aws_config::AbstractAWSConfig=current_aws_config()) = license_manager( + "GetGrant", + Dict{String,Any}("GrantArn" => GrantArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_grant( GrantArn, params::AbstractDict{String}; @@ -1114,14 +1076,13 @@ Gets detailed information about the specified license. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Version"`: License version. """ -function get_license(LicenseArn; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +get_license(LicenseArn; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "GetLicense", Dict{String,Any}("LicenseArn" => LicenseArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_license( LicenseArn, params::AbstractDict{String}; @@ -1147,16 +1108,14 @@ Gets detailed information about the specified license configuration. - `license_configuration_arn`: Amazon Resource Name (ARN) of the license configuration. """ -function get_license_configuration( +get_license_configuration( LicenseConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "GetLicenseConfiguration", + Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "GetLicenseConfiguration", - Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_license_configuration( LicenseConfigurationArn, params::AbstractDict{String}; @@ -1187,16 +1146,14 @@ Gets information about the specified license type conversion task. information on. """ -function get_license_conversion_task( +get_license_conversion_task( LicenseConversionTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "GetLicenseConversionTask", + Dict{String,Any}("LicenseConversionTaskId" => LicenseConversionTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "GetLicenseConversionTask", - Dict{String,Any}("LicenseConversionTaskId" => LicenseConversionTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_license_conversion_task( LicenseConversionTaskId, params::AbstractDict{String}; @@ -1227,18 +1184,16 @@ Gets information about the specified report generator. generator. """ -function get_license_manager_report_generator( +get_license_manager_report_generator( LicenseManagerReportGeneratorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "GetLicenseManagerReportGenerator", + Dict{String,Any}( + "LicenseManagerReportGeneratorArn" => LicenseManagerReportGeneratorArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "GetLicenseManagerReportGenerator", - Dict{String,Any}( - "LicenseManagerReportGeneratorArn" => LicenseManagerReportGeneratorArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_license_manager_report_generator( LicenseManagerReportGeneratorArn, params::AbstractDict{String}; @@ -1270,14 +1225,13 @@ Gets detailed information about the usage of the specified license. - `license_arn`: Amazon Resource Name (ARN) of the license. """ -function get_license_usage(LicenseArn; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +get_license_usage(LicenseArn; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "GetLicenseUsage", Dict{String,Any}("LicenseArn" => LicenseArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_license_usage( LicenseArn, params::AbstractDict{String}; @@ -1300,11 +1254,10 @@ end Gets the License Manager settings for the current Region. """ -function get_service_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +get_service_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "GetServiceSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_service_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1329,16 +1282,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_associations_for_license_configuration( +list_associations_for_license_configuration( LicenseConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "ListAssociationsForLicenseConfiguration", + Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "ListAssociationsForLicenseConfiguration", - Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_associations_for_license_configuration( LicenseConfigurationArn, params::AbstractDict{String}; @@ -1372,11 +1323,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_distributed_grants(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +list_distributed_grants(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "ListDistributedGrants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_distributed_grants( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1402,16 +1352,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_failures_for_license_configuration_operations( +list_failures_for_license_configuration_operations( LicenseConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "ListFailuresForLicenseConfigurationOperations", + Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "ListFailuresForLicenseConfigurationOperations", - Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_failures_for_license_configuration_operations( LicenseConfigurationArn, params::AbstractDict{String}; @@ -1450,11 +1398,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_license_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +list_license_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "ListLicenseConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_license_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1478,11 +1425,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_license_conversion_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +list_license_conversion_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "ListLicenseConversionTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_license_conversion_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1507,15 +1453,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_license_manager_report_generators(; +list_license_manager_report_generators(; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "ListLicenseManagerReportGenerators"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "ListLicenseManagerReportGenerators"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_license_manager_report_generators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1542,16 +1486,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_license_specifications_for_resource( +list_license_specifications_for_resource( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "ListLicenseSpecificationsForResource", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "ListLicenseSpecificationsForResource", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_license_specifications_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1581,16 +1523,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_license_versions( - LicenseArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return license_manager( +list_license_versions(LicenseArn; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "ListLicenseVersions", Dict{String,Any}("LicenseArn" => LicenseArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_license_versions( LicenseArn, params::AbstractDict{String}; @@ -1620,11 +1559,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_licenses(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( - "ListLicenses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_licenses(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager("ListLicenses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_licenses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1649,11 +1585,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_received_grants(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +list_received_grants(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "ListReceivedGrants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_received_grants( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1678,16 +1613,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_received_grants_for_organization( +list_received_grants_for_organization( LicenseArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "ListReceivedGrantsForOrganization", + Dict{String,Any}("LicenseArn" => LicenseArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "ListReceivedGrantsForOrganization", - Dict{String,Any}("LicenseArn" => LicenseArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_received_grants_for_organization( LicenseArn, params::AbstractDict{String}; @@ -1717,11 +1650,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_received_licenses(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +list_received_licenses(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "ListReceivedLicenses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_received_licenses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1746,15 +1678,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_received_licenses_for_organization(; +list_received_licenses_for_organization(; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "ListReceivedLicensesForOrganization"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "ListReceivedLicensesForOrganization"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_received_licenses_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1787,11 +1717,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_resource_inventory(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +list_resource_inventory(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "ListResourceInventory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_resource_inventory( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1813,16 +1742,13 @@ Lists the tags for the specified license configuration. - `resource_arn`: Amazon Resource Name (ARN) of the license configuration. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return license_manager( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1852,11 +1778,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Token for the next set of results. - `"TokenIds"`: Token IDs. """ -function list_tokens(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( - "ListTokens"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tokens(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager("ListTokens"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tokens( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1887,16 +1810,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_usage_for_license_configuration( +list_usage_for_license_configuration( LicenseConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "ListUsageForLicenseConfiguration", + Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "ListUsageForLicenseConfiguration", - Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_usage_for_license_configuration( LicenseConfigurationArn, params::AbstractDict{String}; @@ -1926,14 +1847,13 @@ Rejects the specified grant. - `grant_arn`: Amazon Resource Name (ARN) of the grant. """ -function reject_grant(GrantArn; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +reject_grant(GrantArn; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "RejectGrant", Dict{String,Any}("GrantArn" => GrantArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reject_grant( GrantArn, params::AbstractDict{String}; @@ -1960,14 +1880,13 @@ Adds the specified tags to the specified license configuration. - `tags`: One or more tags. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1999,16 +1918,13 @@ Removes the specified tags from the specified license configuration. - `tag_keys`: Keys identifying the tags to remove. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return license_manager( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2051,16 +1967,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: New name of the license configuration. - `"ProductInformationList"`: New product information. """ -function update_license_configuration( +update_license_configuration( LicenseConfigurationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "UpdateLicenseConfiguration", + Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "UpdateLicenseConfiguration", - Dict{String,Any}("LicenseConfigurationArn" => LicenseConfigurationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_license_configuration( LicenseConfigurationArn, params::AbstractDict{String}; @@ -2104,7 +2018,7 @@ generating new reports within 60 minutes of being updated. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: Description of the report generator. """ -function update_license_manager_report_generator( +update_license_manager_report_generator( ClientToken, LicenseManagerReportGeneratorArn, ReportContext, @@ -2112,21 +2026,19 @@ function update_license_manager_report_generator( ReportGeneratorName, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager( + "UpdateLicenseManagerReportGenerator", + Dict{String,Any}( + "ClientToken" => ClientToken, + "LicenseManagerReportGeneratorArn" => LicenseManagerReportGeneratorArn, + "ReportContext" => ReportContext, + "ReportFrequency" => ReportFrequency, + "ReportGeneratorName" => ReportGeneratorName, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "UpdateLicenseManagerReportGenerator", - Dict{String,Any}( - "ClientToken" => ClientToken, - "LicenseManagerReportGeneratorArn" => LicenseManagerReportGeneratorArn, - "ReportContext" => ReportContext, - "ReportFrequency" => ReportFrequency, - "ReportGeneratorName" => ReportGeneratorName, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_license_manager_report_generator( ClientToken, LicenseManagerReportGeneratorArn, @@ -2175,16 +2087,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AddLicenseSpecifications"`: ARNs of the license configurations to add. - `"RemoveLicenseSpecifications"`: ARNs of the license configurations to remove. """ -function update_license_specifications_for_resource( +update_license_specifications_for_resource( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager( + "UpdateLicenseSpecificationsForResource", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager( - "UpdateLicenseSpecificationsForResource", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_license_specifications_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2216,11 +2126,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnsTopicArn"`: Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager alerts. """ -function update_service_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager( +update_service_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager( "UpdateServiceSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_service_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/license_manager_linux_subscriptions.jl b/src/services/license_manager_linux_subscriptions.jl index d03d39095..7fd75fe89 100644 --- a/src/services/license_manager_linux_subscriptions.jl +++ b/src/services/license_manager_linux_subscriptions.jl @@ -4,21 +4,102 @@ using AWS.AWSServices: license_manager_linux_subscriptions using AWS.Compat using AWS.UUIDs +""" + deregister_subscription_provider(subscription_provider_arn) + deregister_subscription_provider(subscription_provider_arn, params::Dict{String,<:Any}) + +Remove a third-party subscription provider from the Bring Your Own License (BYOL) +subscriptions registered to your account. + +# Arguments +- `subscription_provider_arn`: The Amazon Resource Name (ARN) of the subscription provider + resource to deregister. + +""" +deregister_subscription_provider( + SubscriptionProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_linux_subscriptions( + "POST", + "/subscription/DeregisterSubscriptionProvider", + Dict{String,Any}("SubscriptionProviderArn" => SubscriptionProviderArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function deregister_subscription_provider( + SubscriptionProviderArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return license_manager_linux_subscriptions( + "POST", + "/subscription/DeregisterSubscriptionProvider", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("SubscriptionProviderArn" => SubscriptionProviderArn), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_registered_subscription_provider(subscription_provider_arn) + get_registered_subscription_provider(subscription_provider_arn, params::Dict{String,<:Any}) + +Get details for a Bring Your Own License (BYOL) subscription that's registered to your +account. + +# Arguments +- `subscription_provider_arn`: The Amazon Resource Name (ARN) of the BYOL registration + resource to get details for. + +""" +get_registered_subscription_provider( + SubscriptionProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_linux_subscriptions( + "POST", + "/subscription/GetRegisteredSubscriptionProvider", + Dict{String,Any}("SubscriptionProviderArn" => SubscriptionProviderArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_registered_subscription_provider( + SubscriptionProviderArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return license_manager_linux_subscriptions( + "POST", + "/subscription/GetRegisteredSubscriptionProvider", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("SubscriptionProviderArn" => SubscriptionProviderArn), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ get_service_settings() get_service_settings(params::Dict{String,<:Any}) -Lists the Linux subscriptions service settings. +Lists the Linux subscriptions service settings for your account. """ -function get_service_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager_linux_subscriptions( +get_service_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager_linux_subscriptions( "POST", "/subscription/GetServiceSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_service_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -40,26 +121,25 @@ subscriptions. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"Filters"`: An array of structures that you can use to filter the results to those that - match one or more sets of key-value pairs that you specify. For example, you can filter by - the name of AmiID with an optional operator to see subscriptions that match, partially - match, or don't match a certain Amazon Machine Image (AMI) ID. The valid names for this - filter are: AmiID InstanceID AccountID Status Region UsageOperation - ProductCode InstanceType The valid Operators for this filter are: contains - equals Notequal -- `"MaxResults"`: Maximum number of results to return in a single call. -- `"NextToken"`: Token for the next set of results. +- `"Filters"`: An array of structures that you can use to filter the results by your + specified criteria. For example, you can specify Region in the Name, with the contains + operator to list all subscriptions that match a partial string in the Value, such as + us-west. For each filter, you can specify one of the following values for the Name key to + streamline results: AccountID AmiID DualSubscription InstanceID + InstanceType ProductCode Region Status UsageOperation For each filter, + you can use one of the following Operator values to define the behavior of the filter: + contains equals Notequal +- `"MaxResults"`: The maximum items to return in a request. +- `"NextToken"`: A token to specify where to start paginating. This is the nextToken from a + previously truncated response. """ -function list_linux_subscription_instances(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return license_manager_linux_subscriptions( +list_linux_subscription_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager_linux_subscriptions( "POST", "/subscription/ListLinuxSubscriptionInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_linux_subscription_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -88,17 +168,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys partially match, or don't match a certain subscription's name. The valid names for this filter are: Subscription The valid Operators for this filter are: contains equals Notequal -- `"MaxResults"`: Maximum number of results to return in a single call. -- `"NextToken"`: Token for the next set of results. +- `"MaxResults"`: The maximum items to return in a request. +- `"NextToken"`: A token to specify where to start paginating. This is the nextToken from a + previously truncated response. """ -function list_linux_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager_linux_subscriptions( +list_linux_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager_linux_subscriptions( "POST", "/subscription/ListLinuxSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_linux_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -111,6 +191,199 @@ function list_linux_subscriptions( ) end +""" + list_registered_subscription_providers() + list_registered_subscription_providers(params::Dict{String,<:Any}) + +List Bring Your Own License (BYOL) subscription registration resources for your account. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"MaxResults"`: The maximum items to return in a request. +- `"NextToken"`: A token to specify where to start paginating. This is the nextToken from a + previously truncated response. +- `"SubscriptionProviderSources"`: To filter your results, specify which subscription + providers to return in the list. +""" +list_registered_subscription_providers(; + aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_linux_subscriptions( + "POST", + "/subscription/ListRegisteredSubscriptionProviders"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_registered_subscription_providers( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return license_manager_linux_subscriptions( + "POST", + "/subscription/ListRegisteredSubscriptionProviders", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_tags_for_resource(resource_arn) + list_tags_for_resource(resource_arn, params::Dict{String,<:Any}) + +List the metadata tags that are assigned to the specified Amazon Web Services resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource for which to list metadata + tags. + +""" +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager_linux_subscriptions( + "GET", + "/tags/$(resourceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_tags_for_resource( + resourceArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return license_manager_linux_subscriptions( + "GET", + "/tags/$(resourceArn)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + register_subscription_provider(secret_arn, subscription_provider_source) + register_subscription_provider(secret_arn, subscription_provider_source, params::Dict{String,<:Any}) + +Register the supported third-party subscription provider for your Bring Your Own License +(BYOL) subscription. + +# Arguments +- `secret_arn`: The Amazon Resource Name (ARN) of the secret where you've stored your + subscription provider's access token. For RHEL subscriptions managed through the Red Hat + Subscription Manager (RHSM), the secret contains your Red Hat Offline token. +- `subscription_provider_source`: The supported Linux subscription provider to register. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"Tags"`: The metadata tags to assign to your registered Linux subscription provider + resource. +""" +register_subscription_provider( + SecretArn, + SubscriptionProviderSource; + aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager_linux_subscriptions( + "POST", + "/subscription/RegisterSubscriptionProvider", + Dict{String,Any}( + "SecretArn" => SecretArn, + "SubscriptionProviderSource" => SubscriptionProviderSource, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function register_subscription_provider( + SecretArn, + SubscriptionProviderSource, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return license_manager_linux_subscriptions( + "POST", + "/subscription/RegisterSubscriptionProvider", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "SecretArn" => SecretArn, + "SubscriptionProviderSource" => SubscriptionProviderSource, + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + tag_resource(resource_arn, tags) + tag_resource(resource_arn, tags, params::Dict{String,<:Any}) + +Add metadata tags to the specified Amazon Web Services resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the Amazon Web Services resource to + which to add the specified metadata tags. +- `tags`: The metadata tags to assign to the Amazon Web Services resource. Tags are + formatted as key value pairs. + +""" +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager_linux_subscriptions( + "PUT", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function tag_resource( + resourceArn, + tags, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return license_manager_linux_subscriptions( + "PUT", + "/tags/$(resourceArn)", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("tags" => tags), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + untag_resource(resource_arn, tag_keys) + untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any}) + +Remove one or more metadata tag from the specified Amazon Web Services resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the Amazon Web Services resource to + remove the metadata tags from. +- `tag_keys`: A list of metadata tag keys to remove from the requested resource. + +""" +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager_linux_subscriptions( + "DELETE", + "/tags/$(resourceArn)", + Dict{String,Any}("tagKeys" => tagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function untag_resource( + resourceArn, + tagKeys, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return license_manager_linux_subscriptions( + "DELETE", + "/tags/$(resourceArn)", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("tagKeys" => tagKeys), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ update_service_settings(linux_subscriptions_discovery, linux_subscriptions_discovery_settings) update_service_settings(linux_subscriptions_discovery, linux_subscriptions_discovery_settings, params::Dict{String,<:Any}) @@ -130,22 +403,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subscriptions. If you allow updates, you can aggregate Linux subscription data in more than one home Region. """ -function update_service_settings( +update_service_settings( LinuxSubscriptionsDiscovery, LinuxSubscriptionsDiscoverySettings; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager_linux_subscriptions( + "POST", + "/subscription/UpdateServiceSettings", + Dict{String,Any}( + "LinuxSubscriptionsDiscovery" => LinuxSubscriptionsDiscovery, + "LinuxSubscriptionsDiscoverySettings" => LinuxSubscriptionsDiscoverySettings, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_linux_subscriptions( - "POST", - "/subscription/UpdateServiceSettings", - Dict{String,Any}( - "LinuxSubscriptionsDiscovery" => LinuxSubscriptionsDiscovery, - "LinuxSubscriptionsDiscoverySettings" => LinuxSubscriptionsDiscoverySettings, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_settings( LinuxSubscriptionsDiscovery, LinuxSubscriptionsDiscoverySettings, diff --git a/src/services/license_manager_user_subscriptions.jl b/src/services/license_manager_user_subscriptions.jl index 7c2e4dc83..c6a8ab367 100644 --- a/src/services/license_manager_user_subscriptions.jl +++ b/src/services/license_manager_user_subscriptions.jl @@ -23,24 +23,22 @@ Services Billing User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Domain"`: The domain name of the user. """ -function associate_user( +associate_user( IdentityProvider, InstanceId, Username; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager_user_subscriptions( + "POST", + "/user/AssociateUser", + Dict{String,Any}( + "IdentityProvider" => IdentityProvider, + "InstanceId" => InstanceId, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/user/AssociateUser", - Dict{String,Any}( - "IdentityProvider" => IdentityProvider, - "InstanceId" => InstanceId, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_user( IdentityProvider, InstanceId, @@ -78,17 +76,15 @@ Deregisters the identity provider from providing user-based subscriptions. - `product`: The name of the user-based subscription product. """ -function deregister_identity_provider( +deregister_identity_provider( IdentityProvider, Product; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_user_subscriptions( + "POST", + "/identity-provider/DeregisterIdentityProvider", + Dict{String,Any}("IdentityProvider" => IdentityProvider, "Product" => Product); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/identity-provider/DeregisterIdentityProvider", - Dict{String,Any}("IdentityProvider" => IdentityProvider, "Product" => Product); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_identity_provider( IdentityProvider, Product, @@ -127,24 +123,22 @@ Disassociates the user from an EC2 instance providing user-based subscriptions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Domain"`: The domain name of the user. """ -function disassociate_user( +disassociate_user( IdentityProvider, InstanceId, Username; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager_user_subscriptions( + "POST", + "/user/DisassociateUser", + Dict{String,Any}( + "IdentityProvider" => IdentityProvider, + "InstanceId" => InstanceId, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/user/DisassociateUser", - Dict{String,Any}( - "IdentityProvider" => IdentityProvider, - "InstanceId" => InstanceId, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_user( IdentityProvider, InstanceId, @@ -182,14 +176,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_identity_providers(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager_user_subscriptions( +list_identity_providers(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager_user_subscriptions( "POST", "/identity-provider/ListIdentityProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_identity_providers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -215,14 +208,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return license_manager_user_subscriptions( +list_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + license_manager_user_subscriptions( "POST", "/instance/ListInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -252,17 +244,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_product_subscriptions( +list_product_subscriptions( IdentityProvider, Product; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_user_subscriptions( + "POST", + "/user/ListProductSubscriptions", + Dict{String,Any}("IdentityProvider" => IdentityProvider, "Product" => Product); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/user/ListProductSubscriptions", - Dict{String,Any}("IdentityProvider" => IdentityProvider, "Product" => Product); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_product_subscriptions( IdentityProvider, Product, @@ -303,19 +293,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of results to return in a single call. - `"NextToken"`: Token for the next set of results. """ -function list_user_associations( +list_user_associations( IdentityProvider, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_user_subscriptions( + "POST", + "/user/ListUserAssociations", + Dict{String,Any}("IdentityProvider" => IdentityProvider, "InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/user/ListUserAssociations", - Dict{String,Any}( - "IdentityProvider" => IdentityProvider, "InstanceId" => InstanceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_user_associations( IdentityProvider, InstanceId, @@ -354,17 +340,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Settings"`: The registered identity provider’s product related configuration settings such as the subnets to provision VPC endpoints. """ -function register_identity_provider( +register_identity_provider( IdentityProvider, Product; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_user_subscriptions( + "POST", + "/identity-provider/RegisterIdentityProvider", + Dict{String,Any}("IdentityProvider" => IdentityProvider, "Product" => Product); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/identity-provider/RegisterIdentityProvider", - Dict{String,Any}("IdentityProvider" => IdentityProvider, "Product" => Product); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_identity_provider( IdentityProvider, Product, @@ -407,21 +391,19 @@ Web Services Billing User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Domain"`: The domain name of the user. """ -function start_product_subscription( +start_product_subscription( IdentityProvider, Product, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_user_subscriptions( + "POST", + "/user/StartProductSubscription", + Dict{String,Any}( + "IdentityProvider" => IdentityProvider, + "Product" => Product, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/user/StartProductSubscription", - Dict{String,Any}( - "IdentityProvider" => IdentityProvider, - "Product" => Product, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_product_subscription( IdentityProvider, Product, @@ -463,21 +445,19 @@ Stops a product subscription for a user with the specified identity provider. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Domain"`: The domain name of the user. """ -function stop_product_subscription( +stop_product_subscription( IdentityProvider, Product, Username; aws_config::AbstractAWSConfig=current_aws_config() +) = license_manager_user_subscriptions( + "POST", + "/user/StopProductSubscription", + Dict{String,Any}( + "IdentityProvider" => IdentityProvider, + "Product" => Product, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/user/StopProductSubscription", - Dict{String,Any}( - "IdentityProvider" => IdentityProvider, - "Product" => Product, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_product_subscription( IdentityProvider, Product, @@ -520,24 +500,22 @@ Updates additional product configuration settings for the registered identity pr VPC endpoints. """ -function update_identity_provider_settings( +update_identity_provider_settings( IdentityProvider, Product, UpdateSettings; aws_config::AbstractAWSConfig=current_aws_config(), +) = license_manager_user_subscriptions( + "POST", + "/identity-provider/UpdateIdentityProviderSettings", + Dict{String,Any}( + "IdentityProvider" => IdentityProvider, + "Product" => Product, + "UpdateSettings" => UpdateSettings, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return license_manager_user_subscriptions( - "POST", - "/identity-provider/UpdateIdentityProviderSettings", - Dict{String,Any}( - "IdentityProvider" => IdentityProvider, - "Product" => Product, - "UpdateSettings" => UpdateSettings, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_identity_provider_settings( IdentityProvider, Product, diff --git a/src/services/lightsail.jl b/src/services/lightsail.jl index ec5c5d362..cba5c8d7e 100644 --- a/src/services/lightsail.jl +++ b/src/services/lightsail.jl @@ -14,16 +14,13 @@ Allocates a static IP address. - `static_ip_name`: The name of the static IP address. """ -function allocate_static_ip( - staticIpName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +allocate_static_ip(staticIpName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "AllocateStaticIp", Dict{String,Any}("staticIpName" => staticIpName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function allocate_static_ip( staticIpName, params::AbstractDict{String}; @@ -65,18 +62,16 @@ distributions are located in the us-east-1 Region. specify. """ -function attach_certificate_to_distribution( +attach_certificate_to_distribution( certificateName, distributionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "AttachCertificateToDistribution", + Dict{String,Any}( + "certificateName" => certificateName, "distributionName" => distributionName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "AttachCertificateToDistribution", - Dict{String,Any}( - "certificateName" => certificateName, "distributionName" => distributionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_certificate_to_distribution( certificateName, distributionName, @@ -121,18 +116,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys volume to a virtual computer. The default value is False. This value only applies to Lightsail for Research resources. """ -function attach_disk( +attach_disk( diskName, diskPath, instanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "AttachDisk", + Dict{String,Any}( + "diskName" => diskName, "diskPath" => diskPath, "instanceName" => instanceName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "AttachDisk", - Dict{String,Any}( - "diskName" => diskName, "diskPath" => diskPath, "instanceName" => instanceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_disk( diskName, diskPath, @@ -177,18 +170,16 @@ Lightsail Developer Guide. - `load_balancer_name`: The name of the load balancer. """ -function attach_instances_to_load_balancer( +attach_instances_to_load_balancer( instanceNames, loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "AttachInstancesToLoadBalancer", + Dict{String,Any}( + "instanceNames" => instanceNames, "loadBalancerName" => loadBalancerName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "AttachInstancesToLoadBalancer", - Dict{String,Any}( - "instanceNames" => instanceNames, "loadBalancerName" => loadBalancerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_instances_to_load_balancer( instanceNames, loadBalancerName, @@ -230,18 +221,16 @@ For more information, see the Amazon Lightsail Developer Guide. SSL/TLS certificate. """ -function attach_load_balancer_tls_certificate( +attach_load_balancer_tls_certificate( certificateName, loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "AttachLoadBalancerTlsCertificate", + Dict{String,Any}( + "certificateName" => certificateName, "loadBalancerName" => loadBalancerName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "AttachLoadBalancerTlsCertificate", - Dict{String,Any}( - "certificateName" => certificateName, "loadBalancerName" => loadBalancerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_load_balancer_tls_certificate( certificateName, loadBalancerName, @@ -276,16 +265,14 @@ Attaches a static IP address to a specific Amazon Lightsail instance. - `static_ip_name`: The name of the static IP. """ -function attach_static_ip( +attach_static_ip( instanceName, staticIpName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "AttachStaticIp", + Dict{String,Any}("instanceName" => instanceName, "staticIpName" => staticIpName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "AttachStaticIp", - Dict{String,Any}("instanceName" => instanceName, "staticIpName" => staticIpName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_static_ip( instanceName, staticIpName, @@ -321,16 +308,14 @@ instanceName. For more information, see the Amazon Lightsail Developer Guide. - `port_info`: An object to describe the ports to close for the specified instance. """ -function close_instance_public_ports( +close_instance_public_ports( instanceName, portInfo; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CloseInstancePublicPorts", + Dict{String,Any}("instanceName" => instanceName, "portInfo" => portInfo); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CloseInstancePublicPorts", - Dict{String,Any}("instanceName" => instanceName, "portInfo" => portInfo); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function close_instance_public_ports( instanceName, portInfo, @@ -391,18 +376,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Amazon Lightsail Developer Guide. """ -function copy_snapshot( +copy_snapshot( sourceRegion, targetSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CopySnapshot", + Dict{String,Any}( + "sourceRegion" => sourceRegion, "targetSnapshotName" => targetSnapshotName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CopySnapshot", - Dict{String,Any}( - "sourceRegion" => sourceRegion, "targetSnapshotName" => targetSnapshotName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_snapshot( sourceRegion, targetSnapshotName, @@ -452,16 +435,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the bucket during creation. Use the TagResource action to tag the bucket after it's created. """ -function create_bucket( - bucketName, bundleId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +create_bucket(bucketName, bundleId; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "CreateBucket", Dict{String,Any}("bucketName" => bucketName, "bundleId" => bundleId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_bucket( bucketName, bundleId, @@ -501,16 +481,13 @@ access key later. If you lose the secret access key, you must create a new acces access to. """ -function create_bucket_access_key( - bucketName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +create_bucket_access_key(bucketName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "CreateBucketAccessKey", Dict{String,Any}("bucketName" => bucketName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_bucket_access_key( bucketName, params::AbstractDict{String}; @@ -553,16 +530,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the certificate during create. Use the TagResource action to tag a resource after it's created. """ -function create_certificate( +create_certificate( certificateName, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateCertificate", + Dict{String,Any}("certificateName" => certificateName, "domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateCertificate", - Dict{String,Any}("certificateName" => certificateName, "domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_certificate( certificateName, domainName, @@ -602,16 +577,14 @@ stack operation again with the same export snapshot record. invalid parameter error if you pass more than one instance entry in this array. """ -function create_cloud_formation_stack( +create_cloud_formation_stack( instances; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateCloudFormationStack", + Dict{String,Any}("instances" => instances); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateCloudFormationStack", - Dict{String,Any}("instances" => instances); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cloud_formation_stack( instances, params::AbstractDict{String}; @@ -655,16 +628,14 @@ Lightsail. information about notifications in Amazon Lightsail, see Notifications in Amazon Lightsail. """ -function create_contact_method( +create_contact_method( contactEndpoint, protocol; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateContactMethod", + Dict{String,Any}("contactEndpoint" => contactEndpoint, "protocol" => protocol); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateContactMethod", - Dict{String,Any}("contactEndpoint" => contactEndpoint, "protocol" => protocol); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_contact_method( contactEndpoint, protocol, @@ -747,16 +718,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Use the TagResource action to tag a resource after it's created. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide. """ -function create_container_service( +create_container_service( power, scale, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateContainerService", + Dict{String,Any}("power" => power, "scale" => scale, "serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateContainerService", - Dict{String,Any}("power" => power, "scale" => scale, "serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_container_service( power, scale, @@ -804,16 +773,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"publicEndpoint"`: An object that describes the settings of the public endpoint for the container service. """ -function create_container_service_deployment( +create_container_service_deployment( serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateContainerServiceDeployment", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateContainerServiceDeployment", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_container_service_deployment( serviceName, params::AbstractDict{String}; @@ -849,15 +816,13 @@ container service. For more information, see Pushing and managing container imag Amazon Lightsail container services in the Amazon Lightsail Developer Guide. """ -function create_container_service_registry_login(; +create_container_service_registry_login(; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateContainerServiceRegistryLogin"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateContainerServiceRegistryLogin"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_container_service_registry_login( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -891,20 +856,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created. """ -function create_disk( +create_disk( availabilityZone, diskName, sizeInGb; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateDisk", + Dict{String,Any}( + "availabilityZone" => availabilityZone, + "diskName" => diskName, + "sizeInGb" => sizeInGb, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateDisk", - Dict{String,Any}( - "availabilityZone" => availabilityZone, - "diskName" => diskName, - "sizeInGb" => sizeInGb, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_disk( availabilityZone, diskName, @@ -976,20 +939,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide. """ -function create_disk_from_snapshot( +create_disk_from_snapshot( availabilityZone, diskName, sizeInGb; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateDiskFromSnapshot", + Dict{String,Any}( + "availabilityZone" => availabilityZone, + "diskName" => diskName, + "sizeInGb" => sizeInGb, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateDiskFromSnapshot", - Dict{String,Any}( - "availabilityZone" => availabilityZone, - "diskName" => diskName, - "sizeInGb" => sizeInGb, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_disk_from_snapshot( availabilityZone, diskName, @@ -1055,16 +1016,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created. """ -function create_disk_snapshot( - diskSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +create_disk_snapshot(diskSnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "CreateDiskSnapshot", Dict{String,Any}("diskSnapshotName" => diskSnapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_disk_snapshot( diskSnapshotName, params::AbstractDict{String}; @@ -1119,25 +1077,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"viewerMinimumTlsProtocolVersion"`: The minimum TLS protocol version for the SSL/TLS certificate. """ -function create_distribution( +create_distribution( bundleId, defaultCacheBehavior, distributionName, origin; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "CreateDistribution", + Dict{String,Any}( + "bundleId" => bundleId, + "defaultCacheBehavior" => defaultCacheBehavior, + "distributionName" => distributionName, + "origin" => origin, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateDistribution", - Dict{String,Any}( - "bundleId" => bundleId, - "defaultCacheBehavior" => defaultCacheBehavior, - "distributionName" => distributionName, - "origin" => origin, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_distribution( bundleId, defaultCacheBehavior, @@ -1181,14 +1137,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created. """ -function create_domain(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "CreateDomain", - Dict{String,Any}("domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_domain(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "CreateDomain", + Dict{String,Any}("domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_domain( domainName, params::AbstractDict{String}; @@ -1221,16 +1175,14 @@ name. For more information, see the Amazon Lightsail Developer Guide. entry. """ -function create_domain_entry( +create_domain_entry( domainEntry, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateDomainEntry", + Dict{String,Any}("domainEntry" => domainEntry, "domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateDomainEntry", - Dict{String,Any}("domainEntry" => domainEntry, "domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_domain_entry( domainEntry, domainName, @@ -1264,16 +1216,14 @@ virtual computer's operating session. Use StartGUISession to open the session. - `resource_name`: The resource name. """ -function create_guisession_access_details( +create_guisession_access_details( resourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateGUISessionAccessDetails", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateGUISessionAccessDetails", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_guisession_access_details( resourceName, params::AbstractDict{String}; @@ -1307,18 +1257,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created. """ -function create_instance_snapshot( +create_instance_snapshot( instanceName, instanceSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateInstanceSnapshot", + Dict{String,Any}( + "instanceName" => instanceName, "instanceSnapshotName" => instanceSnapshotName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateInstanceSnapshot", - Dict{String,Any}( - "instanceName" => instanceName, "instanceSnapshotName" => instanceSnapshotName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instance_snapshot( instanceName, instanceSnapshotName, @@ -1384,25 +1332,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CentOS use yum, Debian and Ubuntu use apt-get, and FreeBSD uses pkg. For a complete list, see the Amazon Lightsail Developer Guide. """ -function create_instances( +create_instances( availabilityZone, blueprintId, bundleId, instanceNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "CreateInstances", + Dict{String,Any}( + "availabilityZone" => availabilityZone, + "blueprintId" => blueprintId, + "bundleId" => bundleId, + "instanceNames" => instanceNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateInstances", - Dict{String,Any}( - "availabilityZone" => availabilityZone, - "blueprintId" => blueprintId, - "bundleId" => bundleId, - "instanceNames" => instanceNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instances( availabilityZone, blueprintId, @@ -1488,23 +1434,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Ubuntu use apt-get, and FreeBSD uses pkg. For a complete list, see the Amazon Lightsail Developer Guide. """ -function create_instances_from_snapshot( +create_instances_from_snapshot( availabilityZone, bundleId, instanceNames; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "CreateInstancesFromSnapshot", + Dict{String,Any}( + "availabilityZone" => availabilityZone, + "bundleId" => bundleId, + "instanceNames" => instanceNames, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateInstancesFromSnapshot", - Dict{String,Any}( - "availabilityZone" => availabilityZone, - "bundleId" => bundleId, - "instanceNames" => instanceNames, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instances_from_snapshot( availabilityZone, bundleId, @@ -1548,14 +1492,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created. """ -function create_key_pair(keyPairName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +create_key_pair(keyPairName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "CreateKeyPair", Dict{String,Any}("keyPairName" => keyPairName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_key_pair( keyPairName, params::AbstractDict{String}; @@ -1611,18 +1554,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information about load balancer TLS policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer Guide. """ -function create_load_balancer( +create_load_balancer( instancePort, loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateLoadBalancer", + Dict{String,Any}( + "instancePort" => instancePort, "loadBalancerName" => loadBalancerName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateLoadBalancer", - Dict{String,Any}( - "instancePort" => instancePort, "loadBalancerName" => loadBalancerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_load_balancer( instancePort, loadBalancerName, @@ -1673,23 +1614,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created. """ -function create_load_balancer_tls_certificate( +create_load_balancer_tls_certificate( certificateDomainName, certificateName, loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "CreateLoadBalancerTlsCertificate", + Dict{String,Any}( + "certificateDomainName" => certificateDomainName, + "certificateName" => certificateName, + "loadBalancerName" => loadBalancerName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateLoadBalancerTlsCertificate", - Dict{String,Any}( - "certificateDomainName" => certificateDomainName, - "certificateName" => certificateName, - "loadBalancerName" => loadBalancerName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_load_balancer_tls_certificate( certificateDomainName, certificateName, @@ -1788,27 +1727,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created. """ -function create_relational_database( +create_relational_database( masterDatabaseName, masterUsername, relationalDatabaseBlueprintId, relationalDatabaseBundleId, relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "CreateRelationalDatabase", + Dict{String,Any}( + "masterDatabaseName" => masterDatabaseName, + "masterUsername" => masterUsername, + "relationalDatabaseBlueprintId" => relationalDatabaseBlueprintId, + "relationalDatabaseBundleId" => relationalDatabaseBundleId, + "relationalDatabaseName" => relationalDatabaseName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateRelationalDatabase", - Dict{String,Any}( - "masterDatabaseName" => masterDatabaseName, - "masterUsername" => masterUsername, - "relationalDatabaseBlueprintId" => relationalDatabaseBlueprintId, - "relationalDatabaseBundleId" => relationalDatabaseBundleId, - "relationalDatabaseName" => relationalDatabaseName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_relational_database( masterDatabaseName, masterUsername, @@ -1883,16 +1820,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys backup time. A value of true restores from the latest backup time. Default: false Constraints: Cannot be specified if the restore time parameter is provided. """ -function create_relational_database_from_snapshot( +create_relational_database_from_snapshot( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "CreateRelationalDatabaseFromSnapshot", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateRelationalDatabaseFromSnapshot", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_relational_database_from_snapshot( relationalDatabaseName, params::AbstractDict{String}; @@ -1932,21 +1867,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created. """ -function create_relational_database_snapshot( +create_relational_database_snapshot( relationalDatabaseName, relationalDatabaseSnapshotName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "CreateRelationalDatabaseSnapshot", + Dict{String,Any}( + "relationalDatabaseName" => relationalDatabaseName, + "relationalDatabaseSnapshotName" => relationalDatabaseSnapshotName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "CreateRelationalDatabaseSnapshot", - Dict{String,Any}( - "relationalDatabaseName" => relationalDatabaseName, - "relationalDatabaseSnapshotName" => relationalDatabaseSnapshotName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_relational_database_snapshot( relationalDatabaseName, relationalDatabaseSnapshotName, @@ -1983,14 +1916,12 @@ Amazon Lightsail. - `alarm_name`: The name of the alarm to delete. """ -function delete_alarm(alarmName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "DeleteAlarm", - Dict{String,Any}("alarmName" => alarmName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_alarm(alarmName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "DeleteAlarm", + Dict{String,Any}("alarmName" => alarmName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_alarm( alarmName, params::AbstractDict{String}; @@ -2020,16 +1951,14 @@ Lightsail Developer Guide. automatic snapshot. """ -function delete_auto_snapshot( +delete_auto_snapshot( date, resourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DeleteAutoSnapshot", + Dict{String,Any}("date" => date, "resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DeleteAutoSnapshot", - Dict{String,Any}("date" => date, "resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_auto_snapshot( date, resourceName, @@ -2071,14 +2000,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys keys. Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys. """ -function delete_bucket(bucketName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "DeleteBucket", - Dict{String,Any}("bucketName" => bucketName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_bucket(bucketName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "DeleteBucket", + Dict{String,Any}("bucketName" => bucketName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_bucket( bucketName, params::AbstractDict{String}; @@ -2109,16 +2036,14 @@ Lightsail Developer Guide. - `bucket_name`: The name of the bucket that the access key belongs to. """ -function delete_bucket_access_key( +delete_bucket_access_key( accessKeyId, bucketName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DeleteBucketAccessKey", + Dict{String,Any}("accessKeyId" => accessKeyId, "bucketName" => bucketName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DeleteBucketAccessKey", - Dict{String,Any}("accessKeyId" => accessKeyId, "bucketName" => bucketName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_access_key( accessKeyId, bucketName, @@ -2153,16 +2078,13 @@ distribution. to get a list of certificate names that you can specify. """ -function delete_certificate( - certificateName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +delete_certificate(certificateName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DeleteCertificate", Dict{String,Any}("certificateName" => certificateName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_certificate( certificateName, params::AbstractDict{String}; @@ -2196,14 +2118,13 @@ countries/regions. For more information, see Notifications in Amazon Lightsail. DeleteContactMethod actions to delete each protocol. """ -function delete_contact_method(protocol; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +delete_contact_method(protocol; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DeleteContactMethod", Dict{String,Any}("protocol" => protocol); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_contact_method( protocol, params::AbstractDict{String}; @@ -2236,16 +2157,14 @@ Deletes a container image that is registered to your Amazon Lightsail container container image. """ -function delete_container_image( +delete_container_image( image, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DeleteContainerImage", + Dict{String,Any}("image" => image, "serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DeleteContainerImage", - Dict{String,Any}("image" => image, "serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_container_image( image, serviceName, @@ -2276,16 +2195,13 @@ Deletes your Amazon Lightsail container service. - `service_name`: The name of the container service to delete. """ -function delete_container_service( - serviceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +delete_container_service(serviceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DeleteContainerService", Dict{String,Any}("serviceName" => serviceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_container_service( serviceName, params::AbstractDict{String}; @@ -2319,14 +2235,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"forceDeleteAddOns"`: A Boolean value to indicate whether to delete all add-ons for the disk. """ -function delete_disk(diskName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "DeleteDisk", - Dict{String,Any}("diskName" => diskName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_disk(diskName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "DeleteDisk", + Dict{String,Any}("diskName" => diskName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_disk( diskName, params::AbstractDict{String}; @@ -2359,16 +2273,13 @@ the Amazon Lightsail Developer Guide. - `disk_snapshot_name`: The name of the disk snapshot you want to delete (my-disk-snapshot). """ -function delete_disk_snapshot( - diskSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +delete_disk_snapshot(diskSnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DeleteDiskSnapshot", Dict{String,Any}("diskSnapshotName" => diskSnapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_disk_snapshot( diskSnapshotName, params::AbstractDict{String}; @@ -2397,11 +2308,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"distributionName"`: The name of the distribution to delete. Use the GetDistributions action to get a list of distribution names that you can specify. """ -function delete_distribution(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "DeleteDistribution"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_distribution(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("DeleteDistribution"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_distribution( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2422,14 +2330,12 @@ identified by domain name. For more information, see the Amazon Lightsail Develo - `domain_name`: The specific domain name to delete. """ -function delete_domain(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "DeleteDomain", - Dict{String,Any}("domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_domain(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "DeleteDomain", + Dict{String,Any}("domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_domain( domainName, params::AbstractDict{String}; @@ -2459,16 +2365,14 @@ more information, see the Amazon Lightsail Developer Guide. - `domain_name`: The name of the domain entry to delete. """ -function delete_domain_entry( +delete_domain_entry( domainEntry, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DeleteDomainEntry", + Dict{String,Any}("domainEntry" => domainEntry, "domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DeleteDomainEntry", - Dict{String,Any}("domainEntry" => domainEntry, "domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_domain_entry( domainEntry, domainName, @@ -2505,14 +2409,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"forceDeleteAddOns"`: A Boolean value to indicate whether to delete all add-ons for the instance. """ -function delete_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +delete_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DeleteInstance", Dict{String,Any}("instanceName" => instanceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_instance( instanceName, params::AbstractDict{String}; @@ -2541,16 +2444,14 @@ Lightsail Developer Guide. - `instance_snapshot_name`: The name of the snapshot to delete. """ -function delete_instance_snapshot( +delete_instance_snapshot( instanceSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DeleteInstanceSnapshot", + Dict{String,Any}("instanceSnapshotName" => instanceSnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DeleteInstanceSnapshot", - Dict{String,Any}("instanceSnapshotName" => instanceSnapshotName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_instance_snapshot( instanceSnapshotName, params::AbstractDict{String}; @@ -2591,14 +2492,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The expectedFingerprint parameter is required only when specifying to delete a Lightsail default key pair. """ -function delete_key_pair(keyPairName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +delete_key_pair(keyPairName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DeleteKeyPair", Dict{String,Any}("keyPairName" => keyPairName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_key_pair( keyPairName, params::AbstractDict{String}; @@ -2631,16 +2531,13 @@ client. certificate. """ -function delete_known_host_keys( - instanceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +delete_known_host_keys(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DeleteKnownHostKeys", Dict{String,Any}("instanceName" => instanceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_known_host_keys( instanceName, params::AbstractDict{String}; @@ -2670,16 +2567,13 @@ balancer name. For more information, see the Amazon Lightsail Developer Guide. - `load_balancer_name`: The name of the load balancer you want to delete. """ -function delete_load_balancer( - loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +delete_load_balancer(loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DeleteLoadBalancer", Dict{String,Any}("loadBalancerName" => loadBalancerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_load_balancer( loadBalancerName, params::AbstractDict{String}; @@ -2717,18 +2611,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys force parameter is required when the primary SSL/TLS certificate is in use by an instance attached to the load balancer. """ -function delete_load_balancer_tls_certificate( +delete_load_balancer_tls_certificate( certificateName, loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DeleteLoadBalancerTlsCertificate", + Dict{String,Any}( + "certificateName" => certificateName, "loadBalancerName" => loadBalancerName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DeleteLoadBalancerTlsCertificate", - Dict{String,Any}( - "certificateName" => certificateName, "loadBalancerName" => loadBalancerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_load_balancer_tls_certificate( certificateName, loadBalancerName, @@ -2776,16 +2668,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify the final relational database snapshot name parameter if the skip final snapshot parameter is false. Default: false """ -function delete_relational_database( +delete_relational_database( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DeleteRelationalDatabase", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DeleteRelationalDatabase", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_relational_database( relationalDatabaseName, params::AbstractDict{String}; @@ -2819,18 +2709,14 @@ Developer Guide. deleting. """ -function delete_relational_database_snapshot( +delete_relational_database_snapshot( relationalDatabaseSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DeleteRelationalDatabaseSnapshot", + Dict{String,Any}("relationalDatabaseSnapshotName" => relationalDatabaseSnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DeleteRelationalDatabaseSnapshot", - Dict{String,Any}( - "relationalDatabaseSnapshotName" => relationalDatabaseSnapshotName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_relational_database_snapshot( relationalDatabaseSnapshotName, params::AbstractDict{String}; @@ -2865,16 +2751,14 @@ for all of the domains that are associated with the certificate. Use the GetDistributions action to get a list of distribution names that you can specify. """ -function detach_certificate_from_distribution( +detach_certificate_from_distribution( distributionName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DetachCertificateFromDistribution", + Dict{String,Any}("distributionName" => distributionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DetachCertificateFromDistribution", - Dict{String,Any}("distributionName" => distributionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_certificate_from_distribution( distributionName, params::AbstractDict{String}; @@ -2906,14 +2790,12 @@ the Amazon Lightsail Developer Guide. - `disk_name`: The unique name of the disk you want to detach from your instance (my-disk). """ -function detach_disk(diskName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "DetachDisk", - Dict{String,Any}("diskName" => diskName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +detach_disk(diskName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "DetachDisk", + Dict{String,Any}("diskName" => diskName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function detach_disk( diskName, params::AbstractDict{String}; @@ -2945,18 +2827,16 @@ information, see the Amazon Lightsail Developer Guide. - `load_balancer_name`: The name of the Lightsail load balancer. """ -function detach_instances_from_load_balancer( +detach_instances_from_load_balancer( instanceNames, loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DetachInstancesFromLoadBalancer", + Dict{String,Any}( + "instanceNames" => instanceNames, "loadBalancerName" => loadBalancerName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DetachInstancesFromLoadBalancer", - Dict{String,Any}( - "instanceNames" => instanceNames, "loadBalancerName" => loadBalancerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_instances_from_load_balancer( instanceNames, loadBalancerName, @@ -2989,14 +2869,13 @@ Detaches a static IP from the Amazon Lightsail instance to which it is attached. - `static_ip_name`: The name of the static IP to detach from the instance. """ -function detach_static_ip(staticIpName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +detach_static_ip(staticIpName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "DetachStaticIp", Dict{String,Any}("staticIpName" => staticIpName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detach_static_ip( staticIpName, params::AbstractDict{String}; @@ -3024,16 +2903,14 @@ Lightsail Developer Guide. - `resource_name`: The name of the source resource for which to disable the add-on. """ -function disable_add_on( +disable_add_on( addOnType, resourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "DisableAddOn", + Dict{String,Any}("addOnType" => addOnType, "resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "DisableAddOn", - Dict{String,Any}("addOnType" => addOnType, "resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_add_on( addOnType, resourceName, @@ -3063,11 +2940,9 @@ Lightsail default key pair if a default key pair does not currently exist in the Services Region. """ -function download_default_key_pair(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "DownloadDefaultKeyPair"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +download_default_key_pair(; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "DownloadDefaultKeyPair"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function download_default_key_pair( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3091,16 +2966,14 @@ the Amazon Lightsail Developer Guide. - `resource_name`: The name of the source resource for which to enable or modify the add-on. """ -function enable_add_on( +enable_add_on( addOnRequest, resourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "EnableAddOn", + Dict{String,Any}("addOnRequest" => addOnRequest, "resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "EnableAddOn", - Dict{String,Any}("addOnRequest" => addOnRequest, "resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_add_on( addOnRequest, resourceName, @@ -3144,16 +3017,13 @@ list of snapshots that you can export to Amazon EC2. Amazon EC2. """ -function export_snapshot( - sourceSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +export_snapshot(sourceSnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "ExportSnapshot", Dict{String,Any}("sourceSnapshotName" => sourceSnapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function export_snapshot( sourceSnapshotName, params::AbstractDict{String}; @@ -3184,11 +3054,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_active_names(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetActiveNames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_active_names(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetActiveNames"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_active_names( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3220,9 +3087,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_alarms(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetAlarms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_alarms(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetAlarms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_alarms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3243,16 +3109,13 @@ see the Amazon Lightsail Developer Guide. snapshot information. """ -function get_auto_snapshots( - resourceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_auto_snapshots(resourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetAutoSnapshots", Dict{String,Any}("resourceName" => resourceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_auto_snapshots( resourceName, params::AbstractDict{String}; @@ -3291,11 +3154,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_blueprints(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetBlueprints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_blueprints(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetBlueprints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_blueprints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3317,16 +3177,13 @@ lose the secret access key, you must create a new access key. - `bucket_name`: The name of the bucket for which to return access keys. """ -function get_bucket_access_keys( - bucketName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_bucket_access_keys(bucketName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetBucketAccessKeys", Dict{String,Any}("bucketName" => bucketName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_bucket_access_keys( bucketName, params::AbstractDict{String}; @@ -3355,11 +3212,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includeInactive"`: A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request. """ -function get_bucket_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetBucketBundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_bucket_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetBucketBundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bucket_bundles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3410,7 +3264,7 @@ those objects. requested. For the valid units with each available metric, see the metricName parameter. """ -function get_bucket_metric_data( +get_bucket_metric_data( bucketName, endTime, metricName, @@ -3419,22 +3273,20 @@ function get_bucket_metric_data( statistics, unit; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "GetBucketMetricData", + Dict{String,Any}( + "bucketName" => bucketName, + "endTime" => endTime, + "metricName" => metricName, + "period" => period, + "startTime" => startTime, + "statistics" => statistics, + "unit" => unit, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetBucketMetricData", - Dict{String,Any}( - "bucketName" => bucketName, - "endTime" => endTime, - "metricName" => metricName, - "period" => period, - "startTime" => startTime, - "statistics" => statistics, - "unit" => unit, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_metric_data( bucketName, endTime, @@ -3490,9 +3342,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetBuckets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetBuckets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_buckets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3521,9 +3372,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetBundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetBundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bundles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3558,11 +3408,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3586,15 +3433,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_cloud_formation_stack_records(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_cloud_formation_stack_records(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetCloudFormationStackRecords"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cloud_formation_stack_records( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3624,11 +3468,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys messaging). Specify a protocol in your request to return information about a specific contact method protocol. """ -function get_contact_methods(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetContactMethods"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_contact_methods(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetContactMethods"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_contact_methods( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3645,11 +3486,9 @@ Returns information about Amazon Lightsail containers, such as the current versi Lightsail Control (lightsailctl) plugin. """ -function get_container_apimetadata(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetContainerAPIMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_container_apimetadata(; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetContainerAPIMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_container_apimetadata( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3675,16 +3514,13 @@ part of this action. Those images are not registered to your Lightsail container container images. """ -function get_container_images( - serviceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_container_images(serviceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetContainerImages", Dict{String,Any}("serviceName" => serviceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_container_images( serviceName, params::AbstractDict{String}; @@ -3741,16 +3577,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 1538424000 as the start time. You can convert a human-friendly time to Unix time format using a converter like Epoch converter. """ -function get_container_log( +get_container_log( containerName, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetContainerLog", + Dict{String,Any}("containerName" => containerName, "serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetContainerLog", - Dict{String,Any}("containerName" => containerName, "serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_container_log( containerName, serviceName, @@ -3788,16 +3622,14 @@ endpoints and quotas in the Amazon Web Services General Reference. - `service_name`: The name of the container service for which to return deployments. """ -function get_container_service_deployments( +get_container_service_deployments( serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetContainerServiceDeployments", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetContainerServiceDeployments", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_container_service_deployments( serviceName, params::AbstractDict{String}; @@ -3851,7 +3683,7 @@ to maintain the reliability, availability, and performance of your resources. points used for the statistical calculation. """ -function get_container_service_metric_data( +get_container_service_metric_data( endTime, metricName, period, @@ -3859,21 +3691,19 @@ function get_container_service_metric_data( startTime, statistics; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "GetContainerServiceMetricData", + Dict{String,Any}( + "endTime" => endTime, + "metricName" => metricName, + "period" => period, + "serviceName" => serviceName, + "startTime" => startTime, + "statistics" => statistics, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetContainerServiceMetricData", - Dict{String,Any}( - "endTime" => endTime, - "metricName" => metricName, - "period" => period, - "serviceName" => serviceName, - "startTime" => startTime, - "statistics" => statistics, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_container_service_metric_data( endTime, metricName, @@ -3914,11 +3744,10 @@ services. The power specifies the amount of memory, the number of vCPUs, and the of the container service. """ -function get_container_service_powers(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +get_container_service_powers(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetContainerServicePowers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_container_service_powers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3942,11 +3771,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made. """ -function get_container_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetContainerServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_container_services(; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetContainerServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_container_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3978,18 +3805,16 @@ will not generate for a resource that has been deleted. converter. """ -function get_cost_estimate( +get_cost_estimate( endTime, resourceName, startTime; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetCostEstimate", + Dict{String,Any}( + "endTime" => endTime, "resourceName" => resourceName, "startTime" => startTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetCostEstimate", - Dict{String,Any}( - "endTime" => endTime, "resourceName" => resourceName, "startTime" => startTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cost_estimate( endTime, resourceName, @@ -4025,14 +3850,12 @@ Returns information about a specific block storage disk. - `disk_name`: The name of the disk (my-disk). """ -function get_disk(diskName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetDisk", - Dict{String,Any}("diskName" => diskName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_disk(diskName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetDisk", + Dict{String,Any}("diskName" => diskName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_disk( diskName, params::AbstractDict{String}; @@ -4058,16 +3881,13 @@ Returns information about a specific block storage disk snapshot. - `disk_snapshot_name`: The name of the disk snapshot (my-disk-snapshot). """ -function get_disk_snapshot( - diskSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_disk_snapshot(diskSnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetDiskSnapshot", Dict{String,Any}("diskSnapshotName" => diskSnapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_disk_snapshot( diskSnapshotName, params::AbstractDict{String}; @@ -4098,11 +3918,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_disk_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetDiskSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_disk_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetDiskSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_disk_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4124,9 +3941,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_disks(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetDisks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_disks(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetDisks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_disks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4144,11 +3960,9 @@ Returns the bundles that can be applied to your Amazon Lightsail content deliver monthly cost of your distribution. """ -function get_distribution_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetDistributionBundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_distribution_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetDistributionBundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_distribution_bundles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4174,15 +3988,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that you can specify. When omitted, the response includes the latest cache reset timestamp of all your distributions. """ -function get_distribution_latest_cache_reset(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_distribution_latest_cache_reset(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetDistributionLatestCacheReset"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_distribution_latest_cache_reset( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4253,7 +4064,7 @@ reliability, availability, and performance of your resources. requested. For the valid units with each available metric, see the metricName parameter. """ -function get_distribution_metric_data( +get_distribution_metric_data( distributionName, endTime, metricName, @@ -4262,22 +4073,20 @@ function get_distribution_metric_data( statistics, unit; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "GetDistributionMetricData", + Dict{String,Any}( + "distributionName" => distributionName, + "endTime" => endTime, + "metricName" => metricName, + "period" => period, + "startTime" => startTime, + "statistics" => statistics, + "unit" => unit, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetDistributionMetricData", - Dict{String,Any}( - "distributionName" => distributionName, - "endTime" => endTime, - "metricName" => metricName, - "period" => period, - "startTime" => startTime, - "statistics" => statistics, - "unit" => unit, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_distribution_metric_data( distributionName, endTime, @@ -4328,11 +4137,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_distributions(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetDistributions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_distributions(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetDistributions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_distributions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4351,14 +4157,12 @@ Returns information about a specific domain recordset. - `domain_name`: The domain name for which your want to return information about. """ -function get_domain(domainName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetDomain", - Dict{String,Any}("domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_domain(domainName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetDomain", + Dict{String,Any}("domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_domain( domainName, params::AbstractDict{String}; @@ -4387,9 +4191,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4413,11 +4216,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_export_snapshot_records(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +get_export_snapshot_records(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetExportSnapshotRecords"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_export_snapshot_records( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4440,14 +4242,12 @@ server. - `instance_name`: The name of the instance. """ -function get_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetInstance", - Dict{String,Any}("instanceName" => instanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetInstance", + Dict{String,Any}("instanceName" => instanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_instance( instanceName, params::AbstractDict{String}; @@ -4479,16 +4279,14 @@ see the Amazon Lightsail Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"protocol"`: The protocol to use to connect to your instance. Defaults to ssh. """ -function get_instance_access_details( +get_instance_access_details( instanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetInstanceAccessDetails", + Dict{String,Any}("instanceName" => instanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetInstanceAccessDetails", - Dict{String,Any}("instanceName" => instanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_access_details( instanceName, params::AbstractDict{String}; @@ -4585,7 +4383,7 @@ availability, and performance of your resources. parameter. """ -function get_instance_metric_data( +get_instance_metric_data( endTime, instanceName, metricName, @@ -4594,22 +4392,20 @@ function get_instance_metric_data( statistics, unit; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "GetInstanceMetricData", + Dict{String,Any}( + "endTime" => endTime, + "instanceName" => instanceName, + "metricName" => metricName, + "period" => period, + "startTime" => startTime, + "statistics" => statistics, + "unit" => unit, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetInstanceMetricData", - Dict{String,Any}( - "endTime" => endTime, - "instanceName" => instanceName, - "metricName" => metricName, - "period" => period, - "startTime" => startTime, - "statistics" => statistics, - "unit" => unit, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_metric_data( endTime, instanceName, @@ -4654,16 +4450,13 @@ allowed to connect to the instance through the ports, and the protocol. - `instance_name`: The name of the instance for which to return firewall port states. """ -function get_instance_port_states( - instanceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_instance_port_states(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetInstancePortStates", Dict{String,Any}("instanceName" => instanceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_instance_port_states( instanceName, params::AbstractDict{String}; @@ -4690,16 +4483,14 @@ Returns information about a specific instance snapshot. information. """ -function get_instance_snapshot( +get_instance_snapshot( instanceSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetInstanceSnapshot", + Dict{String,Any}("instanceSnapshotName" => instanceSnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetInstanceSnapshot", - Dict{String,Any}("instanceSnapshotName" => instanceSnapshotName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_instance_snapshot( instanceSnapshotName, params::AbstractDict{String}; @@ -4732,11 +4523,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_instance_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetInstanceSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_instance_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetInstanceSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_instance_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4758,16 +4547,13 @@ Returns the state of a specific instance. Works on one instance at a time. - `instance_name`: The name of the instance to get state information about. """ -function get_instance_state( - instanceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_instance_state(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetInstanceState", Dict{String,Any}("instanceName" => instanceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_instance_state( instanceName, params::AbstractDict{String}; @@ -4796,9 +4582,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4817,14 +4602,12 @@ Returns information about a specific key pair. - `key_pair_name`: The name of the key pair for which you are requesting information. """ -function get_key_pair(keyPairName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetKeyPair", - Dict{String,Any}("keyPairName" => keyPairName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_key_pair(keyPairName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetKeyPair", + Dict{String,Any}("keyPairName" => keyPairName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_key_pair( keyPairName, params::AbstractDict{String}; @@ -4855,9 +4638,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_key_pairs(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetKeyPairs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_key_pairs(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetKeyPairs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_key_pairs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4876,16 +4658,13 @@ Returns information about the specified Lightsail load balancer. - `load_balancer_name`: The name of the load balancer. """ -function get_load_balancer( - loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_load_balancer(loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetLoadBalancer", Dict{String,Any}("loadBalancerName" => loadBalancerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_load_balancer( loadBalancerName, params::AbstractDict{String}; @@ -4977,7 +4756,7 @@ your resources. requested. For the valid units with each available metric, see the metricName parameter. """ -function get_load_balancer_metric_data( +get_load_balancer_metric_data( endTime, loadBalancerName, metricName, @@ -4986,22 +4765,20 @@ function get_load_balancer_metric_data( statistics, unit; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "GetLoadBalancerMetricData", + Dict{String,Any}( + "endTime" => endTime, + "loadBalancerName" => loadBalancerName, + "metricName" => metricName, + "period" => period, + "startTime" => startTime, + "statistics" => statistics, + "unit" => unit, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetLoadBalancerMetricData", - Dict{String,Any}( - "endTime" => endTime, - "loadBalancerName" => loadBalancerName, - "metricName" => metricName, - "period" => period, - "startTime" => startTime, - "statistics" => statistics, - "unit" => unit, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_load_balancer_metric_data( endTime, loadBalancerName, @@ -5049,16 +4826,14 @@ One is active and the other is inactive. certificate. """ -function get_load_balancer_tls_certificates( +get_load_balancer_tls_certificates( loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetLoadBalancerTlsCertificates", + Dict{String,Any}("loadBalancerName" => loadBalancerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetLoadBalancerTlsCertificates", - Dict{String,Any}("loadBalancerName" => loadBalancerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_load_balancer_tls_certificates( loadBalancerName, params::AbstractDict{String}; @@ -5091,13 +4866,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_load_balancer_tls_policies(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_load_balancer_tls_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetLoadBalancerTlsPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_load_balancer_tls_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5122,11 +4894,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_load_balancers(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetLoadBalancers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_load_balancers(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetLoadBalancers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_load_balancers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5146,14 +4915,12 @@ create an instance, allocate a static IP, attach a static IP, and so on. - `operation_id`: A GUID used to identify the operation. """ -function get_operation(operationId; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetOperation", - Dict{String,Any}("operationId" => operationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_operation(operationId; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetOperation", + Dict{String,Any}("operationId" => operationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_operation( operationId, params::AbstractDict{String}; @@ -5184,11 +4951,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_operations(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetOperations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_operations(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetOperations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_operations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5213,16 +4977,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_operations_for_resource( +get_operations_for_resource( resourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetOperationsForResource", + Dict{String,Any}("resourceName" => resourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetOperationsForResource", - Dict{String,Any}("resourceName" => resourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_operations_for_resource( resourceName, params::AbstractDict{String}; @@ -5254,9 +5016,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys also include Availability Zones for databases in your get regions request. Availability Zones are indicated with a letter (us-east-2a). """ -function get_regions(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetRegions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_regions(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetRegions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_regions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5275,16 +5036,14 @@ Returns information about a specific database in Amazon Lightsail. - `relational_database_name`: The name of the database that you are looking up. """ -function get_relational_database( +get_relational_database( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetRelationalDatabase", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetRelationalDatabase", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_relational_database( relationalDatabaseName, params::AbstractDict{String}; @@ -5319,15 +5078,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_relational_database_blueprints(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_relational_database_blueprints(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetRelationalDatabaseBlueprints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_relational_database_blueprints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5356,15 +5112,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_relational_database_bundles(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_relational_database_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetRelationalDatabaseBundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_relational_database_bundles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5395,16 +5148,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_relational_database_events( +get_relational_database_events( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetRelationalDatabaseEvents", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetRelationalDatabaseEvents", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_relational_database_events( relationalDatabaseName, params::AbstractDict{String}; @@ -5454,21 +5205,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the start time. """ -function get_relational_database_log_events( +get_relational_database_log_events( logStreamName, relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "GetRelationalDatabaseLogEvents", + Dict{String,Any}( + "logStreamName" => logStreamName, + "relationalDatabaseName" => relationalDatabaseName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetRelationalDatabaseLogEvents", - Dict{String,Any}( - "logStreamName" => logStreamName, - "relationalDatabaseName" => relationalDatabaseName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_relational_database_log_events( logStreamName, relationalDatabaseName, @@ -5499,19 +5248,17 @@ end Returns a list of available log streams for a specific database in Amazon Lightsail. # Arguments -- `relational_database_name`: The name of your database for which to get log streams. - -""" -function get_relational_database_log_streams( - relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( - "GetRelationalDatabaseLogStreams", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +- `relational_database_name`: The name of your database for which to get log streams. + +""" +get_relational_database_log_streams( + relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetRelationalDatabaseLogStreams", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_relational_database_log_streams( relationalDatabaseName, params::AbstractDict{String}; @@ -5551,16 +5298,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys newest version of the password that will rotate to CURRENT. After the PENDING password rotates to CURRENT, the PENDING password is no longer available. Default: CURRENT """ -function get_relational_database_master_user_password( +get_relational_database_master_user_password( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetRelationalDatabaseMasterUserPassword", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetRelationalDatabaseMasterUserPassword", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_relational_database_master_user_password( relationalDatabaseName, params::AbstractDict{String}; @@ -5634,7 +5379,7 @@ performance of your resources. requested. For the valid units with each available metric, see the metricName parameter. """ -function get_relational_database_metric_data( +get_relational_database_metric_data( endTime, metricName, period, @@ -5643,22 +5388,20 @@ function get_relational_database_metric_data( statistics, unit; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "GetRelationalDatabaseMetricData", + Dict{String,Any}( + "endTime" => endTime, + "metricName" => metricName, + "period" => period, + "relationalDatabaseName" => relationalDatabaseName, + "startTime" => startTime, + "statistics" => statistics, + "unit" => unit, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetRelationalDatabaseMetricData", - Dict{String,Any}( - "endTime" => endTime, - "metricName" => metricName, - "period" => period, - "relationalDatabaseName" => relationalDatabaseName, - "startTime" => startTime, - "statistics" => statistics, - "unit" => unit, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_relational_database_metric_data( endTime, metricName, @@ -5712,16 +5455,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_relational_database_parameters( +get_relational_database_parameters( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetRelationalDatabaseParameters", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetRelationalDatabaseParameters", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_relational_database_parameters( relationalDatabaseName, params::AbstractDict{String}; @@ -5752,18 +5493,14 @@ Returns information about a specific database snapshot in Amazon Lightsail. information. """ -function get_relational_database_snapshot( +get_relational_database_snapshot( relationalDatabaseSnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "GetRelationalDatabaseSnapshot", + Dict{String,Any}("relationalDatabaseSnapshotName" => relationalDatabaseSnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "GetRelationalDatabaseSnapshot", - Dict{String,Any}( - "relationalDatabaseSnapshotName" => relationalDatabaseSnapshotName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_relational_database_snapshot( relationalDatabaseSnapshotName, params::AbstractDict{String}; @@ -5798,15 +5535,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_relational_database_snapshots(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +get_relational_database_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetRelationalDatabaseSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_relational_database_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5831,11 +5565,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated, the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_relational_databases(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetRelationalDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_relational_databases(; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetRelationalDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_relational_databases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5864,14 +5596,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_setup_history(resourceName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +get_setup_history(resourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "GetSetupHistory", Dict{String,Any}("resourceName" => resourceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_setup_history( resourceName, params::AbstractDict{String}; @@ -5897,14 +5628,12 @@ Returns information about an Amazon Lightsail static IP. - `static_ip_name`: The name of the static IP in Lightsail. """ -function get_static_ip(staticIpName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "GetStaticIp", - Dict{String,Any}("staticIpName" => staticIpName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_static_ip(staticIpName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "GetStaticIp", + Dict{String,Any}("staticIpName" => staticIpName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_static_ip( staticIpName, params::AbstractDict{String}; @@ -5933,9 +5662,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response will return a next page token that you can specify as the page token in a subsequent request. """ -function get_static_ips(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("GetStaticIps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_static_ips(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("GetStaticIps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_static_ips( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5955,18 +5683,14 @@ Imports a public SSH key from a specific key pair. - `public_key_base64`: A base64-encoded public key of the ssh-rsa type. """ -function import_key_pair( +import_key_pair( keyPairName, publicKeyBase64; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "ImportKeyPair", + Dict{String,Any}("keyPairName" => keyPairName, "publicKeyBase64" => publicKeyBase64); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "ImportKeyPair", - Dict{String,Any}( - "keyPairName" => keyPairName, "publicKeyBase64" => publicKeyBase64 - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_key_pair( keyPairName, publicKeyBase64, @@ -5996,9 +5720,8 @@ end Returns a Boolean value indicating whether your Lightsail VPC is peered. """ -function is_vpc_peered(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("IsVpcPeered"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +is_vpc_peered(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("IsVpcPeered"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function is_vpc_peered( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6022,16 +5745,14 @@ Developer Guide. - `port_info`: An object to describe the ports to open for the specified instance. """ -function open_instance_public_ports( +open_instance_public_ports( instanceName, portInfo; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "OpenInstancePublicPorts", + Dict{String,Any}("instanceName" => instanceName, "portInfo" => portInfo); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "OpenInstancePublicPorts", - Dict{String,Any}("instanceName" => instanceName, "portInfo" => portInfo); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function open_instance_public_ports( instanceName, portInfo, @@ -6059,9 +5780,8 @@ end Peers the Lightsail VPC with the user's default VPC. """ -function peer_vpc(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("PeerVpc"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +peer_vpc(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("PeerVpc"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function peer_vpc( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6148,7 +5868,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys missing - Missing data is treated as missing. If treatMissingData is not specified, the default behavior of missing is used. """ -function put_alarm( +put_alarm( alarmName, comparisonOperator, evaluationPeriods, @@ -6156,21 +5876,19 @@ function put_alarm( monitoredResourceName, threshold; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "PutAlarm", + Dict{String,Any}( + "alarmName" => alarmName, + "comparisonOperator" => comparisonOperator, + "evaluationPeriods" => evaluationPeriods, + "metricName" => metricName, + "monitoredResourceName" => monitoredResourceName, + "threshold" => threshold, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "PutAlarm", - Dict{String,Any}( - "alarmName" => alarmName, - "comparisonOperator" => comparisonOperator, - "evaluationPeriods" => evaluationPeriods, - "metricName" => metricName, - "monitoredResourceName" => monitoredResourceName, - "threshold" => threshold, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_alarm( alarmName, comparisonOperator, @@ -6221,16 +5939,14 @@ Developer Guide. instance. """ -function put_instance_public_ports( +put_instance_public_ports( instanceName, portInfos; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "PutInstancePublicPorts", + Dict{String,Any}("instanceName" => instanceName, "portInfos" => portInfos); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "PutInstancePublicPorts", - Dict{String,Any}("instanceName" => instanceName, "portInfos" => portInfos); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_instance_public_ports( instanceName, portInfos, @@ -6263,14 +5979,13 @@ information, see the Amazon Lightsail Developer Guide. - `instance_name`: The name of the instance to reboot. """ -function reboot_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +reboot_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "RebootInstance", Dict{String,Any}("instanceName" => instanceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reboot_instance( instanceName, params::AbstractDict{String}; @@ -6298,16 +6013,14 @@ relationalDatabaseName. For more information, see the Amazon Lightsail Developer - `relational_database_name`: The name of your database to reboot. """ -function reboot_relational_database( +reboot_relational_database( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "RebootRelationalDatabase", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "RebootRelationalDatabase", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_relational_database( relationalDatabaseName, params::AbstractDict{String}; @@ -6354,18 +6067,14 @@ Lightsail Developer Guide. - `service_name`: The name of the container service for which to register a container image. """ -function register_container_image( +register_container_image( digest, label, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "RegisterContainerImage", + Dict{String,Any}("digest" => digest, "label" => label, "serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "RegisterContainerImage", - Dict{String,Any}( - "digest" => digest, "label" => label, "serviceName" => serviceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_container_image( digest, label, @@ -6399,14 +6108,13 @@ Deletes a specific static IP from your account. - `static_ip_name`: The name of the static IP to delete. """ -function release_static_ip(staticIpName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +release_static_ip(staticIpName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "ReleaseStaticIp", Dict{String,Any}("staticIpName" => staticIpName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function release_static_ip( staticIpName, params::AbstractDict{String}; @@ -6435,11 +6143,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"distributionName"`: The name of the distribution for which to reset cache. Use the GetDistributions action to get a list of distribution names that you can specify. """ -function reset_distribution_cache(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "ResetDistributionCache"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +reset_distribution_cache(; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "ResetDistributionCache"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function reset_distribution_cache( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6470,16 +6176,14 @@ after it is verified, and confirmed as valid. - `protocol`: The protocol to verify, such as Email or SMS (text messaging). """ -function send_contact_method_verification( +send_contact_method_verification( protocol; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "SendContactMethodVerification", + Dict{String,Any}("protocol" => protocol); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "SendContactMethodVerification", - Dict{String,Any}("protocol" => protocol); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_contact_method_verification( protocol, params::AbstractDict{String}; @@ -6521,23 +6225,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you switch from dual-stack to ipv6, the bundle will be updated, and billing for the IPv6-only instance bundle begins immediately. """ -function set_ip_address_type( +set_ip_address_type( ipAddressType, resourceName, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "SetIpAddressType", + Dict{String,Any}( + "ipAddressType" => ipAddressType, + "resourceName" => resourceName, + "resourceType" => resourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "SetIpAddressType", - Dict{String,Any}( - "ipAddressType" => ipAddressType, - "resourceName" => resourceName, - "resourceType" => resourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_ip_address_type( ipAddressType, resourceName, @@ -6581,18 +6283,16 @@ Amazon Web Services Region. instance must be in a running or stopped state. """ -function set_resource_access_for_bucket( +set_resource_access_for_bucket( access, bucketName, resourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "SetResourceAccessForBucket", + Dict{String,Any}( + "access" => access, "bucketName" => bucketName, "resourceName" => resourceName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "SetResourceAccessForBucket", - Dict{String,Any}( - "access" => access, "bucketName" => bucketName, "resourceName" => resourceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_resource_access_for_bucket( access, bucketName, @@ -6636,25 +6336,23 @@ characters in length. - `instance_name`: The name of the Lightsail instance. """ -function setup_instance_https( +setup_instance_https( certificateProvider, domainNames, emailAddress, instanceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "SetupInstanceHttps", + Dict{String,Any}( + "certificateProvider" => certificateProvider, + "domainNames" => domainNames, + "emailAddress" => emailAddress, + "instanceName" => instanceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "SetupInstanceHttps", - Dict{String,Any}( - "certificateProvider" => certificateProvider, - "domainNames" => domainNames, - "emailAddress" => emailAddress, - "instanceName" => instanceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function setup_instance_https( certificateProvider, domainNames, @@ -6694,14 +6392,13 @@ this action to resume the session after it expires. - `resource_name`: The resource name. """ -function start_guisession(resourceName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +start_guisession(resourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "StartGUISession", Dict{String,Any}("resourceName" => resourceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_guisession( resourceName, params::AbstractDict{String}; @@ -6733,14 +6430,13 @@ instance name. For more information, see the Amazon Lightsail Developer Guide. - `instance_name`: The name of the instance (a virtual private server) to start. """ -function start_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +start_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "StartInstance", Dict{String,Any}("instanceName" => instanceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_instance( instanceName, params::AbstractDict{String}; @@ -6769,16 +6465,14 @@ relationalDatabaseName. For more information, see the Amazon Lightsail Developer - `relational_database_name`: The name of your database to start. """ -function start_relational_database( +start_relational_database( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "StartRelationalDatabase", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "StartRelationalDatabase", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_relational_database( relationalDatabaseName, params::AbstractDict{String}; @@ -6809,14 +6503,13 @@ operating system or application. The session will close and any unsaved data wil - `resource_name`: The resource name. """ -function stop_guisession(resourceName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +stop_guisession(resourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "StopGUISession", Dict{String,Any}("resourceName" => resourceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_guisession( resourceName, params::AbstractDict{String}; @@ -6854,14 +6547,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys state. In any other state, your instance should stop normally without adding this parameter to your API request. """ -function stop_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "StopInstance", - Dict{String,Any}("instanceName" => instanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_instance(instanceName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "StopInstance", + Dict{String,Any}("instanceName" => instanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_instance( instanceName, params::AbstractDict{String}; @@ -6894,16 +6585,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"relationalDatabaseSnapshotName"`: The name of your new database snapshot to be created before stopping your database. """ -function stop_relational_database( +stop_relational_database( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "StopRelationalDatabase", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "StopRelationalDatabase", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_relational_database( relationalDatabaseName, params::AbstractDict{String}; @@ -6943,16 +6632,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceArn"`: The Amazon Resource Name (ARN) of the resource to which you want to add a tag. """ -function tag_resource( - resourceName, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +tag_resource(resourceName, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "TagResource", Dict{String,Any}("resourceName" => resourceName, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceName, tags, @@ -6993,14 +6679,13 @@ Lightsail console. For more information, see Alarms in Amazon Lightsail. threshold. """ -function test_alarm(alarmName, state; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +test_alarm(alarmName, state; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "TestAlarm", Dict{String,Any}("alarmName" => alarmName, "state" => state); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function test_alarm( alarmName, state, @@ -7026,9 +6711,8 @@ end Unpeers the Lightsail VPC from the user's default VPC. """ -function unpeer_vpc(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail("UnpeerVpc"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +unpeer_vpc(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail("UnpeerVpc"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function unpeer_vpc( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7055,16 +6739,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceArn"`: The Amazon Resource Name (ARN) of the resource from which you want to remove a tag. """ -function untag_resource( - resourceName, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +untag_resource(resourceName, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "UntagResource", Dict{String,Any}("resourceName" => resourceName, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceName, tagKeys, @@ -7109,14 +6790,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the specified bucket. Suspended - Suspends versioning of objects in the specified bucket. Existing object versions are retained. """ -function update_bucket(bucketName; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( - "UpdateBucket", - Dict{String,Any}("bucketName" => bucketName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_bucket(bucketName; aws_config::AbstractAWSConfig=current_aws_config()) = lightsail( + "UpdateBucket", + Dict{String,Any}("bucketName" => bucketName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_bucket( bucketName, params::AbstractDict{String}; @@ -7155,16 +6834,14 @@ long time to come. action to get a list of bundle IDs that you can specify. """ -function update_bucket_bundle( +update_bucket_bundle( bucketName, bundleId; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "UpdateBucketBundle", + Dict{String,Any}("bucketName" => bucketName, "bundleId" => bundleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "UpdateBucketBundle", - Dict{String,Any}("bucketName" => bucketName, "bundleId" => bundleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bucket_bundle( bucketName, bundleId, @@ -7223,16 +6900,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configured capacity. To determine the monthly price of your container service, multiply the base price of the power with the scale (the number of nodes) of the service. """ -function update_container_service( - serviceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +update_container_service(serviceName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "UpdateContainerService", Dict{String,Any}("serviceName" => serviceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_container_service( serviceName, params::AbstractDict{String}; @@ -7282,16 +6956,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"viewerMinimumTlsProtocolVersion"`: Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution. """ -function update_distribution( - distributionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lightsail( +update_distribution(distributionName; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "UpdateDistribution", Dict{String,Any}("distributionName" => distributionName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_distribution( distributionName, params::AbstractDict{String}; @@ -7329,11 +7000,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"distributionName"`: The name of the distribution for which to update the bundle. Use the GetDistributions action to get a list of distribution names that you can specify. """ -function update_distribution_bundle(; aws_config::AbstractAWSConfig=current_aws_config()) - return lightsail( +update_distribution_bundle(; aws_config::AbstractAWSConfig=current_aws_config()) = + lightsail( "UpdateDistributionBundle"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_distribution_bundle( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7358,16 +7028,14 @@ name. For more information, see the Amazon Lightsail Developer Guide. - `domain_name`: The name of the domain recordset to update. """ -function update_domain_entry( +update_domain_entry( domainEntry, domainName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "UpdateDomainEntry", + Dict{String,Any}("domainEntry" => domainEntry, "domainName" => domainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "UpdateDomainEntry", - Dict{String,Any}("domainEntry" => domainEntry, "domainName" => domainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_domain_entry( domainEntry, domainName, @@ -7424,16 +7092,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys state, retrieving the IAM role credential always returns the version 2.0 credentials. The version 1.0 credentials are not available. """ -function update_instance_metadata_options( +update_instance_metadata_options( instanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "UpdateInstanceMetadataOptions", + Dict{String,Any}("instanceName" => instanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "UpdateInstanceMetadataOptions", - Dict{String,Any}("instanceName" => instanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_instance_metadata_options( instanceName, params::AbstractDict{String}; @@ -7479,23 +7145,21 @@ information, see the Amazon Lightsail Developer Guide. (my-load-balancer. """ -function update_load_balancer_attribute( +update_load_balancer_attribute( attributeName, attributeValue, loadBalancerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lightsail( + "UpdateLoadBalancerAttribute", + Dict{String,Any}( + "attributeName" => attributeName, + "attributeValue" => attributeValue, + "loadBalancerName" => loadBalancerName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "UpdateLoadBalancerAttribute", - Dict{String,Any}( - "attributeName" => attributeName, - "attributeValue" => attributeValue, - "loadBalancerName" => loadBalancerName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_load_balancer_attribute( attributeName, attributeValue, @@ -7574,16 +7238,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys strong password generated by Lightsail. Use the get relational database master user password operation to get the new password. """ -function update_relational_database( +update_relational_database( relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "UpdateRelationalDatabase", + Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "UpdateRelationalDatabase", - Dict{String,Any}("relationalDatabaseName" => relationalDatabaseName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_relational_database( relationalDatabaseName, params::AbstractDict{String}; @@ -7622,18 +7284,16 @@ Lightsail Developer Guide. - `relational_database_name`: The name of your database for which to update parameters. """ -function update_relational_database_parameters( +update_relational_database_parameters( parameters, relationalDatabaseName; aws_config::AbstractAWSConfig=current_aws_config() +) = lightsail( + "UpdateRelationalDatabaseParameters", + Dict{String,Any}( + "parameters" => parameters, "relationalDatabaseName" => relationalDatabaseName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lightsail( - "UpdateRelationalDatabaseParameters", - Dict{String,Any}( - "parameters" => parameters, "relationalDatabaseName" => relationalDatabaseName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_relational_database_parameters( parameters, relationalDatabaseName, diff --git a/src/services/location.jl b/src/services/location.jl index 057bcd1ab..cc007a4ff 100644 --- a/src/services/location.jl +++ b/src/services/location.jl @@ -23,17 +23,15 @@ resource in one account and a geofence collection in another account. collection. """ -function associate_tracker_consumer( +associate_tracker_consumer( ConsumerArn, TrackerName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/tracking/v0/trackers/$(TrackerName)/consumers", + Dict{String,Any}("ConsumerArn" => ConsumerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/tracking/v0/trackers/$(TrackerName)/consumers", - Dict{String,Any}("ConsumerArn" => ConsumerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_tracker_consumer( ConsumerArn, TrackerName, @@ -64,17 +62,15 @@ Deletes the position history of one or more devices from a tracker resource. from. """ -function batch_delete_device_position_history( +batch_delete_device_position_history( DeviceIds, TrackerName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/tracking/v0/trackers/$(TrackerName)/delete-positions", + Dict{String,Any}("DeviceIds" => DeviceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/tracking/v0/trackers/$(TrackerName)/delete-positions", - Dict{String,Any}("DeviceIds" => DeviceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_device_position_history( DeviceIds, TrackerName, @@ -104,17 +100,15 @@ resource permanently. - `geofence_ids`: The batch of geofences to be deleted. """ -function batch_delete_geofence( +batch_delete_geofence( CollectionName, GeofenceIds; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/geofencing/v0/collections/$(CollectionName)/delete-geofences", + Dict{String,Any}("GeofenceIds" => GeofenceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/geofencing/v0/collections/$(CollectionName)/delete-geofences", - Dict{String,Any}("GeofenceIds" => GeofenceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_geofence( CollectionName, GeofenceIds, @@ -155,19 +149,17 @@ the DeviceID. against the given geofence collection. """ -function batch_evaluate_geofences( +batch_evaluate_geofences( CollectionName, DevicePositionUpdates; aws_config::AbstractAWSConfig=current_aws_config(), +) = location( + "POST", + "/geofencing/v0/collections/$(CollectionName)/positions", + Dict{String,Any}("DevicePositionUpdates" => DevicePositionUpdates); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/geofencing/v0/collections/$(CollectionName)/positions", - Dict{String,Any}("DevicePositionUpdates" => DevicePositionUpdates); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_evaluate_geofences( CollectionName, DevicePositionUpdates, @@ -201,17 +193,15 @@ Lists the latest device positions for requested devices. - `tracker_name`: The tracker resource retrieving the device position. """ -function batch_get_device_position( +batch_get_device_position( DeviceIds, TrackerName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/tracking/v0/trackers/$(TrackerName)/get-positions", + Dict{String,Any}("DeviceIds" => DeviceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/tracking/v0/trackers/$(TrackerName)/get-positions", - Dict{String,Any}("DeviceIds" => DeviceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_device_position( DeviceIds, TrackerName, @@ -241,17 +231,15 @@ updates the geometry of an existing geofence if a geofence ID is included in the - `entries`: The batch of geofences to be stored in a geofence collection. """ -function batch_put_geofence( +batch_put_geofence( CollectionName, Entries; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/geofencing/v0/collections/$(CollectionName)/put-geofences", + Dict{String,Any}("Entries" => Entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/geofencing/v0/collections/$(CollectionName)/put-geofences", - Dict{String,Any}("Entries" => Entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_geofence( CollectionName, Entries, @@ -293,17 +281,15 @@ value { \"Horizontal\": 0} when accuracy is not provided on a DevicePositionUpda - `updates`: Contains the position update details for each device, up to 10 devices. """ -function batch_update_device_position( +batch_update_device_position( TrackerName, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/tracking/v0/trackers/$(TrackerName)/positions", + Dict{String,Any}("Updates" => Updates); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/tracking/v0/trackers/$(TrackerName)/positions", - Dict{String,Any}("Updates" => Updates); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_device_position( TrackerName, Updates, @@ -391,23 +377,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Values: [-180 to 180,-90 to 90] - `"key"`: The optional API key to authorize the request. """ -function calculate_route( +calculate_route( CalculatorName, DeparturePosition, DestinationPosition; aws_config::AbstractAWSConfig=current_aws_config(), +) = location( + "POST", + "/routes/v0/calculators/$(CalculatorName)/calculate/route", + Dict{String,Any}( + "DeparturePosition" => DeparturePosition, + "DestinationPosition" => DestinationPosition, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/routes/v0/calculators/$(CalculatorName)/calculate/route", - Dict{String,Any}( - "DeparturePosition" => DeparturePosition, - "DestinationPosition" => DestinationPosition, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function calculate_route( CalculatorName, DeparturePosition, @@ -504,23 +488,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys choosing an optimal road. Requirements: TravelMode must be specified as Truck. - `"key"`: The optional API key to authorize the request. """ -function calculate_route_matrix( +calculate_route_matrix( CalculatorName, DeparturePositions, DestinationPositions; aws_config::AbstractAWSConfig=current_aws_config(), +) = location( + "POST", + "/routes/v0/calculators/$(CalculatorName)/calculate/route-matrix", + Dict{String,Any}( + "DeparturePositions" => DeparturePositions, + "DestinationPositions" => DestinationPositions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/routes/v0/calculators/$(CalculatorName)/calculate/route-matrix", - Dict{String,Any}( - "DeparturePositions" => DeparturePositions, - "DestinationPositions" => DestinationPositions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function calculate_route_matrix( CalculatorName, DeparturePositions, @@ -573,17 +555,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. Cannot use \"aws:\" as a prefix for a key. """ -function create_geofence_collection( +create_geofence_collection( CollectionName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/geofencing/v0/collections", + Dict{String,Any}("CollectionName" => CollectionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/geofencing/v0/collections", - Dict{String,Any}("CollectionName" => CollectionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_geofence_collection( CollectionName, params::AbstractDict{String}; @@ -629,17 +609,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. Cannot use \"aws:\" as a prefix for a key. """ -function create_key( - KeyName, Restrictions; aws_config::AbstractAWSConfig=current_aws_config() -) - return location( +create_key(KeyName, Restrictions; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "POST", "/metadata/v0/keys", Dict{String,Any}("KeyName" => KeyName, "Restrictions" => Restrictions); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_key( KeyName, Restrictions, @@ -691,17 +668,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. Cannot use \"aws:\" as a prefix for a key. """ -function create_map( - Configuration, MapName; aws_config::AbstractAWSConfig=current_aws_config() -) - return location( +create_map(Configuration, MapName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "POST", "/maps/v0/maps", Dict{String,Any}("Configuration" => Configuration, "MapName" => MapName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_map( Configuration, MapName, @@ -765,17 +739,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @ Cannot use \"aws:\" as a prefix for a key. """ -function create_place_index( +create_place_index( DataSource, IndexName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/places/v0/indexes", + Dict{String,Any}("DataSource" => DataSource, "IndexName" => IndexName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/places/v0/indexes", - Dict{String,Any}("DataSource" => DataSource, "IndexName" => IndexName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_place_index( DataSource, IndexName, @@ -837,17 +809,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 0–9), and the following characters: + - = . _ : / @. Cannot use \"aws:\" as a prefix for a key. """ -function create_route_calculator( +create_route_calculator( CalculatorName, DataSource; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/routes/v0/calculators", + Dict{String,Any}("CalculatorName" => CalculatorName, "DataSource" => DataSource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/routes/v0/calculators", - Dict{String,Any}("CalculatorName" => CalculatorName, "DataSource" => DataSource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_route_calculator( CalculatorName, DataSource, @@ -926,15 +896,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. Cannot use \"aws:\" as a prefix for a key. """ -function create_tracker(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "POST", - "/tracking/v0/trackers", - Dict{String,Any}("TrackerName" => TrackerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_tracker(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "POST", + "/tracking/v0/trackers", + Dict{String,Any}("TrackerName" => TrackerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_tracker( TrackerName, params::AbstractDict{String}; @@ -963,16 +931,14 @@ resource, the devices will no longer be monitored. - `collection_name`: The name of the geofence collection to be deleted. """ -function delete_geofence_collection( +delete_geofence_collection( CollectionName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "DELETE", + "/geofencing/v0/collections/$(CollectionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "DELETE", - "/geofencing/v0/collections/$(CollectionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_geofence_collection( CollectionName, params::AbstractDict{String}; @@ -1004,14 +970,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys key. Valid values: true, or false. Required: No This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use. """ -function delete_key(KeyName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "DELETE", - "/metadata/v0/keys/$(KeyName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_key(KeyName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "DELETE", + "/metadata/v0/keys/$(KeyName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_key( KeyName, params::AbstractDict{String}; @@ -1037,14 +1001,12 @@ resource permanently. If the map is being used in an application, the map may no - `map_name`: The name of the map resource to be deleted. """ -function delete_map(MapName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "DELETE", - "/maps/v0/maps/$(MapName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_map(MapName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "DELETE", + "/maps/v0/maps/$(MapName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_map( MapName, params::AbstractDict{String}; @@ -1070,14 +1032,13 @@ deletes the resource permanently. - `index_name`: The name of the place index resource to be deleted. """ -function delete_place_index(IndexName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( +delete_place_index(IndexName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "DELETE", "/places/v0/indexes/$(IndexName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_place_index( IndexName, params::AbstractDict{String}; @@ -1103,16 +1064,14 @@ deletes the resource permanently. - `calculator_name`: The name of the route calculator resource to be deleted. """ -function delete_route_calculator( +delete_route_calculator( CalculatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "DELETE", + "/routes/v0/calculators/$(CalculatorName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "DELETE", - "/routes/v0/calculators/$(CalculatorName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_route_calculator( CalculatorName, params::AbstractDict{String}; @@ -1139,14 +1098,12 @@ Make sure that the target resource isn't a dependency for your applications. - `tracker_name`: The name of the tracker resource to be deleted. """ -function delete_tracker(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "DELETE", - "/tracking/v0/trackers/$(TrackerName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_tracker(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "DELETE", + "/tracking/v0/trackers/$(TrackerName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_tracker( TrackerName, params::AbstractDict{String}; @@ -1171,16 +1128,14 @@ Retrieves the geofence collection details. - `collection_name`: The name of the geofence collection. """ -function describe_geofence_collection( +describe_geofence_collection( CollectionName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "GET", + "/geofencing/v0/collections/$(CollectionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "GET", - "/geofencing/v0/collections/$(CollectionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_geofence_collection( CollectionName, params::AbstractDict{String}; @@ -1205,14 +1160,12 @@ Retrieves the API key resource details. - `key_name`: The name of the API key resource. """ -function describe_key(KeyName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "GET", - "/metadata/v0/keys/$(KeyName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_key(KeyName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "GET", + "/metadata/v0/keys/$(KeyName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_key( KeyName, params::AbstractDict{String}; @@ -1237,14 +1190,12 @@ Retrieves the map resource details. - `map_name`: The name of the map resource. """ -function describe_map(MapName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "GET", - "/maps/v0/maps/$(MapName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_map(MapName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "GET", + "/maps/v0/maps/$(MapName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_map( MapName, params::AbstractDict{String}; @@ -1269,14 +1220,13 @@ Retrieves the place index resource details. - `index_name`: The name of the place index resource. """ -function describe_place_index(IndexName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( +describe_place_index(IndexName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "GET", "/places/v0/indexes/$(IndexName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_place_index( IndexName, params::AbstractDict{String}; @@ -1301,16 +1251,14 @@ Retrieves the route calculator resource details. - `calculator_name`: The name of the route calculator resource. """ -function describe_route_calculator( +describe_route_calculator( CalculatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "GET", + "/routes/v0/calculators/$(CalculatorName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "GET", - "/routes/v0/calculators/$(CalculatorName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_route_calculator( CalculatorName, params::AbstractDict{String}; @@ -1335,14 +1283,13 @@ Retrieves the tracker resource details. - `tracker_name`: The name of the tracker resource. """ -function describe_tracker(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( +describe_tracker(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "GET", "/tracking/v0/trackers/$(TrackerName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_tracker( TrackerName, params::AbstractDict{String}; @@ -1373,16 +1320,14 @@ be automatically evaluated against geofences. - `tracker_name`: The name of the tracker resource to be dissociated from the consumer. """ -function disassociate_tracker_consumer( +disassociate_tracker_consumer( ConsumerArn, TrackerName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "DELETE", + "/tracking/v0/trackers/$(TrackerName)/consumers/$(ConsumerArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "DELETE", - "/tracking/v0/trackers/$(TrackerName)/consumers/$(ConsumerArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_tracker_consumer( ConsumerArn, TrackerName, @@ -1430,17 +1375,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys KilometersPerHour. - `"TimeHorizonMinutes"`: Specifies the time horizon in minutes for the forecasted events. """ -function forecast_geofence_events( +forecast_geofence_events( CollectionName, DeviceState; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/geofencing/v0/collections/$(CollectionName)/forecast-geofence-events", + Dict{String,Any}("DeviceState" => DeviceState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/geofencing/v0/collections/$(CollectionName)/forecast-geofence-events", - Dict{String,Any}("DeviceState" => DeviceState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function forecast_geofence_events( CollectionName, DeviceState, @@ -1470,16 +1413,14 @@ are deleted after 30 days. - `tracker_name`: The tracker resource receiving the position update. """ -function get_device_position( +get_device_position( DeviceId, TrackerName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "GET", + "/tracking/v0/trackers/$(TrackerName)/devices/$(DeviceId)/positions/latest"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "GET", - "/tracking/v0/trackers/$(TrackerName)/devices/$(DeviceId)/positions/latest"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_device_position( DeviceId, TrackerName, @@ -1522,16 +1463,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that the request is made. Requirement: The time specified for StartTimeInclusive must be before EndTimeExclusive. """ -function get_device_position_history( +get_device_position_history( DeviceId, TrackerName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/tracking/v0/trackers/$(TrackerName)/devices/$(DeviceId)/list-positions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/tracking/v0/trackers/$(TrackerName)/devices/$(DeviceId)/list-positions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_device_position_history( DeviceId, TrackerName, @@ -1559,16 +1498,14 @@ always match the geometry format used when the geofence was created. - `geofence_id`: The geofence you're retrieving details for. """ -function get_geofence( +get_geofence( CollectionName, GeofenceId; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "GET", + "/geofencing/v0/collections/$(CollectionName)/geofences/$(GeofenceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "GET", - "/geofencing/v0/collections/$(CollectionName)/geofences/$(GeofenceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_geofence( CollectionName, GeofenceId, @@ -1625,16 +1562,14 @@ Retrieves glyphs used to display labels on a map. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"key"`: The optional API key to authorize the request. """ -function get_map_glyphs( +get_map_glyphs( FontStack, FontUnicodeRange, MapName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "GET", + "/maps/v0/maps/$(MapName)/glyphs/$(FontStack)/$(FontUnicodeRange)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "GET", - "/maps/v0/maps/$(MapName)/glyphs/$(FontStack)/$(FontUnicodeRange)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_map_glyphs( FontStack, FontUnicodeRange, @@ -1670,16 +1605,13 @@ displayed on a rendered map. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"key"`: The optional API key to authorize the request. """ -function get_map_sprites( - FileName, MapName; aws_config::AbstractAWSConfig=current_aws_config() -) - return location( +get_map_sprites(FileName, MapName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "GET", "/maps/v0/maps/$(MapName)/sprites/$(FileName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_map_sprites( FileName, MapName, @@ -1711,16 +1643,13 @@ Mapbox Style Specification. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"key"`: The optional API key to authorize the request. """ -function get_map_style_descriptor( - MapName; aws_config::AbstractAWSConfig=current_aws_config() -) - return location( +get_map_style_descriptor(MapName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "GET", "/maps/v0/maps/$(MapName)/style-descriptor"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_map_style_descriptor( MapName, params::AbstractDict{String}; @@ -1755,14 +1684,13 @@ doubles both the X and Y dimensions, so a tile containing data for the entire wo Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"key"`: The optional API key to authorize the request. """ -function get_map_tile(MapName, X, Y, Z; aws_config::AbstractAWSConfig=current_aws_config()) - return location( +get_map_tile(MapName, X, Y, Z; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "GET", "/maps/v0/maps/$(MapName)/tiles/$(Z)/$(X)/$(Y)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_map_tile( MapName, X, @@ -1806,14 +1734,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys city in the results will more likely be returned as Αθήνα. If the data provider does not have a value for Greek, the result will be in a language that the provider does support. """ -function get_place(IndexName, PlaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return location( +get_place(IndexName, PlaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "GET", "/places/v0/indexes/$(IndexName)/places/$(PlaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_place( IndexName, PlaceId, @@ -1846,16 +1773,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: null """ -function list_device_positions( - TrackerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return location( +list_device_positions(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "POST", "/tracking/v0/trackers/$(TrackerName)/list-positions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_device_positions( TrackerName, params::AbstractDict{String}; @@ -1883,14 +1807,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: null """ -function list_geofence_collections(; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "POST", - "/geofencing/v0/list-collections"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_geofence_collections(; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "POST", + "/geofencing/v0/list-collections"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_geofence_collections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1919,14 +1841,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: null """ -function list_geofences(CollectionName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( +list_geofences(CollectionName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "POST", "/geofencing/v0/collections/$(CollectionName)/list-geofences"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_geofences( CollectionName, params::AbstractDict{String}; @@ -1955,14 +1876,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: null """ -function list_keys(; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "POST", - "/metadata/v0/list-keys"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "POST", + "/metadata/v0/list-keys"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_keys( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1988,11 +1907,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: null """ -function list_maps(; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "POST", "/maps/v0/list-maps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_maps(; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "POST", "/maps/v0/list-maps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_maps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2018,14 +1935,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: null """ -function list_place_indexes(; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "POST", - "/places/v0/list-indexes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_place_indexes(; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "POST", + "/places/v0/list-indexes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_place_indexes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2051,14 +1966,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default Value: null """ -function list_route_calculators(; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "POST", - "/routes/v0/list-calculators"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_route_calculators(; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "POST", + "/routes/v0/list-calculators"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_route_calculators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2082,16 +1995,13 @@ Returns a list of tags that are applied to the specified Amazon Location resourc retrieve. Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return location( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2123,16 +2033,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: null """ -function list_tracker_consumers( - TrackerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return location( +list_tracker_consumers(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "POST", "/tracking/v0/trackers/$(TrackerName)/list-consumers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tracker_consumers( TrackerName, params::AbstractDict{String}; @@ -2160,14 +2067,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: null """ -function list_trackers(; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "POST", - "/tracking/v0/list-trackers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_trackers(; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "POST", + "/tracking/v0/list-trackers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_trackers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2201,17 +2106,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence. Format: \"key\" : \"value\" """ -function put_geofence( +put_geofence( CollectionName, GeofenceId, Geometry; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "PUT", + "/geofencing/v0/collections/$(CollectionName)/geofences/$(GeofenceId)", + Dict{String,Any}("Geometry" => Geometry); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "PUT", - "/geofencing/v0/collections/$(CollectionName)/geofences/$(GeofenceId)", - Dict{String,Any}("Geometry" => Geometry); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_geofence( CollectionName, GeofenceId, @@ -2259,17 +2162,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request. Default value: 50 - `"key"`: The optional API key to authorize the request. """ -function search_place_index_for_position( +search_place_index_for_position( IndexName, Position; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/places/v0/indexes/$(IndexName)/search/position", + Dict{String,Any}("Position" => Position); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/places/v0/indexes/$(IndexName)/search/position", - Dict{String,Any}("Position" => Position); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_place_index_for_position( IndexName, Position, @@ -2343,17 +2244,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request. The default: 5 - `"key"`: The optional API key to authorize the request. """ -function search_place_index_for_suggestions( +search_place_index_for_suggestions( IndexName, Text; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/places/v0/indexes/$(IndexName)/search/suggestions", + Dict{String,Any}("Text" => Text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/places/v0/indexes/$(IndexName)/search/suggestions", - Dict{String,Any}("Text" => Text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_place_index_for_suggestions( IndexName, Text, @@ -2424,17 +2323,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request. The default: 50 - `"key"`: The optional API key to authorize the request. """ -function search_place_index_for_text( +search_place_index_for_text( IndexName, Text; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/places/v0/indexes/$(IndexName)/search/text", + Dict{String,Any}("Text" => Text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/places/v0/indexes/$(IndexName)/search/text", - Dict{String,Any}("Text" => Text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_place_index_for_text( IndexName, Text, @@ -2475,15 +2372,14 @@ the previous value for that tag. You can associate up to 50 tags with a resourc as a prefix for a key. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return location( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2511,17 +2407,14 @@ Removes one or more tags from the specified Amazon Location resource. - `tag_keys`: The list of tag keys to remove from the specified resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return location( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -2552,16 +2445,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PricingPlan"`: No longer used. If included, the only allowed value is RequestBasedUsage. - `"PricingPlanDataSource"`: This parameter is no longer used. """ -function update_geofence_collection( +update_geofence_collection( CollectionName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "PATCH", + "/geofencing/v0/collections/$(CollectionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "PATCH", - "/geofencing/v0/collections/$(CollectionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_geofence_collection( CollectionName, params::AbstractDict{String}; @@ -2597,14 +2488,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys no expiration time. - `"Restrictions"`: Updates the API key restrictions for the API key resource. """ -function update_key(KeyName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "PATCH", - "/metadata/v0/keys/$(KeyName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_key(KeyName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "PATCH", + "/metadata/v0/keys/$(KeyName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_key( KeyName, params::AbstractDict{String}; @@ -2635,14 +2524,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: Updates the description for the map resource. - `"PricingPlan"`: No longer used. If included, the only allowed value is RequestBasedUsage. """ -function update_map(MapName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "PATCH", - "/maps/v0/maps/$(MapName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_map(MapName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "PATCH", + "/maps/v0/maps/$(MapName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_map( MapName, params::AbstractDict{String}; @@ -2672,14 +2559,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: Updates the description for the place index resource. - `"PricingPlan"`: No longer used. If included, the only allowed value is RequestBasedUsage. """ -function update_place_index(IndexName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( +update_place_index(IndexName; aws_config::AbstractAWSConfig=current_aws_config()) = + location( "PATCH", "/places/v0/indexes/$(IndexName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_place_index( IndexName, params::AbstractDict{String}; @@ -2708,16 +2594,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: Updates the description for the route calculator resource. - `"PricingPlan"`: No longer used. If included, the only allowed value is RequestBasedUsage. """ -function update_route_calculator( +update_route_calculator( CalculatorName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "PATCH", + "/routes/v0/calculators/$(CalculatorName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "PATCH", - "/routes/v0/calculators/$(CalculatorName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_route_calculator( CalculatorName, params::AbstractDict{String}; @@ -2769,14 +2653,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PricingPlan"`: No longer used. If included, the only allowed value is RequestBasedUsage. - `"PricingPlanDataSource"`: This parameter is no longer used. """ -function update_tracker(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) - return location( - "PATCH", - "/tracking/v0/trackers/$(TrackerName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_tracker(TrackerName; aws_config::AbstractAWSConfig=current_aws_config()) = location( + "PATCH", + "/tracking/v0/trackers/$(TrackerName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_tracker( TrackerName, params::AbstractDict{String}; @@ -2809,17 +2691,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DistanceUnit"`: The distance unit for the verification request. Default Value: Kilometers """ -function verify_device_position( +verify_device_position( DeviceState, TrackerName; aws_config::AbstractAWSConfig=current_aws_config() +) = location( + "POST", + "/tracking/v0/trackers/$(TrackerName)/positions/verify", + Dict{String,Any}("DeviceState" => DeviceState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return location( - "POST", - "/tracking/v0/trackers/$(TrackerName)/positions/verify", - Dict{String,Any}("DeviceState" => DeviceState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_device_position( DeviceState, TrackerName, diff --git a/src/services/lookoutequipment.jl b/src/services/lookoutequipment.jl index b2b36fd7c..3310145a7 100644 --- a/src/services/lookoutequipment.jl +++ b/src/services/lookoutequipment.jl @@ -26,16 +26,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data by Amazon Lookout for Equipment. - `"Tags"`: Any tags associated with the ingested data described in the dataset. """ -function create_dataset( +create_dataset( ClientToken, DatasetName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "CreateDataset", + Dict{String,Any}("ClientToken" => ClientToken, "DatasetName" => DatasetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "CreateDataset", - Dict{String,Any}("ClientToken" => ClientToken, "DatasetName" => DatasetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset( ClientToken, DatasetName, @@ -101,7 +99,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys scheduler data by Amazon Lookout for Equipment. - `"Tags"`: Any tags associated with the inference scheduler. """ -function create_inference_scheduler( +create_inference_scheduler( ClientToken, DataInputConfiguration, DataOutputConfiguration, @@ -110,22 +108,20 @@ function create_inference_scheduler( ModelName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutequipment( + "CreateInferenceScheduler", + Dict{String,Any}( + "ClientToken" => ClientToken, + "DataInputConfiguration" => DataInputConfiguration, + "DataOutputConfiguration" => DataOutputConfiguration, + "DataUploadFrequency" => DataUploadFrequency, + "InferenceSchedulerName" => InferenceSchedulerName, + "ModelName" => ModelName, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "CreateInferenceScheduler", - Dict{String,Any}( - "ClientToken" => ClientToken, - "DataInputConfiguration" => DataInputConfiguration, - "DataOutputConfiguration" => DataOutputConfiguration, - "DataUploadFrequency" => DataUploadFrequency, - "InferenceSchedulerName" => InferenceSchedulerName, - "ModelName" => ModelName, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_inference_scheduler( ClientToken, DataInputConfiguration, @@ -186,27 +182,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys field will be retained for service usage. Follow best practices for the security of your data. """ -function create_label( +create_label( ClientToken, EndTime, LabelGroupName, Rating, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutequipment( + "CreateLabel", + Dict{String,Any}( + "ClientToken" => ClientToken, + "EndTime" => EndTime, + "LabelGroupName" => LabelGroupName, + "Rating" => Rating, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "CreateLabel", - Dict{String,Any}( - "ClientToken" => ClientToken, - "EndTime" => EndTime, - "LabelGroupName" => LabelGroupName, - "Rating" => Rating, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_label( ClientToken, EndTime, @@ -257,16 +251,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this field will be retained for service usage. Follow best practices for the security of your data. """ -function create_label_group( +create_label_group( ClientToken, LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "CreateLabelGroup", + Dict{String,Any}("ClientToken" => ClientToken, "LabelGroupName" => LabelGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "CreateLabelGroup", - Dict{String,Any}("ClientToken" => ClientToken, "LabelGroupName" => LabelGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_label_group( ClientToken, LabelGroupName, @@ -340,20 +332,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TrainingDataStartTime"`: Indicates the time reference in the dataset that should be used to begin the subset of training data for the machine learning model. """ -function create_model( +create_model( ClientToken, DatasetName, ModelName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "CreateModel", + Dict{String,Any}( + "ClientToken" => ClientToken, + "DatasetName" => DatasetName, + "ModelName" => ModelName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "CreateModel", - Dict{String,Any}( - "ClientToken" => ClientToken, - "DatasetName" => DatasetName, - "ModelName" => ModelName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model( ClientToken, DatasetName, @@ -405,25 +395,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RetrainingStartDate"`: The start date for the retraining scheduler. Lookout for Equipment truncates the time you provide to the nearest UTC day. """ -function create_retraining_scheduler( +create_retraining_scheduler( ClientToken, LookbackWindow, ModelName, RetrainingFrequency; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutequipment( + "CreateRetrainingScheduler", + Dict{String,Any}( + "ClientToken" => ClientToken, + "LookbackWindow" => LookbackWindow, + "ModelName" => ModelName, + "RetrainingFrequency" => RetrainingFrequency, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "CreateRetrainingScheduler", - Dict{String,Any}( - "ClientToken" => ClientToken, - "LookbackWindow" => LookbackWindow, - "ModelName" => ModelName, - "RetrainingFrequency" => RetrainingFrequency, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_retraining_scheduler( ClientToken, LookbackWindow, @@ -465,14 +453,13 @@ does prevent it from being used in the future. - `dataset_name`: The name of the dataset to be deleted. """ -function delete_dataset(DatasetName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +delete_dataset(DatasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DeleteDataset", Dict{String,Any}("DatasetName" => DatasetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dataset( DatasetName, params::AbstractDict{String}; @@ -499,16 +486,14 @@ deleted. - `inference_scheduler_name`: The name of the inference scheduler to be deleted. """ -function delete_inference_scheduler( +delete_inference_scheduler( InferenceSchedulerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "DeleteInferenceScheduler", + Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "DeleteInferenceScheduler", - Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_inference_scheduler( InferenceSchedulerName, params::AbstractDict{String}; @@ -541,16 +526,13 @@ end - `label_id`: The ID of the label that you want to delete. """ -function delete_label( - LabelGroupName, LabelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +delete_label(LabelGroupName, LabelId; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DeleteLabel", Dict{String,Any}("LabelGroupName" => LabelGroupName, "LabelId" => LabelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_label( LabelGroupName, LabelId, @@ -583,16 +565,13 @@ end data. """ -function delete_label_group( - LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +delete_label_group(LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DeleteLabelGroup", Dict{String,Any}("LabelGroupName" => LabelGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_label_group( LabelGroupName, params::AbstractDict{String}; @@ -620,14 +599,13 @@ up. - `model_name`: The name of the machine learning model to be deleted. """ -function delete_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +delete_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DeleteModel", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_model( ModelName, params::AbstractDict{String}; @@ -654,16 +632,13 @@ Deletes the resource policy attached to the resource. policy should be deleted. """ -function delete_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +delete_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DeleteResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -690,16 +665,13 @@ STOPPED status. - `model_name`: The name of the model whose retraining scheduler you want to delete. """ -function delete_retraining_scheduler( - ModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +delete_retraining_scheduler(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DeleteRetrainingScheduler", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_retraining_scheduler( ModelName, params::AbstractDict{String}; @@ -726,16 +698,13 @@ and status. - `job_id`: The job ID of the data ingestion job. """ -function describe_data_ingestion_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +describe_data_ingestion_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DescribeDataIngestionJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_data_ingestion_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -758,14 +727,13 @@ column names, and data types. - `dataset_name`: The name of the dataset to be described. """ -function describe_dataset(DatasetName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +describe_dataset(DatasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DescribeDataset", Dict{String,Any}("DatasetName" => DatasetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dataset( DatasetName, params::AbstractDict{String}; @@ -792,16 +760,14 @@ status, and associated metadata - `inference_scheduler_name`: The name of the inference scheduler being described. """ -function describe_inference_scheduler( +describe_inference_scheduler( InferenceSchedulerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "DescribeInferenceScheduler", + Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "DescribeInferenceScheduler", - Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_inference_scheduler( InferenceSchedulerName, params::AbstractDict{String}; @@ -832,16 +798,14 @@ end - `label_id`: Returns the ID of the label. """ -function describe_label( +describe_label( LabelGroupName, LabelId; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "DescribeLabel", + Dict{String,Any}("LabelGroupName" => LabelGroupName, "LabelId" => LabelId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "DescribeLabel", - Dict{String,Any}("LabelGroupName" => LabelGroupName, "LabelId" => LabelId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_label( LabelGroupName, LabelId, @@ -872,16 +836,13 @@ end - `label_group_name`: Returns the name of the label group. """ -function describe_label_group( - LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +describe_label_group(LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DescribeLabelGroup", Dict{String,Any}("LabelGroupName" => LabelGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_label_group( LabelGroupName, params::AbstractDict{String}; @@ -909,14 +870,13 @@ on. - `model_name`: The name of the machine learning model to be described. """ -function describe_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +describe_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DescribeModel", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_model( ModelName, params::AbstractDict{String}; @@ -943,16 +903,14 @@ Retrieves information about a specific machine learning model version. - `model_version`: The version of the machine learning model. """ -function describe_model_version( +describe_model_version( ModelName, ModelVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "DescribeModelVersion", + Dict{String,Any}("ModelName" => ModelName, "ModelVersion" => ModelVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "DescribeModelVersion", - Dict{String,Any}("ModelName" => ModelName, "ModelVersion" => ModelVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model_version( ModelName, ModelVersion, @@ -984,16 +942,13 @@ Provides the details of a resource policy attached to a resource. the resource policy. """ -function describe_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +describe_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "DescribeResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -1020,16 +975,14 @@ name and retraining parameters. - `model_name`: The name of the model that the retraining scheduler is attached to. """ -function describe_retraining_scheduler( +describe_retraining_scheduler( ModelName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "DescribeRetrainingScheduler", + Dict{String,Any}("ModelName" => ModelName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "DescribeRetrainingScheduler", - Dict{String,Any}("ModelName" => ModelName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_retraining_scheduler( ModelName, params::AbstractDict{String}; @@ -1065,18 +1018,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data by Amazon Lookout for Equipment. - `"Tags"`: Any tags associated with the dataset to be created. """ -function import_dataset( +import_dataset( ClientToken, SourceDatasetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "ImportDataset", + Dict{String,Any}("ClientToken" => ClientToken, "SourceDatasetArn" => SourceDatasetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "ImportDataset", - Dict{String,Any}( - "ClientToken" => ClientToken, "SourceDatasetArn" => SourceDatasetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_dataset( ClientToken, SourceDatasetArn, @@ -1128,23 +1077,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data by Amazon Lookout for Equipment. - `"Tags"`: The tags associated with the machine learning model to be created. """ -function import_model_version( +import_model_version( ClientToken, DatasetName, SourceModelVersionArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutequipment( + "ImportModelVersion", + Dict{String,Any}( + "ClientToken" => ClientToken, + "DatasetName" => DatasetName, + "SourceModelVersionArn" => SourceModelVersionArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "ImportModelVersion", - Dict{String,Any}( - "ClientToken" => ClientToken, - "DatasetName" => DatasetName, - "SourceModelVersionArn" => SourceModelVersionArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_model_version( ClientToken, DatasetName, @@ -1185,11 +1132,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data ingestion jobs. - `"Status"`: Indicates the status of the data ingestion job. """ -function list_data_ingestion_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +list_data_ingestion_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "ListDataIngestionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_data_ingestion_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1214,11 +1160,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque pagination token indicating where to continue the listing of datasets. """ -function list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( - "ListDatasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment("ListDatasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_datasets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1247,23 +1190,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque pagination token indicating where to continue the listing of inference events. """ -function list_inference_events( +list_inference_events( InferenceSchedulerName, IntervalEndTime, IntervalStartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutequipment( + "ListInferenceEvents", + Dict{String,Any}( + "InferenceSchedulerName" => InferenceSchedulerName, + "IntervalEndTime" => IntervalEndTime, + "IntervalStartTime" => IntervalStartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "ListInferenceEvents", - Dict{String,Any}( - "InferenceSchedulerName" => InferenceSchedulerName, - "IntervalEndTime" => IntervalEndTime, - "IntervalStartTime" => IntervalStartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_inference_events( InferenceSchedulerName, IntervalEndTime, @@ -1311,16 +1252,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys inference executions. - `"Status"`: The status of the inference execution. """ -function list_inference_executions( +list_inference_executions( InferenceSchedulerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "ListInferenceExecutions", + Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "ListInferenceExecutions", - Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_inference_executions( InferenceSchedulerName, params::AbstractDict{String}; @@ -1357,11 +1296,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys inference schedulers. - `"Status"`: Specifies the current status of the inference schedulers. """ -function list_inference_schedulers(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +list_inference_schedulers(; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "ListInferenceSchedulers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_inference_schedulers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1387,11 +1325,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque pagination token indicating where to continue the listing of label groups. """ -function list_label_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( - "ListLabelGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_label_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = lookoutequipment( + "ListLabelGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_label_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1421,14 +1357,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque pagination token indicating where to continue the listing of label groups. """ -function list_labels(LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +list_labels(LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "ListLabels", Dict{String,Any}("LabelGroupName" => LabelGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_labels( LabelGroupName, params::AbstractDict{String}; @@ -1472,14 +1407,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceType"`: Filter the results based on the way the model version was generated. - `"Status"`: Filter the results based on the current status of the model version. """ -function list_model_versions(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +list_model_versions(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "ListModelVersions", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_model_versions( ModelName, params::AbstractDict{String}; @@ -1513,11 +1447,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys machine learning models. - `"Status"`: The status of the machine learning model. """ -function list_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( - "ListModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_models(; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment("ListModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1542,11 +1473,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: Specify this field to only list retraining schedulers whose status matches the value you specify. """ -function list_retraining_schedulers(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +list_retraining_schedulers(; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "ListRetrainingSchedulers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_retraining_schedulers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1578,16 +1508,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque pagination token indicating where to continue the listing of sensor statistics. """ -function list_sensor_statistics( - DatasetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +list_sensor_statistics(DatasetName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "ListSensorStatistics", Dict{String,Any}("DatasetName" => DatasetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_sensor_statistics( DatasetName, params::AbstractDict{String}; @@ -1614,16 +1541,13 @@ Lists all the tags for a specified resource, including key and value. model) that is the focus of the ListTagsForResource operation. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1656,23 +1580,21 @@ Creates a resource control policy for a given resource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PolicyRevisionId"`: A unique identifier for a revision of the resource policy. """ -function put_resource_policy( +put_resource_policy( ClientToken, ResourceArn, ResourcePolicy; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutequipment( + "PutResourcePolicy", + Dict{String,Any}( + "ClientToken" => ClientToken, + "ResourceArn" => ResourceArn, + "ResourcePolicy" => ResourcePolicy, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "PutResourcePolicy", - Dict{String,Any}( - "ClientToken" => ClientToken, - "ResourceArn" => ResourceArn, - "ResourcePolicy" => ResourcePolicy, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( ClientToken, ResourceArn, @@ -1714,25 +1636,23 @@ Starts a data ingestion job. Amazon Lookout for Equipment returns the job status source for the data ingestion job. """ -function start_data_ingestion_job( +start_data_ingestion_job( ClientToken, DatasetName, IngestionInputConfiguration, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutequipment( + "StartDataIngestionJob", + Dict{String,Any}( + "ClientToken" => ClientToken, + "DatasetName" => DatasetName, + "IngestionInputConfiguration" => IngestionInputConfiguration, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "StartDataIngestionJob", - Dict{String,Any}( - "ClientToken" => ClientToken, - "DatasetName" => DatasetName, - "IngestionInputConfiguration" => IngestionInputConfiguration, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_data_ingestion_job( ClientToken, DatasetName, @@ -1770,16 +1690,14 @@ Starts an inference scheduler. - `inference_scheduler_name`: The name of the inference scheduler to be started. """ -function start_inference_scheduler( +start_inference_scheduler( InferenceSchedulerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "StartInferenceScheduler", + Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "StartInferenceScheduler", - Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_inference_scheduler( InferenceSchedulerName, params::AbstractDict{String}; @@ -1809,16 +1727,13 @@ Starts a retraining scheduler. - `model_name`: The name of the model whose retraining scheduler you want to start. """ -function start_retraining_scheduler( - ModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +start_retraining_scheduler(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "StartRetrainingScheduler", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_retraining_scheduler( ModelName, params::AbstractDict{String}; @@ -1844,16 +1759,14 @@ Stops an inference scheduler. - `inference_scheduler_name`: The name of the inference scheduler to be stopped. """ -function stop_inference_scheduler( +stop_inference_scheduler( InferenceSchedulerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "StopInferenceScheduler", + Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "StopInferenceScheduler", - Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_inference_scheduler( InferenceSchedulerName, params::AbstractDict{String}; @@ -1883,16 +1796,13 @@ Stops a retraining scheduler. - `model_name`: The name of the model whose retraining scheduler you want to stop. """ -function stop_retraining_scheduler( - ModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +stop_retraining_scheduler(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "StopRetrainingScheduler", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_retraining_scheduler( ModelName, params::AbstractDict{String}; @@ -1925,14 +1835,13 @@ associated with each resource. value are specified. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1965,16 +1874,13 @@ Removes a specific tag from a given resource. The tag is specified by its key. - `tag_keys`: Specifies the key of the tag to be removed from a specified resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2008,16 +1914,14 @@ Sets the active model version for a given machine learning model. version is being set. """ -function update_active_model_version( +update_active_model_version( ModelName, ModelVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "UpdateActiveModelVersion", + Dict{String,Any}("ModelName" => ModelName, "ModelVersion" => ModelVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "UpdateActiveModelVersion", - Dict{String,Any}("ModelName" => ModelName, "ModelVersion" => ModelVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_active_model_version( ModelName, ModelVersion, @@ -2069,16 +1973,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleArn"`: The Amazon Resource Name (ARN) of a role with permission to access the data source for the inference scheduler. """ -function update_inference_scheduler( +update_inference_scheduler( InferenceSchedulerName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutequipment( + "UpdateInferenceScheduler", + Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutequipment( - "UpdateInferenceScheduler", - Dict{String,Any}("InferenceSchedulerName" => InferenceSchedulerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_inference_scheduler( InferenceSchedulerName, params::AbstractDict{String}; @@ -2113,16 +2015,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys label. Data in this field will be retained for service usage. Follow best practices for the security of your data. """ -function update_label_group( - LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +update_label_group(LabelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "UpdateLabelGroup", Dict{String,Any}("LabelGroupName" => LabelGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_label_group( LabelGroupName, params::AbstractDict{String}; @@ -2155,14 +2054,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify the RoleArn request parameter. - `"RoleArn"`: The ARN of the model to update. """ -function update_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutequipment( +update_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "UpdateModel", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_model( ModelName, params::AbstractDict{String}; @@ -2202,16 +2100,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RetrainingStartDate"`: The start date for the retraining scheduler. Lookout for Equipment truncates the time you provide to the nearest UTC day. """ -function update_retraining_scheduler( - ModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutequipment( +update_retraining_scheduler(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutequipment( "UpdateRetrainingScheduler", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_retraining_scheduler( ModelName, params::AbstractDict{String}; diff --git a/src/services/lookoutmetrics.jl b/src/services/lookoutmetrics.jl index 84d78e1e7..e2ada6078 100644 --- a/src/services/lookoutmetrics.jl +++ b/src/services/lookoutmetrics.jl @@ -14,17 +14,15 @@ Activates an anomaly detector. - `anomaly_detector_arn`: The ARN of the anomaly detector. """ -function activate_anomaly_detector( +activate_anomaly_detector( AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/ActivateAnomalyDetector", + Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/ActivateAnomalyDetector", - Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function activate_anomaly_detector( AnomalyDetectorArn, params::AbstractDict{String}; @@ -53,17 +51,15 @@ Runs a backtest for anomaly detection for the specified resource. - `anomaly_detector_arn`: The Amazon Resource Name (ARN) of the anomaly detector. """ -function back_test_anomaly_detector( +back_test_anomaly_detector( AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/BackTestAnomalyDetector", + Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/BackTestAnomalyDetector", - Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function back_test_anomaly_detector( AnomalyDetectorArn, params::AbstractDict{String}; @@ -102,24 +98,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys threshold. - `"Tags"`: A list of tags to apply to the alert. """ -function create_alert( +create_alert( Action, AlertName, AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutmetrics( + "POST", + "/CreateAlert", + Dict{String,Any}( + "Action" => Action, + "AlertName" => AlertName, + "AnomalyDetectorArn" => AnomalyDetectorArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/CreateAlert", - Dict{String,Any}( - "Action" => Action, - "AlertName" => AlertName, - "AnomalyDetectorArn" => AnomalyDetectorArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_alert( Action, AlertName, @@ -163,22 +157,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KmsKeyArn"`: The ARN of the KMS key to use to encrypt your data. - `"Tags"`: A list of tags to apply to the anomaly detector. """ -function create_anomaly_detector( +create_anomaly_detector( AnomalyDetectorConfig, AnomalyDetectorName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutmetrics( + "POST", + "/CreateAnomalyDetector", + Dict{String,Any}( + "AnomalyDetectorConfig" => AnomalyDetectorConfig, + "AnomalyDetectorName" => AnomalyDetectorName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/CreateAnomalyDetector", - Dict{String,Any}( - "AnomalyDetectorConfig" => AnomalyDetectorConfig, - "AnomalyDetectorName" => AnomalyDetectorName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_anomaly_detector( AnomalyDetectorConfig, AnomalyDetectorName, @@ -230,26 +222,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys source data. - `"Timezone"`: The time zone in which your source data was recorded. """ -function create_metric_set( +create_metric_set( AnomalyDetectorArn, MetricList, MetricSetName, MetricSource; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutmetrics( + "POST", + "/CreateMetricSet", + Dict{String,Any}( + "AnomalyDetectorArn" => AnomalyDetectorArn, + "MetricList" => MetricList, + "MetricSetName" => MetricSetName, + "MetricSource" => MetricSource, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/CreateMetricSet", - Dict{String,Any}( - "AnomalyDetectorArn" => AnomalyDetectorArn, - "MetricList" => MetricList, - "MetricSetName" => MetricSetName, - "MetricSource" => MetricSource, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_metric_set( AnomalyDetectorArn, MetricList, @@ -288,17 +278,15 @@ Deactivates an anomaly detector. - `anomaly_detector_arn`: The Amazon Resource Name (ARN) of the anomaly detector. """ -function deactivate_anomaly_detector( +deactivate_anomaly_detector( AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/DeactivateAnomalyDetector", + Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/DeactivateAnomalyDetector", - Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deactivate_anomaly_detector( AnomalyDetectorArn, params::AbstractDict{String}; @@ -327,15 +315,13 @@ Deletes an alert. - `alert_arn`: The ARN of the alert to delete. """ -function delete_alert(AlertArn; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( - "POST", - "/DeleteAlert", - Dict{String,Any}("AlertArn" => AlertArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_alert(AlertArn; aws_config::AbstractAWSConfig=current_aws_config()) = lookoutmetrics( + "POST", + "/DeleteAlert", + Dict{String,Any}("AlertArn" => AlertArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_alert( AlertArn, params::AbstractDict{String}; @@ -363,17 +349,15 @@ resources including any configured datasets and alerts. - `anomaly_detector_arn`: The ARN of the detector to delete. """ -function delete_anomaly_detector( +delete_anomaly_detector( AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/DeleteAnomalyDetector", + Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/DeleteAnomalyDetector", - Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_anomaly_detector( AnomalyDetectorArn, params::AbstractDict{String}; @@ -404,15 +388,14 @@ retries to allow time for the write operation to complete. - `alert_arn`: The ARN of the alert to describe. """ -function describe_alert(AlertArn; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( +describe_alert(AlertArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutmetrics( "POST", "/DescribeAlert", Dict{String,Any}("AlertArn" => AlertArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_alert( AlertArn, params::AbstractDict{String}; @@ -445,17 +428,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve the next page of results. - `"Timestamp"`: The timestamp of the anomaly detection job. """ -function describe_anomaly_detection_executions( +describe_anomaly_detection_executions( AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/DescribeAnomalyDetectionExecutions", + Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/DescribeAnomalyDetectionExecutions", - Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_anomaly_detection_executions( AnomalyDetectorArn, params::AbstractDict{String}; @@ -486,17 +467,15 @@ retries to allow time for the write operation to complete. - `anomaly_detector_arn`: The ARN of the detector to describe. """ -function describe_anomaly_detector( +describe_anomaly_detector( AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/DescribeAnomalyDetector", + Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/DescribeAnomalyDetector", - Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_anomaly_detector( AnomalyDetectorArn, params::AbstractDict{String}; @@ -527,17 +506,14 @@ retries to allow time for the write operation to complete. - `metric_set_arn`: The ARN of the dataset. """ -function describe_metric_set( - MetricSetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutmetrics( +describe_metric_set(MetricSetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutmetrics( "POST", "/DescribeMetricSet", Dict{String,Any}("MetricSetArn" => MetricSetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_metric_set( MetricSetArn, params::AbstractDict{String}; @@ -565,22 +541,20 @@ Detects an Amazon S3 dataset's file format, interval, and offset. - `auto_detection_metric_source`: A data source. """ -function detect_metric_set_config( +detect_metric_set_config( AnomalyDetectorArn, AutoDetectionMetricSource; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutmetrics( + "POST", + "/DetectMetricSetConfig", + Dict{String,Any}( + "AnomalyDetectorArn" => AnomalyDetectorArn, + "AutoDetectionMetricSource" => AutoDetectionMetricSource, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/DetectMetricSetConfig", - Dict{String,Any}( - "AnomalyDetectorArn" => AnomalyDetectorArn, - "AutoDetectionMetricSource" => AutoDetectionMetricSource, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detect_metric_set_config( AnomalyDetectorArn, AutoDetectionMetricSource, @@ -616,19 +590,17 @@ Returns details about a group of anomalous metrics. - `anomaly_group_id`: The ID of the anomaly group. """ -function get_anomaly_group( +get_anomaly_group( AnomalyDetectorArn, AnomalyGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/GetAnomalyGroup", + Dict{String,Any}( + "AnomalyDetectorArn" => AnomalyDetectorArn, "AnomalyGroupId" => AnomalyGroupId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/GetAnomalyGroup", - Dict{String,Any}( - "AnomalyDetectorArn" => AnomalyDetectorArn, "AnomalyGroupId" => AnomalyGroupId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_anomaly_group( AnomalyDetectorArn, AnomalyGroupId, @@ -667,17 +639,15 @@ Returns details about the requested data quality metrics. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MetricSetArn"`: The Amazon Resource Name (ARN) of a specific data quality metric set. """ -function get_data_quality_metrics( +get_data_quality_metrics( AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/GetDataQualityMetrics", + Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/GetDataQualityMetrics", - Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_quality_metrics( AnomalyDetectorArn, params::AbstractDict{String}; @@ -712,22 +682,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token that's returned by a previous request to retrieve the next page of results. """ -function get_feedback( +get_feedback( AnomalyDetectorArn, AnomalyGroupTimeSeriesFeedback; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutmetrics( + "POST", + "/GetFeedback", + Dict{String,Any}( + "AnomalyDetectorArn" => AnomalyDetectorArn, + "AnomalyGroupTimeSeriesFeedback" => AnomalyGroupTimeSeriesFeedback, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/GetFeedback", - Dict{String,Any}( - "AnomalyDetectorArn" => AnomalyDetectorArn, - "AnomalyGroupTimeSeriesFeedback" => AnomalyGroupTimeSeriesFeedback, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_feedback( AnomalyDetectorArn, AnomalyGroupTimeSeriesFeedback, @@ -762,11 +730,9 @@ Returns a selection of sample records from an Amazon S3 datasource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"S3SourceConfig"`: A datasource bucket in Amazon S3. """ -function get_sample_data(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( - "POST", "/GetSampleData"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_sample_data(; aws_config::AbstractAWSConfig=current_aws_config()) = lookoutmetrics( + "POST", "/GetSampleData"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_sample_data( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -795,11 +761,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_alerts(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( - "POST", "/ListAlerts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_alerts(; aws_config::AbstractAWSConfig=current_aws_config()) = lookoutmetrics( + "POST", "/ListAlerts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_alerts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -827,14 +791,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_anomaly_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( +list_anomaly_detectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutmetrics( "POST", "/ListAnomalyDetectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_anomaly_detectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -865,19 +828,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RelationshipTypeFilter"`: Filter for potential causes (CAUSE_OF_INPUT_ANOMALY_GROUP) or downstream effects (EFFECT_OF_INPUT_ANOMALY_GROUP) of the anomaly group. """ -function list_anomaly_group_related_metrics( +list_anomaly_group_related_metrics( AnomalyDetectorArn, AnomalyGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/ListAnomalyGroupRelatedMetrics", + Dict{String,Any}( + "AnomalyDetectorArn" => AnomalyDetectorArn, "AnomalyGroupId" => AnomalyGroupId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/ListAnomalyGroupRelatedMetrics", - Dict{String,Any}( - "AnomalyDetectorArn" => AnomalyDetectorArn, "AnomalyGroupId" => AnomalyGroupId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_anomaly_group_related_metrics( AnomalyDetectorArn, AnomalyGroupId, @@ -918,22 +879,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token that's returned by a previous request to retrieve the next page of results. """ -function list_anomaly_group_summaries( +list_anomaly_group_summaries( AnomalyDetectorArn, SensitivityThreshold; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutmetrics( + "POST", + "/ListAnomalyGroupSummaries", + Dict{String,Any}( + "AnomalyDetectorArn" => AnomalyDetectorArn, + "SensitivityThreshold" => SensitivityThreshold, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/ListAnomalyGroupSummaries", - Dict{String,Any}( - "AnomalyDetectorArn" => AnomalyDetectorArn, - "SensitivityThreshold" => SensitivityThreshold, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_anomaly_group_summaries( AnomalyDetectorArn, SensitivityThreshold, @@ -975,24 +934,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token that's returned by a previous request to retrieve the next page of results. """ -function list_anomaly_group_time_series( +list_anomaly_group_time_series( AnomalyDetectorArn, AnomalyGroupId, MetricName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutmetrics( + "POST", + "/ListAnomalyGroupTimeSeries", + Dict{String,Any}( + "AnomalyDetectorArn" => AnomalyDetectorArn, + "AnomalyGroupId" => AnomalyGroupId, + "MetricName" => MetricName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/ListAnomalyGroupTimeSeries", - Dict{String,Any}( - "AnomalyDetectorArn" => AnomalyDetectorArn, - "AnomalyGroupId" => AnomalyGroupId, - "MetricName" => MetricName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_anomaly_group_time_series( AnomalyDetectorArn, AnomalyGroupId, @@ -1036,11 +993,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. """ -function list_metric_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( - "POST", "/ListMetricSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_metric_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = lookoutmetrics( + "POST", "/ListMetricSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_metric_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1063,16 +1018,13 @@ Gets a list of tags for a detector, dataset, or alert. - `resource_arn`: The resource's Amazon Resource Name (ARN). """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutmetrics( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutmetrics( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1098,22 +1050,20 @@ Add feedback for an anomalous metric. - `anomaly_group_time_series_feedback`: Feedback for an anomalous metric. """ -function put_feedback( +put_feedback( AnomalyDetectorArn, AnomalyGroupTimeSeriesFeedback; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutmetrics( + "POST", + "/PutFeedback", + Dict{String,Any}( + "AnomalyDetectorArn" => AnomalyDetectorArn, + "AnomalyGroupTimeSeriesFeedback" => AnomalyGroupTimeSeriesFeedback, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/PutFeedback", - Dict{String,Any}( - "AnomalyDetectorArn" => AnomalyDetectorArn, - "AnomalyGroupTimeSeriesFeedback" => AnomalyGroupTimeSeriesFeedback, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_feedback( AnomalyDetectorArn, AnomalyGroupTimeSeriesFeedback, @@ -1150,15 +1100,14 @@ Adds tags to a detector, dataset, or alert. spaces, and the following symbols: _.:/=+@- """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutmetrics( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1185,17 +1134,14 @@ Removes tags from a detector, dataset, or alert. - `tag_keys`: Keys to remove from the resource's tags. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutmetrics( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutmetrics( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1229,15 +1175,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AlertSensitivityThreshold"`: An integer from 0 to 100 specifying the alert sensitivity threshold. """ -function update_alert(AlertArn; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( - "POST", - "/UpdateAlert", - Dict{String,Any}("AlertArn" => AlertArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_alert(AlertArn; aws_config::AbstractAWSConfig=current_aws_config()) = lookoutmetrics( + "POST", + "/UpdateAlert", + Dict{String,Any}("AlertArn" => AlertArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_alert( AlertArn, params::AbstractDict{String}; @@ -1271,17 +1215,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AnomalyDetectorDescription"`: The updated detector description. - `"KmsKeyArn"`: The Amazon Resource Name (ARN) of an AWS KMS encryption key. """ -function update_anomaly_detector( +update_anomaly_detector( AnomalyDetectorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutmetrics( + "POST", + "/UpdateAnomalyDetector", + Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutmetrics( - "POST", - "/UpdateAnomalyDetector", - Dict{String,Any}("AnomalyDetectorArn" => AnomalyDetectorArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_anomaly_detector( AnomalyDetectorArn, params::AbstractDict{String}; @@ -1324,15 +1266,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys importing data. Offset is only supported for S3, Redshift, Athena and datasources. - `"TimestampColumn"`: The timestamp column. """ -function update_metric_set(MetricSetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutmetrics( +update_metric_set(MetricSetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutmetrics( "POST", "/UpdateMetricSet", Dict{String,Any}("MetricSetArn" => MetricSetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_metric_set( MetricSetArn, params::AbstractDict{String}; diff --git a/src/services/lookoutvision.jl b/src/services/lookoutvision.jl index b2bc786fc..c71f88e00 100644 --- a/src/services/lookoutvision.jl +++ b/src/services/lookoutvision.jl @@ -41,19 +41,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken is considered a new call to CreateDataset. An idempotency token is active for 8 hours. """ -function create_dataset( +create_dataset( DatasetType, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "POST", + "/2020-11-20/projects/$(projectName)/datasets", + Dict{String,Any}( + "DatasetType" => DatasetType, "X-Amzn-Client-Token" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "POST", - "/2020-11-20/projects/$(projectName)/datasets", - Dict{String,Any}( - "DatasetType" => DatasetType, "X-Amzn-Client-Token" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset( DatasetType, projectName, @@ -114,19 +112,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys as in the first request. Using a different value for ClientToken is considered a new call to CreateModel. An idempotency token is active for 8 hours. """ -function create_model( +create_model( OutputConfig, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "POST", + "/2020-11-20/projects/$(projectName)/models", + Dict{String,Any}( + "OutputConfig" => OutputConfig, "X-Amzn-Client-Token" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "POST", - "/2020-11-20/projects/$(projectName)/models", - Dict{String,Any}( - "OutputConfig" => OutputConfig, "X-Amzn-Client-Token" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model( OutputConfig, projectName, @@ -174,8 +170,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken is considered a new call to CreateProject. An idempotency token is active for 8 hours. """ -function create_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutvision( +create_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "POST", "/2020-11-20/projects", Dict{String,Any}( @@ -184,7 +180,6 @@ function create_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_c aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_project( ProjectName, params::AbstractDict{String}; @@ -239,17 +234,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken is considered a new call to DeleteDataset. An idempotency token is active for 8 hours. """ -function delete_dataset( +delete_dataset( datasetType, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "DELETE", + "/2020-11-20/projects/$(projectName)/datasets/$(datasetType)", + Dict{String,Any}("X-Amzn-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "DELETE", - "/2020-11-20/projects/$(projectName)/datasets/$(datasetType)", - Dict{String,Any}("X-Amzn-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dataset( datasetType, projectName, @@ -295,17 +288,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the same as in the first request. Using a different value for ClientToken is considered a new call to DeleteModel. An idempotency token is active for 8 hours. """ -function delete_model( +delete_model( modelVersion, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "DELETE", + "/2020-11-20/projects/$(projectName)/models/$(modelVersion)", + Dict{String,Any}("X-Amzn-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "DELETE", - "/2020-11-20/projects/$(projectName)/models/$(modelVersion)", - Dict{String,Any}("X-Amzn-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_model( modelVersion, projectName, @@ -352,15 +343,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken is considered a new call to DeleteProject. An idempotency token is active for 8 hours. """ -function delete_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutvision( +delete_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "DELETE", "/2020-11-20/projects/$(projectName)", Dict{String,Any}("X-Amzn-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_project( projectName, params::AbstractDict{String}; @@ -394,16 +384,14 @@ perform the lookoutvision:DescribeDataset operation. describe. """ -function describe_dataset( +describe_dataset( datasetType, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "GET", + "/2020-11-20/projects/$(projectName)/datasets/$(datasetType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "GET", - "/2020-11-20/projects/$(projectName)/datasets/$(datasetType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dataset( datasetType, projectName, @@ -432,16 +420,14 @@ permissions to perform the lookoutvision:DescribeModel operation. describe. """ -function describe_model( +describe_model( modelVersion, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "GET", + "/2020-11-20/projects/$(projectName)/models/$(modelVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "GET", - "/2020-11-20/projects/$(projectName)/models/$(modelVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model( modelVersion, projectName, @@ -472,16 +458,14 @@ Lookout for Vision Developer Guide. want to describe. """ -function describe_model_packaging_job( +describe_model_packaging_job( jobName, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "GET", + "/2020-11-20/projects/$(projectName)/modelpackagingjobs/$(jobName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "GET", - "/2020-11-20/projects/$(projectName)/modelpackagingjobs/$(jobName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model_packaging_job( jobName, projectName, @@ -508,14 +492,13 @@ perform the lookoutvision:DescribeProject operation. - `project_name`: The name of the project that you want to describe. """ -function describe_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutvision( +describe_project(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "GET", "/2020-11-20/projects/$(projectName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_project( projectName, params::AbstractDict{String}; @@ -554,23 +537,21 @@ perform the lookoutvision:DetectAnomalies operation. use. """ -function detect_anomalies( +detect_anomalies( Body, Content_Type, modelVersion, projectName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutvision( + "POST", + "/2020-11-20/projects/$(projectName)/models/$(modelVersion)/detect", + Dict{String,Any}( + "Body" => Body, "headers" => Dict{String,Any}("Content-Type" => Content_Type) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "POST", - "/2020-11-20/projects/$(projectName)/models/$(modelVersion)/detect", - Dict{String,Any}( - "Body" => Body, "headers" => Dict{String,Any}("Content-Type" => Content_Type) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detect_anomalies( Body, Content_Type, @@ -633,16 +614,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys within the dataset. For example a value of \"IMG_17\" returns all JSON Lines where the source-ref key value matches *IMG_17*. """ -function list_dataset_entries( +list_dataset_entries( datasetType, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "GET", + "/2020-11-20/projects/$(projectName)/datasets/$(datasetType)/entries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "GET", - "/2020-11-20/projects/$(projectName)/datasets/$(datasetType)/entries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_dataset_entries( datasetType, projectName, @@ -680,16 +659,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of results. """ -function list_model_packaging_jobs( - projectName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutvision( +list_model_packaging_jobs(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "GET", "/2020-11-20/projects/$(projectName)/modelpackagingjobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_model_packaging_jobs( projectName, params::AbstractDict{String}; @@ -726,14 +702,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of models. """ -function list_models(projectName; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutvision( +list_models(projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "GET", "/2020-11-20/projects/$(projectName)/models"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_models( projectName, params::AbstractDict{String}; @@ -767,14 +742,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of projects. """ -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutvision( - "GET", - "/2020-11-20/projects"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = lookoutvision( + "GET", + "/2020-11-20/projects"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -799,16 +772,13 @@ operation requires permissions to perform the lookoutvision:ListTagsForResource tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutvision( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "GET", "/2020-11-20/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -855,23 +825,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys as in the first request. Using a different value for ClientToken is considered a new call to StartModel. An idempotency token is active for 8 hours. """ -function start_model( +start_model( MinInferenceUnits, modelVersion, projectName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutvision( + "POST", + "/2020-11-20/projects/$(projectName)/models/$(modelVersion)/start", + Dict{String,Any}( + "MinInferenceUnits" => MinInferenceUnits, + "X-Amzn-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "POST", - "/2020-11-20/projects/$(projectName)/models/$(modelVersion)/start", - Dict{String,Any}( - "MinInferenceUnits" => MinInferenceUnits, - "X-Amzn-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_model( MinInferenceUnits, modelVersion, @@ -936,24 +904,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys different value for ClientToken is considered a new call to StartModelPackagingJob. An idempotency token is active for 8 hours. """ -function start_model_packaging_job( +start_model_packaging_job( Configuration, ModelVersion, projectName; aws_config::AbstractAWSConfig=current_aws_config(), +) = lookoutvision( + "POST", + "/2020-11-20/projects/$(projectName)/modelpackagingjobs", + Dict{String,Any}( + "Configuration" => Configuration, + "ModelVersion" => ModelVersion, + "X-Amzn-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "POST", - "/2020-11-20/projects/$(projectName)/modelpackagingjobs", - Dict{String,Any}( - "Configuration" => Configuration, - "ModelVersion" => ModelVersion, - "X-Amzn-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_model_packaging_job( Configuration, ModelVersion, @@ -1005,17 +971,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the first request. Using a different value for ClientToken is considered a new call to StopModel. An idempotency token is active for 8 hours. """ -function stop_model( - modelVersion, projectName; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutvision( +stop_model(modelVersion, projectName; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "POST", "/2020-11-20/projects/$(projectName)/models/$(modelVersion)/stop", Dict{String,Any}("X-Amzn-Client-Token" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_model( modelVersion, projectName, @@ -1048,15 +1011,14 @@ operation requires permissions to perform the lookoutvision:TagResource operatio - `resource_arn`: The Amazon Resource Name (ARN) of the model to assign the tags. """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return lookoutvision( +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "POST", "/2020-11-20/tags/$(resourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Tags, resourceArn, @@ -1086,17 +1048,14 @@ permissions to perform the lookoutvision:UntagResource operation. - `tag_keys`: A list of the keys of the tags that you want to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return lookoutvision( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + lookoutvision( "DELETE", "/2020-11-20/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1148,17 +1107,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Using a different value for ClientToken is considered a new call to UpdateDatasetEntries. An idempotency token is active for 8 hours. """ -function update_dataset_entries( +update_dataset_entries( Changes, datasetType, projectName; aws_config::AbstractAWSConfig=current_aws_config() +) = lookoutvision( + "PATCH", + "/2020-11-20/projects/$(projectName)/datasets/$(datasetType)/entries", + Dict{String,Any}("Changes" => Changes, "X-Amzn-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return lookoutvision( - "PATCH", - "/2020-11-20/projects/$(projectName)/datasets/$(datasetType)/entries", - Dict{String,Any}("Changes" => Changes, "X-Amzn-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dataset_entries( Changes, datasetType, diff --git a/src/services/m2.jl b/src/services/m2.jl index a52370a25..0825609ec 100644 --- a/src/services/m2.jl +++ b/src/services/m2.jl @@ -15,16 +15,14 @@ Cancels the running of a specific batch job execution. - `execution_id`: The unique identifier of the batch job execution. """ -function cancel_batch_job_execution( +cancel_batch_job_execution( applicationId, executionId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "POST", + "/applications/$(applicationId)/batch-job-executions/$(executionId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "POST", - "/applications/$(applicationId)/batch-job-executions/$(executionId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_batch_job_execution( applicationId, executionId, @@ -67,22 +65,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a different Amazon Web Services account. - `"tags"`: A list of tags to apply to the application. """ -function create_application( +create_application( definition, engineType, name; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "POST", + "/applications", + Dict{String,Any}( + "definition" => definition, + "engineType" => engineType, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "POST", - "/applications", - Dict{String,Any}( - "definition" => definition, - "engineType" => engineType, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( definition, engineType, @@ -129,17 +125,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires. """ -function create_data_set_import_task( +create_data_set_import_task( applicationId, importConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "POST", + "/applications/$(applicationId)/dataset-import-task", + Dict{String,Any}("importConfig" => importConfig, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "POST", - "/applications/$(applicationId)/dataset-import-task", - Dict{String,Any}("importConfig" => importConfig, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_set_import_task( applicationId, importConfig, @@ -183,24 +177,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires. """ -function create_deployment( +create_deployment( applicationId, applicationVersion, environmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = m2( + "POST", + "/applications/$(applicationId)/deployments", + Dict{String,Any}( + "applicationVersion" => applicationVersion, + "environmentId" => environmentId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "POST", - "/applications/$(applicationId)/deployments", - Dict{String,Any}( - "applicationVersion" => applicationVersion, - "environmentId" => environmentId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deployment( applicationId, applicationVersion, @@ -263,22 +255,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subnetIds"`: The list of subnets associated with the VPC for this runtime environment. - `"tags"`: The tags for the runtime environment. """ -function create_environment( +create_environment( engineType, instanceType, name; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "POST", + "/environments", + Dict{String,Any}( + "engineType" => engineType, + "instanceType" => instanceType, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "POST", - "/environments", - Dict{String,Any}( - "engineType" => engineType, - "instanceType" => instanceType, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment( engineType, instanceType, @@ -316,16 +306,12 @@ Deletes a specific application. You cannot delete a running application. - `application_id`: The unique identifier of the application you want to delete. """ -function delete_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() +delete_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "DELETE", + "/applications/$(applicationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "DELETE", - "/applications/$(applicationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application( applicationId, params::AbstractDict{String}; @@ -355,16 +341,14 @@ application with the runtime environment so you can delete the environment smoot was previously deployed. """ -function delete_application_from_environment( +delete_application_from_environment( applicationId, environmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "DELETE", + "/applications/$(applicationId)/environment/$(environmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "DELETE", - "/applications/$(applicationId)/environment/$(environmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_from_environment( applicationId, environmentId, @@ -392,16 +376,12 @@ environment. - `environment_id`: The unique identifier of the runtime environment you want to delete. """ -function delete_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() +delete_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "DELETE", + "/environments/$(environmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "DELETE", - "/environments/$(environmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment( environmentId, params::AbstractDict{String}; @@ -426,14 +406,12 @@ Describes the details of a specific application. - `application_id`: The identifier of the application. """ -function get_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "GET", - "/applications/$(applicationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "GET", + "/applications/$(applicationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_application( applicationId, params::AbstractDict{String}; @@ -459,16 +437,14 @@ Returns details about a specific version of a specific application. - `application_version`: The specific version of the application. """ -function get_application_version( +get_application_version( applicationId, applicationVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/versions/$(applicationVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/versions/$(applicationVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_version( applicationId, applicationVersion, @@ -495,16 +471,14 @@ Gets the details of a specific batch job execution for a specific application. - `execution_id`: The unique identifier of the batch job execution. """ -function get_batch_job_execution( +get_batch_job_execution( applicationId, executionId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/batch-job-executions/$(executionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/batch-job-executions/$(executionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_batch_job_execution( applicationId, executionId, @@ -532,16 +506,14 @@ Gets the details of a specific data set. - `data_set_name`: The name of the data set. """ -function get_data_set_details( +get_data_set_details( applicationId, dataSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/datasets/$(dataSetName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/datasets/$(dataSetName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_set_details( applicationId, dataSetName, @@ -569,16 +541,14 @@ operation. - `task_id`: The task identifier returned by the CreateDataSetImportTask operation. """ -function get_data_set_import_task( +get_data_set_import_task( applicationId, taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/dataset-import-tasks/$(taskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/dataset-import-tasks/$(taskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_set_import_task( applicationId, taskId, @@ -605,16 +575,14 @@ Gets details of a specific deployment with a given deployment identifier. - `deployment_id`: The unique identifier for the deployment. """ -function get_deployment( +get_deployment( applicationId, deploymentId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/deployments/$(deploymentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/deployments/$(deploymentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployment( applicationId, deploymentId, @@ -640,14 +608,12 @@ Describes a specific runtime environment. - `environment_id`: The unique identifier of the runtime environment. """ -function get_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "GET", - "/environments/$(environmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "GET", + "/environments/$(environmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_environment( environmentId, params::AbstractDict{String}; @@ -669,11 +635,8 @@ end Gets a single sign-on URL that can be used to connect to AWS Blu Insights. """ -function get_signed_bluinsights_url(; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "GET", "/signed-bi-url"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_signed_bluinsights_url(; aws_config::AbstractAWSConfig=current_aws_config()) = + m2("GET", "/signed-bi-url"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_signed_bluinsights_url( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -702,16 +665,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specifies the next item to return. To return to the beginning of the list, exclude this parameter. """ -function list_application_versions( +list_application_versions( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_versions( applicationId, params::AbstractDict{String}; @@ -743,11 +704,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A pagination token to control the number of applications displayed in the list. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + m2("GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -780,16 +738,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"prefix"`: If the batch job definition is a FileBatchJobDefinition, the prefix allows you to search on the file names of FileBatchJobDefinitions. """ -function list_batch_job_definitions( +list_batch_job_definitions( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/batch-job-definitions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/batch-job-definitions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_batch_job_definitions( applicationId, params::AbstractDict{String}; @@ -824,16 +780,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startedBefore"`: The time before the batch job executions started. - `"status"`: The status of the batch job executions. """ -function list_batch_job_executions( +list_batch_job_executions( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/batch-job-executions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/batch-job-executions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_batch_job_executions( applicationId, params::AbstractDict{String}; @@ -860,16 +814,14 @@ Micro Focus engine with versions 8.0.6 and above. - `execution_id`: The unique identifier of each batch job execution. """ -function list_batch_job_restart_points( +list_batch_job_restart_points( applicationId, executionId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/batch-job-executions/$(executionId)/steps"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/batch-job-executions/$(executionId)/steps"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_batch_job_restart_points( applicationId, executionId, @@ -901,16 +853,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specifies the next item to return. To return to the beginning of the list, exclude this parameter. """ -function list_data_set_import_history( +list_data_set_import_history( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "GET", + "/applications/$(applicationId)/dataset-import-tasks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "GET", - "/applications/$(applicationId)/dataset-import-tasks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_set_import_history( applicationId, params::AbstractDict{String}; @@ -949,14 +899,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"prefix"`: The prefix of the data set name, which you can use to filter the list of data sets. """ -function list_data_sets(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "GET", - "/applications/$(applicationId)/datasets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_data_sets(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "GET", + "/applications/$(applicationId)/datasets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_data_sets( applicationId, params::AbstractDict{String}; @@ -989,14 +937,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specifies the next item to return. To return to the beginning of the list, exclude this parameter. """ -function list_deployments(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "GET", - "/applications/$(applicationId)/deployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_deployments(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "GET", + "/applications/$(applicationId)/deployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_deployments( applicationId, params::AbstractDict{String}; @@ -1025,11 +971,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specifies the next item to return. To return to the beginning of the list, exclude this parameter. """ -function list_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "GET", "/engine-versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + m2("GET", "/engine-versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_engine_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1056,11 +999,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A pagination token to control the number of runtime environments displayed in the list. """ -function list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "GET", "/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + m2("GET", "/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1083,16 +1023,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return m2( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + m2( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1117,16 +1054,12 @@ Starts an application that is currently stopped. - `application_id`: The unique identifier of the application you want to start. """ -function start_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() +start_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "POST", + "/applications/$(applicationId)/start"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "POST", - "/applications/$(applicationId)/start"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_application( applicationId, params::AbstractDict{String}; @@ -1157,17 +1090,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"jobParams"`: The collection of batch job parameters. For details about limits for keys and values, see Coding variables in JCL. """ -function start_batch_job( +start_batch_job( applicationId, batchJobIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = m2( + "POST", + "/applications/$(applicationId)/batch-job", + Dict{String,Any}("batchJobIdentifier" => batchJobIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "POST", - "/applications/$(applicationId)/batch-job", - Dict{String,Any}("batchJobIdentifier" => batchJobIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_batch_job( applicationId, batchJobIdentifier, @@ -1202,14 +1133,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter to true lets you force stop the application so you don't need to wait until the process finishes to apply another action on the application. The default value is false. """ -function stop_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "POST", - "/applications/$(applicationId)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "POST", + "/applications/$(applicationId)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_application( applicationId, params::AbstractDict{String}; @@ -1235,15 +1164,13 @@ Adds one or more tags to the specified resource. - `tags`: The tags to add to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return m2( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -1270,17 +1197,14 @@ Removes one or more tags from the specified resource. - `tag_keys`: The keys of the tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return m2( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + m2( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1312,19 +1236,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys inline JSON or an S3 bucket location. - `"description"`: The description of the application to update. """ -function update_application( +update_application( applicationId, currentApplicationVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = m2( + "PATCH", + "/applications/$(applicationId)", + Dict{String,Any}("currentApplicationVersion" => currentApplicationVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "PATCH", - "/applications/$(applicationId)", - Dict{String,Any}("currentApplicationVersion" => currentApplicationVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application( applicationId, currentApplicationVersion, @@ -1379,16 +1301,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys sun:23:45-mon:00:15 or sat:01:00-sat:03:00. If you do not provide a value, a random system-generated value will be assigned. """ -function update_environment( - environmentId; aws_config::AbstractAWSConfig=current_aws_config() +update_environment(environmentId; aws_config::AbstractAWSConfig=current_aws_config()) = m2( + "PATCH", + "/environments/$(environmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return m2( - "PATCH", - "/environments/$(environmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment( environmentId, params::AbstractDict{String}; diff --git a/src/services/machine_learning.jl b/src/services/machine_learning.jl index 7caf107b5..dcc6251b9 100644 --- a/src/services/machine_learning.jl +++ b/src/services/machine_learning.jl @@ -19,18 +19,16 @@ AddTags updates the tag's value. specifying a value, Amazon ML creates a tag with the specified key and a value of null. """ -function add_tags( +add_tags( ResourceId, ResourceType, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "AddTags", + Dict{String,Any}( + "ResourceId" => ResourceId, "ResourceType" => ResourceType, "Tags" => Tags + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "AddTags", - Dict{String,Any}( - "ResourceId" => ResourceId, "ResourceType" => ResourceType, "Tags" => Tags - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags( ResourceId, ResourceType, @@ -87,25 +85,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"BatchPredictionName"`: A user-supplied name or description of the BatchPrediction. BatchPredictionName can only use the UTF-8 character set. """ -function create_batch_prediction( +create_batch_prediction( BatchPredictionDataSourceId, BatchPredictionId, MLModelId, OutputUri; aws_config::AbstractAWSConfig=current_aws_config(), +) = machine_learning( + "CreateBatchPrediction", + Dict{String,Any}( + "BatchPredictionDataSourceId" => BatchPredictionDataSourceId, + "BatchPredictionId" => BatchPredictionId, + "MLModelId" => MLModelId, + "OutputUri" => OutputUri, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "CreateBatchPrediction", - Dict{String,Any}( - "BatchPredictionDataSourceId" => BatchPredictionDataSourceId, - "BatchPredictionId" => BatchPredictionId, - "MLModelId" => MLModelId, - "OutputUri" => OutputUri, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_batch_prediction( BatchPredictionDataSourceId, BatchPredictionId, @@ -183,18 +179,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DataSource needs to be used for MLModel training. - `"DataSourceName"`: A user-supplied name or description of the DataSource. """ -function create_data_source_from_rds( +create_data_source_from_rds( DataSourceId, RDSData, RoleARN; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "CreateDataSourceFromRDS", + Dict{String,Any}( + "DataSourceId" => DataSourceId, "RDSData" => RDSData, "RoleARN" => RoleARN + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "CreateDataSourceFromRDS", - Dict{String,Any}( - "DataSourceId" => DataSourceId, "RDSData" => RDSData, "RoleARN" => RoleARN - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_source_from_rds( DataSourceId, RDSData, @@ -275,18 +269,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DataSource needs to be used for MLModel training. - `"DataSourceName"`: A user-supplied name or description of the DataSource. """ -function create_data_source_from_redshift( +create_data_source_from_redshift( DataSourceId, DataSpec, RoleARN; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "CreateDataSourceFromRedshift", + Dict{String,Any}( + "DataSourceId" => DataSourceId, "DataSpec" => DataSpec, "RoleARN" => RoleARN + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "CreateDataSourceFromRedshift", - Dict{String,Any}( - "DataSourceId" => DataSourceId, "DataSpec" => DataSpec, "RoleARN" => RoleARN - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_source_from_redshift( DataSourceId, DataSpec, @@ -354,16 +346,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DataSource needs to be used for MLModel training. - `"DataSourceName"`: A user-supplied name or description of the DataSource. """ -function create_data_source_from_s3( +create_data_source_from_s3( DataSourceId, DataSpec; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "CreateDataSourceFromS3", + Dict{String,Any}("DataSourceId" => DataSourceId, "DataSpec" => DataSpec); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "CreateDataSourceFromS3", - Dict{String,Any}("DataSourceId" => DataSourceId, "DataSpec" => DataSpec); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_source_from_s3( DataSourceId, DataSpec, @@ -411,23 +401,21 @@ GetEvaluation operation to check progress of the evaluation during the creation Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"EvaluationName"`: A user-supplied name or description of the Evaluation. """ -function create_evaluation( +create_evaluation( EvaluationDataSourceId, EvaluationId, MLModelId; aws_config::AbstractAWSConfig=current_aws_config(), +) = machine_learning( + "CreateEvaluation", + Dict{String,Any}( + "EvaluationDataSourceId" => EvaluationDataSourceId, + "EvaluationId" => EvaluationId, + "MLModelId" => MLModelId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "CreateEvaluation", - Dict{String,Any}( - "EvaluationDataSourceId" => EvaluationDataSourceId, - "EvaluationId" => EvaluationId, - "MLModelId" => MLModelId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_evaluation( EvaluationDataSourceId, EvaluationId, @@ -507,23 +495,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contains the MLModel recipe. You must specify either the recipe or its URI. If you don't specify a recipe or its URI, Amazon ML creates a default. """ -function create_mlmodel( +create_mlmodel( MLModelId, MLModelType, TrainingDataSourceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = machine_learning( + "CreateMLModel", + Dict{String,Any}( + "MLModelId" => MLModelId, + "MLModelType" => MLModelType, + "TrainingDataSourceId" => TrainingDataSourceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "CreateMLModel", - Dict{String,Any}( - "MLModelId" => MLModelId, - "MLModelType" => MLModelType, - "TrainingDataSourceId" => TrainingDataSourceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_mlmodel( MLModelId, MLModelType, @@ -560,16 +546,13 @@ that is, the location to send real-time prediction requests for the specified ML - `mlmodel_id`: The ID assigned to the MLModel during creation. """ -function create_realtime_endpoint( - MLModelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return machine_learning( +create_realtime_endpoint(MLModelId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "CreateRealtimeEndpoint", Dict{String,Any}("MLModelId" => MLModelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_realtime_endpoint( MLModelId, params::AbstractDict{String}; @@ -598,16 +581,14 @@ DeleteBatchPrediction operation is irreversible. - `batch_prediction_id`: A user-supplied ID that uniquely identifies the BatchPrediction. """ -function delete_batch_prediction( +delete_batch_prediction( BatchPredictionId; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "DeleteBatchPrediction", + Dict{String,Any}("BatchPredictionId" => BatchPredictionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "DeleteBatchPrediction", - Dict{String,Any}("BatchPredictionId" => BatchPredictionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_batch_prediction( BatchPredictionId, params::AbstractDict{String}; @@ -638,16 +619,13 @@ operation are irreversible. - `data_source_id`: A user-supplied ID that uniquely identifies the DataSource. """ -function delete_data_source( - DataSourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return machine_learning( +delete_data_source(DataSourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "DeleteDataSource", Dict{String,Any}("DataSourceId" => DataSourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_data_source( DataSourceId, params::AbstractDict{String}; @@ -676,14 +654,13 @@ operation are irreversible. - `evaluation_id`: A user-supplied ID that uniquely identifies the Evaluation to delete. """ -function delete_evaluation(EvaluationId; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +delete_evaluation(EvaluationId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "DeleteEvaluation", Dict{String,Any}("EvaluationId" => EvaluationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_evaluation( EvaluationId, params::AbstractDict{String}; @@ -712,14 +689,13 @@ irreversible. - `mlmodel_id`: A user-supplied ID that uniquely identifies the MLModel. """ -function delete_mlmodel(MLModelId; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +delete_mlmodel(MLModelId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "DeleteMLModel", Dict{String,Any}("MLModelId" => MLModelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_mlmodel( MLModelId, params::AbstractDict{String}; @@ -745,16 +721,13 @@ Deletes a real time endpoint of an MLModel. - `mlmodel_id`: The ID assigned to the MLModel during creation. """ -function delete_realtime_endpoint( - MLModelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return machine_learning( +delete_realtime_endpoint(MLModelId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "DeleteRealtimeEndpoint", Dict{String,Any}("MLModelId" => MLModelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_realtime_endpoint( MLModelId, params::AbstractDict{String}; @@ -784,18 +757,16 @@ it. - `tag_keys`: One or more tags to delete. """ -function delete_tags( +delete_tags( ResourceId, ResourceType, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "DeleteTags", + Dict{String,Any}( + "ResourceId" => ResourceId, "ResourceType" => ResourceType, "TagKeys" => TagKeys + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "DeleteTags", - Dict{String,Any}( - "ResourceId" => ResourceId, "ResourceType" => ResourceType, "TagKeys" => TagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_tags( ResourceId, ResourceType, @@ -861,11 +832,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of MLModels. asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. """ -function describe_batch_predictions(; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +describe_batch_predictions(; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "DescribeBatchPredictions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_batch_predictions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -914,11 +884,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of DataSource. asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. """ -function describe_data_sources(; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +describe_data_sources(; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "DescribeDataSources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_data_sources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -969,11 +938,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of Evaluation. asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. """ -function describe_evaluations(; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +describe_evaluations(; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "DescribeEvaluations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_evaluations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1027,11 +995,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of MLModel. asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. """ -function describe_mlmodels(; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( - "DescribeMLModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_mlmodels(; aws_config::AbstractAWSConfig=current_aws_config()) = machine_learning( + "DescribeMLModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_mlmodels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1051,16 +1017,14 @@ Describes one or more of the tags for your Amazon ML object. - `resource_type`: The type of the ML object. """ -function describe_tags( +describe_tags( ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "DescribeTags", + Dict{String,Any}("ResourceId" => ResourceId, "ResourceType" => ResourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "DescribeTags", - Dict{String,Any}("ResourceId" => ResourceId, "ResourceType" => ResourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_tags( ResourceId, ResourceType, @@ -1094,16 +1058,14 @@ information for a Batch Prediction request. - `batch_prediction_id`: An ID assigned to the BatchPrediction at creation. """ -function get_batch_prediction( +get_batch_prediction( BatchPredictionId; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "GetBatchPrediction", + Dict{String,Any}("BatchPredictionId" => BatchPredictionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "GetBatchPrediction", - Dict{String,Any}("BatchPredictionId" => BatchPredictionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_batch_prediction( BatchPredictionId, params::AbstractDict{String}; @@ -1139,14 +1101,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DataSourceSchema. If true, DataSourceSchema is returned. If false, DataSourceSchema is not returned. """ -function get_data_source(DataSourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +get_data_source(DataSourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "GetDataSource", Dict{String,Any}("DataSourceId" => DataSourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_source( DataSourceId, params::AbstractDict{String}; @@ -1174,14 +1135,13 @@ Evaluation. recorded and cataloged. The ID provides the means to access the information. """ -function get_evaluation(EvaluationId; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +get_evaluation(EvaluationId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "GetEvaluation", Dict{String,Any}("EvaluationId" => EvaluationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_evaluation( EvaluationId, params::AbstractDict{String}; @@ -1212,14 +1172,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Verbose"`: Specifies whether the GetMLModel operation should return Recipe. If true, Recipe is returned. If false, Recipe is not returned. """ -function get_mlmodel(MLModelId; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +get_mlmodel(MLModelId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "GetMLModel", Dict{String,Any}("MLModelId" => MLModelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_mlmodel( MLModelId, params::AbstractDict{String}; @@ -1249,20 +1208,18 @@ the type of model requested. - `record`: """ -function predict( +predict( MLModelId, PredictEndpoint, Record; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "Predict", + Dict{String,Any}( + "MLModelId" => MLModelId, + "PredictEndpoint" => PredictEndpoint, + "Record" => Record, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "Predict", - Dict{String,Any}( - "MLModelId" => MLModelId, - "PredictEndpoint" => PredictEndpoint, - "Record" => Record, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function predict( MLModelId, PredictEndpoint, @@ -1300,21 +1257,19 @@ operation to view the contents of the updated data element. - `batch_prediction_name`: A new user-supplied name or description of the BatchPrediction. """ -function update_batch_prediction( +update_batch_prediction( BatchPredictionId, BatchPredictionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = machine_learning( + "UpdateBatchPrediction", + Dict{String,Any}( + "BatchPredictionId" => BatchPredictionId, + "BatchPredictionName" => BatchPredictionName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "UpdateBatchPrediction", - Dict{String,Any}( - "BatchPredictionId" => BatchPredictionId, - "BatchPredictionName" => BatchPredictionName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_batch_prediction( BatchPredictionId, BatchPredictionName, @@ -1351,18 +1306,14 @@ the contents of the updated data element. replace the current description. """ -function update_data_source( +update_data_source( DataSourceId, DataSourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "UpdateDataSource", + Dict{String,Any}("DataSourceId" => DataSourceId, "DataSourceName" => DataSourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "UpdateDataSource", - Dict{String,Any}( - "DataSourceId" => DataSourceId, "DataSourceName" => DataSourceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_source( DataSourceId, DataSourceName, @@ -1398,18 +1349,14 @@ view the contents of the updated data element. replace the current content. """ -function update_evaluation( +update_evaluation( EvaluationId, EvaluationName; aws_config::AbstractAWSConfig=current_aws_config() +) = machine_learning( + "UpdateEvaluation", + Dict{String,Any}("EvaluationId" => EvaluationId, "EvaluationName" => EvaluationName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return machine_learning( - "UpdateEvaluation", - Dict{String,Any}( - "EvaluationId" => EvaluationId, "EvaluationName" => EvaluationName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_evaluation( EvaluationId, EvaluationName, @@ -1451,14 +1398,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys true. Output values less than the ScoreThreshold receive a negative response from the MLModel, such as false. """ -function update_mlmodel(MLModelId; aws_config::AbstractAWSConfig=current_aws_config()) - return machine_learning( +update_mlmodel(MLModelId; aws_config::AbstractAWSConfig=current_aws_config()) = + machine_learning( "UpdateMLModel", Dict{String,Any}("MLModelId" => MLModelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_mlmodel( MLModelId, params::AbstractDict{String}; diff --git a/src/services/macie2.jl b/src/services/macie2.jl index 465ef8ba7..e8474fba6 100644 --- a/src/services/macie2.jl +++ b/src/services/macie2.jl @@ -21,15 +21,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys sent the invitation. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility. """ -function accept_invitation(invitationId; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( +accept_invitation(invitationId; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "POST", "/invitations/accept", Dict{String,Any}("invitationId" => invitationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function accept_invitation( invitationId, params::AbstractDict{String}; @@ -57,16 +56,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ids"`: An array of custom data identifier IDs, one for each custom data identifier to retrieve information about. """ -function batch_get_custom_data_identifiers(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +batch_get_custom_data_identifiers(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "POST", "/custom-data-identifiers/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_custom_data_identifiers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -91,16 +87,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys sensitive data discovery for. Each object specifies the Amazon Web Services account ID for an account and a new status for that account. """ -function batch_update_automated_discovery_accounts(; +batch_update_automated_discovery_accounts(; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PATCH", + "/automated-discovery/accounts"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PATCH", - "/automated-discovery/accounts"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_automated_discovery_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -136,19 +130,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters. """ -function create_allow_list( +create_allow_list( clientToken, criteria, name; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "POST", + "/allow-lists", + Dict{String,Any}("clientToken" => clientToken, "criteria" => criteria, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "POST", - "/allow-lists", - Dict{String,Any}( - "clientToken" => clientToken, "criteria" => criteria, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_allow_list( clientToken, criteria, @@ -240,26 +230,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters. """ -function create_classification_job( +create_classification_job( clientToken, jobType, name, s3JobDefinition; aws_config::AbstractAWSConfig=current_aws_config(), +) = macie2( + "POST", + "/jobs", + Dict{String,Any}( + "clientToken" => clientToken, + "jobType" => jobType, + "name" => name, + "s3JobDefinition" => s3JobDefinition, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "POST", - "/jobs", - Dict{String,Any}( - "clientToken" => clientToken, - "jobType" => jobType, - "name" => name, - "s3JobDefinition" => s3JobDefinition, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_classification_job( clientToken, jobType, @@ -339,19 +327,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters. """ -function create_custom_data_identifier( +create_custom_data_identifier( name, regex; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "POST", + "/custom-data-identifiers", + Dict{String,Any}("name" => name, "regex" => regex, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "POST", - "/custom-data-identifiers", - Dict{String,Any}( - "name" => name, "regex" => regex, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_data_identifier( name, regex, @@ -407,22 +391,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters. """ -function create_findings_filter( +create_findings_filter( action, findingCriteria, name; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "POST", + "/findingsfilters", + Dict{String,Any}( + "action" => action, + "findingCriteria" => findingCriteria, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "POST", - "/findingsfilters", - Dict{String,Any}( - "action" => action, - "findingCriteria" => findingCriteria, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_findings_filter( action, findingCriteria, @@ -469,15 +451,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"message"`: Custom text to include in the email message that contains the invitation. The text can contain as many as 80 alphanumeric characters. """ -function create_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/invitations", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/invitations", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_invitations( accountIds, params::AbstractDict{String}; @@ -510,15 +490,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters. """ -function create_member(account; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/members", - Dict{String,Any}("account" => account); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_member(account; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/members", + Dict{String,Any}("account" => account); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_member( account, params::AbstractDict{String}; @@ -545,11 +523,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys create. To create a sample of every type of finding that Amazon Macie supports, don't include this array in your request. """ -function create_sample_findings(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", "/findings/sample"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_sample_findings(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", "/findings/sample"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function create_sample_findings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -573,15 +549,14 @@ Declines Amazon Macie membership invitations that were received from specific ac that sent an invitation to decline. """ -function decline_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( +decline_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "POST", "/invitations/decline", Dict{String,Any}("accountIds" => accountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function decline_invitations( accountIds, params::AbstractDict{String}; @@ -616,14 +591,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys criteria. To skip these checks and delete the list, set this value to true. To delete the list only if no active jobs are configured to use it, set this value to false. """ -function delete_allow_list(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "DELETE", - "/allow-lists/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_allow_list(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "DELETE", + "/allow-lists/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_allow_list( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -646,16 +619,13 @@ Soft deletes a custom data identifier. - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function delete_custom_data_identifier( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +delete_custom_data_identifier(id; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "DELETE", "/custom-data-identifiers/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_custom_data_identifier( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -678,14 +648,12 @@ Deletes a findings filter. - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function delete_findings_filter(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "DELETE", - "/findingsfilters/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_findings_filter(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "DELETE", + "/findingsfilters/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_findings_filter( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -709,15 +677,13 @@ Deletes Amazon Macie membership invitations that were received from specific acc that sent an invitation to delete. """ -function delete_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/invitations/delete", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_invitations(accountIds; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/invitations/delete", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_invitations( accountIds, params::AbstractDict{String}; @@ -744,11 +710,9 @@ Deletes the association between an Amazon Macie administrator account and an acc - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function delete_member(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "DELETE", "/members/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_member(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "DELETE", "/members/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_member( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -777,11 +741,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated response. - `"sortCriteria"`: The criteria to use to sort the query results. """ -function describe_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", "/datasources/s3"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", "/datasources/s3"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_buckets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -804,13 +766,8 @@ Retrieves the status and settings for a classification job. - `job_id`: The unique identifier for the classification job. """ -function describe_classification_job( - jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( - "GET", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_classification_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/jobs/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_classification_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -830,16 +787,13 @@ end Retrieves the Amazon Macie configuration settings for an organization in Organizations. """ -function describe_organization_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +describe_organization_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "GET", "/admin/configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_organization_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -859,11 +813,8 @@ end Disables Amazon Macie and deletes all settings and resources for a Macie account. """ -function disable_macie(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "DELETE", "/macie"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +disable_macie(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("DELETE", "/macie"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function disable_macie( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -884,17 +835,15 @@ in Organizations. administrator account. """ -function disable_organization_admin_account( +disable_organization_admin_account( adminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "DELETE", + "/admin", + Dict{String,Any}("adminAccountId" => adminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "DELETE", - "/admin", - Dict{String,Any}("adminAccountId" => adminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_organization_admin_account( adminAccountId, params::AbstractDict{String}; @@ -918,16 +867,14 @@ end Disassociates a member account from its Amazon Macie administrator account. """ -function disassociate_from_administrator_account(; +disassociate_from_administrator_account(; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "POST", + "/administrator/disassociate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "POST", - "/administrator/disassociate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_from_administrator_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -948,16 +895,13 @@ end This operation has been replaced by the DisassociateFromAdministratorAccount operation. """ -function disassociate_from_master_account(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +disassociate_from_master_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "POST", "/master/disassociate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_from_master_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -980,14 +924,12 @@ Disassociates an Amazon Macie administrator account from a member account. - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function disassociate_member(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/members/disassociate/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disassociate_member(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/members/disassociate/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disassociate_member( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1016,15 +958,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Specifies the new status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. """ -function enable_macie(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/macie", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_macie(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/macie", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_macie( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1055,19 +995,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive token that you provide to ensure the idempotency of the request. """ -function enable_organization_admin_account( +enable_organization_admin_account( adminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "POST", + "/admin", + Dict{String,Any}("adminAccountId" => adminAccountId, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "POST", - "/admin", - Dict{String,Any}( - "adminAccountId" => adminAccountId, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_organization_admin_account( adminAccountId, params::AbstractDict{String}; @@ -1097,11 +1033,8 @@ end Retrieves information about the Amazon Macie administrator account for an account. """ -function get_administrator_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", "/administrator"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_administrator_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/administrator"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_administrator_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1124,11 +1057,9 @@ Retrieves the settings and status of an allow list. - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function get_allow_list(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", "/allow-lists/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_allow_list(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "GET", "/allow-lists/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_allow_list( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1149,16 +1080,14 @@ Retrieves the configuration settings and status of automated sensitive data disc an organization or standalone account. """ -function get_automated_discovery_configuration(; +get_automated_discovery_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/automated-discovery/configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/automated-discovery/configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_automated_discovery_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1182,14 +1111,12 @@ monitors and analyzes for an account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountId"`: The unique identifier for the Amazon Web Services account. """ -function get_bucket_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/datasources/s3/statistics"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_bucket_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/datasources/s3/statistics"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_bucket_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1209,16 +1136,14 @@ end Retrieves the configuration settings for storing data classification results. """ -function get_classification_export_configuration(; +get_classification_export_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/classification-export-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/classification-export-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_classification_export_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1241,14 +1166,12 @@ Retrieves the classification scope settings for an account. - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function get_classification_scope(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", - "/classification-scopes/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_classification_scope(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "GET", + "/classification-scopes/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_classification_scope( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1271,14 +1194,12 @@ Retrieves the criteria and other settings for a custom data identifier. - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function get_custom_data_identifier(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", - "/custom-data-identifiers/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_custom_data_identifier(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "GET", + "/custom-data-identifiers/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_custom_data_identifier( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1311,15 +1232,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"size"`: The maximum number of items to include in each page of the response. - `"sortCriteria"`: The criteria to use to sort the query results. """ -function get_finding_statistics(groupBy; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( +get_finding_statistics(groupBy; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "POST", "/findings/statistics", Dict{String,Any}("groupBy" => groupBy); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_finding_statistics( groupBy, params::AbstractDict{String}; @@ -1348,15 +1268,13 @@ Retrieves the details of one or more findings. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"sortCriteria"`: The criteria for sorting the results of the request. """ -function get_findings(findingIds; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/findings/describe", - Dict{String,Any}("findingIds" => findingIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_findings(findingIds; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/findings/describe", + Dict{String,Any}("findingIds" => findingIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_findings( findingIds, params::AbstractDict{String}; @@ -1383,14 +1301,12 @@ Retrieves the criteria and other settings for a findings filter. - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function get_findings_filter(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", - "/findingsfilters/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_findings_filter(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "GET", + "/findingsfilters/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_findings_filter( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1410,16 +1326,14 @@ end Retrieves the configuration settings for publishing findings to Security Hub. """ -function get_findings_publication_configuration(; +get_findings_publication_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/findings-publication-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/findings-publication-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_findings_publication_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1439,11 +1353,9 @@ end Retrieves the count of Amazon Macie membership invitations that were received by an account. """ -function get_invitations_count(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", "/invitations/count"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_invitations_count(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "GET", "/invitations/count"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_invitations_count( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1463,9 +1375,8 @@ end Retrieves the status and configuration settings for an Amazon Macie account. """ -function get_macie_session(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2("GET", "/macie"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_macie_session(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/macie"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_macie_session( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1482,9 +1393,8 @@ end account. This operation has been replaced by the GetAdministratorAccount operation. """ -function get_master_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2("GET", "/master"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_master_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/master"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_master_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1504,11 +1414,8 @@ account. - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function get_member(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", "/members/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_member(id; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/members/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_member( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1533,17 +1440,14 @@ bucket. to. """ -function get_resource_profile( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +get_resource_profile(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "GET", "/resource-profiles", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_profile( resourceArn, params::AbstractDict{String}; @@ -1568,14 +1472,12 @@ Retrieves the status and configuration settings for retrieving occurrences of se data reported by findings. """ -function get_reveal_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", - "/reveal-configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_reveal_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "GET", + "/reveal-configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_reveal_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1598,16 +1500,14 @@ Retrieves occurrences of sensitive data reported by a finding. - `finding_id`: The unique identifier for the finding. """ -function get_sensitive_data_occurrences( +get_sensitive_data_occurrences( findingId; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/findings/$(findingId)/reveal"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/findings/$(findingId)/reveal"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sensitive_data_occurrences( findingId, params::AbstractDict{String}; @@ -1632,16 +1532,14 @@ Checks whether occurrences of sensitive data can be retrieved for a finding. - `finding_id`: The unique identifier for the finding. """ -function get_sensitive_data_occurrences_availability( +get_sensitive_data_occurrences_availability( findingId; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/findings/$(findingId)/reveal/availability"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/findings/$(findingId)/reveal/availability"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sensitive_data_occurrences_availability( findingId, params::AbstractDict{String}; @@ -1666,16 +1564,14 @@ end - `id`: The unique identifier for the Amazon Macie resource that the request applies to. """ -function get_sensitivity_inspection_template( +get_sensitivity_inspection_template( id; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/templates/sensitivity-inspections/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/templates/sensitivity-inspections/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sensitivity_inspection_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1708,11 +1604,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 30 days. If you don't specify a value, Amazon Macie provides usage data for the preceding 30 days. """ -function get_usage_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", "/usage/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_usage_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", "/usage/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_usage_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1738,9 +1632,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 30 days. If you don't specify a value for this parameter, Amazon Macie provides aggregated usage data for the preceding 30 days. """ -function get_usage_totals(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2("GET", "/usage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_usage_totals(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/usage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_usage_totals( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1762,11 +1655,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_allow_lists(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", "/allow-lists"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_allow_lists(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/allow-lists"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_allow_lists( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1796,16 +1686,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_automated_discovery_accounts(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +list_automated_discovery_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "GET", "/automated-discovery/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_automated_discovery_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1832,11 +1719,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated response. - `"sortCriteria"`: The criteria to use to sort the results. """ -function list_classification_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", "/jobs/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_classification_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("POST", "/jobs/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_classification_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1857,14 +1741,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_classification_scopes(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", - "/classification-scopes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_classification_scopes(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "GET", + "/classification-scopes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_classification_scopes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1889,14 +1771,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_custom_data_identifiers(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/custom-data-identifiers/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_custom_data_identifiers(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/custom-data-identifiers/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_custom_data_identifiers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1923,11 +1803,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated response. - `"sortCriteria"`: The criteria to use to sort the results. """ -function list_findings(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", "/findings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_findings(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("POST", "/findings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_findings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1949,11 +1826,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_findings_filters(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", "/findingsfilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_findings_filters(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "GET", "/findingsfilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_findings_filters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1980,11 +1855,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "GET", "/invitations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/invitations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_invitations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2009,14 +1881,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_managed_data_identifiers(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( +list_managed_data_identifiers(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "POST", "/managed-data-identifiers/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_managed_data_identifiers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2047,9 +1918,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response includes only current member accounts. To include all accounts, set this value to false. """ -function list_members(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2("GET", "/members"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_members(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/members"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_members( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2072,11 +1942,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_organization_admin_accounts(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2("GET", "/admin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_organization_admin_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("GET", "/admin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_organization_admin_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2101,17 +1968,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_resource_profile_artifacts( +list_resource_profile_artifacts( resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/resource-profiles/artifacts", + Dict{String,Any}("resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/resource-profiles/artifacts", - Dict{String,Any}("resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resource_profile_artifacts( resourceArn, params::AbstractDict{String}; @@ -2146,17 +2011,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_resource_profile_detections( +list_resource_profile_detections( resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/resource-profiles/detections", + Dict{String,Any}("resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/resource-profiles/detections", - Dict{String,Any}("resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resource_profile_detections( resourceArn, params::AbstractDict{String}; @@ -2186,16 +2049,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The nextToken string that specifies which page of results to return in a paginated response. """ -function list_sensitivity_inspection_templates(; +list_sensitivity_inspection_templates(; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "GET", + "/templates/sensitivity-inspections"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "GET", - "/templates/sensitivity-inspections"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_sensitivity_inspection_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2218,16 +2079,13 @@ Retrieves the tags (keys and values) that are associated with an Amazon Macie re - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2253,17 +2111,15 @@ Adds or updates the configuration settings for storing data classification resul settings to use when storing results in that location. """ -function put_classification_export_configuration( +put_classification_export_configuration( configuration; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PUT", + "/classification-export-configuration", + Dict{String,Any}("configuration" => configuration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PUT", - "/classification-export-configuration", - Dict{String,Any}("configuration" => configuration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_classification_export_configuration( configuration, params::AbstractDict{String}; @@ -2293,17 +2149,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"securityHubConfiguration"`: The configuration settings that determine which findings to publish to Security Hub. """ -function put_findings_publication_configuration(; +put_findings_publication_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PUT", + "/findings-publication-configuration", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PUT", - "/findings-publication-configuration", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_findings_publication_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2335,14 +2189,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paginated response. - `"sortCriteria"`: The criteria to use to sort the results. """ -function search_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "POST", - "/datasources/search-resources"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "POST", + "/datasources/search-resources"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2370,15 +2222,14 @@ resource. value is 256 characters. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2422,17 +2273,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50. """ -function test_custom_data_identifier( +test_custom_data_identifier( regex, sampleText; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "POST", + "/custom-data-identifiers/test", + Dict{String,Any}("regex" => regex, "sampleText" => sampleText); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "POST", - "/custom-data-identifiers/test", - Dict{String,Any}("regex" => regex, "sampleText" => sampleText); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_custom_data_identifier( regex, sampleText, @@ -2467,17 +2316,14 @@ Removes one or more tags (keys and values) from an Amazon Macie resource. separated by an ampersand (&). """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2514,17 +2360,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A custom description of the allow list. The description can contain as many as 512 characters. """ -function update_allow_list( - criteria, id, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +update_allow_list(criteria, id, name; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "PUT", "/allow-lists/$(id)", Dict{String,Any}("criteria" => criteria, "name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_allow_list( criteria, id, @@ -2570,17 +2413,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NEW or NONE, and then enable or disable it for each account by using the BatchUpdateAutomatedDiscoveryAccounts operation. """ -function update_automated_discovery_configuration( +update_automated_discovery_configuration( status; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PUT", + "/automated-discovery/configuration", + Dict{String,Any}("status" => status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PUT", - "/automated-discovery/configuration", - Dict{String,Any}("status" => status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_automated_discovery_configuration( status, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2619,17 +2460,15 @@ Changes the status of a classification job. the UserPausedDetails.jobExpiresAt property. """ -function update_classification_job( +update_classification_job( jobId, jobStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PATCH", + "/jobs/$(jobId)", + Dict{String,Any}("jobStatus" => jobStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PATCH", - "/jobs/$(jobId)", - Dict{String,Any}("jobStatus" => jobStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_classification_job( jobId, jobStatus, @@ -2661,14 +2500,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"s3"`: The S3 buckets to add or remove from the exclusion list defined by the classification scope. """ -function update_classification_scope(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( +update_classification_scope(id; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "PATCH", "/classification-scopes/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_classification_scope( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2710,15 +2548,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings. """ -function update_findings_filter(id; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2( - "PATCH", - "/findingsfilters/$(id)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_findings_filter(id; aws_config::AbstractAWSConfig=current_aws_config()) = macie2( + "PATCH", + "/findingsfilters/$(id)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_findings_filter( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2749,9 +2585,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Macie activities for the account; and, PAUSED, suspend all Macie activities for the account. """ -function update_macie_session(; aws_config::AbstractAWSConfig=current_aws_config()) - return macie2("PATCH", "/macie"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +update_macie_session(; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2("PATCH", "/macie"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_macie_session( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2773,17 +2608,14 @@ Enables an Amazon Macie administrator to suspend or re-enable Macie for a member account. """ -function update_member_session( - id, status; aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +update_member_session(id, status; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "PATCH", "/macie/members/$(id)", Dict{String,Any}("status" => status); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_member_session( id, status, @@ -2810,17 +2642,15 @@ Updates the Amazon Macie configuration settings for an organization in Organizat are added to the organization in Organizations. """ -function update_organization_configuration( +update_organization_configuration( autoEnable; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PATCH", + "/admin/configuration", + Dict{String,Any}("autoEnable" => autoEnable); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PATCH", - "/admin/configuration", - Dict{String,Any}("autoEnable" => autoEnable); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_organization_configuration( autoEnable, params::AbstractDict{String}; @@ -2854,17 +2684,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (empty), assign a score that Amazon Macie calculates automatically after you submit the request. """ -function update_resource_profile( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return macie2( +update_resource_profile(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + macie2( "PATCH", "/resource-profiles", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_resource_profile( resourceArn, params::AbstractDict{String}; @@ -2898,17 +2725,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys including in the bucket's score. To start including all sensitive data types in the score, don't specify any values for this array. """ -function update_resource_profile_detections( +update_resource_profile_detections( resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PATCH", + "/resource-profiles/detections", + Dict{String,Any}("resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PATCH", - "/resource-profiles/detections", - Dict{String,Any}("resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_profile_detections( resourceArn, params::AbstractDict{String}; @@ -2941,17 +2766,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retrievalConfiguration"`: The access method and settings to use when retrieving the sensitive data. """ -function update_reveal_configuration( +update_reveal_configuration( configuration; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PUT", + "/reveal-configuration", + Dict{String,Any}("configuration" => configuration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PUT", - "/reveal-configuration", - Dict{String,Any}("configuration" => configuration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_reveal_configuration( configuration, params::AbstractDict{String}; @@ -2989,16 +2812,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includes"`: The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when performing automated sensitive data discovery. """ -function update_sensitivity_inspection_template( +update_sensitivity_inspection_template( id; aws_config::AbstractAWSConfig=current_aws_config() +) = macie2( + "PUT", + "/templates/sensitivity-inspections/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return macie2( - "PUT", - "/templates/sensitivity-inspections/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sensitivity_inspection_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/mailmanager.jl b/src/services/mailmanager.jl index 45c304ffd..0dec405ad 100644 --- a/src/services/mailmanager.jl +++ b/src/services/mailmanager.jl @@ -23,18 +23,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_addon_instance( +create_addon_instance( AddonSubscriptionId; aws_config::AbstractAWSConfig=current_aws_config() +) = mailmanager( + "CreateAddonInstance", + Dict{String,Any}( + "AddonSubscriptionId" => AddonSubscriptionId, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "CreateAddonInstance", - Dict{String,Any}( - "AddonSubscriptionId" => AddonSubscriptionId, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_addon_instance( AddonSubscriptionId, params::AbstractDict{String}; @@ -76,16 +74,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_addon_subscription( - AddonName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +create_addon_subscription(AddonName; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "CreateAddonSubscription", Dict{String,Any}("AddonName" => AddonName, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_addon_subscription( AddonName, params::AbstractDict{String}; @@ -125,14 +120,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +create_archive(ArchiveName; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "CreateArchive", Dict{String,Any}("ArchiveName" => ArchiveName, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_archive( ArchiveName, params::AbstractDict{String}; @@ -177,26 +171,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_ingress_point( +create_ingress_point( IngressPointName, RuleSetId, TrafficPolicyId, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = mailmanager( + "CreateIngressPoint", + Dict{String,Any}( + "IngressPointName" => IngressPointName, + "RuleSetId" => RuleSetId, + "TrafficPolicyId" => TrafficPolicyId, + "Type" => Type, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "CreateIngressPoint", - Dict{String,Any}( - "IngressPointName" => IngressPointName, - "RuleSetId" => RuleSetId, - "TrafficPolicyId" => TrafficPolicyId, - "Type" => Type, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ingress_point( IngressPointName, RuleSetId, @@ -246,26 +238,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_relay( +create_relay( Authentication, RelayName, ServerName, ServerPort; aws_config::AbstractAWSConfig=current_aws_config(), +) = mailmanager( + "CreateRelay", + Dict{String,Any}( + "Authentication" => Authentication, + "RelayName" => RelayName, + "ServerName" => ServerName, + "ServerPort" => ServerPort, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "CreateRelay", - Dict{String,Any}( - "Authentication" => Authentication, - "RelayName" => RelayName, - "ServerName" => ServerName, - "ServerPort" => ServerPort, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_relay( Authentication, RelayName, @@ -311,10 +301,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_rule_set( - RuleSetName, Rules; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +create_rule_set(RuleSetName, Rules; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "CreateRuleSet", Dict{String,Any}( "RuleSetName" => RuleSetName, "Rules" => Rules, "ClientToken" => string(uuid4()) @@ -322,7 +310,6 @@ function create_rule_set( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_rule_set( RuleSetName, Rules, @@ -369,24 +356,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function create_traffic_policy( +create_traffic_policy( DefaultAction, PolicyStatements, TrafficPolicyName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mailmanager( + "CreateTrafficPolicy", + Dict{String,Any}( + "DefaultAction" => DefaultAction, + "PolicyStatements" => PolicyStatements, + "TrafficPolicyName" => TrafficPolicyName, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "CreateTrafficPolicy", - Dict{String,Any}( - "DefaultAction" => DefaultAction, - "PolicyStatements" => PolicyStatements, - "TrafficPolicyName" => TrafficPolicyName, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_traffic_policy( DefaultAction, PolicyStatements, @@ -423,16 +408,13 @@ Deletes an Add On instance. - `addon_instance_id`: The Add On instance ID to delete. """ -function delete_addon_instance( - AddonInstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +delete_addon_instance(AddonInstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "DeleteAddonInstance", Dict{String,Any}("AddonInstanceId" => AddonInstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_addon_instance( AddonInstanceId, params::AbstractDict{String}; @@ -460,16 +442,14 @@ Deletes an Add On subscription. - `addon_subscription_id`: The Add On subscription ID to delete. """ -function delete_addon_subscription( +delete_addon_subscription( AddonSubscriptionId; aws_config::AbstractAWSConfig=current_aws_config() +) = mailmanager( + "DeleteAddonSubscription", + Dict{String,Any}("AddonSubscriptionId" => AddonSubscriptionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "DeleteAddonSubscription", - Dict{String,Any}("AddonSubscriptionId" => AddonSubscriptionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_addon_subscription( AddonSubscriptionId, params::AbstractDict{String}; @@ -503,14 +483,12 @@ period. - `archive_id`: The identifier of the archive to delete. """ -function delete_archive(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "DeleteArchive", - Dict{String,Any}("ArchiveId" => ArchiveId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_archive(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "DeleteArchive", + Dict{String,Any}("ArchiveId" => ArchiveId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_archive( ArchiveId, params::AbstractDict{String}; @@ -537,16 +515,13 @@ Delete an ingress endpoint resource. delete. """ -function delete_ingress_point( - IngressPointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +delete_ingress_point(IngressPointId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "DeleteIngressPoint", Dict{String,Any}("IngressPointId" => IngressPointId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_ingress_point( IngressPointId, params::AbstractDict{String}; @@ -572,14 +547,12 @@ Deletes an existing relay resource. - `relay_id`: The unique relay identifier. """ -function delete_relay(RelayId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "DeleteRelay", - Dict{String,Any}("RelayId" => RelayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_relay(RelayId; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "DeleteRelay", + Dict{String,Any}("RelayId" => RelayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_relay( RelayId, params::AbstractDict{String}; @@ -603,14 +576,13 @@ Delete a rule set. - `rule_set_id`: The identifier of an existing rule set resource to delete. """ -function delete_rule_set(RuleSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +delete_rule_set(RuleSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "DeleteRuleSet", Dict{String,Any}("RuleSetId" => RuleSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_rule_set( RuleSetId, params::AbstractDict{String}; @@ -636,16 +608,13 @@ Delete a traffic policy resource. - `traffic_policy_id`: The identifier of the traffic policy that you want to delete. """ -function delete_traffic_policy( - TrafficPolicyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +delete_traffic_policy(TrafficPolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "DeleteTrafficPolicy", Dict{String,Any}("TrafficPolicyId" => TrafficPolicyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_traffic_policy( TrafficPolicyId, params::AbstractDict{String}; @@ -673,16 +642,13 @@ Gets detailed information about an Add On instance. - `addon_instance_id`: The Add On instance ID to retrieve information for. """ -function get_addon_instance( - AddonInstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +get_addon_instance(AddonInstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "GetAddonInstance", Dict{String,Any}("AddonInstanceId" => AddonInstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_addon_instance( AddonInstanceId, params::AbstractDict{String}; @@ -710,16 +676,14 @@ Gets detailed information about an Add On subscription. - `addon_subscription_id`: The Add On subscription ID to retrieve information for. """ -function get_addon_subscription( +get_addon_subscription( AddonSubscriptionId; aws_config::AbstractAWSConfig=current_aws_config() +) = mailmanager( + "GetAddonSubscription", + Dict{String,Any}("AddonSubscriptionId" => AddonSubscriptionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "GetAddonSubscription", - Dict{String,Any}("AddonSubscriptionId" => AddonSubscriptionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_addon_subscription( AddonSubscriptionId, params::AbstractDict{String}; @@ -749,14 +713,12 @@ Retrieves the full details and current state of a specified email archive. - `archive_id`: The identifier of the archive to retrieve. """ -function get_archive(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "GetArchive", - Dict{String,Any}("ArchiveId" => ArchiveId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_archive(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "GetArchive", + Dict{String,Any}("ArchiveId" => ArchiveId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_archive( ArchiveId, params::AbstractDict{String}; @@ -782,14 +744,13 @@ Retrieves the details and current status of a specific email archive export job. - `export_id`: The identifier of the export job to get details for. """ -function get_archive_export(ExportId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +get_archive_export(ExportId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "GetArchiveExport", Dict{String,Any}("ExportId" => ExportId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_archive_export( ExportId, params::AbstractDict{String}; @@ -816,16 +777,13 @@ message stored in the archive. - `archived_message_id`: The unique identifier of the archived email message. """ -function get_archive_message( - ArchivedMessageId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +get_archive_message(ArchivedMessageId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "GetArchiveMessage", Dict{String,Any}("ArchivedMessageId" => ArchivedMessageId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_archive_message( ArchivedMessageId, params::AbstractDict{String}; @@ -854,16 +812,14 @@ are not included. - `archived_message_id`: The unique identifier of the archived email message. """ -function get_archive_message_content( +get_archive_message_content( ArchivedMessageId; aws_config::AbstractAWSConfig=current_aws_config() +) = mailmanager( + "GetArchiveMessageContent", + Dict{String,Any}("ArchivedMessageId" => ArchivedMessageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "GetArchiveMessageContent", - Dict{String,Any}("ArchivedMessageId" => ArchivedMessageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_archive_message_content( ArchivedMessageId, params::AbstractDict{String}; @@ -891,14 +847,13 @@ Retrieves the details and current status of a specific email archive search job. - `search_id`: The identifier of the search job to get details for. """ -function get_archive_search(SearchId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +get_archive_search(SearchId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "GetArchiveSearch", Dict{String,Any}("SearchId" => SearchId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_archive_search( SearchId, params::AbstractDict{String}; @@ -924,16 +879,13 @@ Returns the results of a completed email archive search job. - `search_id`: The identifier of the completed search job. """ -function get_archive_search_results( - SearchId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +get_archive_search_results(SearchId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "GetArchiveSearchResults", Dict{String,Any}("SearchId" => SearchId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_archive_search_results( SearchId, params::AbstractDict{String}; @@ -959,16 +911,13 @@ Fetch ingress endpoint resource attributes. - `ingress_point_id`: The identifier of an ingress endpoint. """ -function get_ingress_point( - IngressPointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +get_ingress_point(IngressPointId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "GetIngressPoint", Dict{String,Any}("IngressPointId" => IngressPointId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_ingress_point( IngressPointId, params::AbstractDict{String}; @@ -994,14 +943,12 @@ Fetch the relay resource and it's attributes. - `relay_id`: A unique relay identifier. """ -function get_relay(RelayId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "GetRelay", - Dict{String,Any}("RelayId" => RelayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_relay(RelayId; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "GetRelay", + Dict{String,Any}("RelayId" => RelayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_relay( RelayId, params::AbstractDict{String}; @@ -1025,14 +972,12 @@ Fetch attributes of a rule set. - `rule_set_id`: The identifier of an existing rule set to be retrieved. """ -function get_rule_set(RuleSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "GetRuleSet", - Dict{String,Any}("RuleSetId" => RuleSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rule_set(RuleSetId; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "GetRuleSet", + Dict{String,Any}("RuleSetId" => RuleSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rule_set( RuleSetId, params::AbstractDict{String}; @@ -1058,16 +1003,13 @@ Fetch attributes of a traffic policy resource. - `traffic_policy_id`: The identifier of the traffic policy resource. """ -function get_traffic_policy( - TrafficPolicyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +get_traffic_policy(TrafficPolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "GetTrafficPolicy", Dict{String,Any}("TrafficPolicyId" => TrafficPolicyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_traffic_policy( TrafficPolicyId, params::AbstractDict{String}; @@ -1098,11 +1040,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints. """ -function list_addon_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "ListAddonInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_addon_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "ListAddonInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_addon_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1124,11 +1064,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints. """ -function list_addon_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +list_addon_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "ListAddonSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_addon_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1157,14 +1096,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of archive export jobs that are returned per call. You can use NextToken to obtain further pages of archives. """ -function list_archive_exports(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +list_archive_exports(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "ListArchiveExports", Dict{String,Any}("ArchiveId" => ArchiveId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_archive_exports( ArchiveId, params::AbstractDict{String}; @@ -1197,16 +1135,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of archive search jobs that are returned per call. You can use NextToken to obtain further pages of archives. """ -function list_archive_searches( - ArchiveId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +list_archive_searches(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "ListArchiveSearches", Dict{String,Any}("ArchiveId" => ArchiveId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_archive_searches( ArchiveId, params::AbstractDict{String}; @@ -1236,11 +1171,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of archives that are returned per call. You can use NextToken to obtain further pages of archives. """ -function list_archives(; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "ListArchives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_archives(; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager("ListArchives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_archives( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1262,11 +1194,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints. """ -function list_ingress_points(; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "ListIngressPoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_ingress_points(; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager("ListIngressPoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_ingress_points( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1287,9 +1216,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can provide it here to continue paginating through the next page of results. - `"PageSize"`: The number of relays to be returned in one request. """ -function list_relays(; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager("ListRelays"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_relays(; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager("ListRelays"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_relays( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1311,11 +1239,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets. """ -function list_rule_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "ListRuleSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rule_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager("ListRuleSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rule_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1334,16 +1259,13 @@ end - `resource_arn`: The Amazon Resource Name (ARN) of the resource to retrieve tags from. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1372,11 +1294,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageSize"`: The maximum number of traffic policy resources that are returned per call. You can use NextToken to obtain further traffic policies. """ -function list_traffic_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "ListTrafficPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_traffic_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "ListTrafficPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_traffic_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1405,25 +1325,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Filters"`: Criteria to filter which emails are included in the export. - `"MaxResults"`: The maximum number of email items to include in the export. """ -function start_archive_export( +start_archive_export( ArchiveId, ExportDestinationConfiguration, FromTimestamp, ToTimestamp; aws_config::AbstractAWSConfig=current_aws_config(), +) = mailmanager( + "StartArchiveExport", + Dict{String,Any}( + "ArchiveId" => ArchiveId, + "ExportDestinationConfiguration" => ExportDestinationConfiguration, + "FromTimestamp" => FromTimestamp, + "ToTimestamp" => ToTimestamp, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "StartArchiveExport", - Dict{String,Any}( - "ArchiveId" => ArchiveId, - "ExportDestinationConfiguration" => ExportDestinationConfiguration, - "FromTimestamp" => FromTimestamp, - "ToTimestamp" => ToTimestamp, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_archive_export( ArchiveId, ExportDestinationConfiguration, @@ -1467,25 +1385,23 @@ Initiates a search across emails in the specified archive. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Filters"`: Criteria to filter which emails are included in the search results. """ -function start_archive_search( +start_archive_search( ArchiveId, FromTimestamp, MaxResults, ToTimestamp; aws_config::AbstractAWSConfig=current_aws_config(), +) = mailmanager( + "StartArchiveSearch", + Dict{String,Any}( + "ArchiveId" => ArchiveId, + "FromTimestamp" => FromTimestamp, + "MaxResults" => MaxResults, + "ToTimestamp" => ToTimestamp, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mailmanager( - "StartArchiveSearch", - Dict{String,Any}( - "ArchiveId" => ArchiveId, - "FromTimestamp" => FromTimestamp, - "MaxResults" => MaxResults, - "ToTimestamp" => ToTimestamp, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_archive_search( ArchiveId, FromTimestamp, @@ -1523,14 +1439,13 @@ Stops an in-progress export of emails from an archive. - `export_id`: The identifier of the export job to stop. """ -function stop_archive_export(ExportId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +stop_archive_export(ExportId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "StopArchiveExport", Dict{String,Any}("ExportId" => ExportId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_archive_export( ExportId, params::AbstractDict{String}; @@ -1556,14 +1471,13 @@ Stops an in-progress archive search job. - `search_id`: The identifier of the search job to stop. """ -function stop_archive_search(SearchId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +stop_archive_search(SearchId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "StopArchiveSearch", Dict{String,Any}("SearchId" => SearchId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_archive_search( SearchId, params::AbstractDict{String}; @@ -1591,14 +1505,13 @@ end example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1631,16 +1544,13 @@ end the specified resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1675,14 +1585,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ArchiveName"`: A new, unique name for the archive. - `"Retention"`: A new retention period for emails in the archive. """ -function update_archive(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "UpdateArchive", - Dict{String,Any}("ArchiveId" => ArchiveId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_archive(ArchiveId; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "UpdateArchive", + Dict{String,Any}("ArchiveId" => ArchiveId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_archive( ArchiveId, params::AbstractDict{String}; @@ -1718,16 +1626,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TrafficPolicyId"`: The identifier of an existing traffic policy that you attach to an ingress endpoint resource. """ -function update_ingress_point( - IngressPointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +update_ingress_point(IngressPointId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "UpdateIngressPoint", Dict{String,Any}("IngressPointId" => IngressPointId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_ingress_point( IngressPointId, params::AbstractDict{String}; @@ -1760,14 +1665,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServerName"`: The destination relay server address. - `"ServerPort"`: The destination relay server port. """ -function update_relay(RelayId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( - "UpdateRelay", - Dict{String,Any}("RelayId" => RelayId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_relay(RelayId; aws_config::AbstractAWSConfig=current_aws_config()) = mailmanager( + "UpdateRelay", + Dict{String,Any}("RelayId" => RelayId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_relay( RelayId, params::AbstractDict{String}; @@ -1796,14 +1699,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Rules"`: A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set. """ -function update_rule_set(RuleSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return mailmanager( +update_rule_set(RuleSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "UpdateRuleSet", Dict{String,Any}("RuleSetId" => RuleSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_rule_set( RuleSetId, params::AbstractDict{String}; @@ -1838,16 +1740,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyStatements"`: The list of conditions to be updated for filtering email traffic. - `"TrafficPolicyName"`: A user-friendly name for the traffic policy resource. """ -function update_traffic_policy( - TrafficPolicyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mailmanager( +update_traffic_policy(TrafficPolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = + mailmanager( "UpdateTrafficPolicy", Dict{String,Any}("TrafficPolicyId" => TrafficPolicyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_traffic_policy( TrafficPolicyId, params::AbstractDict{String}; diff --git a/src/services/managedblockchain.jl b/src/services/managedblockchain.jl index 27726d285..26a2bcb95 100644 --- a/src/services/managedblockchain.jl +++ b/src/services/managedblockchain.jl @@ -34,19 +34,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. """ -function create_accessor( +create_accessor( AccessorType, ClientRequestToken; aws_config::AbstractAWSConfig=current_aws_config() +) = managedblockchain( + "POST", + "/accessors", + Dict{String,Any}( + "AccessorType" => AccessorType, "ClientRequestToken" => ClientRequestToken + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain( - "POST", - "/accessors", - Dict{String,Any}( - "AccessorType" => AccessorType, "ClientRequestToken" => ClientRequestToken - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_accessor( AccessorType, ClientRequestToken, @@ -88,25 +86,23 @@ Creates a member within a Managed Blockchain network. Applies only to Hyperledge - `network_id`: The unique identifier of the network in which the member is created. """ -function create_member( +create_member( ClientRequestToken, InvitationId, MemberConfiguration, networkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = managedblockchain( + "POST", + "/networks/$(networkId)/members", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "InvitationId" => InvitationId, + "MemberConfiguration" => MemberConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain( - "POST", - "/networks/$(networkId)/members", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "InvitationId" => InvitationId, - "MemberConfiguration" => MemberConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_member( ClientRequestToken, InvitationId, @@ -165,7 +161,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. """ -function create_network( +create_network( ClientRequestToken, Framework, FrameworkVersion, @@ -173,22 +169,20 @@ function create_network( Name, VotingPolicy; aws_config::AbstractAWSConfig=current_aws_config(), +) = managedblockchain( + "POST", + "/networks", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "Framework" => Framework, + "FrameworkVersion" => FrameworkVersion, + "MemberConfiguration" => MemberConfiguration, + "Name" => Name, + "VotingPolicy" => VotingPolicy, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain( - "POST", - "/networks", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "Framework" => Framework, - "FrameworkVersion" => FrameworkVersion, - "MemberConfiguration" => MemberConfiguration, - "Name" => Name, - "VotingPolicy" => VotingPolicy, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network( ClientRequestToken, Framework, @@ -247,23 +241,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. """ -function create_node( +create_node( ClientRequestToken, NodeConfiguration, networkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = managedblockchain( + "POST", + "/networks/$(networkId)/nodes", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "NodeConfiguration" => NodeConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain( - "POST", - "/networks/$(networkId)/nodes", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "NodeConfiguration" => NodeConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_node( ClientRequestToken, NodeConfiguration, @@ -320,25 +312,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. """ -function create_proposal( +create_proposal( Actions, ClientRequestToken, MemberId, networkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = managedblockchain( + "POST", + "/networks/$(networkId)/proposals", + Dict{String,Any}( + "Actions" => Actions, + "ClientRequestToken" => ClientRequestToken, + "MemberId" => MemberId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain( - "POST", - "/networks/$(networkId)/proposals", - Dict{String,Any}( - "Actions" => Actions, - "ClientRequestToken" => ClientRequestToken, - "MemberId" => MemberId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_proposal( Actions, ClientRequestToken, @@ -382,14 +372,13 @@ expire (up to 2 hours). - `accessor_id`: The unique identifier of the accessor. """ -function delete_accessor(AccessorId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +delete_accessor(AccessorId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "DELETE", "/accessors/$(AccessorId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_accessor( AccessorId, params::AbstractDict{String}; @@ -421,16 +410,13 @@ Hyperledger Fabric. - `network_id`: The unique identifier of the network from which the member is removed. """ -function delete_member( - memberId, networkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain( +delete_member(memberId, networkId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "DELETE", "/networks/$(networkId)/members/$(memberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_member( memberId, networkId, @@ -463,14 +449,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"memberId"`: The unique identifier of the member that owns this node. Applies only to Hyperledger Fabric and is required for Hyperledger Fabric. """ -function delete_node(networkId, nodeId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +delete_node(networkId, nodeId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "DELETE", "/networks/$(networkId)/nodes/$(nodeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_node( networkId, nodeId, @@ -497,14 +482,13 @@ the information required for token based access to your Ethereum nodes. - `accessor_id`: The unique identifier of the accessor. """ -function get_accessor(AccessorId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +get_accessor(AccessorId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/accessors/$(AccessorId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_accessor( AccessorId, params::AbstractDict{String}; @@ -530,14 +514,13 @@ Returns detailed information about a member. Applies only to Hyperledger Fabric. - `network_id`: The unique identifier of the network to which the member belongs. """ -function get_member(memberId, networkId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +get_member(memberId, networkId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/networks/$(networkId)/members/$(memberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_member( memberId, networkId, @@ -563,14 +546,13 @@ Returns detailed information about a network. Applies to Hyperledger Fabric and - `network_id`: The unique identifier of the network to get information about. """ -function get_network(networkId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +get_network(networkId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/networks/$(networkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_network( networkId, params::AbstractDict{String}; @@ -600,14 +582,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"memberId"`: The unique identifier of the member that owns the node. Applies only to Hyperledger Fabric and is required for Hyperledger Fabric. """ -function get_node(networkId, nodeId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +get_node(networkId, nodeId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/networks/$(networkId)/nodes/$(nodeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_node( networkId, nodeId, @@ -634,16 +615,13 @@ Returns detailed information about a proposal. Applies only to Hyperledger Fabri - `proposal_id`: The unique identifier of the proposal. """ -function get_proposal( - networkId, proposalId; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain( +get_proposal(networkId, proposalId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/networks/$(networkId)/proposals/$(proposalId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_proposal( networkId, proposalId, @@ -674,11 +652,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys before the networkType property was introduced. - `"nextToken"`: The pagination token that indicates the next set of results to retrieve. """ -function list_accessors(; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( - "GET", "/accessors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_accessors(; aws_config::AbstractAWSConfig=current_aws_config()) = managedblockchain( + "GET", "/accessors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_accessors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -699,11 +675,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of invitations to return. - `"nextToken"`: The pagination token that indicates the next set of results to retrieve. """ -function list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( - "GET", "/invitations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) = managedblockchain( + "GET", "/invitations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_invitations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -737,14 +711,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: An optional status specifier. If provided, only members currently in this status are listed. """ -function list_members(networkId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +list_members(networkId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/networks/$(networkId)/members"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_members( networkId, params::AbstractDict{String}; @@ -776,11 +749,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: An optional status specifier. If provided, only networks currently in this status are listed. Applies only to Hyperledger Fabric. """ -function list_networks(; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( - "GET", "/networks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_networks(; aws_config::AbstractAWSConfig=current_aws_config()) = managedblockchain( + "GET", "/networks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_networks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -808,14 +779,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: An optional status specifier. If provided, only nodes currently in this status are listed. """ -function list_nodes(networkId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +list_nodes(networkId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/networks/$(networkId)/nodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_nodes( networkId, params::AbstractDict{String}; @@ -846,16 +816,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of votes to return. - `"nextToken"`: The pagination token that indicates the next set of results to retrieve. """ -function list_proposal_votes( +list_proposal_votes( networkId, proposalId; aws_config::AbstractAWSConfig=current_aws_config() +) = managedblockchain( + "GET", + "/networks/$(networkId)/proposals/$(proposalId)/votes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain( - "GET", - "/networks/$(networkId)/proposals/$(proposalId)/votes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_proposal_votes( networkId, proposalId, @@ -885,14 +853,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of proposals to return. - `"nextToken"`: The pagination token that indicates the next set of results to retrieve. """ -function list_proposals(networkId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +list_proposals(networkId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/networks/$(networkId)/proposals"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_proposals( networkId, params::AbstractDict{String}; @@ -922,16 +889,13 @@ Hyperledger Fabric Developer Guide. General Reference. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -958,14 +922,13 @@ network. Applies only to Hyperledger Fabric. - `invitation_id`: The unique identifier of the invitation to reject. """ -function reject_invitation(invitationId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +reject_invitation(invitationId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "DELETE", "/invitations/$(invitationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reject_invitation( invitationId, params::AbstractDict{String}; @@ -1001,15 +964,14 @@ Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. General Reference. """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "POST", "/tags/$(resourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Tags, resourceArn, @@ -1041,17 +1003,14 @@ Developer Guide. - `tag_keys`: The tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1083,16 +1042,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LogPublishingConfiguration"`: Configuration properties for publishing to Amazon CloudWatch Logs. """ -function update_member( - memberId, networkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain( +update_member(memberId, networkId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "PATCH", "/networks/$(networkId)/members/$(memberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_member( memberId, networkId, @@ -1125,14 +1081,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MemberId"`: The unique identifier of the member that owns the node. Applies only to Hyperledger Fabric. """ -function update_node(networkId, nodeId; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain( +update_node(networkId, nodeId; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain( "PATCH", "/networks/$(networkId)/nodes/$(nodeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_node( networkId, nodeId, @@ -1163,21 +1118,19 @@ principal that calls the action. Applies only to Hyperledger Fabric. - `proposal_id`: The unique identifier of the proposal. """ -function vote_on_proposal( +vote_on_proposal( Vote, VoterMemberId, networkId, proposalId; aws_config::AbstractAWSConfig=current_aws_config(), +) = managedblockchain( + "POST", + "/networks/$(networkId)/proposals/$(proposalId)/votes", + Dict{String,Any}("Vote" => Vote, "VoterMemberId" => VoterMemberId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain( - "POST", - "/networks/$(networkId)/proposals/$(proposalId)/votes", - Dict{String,Any}("Vote" => Vote, "VoterMemberId" => VoterMemberId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function vote_on_proposal( Vote, VoterMemberId, diff --git a/src/services/managedblockchain_query.jl b/src/services/managedblockchain_query.jl index 8c7a67232..7d9e83fd1 100644 --- a/src/services/managedblockchain_query.jl +++ b/src/services/managedblockchain_query.jl @@ -17,14 +17,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"getTokenBalanceInputs"`: An array of BatchGetTokenBalanceInputItem objects whose balance is being requested. """ -function batch_get_token_balance(; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain_query( +batch_get_token_balance(; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain_query( "POST", "/batch-get-token-balance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_token_balance( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -51,17 +50,14 @@ future. contract. """ -function get_asset_contract( - contractIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain_query( +get_asset_contract(contractIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain_query( "POST", "/get-asset-contract", Dict{String,Any}("contractIdentifier" => contractIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_asset_contract( contractIdentifier, params::AbstractDict{String}; @@ -99,19 +95,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys time if a time is not provided in the request. This time will only be recorded up to the second. """ -function get_token_balance( +get_token_balance( ownerIdentifier, tokenIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = managedblockchain_query( + "POST", + "/get-token-balance", + Dict{String,Any}( + "ownerIdentifier" => ownerIdentifier, "tokenIdentifier" => tokenIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain_query( - "POST", - "/get-token-balance", - Dict{String,Any}( - "ownerIdentifier" => ownerIdentifier, "tokenIdentifier" => tokenIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_token_balance( ownerIdentifier, tokenIdentifier, @@ -153,15 +147,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"transactionId"`: The identifier of a Bitcoin transaction. It is generated when a transaction is created. transactionId is only supported on the Bitcoin networks. """ -function get_transaction(network; aws_config::AbstractAWSConfig=current_aws_config()) - return managedblockchain_query( +get_transaction(network; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain_query( "POST", "/get-transaction", Dict{String,Any}("network" => network); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_transaction( network, params::AbstractDict{String}; @@ -195,17 +188,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to return - `"nextToken"`: The pagination token that indicates the next set of results to retrieve. """ -function list_asset_contracts( - contractFilter; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain_query( +list_asset_contracts(contractFilter; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain_query( "POST", "/list-asset-contracts", Dict{String,Any}("contractFilter" => contractFilter); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_asset_contracts( contractFilter, params::AbstractDict{String}; @@ -250,19 +240,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"voutFilter"`: This container specifies filtering attributes related to BITCOIN_VOUT event types """ -function list_filtered_transaction_events( +list_filtered_transaction_events( addressIdentifierFilter, network; aws_config::AbstractAWSConfig=current_aws_config() +) = managedblockchain_query( + "POST", + "/list-filtered-transaction-events", + Dict{String,Any}( + "addressIdentifierFilter" => addressIdentifierFilter, "network" => network + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return managedblockchain_query( - "POST", - "/list-filtered-transaction-events", - Dict{String,Any}( - "addressIdentifierFilter" => addressIdentifierFilter, "network" => network - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_filtered_transaction_events( addressIdentifierFilter, network, @@ -315,17 +303,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys filter the request. You must specify the address property of the ownerFilter when listing balances of tokens owned by the address. """ -function list_token_balances( - tokenFilter; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain_query( +list_token_balances(tokenFilter; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain_query( "POST", "/list-token-balances", Dict{String,Any}("tokenFilter" => tokenFilter); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_token_balances( tokenFilter, params::AbstractDict{String}; @@ -366,17 +351,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"transactionId"`: The identifier of a Bitcoin transaction. It is generated when a transaction is created. transactionId is only supported on the Bitcoin networks. """ -function list_transaction_events( - network; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain_query( +list_transaction_events(network; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain_query( "POST", "/list-transaction-events", Dict{String,Any}("network" => network); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_transaction_events( network, params::AbstractDict{String}; @@ -417,17 +399,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sort"`: The order by which the results will be sorted. - `"toBlockchainInstant"`: """ -function list_transactions( - address, network; aws_config::AbstractAWSConfig=current_aws_config() -) - return managedblockchain_query( +list_transactions(address, network; aws_config::AbstractAWSConfig=current_aws_config()) = + managedblockchain_query( "POST", "/list-transactions", Dict{String,Any}("address" => address, "network" => network); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_transactions( address, network, diff --git a/src/services/marketplace_agreement.jl b/src/services/marketplace_agreement.jl index 20e577a82..5f708ec40 100644 --- a/src/services/marketplace_agreement.jl +++ b/src/services/marketplace_agreement.jl @@ -15,14 +15,13 @@ date. - `agreement_id`: The unique identifier of the agreement. """ -function describe_agreement(agreementId; aws_config::AbstractAWSConfig=current_aws_config()) - return marketplace_agreement( +describe_agreement(agreementId; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_agreement( "DescribeAgreement", Dict{String,Any}("agreementId" => agreementId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_agreement( agreementId, params::AbstractDict{String}; @@ -59,16 +58,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of agreements to return in the response. - `"nextToken"`: A token to specify where to start pagination """ -function get_agreement_terms( - agreementId; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_agreement( +get_agreement_terms(agreementId; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_agreement( "GetAgreementTerms", Dict{String,Any}("agreementId" => agreementId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_agreement_terms( agreementId, params::AbstractDict{String}; @@ -124,11 +120,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start pagination. - `"sort"`: An object that contains the SortBy and SortOrder attributes. """ -function search_agreements(; aws_config::AbstractAWSConfig=current_aws_config()) - return marketplace_agreement( +search_agreements(; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_agreement( "SearchAgreements"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function search_agreements( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/marketplace_catalog.jl b/src/services/marketplace_catalog.jl index dd83fc94b..b633de324 100644 --- a/src/services/marketplace_catalog.jl +++ b/src/services/marketplace_catalog.jl @@ -15,17 +15,15 @@ DescribeEntity API and uses the same IAM permission action as DescribeEntity API - `entity_request_list`: List of entity IDs and the catalogs the entities are present in. """ -function batch_describe_entities( +batch_describe_entities( EntityRequestList; aws_config::AbstractAWSConfig=current_aws_config() +) = marketplace_catalog( + "POST", + "/BatchDescribeEntities", + Dict{String,Any}("EntityRequestList" => EntityRequestList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_catalog( - "POST", - "/BatchDescribeEntities", - Dict{String,Any}("EntityRequestList" => EntityRequestList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_describe_entities( EntityRequestList, params::AbstractDict{String}; @@ -58,17 +56,15 @@ change during the 60-day request history retention period for API calls. want to cancel. """ -function cancel_change_set( +cancel_change_set( catalog, changeSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = marketplace_catalog( + "PATCH", + "/CancelChangeSet", + Dict{String,Any}("catalog" => catalog, "changeSetId" => changeSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_catalog( - "PATCH", - "/CancelChangeSet", - Dict{String,Any}("catalog" => catalog, "changeSetId" => changeSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_change_set( catalog, changeSetId, @@ -101,17 +97,14 @@ Deletes a resource-based policy on an entity that is identified by its resource with the resource policy. """ -function delete_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_catalog( +delete_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "DELETE", "/DeleteResourcePolicy", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( resourceArn, params::AbstractDict{String}; @@ -140,17 +133,15 @@ Provides information about a given change set. want to describe the details for. """ -function describe_change_set( +describe_change_set( catalog, changeSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = marketplace_catalog( + "GET", + "/DescribeChangeSet", + Dict{String,Any}("catalog" => catalog, "changeSetId" => changeSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_catalog( - "GET", - "/DescribeChangeSet", - Dict{String,Any}("catalog" => catalog, "changeSetId" => changeSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_change_set( catalog, changeSetId, @@ -183,17 +174,14 @@ Returns the metadata and content of the entity. - `entity_id`: Required. The unique ID of the entity to describe. """ -function describe_entity( - catalog, entityId; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_catalog( +describe_entity(catalog, entityId; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "GET", "/DescribeEntity", Dict{String,Any}("catalog" => catalog, "entityId" => entityId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_entity( catalog, entityId, @@ -226,17 +214,14 @@ Gets a resource-based policy of an entity that is identified by its resource ARN with the resource policy. """ -function get_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_catalog( +get_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "GET", "/GetResourcePolicy", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( resourceArn, params::AbstractDict{String}; @@ -276,15 +261,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"Sort"`: An object that contains two attributes, SortBy and SortOrder. """ -function list_change_sets(Catalog; aws_config::AbstractAWSConfig=current_aws_config()) - return marketplace_catalog( +list_change_sets(Catalog; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "POST", "/ListChangeSets", Dict{String,Any}("Catalog" => Catalog); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_change_sets( Catalog, params::AbstractDict{String}; @@ -331,17 +315,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation can't be discovered through the SHARED parameter. - `"Sort"`: An object that contains two attributes, SortBy and SortOrder. """ -function list_entities( - Catalog, EntityType; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_catalog( +list_entities(Catalog, EntityType; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "POST", "/ListEntities", Dict{String,Any}("Catalog" => Catalog, "EntityType" => EntityType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_entities( Catalog, EntityType, @@ -374,17 +355,14 @@ Lists all tags that have been added to a resource (either an entity or change se want to list tags on. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_catalog( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "POST", "/ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -414,17 +392,15 @@ and ContainerProduct. associate with a resource policy. """ -function put_resource_policy( +put_resource_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = marketplace_catalog( + "POST", + "/PutResourcePolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_catalog( - "POST", - "/PutResourcePolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( Policy, ResourceArn, @@ -477,10 +453,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys before applying changes to your entities, use VALIDATE. This feature is currently available for adding versions to single-AMI products. For more information, see Add a new version. """ -function start_change_set( - Catalog, ChangeSet; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_catalog( +start_change_set(Catalog, ChangeSet; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "POST", "/StartChangeSet", Dict{String,Any}( @@ -491,7 +465,6 @@ function start_change_set( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_change_set( Catalog, ChangeSet, @@ -530,15 +503,14 @@ Tags a resource (either an entity or change set). allowed: 1-50. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return marketplace_catalog( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "POST", "/TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -573,17 +545,14 @@ Removes a tag or list of tags from a resource (either an entity or change set). allowed: 0-256. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_catalog( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_catalog( "POST", "/UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, diff --git a/src/services/marketplace_commerce_analytics.jl b/src/services/marketplace_commerce_analytics.jl index 31a79b337..5d8d668c8 100644 --- a/src/services/marketplace_commerce_analytics.jl +++ b/src/services/marketplace_commerce_analytics.jl @@ -82,27 +82,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys structure does not exist, it will be created. If no prefix is provided, the data set will be published to the S3 bucket root. """ -function generate_data_set( +generate_data_set( dataSetPublicationDate, dataSetType, destinationS3BucketName, roleNameArn, snsTopicArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = marketplace_commerce_analytics( + "GenerateDataSet", + Dict{String,Any}( + "dataSetPublicationDate" => dataSetPublicationDate, + "dataSetType" => dataSetType, + "destinationS3BucketName" => destinationS3BucketName, + "roleNameArn" => roleNameArn, + "snsTopicArn" => snsTopicArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_commerce_analytics( - "GenerateDataSet", - Dict{String,Any}( - "dataSetPublicationDate" => dataSetPublicationDate, - "dataSetType" => dataSetType, - "destinationS3BucketName" => destinationS3BucketName, - "roleNameArn" => roleNameArn, - "snsTopicArn" => snsTopicArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_data_set( dataSetPublicationDate, dataSetType, @@ -182,27 +180,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not exist, it will be created. If no prefix is provided, the data set will be published to the S3 bucket root. """ -function start_support_data_export( +start_support_data_export( dataSetType, destinationS3BucketName, fromDate, roleNameArn, snsTopicArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = marketplace_commerce_analytics( + "StartSupportDataExport", + Dict{String,Any}( + "dataSetType" => dataSetType, + "destinationS3BucketName" => destinationS3BucketName, + "fromDate" => fromDate, + "roleNameArn" => roleNameArn, + "snsTopicArn" => snsTopicArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_commerce_analytics( - "StartSupportDataExport", - Dict{String,Any}( - "dataSetType" => dataSetType, - "destinationS3BucketName" => destinationS3BucketName, - "fromDate" => fromDate, - "roleNameArn" => roleNameArn, - "snsTopicArn" => snsTopicArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_support_data_export( dataSetType, destinationS3BucketName, diff --git a/src/services/marketplace_deployment.jl b/src/services/marketplace_deployment.jl index 1268f7097..8c2277beb 100644 --- a/src/services/marketplace_deployment.jl +++ b/src/services/marketplace_deployment.jl @@ -15,16 +15,13 @@ Lists all tags that have been added to a deployment parameter resource. resource you want to list tags on. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_deployment( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_deployment( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -63,25 +60,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource. Tags will only be applied for create operations, and they'll be ignored if the resource already exists. """ -function put_deployment_parameter( +put_deployment_parameter( agreementId, catalog, deploymentParameter, productId; aws_config::AbstractAWSConfig=current_aws_config(), +) = marketplace_deployment( + "POST", + "/catalogs/$(catalog)/products/$(productId)/deployment-parameters", + Dict{String,Any}( + "agreementId" => agreementId, + "deploymentParameter" => deploymentParameter, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_deployment( - "POST", - "/catalogs/$(catalog)/products/$(productId)/deployment-parameters", - Dict{String,Any}( - "agreementId" => agreementId, - "deploymentParameter" => deploymentParameter, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_deployment_parameter( agreementId, catalog, @@ -124,14 +119,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A map of key-value pairs, where each pair represents a tag present on the resource. """ -function tag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return marketplace_deployment( +tag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_deployment( "POST", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, params::AbstractDict{String}; @@ -158,17 +152,14 @@ Removes a tag or list of tags from a resource. - `tag_keys`: A list of key names of tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_deployment( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_deployment( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/marketplace_entitlement_service.jl b/src/services/marketplace_entitlement_service.jl index 7a7677549..2a791513a 100644 --- a/src/services/marketplace_entitlement_service.jl +++ b/src/services/marketplace_entitlement_service.jl @@ -26,14 +26,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: For paginated calls to GetEntitlements, pass the NextToken from the previous GetEntitlementsResult. """ -function get_entitlements(ProductCode; aws_config::AbstractAWSConfig=current_aws_config()) - return marketplace_entitlement_service( +get_entitlements(ProductCode; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_entitlement_service( "GetEntitlements", Dict{String,Any}("ProductCode" => ProductCode); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_entitlements( ProductCode, params::AbstractDict{String}; diff --git a/src/services/marketplace_metering.jl b/src/services/marketplace_metering.jl index 7bceb9f49..8ac6e83c4 100644 --- a/src/services/marketplace_metering.jl +++ b/src/services/marketplace_metering.jl @@ -30,16 +30,14 @@ AWS Marketplace Seller Guide. UsageRecords at a time. """ -function batch_meter_usage( +batch_meter_usage( ProductCode, UsageRecords; aws_config::AbstractAWSConfig=current_aws_config() +) = marketplace_metering( + "BatchMeterUsage", + Dict{String,Any}("ProductCode" => ProductCode, "UsageRecords" => UsageRecords); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_metering( - "BatchMeterUsage", - Dict{String,Any}("ProductCode" => ProductCode, "UsageRecords" => UsageRecords); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_meter_usage( ProductCode, UsageRecords, @@ -93,23 +91,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UsageAllocation must have a unique set of tags (include no tags). - `"UsageQuantity"`: Consumption value for the hour. Defaults to 0 if not specified. """ -function meter_usage( +meter_usage( ProductCode, Timestamp, UsageDimension; aws_config::AbstractAWSConfig=current_aws_config(), +) = marketplace_metering( + "MeterUsage", + Dict{String,Any}( + "ProductCode" => ProductCode, + "Timestamp" => Timestamp, + "UsageDimension" => UsageDimension, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_metering( - "MeterUsage", - Dict{String,Any}( - "ProductCode" => ProductCode, - "Timestamp" => Timestamp, - "UsageDimension" => UsageDimension, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function meter_usage( ProductCode, Timestamp, @@ -175,18 +171,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Nonce"`: (Optional) To scope down the registration to a specific running software instance and guard against replay attacks. """ -function register_usage( +register_usage( ProductCode, PublicKeyVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = marketplace_metering( + "RegisterUsage", + Dict{String,Any}("ProductCode" => ProductCode, "PublicKeyVersion" => PublicKeyVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return marketplace_metering( - "RegisterUsage", - Dict{String,Any}( - "ProductCode" => ProductCode, "PublicKeyVersion" => PublicKeyVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_usage( ProductCode, PublicKeyVersion, @@ -227,16 +219,13 @@ example in the AWS Marketplace Seller Guide. resolved to obtain a CustomerIdentifier along with the CustomerAWSAccountId and ProductCode. """ -function resolve_customer( - RegistrationToken; aws_config::AbstractAWSConfig=current_aws_config() -) - return marketplace_metering( +resolve_customer(RegistrationToken; aws_config::AbstractAWSConfig=current_aws_config()) = + marketplace_metering( "ResolveCustomer", Dict{String,Any}("RegistrationToken" => RegistrationToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resolve_customer( RegistrationToken, params::AbstractDict{String}; diff --git a/src/services/mediaconnect.jl b/src/services/mediaconnect.jl index 73009efd8..fbd117203 100644 --- a/src/services/mediaconnect.jl +++ b/src/services/mediaconnect.jl @@ -15,17 +15,14 @@ Adds outputs to an existing bridge. - `outputs`: The outputs that you want to add to this bridge. """ -function add_bridge_outputs( - bridgeArn, outputs; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +add_bridge_outputs(bridgeArn, outputs; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "POST", "/v1/bridges/$(bridgeArn)/outputs", Dict{String,Any}("outputs" => outputs); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_bridge_outputs( bridgeArn, outputs, @@ -52,17 +49,14 @@ Adds sources to an existing bridge. - `sources`: The sources that you want to add to this bridge. """ -function add_bridge_sources( - bridgeArn, sources; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +add_bridge_sources(bridgeArn, sources; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "POST", "/v1/bridges/$(bridgeArn)/sources", Dict{String,Any}("sources" => sources); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_bridge_sources( bridgeArn, sources, @@ -90,17 +84,15 @@ associate it with a source and/or an output that uses the ST 2110 JPEG XS or CDI - `media_streams`: The media streams that you want to add to the flow. """ -function add_flow_media_streams( +add_flow_media_streams( flowArn, mediaStreams; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "POST", + "/v1/flows/$(flowArn)/mediaStreams", + Dict{String,Any}("mediaStreams" => mediaStreams); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "POST", - "/v1/flows/$(flowArn)/mediaStreams", - Dict{String,Any}("mediaStreams" => mediaStreams); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_flow_media_streams( flowArn, mediaStreams, @@ -129,17 +121,14 @@ Adds outputs to an existing flow. You can create up to 50 outputs per flow. - `outputs`: A list of outputs that you want to add. """ -function add_flow_outputs( - flowArn, outputs; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +add_flow_outputs(flowArn, outputs; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "POST", "/v1/flows/$(flowArn)/outputs", Dict{String,Any}("outputs" => outputs); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_flow_outputs( flowArn, outputs, @@ -166,17 +155,14 @@ Adds Sources to flow - `sources`: A list of sources that you want to add. """ -function add_flow_sources( - flowArn, sources; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +add_flow_sources(flowArn, sources; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "POST", "/v1/flows/$(flowArn)/source", Dict{String,Any}("sources" => sources); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_flow_sources( flowArn, sources, @@ -203,17 +189,15 @@ Adds VPC interfaces to flow - `vpc_interfaces`: A list of VPC interfaces that you want to add. """ -function add_flow_vpc_interfaces( +add_flow_vpc_interfaces( flowArn, vpcInterfaces; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "POST", + "/v1/flows/$(flowArn)/vpcInterfaces", + Dict{String,Any}("vpcInterfaces" => vpcInterfaces); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "POST", - "/v1/flows/$(flowArn)/vpcInterfaces", - Dict{String,Any}("vpcInterfaces" => vpcInterfaces); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_flow_vpc_interfaces( flowArn, vpcInterfaces, @@ -253,19 +237,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"outputs"`: The outputs that you want to add to this bridge. - `"sourceFailoverConfig"`: The settings for source failover. """ -function create_bridge( +create_bridge( name, placementArn, sources; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "POST", + "/v1/bridges", + Dict{String,Any}("name" => name, "placementArn" => placementArn, "sources" => sources); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "POST", - "/v1/bridges", - Dict{String,Any}( - "name" => name, "placementArn" => placementArn, "sources" => sources - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_bridge( name, placementArn, @@ -311,18 +291,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"outputs"`: The outputs that you want to add to this flow. - `"source"`: - `"sourceFailoverConfig"`: +- `"sourceMonitoringConfig"`: - `"sources"`: - `"vpcInterfaces"`: The VPC interfaces you want on the flow. """ -function create_flow(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "POST", - "/v1/flows", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_flow(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "POST", + "/v1/flows", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_flow( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -351,19 +330,17 @@ Creates a new gateway. The request must include at least one network (up to 4). - `networks`: The list of networks that you want to add. """ -function create_gateway( +create_gateway( egressCidrBlocks, name, networks; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "POST", + "/v1/gateways", + Dict{String,Any}( + "egressCidrBlocks" => egressCidrBlocks, "name" => name, "networks" => networks + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "POST", - "/v1/gateways", - Dict{String,Any}( - "egressCidrBlocks" => egressCidrBlocks, "name" => name, "networks" => networks - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_gateway( egressCidrBlocks, name, @@ -400,14 +377,12 @@ Deletes a bridge. Before you can delete a bridge, you must stop the bridge. - `bridge_arn`: The ARN of the bridge that you want to delete. """ -function delete_bridge(bridgeArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "DELETE", - "/v1/bridges/$(bridgeArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_bridge(bridgeArn; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "DELETE", + "/v1/bridges/$(bridgeArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_bridge( bridgeArn, params::AbstractDict{String}; @@ -432,14 +407,12 @@ Deletes a flow. Before you can delete a flow, you must stop the flow. - `flow_arn`: The ARN of the flow that you want to delete. """ -function delete_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "DELETE", - "/v1/flows/$(flowArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "DELETE", + "/v1/flows/$(flowArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_flow( flowArn, params::AbstractDict{String}; @@ -465,14 +438,13 @@ delete its bridges. - `gateway_arn`: The ARN of the gateway that you want to delete. """ -function delete_gateway(gatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( +delete_gateway(gatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "DELETE", "/v1/gateways/$(gatewayArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_gateway( gatewayArn, params::AbstractDict{String}; @@ -504,16 +476,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"force"`: Force the deregistration of an instance. Force will deregister an instance, even if there are bridges running on it. """ -function deregister_gateway_instance( +deregister_gateway_instance( gatewayInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "DELETE", + "/v1/gateway-instances/$(gatewayInstanceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "DELETE", - "/v1/gateway-instances/$(gatewayInstanceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_gateway_instance( gatewayInstanceArn, params::AbstractDict{String}; @@ -538,14 +508,13 @@ Displays the details of a bridge. - `bridge_arn`: The ARN of the bridge that you want to describe. """ -function describe_bridge(bridgeArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( +describe_bridge(bridgeArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "GET", "/v1/bridges/$(bridgeArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_bridge( bridgeArn, params::AbstractDict{String}; @@ -571,14 +540,12 @@ Zone, as well as details about the source, outputs, and entitlements. - `flow_arn`: The ARN of the flow that you want to describe. """ -function describe_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "GET", - "/v1/flows/$(flowArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "GET", + "/v1/flows/$(flowArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_flow( flowArn, params::AbstractDict{String}; @@ -604,24 +571,53 @@ contents of the stream and its programs. - `flow_arn`: The Amazon Resource Name (ARN) of the flow. """ +describe_flow_source_metadata(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( + "GET", + "/v1/flows/$(flowArn)/source-metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) function describe_flow_source_metadata( - flowArn; aws_config::AbstractAWSConfig=current_aws_config() + flowArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return mediaconnect( "GET", - "/v1/flows/$(flowArn)/source-metadata"; + "/v1/flows/$(flowArn)/source-metadata", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function describe_flow_source_metadata( + +""" + describe_flow_source_thumbnail(flow_arn) + describe_flow_source_thumbnail(flow_arn, params::Dict{String,<:Any}) + +Displays the thumbnail details of a flow's source stream. + +# Arguments +- `flow_arn`: The Amazon Resource Name (ARN) of the flow. + +""" +describe_flow_source_thumbnail( + flowArn; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "GET", + "/v1/flows/$(flowArn)/source-thumbnail"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_flow_source_thumbnail( flowArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return mediaconnect( "GET", - "/v1/flows/$(flowArn)/source-metadata", + "/v1/flows/$(flowArn)/source-thumbnail", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -639,14 +635,13 @@ blocks, as well as details about the networks. - `gateway_arn`: The Amazon Resource Name (ARN) of the gateway that you want to describe. """ -function describe_gateway(gatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( +describe_gateway(gatewayArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "GET", "/v1/gateways/$(gatewayArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_gateway( gatewayArn, params::AbstractDict{String}; @@ -672,16 +667,14 @@ Displays the details of an instance. want to describe. """ -function describe_gateway_instance( +describe_gateway_instance( gatewayInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "GET", + "/v1/gateway-instances/$(gatewayInstanceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "GET", - "/v1/gateway-instances/$(gatewayInstanceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_gateway_instance( gatewayInstanceArn, params::AbstractDict{String}; @@ -707,14 +700,13 @@ duration, outbound bandwidth, price, and Amazon Resource Name (ARN). - `offering_arn`: The Amazon Resource Name (ARN) of the offering. """ -function describe_offering(offeringArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( +describe_offering(offeringArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "GET", "/v1/offerings/$(offeringArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_offering( offeringArn, params::AbstractDict{String}; @@ -741,16 +733,13 @@ reservation (such as price, duration, and outbound bandwidth). - `reservation_arn`: The Amazon Resource Name (ARN) of the reservation. """ -function describe_reservation( - reservationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +describe_reservation(reservationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "GET", "/v1/reservations/$(reservationArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_reservation( reservationArn, params::AbstractDict{String}; @@ -776,17 +765,15 @@ Grants entitlements to an existing flow. - `flow_arn`: The flow that you want to grant entitlements on. """ -function grant_flow_entitlements( +grant_flow_entitlements( entitlements, flowArn; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "POST", + "/v1/flows/$(flowArn)/entitlements", + Dict{String,Any}("entitlements" => entitlements); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "POST", - "/v1/flows/$(flowArn)/entitlements", - Dict{String,Any}("entitlements" => entitlements); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function grant_flow_entitlements( entitlements, flowArn, @@ -826,11 +813,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListBridges request a second time and specify the NextToken value. """ -function list_bridges(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "GET", "/v1/bridges"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_bridges(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "GET", "/v1/bridges"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_bridges( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -860,11 +845,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of results, you can submit the ListEntitlements request a second time and specify the NextToken value. """ -function list_entitlements(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "GET", "/v1/entitlements"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_entitlements(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "GET", "/v1/entitlements"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_entitlements( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -897,11 +880,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value. """ -function list_flows(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "GET", "/v1/flows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_flows(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect("GET", "/v1/flows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_flows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -934,14 +914,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results, you can submit the ListInstances request a second time and specify the NextToken value. """ -function list_gateway_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "GET", - "/v1/gateway-instances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_gateway_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "GET", + "/v1/gateway-instances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_gateway_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -975,11 +953,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results, you can submit the ListGateways request a second time and specify the NextToken value. """ -function list_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "GET", "/v1/gateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "GET", "/v1/gateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1015,11 +991,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results, you can submit the ListOfferings request a second time and specify the NextToken value. """ -function list_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "GET", "/v1/offerings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "GET", "/v1/offerings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1053,11 +1027,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of results, you can submit the ListOfferings request a second time and specify the NextToken value. """ -function list_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "GET", "/v1/reservations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "GET", "/v1/reservations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_reservations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1081,16 +1053,13 @@ List all tags on an AWS Elemental MediaConnect resource MediaConnect resource for which to list the tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1122,17 +1091,15 @@ can't purchase another offering. characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z. """ -function purchase_offering( +purchase_offering( offeringArn, reservationName, start; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "POST", + "/v1/offerings/$(offeringArn)", + Dict{String,Any}("reservationName" => reservationName, "start" => start); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "POST", - "/v1/offerings/$(offeringArn)", - Dict{String,Any}("reservationName" => reservationName, "start" => start); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_offering( offeringArn, reservationName, @@ -1166,16 +1133,14 @@ Removes an output from a bridge. - `output_name`: The name of the bridge output that you want to remove. """ -function remove_bridge_output( +remove_bridge_output( bridgeArn, outputName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "DELETE", + "/v1/bridges/$(bridgeArn)/outputs/$(outputName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "DELETE", - "/v1/bridges/$(bridgeArn)/outputs/$(outputName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_bridge_output( bridgeArn, outputName, @@ -1202,16 +1167,14 @@ Removes a source from a bridge. - `source_name`: The name of the bridge source that you want to remove. """ -function remove_bridge_source( +remove_bridge_source( bridgeArn, sourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "DELETE", + "/v1/bridges/$(bridgeArn)/sources/$(sourceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "DELETE", - "/v1/bridges/$(bridgeArn)/sources/$(sourceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_bridge_source( bridgeArn, sourceName, @@ -1239,16 +1202,14 @@ not associated with a source or output. - `media_stream_name`: The name of the media stream that you want to remove. """ -function remove_flow_media_stream( +remove_flow_media_stream( flowArn, mediaStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "DELETE", + "/v1/flows/$(flowArn)/mediaStreams/$(mediaStreamName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "DELETE", - "/v1/flows/$(flowArn)/mediaStreams/$(mediaStreamName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_flow_media_stream( flowArn, mediaStreamName, @@ -1278,16 +1239,13 @@ automatically removes the associated output. - `output_arn`: The ARN of the output that you want to remove. """ -function remove_flow_output( - flowArn, outputArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +remove_flow_output(flowArn, outputArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "DELETE", "/v1/flows/$(flowArn)/outputs/$(outputArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_flow_output( flowArn, outputArn, @@ -1315,16 +1273,13 @@ one source on the flow. - `source_arn`: The ARN of the source that you want to remove. """ -function remove_flow_source( - flowArn, sourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +remove_flow_source(flowArn, sourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "DELETE", "/v1/flows/$(flowArn)/source/$(sourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_flow_source( flowArn, sourceArn, @@ -1354,16 +1309,14 @@ no longer reference the VPC interface. - `vpc_interface_name`: The name of the VPC interface that you want to remove. """ -function remove_flow_vpc_interface( +remove_flow_vpc_interface( flowArn, vpcInterfaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "DELETE", + "/v1/flows/$(flowArn)/vpcInterfaces/$(vpcInterfaceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "DELETE", - "/v1/flows/$(flowArn)/vpcInterfaces/$(vpcInterfaceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_flow_vpc_interface( flowArn, vpcInterfaceName, @@ -1391,16 +1344,14 @@ unavailable to the subscriber and the associated output is removed. - `flow_arn`: The flow that you want to revoke an entitlement from. """ -function revoke_flow_entitlement( +revoke_flow_entitlement( entitlementArn, flowArn; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "DELETE", + "/v1/flows/$(flowArn)/entitlements/$(entitlementArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "DELETE", - "/v1/flows/$(flowArn)/entitlements/$(entitlementArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_flow_entitlement( entitlementArn, flowArn, @@ -1426,14 +1377,12 @@ Starts a flow. - `flow_arn`: The ARN of the flow that you want to start. """ -function start_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "POST", - "/v1/flows/start/$(flowArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "POST", + "/v1/flows/start/$(flowArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_flow( flowArn, params::AbstractDict{String}; @@ -1458,14 +1407,12 @@ Stops a flow. - `flow_arn`: The ARN of the flow that you want to stop. """ -function stop_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "POST", - "/v1/flows/stop/$(flowArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "POST", + "/v1/flows/stop/$(flowArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_flow( flowArn, params::AbstractDict{String}; @@ -1495,15 +1442,14 @@ a resource is deleted, the tags associated with that resource are deleted as wel 128 characters, and tag values can have a maximum length of 256 characters. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1531,17 +1477,14 @@ Deletes specified tags from a resource. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1572,14 +1515,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ingressGatewayBridge"`: - `"sourceFailoverConfig"`: """ -function update_bridge(bridgeArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "PUT", - "/v1/bridges/$(bridgeArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_bridge(bridgeArn; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "PUT", + "/v1/bridges/$(bridgeArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_bridge( bridgeArn, params::AbstractDict{String}; @@ -1608,16 +1549,14 @@ Updates an existing bridge output. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"networkOutput"`: """ -function update_bridge_output( +update_bridge_output( bridgeArn, outputName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "PUT", + "/v1/bridges/$(bridgeArn)/outputs/$(outputName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "PUT", - "/v1/bridges/$(bridgeArn)/outputs/$(outputName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bridge_output( bridgeArn, outputName, @@ -1648,16 +1587,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"flowSource"`: - `"networkSource"`: """ -function update_bridge_source( +update_bridge_source( bridgeArn, sourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "PUT", + "/v1/bridges/$(bridgeArn)/sources/$(sourceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "PUT", - "/v1/bridges/$(bridgeArn)/sources/$(sourceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bridge_source( bridgeArn, sourceName, @@ -1684,17 +1621,15 @@ Updates the bridge state - `desired_state`: """ -function update_bridge_state( +update_bridge_state( bridgeArn, desiredState; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "PUT", + "/v1/bridges/$(bridgeArn)/state", + Dict{String,Any}("desiredState" => desiredState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "PUT", - "/v1/bridges/$(bridgeArn)/state", - Dict{String,Any}("desiredState" => desiredState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bridge_state( bridgeArn, desiredState, @@ -1725,15 +1660,14 @@ Updates flow Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"maintenance"`: - `"sourceFailoverConfig"`: +- `"sourceMonitoringConfig"`: """ -function update_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconnect( - "PUT", - "/v1/flows/$(flowArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_flow(flowArn; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconnect( + "PUT", + "/v1/flows/$(flowArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_flow( flowArn, params::AbstractDict{String}; @@ -1774,16 +1708,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. """ -function update_flow_entitlement( +update_flow_entitlement( entitlementArn, flowArn; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "PUT", + "/v1/flows/$(flowArn)/entitlements/$(entitlementArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "PUT", - "/v1/flows/$(flowArn)/entitlements/$(entitlementArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_flow_entitlement( entitlementArn, flowArn, @@ -1819,16 +1751,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"mediaStreamType"`: The type of media stream. - `"videoFormat"`: The resolution of the video. """ -function update_flow_media_stream( +update_flow_media_stream( flowArn, mediaStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "PUT", + "/v1/flows/$(flowArn)/mediaStreams/$(mediaStreamName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "PUT", - "/v1/flows/$(flowArn)/mediaStreams/$(mediaStreamName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_flow_media_stream( flowArn, mediaStreamName, @@ -1873,6 +1803,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency. +- `"outputStatus"`: An indication of whether the output should transmit data or not. If you + don't specify the outputStatus field in your request, MediaConnect leaves the value + unchanged. - `"port"`: The port to use when content is distributed to this output. - `"protocol"`: The protocol to use for the output. - `"remoteId"`: The remote ID for the Zixi-pull stream. @@ -1887,16 +1820,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcInterfaceAttachment"`: The name of the VPC interface attachment to use for this output. """ -function update_flow_output( - flowArn, outputArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +update_flow_output(flowArn, outputArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "PUT", "/v1/flows/$(flowArn)/outputs/$(outputArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_flow_output( flowArn, outputArn, @@ -1960,16 +1890,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. """ -function update_flow_source( - flowArn, sourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconnect( +update_flow_source(flowArn, sourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconnect( "PUT", "/v1/flows/$(flowArn)/source/$(sourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_flow_source( flowArn, sourceArn, @@ -2001,16 +1928,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys bridgePlacement property can be LOCKED or AVAILABLE. If it is LOCKED, no new bridges can be deployed to this instance. If it is AVAILABLE, new bridges can be added to this instance. """ -function update_gateway_instance( +update_gateway_instance( gatewayInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = mediaconnect( + "PUT", + "/v1/gateway-instances/$(gatewayInstanceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediaconnect( - "PUT", - "/v1/gateway-instances/$(gatewayInstanceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_gateway_instance( gatewayInstanceArn, params::AbstractDict{String}; diff --git a/src/services/mediaconvert.jl b/src/services/mediaconvert.jl index d20092339..e1d472a7a 100644 --- a/src/services/mediaconvert.jl +++ b/src/services/mediaconvert.jl @@ -16,15 +16,14 @@ MediaConvert. resource. """ -function associate_certificate(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( +associate_certificate(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconvert( "POST", "/2017-08-29/certificates", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_certificate( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -47,14 +46,12 @@ Permanently cancel a job. Once you have canceled a job, you can't start it again - `id`: The Job ID of the job to be cancelled. """ -function cancel_job(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "DELETE", - "/2017-08-29/jobs/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "DELETE", + "/2017-08-29/jobs/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -125,8 +122,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys integrations or workflows that rely on job metadata tags. Otherwise, we recommend that you use standard AWS tags. """ -function create_job(role, settings; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( +create_job(role, settings; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconvert( "POST", "/2017-08-29/jobs", Dict{String,Any}( @@ -135,7 +132,6 @@ function create_job(role, settings; aws_config::AbstractAWSConfig=current_aws_co aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_job( role, settings, @@ -197,17 +193,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. """ -function create_job_template( - name, settings; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediaconvert( +create_job_template(name, settings; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconvert( "POST", "/2017-08-29/jobTemplates", Dict{String,Any}("name" => name, "settings" => settings); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_job_template( name, settings, @@ -245,15 +238,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. """ -function create_preset(name, settings; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( +create_preset(name, settings; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconvert( "POST", "/2017-08-29/presets", Dict{String,Any}("name" => name, "settings" => settings); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_preset( name, settings, @@ -299,15 +291,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. """ -function create_queue(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "POST", - "/2017-08-29/queues", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_queue(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "POST", + "/2017-08-29/queues", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_queue( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -330,14 +320,13 @@ Permanently delete a job template you have created. - `name`: The name of the job template to be deleted. """ -function delete_job_template(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( +delete_job_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconvert( "DELETE", "/2017-08-29/jobTemplates/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_job_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -357,14 +346,12 @@ end Permanently delete a policy that you created. """ -function delete_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "DELETE", - "/2017-08-29/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "DELETE", + "/2017-08-29/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -387,14 +374,12 @@ Permanently delete a preset you have created. - `name`: The name of the preset to be deleted. """ -function delete_preset(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "DELETE", - "/2017-08-29/presets/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_preset(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "DELETE", + "/2017-08-29/presets/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_preset( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -417,14 +402,12 @@ Permanently delete a queue you have created. - `name`: The name of the queue that you want to delete. """ -function delete_queue(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "DELETE", - "/2017-08-29/queues/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_queue(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "DELETE", + "/2017-08-29/queues/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_queue( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -456,14 +439,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Use this string, provided with the response to a previous request, to request the next batch of endpoints. """ -function describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "POST", - "/2017-08-29/endpoints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "POST", + "/2017-08-29/endpoints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -488,14 +469,13 @@ Removes an association between the Amazon Resource Name (ARN) of an AWS Certific MediaConvert resource. """ -function disassociate_certificate(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( +disassociate_certificate(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconvert( "DELETE", "/2017-08-29/certificates/$(arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_certificate( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -518,14 +498,12 @@ Retrieve the JSON for a specific transcoding job. - `id`: the job ID of the job. """ -function get_job(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", - "/2017-08-29/jobs/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", + "/2017-08-29/jobs/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -548,14 +526,12 @@ Retrieve the JSON for a specific job template. - `name`: The name of the job template. """ -function get_job_template(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", - "/2017-08-29/jobTemplates/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", + "/2017-08-29/jobTemplates/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -575,11 +551,9 @@ end Retrieve the JSON for your policy. """ -function get_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", "/2017-08-29/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", "/2017-08-29/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -602,14 +576,12 @@ Retrieve the JSON for a specific preset. - `name`: The name of the preset. """ -function get_preset(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", - "/2017-08-29/presets/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_preset(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", + "/2017-08-29/presets/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_preset( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -632,14 +604,12 @@ Retrieve the JSON for a specific queue. - `name`: The name of the queue that you want information about. """ -function get_queue(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", - "/2017-08-29/queues/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_queue(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", + "/2017-08-29/queues/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_queue( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -674,14 +644,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"order"`: Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource. """ -function list_job_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", - "/2017-08-29/jobTemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_job_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", + "/2017-08-29/jobTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_job_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -714,11 +682,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR. """ -function list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", "/2017-08-29/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", "/2017-08-29/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -753,11 +719,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"order"`: Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource. """ -function list_presets(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", "/2017-08-29/presets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_presets(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", "/2017-08-29/presets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_presets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -790,11 +754,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"order"`: Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource. """ -function list_queues(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", "/2017-08-29/queues"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_queues(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", "/2017-08-29/queues"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_queues( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -818,14 +780,13 @@ Retrieve the tags for a MediaConvert resource. get the ARN, send a GET request with the resource name. """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconvert( "GET", "/2017-08-29/tags/$(arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -851,15 +812,13 @@ http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html """ -function put_policy(policy; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "PUT", - "/2017-08-29/policy", - Dict{String,Any}("policy" => policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_policy(policy; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "PUT", + "/2017-08-29/policy", + Dict{String,Any}("policy" => policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_policy( policy, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -894,11 +853,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR. """ -function search_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "GET", "/2017-08-29/search"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +search_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "GET", "/2017-08-29/search"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function search_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -926,15 +883,13 @@ https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html key-value pair or with only a key. """ -function tag_resource(arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "POST", - "/2017-08-29/tags", - Dict{String,Any}("arn" => arn, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "POST", + "/2017-08-29/tags", + Dict{String,Any}("arn" => arn, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( arn, tags, @@ -968,14 +923,12 @@ https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tagKeys"`: The keys of the tags that you want to remove from the resource. """ -function untag_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "PUT", - "/2017-08-29/tags/$(arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "PUT", + "/2017-08-29/tags/$(arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1017,14 +970,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error. """ -function update_job_template(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( +update_job_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = + mediaconvert( "PUT", "/2017-08-29/jobTemplates/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_job_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1052,14 +1004,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The new description for the preset, if you are changing it. - `"settings"`: Settings for preset """ -function update_preset(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "PUT", - "/2017-08-29/presets/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_preset(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "PUT", + "/2017-08-29/presets/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_preset( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1093,14 +1043,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error. """ -function update_queue(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mediaconvert( - "PUT", - "/2017-08-29/queues/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_queue(name; aws_config::AbstractAWSConfig=current_aws_config()) = mediaconvert( + "PUT", + "/2017-08-29/queues/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_queue( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/medialive.jl b/src/services/medialive.jl index 2110d3518..bcae895f3 100644 --- a/src/services/medialive.jl +++ b/src/services/medialive.jl @@ -16,16 +16,14 @@ AWS account. hd-123456789abcdef. """ -function accept_input_device_transfer( +accept_input_device_transfer( inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "POST", + "/prod/inputDevices/$(inputDeviceId)/accept"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/inputDevices/$(inputDeviceId)/accept"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_input_device_transfer( inputDeviceId, params::AbstractDict{String}; @@ -53,11 +51,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"inputSecurityGroupIds"`: List of input security group IDs - `"multiplexIds"`: List of multiplex IDs """ -function batch_delete(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", "/prod/batch/delete"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +batch_delete(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", "/prod/batch/delete"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function batch_delete( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -81,11 +77,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"channelIds"`: List of channel IDs - `"multiplexIds"`: List of multiplex IDs """ -function batch_start(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", "/prod/batch/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +batch_start(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", "/prod/batch/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function batch_start( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -109,11 +103,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"channelIds"`: List of channel IDs - `"multiplexIds"`: List of multiplex IDs """ -function batch_stop(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", "/prod/batch/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +batch_stop(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", "/prod/batch/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function batch_stop( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -140,16 +132,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"creates"`: Schedule actions to create in the schedule. - `"deletes"`: Schedule actions to delete from the schedule. """ -function batch_update_schedule( - channelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +batch_update_schedule(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "PUT", "/prod/channels/$(channelId)/schedule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_update_schedule( channelId, params::AbstractDict{String}; @@ -175,16 +164,14 @@ Cancel an input device transfer that you have requested. hd-123456789abcdef. """ -function cancel_input_device_transfer( +cancel_input_device_transfer( inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "POST", + "/prod/inputDevices/$(inputDeviceId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/inputDevices/$(inputDeviceId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_input_device_transfer( inputDeviceId, params::AbstractDict{String}; @@ -210,11 +197,9 @@ vendor. After the request succeeds, you will own the device. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"id"`: The id of the device you want to claim. """ -function claim_device(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", "/prod/claimDevice"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +claim_device(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", "/prod/claimDevice"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function claim_device( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -254,15 +239,13 @@ creating multiple resources. - `"tags"`: A collection of key-value pairs. - `"vpc"`: Settings for the VPC outputs """ -function create_channel(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", - "/prod/channels", - Dict{String,Any}("requestId" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_channel(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", + "/prod/channels", + Dict{String,Any}("requestId" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_channel( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -307,7 +290,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A resource's optional description. - `"tags"`: """ -function create_cloud_watch_alarm_template( +create_cloud_watch_alarm_template( comparisonOperator, evaluationPeriods, groupIdentifier, @@ -319,26 +302,24 @@ function create_cloud_watch_alarm_template( threshold, treatMissingData; aws_config::AbstractAWSConfig=current_aws_config(), +) = medialive( + "POST", + "/prod/cloudwatch-alarm-templates", + Dict{String,Any}( + "comparisonOperator" => comparisonOperator, + "evaluationPeriods" => evaluationPeriods, + "groupIdentifier" => groupIdentifier, + "metricName" => metricName, + "name" => name, + "period" => period, + "statistic" => statistic, + "targetResourceType" => targetResourceType, + "threshold" => threshold, + "treatMissingData" => treatMissingData, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/cloudwatch-alarm-templates", - Dict{String,Any}( - "comparisonOperator" => comparisonOperator, - "evaluationPeriods" => evaluationPeriods, - "groupIdentifier" => groupIdentifier, - "metricName" => metricName, - "name" => name, - "period" => period, - "statistic" => statistic, - "targetResourceType" => targetResourceType, - "threshold" => threshold, - "treatMissingData" => treatMissingData, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cloud_watch_alarm_template( comparisonOperator, evaluationPeriods, @@ -395,17 +376,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A resource's optional description. - `"tags"`: """ -function create_cloud_watch_alarm_template_group( +create_cloud_watch_alarm_template_group( name; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "POST", + "/prod/cloudwatch-alarm-template-groups", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/cloudwatch-alarm-template-groups", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cloud_watch_alarm_template_group( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -438,19 +417,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"eventTargets"`: - `"tags"`: """ -function create_event_bridge_rule_template( +create_event_bridge_rule_template( eventType, groupIdentifier, name; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "POST", + "/prod/eventbridge-rule-templates", + Dict{String,Any}( + "eventType" => eventType, "groupIdentifier" => groupIdentifier, "name" => name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/eventbridge-rule-templates", - Dict{String,Any}( - "eventType" => eventType, "groupIdentifier" => groupIdentifier, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_bridge_rule_template( eventType, groupIdentifier, @@ -493,17 +470,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A resource's optional description. - `"tags"`: """ -function create_event_bridge_rule_template_group( +create_event_bridge_rule_template_group( name; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "POST", + "/prod/eventbridge-rule-template-groups", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/eventbridge-rule-template-groups", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_bridge_rule_template_group( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -545,19 +520,18 @@ exactly two source URLs for redundancy. Only specify sources for PULL type Inputs. Leave Destinations empty. +- `"srtSettings"`: The settings associated with an SRT input. - `"tags"`: A collection of key-value pairs. - `"type"`: - `"vpc"`: """ -function create_input(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", - "/prod/inputs", - Dict{String,Any}("requestId" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_input(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", + "/prod/inputs", + Dict{String,Any}("requestId" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_input( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -583,14 +557,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of key-value pairs. - `"whitelistRules"`: List of IPv4 CIDR addresses to whitelist """ -function create_input_security_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +create_input_security_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/inputSecurityGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_input_security_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -621,26 +594,24 @@ resources. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A collection of key-value pairs. """ -function create_multiplex( +create_multiplex( availabilityZones, multiplexSettings, name, requestId; aws_config::AbstractAWSConfig=current_aws_config(), +) = medialive( + "POST", + "/prod/multiplexes", + Dict{String,Any}( + "availabilityZones" => availabilityZones, + "multiplexSettings" => multiplexSettings, + "name" => name, + "requestId" => requestId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/multiplexes", - Dict{String,Any}( - "availabilityZones" => availabilityZones, - "multiplexSettings" => multiplexSettings, - "name" => name, - "requestId" => requestId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_multiplex( availabilityZones, multiplexSettings, @@ -683,25 +654,23 @@ Create a new program in the multiplex. resources. """ -function create_multiplex_program( +create_multiplex_program( multiplexId, multiplexProgramSettings, programName, requestId; aws_config::AbstractAWSConfig=current_aws_config(), +) = medialive( + "POST", + "/prod/multiplexes/$(multiplexId)/programs", + Dict{String,Any}( + "multiplexProgramSettings" => multiplexProgramSettings, + "programName" => programName, + "requestId" => requestId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/multiplexes/$(multiplexId)/programs", - Dict{String,Any}( - "multiplexProgramSettings" => multiplexProgramSettings, - "programName" => programName, - "requestId" => requestId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_multiplex_program( multiplexId, multiplexProgramSettings, @@ -745,15 +714,14 @@ exactly once in case of retries. - `"tags"`: A collection of key-value pairs. """ -function create_partner_input(inputId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +create_partner_input(inputId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/inputs/$(inputId)/partners", Dict{String,Any}("requestId" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_partner_input( inputId, params::AbstractDict{String}; @@ -790,19 +758,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"eventBridgeRuleTemplateGroupIdentifiers"`: - `"tags"`: """ -function create_signal_map( +create_signal_map( discoveryEntryPointArn, name; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "POST", + "/prod/signal-maps", + Dict{String,Any}("discoveryEntryPointArn" => discoveryEntryPointArn, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/signal-maps", - Dict{String,Any}( - "discoveryEntryPointArn" => discoveryEntryPointArn, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_signal_map( discoveryEntryPointArn, name, @@ -839,14 +803,12 @@ Create tags for a resource Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: """ -function create_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", - "/prod/tags/$(resource-arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", + "/prod/tags/$(resource-arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_tags( resource_arn, params::AbstractDict{String}; @@ -871,14 +833,12 @@ Starts deletion of channel. The associated outputs are also deleted. - `channel_id`: Unique ID of the channel. """ -function delete_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "DELETE", - "/prod/channels/$(channelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "DELETE", + "/prod/channels/$(channelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_channel( channelId, params::AbstractDict{String}; @@ -904,16 +864,14 @@ Deletes a cloudwatch alarm template. current name. """ -function delete_cloud_watch_alarm_template( +delete_cloud_watch_alarm_template( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "DELETE", + "/prod/cloudwatch-alarm-templates/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "DELETE", - "/prod/cloudwatch-alarm-templates/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cloud_watch_alarm_template( identifier, params::AbstractDict{String}; @@ -940,16 +898,14 @@ and ensure its existing templates are moved to another group or deleted. current name. """ -function delete_cloud_watch_alarm_template_group( +delete_cloud_watch_alarm_template_group( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "DELETE", + "/prod/cloudwatch-alarm-template-groups/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "DELETE", - "/prod/cloudwatch-alarm-template-groups/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cloud_watch_alarm_template_group( identifier, params::AbstractDict{String}; @@ -975,16 +931,14 @@ Deletes an eventbridge rule template. current name. """ -function delete_event_bridge_rule_template( +delete_event_bridge_rule_template( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "DELETE", + "/prod/eventbridge-rule-templates/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "DELETE", - "/prod/eventbridge-rule-templates/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_bridge_rule_template( identifier, params::AbstractDict{String}; @@ -1011,16 +965,14 @@ and ensure its existing templates are moved to another group or deleted. current name. """ -function delete_event_bridge_rule_template_group( +delete_event_bridge_rule_template_group( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "DELETE", + "/prod/eventbridge-rule-template-groups/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "DELETE", - "/prod/eventbridge-rule-template-groups/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_bridge_rule_template_group( identifier, params::AbstractDict{String}; @@ -1045,14 +997,12 @@ Deletes the input end point - `input_id`: Unique ID of the input """ -function delete_input(inputId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "DELETE", - "/prod/inputs/$(inputId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_input(inputId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "DELETE", + "/prod/inputs/$(inputId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_input( inputId, params::AbstractDict{String}; @@ -1077,16 +1027,14 @@ Deletes an Input Security Group - `input_security_group_id`: The Input Security Group to delete """ -function delete_input_security_group( +delete_input_security_group( inputSecurityGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "DELETE", + "/prod/inputSecurityGroups/$(inputSecurityGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "DELETE", - "/prod/inputSecurityGroups/$(inputSecurityGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_input_security_group( inputSecurityGroupId, params::AbstractDict{String}; @@ -1111,14 +1059,13 @@ Delete a multiplex. The multiplex must be idle. - `multiplex_id`: The ID of the multiplex. """ -function delete_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +delete_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "DELETE", "/prod/multiplexes/$(multiplexId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_multiplex( multiplexId, params::AbstractDict{String}; @@ -1144,16 +1091,14 @@ Delete a program from a multiplex. - `program_name`: The multiplex program name. """ -function delete_multiplex_program( +delete_multiplex_program( multiplexId, programName; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "DELETE", + "/prod/multiplexes/$(multiplexId)/programs/$(programName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "DELETE", - "/prod/multiplexes/$(multiplexId)/programs/$(programName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_multiplex_program( multiplexId, programName, @@ -1179,16 +1124,13 @@ Delete an expired reservation. - `reservation_id`: Unique reservation ID, e.g. '1234567' """ -function delete_reservation( - reservationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +delete_reservation(reservationId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "DELETE", "/prod/reservations/$(reservationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_reservation( reservationId, params::AbstractDict{String}; @@ -1213,14 +1155,12 @@ Delete all schedule actions on a channel. - `channel_id`: Id of the channel whose schedule is being deleted. """ -function delete_schedule(channelId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "DELETE", - "/prod/channels/$(channelId)/schedule"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_schedule(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "DELETE", + "/prod/channels/$(channelId)/schedule"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_schedule( channelId, params::AbstractDict{String}; @@ -1245,14 +1185,13 @@ Deletes the specified signal map. - `identifier`: A signal map's identifier. Can be either be its id or current name. """ -function delete_signal_map(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +delete_signal_map(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "DELETE", "/prod/signal-maps/$(identifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_signal_map( identifier, params::AbstractDict{String}; @@ -1278,17 +1217,14 @@ Removes tags for a resource - `tag_keys`: An array of tag keys to delete """ -function delete_tags( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +delete_tags(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "DELETE", "/prod/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tags( resource_arn, tagKeys, @@ -1311,16 +1247,13 @@ end Describe account configuration """ -function describe_account_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +describe_account_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/accountConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_account_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1343,14 +1276,12 @@ Gets details about a channel - `channel_id`: channel ID """ -function describe_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", - "/prod/channels/$(channelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", + "/prod/channels/$(channelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_channel( channelId, params::AbstractDict{String}; @@ -1375,14 +1306,12 @@ Produces details about an input - `input_id`: Unique ID of the input """ -function describe_input(inputId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", - "/prod/inputs/$(inputId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_input(inputId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", + "/prod/inputs/$(inputId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_input( inputId, params::AbstractDict{String}; @@ -1407,16 +1336,13 @@ Gets the details for the input device - `input_device_id`: The unique ID of this input device. For example, hd-123456789abcdef. """ -function describe_input_device( - inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +describe_input_device(inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/inputDevices/$(inputDeviceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_input_device( inputDeviceId, params::AbstractDict{String}; @@ -1442,17 +1368,15 @@ Get the latest thumbnail data for the input device. - `input_device_id`: The unique ID of this input device. For example, hd-123456789abcdef. """ -function describe_input_device_thumbnail( +describe_input_device_thumbnail( accept, inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/inputDevices/$(inputDeviceId)/thumbnailData", + Dict{String,Any}("headers" => Dict{String,Any}("accept" => accept)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/inputDevices/$(inputDeviceId)/thumbnailData", - Dict{String,Any}("headers" => Dict{String,Any}("accept" => accept)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_input_device_thumbnail( accept, inputDeviceId, @@ -1484,16 +1408,14 @@ Produces a summary of an Input Security Group - `input_security_group_id`: The id of the Input Security Group to describe """ -function describe_input_security_group( +describe_input_security_group( inputSecurityGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/inputSecurityGroups/$(inputSecurityGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/inputSecurityGroups/$(inputSecurityGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_input_security_group( inputSecurityGroupId, params::AbstractDict{String}; @@ -1518,14 +1440,13 @@ Gets details about a multiplex. - `multiplex_id`: The ID of the multiplex. """ -function describe_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +describe_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/multiplexes/$(multiplexId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_multiplex( multiplexId, params::AbstractDict{String}; @@ -1551,16 +1472,14 @@ Get the details for a program in a multiplex. - `program_name`: The name of the program. """ -function describe_multiplex_program( +describe_multiplex_program( multiplexId, programName; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/multiplexes/$(multiplexId)/programs/$(programName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/multiplexes/$(multiplexId)/programs/$(programName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_multiplex_program( multiplexId, programName, @@ -1586,14 +1505,13 @@ Get details for an offering. - `offering_id`: Unique offering ID, e.g. '87654321' """ -function describe_offering(offeringId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +describe_offering(offeringId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/offerings/$(offeringId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_offering( offeringId, params::AbstractDict{String}; @@ -1618,16 +1536,13 @@ Get details for a reservation. - `reservation_id`: Unique reservation ID, e.g. '1234567' """ -function describe_reservation( - reservationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +describe_reservation(reservationId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/reservations/$(reservationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_reservation( reservationId, params::AbstractDict{String}; @@ -1656,14 +1571,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: - `"nextToken"`: """ -function describe_schedule(channelId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +describe_schedule(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/channels/$(channelId)/schedule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_schedule( channelId, params::AbstractDict{String}; @@ -1690,17 +1604,15 @@ Describe the latest thumbnails data. - `thumbnail_type`: thumbnail type """ -function describe_thumbnails( +describe_thumbnails( channelId, pipelineId, thumbnailType; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/channels/$(channelId)/thumbnails", + Dict{String,Any}("pipelineId" => pipelineId, "thumbnailType" => thumbnailType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/channels/$(channelId)/thumbnails", - Dict{String,Any}("pipelineId" => pipelineId, "thumbnailType" => thumbnailType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_thumbnails( channelId, pipelineId, @@ -1736,16 +1648,14 @@ Retrieves the specified cloudwatch alarm template. current name. """ -function get_cloud_watch_alarm_template( - identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( - "GET", - "/prod/cloudwatch-alarm-templates/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_cloud_watch_alarm_template( + identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/cloudwatch-alarm-templates/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_cloud_watch_alarm_template( identifier, params::AbstractDict{String}; @@ -1771,16 +1681,14 @@ Retrieves the specified cloudwatch alarm template group. current name. """ -function get_cloud_watch_alarm_template_group( +get_cloud_watch_alarm_template_group( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/cloudwatch-alarm-template-groups/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/cloudwatch-alarm-template-groups/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cloud_watch_alarm_template_group( identifier, params::AbstractDict{String}; @@ -1806,16 +1714,14 @@ Retrieves the specified eventbridge rule template. current name. """ -function get_event_bridge_rule_template( +get_event_bridge_rule_template( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/eventbridge-rule-templates/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/eventbridge-rule-templates/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_event_bridge_rule_template( identifier, params::AbstractDict{String}; @@ -1841,16 +1747,14 @@ Retrieves the specified eventbridge rule template group. current name. """ -function get_event_bridge_rule_template_group( +get_event_bridge_rule_template_group( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/eventbridge-rule-template-groups/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/eventbridge-rule-template-groups/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_event_bridge_rule_template_group( identifier, params::AbstractDict{String}; @@ -1875,14 +1779,12 @@ Retrieves the specified signal map. - `identifier`: A signal map's identifier. Can be either be its id or current name. """ -function get_signal_map(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", - "/prod/signal-maps/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_signal_map(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", + "/prod/signal-maps/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_signal_map( identifier, params::AbstractDict{String}; @@ -1908,11 +1810,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: - `"nextToken"`: """ -function list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", "/prod/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", "/prod/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1941,16 +1841,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"signalMapIdentifier"`: A signal map's identifier. Can be either be its id or current name. """ -function list_cloud_watch_alarm_template_groups(; +list_cloud_watch_alarm_template_groups(; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/cloudwatch-alarm-template-groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/cloudwatch-alarm-template-groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_cloud_watch_alarm_template_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1981,16 +1879,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"signalMapIdentifier"`: A signal map's identifier. Can be either be its id or current name. """ -function list_cloud_watch_alarm_templates(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +list_cloud_watch_alarm_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/cloudwatch-alarm-templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cloud_watch_alarm_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2017,16 +1912,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"signalMapIdentifier"`: A signal map's identifier. Can be either be its id or current name. """ -function list_event_bridge_rule_template_groups(; +list_event_bridge_rule_template_groups(; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/eventbridge-rule-template-groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/eventbridge-rule-template-groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_event_bridge_rule_template_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2055,16 +1948,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"signalMapIdentifier"`: A signal map's identifier. Can be either be its id or current name. """ -function list_event_bridge_rule_templates(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +list_event_bridge_rule_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/eventbridge-rule-templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_event_bridge_rule_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2093,17 +1983,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: - `"nextToken"`: """ -function list_input_device_transfers( +list_input_device_transfers( transferType; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "GET", + "/prod/inputDeviceTransfers", + Dict{String,Any}("transferType" => transferType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "GET", - "/prod/inputDeviceTransfers", - Dict{String,Any}("transferType" => transferType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_input_device_transfers( transferType, params::AbstractDict{String}; @@ -2131,11 +2019,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: - `"nextToken"`: """ -function list_input_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", "/prod/inputDevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_input_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", "/prod/inputDevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_input_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2159,14 +2045,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: - `"nextToken"`: """ -function list_input_security_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +list_input_security_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/inputSecurityGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_input_security_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2190,11 +2075,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: - `"nextToken"`: """ -function list_inputs(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", "/prod/inputs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_inputs(; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive("GET", "/prod/inputs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_inputs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2221,16 +2103,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of items to return. - `"nextToken"`: The token to retrieve the next page of results. """ -function list_multiplex_programs( - multiplexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +list_multiplex_programs(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/multiplexes/$(multiplexId)/programs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_multiplex_programs( multiplexId, params::AbstractDict{String}; @@ -2256,11 +2135,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of items to return. - `"nextToken"`: The token to retrieve the next page of results. """ -function list_multiplexes(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", "/prod/multiplexes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_multiplexes(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", "/prod/multiplexes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_multiplexes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2295,11 +2172,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"specialFeature"`: Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION' - `"videoQuality"`: Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM' """ -function list_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", "/prod/offerings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", "/prod/offerings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2331,11 +2206,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"specialFeature"`: Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION' - `"videoQuality"`: Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM' """ -function list_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", "/prod/reservations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_reservations(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", "/prod/reservations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_reservations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2364,11 +2237,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used to retrieve the next set of results in paginated list responses. """ -function list_signal_maps(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "GET", "/prod/signal-maps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_signal_maps(; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "GET", "/prod/signal-maps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_signal_maps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2391,16 +2262,13 @@ Produces list of tags that have been created for a resource - `resource-arn`: """ -function list_tags_for_resource( - resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +list_tags_for_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "GET", "/prod/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resource_arn, params::AbstractDict{String}; @@ -2436,17 +2304,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys given, the default is now. - `"tags"`: A collection of key-value pairs """ -function purchase_offering( - count, offeringId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +purchase_offering(count, offeringId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/offerings/$(offeringId)/purchase", Dict{String,Any}("count" => count, "requestId" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function purchase_offering( count, offeringId, @@ -2487,16 +2352,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys was streaming prior to the reboot, the device will resume streaming when the reboot completes. """ -function reboot_input_device( - inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +reboot_input_device(inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/inputDevices/$(inputDeviceId)/reboot"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reboot_input_device( inputDeviceId, params::AbstractDict{String}; @@ -2522,16 +2384,14 @@ Reject the transfer of the specified input device to your AWS account. hd-123456789abcdef. """ -function reject_input_device_transfer( +reject_input_device_transfer( inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "POST", + "/prod/inputDevices/$(inputDeviceId)/reject"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/inputDevices/$(inputDeviceId)/reject"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_input_device_transfer( inputDeviceId, params::AbstractDict{String}; @@ -2560,16 +2420,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pipelineIds"`: An array of pipelines to restart in this channel. Format PIPELINE_0 or PIPELINE_1. """ -function restart_channel_pipelines( - channelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +restart_channel_pipelines(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/channels/$(channelId)/restartChannelPipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restart_channel_pipelines( channelId, params::AbstractDict{String}; @@ -2594,14 +2451,12 @@ Starts an existing channel - `channel_id`: A request to start a channel """ -function start_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", - "/prod/channels/$(channelId)/start"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", + "/prod/channels/$(channelId)/start"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_channel( channelId, params::AbstractDict{String}; @@ -2626,16 +2481,14 @@ Initiates a deployment to delete the monitor of the specified signal map. - `identifier`: A signal map's identifier. Can be either be its id or current name. """ -function start_delete_monitor_deployment( +start_delete_monitor_deployment( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "DELETE", + "/prod/signal-maps/$(identifier)/monitor-deployment"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "DELETE", - "/prod/signal-maps/$(identifier)/monitor-deployment"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_delete_monitor_deployment( identifier, params::AbstractDict{String}; @@ -2663,16 +2516,13 @@ starts.) hd-123456789abcdef. """ -function start_input_device( - inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +start_input_device(inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/inputDevices/$(inputDeviceId)/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_input_device( inputDeviceId, params::AbstractDict{String}; @@ -2704,16 +2554,14 @@ the internet for the duration of the maintenance. For example, hd-123456789abcdef. """ -function start_input_device_maintenance_window( +start_input_device_maintenance_window( inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "POST", + "/prod/inputDevices/$(inputDeviceId)/startInputDeviceMaintenanceWindow"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "POST", - "/prod/inputDevices/$(inputDeviceId)/startInputDeviceMaintenanceWindow"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_input_device_maintenance_window( inputDeviceId, params::AbstractDict{String}; @@ -2741,16 +2589,13 @@ Initiates a deployment to deploy the latest monitor of the specified signal map. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"dryRun"`: """ -function start_monitor_deployment( - identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +start_monitor_deployment(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/signal-maps/$(identifier)/monitor-deployment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_monitor_deployment( identifier, params::AbstractDict{String}; @@ -2776,14 +2621,13 @@ explicitly start each channel. - `multiplex_id`: The ID of the multiplex. """ -function start_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +start_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/multiplexes/$(multiplexId)/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_multiplex( multiplexId, params::AbstractDict{String}; @@ -2820,16 +2664,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: A resource's name. Names must be unique within the scope of a resource type in a specific region. """ -function start_update_signal_map( - identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +start_update_signal_map(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "PATCH", "/prod/signal-maps/$(identifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_update_signal_map( identifier, params::AbstractDict{String}; @@ -2854,14 +2695,12 @@ Stops a running channel - `channel_id`: A request to stop a running channel """ -function stop_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", - "/prod/channels/$(channelId)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", + "/prod/channels/$(channelId)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_channel( channelId, params::AbstractDict{String}; @@ -2889,16 +2728,13 @@ the channel stops.) hd-123456789abcdef. """ -function stop_input_device( - inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +stop_input_device(inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/inputDevices/$(inputDeviceId)/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_input_device( inputDeviceId, params::AbstractDict{String}; @@ -2923,14 +2759,12 @@ Stops a running multiplex. If the multiplex isn't running, this action has no ef - `multiplex_id`: The ID of the multiplex. """ -function stop_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "POST", - "/prod/multiplexes/$(multiplexId)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "POST", + "/prod/multiplexes/$(multiplexId)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_multiplex( multiplexId, params::AbstractDict{String}; @@ -2962,16 +2796,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"targetRegion"`: The target AWS region to transfer the device. - `"transferMessage"`: An optional message for the recipient. Maximum 280 characters. """ -function transfer_input_device( - inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +transfer_input_device(inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "POST", "/prod/inputDevices/$(inputDeviceId)/transfer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function transfer_input_device( inputDeviceId, params::AbstractDict{String}; @@ -2996,14 +2827,13 @@ Update account configuration Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountConfiguration"`: """ -function update_account_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +update_account_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "PUT", "/prod/accountConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_account_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3039,14 +2869,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Channel. If you do not specify this on an update call but the role was previously set that role will be removed. """ -function update_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "PUT", - "/prod/channels/$(channelId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_channel(channelId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "PUT", + "/prod/channels/$(channelId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_channel( channelId, params::AbstractDict{String}; @@ -3075,17 +2903,15 @@ Changes the class of the channel. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"destinations"`: A list of output destinations for this channel. """ -function update_channel_class( +update_channel_class( channelClass, channelId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "PUT", + "/prod/channels/$(channelId)/channelClass", + Dict{String,Any}("channelClass" => channelClass); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "PUT", - "/prod/channels/$(channelId)/channelClass", - Dict{String,Any}("channelClass" => channelClass); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_channel_class( channelClass, channelId, @@ -3133,16 +2959,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"threshold"`: The threshold value to compare with the specified statistic. - `"treatMissingData"`: """ -function update_cloud_watch_alarm_template( +update_cloud_watch_alarm_template( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "PATCH", + "/prod/cloudwatch-alarm-templates/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "PATCH", - "/prod/cloudwatch-alarm-templates/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cloud_watch_alarm_template( identifier, params::AbstractDict{String}; @@ -3171,16 +2995,14 @@ Updates the specified cloudwatch alarm template group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A resource's optional description. """ -function update_cloud_watch_alarm_template_group( +update_cloud_watch_alarm_template_group( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "PATCH", + "/prod/cloudwatch-alarm-template-groups/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "PATCH", - "/prod/cloudwatch-alarm-template-groups/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cloud_watch_alarm_template_group( identifier, params::AbstractDict{String}; @@ -3215,16 +3037,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: A resource's name. Names must be unique within the scope of a resource type in a specific region. """ -function update_event_bridge_rule_template( +update_event_bridge_rule_template( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "PATCH", + "/prod/eventbridge-rule-templates/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "PATCH", - "/prod/eventbridge-rule-templates/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_event_bridge_rule_template( identifier, params::AbstractDict{String}; @@ -3253,16 +3073,14 @@ Updates the specified eventbridge rule template group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A resource's optional description. """ -function update_event_bridge_rule_template_group( +update_event_bridge_rule_template_group( identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "PATCH", + "/prod/eventbridge-rule-template-groups/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "PATCH", - "/prod/eventbridge-rule-template-groups/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_event_bridge_rule_template_group( identifier, params::AbstractDict{String}; @@ -3306,15 +3124,14 @@ exactly two source URLs for redundancy. Only specify sources for PULL type Inputs. Leave Destinations empty. +- `"srtSettings"`: The settings associated with an SRT input. """ -function update_input(inputId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( - "PUT", - "/prod/inputs/$(inputId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_input(inputId; aws_config::AbstractAWSConfig=current_aws_config()) = medialive( + "PUT", + "/prod/inputs/$(inputId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_input( inputId, params::AbstractDict{String}; @@ -3345,16 +3162,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name that you assigned to this input device (not the unique ID). - `"uhdDeviceSettings"`: The settings that you want to apply to the UHD input device. """ -function update_input_device( - inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +update_input_device(inputDeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "PUT", "/prod/inputDevices/$(inputDeviceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_input_device( inputDeviceId, params::AbstractDict{String}; @@ -3383,16 +3197,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of key-value pairs. - `"whitelistRules"`: List of IPv4 CIDR addresses to whitelist """ -function update_input_security_group( +update_input_security_group( inputSecurityGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "PUT", + "/prod/inputSecurityGroups/$(inputSecurityGroupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "PUT", - "/prod/inputSecurityGroups/$(inputSecurityGroupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_input_security_group( inputSecurityGroupId, params::AbstractDict{String}; @@ -3420,15 +3232,15 @@ Updates a multiplex. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"multiplexSettings"`: The new settings for a multiplex. - `"name"`: Name of the multiplex. +- `"packetIdentifiersMapping"`: """ -function update_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) - return medialive( +update_multiplex(multiplexId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "PUT", "/prod/multiplexes/$(multiplexId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_multiplex( multiplexId, params::AbstractDict{String}; @@ -3457,16 +3269,14 @@ Update a program in a multiplex. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"multiplexProgramSettings"`: The new settings for a multiplex program. """ -function update_multiplex_program( +update_multiplex_program( multiplexId, programName; aws_config::AbstractAWSConfig=current_aws_config() +) = medialive( + "PUT", + "/prod/multiplexes/$(multiplexId)/programs/$(programName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medialive( - "PUT", - "/prod/multiplexes/$(multiplexId)/programs/$(programName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_multiplex_program( multiplexId, programName, @@ -3496,16 +3306,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: Name of the reservation - `"renewalSettings"`: Renewal settings for the reservation """ -function update_reservation( - reservationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medialive( +update_reservation(reservationId; aws_config::AbstractAWSConfig=current_aws_config()) = + medialive( "PUT", "/prod/reservations/$(reservationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_reservation( reservationId, params::AbstractDict{String}; diff --git a/src/services/mediapackage.jl b/src/services/mediapackage.jl index 82bd082b4..7c1a8e6ed 100644 --- a/src/services/mediapackage.jl +++ b/src/services/mediapackage.jl @@ -18,14 +18,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"egressAccessLogs"`: - `"ingressAccessLogs"`: """ -function configure_logs(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "PUT", - "/channels/$(id)/configure_logs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +configure_logs(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage( + "PUT", + "/channels/$(id)/configure_logs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function configure_logs( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -54,15 +52,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A short text description of the Channel. - `"tags"`: """ -function create_channel(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "POST", - "/channels", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_channel(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage( + "POST", + "/channels", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_channel( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -93,28 +89,26 @@ This cannot be changed after the HarvestJob is submitted. - `start_time`: The start of the time-window which will be harvested """ -function create_harvest_job( +create_harvest_job( endTime, id, originEndpointId, s3Destination, startTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackage( + "POST", + "/harvest_jobs", + Dict{String,Any}( + "endTime" => endTime, + "id" => id, + "originEndpointId" => originEndpointId, + "s3Destination" => s3Destination, + "startTime" => startTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackage( - "POST", - "/harvest_jobs", - Dict{String,Any}( - "endTime" => endTime, - "id" => id, - "originEndpointId" => originEndpointId, - "s3Destination" => s3Destination, - "startTime" => startTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_harvest_job( endTime, id, @@ -185,17 +179,14 @@ If not specified, there will be no time delay in effect for the OriginEndpoint. - `"whitelist"`: A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint. """ -function create_origin_endpoint( - channelId, id; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage( +create_origin_endpoint(channelId, id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage( "POST", "/origin_endpoints", Dict{String,Any}("channelId" => channelId, "id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_origin_endpoint( channelId, id, @@ -225,11 +216,9 @@ Deletes an existing Channel. - `id`: The ID of the Channel to delete. """ -function delete_channel(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "DELETE", "/channels/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_channel(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage( + "DELETE", "/channels/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_channel( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -252,14 +241,13 @@ Deletes an existing OriginEndpoint. - `id`: The ID of the OriginEndpoint to delete. """ -function delete_origin_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( +delete_origin_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage( "DELETE", "/origin_endpoints/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_origin_endpoint( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -282,11 +270,9 @@ Gets details about a Channel. - `id`: The ID of a Channel. """ -function describe_channel(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "GET", "/channels/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_channel(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage( + "GET", "/channels/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_channel( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -309,11 +295,9 @@ Gets details about an existing HarvestJob. - `id`: The ID of the HarvestJob. """ -function describe_harvest_job(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "GET", "/harvest_jobs/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_harvest_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage( + "GET", "/harvest_jobs/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_harvest_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -336,14 +320,13 @@ Gets details about an existing OriginEndpoint. - `id`: The ID of the OriginEndpoint. """ -function describe_origin_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( +describe_origin_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage( "GET", "/origin_endpoints/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_origin_endpoint( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -367,11 +350,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Upper bound on number of records to return. - `"nextToken"`: A token used to resume pagination from the end of a previous request. """ -function list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "GET", "/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage("GET", "/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -395,11 +375,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The upper bound on the number of records to return. - `"nextToken"`: A token used to resume pagination from the end of a previous request. """ -function list_harvest_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "GET", "/harvest_jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_harvest_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage( + "GET", "/harvest_jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_harvest_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -425,11 +403,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The upper bound on the number of records to return. - `"nextToken"`: A token used to resume pagination from the end of a previous request. """ -function list_origin_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "GET", "/origin_endpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_origin_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage( + "GET", "/origin_endpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_origin_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -452,16 +428,13 @@ end - `resource-arn`: """ -function list_tags_for_resource( - resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage( +list_tags_for_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage( "GET", "/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resource_arn, params::AbstractDict{String}; @@ -487,14 +460,13 @@ deprecated. Please use RotateIngestEndpointCredentials instead - `id`: The ID of the channel to update. """ -function rotate_channel_credentials(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( +rotate_channel_credentials(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage( "PUT", "/channels/$(id)/credentials"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function rotate_channel_credentials( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -518,16 +490,14 @@ Rotate the IngestEndpoint's username and password, as specified by the IngestEnd - `ingest_endpoint_id`: The id of the IngestEndpoint whose credentials should be rotated """ -function rotate_ingest_endpoint_credentials( +rotate_ingest_endpoint_credentials( id, ingest_endpoint_id; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackage( + "PUT", + "/channels/$(id)/ingest_endpoints/$(ingest_endpoint_id)/credentials"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackage( - "PUT", - "/channels/$(id)/ingest_endpoints/$(ingest_endpoint_id)/credentials"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rotate_ingest_endpoint_credentials( id, ingest_endpoint_id, @@ -554,17 +524,14 @@ end - `tags`: """ -function tag_resource( - resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage( +tag_resource(resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage( "POST", "/tags/$(resource-arn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resource_arn, tags, @@ -591,17 +558,14 @@ end - `tag_keys`: The key(s) of tag to be deleted """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage( "DELETE", "/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -630,11 +594,9 @@ Updates an existing Channel. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A short text description of the Channel. """ -function update_channel(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( - "PUT", "/channels/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_channel(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage( + "PUT", "/channels/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_channel( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -681,14 +643,13 @@ If not specified, there will be no time delay in effect for the OriginEndpoint. - `"whitelist"`: A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint. """ -function update_origin_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage( +update_origin_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage( "PUT", "/origin_endpoints/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_origin_endpoint( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/mediapackage_vod.jl b/src/services/mediapackage_vod.jl index 762ff910f..36e656858 100644 --- a/src/services/mediapackage_vod.jl +++ b/src/services/mediapackage_vod.jl @@ -17,14 +17,12 @@ Changes the packaging group's properities to configure log subscription Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"egressAccessLogs"`: """ -function configure_logs(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( - "PUT", - "/packaging_groups/$(id)/configure_logs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +configure_logs(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage_vod( + "PUT", + "/packaging_groups/$(id)/configure_logs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function configure_logs( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -54,26 +52,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceId"`: The resource ID to include in SPEKE key requests. - `"tags"`: """ -function create_asset( +create_asset( id, packagingGroupId, sourceArn, sourceRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackage_vod( + "POST", + "/assets", + Dict{String,Any}( + "id" => id, + "packagingGroupId" => packagingGroupId, + "sourceArn" => sourceArn, + "sourceRoleArn" => sourceRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackage_vod( - "POST", - "/assets", - Dict{String,Any}( - "id" => id, - "packagingGroupId" => packagingGroupId, - "sourceArn" => sourceArn, - "sourceRoleArn" => sourceRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_asset( id, packagingGroupId, @@ -120,17 +116,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"mssPackage"`: - `"tags"`: """ -function create_packaging_configuration( +create_packaging_configuration( id, packagingGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackage_vod( + "POST", + "/packaging_configurations", + Dict{String,Any}("id" => id, "packagingGroupId" => packagingGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackage_vod( - "POST", - "/packaging_configurations", - Dict{String,Any}("id" => id, "packagingGroupId" => packagingGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_packaging_configuration( id, packagingGroupId, @@ -167,15 +161,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"egressAccessLogs"`: - `"tags"`: """ -function create_packaging_group(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( +create_packaging_group(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "POST", "/packaging_groups", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_packaging_group( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -198,11 +191,9 @@ Deletes an existing MediaPackage VOD Asset resource. - `id`: The ID of the MediaPackage VOD Asset resource to delete. """ -function delete_asset(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( - "DELETE", "/assets/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_asset(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage_vod( + "DELETE", "/assets/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_asset( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -225,16 +216,13 @@ Deletes a MediaPackage VOD PackagingConfiguration resource. - `id`: The ID of the MediaPackage VOD PackagingConfiguration resource to delete. """ -function delete_packaging_configuration( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage_vod( +delete_packaging_configuration(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "DELETE", "/packaging_configurations/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_packaging_configuration( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -257,14 +245,13 @@ Deletes a MediaPackage VOD PackagingGroup resource. - `id`: The ID of the MediaPackage VOD PackagingGroup resource to delete. """ -function delete_packaging_group(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( +delete_packaging_group(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "DELETE", "/packaging_groups/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_packaging_group( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -287,11 +274,9 @@ Returns a description of a MediaPackage VOD Asset resource. - `id`: The ID of an MediaPackage VOD Asset resource. """ -function describe_asset(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( - "GET", "/assets/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_asset(id; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage_vod( + "GET", "/assets/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_asset( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -314,16 +299,13 @@ Returns a description of a MediaPackage VOD PackagingConfiguration resource. - `id`: The ID of a MediaPackage VOD PackagingConfiguration resource. """ -function describe_packaging_configuration( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage_vod( +describe_packaging_configuration(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "GET", "/packaging_configurations/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_packaging_configuration( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -346,14 +328,13 @@ Returns a description of a MediaPackage VOD PackagingGroup resource. - `id`: The ID of a MediaPackage VOD PackagingGroup resource. """ -function describe_packaging_group(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( +describe_packaging_group(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "GET", "/packaging_groups/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_packaging_group( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -378,11 +359,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token used to resume pagination from the end of a previous request. - `"packagingGroupId"`: Returns Assets associated with the specified PackagingGroup. """ -function list_assets(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( - "GET", "/assets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_assets(; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackage_vod( + "GET", "/assets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_assets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -404,14 +383,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"packagingGroupId"`: Returns MediaPackage VOD PackagingConfigurations associated with the specified PackagingGroup. """ -function list_packaging_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( +list_packaging_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "GET", "/packaging_configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_packaging_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -435,11 +413,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Upper bound on number of records to return. - `"nextToken"`: A token used to resume pagination from the end of a previous request. """ -function list_packaging_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( +list_packaging_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "GET", "/packaging_groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_packaging_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -463,16 +440,13 @@ Returns a list of the tags assigned to the specified resource. the response to any request to the resource. """ -function list_tags_for_resource( - resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage_vod( +list_tags_for_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "GET", "/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resource_arn, params::AbstractDict{String}; @@ -499,17 +473,14 @@ Adds tags to the specified resource. You can specify one or more tags to add. - `tags`: A collection of tags associated with a resource """ -function tag_resource( - resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage_vod( +tag_resource(resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "POST", "/tags/$(resource-arn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resource_arn, tags, @@ -537,17 +508,14 @@ Removes tags from the specified resource. You can specify one or more tags to re - `tag_keys`: A comma-separated list of the tag keys to remove from the resource. """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackage_vod( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "DELETE", "/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -577,14 +545,13 @@ system-generated attributes. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"authorization"`: """ -function update_packaging_group(id; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackage_vod( +update_packaging_group(id; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackage_vod( "PUT", "/packaging_groups/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_packaging_group( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/mediapackagev2.jl b/src/services/mediapackagev2.jl index 1978f4437..fba991653 100644 --- a/src/services/mediapackagev2.jl +++ b/src/services/mediapackagev2.jl @@ -36,19 +36,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amzn-client-token"`: A unique, case-sensitive token that you provide to ensure the idempotency of the request. """ -function create_channel( +create_channel( ChannelGroupName, ChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackagev2( + "POST", + "/channelGroup/$(ChannelGroupName)/channel", + Dict{String,Any}( + "ChannelName" => ChannelName, "x-amzn-client-token" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "POST", - "/channelGroup/$(ChannelGroupName)/channel", - Dict{String,Any}( - "ChannelName" => ChannelName, "x-amzn-client-token" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel( ChannelGroupName, ChannelName, @@ -96,10 +94,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amzn-client-token"`: A unique, case-sensitive token that you provide to ensure the idempotency of the request. """ -function create_channel_group( - ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackagev2( +create_channel_group(ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackagev2( "POST", "/channelGroup", Dict{String,Any}( @@ -108,7 +104,6 @@ function create_channel_group( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_channel_group( ChannelGroupName, params::AbstractDict{String}; @@ -174,25 +169,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amzn-client-token"`: A unique, case-sensitive token that you provide to ensure the idempotency of the request. """ -function create_origin_endpoint( +create_origin_endpoint( ChannelGroupName, ChannelName, ContainerType, OriginEndpointName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackagev2( + "POST", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint", + Dict{String,Any}( + "ContainerType" => ContainerType, + "OriginEndpointName" => OriginEndpointName, + "x-amzn-client-token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "POST", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint", - Dict{String,Any}( - "ContainerType" => ContainerType, - "OriginEndpointName" => OriginEndpointName, - "x-amzn-client-token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_origin_endpoint( ChannelGroupName, ChannelName, @@ -234,16 +227,14 @@ must delete the channel's origin endpoints before you can delete the channel. for the channel, and must be unique for your account in the AWS Region and channel group. """ -function delete_channel( +delete_channel( ChannelGroupName, ChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackagev2( + "DELETE", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "DELETE", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel( ChannelGroupName, ChannelName, @@ -272,16 +263,13 @@ to the egress domain and will have to create a new channel group to replace it. identifier for the channel group, and must be unique for your account in the AWS Region. """ -function delete_channel_group( - ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackagev2( +delete_channel_group(ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackagev2( "DELETE", "/channelGroup/$(ChannelGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_channel_group( ChannelGroupName, params::AbstractDict{String}; @@ -309,16 +297,14 @@ Delete a channel policy. for the channel, and must be unique for your account in the AWS Region and channel group. """ -function delete_channel_policy( +delete_channel_policy( ChannelGroupName, ChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackagev2( + "DELETE", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "DELETE", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_channel_policy( ChannelGroupName, ChannelName, @@ -352,19 +338,17 @@ you can delete the channel. AWS Region and channel. """ -function delete_origin_endpoint( +delete_origin_endpoint( ChannelGroupName, ChannelName, OriginEndpointName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackagev2( + "DELETE", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "DELETE", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_origin_endpoint( ChannelGroupName, ChannelName, @@ -397,19 +381,17 @@ Delete an origin endpoint policy. AWS Region and channel. """ -function delete_origin_endpoint_policy( +delete_origin_endpoint_policy( ChannelGroupName, ChannelName, OriginEndpointName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackagev2( + "DELETE", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "DELETE", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_origin_endpoint_policy( ChannelGroupName, ChannelName, @@ -440,16 +422,14 @@ the origin endpoints that are associated with it. for the channel, and must be unique for your account in the AWS Region and channel group. """ -function get_channel( +get_channel( ChannelGroupName, ChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackagev2( + "GET", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "GET", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_channel( ChannelGroupName, ChannelName, @@ -477,16 +457,13 @@ including the channels and origin endpoints that are associated with it. identifier for the channel group, and must be unique for your account in the AWS Region. """ -function get_channel_group( - ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackagev2( +get_channel_group(ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackagev2( "GET", "/channelGroup/$(ChannelGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_channel_group( ChannelGroupName, params::AbstractDict{String}; @@ -516,16 +493,14 @@ perform on those resources. for the channel, and must be unique for your account in the AWS Region and channel group. """ -function get_channel_policy( +get_channel_policy( ChannelGroupName, ChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackagev2( + "GET", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "GET", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_channel_policy( ChannelGroupName, ChannelName, @@ -558,19 +533,17 @@ obtain its playback URL and to view the packaging settings that it's currently u AWS Region and channel. """ -function get_origin_endpoint( +get_origin_endpoint( ChannelGroupName, ChannelName, OriginEndpointName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackagev2( + "GET", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "GET", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_origin_endpoint( ChannelGroupName, ChannelName, @@ -604,19 +577,17 @@ MediaPackage. AWS Region and channel. """ -function get_origin_endpoint_policy( +get_origin_endpoint_policy( ChannelGroupName, ChannelName, OriginEndpointName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackagev2( + "GET", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)/policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "GET", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)/policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_origin_endpoint_policy( ChannelGroupName, ChannelName, @@ -646,11 +617,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token from the GET list request. Use the token to fetch the next page of results. """ -function list_channel_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackagev2( - "GET", "/channelGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_channel_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = mediapackagev2( + "GET", "/channelGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_channel_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -680,14 +649,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token from the GET list request. Use the token to fetch the next page of results. """ -function list_channels(ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackagev2( +list_channels(ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackagev2( "GET", "/channelGroup/$(ChannelGroupName)/channel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_channels( ChannelGroupName, params::AbstractDict{String}; @@ -721,16 +689,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token from the GET list request. Use the token to fetch the next page of results. """ -function list_origin_endpoints( +list_origin_endpoints( ChannelGroupName, ChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackagev2( + "GET", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "GET", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_origin_endpoints( ChannelGroupName, ChannelName, @@ -756,16 +722,13 @@ Lists the tags assigned to a resource. - `resource_arn`: The ARN of the CloudWatch resource that you want to view tags for. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackagev2( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackagev2( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -796,20 +759,18 @@ attach only one policy with each request. - `policy`: The policy to attach to the specified channel. """ -function put_channel_policy( +put_channel_policy( ChannelGroupName, ChannelName, Policy; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackagev2( + "PUT", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/policy", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "PUT", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/policy", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_channel_policy( ChannelGroupName, ChannelName, @@ -844,21 +805,19 @@ with each request. - `policy`: The policy to attach to the specified origin endpoint. """ -function put_origin_endpoint_policy( +put_origin_endpoint_policy( ChannelGroupName, ChannelName, OriginEndpointName, Policy; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackagev2( + "POST", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)/policy", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "POST", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)/policy", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_origin_endpoint_policy( ChannelGroupName, ChannelName, @@ -894,15 +853,14 @@ resource, the new tag value that you specify replaces the previous value for tha the resource. """ -function tag_resource(ResourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return mediapackagev2( +tag_resource(ResourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackagev2( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, tags, @@ -929,17 +887,14 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackagev2( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackagev2( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -979,16 +934,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the specified ETag does not match the resource's current entity tag, the update request will be rejected. """ -function update_channel( +update_channel( ChannelGroupName, ChannelName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediapackagev2( + "PUT", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "PUT", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_channel( ChannelGroupName, ChannelName, @@ -1025,16 +978,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the specified ETag does not match the resource's current entity tag, the update request will be rejected. """ -function update_channel_group( - ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediapackagev2( +update_channel_group(ChannelGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediapackagev2( "PUT", "/channelGroup/$(ChannelGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_channel_group( ChannelGroupName, params::AbstractDict{String}; @@ -1087,21 +1037,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the specified ETag does not match the resource's current entity tag, the update request will be rejected. """ -function update_origin_endpoint( +update_origin_endpoint( ChannelGroupName, ChannelName, ContainerType, OriginEndpointName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediapackagev2( + "PUT", + "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)", + Dict{String,Any}("ContainerType" => ContainerType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediapackagev2( - "PUT", - "/channelGroup/$(ChannelGroupName)/channel/$(ChannelName)/originEndpoint/$(OriginEndpointName)", - Dict{String,Any}("ContainerType" => ContainerType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_origin_endpoint( ChannelGroupName, ChannelName, diff --git a/src/services/mediastore.jl b/src/services/mediastore.jl index 3bf1a473a..ec4ad0e1e 100644 --- a/src/services/mediastore.jl +++ b/src/services/mediastore.jl @@ -26,14 +26,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore. """ -function create_container(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore( +create_container(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "CreateContainer", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_container( ContainerName, params::AbstractDict{String}; @@ -61,14 +60,13 @@ containers. - `container_name`: The name of the container to delete. """ -function delete_container(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore( +delete_container(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "DeleteContainer", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_container( ContainerName, params::AbstractDict{String}; @@ -94,16 +92,13 @@ Deletes the access policy that is associated with the specified container. - `container_name`: The name of the container that holds the policy. """ -function delete_container_policy( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +delete_container_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "DeleteContainerPolicy", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_container_policy( ContainerName, params::AbstractDict{String}; @@ -132,16 +127,13 @@ can grant this permission to others. - `container_name`: The name of the container to remove the policy from. """ -function delete_cors_policy( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +delete_cors_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "DeleteCorsPolicy", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cors_policy( ContainerName, params::AbstractDict{String}; @@ -168,16 +160,13 @@ change to take effect. - `container_name`: The name of the container that holds the object lifecycle policy. """ -function delete_lifecycle_policy( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +delete_lifecycle_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "DeleteLifecyclePolicy", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_lifecycle_policy( ContainerName, params::AbstractDict{String}; @@ -205,16 +194,13 @@ metric policy associated with the container, MediaStore doesn't send metrics to that you want to delete. """ -function delete_metric_policy( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +delete_metric_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "DeleteMetricPolicy", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_metric_policy( ContainerName, params::AbstractDict{String}; @@ -245,11 +231,8 @@ account, use ListContainers. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ContainerName"`: The name of the container to query. """ -function describe_container(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore( - "DescribeContainer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_container(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore("DescribeContainer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_container( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -269,16 +252,13 @@ that is included in an access policy, see the AWS Identity and Access Management - `container_name`: The name of the container. """ -function get_container_policy( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +get_container_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "GetContainerPolicy", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_container_policy( ContainerName, params::AbstractDict{String}; @@ -307,14 +287,13 @@ can grant it to others. - `container_name`: The name of the container that the policy is assigned to. """ -function get_cors_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore( +get_cors_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "GetCorsPolicy", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cors_policy( ContainerName, params::AbstractDict{String}; @@ -341,16 +320,13 @@ Retrieves the object lifecycle policy that is assigned to a container. to. """ -function get_lifecycle_policy( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +get_lifecycle_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "GetLifecyclePolicy", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_lifecycle_policy( ContainerName, params::AbstractDict{String}; @@ -376,16 +352,13 @@ Returns the metric policy for the specified container. - `container_name`: The name of the container that is associated with the metric policy. """ -function get_metric_policy( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +get_metric_policy(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "GetMetricPolicy", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_metric_policy( ContainerName, params::AbstractDict{String}; @@ -421,11 +394,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys was included in the previous response) to obtain the next set of containers. This token is included in a response only if there actually are more containers to list. """ -function list_containers(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore( - "ListContainers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_containers(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore("ListContainers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_containers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -444,16 +414,13 @@ Returns a list of the tags assigned to the specified container. - `resource`: The Amazon Resource Name (ARN) for the container. """ -function list_tags_for_resource( - Resource; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +list_tags_for_resource(Resource; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "ListTagsForResource", Dict{String,Any}("Resource" => Resource); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( Resource, params::AbstractDict{String}; @@ -485,16 +452,14 @@ command modifies the existing policy. One Statement tag that contains the standard tags for the policy. """ -function put_container_policy( +put_container_policy( ContainerName, Policy; aws_config::AbstractAWSConfig=current_aws_config() +) = mediastore( + "PutContainerPolicy", + Dict{String,Any}("ContainerName" => ContainerName, "Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediastore( - "PutContainerPolicy", - Dict{String,Any}("ContainerName" => ContainerName, "Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_container_policy( ContainerName, Policy, @@ -535,16 +500,14 @@ MediaStore. - `cors_policy`: The CORS policy to apply to the container. """ -function put_cors_policy( +put_cors_policy( ContainerName, CorsPolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = mediastore( + "PutCorsPolicy", + Dict{String,Any}("ContainerName" => ContainerName, "CorsPolicy" => CorsPolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediastore( - "PutCorsPolicy", - Dict{String,Any}("ContainerName" => ContainerName, "CorsPolicy" => CorsPolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_cors_policy( ContainerName, CorsPolicy, @@ -582,18 +545,16 @@ object lifecycle policy, see Components of an Object Lifecycle Policy. - `lifecycle_policy`: The object lifecycle policy to apply to the container. """ -function put_lifecycle_policy( +put_lifecycle_policy( ContainerName, LifecyclePolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = mediastore( + "PutLifecyclePolicy", + Dict{String,Any}( + "ContainerName" => ContainerName, "LifecyclePolicy" => LifecyclePolicy + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediastore( - "PutLifecyclePolicy", - Dict{String,Any}( - "ContainerName" => ContainerName, "LifecyclePolicy" => LifecyclePolicy - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_lifecycle_policy( ContainerName, LifecyclePolicy, @@ -639,16 +600,14 @@ the new policy to take effect. (underscore). """ -function put_metric_policy( +put_metric_policy( ContainerName, MetricPolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = mediastore( + "PutMetricPolicy", + Dict{String,Any}("ContainerName" => ContainerName, "MetricPolicy" => MetricPolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediastore( - "PutMetricPolicy", - Dict{String,Any}("ContainerName" => ContainerName, "MetricPolicy" => MetricPolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_metric_policy( ContainerName, MetricPolicy, @@ -683,16 +642,13 @@ CloudWatch Logs. - `container_name`: The name of the container that you want to start access logging on. """ -function start_access_logging( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +start_access_logging(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "StartAccessLogging", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_access_logging( ContainerName, params::AbstractDict{String}; @@ -720,16 +676,13 @@ logs are not saved and are not retrievable. - `container_name`: The name of the container that you want to stop access logging on. """ -function stop_access_logging( - ContainerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +stop_access_logging(ContainerName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "StopAccessLogging", Dict{String,Any}("ContainerName" => ContainerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_access_logging( ContainerName, params::AbstractDict{String}; @@ -765,14 +718,13 @@ including naming and usage conventions, see Tagging Resources in MediaStore. customer:CompanyA, priority:Medium, and type:Contract. """ -function tag_resource(Resource, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore( +tag_resource(Resource, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "TagResource", Dict{String,Any}("Resource" => Resource, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Resource, Tags, @@ -805,16 +757,13 @@ Removes tags from the specified container. You can specify one or more tags to r for the tag that you want to remove (priority). """ -function untag_resource( - Resource, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediastore( +untag_resource(Resource, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore( "UntagResource", Dict{String,Any}("Resource" => Resource, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( Resource, TagKeys, diff --git a/src/services/mediastore_data.jl b/src/services/mediastore_data.jl index d5cc6eeb2..2f19f06ef 100644 --- a/src/services/mediastore_data.jl +++ b/src/services/mediastore_data.jl @@ -15,11 +15,9 @@ Deletes an object at the specified path. Format: <folder name>/<folder name>/<file name> """ -function delete_object(Path; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore_data( - "DELETE", "/$(Path)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_object(Path; aws_config::AbstractAWSConfig=current_aws_config()) = mediastore_data( + "DELETE", "/$(Path)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_object( Path, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -39,11 +37,9 @@ Gets the headers for an object at the specified path. Format: <folder name>/<folder name>/<file name> """ -function describe_object(Path; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore_data( - "HEAD", "/$(Path)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_object(Path; aws_config::AbstractAWSConfig=current_aws_config()) = mediastore_data( + "HEAD", "/$(Path)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_object( Path, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -82,11 +78,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys MediaStore ignores this header for partially uploaded objects that have streaming upload availability. """ -function get_object(Path; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore_data( - "GET", "/$(Path)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_object(Path; aws_config::AbstractAWSConfig=current_aws_config()) = mediastore_data( + "GET", "/$(Path)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_object( Path, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -117,11 +111,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Path"`: The path in the container from which to retrieve items. Format: <folder name>/<folder name>/<file name> """ -function list_items(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore_data( - "GET", "/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_items(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore_data("GET", "/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_items( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -170,15 +161,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default value for this header is standard. To use this header, you must also set the HTTP Transfer-Encoding header to chunked. """ -function put_object(Body, Path; aws_config::AbstractAWSConfig=current_aws_config()) - return mediastore_data( +put_object(Body, Path; aws_config::AbstractAWSConfig=current_aws_config()) = + mediastore_data( "PUT", "/$(Path)", Dict{String,Any}("Body" => Body); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_object( Body, Path, diff --git a/src/services/mediatailor.jl b/src/services/mediatailor.jl index c54b2bf7d..3ad94f156 100644 --- a/src/services/mediatailor.jl +++ b/src/services/mediatailor.jl @@ -15,17 +15,15 @@ Configures Amazon CloudWatch log settings for a channel. - `log_types`: The types of logs to collect. """ -function configure_logs_for_channel( +configure_logs_for_channel( ChannelName, LogTypes; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "PUT", + "/configureLogs/channel", + Dict{String,Any}("ChannelName" => ChannelName, "LogTypes" => LogTypes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "PUT", - "/configureLogs/channel", - Dict{String,Any}("ChannelName" => ChannelName, "LogTypes" => LogTypes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function configure_logs_for_channel( ChannelName, LogTypes, @@ -63,22 +61,20 @@ Amazon CloudWatch log settings for a playback configuration. - `playback_configuration_name`: The name of the playback configuration. """ -function configure_logs_for_playback_configuration( +configure_logs_for_playback_configuration( PercentEnabled, PlaybackConfigurationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "PUT", + "/configureLogs/playbackConfiguration", + Dict{String,Any}( + "PercentEnabled" => PercentEnabled, + "PlaybackConfigurationName" => PlaybackConfigurationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "PUT", - "/configureLogs/playbackConfiguration", - Dict{String,Any}( - "PercentEnabled" => PercentEnabled, - "PlaybackConfigurationName" => PlaybackConfigurationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function configure_logs_for_playback_configuration( PercentEnabled, PlaybackConfigurationName, @@ -131,17 +127,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources. """ -function create_channel( +create_channel( ChannelName, Outputs, PlaybackMode; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "POST", + "/channel/$(ChannelName)", + Dict{String,Any}("Outputs" => Outputs, "PlaybackMode" => PlaybackMode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "POST", - "/channel/$(ChannelName)", - Dict{String,Any}("Outputs" => Outputs, "PlaybackMode" => PlaybackMode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_channel( ChannelName, Outputs, @@ -182,20 +176,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources. """ -function create_live_source( +create_live_source( HttpPackageConfigurations, LiveSourceName, SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "POST", + "/sourceLocation/$(SourceLocationName)/liveSource/$(LiveSourceName)", + Dict{String,Any}("HttpPackageConfigurations" => HttpPackageConfigurations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "POST", - "/sourceLocation/$(SourceLocationName)/liveSource/$(LiveSourceName)", - Dict{String,Any}("HttpPackageConfigurations" => HttpPackageConfigurations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_live_source( HttpPackageConfigurations, LiveSourceName, @@ -245,21 +237,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified, MediaTailor returns all of the prefetch schedules for the playback configuration, regardless of StreamId. """ -function create_prefetch_schedule( +create_prefetch_schedule( Consumption, Name, PlaybackConfigurationName, Retrieval; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "POST", + "/prefetchSchedule/$(PlaybackConfigurationName)/$(Name)", + Dict{String,Any}("Consumption" => Consumption, "Retrieval" => Retrieval); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "POST", - "/prefetchSchedule/$(PlaybackConfigurationName)/$(Name)", - Dict{String,Any}("Consumption" => Consumption, "Retrieval" => Retrieval); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_prefetch_schedule( Consumption, Name, @@ -303,24 +293,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LiveSourceName"`: The name of the LiveSource for this Program. - `"VodSourceName"`: The name that's used to refer to a VOD source. """ -function create_program( +create_program( ChannelName, ProgramName, ScheduleConfiguration, SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "POST", + "/channel/$(ChannelName)/program/$(ProgramName)", + Dict{String,Any}( + "ScheduleConfiguration" => ScheduleConfiguration, + "SourceLocationName" => SourceLocationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "POST", - "/channel/$(ChannelName)/program/$(ProgramName)", - Dict{String,Any}( - "ScheduleConfiguration" => ScheduleConfiguration, - "SourceLocationName" => SourceLocationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_program( ChannelName, ProgramName, @@ -371,19 +359,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources. """ -function create_source_location( +create_source_location( HttpConfiguration, SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "POST", + "/sourceLocation/$(SourceLocationName)", + Dict{String,Any}("HttpConfiguration" => HttpConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "POST", - "/sourceLocation/$(SourceLocationName)", - Dict{String,Any}("HttpConfiguration" => HttpConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_source_location( HttpConfiguration, SourceLocationName, @@ -421,20 +407,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources. """ -function create_vod_source( +create_vod_source( HttpPackageConfigurations, SourceLocationName, VodSourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "POST", + "/sourceLocation/$(SourceLocationName)/vodSource/$(VodSourceName)", + Dict{String,Any}("HttpPackageConfigurations" => HttpPackageConfigurations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "POST", - "/sourceLocation/$(SourceLocationName)/vodSource/$(VodSourceName)", - Dict{String,Any}("HttpPackageConfigurations" => HttpPackageConfigurations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vod_source( HttpPackageConfigurations, SourceLocationName, @@ -468,14 +452,13 @@ the MediaTailor User Guide. - `channel_name`: The name of the channel. """ -function delete_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( +delete_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "DELETE", "/channel/$(ChannelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_channel( ChannelName, params::AbstractDict{String}; @@ -500,16 +483,13 @@ The channel policy to delete. - `channel_name`: The name of the channel associated with this channel policy. """ -function delete_channel_policy( - ChannelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +delete_channel_policy(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "DELETE", "/channel/$(ChannelName)/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_channel_policy( ChannelName, params::AbstractDict{String}; @@ -535,16 +515,14 @@ The live source to delete. - `source_location_name`: The name of the source location associated with this Live Source. """ -function delete_live_source( +delete_live_source( LiveSourceName, SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "DELETE", + "/sourceLocation/$(SourceLocationName)/liveSource/$(LiveSourceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "DELETE", - "/sourceLocation/$(SourceLocationName)/liveSource/$(LiveSourceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_live_source( LiveSourceName, SourceLocationName, @@ -571,16 +549,13 @@ Working with configurations in AWS Elemental MediaTailor. - `name`: The name of the playback configuration. """ -function delete_playback_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +delete_playback_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "DELETE", "/playbackConfiguration/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_playback_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -609,16 +584,14 @@ MediaTailor User Guide. schedule. """ -function delete_prefetch_schedule( +delete_prefetch_schedule( Name, PlaybackConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "DELETE", + "/prefetchSchedule/$(PlaybackConfigurationName)/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "DELETE", - "/prefetchSchedule/$(PlaybackConfigurationName)/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_prefetch_schedule( Name, PlaybackConfigurationName, @@ -646,16 +619,14 @@ programs in the MediaTailor User Guide. - `program_name`: The name of the program. """ -function delete_program( +delete_program( ChannelName, ProgramName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "DELETE", + "/channel/$(ChannelName)/program/$(ProgramName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "DELETE", - "/channel/$(ChannelName)/program/$(ProgramName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_program( ChannelName, ProgramName, @@ -683,16 +654,14 @@ User Guide. - `source_location_name`: The name of the source location. """ -function delete_source_location( +delete_source_location( SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "DELETE", + "/sourceLocation/$(SourceLocationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "DELETE", - "/sourceLocation/$(SourceLocationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_source_location( SourceLocationName, params::AbstractDict{String}; @@ -718,16 +687,14 @@ The video on demand (VOD) source to delete. - `vod_source_name`: The name of the VOD source. """ -function delete_vod_source( +delete_vod_source( SourceLocationName, VodSourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "DELETE", + "/sourceLocation/$(SourceLocationName)/vodSource/$(VodSourceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "DELETE", - "/sourceLocation/$(SourceLocationName)/vodSource/$(VodSourceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vod_source( SourceLocationName, VodSourceName, @@ -754,14 +721,13 @@ in the MediaTailor User Guide. - `channel_name`: The name of the channel. """ -function describe_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( +describe_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "GET", "/channel/$(ChannelName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_channel( ChannelName, params::AbstractDict{String}; @@ -787,16 +753,14 @@ The live source to describe. - `source_location_name`: The name of the source location associated with this Live Source. """ -function describe_live_source( +describe_live_source( LiveSourceName, SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "GET", + "/sourceLocation/$(SourceLocationName)/liveSource/$(LiveSourceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "GET", - "/sourceLocation/$(SourceLocationName)/liveSource/$(LiveSourceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_live_source( LiveSourceName, SourceLocationName, @@ -824,16 +788,14 @@ programs in the MediaTailor User Guide. - `program_name`: The name of the program. """ -function describe_program( +describe_program( ChannelName, ProgramName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "GET", + "/channel/$(ChannelName)/program/$(ProgramName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "GET", - "/channel/$(ChannelName)/program/$(ProgramName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_program( ChannelName, ProgramName, @@ -861,16 +823,14 @@ User Guide. - `source_location_name`: The name of the source location. """ -function describe_source_location( +describe_source_location( SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "GET", + "/sourceLocation/$(SourceLocationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "GET", - "/sourceLocation/$(SourceLocationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_source_location( SourceLocationName, params::AbstractDict{String}; @@ -897,16 +857,14 @@ location. - `vod_source_name`: The name of the VOD Source. """ -function describe_vod_source( +describe_vod_source( SourceLocationName, VodSourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "GET", + "/sourceLocation/$(SourceLocationName)/vodSource/$(VodSourceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "GET", - "/sourceLocation/$(SourceLocationName)/vodSource/$(VodSourceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vod_source( SourceLocationName, VodSourceName, @@ -932,14 +890,13 @@ Returns the channel's IAM policy. IAM policies are used to control access to you - `channel_name`: The name of the channel associated with this Channel Policy. """ -function get_channel_policy(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( +get_channel_policy(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "GET", "/channel/$(ChannelName)/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_channel_policy( ChannelName, params::AbstractDict{String}; @@ -977,16 +934,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the request. If the previous response didn't include a NextToken element, there are no more channel schedules to get. """ -function get_channel_schedule( - ChannelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +get_channel_schedule(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "GET", "/channel/$(ChannelName)/schedule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_channel_schedule( ChannelName, params::AbstractDict{String}; @@ -1012,16 +966,13 @@ Working with configurations in AWS Elemental MediaTailor. - `name`: The identifier for the playback configuration. """ -function get_playback_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +get_playback_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "GET", "/playbackConfiguration/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_playback_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1050,16 +1001,14 @@ information about ad prefetching, see Using ad prefetching in the MediaTailor Us schedule, MediaTailor returns an HTTP 404 status code. """ -function get_prefetch_schedule( +get_prefetch_schedule( Name, PlaybackConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "GET", + "/prefetchSchedule/$(PlaybackConfigurationName)/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "GET", - "/prefetchSchedule/$(PlaybackConfigurationName)/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_prefetch_schedule( Name, PlaybackConfigurationName, @@ -1092,15 +1041,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. """ -function list_alerts(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( - "GET", - "/alerts", - Dict{String,Any}("resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_alerts(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = mediatailor( + "GET", + "/alerts", + Dict{String,Any}("resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_alerts( resourceArn, params::AbstractDict{String}; @@ -1131,11 +1078,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. """ -function list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( - "GET", "/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_channels(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor("GET", "/channels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_channels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1163,16 +1107,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. """ -function list_live_sources( - SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +list_live_sources(SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "GET", "/sourceLocation/$(SourceLocationName)/liveSources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_live_sources( SourceLocationName, params::AbstractDict{String}; @@ -1202,14 +1143,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. """ -function list_playback_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( +list_playback_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "GET", "/playbackConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_playback_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1246,16 +1186,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StreamId"`: An optional filtering parameter whereby MediaTailor filters the prefetch schedules to include only specific streams. """ -function list_prefetch_schedules( +list_prefetch_schedules( PlaybackConfigurationName; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "POST", + "/prefetchSchedule/$(PlaybackConfigurationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "POST", - "/prefetchSchedule/$(PlaybackConfigurationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_prefetch_schedules( PlaybackConfigurationName, params::AbstractDict{String}; @@ -1285,11 +1223,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. """ -function list_source_locations(; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( - "GET", "/sourceLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_source_locations(; aws_config::AbstractAWSConfig=current_aws_config()) = mediatailor( + "GET", "/sourceLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_source_locations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1314,16 +1250,13 @@ tracking. For more information, see Tagging AWS Elemental MediaTailor Resources. - `resource_arn`: The Amazon Resource Name (ARN) associated with this resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1357,16 +1290,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. """ -function list_vod_sources( - SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +list_vod_sources(SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "GET", "/sourceLocation/$(SourceLocationName)/vodSources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_vod_sources( SourceLocationName, params::AbstractDict{String}; @@ -1393,17 +1323,15 @@ channel. - `policy`: Adds an IAM role that determines the permissions of your channel. """ -function put_channel_policy( +put_channel_policy( ChannelName, Policy; aws_config::AbstractAWSConfig=current_aws_config() +) = mediatailor( + "PUT", + "/channel/$(ChannelName)/policy", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "PUT", - "/channel/$(ChannelName)/policy", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_channel_policy( ChannelName, Policy, @@ -1477,17 +1405,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources. """ -function put_playback_configuration( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +put_playback_configuration(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "PUT", "/playbackConfiguration", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_playback_configuration( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1511,14 +1436,13 @@ the MediaTailor User Guide. - `channel_name`: The name of the channel. """ -function start_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( +start_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "PUT", "/channel/$(ChannelName)/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_channel( ChannelName, params::AbstractDict{String}; @@ -1544,14 +1468,12 @@ the MediaTailor User Guide. - `channel_name`: The name of the channel. """ -function stop_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( - "PUT", - "/channel/$(ChannelName)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_channel(ChannelName; aws_config::AbstractAWSConfig=current_aws_config()) = mediatailor( + "PUT", + "/channel/$(ChannelName)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_channel( ChannelName, params::AbstractDict{String}; @@ -1581,15 +1503,14 @@ Tagging AWS Elemental MediaTailor Resources. tracking. For more information, see Tagging AWS Elemental MediaTailor Resources. """ -function tag_resource(ResourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return mediatailor( +tag_resource(ResourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, tags, @@ -1616,17 +1537,14 @@ The resource to untag. - `tag_keys`: The tag keys associated with the resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1662,17 +1580,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimeShiftConfiguration"`: The time-shifted viewing configuration you want to associate to the channel. """ -function update_channel( - ChannelName, Outputs; aws_config::AbstractAWSConfig=current_aws_config() -) - return mediatailor( +update_channel(ChannelName, Outputs; aws_config::AbstractAWSConfig=current_aws_config()) = + mediatailor( "PUT", "/channel/$(ChannelName)", Dict{String,Any}("Outputs" => Outputs); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_channel( ChannelName, Outputs, @@ -1701,20 +1616,18 @@ Updates a live source's configuration. - `source_location_name`: The name of the source location associated with this Live Source. """ -function update_live_source( +update_live_source( HttpPackageConfigurations, LiveSourceName, SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "PUT", + "/sourceLocation/$(SourceLocationName)/liveSource/$(LiveSourceName)", + Dict{String,Any}("HttpPackageConfigurations" => HttpPackageConfigurations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "PUT", - "/sourceLocation/$(SourceLocationName)/liveSource/$(LiveSourceName)", - Dict{String,Any}("HttpPackageConfigurations" => HttpPackageConfigurations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_live_source( HttpPackageConfigurations, LiveSourceName, @@ -1753,20 +1666,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AdBreaks"`: The ad break configuration settings. - `"AudienceMedia"`: The list of AudienceMedia defined in program. """ -function update_program( +update_program( ChannelName, ProgramName, ScheduleConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "PUT", + "/channel/$(ChannelName)/program/$(ProgramName)", + Dict{String,Any}("ScheduleConfiguration" => ScheduleConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "PUT", - "/channel/$(ChannelName)/program/$(ProgramName)", - Dict{String,Any}("ScheduleConfiguration" => ScheduleConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_program( ChannelName, ProgramName, @@ -1810,19 +1721,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SegmentDeliveryConfigurations"`: A list of the segment delivery configurations associated with this resource. """ -function update_source_location( +update_source_location( HttpConfiguration, SourceLocationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "PUT", + "/sourceLocation/$(SourceLocationName)", + Dict{String,Any}("HttpConfiguration" => HttpConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "PUT", - "/sourceLocation/$(SourceLocationName)", - Dict{String,Any}("HttpConfiguration" => HttpConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_source_location( HttpConfiguration, SourceLocationName, @@ -1855,20 +1764,18 @@ Updates a VOD source's configuration. - `vod_source_name`: The name of the VOD source. """ -function update_vod_source( +update_vod_source( HttpPackageConfigurations, SourceLocationName, VodSourceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = mediatailor( + "PUT", + "/sourceLocation/$(SourceLocationName)/vodSource/$(VodSourceName)", + Dict{String,Any}("HttpPackageConfigurations" => HttpPackageConfigurations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mediatailor( - "PUT", - "/sourceLocation/$(SourceLocationName)/vodSource/$(VodSourceName)", - Dict{String,Any}("HttpPackageConfigurations" => HttpPackageConfigurations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_vod_source( HttpPackageConfigurations, SourceLocationName, diff --git a/src/services/medical_imaging.jl b/src/services/medical_imaging.jl index bced1d807..9c44b6f7c 100644 --- a/src/services/medical_imaging.jl +++ b/src/services/medical_imaging.jl @@ -15,21 +15,24 @@ Copy an image set. - `datastore_id`: The data store identifier. - `source_image_set_id`: The source image set identifier. +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"force"`: Setting this flag will force the CopyImageSet operation, even if Patient, + Study, or Series level metadata are mismatched across the sourceImageSet and + destinationImageSet. """ -function copy_image_set( +copy_image_set( copyImageSetInformation, datastoreId, sourceImageSetId; aws_config::AbstractAWSConfig=current_aws_config(), +) = medical_imaging( + "POST", + "/datastore/$(datastoreId)/imageSet/$(sourceImageSetId)/copyImageSet", + Dict{String,Any}("copyImageSetInformation" => copyImageSetInformation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medical_imaging( - "POST", - "/datastore/$(datastoreId)/imageSet/$(sourceImageSetId)/copyImageSet", - Dict{String,Any}("copyImageSetInformation" => copyImageSetInformation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_image_set( copyImageSetInformation, datastoreId, @@ -68,15 +71,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (KMS) key for accessing encrypted data. - `"tags"`: The tags provided when creating a data store. """ -function create_datastore(clientToken; aws_config::AbstractAWSConfig=current_aws_config()) - return medical_imaging( +create_datastore(clientToken; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "POST", "/datastore", Dict{String,Any}("clientToken" => clientToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_datastore( clientToken, params::AbstractDict{String}; @@ -104,14 +106,13 @@ sets within it. - `datastore_id`: The data store identifier. """ -function delete_datastore(datastoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return medical_imaging( +delete_datastore(datastoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "DELETE", "/datastore/$(datastoreId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_datastore( datastoreId, params::AbstractDict{String}; @@ -137,16 +138,14 @@ Delete an image set. - `image_set_id`: The image set identifier. """ -function delete_image_set( +delete_image_set( datastoreId, imageSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = medical_imaging( + "POST", + "/datastore/$(datastoreId)/imageSet/$(imageSetId)/deleteImageSet"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medical_imaging( - "POST", - "/datastore/$(datastoreId)/imageSet/$(imageSetId)/deleteImageSet"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_image_set( datastoreId, imageSetId, @@ -172,14 +171,13 @@ Get data store properties. - `datastore_id`: The data store identifier. """ -function get_datastore(datastoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return medical_imaging( +get_datastore(datastoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "GET", "/datastore/$(datastoreId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_datastore( datastoreId, params::AbstractDict{String}; @@ -209,16 +207,14 @@ to S3, as they provide details on the success or failure of individual P10 objec - `job_id`: The import job identifier. """ -function get_dicomimport_job( +get_dicomimport_job( datastoreId, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = medical_imaging( + "GET", + "/getDICOMImportJob/datastore/$(datastoreId)/job/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medical_imaging( - "GET", - "/getDICOMImportJob/datastore/$(datastoreId)/job/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_dicomimport_job( datastoreId, jobId, @@ -246,20 +242,18 @@ Get an image frame (pixel data) for an image set. - `image_set_id`: The image set identifier. """ -function get_image_frame( +get_image_frame( datastoreId, imageFrameInformation, imageSetId; aws_config::AbstractAWSConfig=current_aws_config(), +) = medical_imaging( + "POST", + "/datastore/$(datastoreId)/imageSet/$(imageSetId)/getImageFrame", + Dict{String,Any}("imageFrameInformation" => imageFrameInformation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medical_imaging( - "POST", - "/datastore/$(datastoreId)/imageSet/$(imageSetId)/getImageFrame", - Dict{String,Any}("imageFrameInformation" => imageFrameInformation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_image_frame( datastoreId, imageFrameInformation, @@ -296,16 +290,13 @@ Get image set properties. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"version"`: The image set version identifier. """ -function get_image_set( - datastoreId, imageSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medical_imaging( +get_image_set(datastoreId, imageSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "POST", "/datastore/$(datastoreId)/imageSet/$(imageSetId)/getImageSet"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_image_set( datastoreId, imageSetId, @@ -335,16 +326,14 @@ Get metadata attributes for an image set. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"version"`: The image set version identifier. """ -function get_image_set_metadata( +get_image_set_metadata( datastoreId, imageSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = medical_imaging( + "POST", + "/datastore/$(datastoreId)/imageSet/$(imageSetId)/getImageSetMetadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medical_imaging( - "POST", - "/datastore/$(datastoreId)/imageSet/$(imageSetId)/getImageSetMetadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_image_set_metadata( datastoreId, imageSetId, @@ -373,11 +362,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to request the list of data stores on the next page. """ -function list_datastores(; aws_config::AbstractAWSConfig=current_aws_config()) - return medical_imaging( - "GET", "/datastore"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_datastores(; aws_config::AbstractAWSConfig=current_aws_config()) = medical_imaging( + "GET", "/datastore"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_datastores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -402,16 +389,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to request the list of import jobs on the next page. """ -function list_dicomimport_jobs( - datastoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return medical_imaging( +list_dicomimport_jobs(datastoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "GET", "/listDICOMImportJobs/datastore/$(datastoreId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dicomimport_jobs( datastoreId, params::AbstractDict{String}; @@ -442,16 +426,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to request the list of image set versions on the next page. """ -function list_image_set_versions( +list_image_set_versions( datastoreId, imageSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = medical_imaging( + "POST", + "/datastore/$(datastoreId)/imageSet/$(imageSetId)/listImageSetVersions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medical_imaging( - "POST", - "/datastore/$(datastoreId)/imageSet/$(imageSetId)/listImageSetVersions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_image_set_versions( datastoreId, imageSetId, @@ -478,16 +460,13 @@ Lists all tags associated with a medical imaging resource. tags for. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return medical_imaging( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -524,14 +503,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"searchCriteria"`: The search criteria that filters by applying a maximum of 1 item to SearchByAttribute. """ -function search_image_sets(datastoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return medical_imaging( +search_image_sets(datastoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "POST", "/datastore/$(datastoreId)/searchImageSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_image_sets( datastoreId, params::AbstractDict{String}; @@ -569,27 +547,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"inputOwnerAccountId"`: The account ID of the source S3 bucket owner. - `"jobName"`: The import job name. """ -function start_dicomimport_job( +start_dicomimport_job( clientToken, dataAccessRoleArn, datastoreId, inputS3Uri, outputS3Uri; aws_config::AbstractAWSConfig=current_aws_config(), +) = medical_imaging( + "POST", + "/startDICOMImportJob/datastore/$(datastoreId)", + Dict{String,Any}( + "clientToken" => clientToken, + "dataAccessRoleArn" => dataAccessRoleArn, + "inputS3Uri" => inputS3Uri, + "outputS3Uri" => outputS3Uri, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medical_imaging( - "POST", - "/startDICOMImportJob/datastore/$(datastoreId)", - Dict{String,Any}( - "clientToken" => clientToken, - "dataAccessRoleArn" => dataAccessRoleArn, - "inputS3Uri" => inputS3Uri, - "outputS3Uri" => outputS3Uri, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_dicomimport_job( clientToken, dataAccessRoleArn, @@ -631,15 +607,14 @@ Adds a user-specifed key and value tag to a medical imaging resource. - `tags`: The user-specified key and value tag pairs added to a medical imaging resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return medical_imaging( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -667,17 +642,14 @@ Removes tags from a medical imaging resource. - `tag_keys`: The keys for the tags to be removed from the medical imaging resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return medical_imaging( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + medical_imaging( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -705,25 +677,29 @@ Update image set metadata attributes. - `latest_version`: The latest image set version identifier. - `update_image_set_metadata_updates`: Update image set metadata updates. +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"force"`: Setting this flag will force the UpdateImageSetMetadata operation for the + following attributes: Tag.StudyInstanceUID, Tag.SeriesInstanceUID, Tag.SOPInstanceUID, + and Tag.StudyID Adding, removing, or updating private tags for an individual SOP + Instance """ -function update_image_set_metadata( +update_image_set_metadata( datastoreId, imageSetId, latestVersion, updateImageSetMetadataUpdates; aws_config::AbstractAWSConfig=current_aws_config(), +) = medical_imaging( + "POST", + "/datastore/$(datastoreId)/imageSet/$(imageSetId)/updateImageSetMetadata", + Dict{String,Any}( + "latestVersion" => latestVersion, + "updateImageSetMetadataUpdates" => updateImageSetMetadataUpdates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return medical_imaging( - "POST", - "/datastore/$(datastoreId)/imageSet/$(imageSetId)/updateImageSetMetadata", - Dict{String,Any}( - "latestVersion" => latestVersion, - "updateImageSetMetadataUpdates" => updateImageSetMetadataUpdates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_image_set_metadata( datastoreId, imageSetId, diff --git a/src/services/memorydb.jl b/src/services/memorydb.jl index cc6c8a3aa..f443377f1 100644 --- a/src/services/memorydb.jl +++ b/src/services/memorydb.jl @@ -18,16 +18,13 @@ updates and applying them, see Applying the service updates. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ServiceUpdate"`: The unique ID of the service update """ -function batch_update_cluster( - ClusterNames; aws_config::AbstractAWSConfig=current_aws_config() -) - return memorydb( +batch_update_cluster(ClusterNames; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb( "BatchUpdateCluster", Dict{String,Any}("ClusterNames" => ClusterNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_update_cluster( ClusterNames, params::AbstractDict{String}; @@ -65,21 +62,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket. """ -function copy_snapshot( +copy_snapshot( SourceSnapshotName, TargetSnapshotName; aws_config::AbstractAWSConfig=current_aws_config(), +) = memorydb( + "CopySnapshot", + Dict{String,Any}( + "SourceSnapshotName" => SourceSnapshotName, + "TargetSnapshotName" => TargetSnapshotName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "CopySnapshot", - Dict{String,Any}( - "SourceSnapshotName" => SourceSnapshotName, - "TargetSnapshotName" => TargetSnapshotName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_snapshot( SourceSnapshotName, TargetSnapshotName, @@ -119,14 +114,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys key must be accompanied by a tag value, although null is accepted. - `"UserNames"`: The list of users that belong to the Access Control List. """ -function create_acl(ACLName; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "CreateACL", - Dict{String,Any}("ACLName" => ACLName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_acl(ACLName; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "CreateACL", + Dict{String,Any}("ACLName" => ACLName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_acl( ACLName, params::AbstractDict{String}; @@ -160,7 +153,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering. - `"Description"`: An optional description of the cluster. -- `"EngineVersion"`: The version number of the Redis engine to be used for the cluster. +- `"EngineVersion"`: The version number of the Redis OSS engine to be used for the cluster. - `"KmsKeyId"`: The ID of the KMS key used to encrypt the cluster. - `"MaintenanceWindow"`: Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H @@ -191,18 +184,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue. """ -function create_cluster( +create_cluster( ACLName, ClusterName, NodeType; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "CreateCluster", + Dict{String,Any}( + "ACLName" => ACLName, "ClusterName" => ClusterName, "NodeType" => NodeType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "CreateCluster", - Dict{String,Any}( - "ACLName" => ACLName, "ClusterName" => ClusterName, "NodeType" => NodeType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster( ACLName, ClusterName, @@ -247,16 +238,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_parameter_group( +create_parameter_group( Family, ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "CreateParameterGroup", + Dict{String,Any}("Family" => Family, "ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "CreateParameterGroup", - Dict{String,Any}("Family" => Family, "ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_parameter_group( Family, ParameterGroupName, @@ -295,16 +284,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_snapshot( +create_snapshot( ClusterName, SnapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "CreateSnapshot", + Dict{String,Any}("ClusterName" => ClusterName, "SnapshotName" => SnapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "CreateSnapshot", - Dict{String,Any}("ClusterName" => ClusterName, "SnapshotName" => SnapshotName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_snapshot( ClusterName, SnapshotName, @@ -347,16 +334,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_subnet_group( +create_subnet_group( SubnetGroupName, SubnetIds; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "CreateSubnetGroup", + Dict{String,Any}("SubnetGroupName" => SubnetGroupName, "SubnetIds" => SubnetIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "CreateSubnetGroup", - Dict{String,Any}("SubnetGroupName" => SubnetGroupName, "SubnetIds" => SubnetIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subnet_group( SubnetGroupName, SubnetIds, @@ -398,23 +383,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function create_user( +create_user( AccessString, AuthenticationMode, UserName; aws_config::AbstractAWSConfig=current_aws_config(), +) = memorydb( + "CreateUser", + Dict{String,Any}( + "AccessString" => AccessString, + "AuthenticationMode" => AuthenticationMode, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "CreateUser", - Dict{String,Any}( - "AccessString" => AccessString, - "AuthenticationMode" => AuthenticationMode, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user( AccessString, AuthenticationMode, @@ -452,14 +435,12 @@ it can be deleted. For more information, see Authenticating users with Access Co - `aclname`: The name of the Access Control List to delete """ -function delete_acl(ACLName; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DeleteACL", - Dict{String,Any}("ACLName" => ACLName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_acl(ACLName; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "DeleteACL", + Dict{String,Any}("ACLName" => ACLName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_acl( ACLName, params::AbstractDict{String}; @@ -477,7 +458,9 @@ end delete_cluster(cluster_name) delete_cluster(cluster_name, params::Dict{String,<:Any}) -Deletes a cluster. It also deletes all associated nodes and node endpoints +Deletes a cluster. It also deletes all associated nodes and node endpoints CreateSnapshot +permission is required to create a final snapshot. Without this permission, the API call +will fail with an Access Denied exception. # Arguments - `cluster_name`: The name of the cluster to be deleted @@ -488,14 +471,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward. """ -function delete_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DeleteCluster", - Dict{String,Any}("ClusterName" => ClusterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "DeleteCluster", + Dict{String,Any}("ClusterName" => ClusterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_cluster( ClusterName, params::AbstractDict{String}; @@ -523,16 +504,14 @@ account. - `parameter_group_name`: The name of the parameter group to delete. """ -function delete_parameter_group( +delete_parameter_group( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "DeleteParameterGroup", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "DeleteParameterGroup", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_parameter_group( ParameterGroupName, params::AbstractDict{String}; @@ -562,14 +541,13 @@ operation. - `snapshot_name`: The name of the snapshot to delete """ -function delete_snapshot(SnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( +delete_snapshot(SnapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb( "DeleteSnapshot", Dict{String,Any}("SnapshotName" => SnapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_snapshot( SnapshotName, params::AbstractDict{String}; @@ -596,16 +574,13 @@ with any clusters. - `subnet_group_name`: The name of the subnet group to delete """ -function delete_subnet_group( - SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return memorydb( +delete_subnet_group(SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb( "DeleteSubnetGroup", Dict{String,Any}("SubnetGroupName" => SubnetGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_subnet_group( SubnetGroupName, params::AbstractDict{String}; @@ -634,14 +609,12 @@ clusters. - `user_name`: The name of the user to delete """ -function delete_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DeleteUser", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "DeleteUser", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_user( UserName, params::AbstractDict{String}; @@ -674,9 +647,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_acls(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb("DescribeACLs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_acls(; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb("DescribeACLs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_acls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -705,11 +677,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ShowShardDetails"`: An optional flag that can be included in the request to retrieve information about the individual shard(s). """ -function describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb("DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -722,13 +691,13 @@ end describe_engine_versions() describe_engine_versions(params::Dict{String,<:Any}) -Returns a list of the available Redis engine versions. +Returns a list of the available Redis OSS engine versions. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DefaultOnly"`: If true, specifies that only the default version of the specified engine or engine and major version combination is to be returned. -- `"EngineVersion"`: The Redis engine version +- `"EngineVersion"`: The Redis OSS engine version - `"MaxResults"`: The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. @@ -739,11 +708,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ParameterGroupFamily"`: The name of a specific parameter group family to return details for. """ -function describe_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DescribeEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_engine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "DescribeEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_engine_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -783,11 +750,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: The beginning of the time interval to retrieve events for, specified in ISO 8601 format. Example: 2017-03-30T07:03:49.555Z """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -814,11 +778,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the returned token to retrieve the next page. Keep all other arguments unchanged. - `"ParameterGroupName"`: The name of a specific parameter group to return details for. """ -function describe_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DescribeParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "DescribeParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_parameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -849,16 +811,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. """ -function describe_parameters( +describe_parameters( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "DescribeParameters", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "DescribeParameters", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_parameters( ParameterGroupName, params::AbstractDict{String}; @@ -904,11 +864,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReservedNodesOfferingId"`: The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier. """ -function describe_reserved_nodes(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DescribeReservedNodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_reserved_nodes(; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "DescribeReservedNodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_reserved_nodes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -944,15 +902,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReservedNodesOfferingId"`: The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier. """ -function describe_reserved_nodes_offerings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return memorydb( +describe_reserved_nodes_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb( "DescribeReservedNodesOfferings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_reserved_nodes_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -983,11 +938,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServiceUpdateName"`: The unique ID of the service update to describe. - `"Status"`: The status(es) of the service updates to filter on """ -function describe_service_updates(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DescribeServiceUpdates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_service_updates(; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "DescribeServiceUpdates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_service_updates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1026,11 +979,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by MemoryDB. If set to user the output shows snapshots that were manually created. If omitted, the output shows both automatically and manually created snapshots. """ -function describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb("DescribeSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1057,11 +1007,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the returned token to retrieve the next page. Keep all other arguments unchanged. - `"SubnetGroupName"`: The name of the subnet group to return details for. """ -function describe_subnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "DescribeSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_subnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb("DescribeSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_subnet_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1091,9 +1038,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the returned token to retrieve the next page. Keep all other arguments unchanged. - `"UserName"`: The name of the user """ -function describe_users(; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb("DescribeUsers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_users(; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb("DescribeUsers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_users( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1116,16 +1062,13 @@ certain conditions such as large scale operational events, Amazon may block this - `shard_name`: The name of the shard """ -function failover_shard( - ClusterName, ShardName; aws_config::AbstractAWSConfig=current_aws_config() -) - return memorydb( +failover_shard(ClusterName, ShardName; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb( "FailoverShard", Dict{String,Any}("ClusterName" => ClusterName, "ShardName" => ShardName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function failover_shard( ClusterName, ShardName, @@ -1160,16 +1103,14 @@ parameter must be one of the node types returned by this operation. list of node types you can scale up to. """ -function list_allowed_node_type_updates( +list_allowed_node_type_updates( ClusterName; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "ListAllowedNodeTypeUpdates", + Dict{String,Any}("ClusterName" => ClusterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "ListAllowedNodeTypeUpdates", - Dict{String,Any}("ClusterName" => ClusterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_allowed_node_type_updates( ClusterName, params::AbstractDict{String}; @@ -1198,14 +1139,12 @@ For more information, see Tagging your MemoryDB resources list of tags """ -function list_tags(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "ListTags", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "ListTags", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( ResourceArn, params::AbstractDict{String}; @@ -1238,16 +1177,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. """ -function purchase_reserved_nodes_offering( +purchase_reserved_nodes_offering( ReservedNodesOfferingId; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "PurchaseReservedNodesOffering", + Dict{String,Any}("ReservedNodesOfferingId" => ReservedNodesOfferingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "PurchaseReservedNodesOffering", - Dict{String,Any}("ReservedNodesOfferingId" => ReservedNodesOfferingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_reserved_nodes_offering( ReservedNodesOfferingId, params::AbstractDict{String}; @@ -1287,16 +1224,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AllParameters is true, do not use ParameterNames. If AllParameters is false, you must specify the name of at least one parameter to reset. """ -function reset_parameter_group( +reset_parameter_group( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = memorydb( + "ResetParameterGroup", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "ResetParameterGroup", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_parameter_group( ParameterGroupName, params::AbstractDict{String}; @@ -1334,14 +1269,13 @@ costs across multiple services. For more information, see Using Cost Allocation must be accompanied by a tag value, although null is accepted. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1374,16 +1308,13 @@ Use this operation to remove tags on a resource - `tag_keys`: The list of keys of the tags that are to be removed """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return memorydb( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1418,14 +1349,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserNamesToAdd"`: The list of users to add to the Access Control List - `"UserNamesToRemove"`: The list of users to remove from the Access Control List """ -function update_acl(ACLName; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "UpdateACL", - Dict{String,Any}("ACLName" => ACLName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_acl(ACLName; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "UpdateACL", + Dict{String,Any}("ACLName" => ACLName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_acl( ACLName, params::AbstractDict{String}; @@ -1475,14 +1404,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnsTopicStatus"`: The status of the Amazon SNS notification topic. Notifications are sent only if the status is active. """ -function update_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "UpdateCluster", - Dict{String,Any}("ClusterName" => ClusterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "UpdateCluster", + Dict{String,Any}("ClusterName" => ClusterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_cluster( ClusterName, params::AbstractDict{String}; @@ -1512,21 +1439,19 @@ request by submitting a list parameter name and value pairs. maximum of 20 parameters may be updated per request. """ -function update_parameter_group( +update_parameter_group( ParameterGroupName, ParameterNameValues; aws_config::AbstractAWSConfig=current_aws_config(), +) = memorydb( + "UpdateParameterGroup", + Dict{String,Any}( + "ParameterGroupName" => ParameterGroupName, + "ParameterNameValues" => ParameterNameValues, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return memorydb( - "UpdateParameterGroup", - Dict{String,Any}( - "ParameterGroupName" => ParameterGroupName, - "ParameterNameValues" => ParameterNameValues, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_parameter_group( ParameterGroupName, ParameterNameValues, @@ -1564,16 +1489,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the subnet group - `"SubnetIds"`: The EC2 subnet IDs for the subnet group. """ -function update_subnet_group( - SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return memorydb( +update_subnet_group(SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + memorydb( "UpdateSubnetGroup", Dict{String,Any}("SubnetGroupName" => SubnetGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_subnet_group( SubnetGroupName, params::AbstractDict{String}; @@ -1606,14 +1528,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AuthenticationMode"`: Denotes the user's authentication properties, such as whether it requires a password to authenticate. """ -function update_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return memorydb( - "UpdateUser", - Dict{String,Any}("UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_user(UserName; aws_config::AbstractAWSConfig=current_aws_config()) = memorydb( + "UpdateUser", + Dict{String,Any}("UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_user( UserName, params::AbstractDict{String}; diff --git a/src/services/mgn.jl b/src/services/mgn.jl index df6714061..2eea63f1e 100644 --- a/src/services/mgn.jl +++ b/src/services/mgn.jl @@ -17,17 +17,14 @@ Archive application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function archive_application( - applicationID; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +archive_application(applicationID; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/ArchiveApplication", Dict{String,Any}("applicationID" => applicationID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function archive_application( applicationID, params::AbstractDict{String}; @@ -57,15 +54,13 @@ Archive wave. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function archive_wave(waveID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/ArchiveWave", - Dict{String,Any}("waveID" => waveID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +archive_wave(waveID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/ArchiveWave", + Dict{String,Any}("waveID" => waveID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function archive_wave( waveID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -92,17 +87,15 @@ Associate applications to wave. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function associate_applications( +associate_applications( applicationIDs, waveID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/AssociateApplications", + Dict{String,Any}("applicationIDs" => applicationIDs, "waveID" => waveID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/AssociateApplications", - Dict{String,Any}("applicationIDs" => applicationIDs, "waveID" => waveID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_applications( applicationIDs, waveID, @@ -138,19 +131,17 @@ Associate source servers to application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function associate_source_servers( +associate_source_servers( applicationID, sourceServerIDs; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/AssociateSourceServers", + Dict{String,Any}( + "applicationID" => applicationID, "sourceServerIDs" => sourceServerIDs + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/AssociateSourceServers", - Dict{String,Any}( - "applicationID" => applicationID, "sourceServerIDs" => sourceServerIDs - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_source_servers( applicationID, sourceServerIDs, @@ -191,17 +182,15 @@ if the Source Server is already launchable (dataReplicationInfo.lagDuration is n Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: The request to change the source server migration account ID. """ -function change_server_life_cycle_state( +change_server_life_cycle_state( lifeCycle, sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/ChangeServerLifeCycleState", + Dict{String,Any}("lifeCycle" => lifeCycle, "sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/ChangeServerLifeCycleState", - Dict{String,Any}("lifeCycle" => lifeCycle, "sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function change_server_life_cycle_state( lifeCycle, sourceServerID, @@ -240,15 +229,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Application description. - `"tags"`: Application tags. """ -function create_application(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/CreateApplication", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_application(name; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/CreateApplication", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_application( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -276,17 +263,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ssmCommandConfig"`: Create Connector request SSM command config. - `"tags"`: Create Connector request tags. """ -function create_connector( - name, ssmInstanceID; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +create_connector(name, ssmInstanceID; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/CreateConnector", Dict{String,Any}("name" => name, "ssmInstanceID" => ssmInstanceID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_connector( name, ssmInstanceID, @@ -331,16 +315,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Request to associate tags during creation of a Launch Configuration Template. - `"targetInstanceTypeRightSizingMethod"`: Target instance type right-sizing method. """ -function create_launch_configuration_template(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +create_launch_configuration_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/CreateLaunchConfigurationTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_launch_configuration_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -391,7 +372,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"useFipsEndpoint"`: Request to use Fips Endpoint during Replication Settings template creation. """ -function create_replication_configuration_template( +create_replication_configuration_template( associateDefaultSecurityGroup, bandwidthThrottling, createPublicIP, @@ -404,27 +385,25 @@ function create_replication_configuration_template( stagingAreaTags, useDedicatedReplicationServer; aws_config::AbstractAWSConfig=current_aws_config(), +) = mgn( + "POST", + "/CreateReplicationConfigurationTemplate", + Dict{String,Any}( + "associateDefaultSecurityGroup" => associateDefaultSecurityGroup, + "bandwidthThrottling" => bandwidthThrottling, + "createPublicIP" => createPublicIP, + "dataPlaneRouting" => dataPlaneRouting, + "defaultLargeStagingDiskType" => defaultLargeStagingDiskType, + "ebsEncryption" => ebsEncryption, + "replicationServerInstanceType" => replicationServerInstanceType, + "replicationServersSecurityGroupsIDs" => replicationServersSecurityGroupsIDs, + "stagingAreaSubnetId" => stagingAreaSubnetId, + "stagingAreaTags" => stagingAreaTags, + "useDedicatedReplicationServer" => useDedicatedReplicationServer, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/CreateReplicationConfigurationTemplate", - Dict{String,Any}( - "associateDefaultSecurityGroup" => associateDefaultSecurityGroup, - "bandwidthThrottling" => bandwidthThrottling, - "createPublicIP" => createPublicIP, - "dataPlaneRouting" => dataPlaneRouting, - "defaultLargeStagingDiskType" => defaultLargeStagingDiskType, - "ebsEncryption" => ebsEncryption, - "replicationServerInstanceType" => replicationServerInstanceType, - "replicationServersSecurityGroupsIDs" => replicationServersSecurityGroupsIDs, - "stagingAreaSubnetId" => stagingAreaSubnetId, - "stagingAreaTags" => stagingAreaTags, - "useDedicatedReplicationServer" => useDedicatedReplicationServer, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_configuration_template( associateDefaultSecurityGroup, bandwidthThrottling, @@ -483,15 +462,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Wave description. - `"tags"`: Wave tags. """ -function create_wave(name; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/CreateWave", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_wave(name; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/CreateWave", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_wave( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -517,17 +494,13 @@ Delete application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function delete_application( - applicationID; aws_config::AbstractAWSConfig=current_aws_config() +delete_application(applicationID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/DeleteApplication", + Dict{String,Any}("applicationID" => applicationID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/DeleteApplication", - Dict{String,Any}("applicationID" => applicationID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application( applicationID, params::AbstractDict{String}; @@ -554,15 +527,13 @@ Delete Connector. - `connector_id`: Delete Connector request connector ID. """ -function delete_connector(connectorID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/DeleteConnector", - Dict{String,Any}("connectorID" => connectorID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_connector(connectorID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/DeleteConnector", + Dict{String,Any}("connectorID" => connectorID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_connector( connectorID, params::AbstractDict{String}; @@ -592,15 +563,13 @@ Deletes a single Job by ID. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Request to delete Job from service by Account ID. """ -function delete_job(jobID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/DeleteJob", - Dict{String,Any}("jobID" => jobID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_job(jobID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/DeleteJob", + Dict{String,Any}("jobID" => jobID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_job( jobID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -623,17 +592,15 @@ Deletes a single Launch Configuration Template by ID. - `launch_configuration_template_id`: ID of resource to be deleted. """ -function delete_launch_configuration_template( +delete_launch_configuration_template( launchConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/DeleteLaunchConfigurationTemplate", + Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/DeleteLaunchConfigurationTemplate", - Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_launch_configuration_template( launchConfigurationTemplateID, params::AbstractDict{String}; @@ -667,19 +634,17 @@ Deletes a single Replication Configuration Template by ID Template from service by Replication Configuration Template ID. """ -function delete_replication_configuration_template( +delete_replication_configuration_template( replicationConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/DeleteReplicationConfigurationTemplate", + Dict{String,Any}( + "replicationConfigurationTemplateID" => replicationConfigurationTemplateID + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/DeleteReplicationConfigurationTemplate", - Dict{String,Any}( - "replicationConfigurationTemplateID" => replicationConfigurationTemplateID - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_configuration_template( replicationConfigurationTemplateID, params::AbstractDict{String}; @@ -716,17 +681,14 @@ Deletes a single source server by ID. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Request to delete Source Server from service by Account ID. """ -function delete_source_server( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +delete_source_server(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/DeleteSourceServer", Dict{String,Any}("sourceServerID" => sourceServerID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_source_server( sourceServerID, params::AbstractDict{String}; @@ -753,17 +715,14 @@ Deletes a given vCenter client by ID. - `vcenter_client_id`: ID of resource to be deleted. """ -function delete_vcenter_client( - vcenterClientID; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +delete_vcenter_client(vcenterClientID; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/DeleteVcenterClient", Dict{String,Any}("vcenterClientID" => vcenterClientID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vcenter_client( vcenterClientID, params::AbstractDict{String}; @@ -795,15 +754,13 @@ Delete wave. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function delete_wave(waveID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/DeleteWave", - Dict{String,Any}("waveID" => waveID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_wave(waveID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/DeleteWave", + Dict{String,Any}("waveID" => waveID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_wave( waveID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -831,15 +788,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Request to describe Job log item maximum results. - `"nextToken"`: Request to describe Job log next token. """ -function describe_job_log_items(jobID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/DescribeJobLogItems", - Dict{String,Any}("jobID" => jobID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_job_log_items(jobID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/DescribeJobLogItems", + Dict{String,Any}("jobID" => jobID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_job_log_items( jobID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -869,11 +824,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Request to describe job log items by max results. - `"nextToken"`: Request to describe job log items by next token. """ -function describe_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", "/DescribeJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn("POST", "/DescribeJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -899,16 +851,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum results to be returned in DescribeLaunchConfigurationTemplates. - `"nextToken"`: Next pagination token returned from DescribeLaunchConfigurationTemplates. """ -function describe_launch_configuration_templates(; +describe_launch_configuration_templates(; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/DescribeLaunchConfigurationTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/DescribeLaunchConfigurationTemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_launch_configuration_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -934,16 +884,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"replicationConfigurationTemplateIDs"`: Request to describe Replication Configuration template by template IDs. """ -function describe_replication_configuration_templates(; +describe_replication_configuration_templates(; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/DescribeReplicationConfigurationTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/DescribeReplicationConfigurationTemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_replication_configuration_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -969,14 +917,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Request to filter Source Servers list by maximum results. - `"nextToken"`: Request to filter Source Servers list by next token. """ -function describe_source_servers(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/DescribeSourceServers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_source_servers(; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/DescribeSourceServers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_source_servers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1000,14 +946,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum results to be returned in DescribeVcenterClients. - `"nextToken"`: Next pagination token to be provided for DescribeVcenterClients. """ -function describe_vcenter_clients(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "GET", - "/DescribeVcenterClients"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_vcenter_clients(; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "GET", + "/DescribeVcenterClients"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_vcenter_clients( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1034,17 +978,15 @@ Disassociate applications from wave. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function disassociate_applications( +disassociate_applications( applicationIDs, waveID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/DisassociateApplications", + Dict{String,Any}("applicationIDs" => applicationIDs, "waveID" => waveID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/DisassociateApplications", - Dict{String,Any}("applicationIDs" => applicationIDs, "waveID" => waveID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_applications( applicationIDs, waveID, @@ -1080,19 +1022,17 @@ Disassociate source servers from application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function disassociate_source_servers( +disassociate_source_servers( applicationID, sourceServerIDs; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/DisassociateSourceServers", + Dict{String,Any}( + "applicationID" => applicationID, "sourceServerIDs" => sourceServerIDs + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/DisassociateSourceServers", - Dict{String,Any}( - "applicationID" => applicationID, "sourceServerIDs" => sourceServerIDs - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_source_servers( applicationID, sourceServerIDs, @@ -1138,17 +1078,15 @@ dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be null Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Request to disconnect Source Server from service by Account ID. """ -function disconnect_from_service( +disconnect_from_service( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/DisconnectFromService", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/DisconnectFromService", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disconnect_from_service( sourceServerID, params::AbstractDict{String}; @@ -1186,17 +1124,13 @@ dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be null Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Request to finalize Cutover by Source Account ID. """ -function finalize_cutover( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +finalize_cutover(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/FinalizeCutover", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/FinalizeCutover", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function finalize_cutover( sourceServerID, params::AbstractDict{String}; @@ -1226,17 +1160,15 @@ Lists all LaunchConfigurations available, filtered by Source Server IDs. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Request to get Launch Configuration information by Account ID. """ -function get_launch_configuration( +get_launch_configuration( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/GetLaunchConfiguration", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/GetLaunchConfiguration", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_launch_configuration( sourceServerID, params::AbstractDict{String}; @@ -1266,17 +1198,15 @@ Lists all ReplicationConfigurations, filtered by Source Server ID. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Request to get Replication Configuration by Account ID. """ -function get_replication_configuration( +get_replication_configuration( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/GetReplicationConfiguration", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/GetReplicationConfiguration", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_replication_configuration( sourceServerID, params::AbstractDict{String}; @@ -1300,11 +1230,9 @@ end Initialize Application Migration Service. """ -function initialize_service(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", "/InitializeService"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +initialize_service(; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", "/InitializeService"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function initialize_service( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1330,11 +1258,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum results to return when listing applications. - `"nextToken"`: Request next token. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", "/ListApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn("POST", "/ListApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1359,11 +1284,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: List Connectors Request max results. - `"nextToken"`: List Connectors Request next token. """ -function list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", "/ListConnectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn("POST", "/ListConnectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1390,15 +1312,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: List export errors request max results. - `"nextToken"`: List export errors request next token. """ -function list_export_errors(exportID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/ListExportErrors", - Dict{String,Any}("exportID" => exportID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_export_errors(exportID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/ListExportErrors", + Dict{String,Any}("exportID" => exportID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_export_errors( exportID, params::AbstractDict{String}; @@ -1427,11 +1347,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: List export request max results. - `"nextToken"`: List export request next token. """ -function list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", "/ListExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn("POST", "/ListExports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1458,15 +1375,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: List import errors request max results. - `"nextToken"`: List import errors request next token. """ -function list_import_errors(importID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/ListImportErrors", - Dict{String,Any}("importID" => importID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_import_errors(importID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/ListImportErrors", + Dict{String,Any}("importID" => importID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_import_errors( importID, params::AbstractDict{String}; @@ -1495,11 +1410,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: List imports request max results. - `"nextToken"`: List imports request next token. """ -function list_imports(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", "/ListImports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_imports(; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn("POST", "/ListImports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_imports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1523,14 +1435,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: List managed accounts request max results. - `"nextToken"`: List managed accounts request next token. """ -function list_managed_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/ListManagedAccounts"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_managed_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/ListManagedAccounts"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_managed_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1561,17 +1471,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys migration custom actions. - `"nextToken"`: Next token to use when listing source server post migration custom actions. """ -function list_source_server_actions( +list_source_server_actions( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/ListSourceServerActions", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/ListSourceServerActions", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_source_server_actions( sourceServerID, params::AbstractDict{String}; @@ -1598,16 +1506,13 @@ List all tags for your Application Migration Service resources. - `resource_arn`: List tags for resource request by ARN. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1638,17 +1543,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys custom actions. - `"nextToken"`: Next token to use when listing template post migration custom actions. """ -function list_template_actions( +list_template_actions( launchConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/ListTemplateActions", + Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/ListTemplateActions", - Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_template_actions( launchConfigurationTemplateID, params::AbstractDict{String}; @@ -1684,9 +1587,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Maximum results to return when listing waves. - `"nextToken"`: Request next token. """ -function list_waves(; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn("POST", "/ListWaves"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_waves(; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn("POST", "/ListWaves"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_waves( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1710,17 +1612,13 @@ lifecycle. state which equals DISCONNECTED or CUTOVER. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Mark as archived by Account ID. """ -function mark_as_archived( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +mark_as_archived(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/MarkAsArchived", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/MarkAsArchived", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function mark_as_archived( sourceServerID, params::AbstractDict{String}; @@ -1750,17 +1648,13 @@ Pause Replication. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Pause Replication Request account ID. """ -function pause_replication( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +pause_replication(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/PauseReplication", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/PauseReplication", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function pause_replication( sourceServerID, params::AbstractDict{String}; @@ -1803,28 +1697,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parameters"`: Source server post migration custom action parameters. - `"timeoutSeconds"`: Source server post migration custom action timeout in seconds. """ -function put_source_server_action( +put_source_server_action( actionID, actionName, documentIdentifier, order, sourceServerID; aws_config::AbstractAWSConfig=current_aws_config(), +) = mgn( + "POST", + "/PutSourceServerAction", + Dict{String,Any}( + "actionID" => actionID, + "actionName" => actionName, + "documentIdentifier" => documentIdentifier, + "order" => order, + "sourceServerID" => sourceServerID, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/PutSourceServerAction", - Dict{String,Any}( - "actionID" => actionID, - "actionName" => actionName, - "documentIdentifier" => documentIdentifier, - "order" => order, - "sourceServerID" => sourceServerID, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_source_server_action( actionID, actionName, @@ -1881,28 +1773,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parameters"`: Template post migration custom action parameters. - `"timeoutSeconds"`: Template post migration custom action timeout in seconds. """ -function put_template_action( +put_template_action( actionID, actionName, documentIdentifier, launchConfigurationTemplateID, order; aws_config::AbstractAWSConfig=current_aws_config(), +) = mgn( + "POST", + "/PutTemplateAction", + Dict{String,Any}( + "actionID" => actionID, + "actionName" => actionName, + "documentIdentifier" => documentIdentifier, + "launchConfigurationTemplateID" => launchConfigurationTemplateID, + "order" => order, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/PutTemplateAction", - Dict{String,Any}( - "actionID" => actionID, - "actionName" => actionName, - "documentIdentifier" => documentIdentifier, - "launchConfigurationTemplateID" => launchConfigurationTemplateID, - "order" => order, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_template_action( actionID, actionName, @@ -1947,17 +1837,15 @@ Remove source server post migration custom action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Source server post migration account ID. """ -function remove_source_server_action( +remove_source_server_action( actionID, sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/RemoveSourceServerAction", + Dict{String,Any}("actionID" => actionID, "sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/RemoveSourceServerAction", - Dict{String,Any}("actionID" => actionID, "sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_source_server_action( actionID, sourceServerID, @@ -1993,22 +1881,20 @@ Remove template post migration custom action. migration custom action to remove. """ -function remove_template_action( +remove_template_action( actionID, launchConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config(), +) = mgn( + "POST", + "/RemoveTemplateAction", + Dict{String,Any}( + "actionID" => actionID, + "launchConfigurationTemplateID" => launchConfigurationTemplateID, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/RemoveTemplateAction", - Dict{String,Any}( - "actionID" => actionID, - "launchConfigurationTemplateID" => launchConfigurationTemplateID, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_template_action( actionID, launchConfigurationTemplateID, @@ -2046,17 +1932,14 @@ Resume Replication. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Resume Replication Request account ID. """ -function resume_replication( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +resume_replication(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/ResumeReplication", Dict{String,Any}("sourceServerID" => sourceServerID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resume_replication( sourceServerID, params::AbstractDict{String}; @@ -2089,17 +1972,14 @@ state. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Retry data replication for Account ID. """ -function retry_data_replication( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +retry_data_replication(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/RetryDataReplication", Dict{String,Any}("sourceServerID" => sourceServerID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function retry_data_replication( sourceServerID, params::AbstractDict{String}; @@ -2132,15 +2012,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"accountID"`: Start Cutover by Account IDs - `"tags"`: Start Cutover by Tags. """ -function start_cutover(sourceServerIDs; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/StartCutover", - Dict{String,Any}("sourceServerIDs" => sourceServerIDs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_cutover(sourceServerIDs; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/StartCutover", + Dict{String,Any}("sourceServerIDs" => sourceServerIDs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_cutover( sourceServerIDs, params::AbstractDict{String}; @@ -2173,15 +2051,13 @@ Start export. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"s3BucketOwner"`: Start export request s3 bucket owner. """ -function start_export(s3Bucket, s3Key; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/StartExport", - Dict{String,Any}("s3Bucket" => s3Bucket, "s3Key" => s3Key); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_export(s3Bucket, s3Key; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/StartExport", + Dict{String,Any}("s3Bucket" => s3Bucket, "s3Key" => s3Key); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_export( s3Bucket, s3Key, @@ -2214,17 +2090,13 @@ Start import. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: Start import request client token. """ -function start_import(s3BucketSource; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/StartImport", - Dict{String,Any}( - "s3BucketSource" => s3BucketSource, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_import(s3BucketSource; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/StartImport", + Dict{String,Any}("s3BucketSource" => s3BucketSource, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_import( s3BucketSource, params::AbstractDict{String}; @@ -2260,17 +2132,13 @@ Starts replication for SNAPSHOT_SHIPPING agents. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID on which to start replication. """ -function start_replication( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +start_replication(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/StartReplication", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/StartReplication", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_replication( sourceServerID, params::AbstractDict{String}; @@ -2303,15 +2171,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"accountID"`: Start Test for Account ID. - `"tags"`: Start Test by Tags. """ -function start_test(sourceServerIDs; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/StartTest", - Dict{String,Any}("sourceServerIDs" => sourceServerIDs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_test(sourceServerIDs; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/StartTest", + Dict{String,Any}("sourceServerIDs" => sourceServerIDs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_test( sourceServerIDs, params::AbstractDict{String}; @@ -2343,17 +2209,13 @@ Stop Replication. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Stop Replication Request account ID. """ -function stop_replication( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +stop_replication(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/StopReplication", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/StopReplication", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_replication( sourceServerID, params::AbstractDict{String}; @@ -2384,15 +2246,13 @@ optional value. - `tags`: Tag resource by Tags. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -2424,17 +2284,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"accountID"`: Terminate Target instance by Account ID - `"tags"`: Terminate Target instance by Tags. """ -function terminate_target_instances( +terminate_target_instances( sourceServerIDs; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/TerminateTargetInstances", + Dict{String,Any}("sourceServerIDs" => sourceServerIDs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/TerminateTargetInstances", - Dict{String,Any}("sourceServerIDs" => sourceServerIDs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function terminate_target_instances( sourceServerIDs, params::AbstractDict{String}; @@ -2466,17 +2324,14 @@ Unarchive application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function unarchive_application( - applicationID; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +unarchive_application(applicationID; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/UnarchiveApplication", Dict{String,Any}("applicationID" => applicationID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function unarchive_application( applicationID, params::AbstractDict{String}; @@ -2506,15 +2361,13 @@ Unarchive wave. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID. """ -function unarchive_wave(waveID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/UnarchiveWave", - Dict{String,Any}("waveID" => waveID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +unarchive_wave(waveID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/UnarchiveWave", + Dict{String,Any}("waveID" => waveID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function unarchive_wave( waveID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2539,17 +2392,14 @@ resources. - `tag_keys`: Untag resource by Keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2580,17 +2430,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Application description. - `"name"`: Application name. """ -function update_application( - applicationID; aws_config::AbstractAWSConfig=current_aws_config() +update_application(applicationID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/UpdateApplication", + Dict{String,Any}("applicationID" => applicationID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/UpdateApplication", - Dict{String,Any}("applicationID" => applicationID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application( applicationID, params::AbstractDict{String}; @@ -2621,15 +2467,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: Update Connector request name. - `"ssmCommandConfig"`: Update Connector request SSM command config. """ -function update_connector(connectorID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/UpdateConnector", - Dict{String,Any}("connectorID" => connectorID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_connector(connectorID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/UpdateConnector", + Dict{String,Any}("connectorID" => connectorID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_connector( connectorID, params::AbstractDict{String}; @@ -2671,17 +2515,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"targetInstanceTypeRightSizingMethod"`: Update Launch configuration Target instance right sizing request. """ -function update_launch_configuration( +update_launch_configuration( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/UpdateLaunchConfiguration", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/UpdateLaunchConfiguration", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_launch_configuration( sourceServerID, params::AbstractDict{String}; @@ -2723,17 +2565,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"smallVolumeMaxSize"`: Small volume maximum size. - `"targetInstanceTypeRightSizingMethod"`: Target instance type right-sizing method. """ -function update_launch_configuration_template( +update_launch_configuration_template( launchConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/UpdateLaunchConfigurationTemplate", + Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/UpdateLaunchConfigurationTemplate", - Dict{String,Any}("launchConfigurationTemplateID" => launchConfigurationTemplateID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_launch_configuration_template( launchConfigurationTemplateID, params::AbstractDict{String}; @@ -2789,17 +2629,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Replication Server request. - `"useFipsEndpoint"`: Update replication configuration use Fips Endpoint. """ -function update_replication_configuration( +update_replication_configuration( sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/UpdateReplicationConfiguration", + Dict{String,Any}("sourceServerID" => sourceServerID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/UpdateReplicationConfiguration", - Dict{String,Any}("sourceServerID" => sourceServerID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_replication_configuration( sourceServerID, params::AbstractDict{String}; @@ -2852,19 +2690,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys dedicated Replication Server request. - `"useFipsEndpoint"`: Update replication configuration template use Fips Endpoint request. """ -function update_replication_configuration_template( +update_replication_configuration_template( replicationConfigurationTemplateID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/UpdateReplicationConfigurationTemplate", + Dict{String,Any}( + "replicationConfigurationTemplateID" => replicationConfigurationTemplateID + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/UpdateReplicationConfigurationTemplate", - Dict{String,Any}( - "replicationConfigurationTemplateID" => replicationConfigurationTemplateID - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_replication_configuration_template( replicationConfigurationTemplateID, params::AbstractDict{String}; @@ -2902,17 +2738,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"accountID"`: Update Source Server request account ID. - `"connectorAction"`: Update Source Server request connector action. """ -function update_source_server( - sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() -) - return mgn( +update_source_server(sourceServerID; aws_config::AbstractAWSConfig=current_aws_config()) = + mgn( "POST", "/UpdateSourceServer", Dict{String,Any}("sourceServerID" => sourceServerID); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_source_server( sourceServerID, params::AbstractDict{String}; @@ -2944,19 +2777,17 @@ replication type. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountID"`: Account ID on which to update replication type. """ -function update_source_server_replication_type( +update_source_server_replication_type( replicationType, sourceServerID; aws_config::AbstractAWSConfig=current_aws_config() +) = mgn( + "POST", + "/UpdateSourceServerReplicationType", + Dict{String,Any}( + "replicationType" => replicationType, "sourceServerID" => sourceServerID + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mgn( - "POST", - "/UpdateSourceServerReplicationType", - Dict{String,Any}( - "replicationType" => replicationType, "sourceServerID" => sourceServerID - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_source_server_replication_type( replicationType, sourceServerID, @@ -2995,15 +2826,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Wave description. - `"name"`: Wave name. """ -function update_wave(waveID; aws_config::AbstractAWSConfig=current_aws_config()) - return mgn( - "POST", - "/UpdateWave", - Dict{String,Any}("waveID" => waveID); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_wave(waveID; aws_config::AbstractAWSConfig=current_aws_config()) = mgn( + "POST", + "/UpdateWave", + Dict{String,Any}("waveID" => waveID); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_wave( waveID, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/migration_hub.jl b/src/services/migration_hub.jl index 86ca59754..4b757d0aa 100644 --- a/src/services/migration_hub.jl +++ b/src/services/migration_hub.jl @@ -28,23 +28,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function associate_created_artifact( +associate_created_artifact( CreatedArtifact, MigrationTaskName, ProgressUpdateStream; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "AssociateCreatedArtifact", + Dict{String,Any}( + "CreatedArtifact" => CreatedArtifact, + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "AssociateCreatedArtifact", - Dict{String,Any}( - "CreatedArtifact" => CreatedArtifact, - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_created_artifact( CreatedArtifact, MigrationTaskName, @@ -88,23 +86,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function associate_discovered_resource( +associate_discovered_resource( DiscoveredResource, MigrationTaskName, ProgressUpdateStream; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "AssociateDiscoveredResource", + Dict{String,Any}( + "DiscoveredResource" => DiscoveredResource, + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "AssociateDiscoveredResource", - Dict{String,Any}( - "DiscoveredResource" => DiscoveredResource, - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_discovered_resource( DiscoveredResource, MigrationTaskName, @@ -149,16 +145,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function create_progress_update_stream( +create_progress_update_stream( ProgressUpdateStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub( + "CreateProgressUpdateStream", + Dict{String,Any}("ProgressUpdateStreamName" => ProgressUpdateStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "CreateProgressUpdateStream", - Dict{String,Any}("ProgressUpdateStreamName" => ProgressUpdateStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_progress_update_stream( ProgressUpdateStreamName, params::AbstractDict{String}; @@ -205,16 +199,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function delete_progress_update_stream( +delete_progress_update_stream( ProgressUpdateStreamName; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub( + "DeleteProgressUpdateStream", + Dict{String,Any}("ProgressUpdateStreamName" => ProgressUpdateStreamName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "DeleteProgressUpdateStream", - Dict{String,Any}("ProgressUpdateStreamName" => ProgressUpdateStreamName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_progress_update_stream( ProgressUpdateStreamName, params::AbstractDict{String}; @@ -245,16 +237,14 @@ Gets the migration status of an application. identifies the grouped application. """ -function describe_application_state( +describe_application_state( ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub( + "DescribeApplicationState", + Dict{String,Any}("ApplicationId" => ApplicationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "DescribeApplicationState", - Dict{String,Any}("ApplicationId" => ApplicationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application_state( ApplicationId, params::AbstractDict{String}; @@ -282,21 +272,19 @@ Retrieves a list of all attributes associated with a specific migration task. - `progress_update_stream`: The name of the ProgressUpdateStream. """ -function describe_migration_task( +describe_migration_task( MigrationTaskName, ProgressUpdateStream; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "DescribeMigrationTask", + Dict{String,Any}( + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "DescribeMigrationTask", - Dict{String,Any}( - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_migration_task( MigrationTaskName, ProgressUpdateStream, @@ -344,23 +332,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function disassociate_created_artifact( +disassociate_created_artifact( CreatedArtifactName, MigrationTaskName, ProgressUpdateStream; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "DisassociateCreatedArtifact", + Dict{String,Any}( + "CreatedArtifactName" => CreatedArtifactName, + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "DisassociateCreatedArtifact", - Dict{String,Any}( - "CreatedArtifactName" => CreatedArtifactName, - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_created_artifact( CreatedArtifactName, MigrationTaskName, @@ -404,23 +390,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function disassociate_discovered_resource( +disassociate_discovered_resource( ConfigurationId, MigrationTaskName, ProgressUpdateStream; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "DisassociateDiscoveredResource", + Dict{String,Any}( + "ConfigurationId" => ConfigurationId, + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "DisassociateDiscoveredResource", - Dict{String,Any}( - "ConfigurationId" => ConfigurationId, - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_discovered_resource( ConfigurationId, MigrationTaskName, @@ -464,21 +448,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function import_migration_task( +import_migration_task( MigrationTaskName, ProgressUpdateStream; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "ImportMigrationTask", + Dict{String,Any}( + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "ImportMigrationTask", - Dict{String,Any}( - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_migration_task( MigrationTaskName, ProgressUpdateStream, @@ -519,11 +501,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. To retrieve the next page of results, make the call again using the returned token in NextToken. """ -function list_application_states(; aws_config::AbstractAWSConfig=current_aws_config()) - return migration_hub( +list_application_states(; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub( "ListApplicationStates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_application_states( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -556,21 +537,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. To retrieve the next page of results, make the call again using the returned token in NextToken. """ -function list_created_artifacts( +list_created_artifacts( MigrationTaskName, ProgressUpdateStream; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "ListCreatedArtifacts", + Dict{String,Any}( + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "ListCreatedArtifacts", - Dict{String,Any}( - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_created_artifacts( MigrationTaskName, ProgressUpdateStream, @@ -612,21 +591,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. To retrieve the next page of results, make the call again using the returned token in NextToken. """ -function list_discovered_resources( +list_discovered_resources( MigrationTaskName, ProgressUpdateStream; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "ListDiscoveredResources", + Dict{String,Any}( + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "ListDiscoveredResources", - Dict{String,Any}( - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_discovered_resources( MigrationTaskName, ProgressUpdateStream, @@ -667,11 +644,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys token in NextToken. - `"ResourceName"`: Filter migration tasks by discovered resource name. """ -function list_migration_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return migration_hub( - "ListMigrationTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_migration_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = migration_hub( + "ListMigrationTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_migration_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -693,11 +668,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. To retrieve the next page of results, make the call again using the returned token in NextToken. """ -function list_progress_update_streams(; aws_config::AbstractAWSConfig=current_aws_config()) - return migration_hub( +list_progress_update_streams(; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub( "ListProgressUpdateStreams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_progress_update_streams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -728,16 +702,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to test if the caller has permission to make the call. - `"UpdateDateTime"`: The timestamp when the application state changed. """ -function notify_application_state( +notify_application_state( ApplicationId, Status; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub( + "NotifyApplicationState", + Dict{String,Any}("ApplicationId" => ApplicationId, "Status" => Status); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "NotifyApplicationState", - Dict{String,Any}("ApplicationId" => ApplicationId, "Status" => Status); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_application_state( ApplicationId, Status, @@ -783,27 +755,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function notify_migration_task_state( +notify_migration_task_state( MigrationTaskName, NextUpdateSeconds, ProgressUpdateStream, Task, UpdateDateTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "NotifyMigrationTaskState", + Dict{String,Any}( + "MigrationTaskName" => MigrationTaskName, + "NextUpdateSeconds" => NextUpdateSeconds, + "ProgressUpdateStream" => ProgressUpdateStream, + "Task" => Task, + "UpdateDateTime" => UpdateDateTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "NotifyMigrationTaskState", - Dict{String,Any}( - "MigrationTaskName" => MigrationTaskName, - "NextUpdateSeconds" => NextUpdateSeconds, - "ProgressUpdateStream" => ProgressUpdateStream, - "Task" => Task, - "UpdateDateTime" => UpdateDateTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_migration_task_state( MigrationTaskName, NextUpdateSeconds, @@ -872,23 +842,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call. """ -function put_resource_attributes( +put_resource_attributes( MigrationTaskName, ProgressUpdateStream, ResourceAttributeList; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub( + "PutResourceAttributes", + Dict{String,Any}( + "MigrationTaskName" => MigrationTaskName, + "ProgressUpdateStream" => ProgressUpdateStream, + "ResourceAttributeList" => ResourceAttributeList, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub( - "PutResourceAttributes", - Dict{String,Any}( - "MigrationTaskName" => MigrationTaskName, - "ProgressUpdateStream" => ProgressUpdateStream, - "ResourceAttributeList" => ResourceAttributeList, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_attributes( MigrationTaskName, ProgressUpdateStream, diff --git a/src/services/migration_hub_refactor_spaces.jl b/src/services/migration_hub_refactor_spaces.jl index a59491136..943044218 100644 --- a/src/services/migration_hub_refactor_spaces.jl +++ b/src/services/migration_hub_refactor_spaces.jl @@ -33,26 +33,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to assign to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair. """ -function create_application( +create_application( EnvironmentIdentifier, Name, ProxyType, VpcId; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "POST", + "/environments/$(EnvironmentIdentifier)/applications", + Dict{String,Any}( + "Name" => Name, + "ProxyType" => ProxyType, + "VpcId" => VpcId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "POST", - "/environments/$(EnvironmentIdentifier)/applications", - Dict{String,Any}( - "Name" => Name, - "ProxyType" => ProxyType, - "VpcId" => VpcId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( EnvironmentIdentifier, Name, @@ -108,21 +106,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair. """ -function create_environment( +create_environment( Name, NetworkFabricType; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub_refactor_spaces( + "POST", + "/environments", + Dict{String,Any}( + "Name" => Name, + "NetworkFabricType" => NetworkFabricType, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "POST", - "/environments", - Dict{String,Any}( - "Name" => Name, - "NetworkFabricType" => NetworkFabricType, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment( Name, NetworkFabricType, @@ -218,25 +214,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services resource. Each tag consists of a key-value pair.. - `"UriPathRoute"`: The configuration for the URI path route type. """ -function create_route( +create_route( ApplicationIdentifier, EnvironmentIdentifier, RouteType, ServiceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "POST", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes", + Dict{String,Any}( + "RouteType" => RouteType, + "ServiceIdentifier" => ServiceIdentifier, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "POST", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes", - Dict{String,Any}( - "RouteType" => RouteType, - "ServiceIdentifier" => ServiceIdentifier, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_route( ApplicationIdentifier, EnvironmentIdentifier, @@ -297,23 +291,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys TTLs less than 60 seconds. - `"VpcId"`: The ID of the VPC. """ -function create_service( +create_service( ApplicationIdentifier, EndpointType, EnvironmentIdentifier, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "POST", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/services", + Dict{String,Any}( + "EndpointType" => EndpointType, "Name" => Name, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "POST", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/services", - Dict{String,Any}( - "EndpointType" => EndpointType, "Name" => Name, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service( ApplicationIdentifier, EndpointType, @@ -353,18 +345,16 @@ delete an application, you must first delete any services or routes within the a - `environment_identifier`: The ID of the environment. """ -function delete_application( +delete_application( ApplicationIdentifier, EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "DELETE", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "DELETE", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application( ApplicationIdentifier, EnvironmentIdentifier, @@ -392,16 +382,14 @@ environment. - `environment_identifier`: The ID of the environment. """ -function delete_environment( +delete_environment( EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub_refactor_spaces( + "DELETE", + "/environments/$(EnvironmentIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "DELETE", - "/environments/$(EnvironmentIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment( EnvironmentIdentifier, params::AbstractDict{String}; @@ -426,16 +414,13 @@ Deletes the resource policy set for the environment. - `identifier`: Amazon Resource Name (ARN) of the resource associated with the policy. """ -function delete_resource_policy( - Identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return migration_hub_refactor_spaces( +delete_resource_policy(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub_refactor_spaces( "DELETE", "/resourcepolicy/$(Identifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( Identifier, params::AbstractDict{String}; @@ -462,19 +447,17 @@ Deletes an Amazon Web Services Migration Hub Refactor Spaces route. - `route_identifier`: The ID of the route to delete. """ -function delete_route( +delete_route( ApplicationIdentifier, EnvironmentIdentifier, RouteIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "DELETE", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes/$(RouteIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "DELETE", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes/$(RouteIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_route( ApplicationIdentifier, EnvironmentIdentifier, @@ -506,19 +489,17 @@ Deletes an Amazon Web Services Migration Hub Refactor Spaces service. - `service_identifier`: The ID of the service to delete. """ -function delete_service( +delete_service( ApplicationIdentifier, EnvironmentIdentifier, ServiceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "DELETE", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/services/$(ServiceIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "DELETE", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/services/$(ServiceIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service( ApplicationIdentifier, EnvironmentIdentifier, @@ -546,18 +527,16 @@ Gets an Amazon Web Services Migration Hub Refactor Spaces application. - `environment_identifier`: The ID of the environment. """ -function get_application( +get_application( ApplicationIdentifier, EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "GET", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "GET", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application( ApplicationIdentifier, EnvironmentIdentifier, @@ -583,16 +562,13 @@ Gets an Amazon Web Services Migration Hub Refactor Spaces environment. - `environment_identifier`: The ID of the environment. """ -function get_environment( - EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return migration_hub_refactor_spaces( +get_environment(EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub_refactor_spaces( "GET", "/environments/$(EnvironmentIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_environment( EnvironmentIdentifier, params::AbstractDict{String}; @@ -617,14 +593,13 @@ Gets the resource-based permission policy that is set for the given environment. - `identifier`: The Amazon Resource Name (ARN) of the resource associated with the policy. """ -function get_resource_policy(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return migration_hub_refactor_spaces( +get_resource_policy(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub_refactor_spaces( "GET", "/resourcepolicy/$(Identifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( Identifier, params::AbstractDict{String}; @@ -651,19 +626,17 @@ Gets an Amazon Web Services Migration Hub Refactor Spaces route. - `route_identifier`: The ID of the route. """ -function get_route( +get_route( ApplicationIdentifier, EnvironmentIdentifier, RouteIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "GET", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes/$(RouteIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "GET", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes/$(RouteIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_route( ApplicationIdentifier, EnvironmentIdentifier, @@ -692,19 +665,17 @@ Gets an Amazon Web Services Migration Hub Refactor Spaces service. - `service_identifier`: The ID of the service. """ -function get_service( +get_service( ApplicationIdentifier, EnvironmentIdentifier, ServiceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "GET", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/services/$(ServiceIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "GET", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/services/$(ServiceIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service( ApplicationIdentifier, EnvironmentIdentifier, @@ -737,16 +708,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_applications( +list_applications( EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub_refactor_spaces( + "GET", + "/environments/$(EnvironmentIdentifier)/applications"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "GET", - "/environments/$(EnvironmentIdentifier)/applications"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_applications( EnvironmentIdentifier, params::AbstractDict{String}; @@ -777,16 +746,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_environment_vpcs( +list_environment_vpcs( EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub_refactor_spaces( + "GET", + "/environments/$(EnvironmentIdentifier)/vpcs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "GET", - "/environments/$(EnvironmentIdentifier)/vpcs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_vpcs( EnvironmentIdentifier, params::AbstractDict{String}; @@ -814,11 +781,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return migration_hub_refactor_spaces( +list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub_refactor_spaces( "GET", "/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -848,18 +814,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_routes( +list_routes( ApplicationIdentifier, EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "GET", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "GET", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_routes( ApplicationIdentifier, EnvironmentIdentifier, @@ -892,18 +856,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"nextToken"`: The token for the next page of results. """ -function list_services( +list_services( ApplicationIdentifier, EnvironmentIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "GET", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/services"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "GET", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/services"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_services( ApplicationIdentifier, EnvironmentIdentifier, @@ -930,16 +892,13 @@ OwnerAccountId. Listing tags in other accounts is not supported. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return migration_hub_refactor_spaces( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub_refactor_spaces( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -970,17 +929,15 @@ Resource Access Manager. The policy must not contain new lines or blank lines. being attached. """ -function put_resource_policy( +put_resource_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = migration_hub_refactor_spaces( + "PUT", + "/resourcepolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "PUT", - "/resourcepolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( Policy, ResourceArn, @@ -1017,15 +974,14 @@ environment’s transit gateway. - `tags`: The new or modified tags for the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return migration_hub_refactor_spaces( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub_refactor_spaces( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1054,17 +1010,14 @@ resource’s OwnerAccountId. Untagging resources across accounts is not supporte - `tag_keys`: The list of keys of the tags to be removed from the resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return migration_hub_refactor_spaces( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + migration_hub_refactor_spaces( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1095,21 +1048,19 @@ end - `route_identifier`: The unique identifier of the route to update. """ -function update_route( +update_route( ActivationState, ApplicationIdentifier, EnvironmentIdentifier, RouteIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = migration_hub_refactor_spaces( + "PATCH", + "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes/$(RouteIdentifier)", + Dict{String,Any}("ActivationState" => ActivationState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migration_hub_refactor_spaces( - "PATCH", - "/environments/$(EnvironmentIdentifier)/applications/$(ApplicationIdentifier)/routes/$(RouteIdentifier)", - Dict{String,Any}("ActivationState" => ActivationState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_route( ActivationState, ApplicationIdentifier, diff --git a/src/services/migrationhub_config.jl b/src/services/migrationhub_config.jl index e9d41f6c8..8af2b19ee 100644 --- a/src/services/migrationhub_config.jl +++ b/src/services/migrationhub_config.jl @@ -20,16 +20,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call. """ -function create_home_region_control( +create_home_region_control( HomeRegion, Target; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhub_config( + "CreateHomeRegionControl", + Dict{String,Any}("HomeRegion" => HomeRegion, "Target" => Target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhub_config( - "CreateHomeRegionControl", - Dict{String,Any}("HomeRegion" => HomeRegion, "Target" => Target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_home_region_control( HomeRegion, Target, @@ -62,16 +60,13 @@ does not delete discovery or migration tracking data in the home region. always a string that begins with \"hrc-\" followed by 12 lowercase letters and numbers. """ -function delete_home_region_control( - ControlId; aws_config::AbstractAWSConfig=current_aws_config() -) - return migrationhub_config( +delete_home_region_control(ControlId; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhub_config( "DeleteHomeRegionControl", Dict{String,Any}("ControlId" => ControlId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_home_region_control( ControlId, params::AbstractDict{String}; @@ -105,11 +100,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Target"`: The target parameter specifies the identifier to which the home region is applied, which is always of type ACCOUNT. It applies the home region to the current ACCOUNT. """ -function describe_home_region_controls(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhub_config( +describe_home_region_controls(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhub_config( "DescribeHomeRegionControls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_home_region_controls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -132,11 +126,9 @@ Application Discovery Service and AWS Migration Hub APIs, to obtain the account' Hub home region. """ -function get_home_region(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhub_config( - "GetHomeRegion"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_home_region(; aws_config::AbstractAWSConfig=current_aws_config()) = migrationhub_config( + "GetHomeRegion"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_home_region( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/migrationhuborchestrator.jl b/src/services/migrationhuborchestrator.jl index 4f0432067..4588cc6c1 100644 --- a/src/services/migrationhuborchestrator.jl +++ b/src/services/migrationhuborchestrator.jl @@ -22,21 +22,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags to add to the migration workflow template. - `"templateDescription"`: A description of the migration workflow template. """ -function create_template( +create_template( templateName, templateSource; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "POST", + "/template", + Dict{String,Any}( + "templateName" => templateName, + "templateSource" => templateSource, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "POST", - "/template", - Dict{String,Any}( - "templateName" => templateName, - "templateSource" => templateSource, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_template( templateName, templateSource, @@ -81,19 +79,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"stepTargets"`: The servers on which a step will be run. - `"tags"`: The tags to add on a migration workflow. """ -function create_workflow( +create_workflow( inputParameters, name, templateId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "POST", + "/migrationworkflow/", + Dict{String,Any}( + "inputParameters" => inputParameters, "name" => name, "templateId" => templateId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "POST", - "/migrationworkflow/", - Dict{String,Any}( - "inputParameters" => inputParameters, "name" => name, "templateId" => templateId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workflow( inputParameters, name, @@ -143,26 +139,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"workflowStepAutomationConfiguration"`: The custom script to run tests on source or target environments. """ -function create_workflow_step( +create_workflow_step( name, stepActionType, stepGroupId, workflowId; aws_config::AbstractAWSConfig=current_aws_config(), +) = migrationhuborchestrator( + "POST", + "/workflowstep", + Dict{String,Any}( + "name" => name, + "stepActionType" => stepActionType, + "stepGroupId" => stepGroupId, + "workflowId" => workflowId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "POST", - "/workflowstep", - Dict{String,Any}( - "name" => name, - "stepActionType" => stepActionType, - "stepGroupId" => stepGroupId, - "workflowId" => workflowId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workflow_step( name, stepActionType, @@ -207,17 +201,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next"`: The next step group. - `"previous"`: The previous step group. """ -function create_workflow_step_group( +create_workflow_step_group( name, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "POST", + "/workflowstepgroups", + Dict{String,Any}("name" => name, "workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "POST", - "/workflowstepgroups", - Dict{String,Any}("name" => name, "workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workflow_step_group( name, workflowId, @@ -247,11 +239,10 @@ Deletes a migration workflow template. - `id`: The ID of the request to delete a migration workflow template. """ -function delete_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +delete_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "DELETE", "/template/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -275,14 +266,13 @@ Orchestrator console to delete it. - `id`: The ID of the migration workflow you want to delete. """ -function delete_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +delete_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "DELETE", "/migrationworkflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_workflow( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -307,17 +297,15 @@ Delete a step in a migration workflow. Pause the workflow to delete a running st - `workflow_id`: The ID of the migration workflow. """ -function delete_workflow_step( +delete_workflow_step( id, stepGroupId, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "DELETE", + "/workflowstep/$(id)", + Dict{String,Any}("stepGroupId" => stepGroupId, "workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "DELETE", - "/workflowstep/$(id)", - Dict{String,Any}("stepGroupId" => stepGroupId, "workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workflow_step( id, stepGroupId, @@ -351,17 +339,15 @@ Delete a step group in a migration workflow. - `workflow_id`: The ID of the migration workflow. """ -function delete_workflow_step_group( +delete_workflow_step_group( id, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "DELETE", + "/workflowstepgroup/$(id)", + Dict{String,Any}("workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "DELETE", - "/workflowstepgroup/$(id)", - Dict{String,Any}("workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workflow_step_group( id, workflowId, @@ -389,14 +375,13 @@ Get the template you want to use for creating a migration workflow. - `id`: The ID of the template. """ -function get_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +get_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "GET", "/migrationworkflowtemplate/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -421,17 +406,15 @@ Get a specific step in a template. - `template_id`: The ID of the template. """ -function get_template_step( +get_template_step( id, stepGroupId, templateId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "GET", + "/templatestep/$(id)", + Dict{String,Any}("stepGroupId" => stepGroupId, "templateId" => templateId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "GET", - "/templatestep/$(id)", - Dict{String,Any}("stepGroupId" => stepGroupId, "templateId" => templateId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_template_step( id, stepGroupId, @@ -465,16 +448,14 @@ Get a step group in a template. - `template_id`: The ID of the template. """ -function get_template_step_group( +get_template_step_group( id, templateId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "GET", + "/templates/$(templateId)/stepgroups/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "GET", - "/templates/$(templateId)/stepgroups/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_template_step_group( id, templateId, @@ -500,14 +481,13 @@ Get migration workflow. - `id`: The ID of the migration workflow. """ -function get_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +get_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "GET", "/migrationworkflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_workflow( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -532,17 +512,15 @@ Get a step in the migration workflow. - `workflow_id`: The ID of the migration workflow. """ -function get_workflow_step( +get_workflow_step( id, stepGroupId, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "GET", + "/workflowstep/$(id)", + Dict{String,Any}("stepGroupId" => stepGroupId, "workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "GET", - "/workflowstep/$(id)", - Dict{String,Any}("stepGroupId" => stepGroupId, "workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workflow_step( id, stepGroupId, @@ -576,17 +554,15 @@ Get the step group of a migration workflow. - `workflow_id`: The ID of the migration workflow. """ -function get_workflow_step_group( +get_workflow_step_group( id, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "GET", + "/workflowstepgroup/$(id)", + Dict{String,Any}("workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "GET", - "/workflowstepgroup/$(id)", - Dict{String,Any}("workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workflow_step_group( id, workflowId, @@ -615,11 +591,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of plugins that can be returned. - `"nextToken"`: The pagination token. """ -function list_plugins(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +list_plugins(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "GET", "/plugins"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_plugins( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -638,16 +613,13 @@ List the tags added to a resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return migrationhuborchestrator( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -676,16 +648,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results that can be returned. - `"nextToken"`: The pagination token. """ -function list_template_step_groups( - templateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return migrationhuborchestrator( +list_template_step_groups(templateId; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "GET", "/templatestepgroups/$(templateId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_template_step_groups( templateId, params::AbstractDict{String}; @@ -715,17 +684,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results that can be returned. - `"nextToken"`: The pagination token. """ -function list_template_steps( +list_template_steps( stepGroupId, templateId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "GET", + "/templatesteps", + Dict{String,Any}("stepGroupId" => stepGroupId, "templateId" => templateId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "GET", - "/templatesteps", - Dict{String,Any}("stepGroupId" => stepGroupId, "templateId" => templateId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_template_steps( stepGroupId, templateId, @@ -759,14 +726,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the template. - `"nextToken"`: The pagination token. """ -function list_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +list_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "GET", "/migrationworkflowtemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -793,17 +759,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results that can be returned. - `"nextToken"`: The pagination token. """ -function list_workflow_step_groups( - workflowId; aws_config::AbstractAWSConfig=current_aws_config() -) - return migrationhuborchestrator( +list_workflow_step_groups(workflowId; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "GET", "/workflowstepgroups", Dict{String,Any}("workflowId" => workflowId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_workflow_step_groups( workflowId, params::AbstractDict{String}; @@ -835,16 +798,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results that can be returned. - `"nextToken"`: The pagination token. """ -function list_workflow_steps( +list_workflow_steps( stepGroupId, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "GET", + "/workflow/$(workflowId)/workflowstepgroups/$(stepGroupId)/workflowsteps"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "GET", - "/workflow/$(workflowId)/workflowstepgroups/$(stepGroupId)/workflowsteps"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workflow_steps( stepGroupId, workflowId, @@ -876,11 +837,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the migration workflow. - `"templateId"`: The ID of the template. """ -function list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "GET", "/migrationworkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_workflows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -905,17 +865,15 @@ Retry a failed step in a migration workflow. - `workflow_id`: The ID of the migration workflow. """ -function retry_workflow_step( +retry_workflow_step( id, stepGroupId, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "POST", + "/retryworkflowstep/$(id)", + Dict{String,Any}("stepGroupId" => stepGroupId, "workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "POST", - "/retryworkflowstep/$(id)", - Dict{String,Any}("stepGroupId" => stepGroupId, "workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function retry_workflow_step( id, stepGroupId, @@ -948,14 +906,13 @@ Start a migration workflow. - `id`: The ID of the migration workflow. """ -function start_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +start_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "POST", "/migrationworkflow/$(id)/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_workflow( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -978,14 +935,13 @@ Stop an ongoing migration workflow. - `id`: The ID of the migration workflow. """ -function stop_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +stop_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "POST", "/migrationworkflow/$(id)/stop"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_workflow( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1011,15 +967,14 @@ Tag a resource by specifying its Amazon Resource Name (ARN). resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1047,17 +1002,14 @@ Deletes the tags for a resource. - `tag_keys`: One or more tag keys. Specify only the tag keys, not the tag values. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return migrationhuborchestrator( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1089,15 +1041,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateDescription"`: The description of the migration workflow template to update. - `"templateName"`: The name of the migration workflow template to update. """ -function update_template(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +update_template(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "POST", "/template/$(id)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_template( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1128,14 +1079,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the migration workflow. - `"stepTargets"`: The servers on which a step will be run. """ -function update_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhuborchestrator( +update_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhuborchestrator( "POST", "/migrationworkflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_workflow( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1173,17 +1123,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"workflowStepAutomationConfiguration"`: The custom script to run tests on the source and target environments. """ -function update_workflow_step( +update_workflow_step( id, stepGroupId, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "POST", + "/workflowstep/$(id)", + Dict{String,Any}("stepGroupId" => stepGroupId, "workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "POST", - "/workflowstep/$(id)", - Dict{String,Any}("stepGroupId" => stepGroupId, "workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_workflow_step( id, stepGroupId, @@ -1223,17 +1171,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next"`: The next step group. - `"previous"`: The previous step group. """ -function update_workflow_step_group( +update_workflow_step_group( id, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhuborchestrator( + "POST", + "/workflowstepgroup/$(id)", + Dict{String,Any}("workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhuborchestrator( - "POST", - "/workflowstepgroup/$(id)", - Dict{String,Any}("workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_workflow_step_group( id, workflowId, diff --git a/src/services/migrationhubstrategy.jl b/src/services/migrationhubstrategy.jl index 6b543aab8..b75983cfb 100644 --- a/src/services/migrationhubstrategy.jl +++ b/src/services/migrationhubstrategy.jl @@ -15,16 +15,14 @@ using AWS.UUIDs an AWS account. """ -function get_application_component_details( +get_application_component_details( applicationComponentId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhubstrategy( + "GET", + "/get-applicationcomponent-details/$(applicationComponentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhubstrategy( - "GET", - "/get-applicationcomponent-details/$(applicationComponentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_component_details( applicationComponentId, params::AbstractDict{String}; @@ -51,16 +49,14 @@ running on a server. an AWS account. """ -function get_application_component_strategies( +get_application_component_strategies( applicationComponentId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhubstrategy( + "GET", + "/get-applicationcomponent-strategies/$(applicationComponentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhubstrategy( - "GET", - "/get-applicationcomponent-strategies/$(applicationComponentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_component_strategies( applicationComponentId, params::AbstractDict{String}; @@ -85,14 +81,13 @@ end - `id`: The assessmentid returned by StartAssessment. """ -function get_assessment(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +get_assessment(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/get-assessment/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_assessment( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -116,14 +111,13 @@ end StartImportFileTask. """ -function get_import_file_task(id; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +get_import_file_task(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/get-import-file-task/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_import_file_task( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -143,14 +137,13 @@ end Retrieve the latest ID of a specific assessment task. """ -function get_latest_assessment_id(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +get_latest_assessment_id(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/get-latest-assessment-id"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_latest_assessment_id( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -170,14 +163,13 @@ end Retrieves your migration and modernization preferences. """ -function get_portfolio_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +get_portfolio_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/get-portfolio-preferences"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_portfolio_preferences( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -198,14 +190,13 @@ end of anti-patterns. """ -function get_portfolio_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +get_portfolio_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/get-portfolio-summary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_portfolio_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -229,16 +220,13 @@ end StartRecommendationReportGeneration. """ -function get_recommendation_report_details( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return migrationhubstrategy( +get_recommendation_report_details(id; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/get-recommendation-report-details/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_recommendation_report_details( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -269,14 +257,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10. """ -function get_server_details(serverId; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +get_server_details(serverId; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/get-server-details/$(serverId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_server_details( serverId, params::AbstractDict{String}; @@ -301,14 +288,13 @@ end - `server_id`: The ID of the server. """ -function get_server_strategies(serverId; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +get_server_strategies(serverId; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/get-server-strategies/$(serverId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_server_strategies( serverId, params::AbstractDict{String}; @@ -340,14 +326,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned token to retrieve the next set of 10. - `"sort"`: Specifies whether to sort by ascending (ASC) or descending (DESC) order. """ -function list_analyzable_servers(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +list_analyzable_servers(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "POST", "/list-analyzable-servers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_analyzable_servers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -383,14 +368,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned token to retrieve the next set of 10. - `"sort"`: Specifies whether to sort by ascending (ASC) or descending (DESC) order. """ -function list_application_components(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +list_application_components(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "POST", "/list-applicationcomponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_application_components( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -418,11 +402,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10. """ -function list_collectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +list_collectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/list-collectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_collectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -449,14 +432,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10. """ -function list_import_file_task(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +list_import_file_task(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "GET", "/list-import-file-task"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_import_file_task( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -491,11 +473,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serverCriteria"`: Criteria for filtering servers. - `"sort"`: Specifies whether to sort by ascending (ASC) or descending (DESC) order. """ -function list_servers(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( - "POST", "/list-servers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_servers(; aws_config::AbstractAWSConfig=current_aws_config()) = migrationhubstrategy( + "POST", "/list-servers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_servers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -522,14 +502,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"databasePreferences"`: The transformation preferences for database applications. - `"prioritizeBusinessGoals"`: The rank of the business goals based on priority. """ -function put_portfolio_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +put_portfolio_preferences(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "POST", "/put-portfolio-preferences"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_portfolio_preferences( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -557,11 +536,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"s3bucketForReportData"`: The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with migrationhub-strategy-. """ -function start_assessment(; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +start_assessment(; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "POST", "/start-assessment"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function start_assessment( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -596,17 +574,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"s3bucketForReportData"`: The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with migrationhub-strategy-. """ -function start_import_file_task( +start_import_file_task( S3Bucket, name, s3key; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhubstrategy( + "POST", + "/start-import-file-task", + Dict{String,Any}("S3Bucket" => S3Bucket, "name" => name, "s3key" => s3key); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhubstrategy( - "POST", - "/start-import-file-task", - Dict{String,Any}("S3Bucket" => S3Bucket, "name" => name, "s3key" => s3key); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_import_file_task( S3Bucket, name, @@ -641,16 +617,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"outputFormat"`: The output format for the recommendation report file. The default format is Microsoft Excel. """ -function start_recommendation_report_generation(; +start_recommendation_report_generation(; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhubstrategy( + "POST", + "/start-recommendation-report-generation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhubstrategy( - "POST", - "/start-recommendation-report-generation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_recommendation_report_generation( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -673,15 +647,14 @@ end - `assessment_id`: The assessmentId returned by StartAssessment. """ -function stop_assessment(assessmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +stop_assessment(assessmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "POST", "/stop-assessment", Dict{String,Any}("assessmentId" => assessmentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_assessment( assessmentId, params::AbstractDict{String}; @@ -722,17 +695,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"strategyOption"`: The preferred strategy options for the application component. Use values from the GetApplicationComponentStrategies response. """ -function update_application_component_config( +update_application_component_config( applicationComponentId; aws_config::AbstractAWSConfig=current_aws_config() +) = migrationhubstrategy( + "POST", + "/update-applicationcomponent-config/", + Dict{String,Any}("applicationComponentId" => applicationComponentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return migrationhubstrategy( - "POST", - "/update-applicationcomponent-config/", - Dict{String,Any}("applicationComponentId" => applicationComponentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application_component_config( applicationComponentId, params::AbstractDict{String}; @@ -767,15 +738,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"strategyOption"`: The preferred strategy options for the application component. See the response from GetServerStrategies. """ -function update_server_config(serverId; aws_config::AbstractAWSConfig=current_aws_config()) - return migrationhubstrategy( +update_server_config(serverId; aws_config::AbstractAWSConfig=current_aws_config()) = + migrationhubstrategy( "POST", "/update-server-config/", Dict{String,Any}("serverId" => serverId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_server_config( serverId, params::AbstractDict{String}; diff --git a/src/services/mobile.jl b/src/services/mobile.jl deleted file mode 100644 index 6912f1f29..000000000 --- a/src/services/mobile.jl +++ /dev/null @@ -1,299 +0,0 @@ -# This file is auto-generated by AWSMetadata.jl -using AWS -using AWS.AWSServices: mobile -using AWS.Compat -using AWS.UUIDs - -""" - create_project() - create_project(params::Dict{String,<:Any}) - - Creates an AWS Mobile Hub project. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"contents"`: ZIP or YAML file which contains configuration settings to be used when - creating the project. This may be the contents of the file downloaded from the URL provided - in an export project operation. -- `"name"`: Name of the project. -- `"region"`: Default region where project resources should be created. -- `"snapshotId"`: Unique identifier for an exported snapshot of project configuration. - This snapshot identifier is included in the share URL when a project is exported. -""" -function create_project(; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile( - "POST", "/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end -function create_project( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return mobile( - "POST", "/projects", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end - -""" - delete_project(project_id) - delete_project(project_id, params::Dict{String,<:Any}) - - Delets a project in AWS Mobile Hub. - -# Arguments -- `project_id`: Unique project identifier. - -""" -function delete_project(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile( - "DELETE", - "/projects/$(projectId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function delete_project( - projectId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return mobile( - "DELETE", - "/projects/$(projectId)", - params; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - describe_bundle(bundle_id) - describe_bundle(bundle_id, params::Dict{String,<:Any}) - - Get the bundle details for the requested bundle id. - -# Arguments -- `bundle_id`: Unique bundle identifier. - -""" -function describe_bundle(bundleId; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile( - "GET", - "/bundles/$(bundleId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function describe_bundle( - bundleId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return mobile( - "GET", - "/bundles/$(bundleId)", - params; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - describe_project(project_id) - describe_project(project_id, params::Dict{String,<:Any}) - - Gets details about a project in AWS Mobile Hub. - -# Arguments -- `project_id`: Unique project identifier. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"syncFromResources"`: If set to true, causes AWS Mobile Hub to synchronize information - from other services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub - project. -""" -function describe_project(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile( - "GET", - "/project", - Dict{String,Any}("projectId" => projectId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function describe_project( - projectId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return mobile( - "GET", - "/project", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("projectId" => projectId), params) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - export_bundle(bundle_id) - export_bundle(bundle_id, params::Dict{String,<:Any}) - - Generates customized software development kit (SDK) and or tool packages used to integrate -mobile web or mobile app clients with backend AWS resources. - -# Arguments -- `bundle_id`: Unique bundle identifier. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"platform"`: Developer desktop or target application platform. -- `"projectId"`: Unique project identifier. -""" -function export_bundle(bundleId; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile( - "POST", - "/bundles/$(bundleId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function export_bundle( - bundleId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return mobile( - "POST", - "/bundles/$(bundleId)", - params; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - export_project(project_id) - export_project(project_id, params::Dict{String,<:Any}) - - Exports project configuration to a snapshot which can be downloaded and shared. Note that -mobile app push credentials are encrypted in exported projects, so they can only be shared -successfully within the same AWS account. - -# Arguments -- `project_id`: Unique project identifier. - -""" -function export_project(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile( - "POST", - "/exports/$(projectId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function export_project( - projectId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return mobile( - "POST", - "/exports/$(projectId)", - params; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end - -""" - list_bundles() - list_bundles(params::Dict{String,<:Any}) - - List all available bundles. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: Maximum number of records to list in a single response. -- `"nextToken"`: Pagination token. Set to null to start listing bundles from start. If - non-null pagination token is returned in a result, then pass its value in here in another - request to list more bundles. -""" -function list_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile("GET", "/bundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end -function list_bundles( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return mobile( - "GET", "/bundles", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end - -""" - list_projects() - list_projects(params::Dict{String,<:Any}) - - Lists projects in AWS Mobile Hub. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: Maximum number of records to list in a single response. -- `"nextToken"`: Pagination token. Set to null to start listing projects from start. If - non-null pagination token is returned in a result, then pass its value in here in another - request to list more projects. -""" -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile( - "GET", "/projects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end -function list_projects( - params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() -) - return mobile( - "GET", "/projects", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end - -""" - update_project(project_id) - update_project(project_id, params::Dict{String,<:Any}) - - Update an existing project. - -# Arguments -- `project_id`: Unique project identifier. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"contents"`: ZIP or YAML file which contains project configuration to be updated. This - should be the contents of the file downloaded from the URL provided in an export project - operation. -""" -function update_project(projectId; aws_config::AbstractAWSConfig=current_aws_config()) - return mobile( - "POST", - "/update", - Dict{String,Any}("projectId" => projectId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end -function update_project( - projectId, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return mobile( - "POST", - "/update", - Dict{String,Any}( - mergewith(_merge, Dict{String,Any}("projectId" => projectId), params) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end diff --git a/src/services/mobile_analytics.jl b/src/services/mobile_analytics.jl index b8b02b768..3ec7ae249 100644 --- a/src/services/mobile_analytics.jl +++ b/src/services/mobile_analytics.jl @@ -21,20 +21,18 @@ any number of attribute or metric values. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-Client-Context-Encoding"`: The encoding used for the client context. """ -function put_events( +put_events( events, x_amz_Client_Context; aws_config::AbstractAWSConfig=current_aws_config() +) = mobile_analytics( + "POST", + "/2014-06-05/events", + Dict{String,Any}( + "events" => events, + "headers" => Dict{String,Any}("x-amz-Client-Context" => x_amz_Client_Context), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mobile_analytics( - "POST", - "/2014-06-05/events", - Dict{String,Any}( - "events" => events, - "headers" => Dict{String,Any}("x-amz-Client-Context" => x_amz_Client_Context), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_events( events, x_amz_Client_Context, diff --git a/src/services/mq.jl b/src/services/mq.jl index 771d94458..22498176f 100644 --- a/src/services/mq.jl +++ b/src/services/mq.jl @@ -5,8 +5,8 @@ using AWS.Compat using AWS.UUIDs """ - create_broker(auto_minor_version_upgrade, broker_name, deployment_mode, engine_type, engine_version, host_instance_type, publicly_accessible, users) - create_broker(auto_minor_version_upgrade, broker_name, deployment_mode, engine_type, engine_version, host_instance_type, publicly_accessible, users, params::Dict{String,<:Any}) + create_broker(broker_name, deployment_mode, engine_type, host_instance_type, publicly_accessible, users) + create_broker(broker_name, deployment_mode, engine_type, host_instance_type, publicly_accessible, users, params::Dict{String,<:Any}) Creates a broker. Note: This API is asynchronous. To create a broker, you must either use the AmazonMQFullAccess IAM policy or include the following EC2 permissions in your IAM @@ -21,10 +21,6 @@ Your Amazon Web Services Credentials and Never Modify or Delete the Amazon MQ El Network Interface in the Amazon MQ Developer Guide. # Arguments -- `auto_minor_version_upgrade`: Enables automatic upgrades to new minor versions for - brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur - during the scheduled maintenance window of the broker or after a manual broker reboot. Set - to true by default, if no value is specified. - `broker_name`: Required. The broker's name. This value must be unique in your Amazon Web Services account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special @@ -35,8 +31,6 @@ Network Interface in the Amazon MQ Developer Guide. - `deployment_mode`: Required. The broker's deployment mode. - `engine_type`: Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. -- `engine_version`: Required. The broker engine's version. For a list of supported engine - versions, see Supported engines. - `host_instance_type`: Required. The broker's instance type. - `publicly_accessible`: Enables connections from applications outside of the VPC that hosts the broker's subnets. Set to false by default, if no value is provided. @@ -49,6 +43,11 @@ Network Interface in the Amazon MQ Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"authenticationStrategy"`: Optional. The authentication strategy used to secure the broker. The default is SIMPLE. +- `"autoMinorVersionUpgrade"`: Enables automatic upgrades to new patch versions for brokers + as new versions are released and supported by Amazon MQ. Automatic upgrades occur during + the scheduled maintenance window or after a manual broker reboot. Set to true by default, + if no value is specified. Must be set to true for ActiveMQ brokers version 5.18 and above + and for RabbitMQ brokers version 3.13 and above. - `"configuration"`: A list of information about the configuration. - `"creatorRequestId"`: The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action. We recommend using a Universally Unique @@ -59,6 +58,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that is used to replicate data from in a data replication pair, and is applied to the replica broker. Must be set when dataReplicationMode is set to CRDR. - `"encryptionOptions"`: Encryption options for the broker. +- `"engineVersion"`: The broker engine version. Defaults to the latest available version + for the specified broker engine type. For more information, see the ActiveMQ version + management and the RabbitMQ version management sections in the Amazon MQ Developer Guide. - `"ldapServerMetadata"`: Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers. - `"logs"`: Enables Amazon CloudWatch logging for brokers. @@ -80,41 +82,33 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Web Services account. - `"tags"`: Create tags when creating the broker. """ -function create_broker( - autoMinorVersionUpgrade, +create_broker( brokerName, deploymentMode, engineType, - engineVersion, hostInstanceType, publiclyAccessible, users; aws_config::AbstractAWSConfig=current_aws_config(), +) = mq( + "POST", + "/v1/brokers", + Dict{String,Any}( + "brokerName" => brokerName, + "deploymentMode" => deploymentMode, + "engineType" => engineType, + "hostInstanceType" => hostInstanceType, + "publiclyAccessible" => publiclyAccessible, + "users" => users, + "creatorRequestId" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "POST", - "/v1/brokers", - Dict{String,Any}( - "autoMinorVersionUpgrade" => autoMinorVersionUpgrade, - "brokerName" => brokerName, - "deploymentMode" => deploymentMode, - "engineType" => engineType, - "engineVersion" => engineVersion, - "hostInstanceType" => hostInstanceType, - "publiclyAccessible" => publiclyAccessible, - "users" => users, - "creatorRequestId" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_broker( - autoMinorVersionUpgrade, brokerName, deploymentMode, engineType, - engineVersion, hostInstanceType, publiclyAccessible, users, @@ -128,11 +122,9 @@ function create_broker( mergewith( _merge, Dict{String,Any}( - "autoMinorVersionUpgrade" => autoMinorVersionUpgrade, "brokerName" => brokerName, "deploymentMode" => deploymentMode, "engineType" => engineType, - "engineVersion" => engineVersion, "hostInstanceType" => hostInstanceType, "publiclyAccessible" => publiclyAccessible, "users" => users, @@ -147,8 +139,8 @@ function create_broker( end """ - create_configuration(engine_type, engine_version, name) - create_configuration(engine_type, engine_version, name, params::Dict{String,<:Any}) + create_configuration(engine_type, name) + create_configuration(engine_type, name, params::Dict{String,<:Any}) Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version). @@ -156,8 +148,6 @@ default configuration (the engine type and version). # Arguments - `engine_type`: Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. -- `engine_version`: Required. The broker engine's version. For a list of supported engine - versions, see Supported engines. - `name`: Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long. @@ -166,24 +156,21 @@ default configuration (the engine type and version). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"authenticationStrategy"`: Optional. The authentication strategy associated with the configuration. The default is SIMPLE. +- `"engineVersion"`: The broker engine version. Defaults to the latest available version + for the specified broker engine type. For more information, see the ActiveMQ version + management and the RabbitMQ version management sections in the Amazon MQ Developer Guide. - `"tags"`: Create tags when creating the configuration. """ -function create_configuration( - engineType, engineVersion, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return mq( +create_configuration(engineType, name; aws_config::AbstractAWSConfig=current_aws_config()) = + mq( "POST", "/v1/configurations", - Dict{String,Any}( - "engineType" => engineType, "engineVersion" => engineVersion, "name" => name - ); + Dict{String,Any}("engineType" => engineType, "name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_configuration( engineType, - engineVersion, name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), @@ -193,13 +180,7 @@ function create_configuration( "/v1/configurations", Dict{String,Any}( mergewith( - _merge, - Dict{String,Any}( - "engineType" => engineType, - "engineVersion" => engineVersion, - "name" => name, - ), - params, + _merge, Dict{String,Any}("engineType" => engineType, "name" => name), params ), ); aws_config=aws_config, @@ -220,14 +201,12 @@ Add a tag to a resource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: The key-value pair for the resource tag. """ -function create_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "POST", - "/v1/tags/$(resource-arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "POST", + "/v1/tags/$(resource-arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_tags( resource_arn, params::AbstractDict{String}; @@ -268,17 +247,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys . _ ~). This value must be 2-100 characters long. - `"replicationUser"`: Defines if this user is intended for CRDR replication purposes. """ -function create_user( +create_user( broker_id, password, username; aws_config::AbstractAWSConfig=current_aws_config() +) = mq( + "POST", + "/v1/brokers/$(broker-id)/users/$(username)", + Dict{String,Any}("password" => password); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "POST", - "/v1/brokers/$(broker-id)/users/$(username)", - Dict{String,Any}("password" => password); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user( broker_id, password, @@ -307,14 +284,12 @@ Deletes a broker. Note: This API is asynchronous. - `broker-id`: The unique ID that Amazon MQ generates for the broker. """ -function delete_broker(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "DELETE", - "/v1/brokers/$(broker-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_broker(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "DELETE", + "/v1/brokers/$(broker-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_broker( broker_id, params::AbstractDict{String}; @@ -340,17 +315,13 @@ Removes a tag from a resource. - `tag_keys`: An array of tag keys to delete """ -function delete_tags( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() +delete_tags(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "DELETE", + "/v1/tags/$(resource-arn)", + Dict{String,Any}("tagKeys" => tagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "DELETE", - "/v1/tags/$(resource-arn)", - Dict{String,Any}("tagKeys" => tagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_tags( resource_arn, tagKeys, @@ -379,16 +350,12 @@ Deletes an ActiveMQ user. characters long. """ -function delete_user( - broker_id, username; aws_config::AbstractAWSConfig=current_aws_config() +delete_user(broker_id, username; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "DELETE", + "/v1/brokers/$(broker-id)/users/$(username)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "DELETE", - "/v1/brokers/$(broker-id)/users/$(username)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user( broker_id, username, @@ -414,14 +381,12 @@ Returns information about the specified broker. - `broker-id`: The unique ID that Amazon MQ generates for the broker. """ -function describe_broker(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "GET", - "/v1/brokers/$(broker-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_broker(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "GET", + "/v1/brokers/$(broker-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_broker( broker_id, params::AbstractDict{String}; @@ -450,14 +415,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty. """ -function describe_broker_engine_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "GET", - "/v1/broker-engine-types"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_broker_engine_types(; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "GET", + "/v1/broker-engine-types"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_broker_engine_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -486,16 +449,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys To request the first page, leave nextToken empty. - `"storageType"`: Filter response by storage type. """ -function describe_broker_instance_options(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_broker_instance_options(; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "GET", + "/v1/broker-instance-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "GET", - "/v1/broker-instance-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_broker_instance_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -518,16 +477,14 @@ Returns information about the specified configuration. - `configuration-id`: The unique ID that Amazon MQ generates for the configuration. """ -function describe_configuration( +describe_configuration( configuration_id; aws_config::AbstractAWSConfig=current_aws_config() +) = mq( + "GET", + "/v1/configurations/$(configuration-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "GET", - "/v1/configurations/$(configuration-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_configuration( configuration_id, params::AbstractDict{String}; @@ -553,18 +510,16 @@ Returns the specified configuration revision for the specified configuration. - `configuration-revision`: The revision of the configuration. """ -function describe_configuration_revision( +describe_configuration_revision( configuration_id, configuration_revision; aws_config::AbstractAWSConfig=current_aws_config(), +) = mq( + "GET", + "/v1/configurations/$(configuration-id)/revisions/$(configuration-revision)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "GET", - "/v1/configurations/$(configuration-id)/revisions/$(configuration-revision)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_configuration_revision( configuration_id, configuration_revision, @@ -593,16 +548,12 @@ Returns information about an ActiveMQ user. characters long. """ -function describe_user( - broker_id, username; aws_config::AbstractAWSConfig=current_aws_config() +describe_user(broker_id, username; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "GET", + "/v1/brokers/$(broker-id)/users/$(username)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "GET", - "/v1/brokers/$(broker-id)/users/$(username)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_user( broker_id, username, @@ -631,9 +582,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty. """ -function list_brokers(; aws_config::AbstractAWSConfig=current_aws_config()) - return mq("GET", "/v1/brokers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_brokers(; aws_config::AbstractAWSConfig=current_aws_config()) = + mq("GET", "/v1/brokers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_brokers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -658,16 +608,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty. """ -function list_configuration_revisions( +list_configuration_revisions( configuration_id; aws_config::AbstractAWSConfig=current_aws_config() +) = mq( + "GET", + "/v1/configurations/$(configuration-id)/revisions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "GET", - "/v1/configurations/$(configuration-id)/revisions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_configuration_revisions( configuration_id, params::AbstractDict{String}; @@ -695,11 +643,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty. """ -function list_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "GET", "/v1/configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + mq("GET", "/v1/configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -722,14 +667,12 @@ Lists tags for a resource. - `resource-arn`: The Amazon Resource Name (ARN) of the resource tag. """ -function list_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "GET", - "/v1/tags/$(resource-arn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "GET", + "/v1/tags/$(resource-arn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( resource_arn, params::AbstractDict{String}; @@ -760,14 +703,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty. """ -function list_users(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "GET", - "/v1/brokers/$(broker-id)/users"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_users(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "GET", + "/v1/brokers/$(broker-id)/users"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_users( broker_id, params::AbstractDict{String}; @@ -794,15 +735,13 @@ Promotes a data replication replica broker to the primary broker role. FAILOVER. """ -function promote(broker_id, mode; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "POST", - "/v1/brokers/$(broker-id)/promote", - Dict{String,Any}("mode" => mode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +promote(broker_id, mode; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "POST", + "/v1/brokers/$(broker-id)/promote", + Dict{String,Any}("mode" => mode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function promote( broker_id, mode, @@ -828,14 +767,12 @@ Reboots a broker. Note: This API is asynchronous. - `broker-id`: The unique ID that Amazon MQ generates for the broker. """ -function reboot_broker(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "POST", - "/v1/brokers/$(broker-id)/reboot"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +reboot_broker(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "POST", + "/v1/brokers/$(broker-id)/reboot"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function reboot_broker( broker_id, params::AbstractDict{String}; @@ -863,13 +800,16 @@ Adds a pending configuration change to a broker. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"authenticationStrategy"`: Optional. The authentication strategy used to secure the broker. The default is SIMPLE. -- `"autoMinorVersionUpgrade"`: Enables automatic upgrades to new minor versions for - brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur - during the scheduled maintenance window of the broker or after a manual broker reboot. +- `"autoMinorVersionUpgrade"`: Enables automatic upgrades to new patch versions for brokers + as new versions are released and supported by Amazon MQ. Automatic upgrades occur during + the scheduled maintenance window or after a manual broker reboot. Must be set to true for + ActiveMQ brokers version 5.18 and above and for RabbitMQ brokers version 3.13 and above. - `"configuration"`: A list of information about the configuration. - `"dataReplicationMode"`: Defines whether this broker is a part of a data replication pair. -- `"engineVersion"`: The broker engine version. For a list of supported engine versions, - see Supported engines. +- `"engineVersion"`: The broker engine version. For more information, see the ActiveMQ + version management and the RabbitMQ version management sections in the Amazon MQ Developer + Guide. When upgrading to ActiveMQ version 5.18 and above or RabbitMQ version 3.13 and + above, you must have autoMinorVersionUpgrade set to true for the broker. - `"hostInstanceType"`: The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types. - `"ldapServerMetadata"`: Optional. The metadata of the LDAP server used to authenticate @@ -879,14 +819,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"securityGroups"`: The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers. """ -function update_broker(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) - return mq( - "PUT", - "/v1/brokers/$(broker-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_broker(broker_id; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "PUT", + "/v1/brokers/$(broker-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_broker( broker_id, params::AbstractDict{String}; @@ -916,17 +854,15 @@ Updates the specified configuration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the configuration. """ -function update_configuration( +update_configuration( configuration_id, data; aws_config::AbstractAWSConfig=current_aws_config() +) = mq( + "PUT", + "/v1/configurations/$(configuration-id)", + Dict{String,Any}("data" => data); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "PUT", - "/v1/configurations/$(configuration-id)", - Dict{String,Any}("data" => data); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration( configuration_id, data, @@ -965,16 +901,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys signs (,:=). - `"replicationUser"`: Defines whether the user is intended for data replication. """ -function update_user( - broker_id, username; aws_config::AbstractAWSConfig=current_aws_config() +update_user(broker_id, username; aws_config::AbstractAWSConfig=current_aws_config()) = mq( + "PUT", + "/v1/brokers/$(broker-id)/users/$(username)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mq( - "PUT", - "/v1/brokers/$(broker-id)/users/$(username)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user( broker_id, username, diff --git a/src/services/mturk.jl b/src/services/mturk.jl index 3e10c8fd4..f9def04c2 100644 --- a/src/services/mturk.jl +++ b/src/services/mturk.jl @@ -22,16 +22,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IntegerValue"`: The value of the Qualification. You can omit this value if you are using the presence or absence of the Qualification as the basis for a HIT requirement. """ -function accept_qualification_request( +accept_qualification_request( QualificationRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "AcceptQualificationRequest", + Dict{String,Any}("QualificationRequestId" => QualificationRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "AcceptQualificationRequest", - Dict{String,Any}("QualificationRequestId" => QualificationRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_qualification_request( QualificationRequestId, params::AbstractDict{String}; @@ -78,16 +76,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RequesterFeedback"`: A message for the Worker, which the Worker can see in the Status section of the web site. """ -function approve_assignment( - AssignmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mturk( +approve_assignment(AssignmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + mturk( "ApproveAssignment", Dict{String,Any}("AssignmentId" => AssignmentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function approve_assignment( AssignmentId, params::AbstractDict{String}; @@ -131,18 +126,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Worker saying that the qualification was assigned to the Worker. Note: this is true by default. """ -function associate_qualification_with_worker( +associate_qualification_with_worker( QualificationTypeId, WorkerId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "AssociateQualificationWithWorker", + Dict{String,Any}("QualificationTypeId" => QualificationTypeId, "WorkerId" => WorkerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "AssociateQualificationWithWorker", - Dict{String,Any}( - "QualificationTypeId" => QualificationTypeId, "WorkerId" => WorkerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_qualification_with_worker( QualificationTypeId, WorkerId, @@ -193,19 +184,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UniqueRequestToken, subsequent calls will return an error with a message containing the request ID. """ -function create_additional_assignments_for_hit( +create_additional_assignments_for_hit( HITId, NumberOfAdditionalAssignments; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "CreateAdditionalAssignmentsForHIT", + Dict{String,Any}( + "HITId" => HITId, + "NumberOfAdditionalAssignments" => NumberOfAdditionalAssignments, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "CreateAdditionalAssignmentsForHIT", - Dict{String,Any}( - "HITId" => HITId, - "NumberOfAdditionalAssignments" => NumberOfAdditionalAssignments, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_additional_assignments_for_hit( HITId, NumberOfAdditionalAssignments, @@ -315,27 +304,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The unique token expires after 24 hours. Subsequent calls using the same UniqueRequestToken made after the 24 hour limit could create duplicate HITs. """ -function create_hit( +create_hit( AssignmentDurationInSeconds, Description, LifetimeInSeconds, Reward, Title; aws_config::AbstractAWSConfig=current_aws_config(), +) = mturk( + "CreateHIT", + Dict{String,Any}( + "AssignmentDurationInSeconds" => AssignmentDurationInSeconds, + "Description" => Description, + "LifetimeInSeconds" => LifetimeInSeconds, + "Reward" => Reward, + "Title" => Title, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "CreateHIT", - Dict{String,Any}( - "AssignmentDurationInSeconds" => AssignmentDurationInSeconds, - "Description" => Description, - "LifetimeInSeconds" => LifetimeInSeconds, - "Reward" => Reward, - "Title" => Title, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hit( AssignmentDurationInSeconds, Description, @@ -404,25 +391,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure. """ -function create_hittype( +create_hittype( AssignmentDurationInSeconds, Description, Reward, Title; aws_config::AbstractAWSConfig=current_aws_config(), +) = mturk( + "CreateHITType", + Dict{String,Any}( + "AssignmentDurationInSeconds" => AssignmentDurationInSeconds, + "Description" => Description, + "Reward" => Reward, + "Title" => Title, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "CreateHITType", - Dict{String,Any}( - "AssignmentDurationInSeconds" => AssignmentDurationInSeconds, - "Description" => Description, - "Reward" => Reward, - "Title" => Title, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hittype( AssignmentDurationInSeconds, Description, @@ -506,18 +491,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The unique token expires after 24 hours. Subsequent calls using the same UniqueRequestToken made after the 24 hour limit could create duplicate HITs. """ -function create_hitwith_hittype( +create_hitwith_hittype( HITTypeId, LifetimeInSeconds; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "CreateHITWithHITType", + Dict{String,Any}("HITTypeId" => HITTypeId, "LifetimeInSeconds" => LifetimeInSeconds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "CreateHITWithHITType", - Dict{String,Any}( - "HITTypeId" => HITTypeId, "LifetimeInSeconds" => LifetimeInSeconds - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hitwith_hittype( HITTypeId, LifetimeInSeconds, @@ -585,23 +566,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TestDurationInSeconds"`: The number of seconds the Worker has to complete the Qualification test, starting from the time the Worker requests the Qualification. """ -function create_qualification_type( +create_qualification_type( Description, Name, QualificationTypeStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = mturk( + "CreateQualificationType", + Dict{String,Any}( + "Description" => Description, + "Name" => Name, + "QualificationTypeStatus" => QualificationTypeStatus, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "CreateQualificationType", - Dict{String,Any}( - "Description" => Description, - "Name" => Name, - "QualificationTypeStatus" => QualificationTypeStatus, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_qualification_type( Description, Name, @@ -641,16 +620,13 @@ For example, you can block a Worker who is producing poor quality work. You can - `worker_id`: The ID of the Worker to block. """ -function create_worker_block( - Reason, WorkerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return mturk( +create_worker_block(Reason, WorkerId; aws_config::AbstractAWSConfig=current_aws_config()) = + mturk( "CreateWorkerBlock", Dict{String,Any}("Reason" => Reason, "WorkerId" => WorkerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_worker_block( Reason, WorkerId, @@ -688,14 +664,12 @@ can improve the performance of operations such as ListReviewableHITs and ListHIT - `hitid`: The ID of the HIT to be deleted. """ -function delete_hit(HITId; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "DeleteHIT", - Dict{String,Any}("HITId" => HITId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_hit(HITId; aws_config::AbstractAWSConfig=current_aws_config()) = mturk( + "DeleteHIT", + Dict{String,Any}("HITId" => HITId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_hit( HITId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -725,16 +699,14 @@ available for reuse with CreateQualificationType. - `qualification_type_id`: The ID of the QualificationType to dispose. """ -function delete_qualification_type( +delete_qualification_type( QualificationTypeId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "DeleteQualificationType", + Dict{String,Any}("QualificationTypeId" => QualificationTypeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "DeleteQualificationType", - Dict{String,Any}("QualificationTypeId" => QualificationTypeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_qualification_type( QualificationTypeId, params::AbstractDict{String}; @@ -772,14 +744,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Reason"`: A message that explains the reason for unblocking the Worker. The Worker does not see this message. """ -function delete_worker_block(WorkerId; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "DeleteWorkerBlock", - Dict{String,Any}("WorkerId" => WorkerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_worker_block(WorkerId; aws_config::AbstractAWSConfig=current_aws_config()) = mturk( + "DeleteWorkerBlock", + Dict{String,Any}("WorkerId" => WorkerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_worker_block( WorkerId, params::AbstractDict{String}; @@ -813,18 +783,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Reason"`: A text message that explains why the Qualification was revoked. The user who had the Qualification sees this message. """ -function disassociate_qualification_from_worker( +disassociate_qualification_from_worker( QualificationTypeId, WorkerId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "DisassociateQualificationFromWorker", + Dict{String,Any}("QualificationTypeId" => QualificationTypeId, "WorkerId" => WorkerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "DisassociateQualificationFromWorker", - Dict{String,Any}( - "QualificationTypeId" => QualificationTypeId, "WorkerId" => WorkerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_qualification_from_worker( QualificationTypeId, WorkerId, @@ -858,11 +824,8 @@ If you have enabled AWS Billing and still have a remaining Prepaid HITs balance, balance can be viewed on the My Account page in the Requester console. """ -function get_account_balance(; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "GetAccountBalance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account_balance(; aws_config::AbstractAWSConfig=current_aws_config()) = + mturk("GetAccountBalance"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_account_balance( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -881,14 +844,12 @@ end - `assignment_id`: The ID of the Assignment to be retrieved. """ -function get_assignment(AssignmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "GetAssignment", - Dict{String,Any}("AssignmentId" => AssignmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_assignment(AssignmentId; aws_config::AbstractAWSConfig=current_aws_config()) = mturk( + "GetAssignment", + Dict{String,Any}("AssignmentId" => AssignmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_assignment( AssignmentId, params::AbstractDict{String}; @@ -925,18 +886,16 @@ HITs asking Workers to upload files to use Amazon S3. specified in the QuestionForm of the HIT. """ -function get_file_upload_url( +get_file_upload_url( AssignmentId, QuestionIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "GetFileUploadURL", + Dict{String,Any}( + "AssignmentId" => AssignmentId, "QuestionIdentifier" => QuestionIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "GetFileUploadURL", - Dict{String,Any}( - "AssignmentId" => AssignmentId, "QuestionIdentifier" => QuestionIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_file_upload_url( AssignmentId, QuestionIdentifier, @@ -970,14 +929,12 @@ end - `hitid`: The ID of the HIT to be retrieved. """ -function get_hit(HITId; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "GetHIT", - Dict{String,Any}("HITId" => HITId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_hit(HITId; aws_config::AbstractAWSConfig=current_aws_config()) = mturk( + "GetHIT", + Dict{String,Any}("HITId" => HITId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_hit( HITId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1004,18 +961,14 @@ Qualification of that type. - `worker_id`: The ID of the Worker whose Qualification is being updated. """ -function get_qualification_score( +get_qualification_score( QualificationTypeId, WorkerId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "GetQualificationScore", + Dict{String,Any}("QualificationTypeId" => QualificationTypeId, "WorkerId" => WorkerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "GetQualificationScore", - Dict{String,Any}( - "QualificationTypeId" => QualificationTypeId, "WorkerId" => WorkerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_qualification_score( QualificationTypeId, WorkerId, @@ -1049,16 +1002,14 @@ its ID. - `qualification_type_id`: The ID of the QualificationType. """ -function get_qualification_type( +get_qualification_type( QualificationTypeId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "GetQualificationType", + Dict{String,Any}("QualificationTypeId" => QualificationTypeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "GetQualificationType", - Dict{String,Any}("QualificationTypeId" => QualificationTypeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_qualification_type( QualificationTypeId, params::AbstractDict{String}; @@ -1105,14 +1056,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: Pagination token """ -function list_assignments_for_hit(HITId; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "ListAssignmentsForHIT", - Dict{String,Any}("HITId" => HITId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_assignments_for_hit(HITId; aws_config::AbstractAWSConfig=current_aws_config()) = mturk( + "ListAssignmentsForHIT", + Dict{String,Any}("HITId" => HITId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_assignments_for_hit( HITId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1142,11 +1091,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: Pagination token """ -function list_bonus_payments(; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "ListBonusPayments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_bonus_payments(; aws_config::AbstractAWSConfig=current_aws_config()) = + mturk("ListBonusPayments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_bonus_payments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1168,9 +1114,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: Pagination token """ -function list_hits(; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk("ListHITs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_hits(; aws_config::AbstractAWSConfig=current_aws_config()) = + mturk("ListHITs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_hits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1194,16 +1139,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Limit the number of results returned. - `"NextToken"`: Pagination Token """ -function list_hits_for_qualification_type( +list_hits_for_qualification_type( QualificationTypeId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "ListHITsForQualificationType", + Dict{String,Any}("QualificationTypeId" => QualificationTypeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "ListHITsForQualificationType", - Dict{String,Any}("QualificationTypeId" => QualificationTypeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_hits_for_qualification_type( QualificationTypeId, params::AbstractDict{String}; @@ -1237,11 +1180,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"QualificationTypeId"`: The ID of the QualificationType. """ -function list_qualification_requests(; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "ListQualificationRequests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_qualification_requests(; aws_config::AbstractAWSConfig=current_aws_config()) = mturk( + "ListQualificationRequests"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_qualification_requests( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1276,16 +1217,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"Query"`: A text query against all of the searchable attributes of Qualification types. """ -function list_qualification_types( +list_qualification_types( MustBeRequestable; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "ListQualificationTypes", + Dict{String,Any}("MustBeRequestable" => MustBeRequestable); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "ListQualificationTypes", - Dict{String,Any}("MustBeRequestable" => MustBeRequestable); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_qualification_types( MustBeRequestable, params::AbstractDict{String}; @@ -1328,16 +1267,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RetrieveResults"`: Specify if the operation should retrieve a list of the results computed by the Review Policies. """ -function list_review_policy_results_for_hit( +list_review_policy_results_for_hit( HITId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "ListReviewPolicyResultsForHIT", + Dict{String,Any}("HITId" => HITId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "ListReviewPolicyResultsForHIT", - Dict{String,Any}("HITId" => HITId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_review_policy_results_for_hit( HITId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1364,11 +1301,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Pagination Token - `"Status"`: Can be either Reviewable or Reviewing. Reviewable is the default value. """ -function list_reviewable_hits(; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "ListReviewableHITs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_reviewable_hits(; aws_config::AbstractAWSConfig=current_aws_config()) = + mturk("ListReviewableHITs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_reviewable_hits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1389,9 +1323,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: Pagination token """ -function list_worker_blocks(; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk("ListWorkerBlocks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_worker_blocks(; aws_config::AbstractAWSConfig=current_aws_config()) = + mturk("ListWorkerBlocks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_worker_blocks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1416,16 +1349,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Pagination Token - `"Status"`: The status of the Qualifications to return. Can be Granted | Revoked. """ -function list_workers_with_qualification_type( +list_workers_with_qualification_type( QualificationTypeId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "ListWorkersWithQualificationType", + Dict{String,Any}("QualificationTypeId" => QualificationTypeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "ListWorkersWithQualificationType", - Dict{String,Any}("QualificationTypeId" => QualificationTypeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workers_with_qualification_type( QualificationTypeId, params::AbstractDict{String}; @@ -1462,18 +1393,16 @@ email to a Worker only if you have previously approved or rejected work from the a time. """ -function notify_workers( +notify_workers( MessageText, Subject, WorkerIds; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "NotifyWorkers", + Dict{String,Any}( + "MessageText" => MessageText, "Subject" => Subject, "WorkerIds" => WorkerIds + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "NotifyWorkers", - Dict{String,Any}( - "MessageText" => MessageText, "Subject" => Subject, "WorkerIds" => WorkerIds - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_workers( MessageText, Subject, @@ -1517,18 +1446,16 @@ reject an assignment for the HIT. section of the web site. """ -function reject_assignment( +reject_assignment( AssignmentId, RequesterFeedback; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "RejectAssignment", + Dict{String,Any}( + "AssignmentId" => AssignmentId, "RequesterFeedback" => RequesterFeedback + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "RejectAssignment", - Dict{String,Any}( - "AssignmentId" => AssignmentId, "RequesterFeedback" => RequesterFeedback - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_assignment( AssignmentId, RequesterFeedback, @@ -1568,16 +1495,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Reason"`: A text message explaining why the request was rejected, to be shown to the Worker who made the request. """ -function reject_qualification_request( +reject_qualification_request( QualificationRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "RejectQualificationRequest", + Dict{String,Any}("QualificationRequestId" => QualificationRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "RejectQualificationRequest", - Dict{String,Any}("QualificationRequestId" => QualificationRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_qualification_request( QualificationRequestId, params::AbstractDict{String}; @@ -1628,25 +1553,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UniqueRequestToken, subsequent calls will return an error with a message containing the request ID. """ -function send_bonus( +send_bonus( AssignmentId, BonusAmount, Reason, WorkerId; aws_config::AbstractAWSConfig=current_aws_config(), +) = mturk( + "SendBonus", + Dict{String,Any}( + "AssignmentId" => AssignmentId, + "BonusAmount" => BonusAmount, + "Reason" => Reason, + "WorkerId" => WorkerId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "SendBonus", - Dict{String,Any}( - "AssignmentId" => AssignmentId, - "BonusAmount" => BonusAmount, - "Reason" => Reason, - "WorkerId" => WorkerId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_bonus( AssignmentId, BonusAmount, @@ -1693,16 +1616,14 @@ the service attempts to send the test notification immediately. include the event type. The notification specification does not filter out the test event. """ -function send_test_event_notification( +send_test_event_notification( Notification, TestEventType; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "SendTestEventNotification", + Dict{String,Any}("Notification" => Notification, "TestEventType" => TestEventType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "SendTestEventNotification", - Dict{String,Any}("Notification" => Notification, "TestEventType" => TestEventType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_test_event_notification( Notification, TestEventType, @@ -1737,16 +1658,14 @@ you update it to a time in the past, the HIT will be immediately expired. - `hitid`: The HIT to update. """ -function update_expiration_for_hit( +update_expiration_for_hit( ExpireAt, HITId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "UpdateExpirationForHIT", + Dict{String,Any}("ExpireAt" => ExpireAt, "HITId" => HITId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "UpdateExpirationForHIT", - Dict{String,Any}("ExpireAt" => ExpireAt, "HITId" => HITId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_expiration_for_hit( ExpireAt, HITId, @@ -1782,14 +1701,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to false will only transition a HIT from Reviewable to Reviewing Setting this to true will only transition a HIT from Reviewing to Reviewable """ -function update_hitreview_status(HITId; aws_config::AbstractAWSConfig=current_aws_config()) - return mturk( - "UpdateHITReviewStatus", - Dict{String,Any}("HITId" => HITId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_hitreview_status(HITId; aws_config::AbstractAWSConfig=current_aws_config()) = mturk( + "UpdateHITReviewStatus", + Dict{String,Any}("HITId" => HITId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_hitreview_status( HITId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1815,16 +1732,14 @@ the old ones. - `hittype_id`: The ID of the new HIT type. """ -function update_hittype_of_hit( +update_hittype_of_hit( HITId, HITTypeId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "UpdateHITTypeOfHIT", + Dict{String,Any}("HITId" => HITId, "HITTypeId" => HITTypeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "UpdateHITTypeOfHIT", - Dict{String,Any}("HITId" => HITId, "HITTypeId" => HITTypeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_hittype_of_hit( HITId, HITTypeId, @@ -1867,16 +1782,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter or the Active parameter for the call to UpdateNotificationSettings to succeed. - `"Notification"`: The notification specification for the HIT type. """ -function update_notification_settings( +update_notification_settings( HITTypeId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "UpdateNotificationSettings", + Dict{String,Any}("HITTypeId" => HITTypeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "UpdateNotificationSettings", - Dict{String,Any}("HITTypeId" => HITTypeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_notification_settings( HITTypeId, params::AbstractDict{String}; @@ -1946,16 +1859,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TestDurationInSeconds"`: The number of seconds the Worker has to complete the Qualification test, starting from the time the Worker requests the Qualification. """ -function update_qualification_type( +update_qualification_type( QualificationTypeId; aws_config::AbstractAWSConfig=current_aws_config() +) = mturk( + "UpdateQualificationType", + Dict{String,Any}("QualificationTypeId" => QualificationTypeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mturk( - "UpdateQualificationType", - Dict{String,Any}("QualificationTypeId" => QualificationTypeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_qualification_type( QualificationTypeId, params::AbstractDict{String}; diff --git a/src/services/mwaa.jl b/src/services/mwaa.jl index 518419af2..41b585afb 100644 --- a/src/services/mwaa.jl +++ b/src/services/mwaa.jl @@ -15,11 +15,9 @@ token. - `name`: The name of the Amazon MWAA environment. For example, MyMWAAEnvironment. """ -function create_cli_token(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return mwaa( - "POST", "/clitoken/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_cli_token(Name; aws_config::AbstractAWSConfig=current_aws_config()) = mwaa( + "POST", "/clitoken/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function create_cli_token( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -140,27 +138,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the following format: DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only. """ -function create_environment( +create_environment( DagS3Path, ExecutionRoleArn, Name, NetworkConfiguration, SourceBucketArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = mwaa( + "PUT", + "/environments/$(Name)", + Dict{String,Any}( + "DagS3Path" => DagS3Path, + "ExecutionRoleArn" => ExecutionRoleArn, + "NetworkConfiguration" => NetworkConfiguration, + "SourceBucketArn" => SourceBucketArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mwaa( - "PUT", - "/environments/$(Name)", - Dict{String,Any}( - "DagS3Path" => DagS3Path, - "ExecutionRoleArn" => ExecutionRoleArn, - "NetworkConfiguration" => NetworkConfiguration, - "SourceBucketArn" => SourceBucketArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment( DagS3Path, ExecutionRoleArn, @@ -201,11 +197,9 @@ Airflow web login token. - `name`: The name of the Amazon MWAA environment. For example, MyMWAAEnvironment. """ -function create_web_login_token(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return mwaa( - "POST", "/webtoken/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_web_login_token(Name; aws_config::AbstractAWSConfig=current_aws_config()) = mwaa( + "POST", "/webtoken/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function create_web_login_token( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -228,14 +222,12 @@ Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. - `name`: The name of the Amazon MWAA environment. For example, MyMWAAEnvironment. """ -function delete_environment(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return mwaa( - "DELETE", - "/environments/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_environment(Name; aws_config::AbstractAWSConfig=current_aws_config()) = mwaa( + "DELETE", + "/environments/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_environment( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -258,14 +250,12 @@ Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment. - `name`: The name of the Amazon MWAA environment. For example, MyMWAAEnvironment. """ -function get_environment(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return mwaa( - "GET", - "/environments/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_environment(Name; aws_config::AbstractAWSConfig=current_aws_config()) = mwaa( + "GET", + "/environments/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_environment( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -290,11 +280,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys environments per page. - `"NextToken"`: Retrieves the next page of the results. """ -function list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return mwaa( - "GET", "/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + mwaa("GET", "/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -319,16 +306,13 @@ Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apa example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return mwaa( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + mwaa( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -356,17 +340,15 @@ end Amazon CloudWatch. """ -function publish_metrics( +publish_metrics( EnvironmentName, MetricData; aws_config::AbstractAWSConfig=current_aws_config() +) = mwaa( + "POST", + "/metrics/environments/$(EnvironmentName)", + Dict{String,Any}("MetricData" => MetricData); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return mwaa( - "POST", - "/metrics/environments/$(EnvironmentName)", - Dict{String,Any}("MetricData" => MetricData); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function publish_metrics( EnvironmentName, MetricData, @@ -399,15 +381,13 @@ environment. resources. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return mwaa( - "POST", - "/tags/$(ResourceArn)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = mwaa( + "POST", + "/tags/$(ResourceArn)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceArn, Tags, @@ -437,17 +417,14 @@ Removes key-value tag pairs associated to your Amazon Managed Workflows for Apac \"Staging\". """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return mwaa( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + mwaa( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -558,14 +535,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the following format: DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only. """ -function update_environment(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return mwaa( - "PATCH", - "/environments/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_environment(Name; aws_config::AbstractAWSConfig=current_aws_config()) = mwaa( + "PATCH", + "/environments/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_environment( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/neptune.jl b/src/services/neptune.jl index 4778a99be..ef351f012 100644 --- a/src/services/neptune.jl +++ b/src/services/neptune.jl @@ -20,18 +20,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FeatureName"`: The name of the feature for the Neptune DB cluster that the IAM role is to be associated with. For the list of supported feature names, see DBEngineVersion. """ -function add_role_to_dbcluster( +add_role_to_dbcluster( DBClusterIdentifier, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "AddRoleToDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "AddRoleToDBCluster", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, "RoleArn" => RoleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_role_to_dbcluster( DBClusterIdentifier, RoleArn, @@ -70,18 +66,16 @@ Adds a source identifier to an existing event notification subscription. source identifier to. """ -function add_source_identifier_to_subscription( +add_source_identifier_to_subscription( SourceIdentifier, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "AddSourceIdentifierToSubscription", + Dict{String,Any}( + "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "AddSourceIdentifierToSubscription", - Dict{String,Any}( - "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_source_identifier_to_subscription( SourceIdentifier, SubscriptionName, @@ -123,16 +117,14 @@ Condition statement in an IAM policy for Amazon Neptune. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the Amazon Neptune resource. """ -function add_tags_to_resource( +add_tags_to_resource( ResourceName, Tag; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "AddTagsToResource", + Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "AddTagsToResource", - Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_resource( ResourceName, Tag, @@ -172,23 +164,21 @@ Applies a pending maintenance action to a resource (for example, to a DB instanc Amazon Resource Name (ARN). """ -function apply_pending_maintenance_action( +apply_pending_maintenance_action( ApplyAction, OptInType, ResourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "ApplyPendingMaintenanceAction", + Dict{String,Any}( + "ApplyAction" => ApplyAction, + "OptInType" => OptInType, + "ResourceIdentifier" => ResourceIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ApplyPendingMaintenanceAction", - Dict{String,Any}( - "ApplyAction" => ApplyAction, - "OptInType" => OptInType, - "ResourceIdentifier" => ResourceIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_pending_maintenance_action( ApplyAction, OptInType, @@ -240,26 +230,24 @@ Copies the specified DB cluster parameter group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the copied DB cluster parameter group. """ -function copy_dbcluster_parameter_group( +copy_dbcluster_parameter_group( SourceDBClusterParameterGroupIdentifier, TargetDBClusterParameterGroupDescription, TargetDBClusterParameterGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CopyDBClusterParameterGroup", + Dict{String,Any}( + "SourceDBClusterParameterGroupIdentifier" => + SourceDBClusterParameterGroupIdentifier, + "TargetDBClusterParameterGroupDescription" => + TargetDBClusterParameterGroupDescription, + "TargetDBClusterParameterGroupIdentifier" => + TargetDBClusterParameterGroupIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CopyDBClusterParameterGroup", - Dict{String,Any}( - "SourceDBClusterParameterGroupIdentifier" => - SourceDBClusterParameterGroupIdentifier, - "TargetDBClusterParameterGroupDescription" => - TargetDBClusterParameterGroupDescription, - "TargetDBClusterParameterGroupIdentifier" => - TargetDBClusterParameterGroupIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbcluster_parameter_group( SourceDBClusterParameterGroupIdentifier, TargetDBClusterParameterGroupDescription, @@ -326,21 +314,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PreSignedUrl"`: Not currently supported. - `"Tags"`: The tags to assign to the new DB cluster snapshot copy. """ -function copy_dbcluster_snapshot( +copy_dbcluster_snapshot( SourceDBClusterSnapshotIdentifier, TargetDBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CopyDBClusterSnapshot", + Dict{String,Any}( + "SourceDBClusterSnapshotIdentifier" => SourceDBClusterSnapshotIdentifier, + "TargetDBClusterSnapshotIdentifier" => TargetDBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CopyDBClusterSnapshot", - Dict{String,Any}( - "SourceDBClusterSnapshotIdentifier" => SourceDBClusterSnapshotIdentifier, - "TargetDBClusterSnapshotIdentifier" => TargetDBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbcluster_snapshot( SourceDBClusterSnapshotIdentifier, TargetDBClusterSnapshotIdentifier, @@ -387,23 +373,21 @@ Copies the specified DB parameter group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the copied DB parameter group. """ -function copy_dbparameter_group( +copy_dbparameter_group( SourceDBParameterGroupIdentifier, TargetDBParameterGroupDescription, TargetDBParameterGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CopyDBParameterGroup", + Dict{String,Any}( + "SourceDBParameterGroupIdentifier" => SourceDBParameterGroupIdentifier, + "TargetDBParameterGroupDescription" => TargetDBParameterGroupDescription, + "TargetDBParameterGroupIdentifier" => TargetDBParameterGroupIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CopyDBParameterGroup", - Dict{String,Any}( - "SourceDBParameterGroupIdentifier" => SourceDBParameterGroupIdentifier, - "TargetDBParameterGroupDescription" => TargetDBParameterGroupDescription, - "TargetDBParameterGroupIdentifier" => TargetDBParameterGroupIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbparameter_group( SourceDBParameterGroupIdentifier, TargetDBParameterGroupDescription, @@ -528,16 +512,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with this DB cluster. """ -function create_dbcluster( +create_dbcluster( DBClusterIdentifier, Engine; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "CreateDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "Engine" => Engine); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateDBCluster", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "Engine" => Engine); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster( DBClusterIdentifier, Engine, @@ -582,23 +564,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys group. - `"Tags"`: The tags to be assigned to the Amazon Neptune resource. """ -function create_dbcluster_endpoint( +create_dbcluster_endpoint( DBClusterEndpointIdentifier, DBClusterIdentifier, EndpointType; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CreateDBClusterEndpoint", + Dict{String,Any}( + "DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier, + "DBClusterIdentifier" => DBClusterIdentifier, + "EndpointType" => EndpointType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateDBClusterEndpoint", - Dict{String,Any}( - "DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier, - "DBClusterIdentifier" => DBClusterIdentifier, - "EndpointType" => EndpointType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster_endpoint( DBClusterEndpointIdentifier, DBClusterIdentifier, @@ -660,23 +640,21 @@ that your DB cluster parameter group has been created or modified. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the new DB cluster parameter group. """ -function create_dbcluster_parameter_group( +create_dbcluster_parameter_group( DBClusterParameterGroupName, DBParameterGroupFamily, Description; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CreateDBClusterParameterGroup", + Dict{String,Any}( + "DBClusterParameterGroupName" => DBClusterParameterGroupName, + "DBParameterGroupFamily" => DBParameterGroupFamily, + "Description" => Description, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateDBClusterParameterGroup", - Dict{String,Any}( - "DBClusterParameterGroupName" => DBClusterParameterGroupName, - "DBParameterGroupFamily" => DBParameterGroupFamily, - "Description" => Description, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster_parameter_group( DBClusterParameterGroupName, DBParameterGroupFamily, @@ -721,21 +699,19 @@ Creates a snapshot of a DB cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the DB cluster snapshot. """ -function create_dbcluster_snapshot( +create_dbcluster_snapshot( DBClusterIdentifier, DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CreateDBClusterSnapshot", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateDBClusterSnapshot", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster_snapshot( DBClusterIdentifier, DBClusterSnapshotIdentifier, @@ -874,25 +850,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DB cluster. For more information, see CreateDBCluster. Default: The default EC2 VPC security group for the DB subnet group's VPC. """ -function create_dbinstance( +create_dbinstance( DBClusterIdentifier, DBInstanceClass, DBInstanceIdentifier, Engine; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CreateDBInstance", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "DBInstanceClass" => DBInstanceClass, + "DBInstanceIdentifier" => DBInstanceIdentifier, + "Engine" => Engine, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateDBInstance", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "DBInstanceClass" => DBInstanceClass, - "DBInstanceIdentifier" => DBInstanceIdentifier, - "Engine" => Engine, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbinstance( DBClusterIdentifier, DBInstanceClass, @@ -954,23 +928,21 @@ parameter group has been created or modified. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the new DB parameter group. """ -function create_dbparameter_group( +create_dbparameter_group( DBParameterGroupFamily, DBParameterGroupName, Description; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CreateDBParameterGroup", + Dict{String,Any}( + "DBParameterGroupFamily" => DBParameterGroupFamily, + "DBParameterGroupName" => DBParameterGroupName, + "Description" => Description, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateDBParameterGroup", - Dict{String,Any}( - "DBParameterGroupFamily" => DBParameterGroupFamily, - "DBParameterGroupName" => DBParameterGroupName, - "Description" => Description, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbparameter_group( DBParameterGroupFamily, DBParameterGroupName, @@ -1015,23 +987,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubnetIds"`: The EC2 Subnet IDs for the DB subnet group. - `"Tags"`: The tags to be assigned to the new DB subnet group. """ -function create_dbsubnet_group( +create_dbsubnet_group( DBSubnetGroupDescription, DBSubnetGroupName, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "CreateDBSubnetGroup", + Dict{String,Any}( + "DBSubnetGroupDescription" => DBSubnetGroupDescription, + "DBSubnetGroupName" => DBSubnetGroupName, + "SubnetIdentifier" => SubnetIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateDBSubnetGroup", - Dict{String,Any}( - "DBSubnetGroupDescription" => DBSubnetGroupDescription, - "DBSubnetGroupName" => DBSubnetGroupName, - "SubnetIdentifier" => SubnetIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbsubnet_group( DBSubnetGroupDescription, DBSubnetGroupName, @@ -1105,18 +1075,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys db-cluster-snapshot - `"Tags"`: The tags to be applied to the new event subscription. """ -function create_event_subscription( +create_event_subscription( SnsTopicArn, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "CreateEventSubscription", + Dict{String,Any}("SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateEventSubscription", - Dict{String,Any}( - "SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_subscription( SnsTopicArn, SubscriptionName, @@ -1166,16 +1132,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Neptune DB cluster to use as the primary cluster of the new global database. - `"StorageEncrypted"`: The storage encryption setting for the new global database cluster. """ -function create_global_cluster( +create_global_cluster( GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "CreateGlobalCluster", + Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "CreateGlobalCluster", - Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_global_cluster( GlobalClusterIdentifier, params::AbstractDict{String}; @@ -1222,16 +1186,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is false. Default: false """ -function delete_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptune( +delete_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "DeleteDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -1262,16 +1223,14 @@ Deletes a custom endpoint and removes it from an Amazon Neptune DB cluster. parameter is stored as a lowercase string. """ -function delete_dbcluster_endpoint( +delete_dbcluster_endpoint( DBClusterEndpointIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DeleteDBClusterEndpoint", + Dict{String,Any}("DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DeleteDBClusterEndpoint", - Dict{String,Any}("DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_endpoint( DBClusterEndpointIdentifier, params::AbstractDict{String}; @@ -1306,16 +1265,14 @@ deleted can't be associated with any DB clusters. delete a default DB cluster parameter group. Cannot be associated with any DB clusters. """ -function delete_dbcluster_parameter_group( +delete_dbcluster_parameter_group( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DeleteDBClusterParameterGroup", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DeleteDBClusterParameterGroup", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_parameter_group( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -1349,16 +1306,14 @@ terminated. The DB cluster snapshot must be in the available state to be delete Constraints: Must be the name of an existing DB cluster snapshot in the available state. """ -function delete_dbcluster_snapshot( +delete_dbcluster_snapshot( DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DeleteDBClusterSnapshot", + Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DeleteDBClusterSnapshot", - Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_snapshot( DBClusterSnapshotIdentifier, params::AbstractDict{String}; @@ -1415,16 +1370,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to \"true\". Specify true when deleting a Read Replica. The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false. Default: false """ -function delete_dbinstance( +delete_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DeleteDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DeleteDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -1457,16 +1410,14 @@ associated with any DB instances. Cannot be associated with any DB instances """ -function delete_dbparameter_group( +delete_dbparameter_group( DBParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DeleteDBParameterGroup", + Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DeleteDBParameterGroup", - Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbparameter_group( DBParameterGroupName, params::AbstractDict{String}; @@ -1499,16 +1450,14 @@ any DB instances. DBSubnetGroup. Must not be default. Example: mySubnetgroup """ -function delete_dbsubnet_group( +delete_dbsubnet_group( DBSubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DeleteDBSubnetGroup", + Dict{String,Any}("DBSubnetGroupName" => DBSubnetGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DeleteDBSubnetGroup", - Dict{String,Any}("DBSubnetGroupName" => DBSubnetGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbsubnet_group( DBSubnetGroupName, params::AbstractDict{String}; @@ -1536,16 +1485,14 @@ Deletes an event notification subscription. - `subscription_name`: The name of the event notification subscription you want to delete. """ -function delete_event_subscription( +delete_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DeleteEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DeleteEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -1575,16 +1522,14 @@ or deleted first. deleted. """ -function delete_global_cluster( +delete_global_cluster( GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DeleteGlobalCluster", + Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DeleteGlobalCluster", - Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_global_cluster( GlobalClusterIdentifier, params::AbstractDict{String}; @@ -1633,11 +1578,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbcluster_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( +describe_dbcluster_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "DescribeDBClusterEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_dbcluster_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1671,15 +1615,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbcluster_parameter_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return neptune( +describe_dbcluster_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "DescribeDBClusterParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dbcluster_parameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1715,16 +1656,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Source"`: A value that indicates to return only parameters for a specific source. Parameter sources can be engine, service, or customer. """ -function describe_dbcluster_parameters( +describe_dbcluster_parameters( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DescribeDBClusterParameters", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DescribeDBClusterParameters", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbcluster_parameters( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -1765,16 +1704,14 @@ API action. the attributes for. """ -function describe_dbcluster_snapshot_attributes( +describe_dbcluster_snapshot_attributes( DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DescribeDBClusterSnapshotAttributes", + Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DescribeDBClusterSnapshotAttributes", - Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbcluster_snapshot_attributes( DBClusterSnapshotIdentifier, params::AbstractDict{String}; @@ -1844,11 +1781,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys when SnapshotType is set to shared. The IncludeShared parameter doesn't apply when SnapshotType is set to public. """ -function describe_dbcluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( +describe_dbcluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "DescribeDBClusterSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_dbcluster_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1887,11 +1823,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbclusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( - "DescribeDBClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbclusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune("DescribeDBClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbclusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1929,11 +1862,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response so that the following results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbengine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( - "DescribeDBEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbengine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = neptune( + "DescribeDBEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dbengine_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1973,11 +1904,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbinstances(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( - "DescribeDBInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbinstances(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune("DescribeDBInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbinstances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2010,11 +1938,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbparameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( - "DescribeDBParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbparameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = neptune( + "DescribeDBParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dbparameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2049,16 +1975,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Source"`: The parameter types to return. Default: All parameter types returned Valid Values: user | system | engine-default """ -function describe_dbparameters( +describe_dbparameters( DBParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DescribeDBParameters", + Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DescribeDBParameters", - Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbparameters( DBParameterGroupName, params::AbstractDict{String}; @@ -2098,11 +2022,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbsubnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( - "DescribeDBSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbsubnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = neptune( + "DescribeDBSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dbsubnet_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2135,16 +2057,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_engine_default_cluster_parameters( +describe_engine_default_cluster_parameters( DBParameterGroupFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DescribeEngineDefaultClusterParameters", + Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DescribeEngineDefaultClusterParameters", - Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_engine_default_cluster_parameters( DBParameterGroupFamily, params::AbstractDict{String}; @@ -2185,16 +2105,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_engine_default_parameters( +describe_engine_default_parameters( DBParameterGroupFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DescribeEngineDefaultParameters", + Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DescribeEngineDefaultParameters", - Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_engine_default_parameters( DBParameterGroupFamily, params::AbstractDict{String}; @@ -2227,11 +2145,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceType"`: The type of source that is generating the events. Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot """ -function describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( - "DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) = neptune( + "DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_event_categories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2265,11 +2181,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubscriptionName"`: The name of the event notification subscription you want to describe. """ -function describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( +describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "DescribeEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_event_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2320,9 +2235,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page. Example: 2009-07-08T18:00Z """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2351,11 +2265,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response that you can use to retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_global_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( - "DescribeGlobalClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_global_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = neptune( + "DescribeGlobalClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_global_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2395,16 +2307,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Vpc"`: The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings. """ -function describe_orderable_dbinstance_options( +describe_orderable_dbinstance_options( Engine; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DescribeOrderableDBInstanceOptions", + Dict{String,Any}("Engine" => Engine); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DescribeOrderableDBInstanceOptions", - Dict{String,Any}("Engine" => Engine); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_orderable_dbinstance_options( Engine, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2440,15 +2350,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Constraints: Minimum 20, maximum 100. - `"ResourceIdentifier"`: The ARN of a resource to return pending maintenance actions for. """ -function describe_pending_maintenance_actions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return neptune( +describe_pending_maintenance_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "DescribePendingMaintenanceActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_pending_maintenance_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2471,16 +2378,14 @@ to your DB instance. You can use this information when you call ModifyDBInstance - `dbinstance_identifier`: The customer identifier or the ARN of your DB instance. """ -function describe_valid_dbinstance_modifications( +describe_valid_dbinstance_modifications( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "DescribeValidDBInstanceModifications", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "DescribeValidDBInstanceModifications", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_valid_dbinstance_modifications( DBInstanceIdentifier, params::AbstractDict{String}; @@ -2520,11 +2425,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instance. You must specify the instance identifier for an Read Replica in the DB cluster. For example, mydbcluster-replica1. """ -function failover_dbcluster(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptune( - "FailoverDBCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +failover_dbcluster(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune("FailoverDBCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function failover_dbcluster( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2556,21 +2458,19 @@ or to reconfigure the global database topology. DB cluster that you want to promote to primary for the global database. """ -function failover_global_cluster( +failover_global_cluster( GlobalClusterIdentifier, TargetDbClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "FailoverGlobalCluster", + Dict{String,Any}( + "GlobalClusterIdentifier" => GlobalClusterIdentifier, + "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "FailoverGlobalCluster", - Dict{String,Any}( - "GlobalClusterIdentifier" => GlobalClusterIdentifier, - "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function failover_global_cluster( GlobalClusterIdentifier, TargetDbClusterIdentifier, @@ -2609,16 +2509,13 @@ Lists all tags on an Amazon Neptune resource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Filters"`: This parameter is not currently supported. """ -function list_tags_for_resource( - ResourceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptune( +list_tags_for_resource(ResourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "ListTagsForResource", Dict{String,Any}("ResourceName" => ResourceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceName, params::AbstractDict{String}; @@ -2713,16 +2610,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys standard | iopt1 Default: standard - `"VpcSecurityGroupIds"`: A list of VPC security groups that the DB cluster will belong to. """ -function modify_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptune( +modify_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "ModifyDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -2761,16 +2655,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StaticMembers"`: List of DB instance identifiers that are part of the custom endpoint group. """ -function modify_dbcluster_endpoint( +modify_dbcluster_endpoint( DBClusterEndpointIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "ModifyDBClusterEndpoint", + Dict{String,Any}("DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ModifyDBClusterEndpoint", - Dict{String,Any}("DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbcluster_endpoint( DBClusterEndpointIdentifier, params::AbstractDict{String}; @@ -2819,21 +2711,19 @@ parameter group has been created or modified. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Parameters"`: A list of parameters in the DB cluster parameter group to modify. """ -function modify_dbcluster_parameter_group( +modify_dbcluster_parameter_group( DBClusterParameterGroupName, Parameter; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "ModifyDBClusterParameterGroup", + Dict{String,Any}( + "DBClusterParameterGroupName" => DBClusterParameterGroupName, + "Parameter" => Parameter, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ModifyDBClusterParameterGroup", - Dict{String,Any}( - "DBClusterParameterGroupName" => DBClusterParameterGroupName, - "Parameter" => Parameter, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbcluster_parameter_group( DBClusterParameterGroupName, Parameter, @@ -2896,21 +2786,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DB cluster snapshot. If you specify all, an Amazon account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot. """ -function modify_dbcluster_snapshot_attribute( +modify_dbcluster_snapshot_attribute( AttributeName, DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "ModifyDBClusterSnapshotAttribute", + Dict{String,Any}( + "AttributeName" => AttributeName, + "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ModifyDBClusterSnapshotAttribute", - Dict{String,Any}( - "AttributeName" => AttributeName, - "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbcluster_snapshot_attribute( AttributeName, DBClusterSnapshotIdentifier, @@ -3069,16 +2957,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see ModifyDBCluster. Constraints: If supplied, must match existing VpcSecurityGroupIds. """ -function modify_dbinstance( +modify_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "ModifyDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ModifyDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -3137,18 +3023,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for both dynamic and static parameters, and changes are applied when you reboot the DB instance without failover. """ -function modify_dbparameter_group( +modify_dbparameter_group( DBParameterGroupName, Parameter; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "ModifyDBParameterGroup", + Dict{String,Any}( + "DBParameterGroupName" => DBParameterGroupName, "Parameter" => Parameter + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ModifyDBParameterGroup", - Dict{String,Any}( - "DBParameterGroupName" => DBParameterGroupName, "Parameter" => Parameter - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbparameter_group( DBParameterGroupName, Parameter, @@ -3189,18 +3073,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DBSubnetGroupDescription"`: The description for the DB subnet group. - `"SubnetIds"`: The EC2 subnet IDs for the DB subnet group. """ -function modify_dbsubnet_group( +modify_dbsubnet_group( DBSubnetGroupName, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "ModifyDBSubnetGroup", + Dict{String,Any}( + "DBSubnetGroupName" => DBSubnetGroupName, "SubnetIdentifier" => SubnetIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ModifyDBSubnetGroup", - Dict{String,Any}( - "DBSubnetGroupName" => DBSubnetGroupName, "SubnetIdentifier" => SubnetIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbsubnet_group( DBSubnetGroupName, SubnetIdentifier, @@ -3250,16 +3132,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys db-instance. if this value is not specified, all events are returned. Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot """ -function modify_event_subscription( +modify_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "ModifyEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ModifyEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -3308,16 +3188,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 63 letters, numbers, or hyphens. The first character must be a letter. Can't end with a hyphen or contain two consecutive hyphens Example: my-cluster2 """ -function modify_global_cluster( +modify_global_cluster( GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "ModifyGlobalCluster", + Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ModifyGlobalCluster", - Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_global_cluster( GlobalClusterIdentifier, params::AbstractDict{String}; @@ -3347,16 +3225,14 @@ Not supported. - `dbcluster_identifier`: Not supported. """ -function promote_read_replica_dbcluster( +promote_read_replica_dbcluster( DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "PromoteReadReplicaDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "PromoteReadReplicaDBCluster", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function promote_read_replica_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -3395,16 +3271,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ForceFailover"`: When true, the reboot is conducted through a MultiAZ failover. Constraint: You can't specify true if the instance is not configured for MultiAZ. """ -function reboot_dbinstance( +reboot_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "RebootDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "RebootDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -3439,21 +3313,19 @@ longer receives data from a the primary cluster. detach the specified Neptune DB cluster. """ -function remove_from_global_cluster( +remove_from_global_cluster( DbClusterIdentifier, GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "RemoveFromGlobalCluster", + Dict{String,Any}( + "DbClusterIdentifier" => DbClusterIdentifier, + "GlobalClusterIdentifier" => GlobalClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "RemoveFromGlobalCluster", - Dict{String,Any}( - "DbClusterIdentifier" => DbClusterIdentifier, - "GlobalClusterIdentifier" => GlobalClusterIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_from_global_cluster( DbClusterIdentifier, GlobalClusterIdentifier, @@ -3493,18 +3365,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FeatureName"`: The name of the feature for the DB cluster that the IAM role is to be disassociated from. For the list of supported feature names, see DescribeDBEngineVersions. """ -function remove_role_from_dbcluster( +remove_role_from_dbcluster( DBClusterIdentifier, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "RemoveRoleFromDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "RemoveRoleFromDBCluster", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, "RoleArn" => RoleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_role_from_dbcluster( DBClusterIdentifier, RoleArn, @@ -3540,18 +3408,16 @@ Removes a source identifier from an existing event notification subscription. source identifier from. """ -function remove_source_identifier_from_subscription( +remove_source_identifier_from_subscription( SourceIdentifier, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "RemoveSourceIdentifierFromSubscription", + Dict{String,Any}( + "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "RemoveSourceIdentifierFromSubscription", - Dict{String,Any}( - "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_source_identifier_from_subscription( SourceIdentifier, SubscriptionName, @@ -3588,16 +3454,14 @@ Removes metadata tags from an Amazon Neptune resource. - `tag_keys`: The tag key (name) of the tag to be removed. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "RemoveTagsFromResource", + Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "RemoveTagsFromResource", - Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceName, TagKeys, @@ -3642,16 +3506,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cluster parameter group to their default values, and false otherwise. You can't use this parameter if there is a list of parameter names specified for the Parameters parameter. """ -function reset_dbcluster_parameter_group( +reset_dbcluster_parameter_group( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "ResetDBClusterParameterGroup", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ResetDBClusterParameterGroup", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_dbcluster_parameter_group( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -3697,16 +3559,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResetAllParameters"`: Specifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values. Default: true """ -function reset_dbparameter_group( +reset_dbparameter_group( DBParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = neptune( + "ResetDBParameterGroup", + Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "ResetDBParameterGroup", - Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_dbparameter_group( DBParameterGroupName, params::AbstractDict{String}; @@ -3792,23 +3652,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of VPC security groups that the new DB cluster will belong to. """ -function restore_dbcluster_from_snapshot( +restore_dbcluster_from_snapshot( DBClusterIdentifier, Engine, SnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "RestoreDBClusterFromSnapshot", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "Engine" => Engine, + "SnapshotIdentifier" => SnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "RestoreDBClusterFromSnapshot", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "Engine" => Engine, - "SnapshotIdentifier" => SnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbcluster_from_snapshot( DBClusterIdentifier, Engine, @@ -3908,21 +3766,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified if RestoreToTime parameter is provided. - `"VpcSecurityGroupIds"`: A list of VPC security groups that the new DB cluster belongs to. """ -function restore_dbcluster_to_point_in_time( +restore_dbcluster_to_point_in_time( DBClusterIdentifier, SourceDBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptune( + "RestoreDBClusterToPointInTime", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "SourceDBClusterIdentifier" => SourceDBClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptune( - "RestoreDBClusterToPointInTime", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "SourceDBClusterIdentifier" => SourceDBClusterIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbcluster_to_point_in_time( DBClusterIdentifier, SourceDBClusterIdentifier, @@ -3958,16 +3814,13 @@ CLI stop-db-cluster command, or the StopDBCluster API. started. This parameter is stored as a lowercase string. """ -function start_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptune( +start_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "StartDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -4000,16 +3853,13 @@ the transaction logs so you can do a point-in-time restore if necessary. stopped. This parameter is stored as a lowercase string. """ -function stop_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptune( +stop_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + neptune( "StopDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; diff --git a/src/services/neptunedata.jl b/src/services/neptunedata.jl index 2967e2c4a..91b1f1145 100644 --- a/src/services/neptunedata.jl +++ b/src/services/neptunedata.jl @@ -17,14 +17,13 @@ IAM action in that cluster. - `query_id`: The unique identifier that identifies the query to be canceled. """ -function cancel_gremlin_query(queryId; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +cancel_gremlin_query(queryId; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "DELETE", "/gremlin/status/$(queryId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_gremlin_query( queryId, params::AbstractDict{String}; @@ -52,14 +51,12 @@ that allows the neptune-db:CancelLoaderJob IAM action in that cluster.. - `load_id`: The ID of the load job to be deleted. """ -function cancel_loader_job(loadId; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "DELETE", - "/loader/$(loadId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_loader_job(loadId; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "DELETE", + "/loader/$(loadId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_loader_job( loadId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -92,16 +89,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function cancel_mldata_processing_job( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +cancel_mldata_processing_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "DELETE", "/ml/dataprocessing/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_mldata_processing_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -134,14 +128,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function cancel_mlmodel_training_job(id; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +cancel_mlmodel_training_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "DELETE", "/ml/modeltraining/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_mlmodel_training_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -174,16 +167,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function cancel_mlmodel_transform_job( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +cancel_mlmodel_transform_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "DELETE", "/ml/modeltransform/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_mlmodel_transform_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -213,16 +203,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"silent"`: If set to TRUE, causes the cancelation of the openCypher query to happen silently. """ -function cancel_open_cypher_query( - queryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +cancel_open_cypher_query(queryId; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "DELETE", "/opencypher/status/$(queryId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_open_cypher_query( queryId, params::AbstractDict{String}; @@ -275,11 +262,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SageMaker uses to encrypt data on the storage volume attached to the ML compute instances that run the training job. The default is None. """ -function create_mlendpoint(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "POST", "/ml/endpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_mlendpoint(; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "POST", "/ml/endpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function create_mlendpoint( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -312,14 +297,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will be thrown. """ -function delete_mlendpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "DELETE", - "/ml/endpoints/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_mlendpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "DELETE", + "/ml/endpoints/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_mlendpoint( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -342,16 +325,13 @@ making the request must have a policy attached that allows the neptune-db:Delete IAM action in that cluster. """ -function delete_propertygraph_statistics(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +delete_propertygraph_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "DELETE", "/propertygraph/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_propertygraph_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -373,14 +353,13 @@ authentication enabled, the IAM user or role making the request must have a poli that allows the neptune-db:DeleteStatistics IAM action in that cluster. """ -function delete_sparql_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +delete_sparql_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "DELETE", "/sparql/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_sparql_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -415,15 +394,14 @@ have a policy attached that allows the neptune-db:ResetDatabase IAM action in th Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"token"`: The fast-reset token to initiate the reset. """ -function execute_fast_reset(action; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +execute_fast_reset(action; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "POST", "/system", Dict{String,Any}("action" => action); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function execute_fast_reset( action, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -459,17 +437,14 @@ condition key can be used in the policy document to restrict the use of Gremlin - `gremlin`: The Gremlin explain query string. """ -function execute_gremlin_explain_query( - gremlin; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +execute_gremlin_explain_query(gremlin; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "POST", "/gremlin/explain", Dict{String,Any}("gremlin" => gremlin); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function execute_gremlin_explain_query( gremlin, params::AbstractDict{String}; @@ -512,17 +487,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response message in the format specified by this parameter. See Gremlin profile API in Neptune for more information. """ -function execute_gremlin_profile_query( - gremlin; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +execute_gremlin_profile_query(gremlin; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "POST", "/gremlin/profile", Dict{String,Any}("gremlin" => gremlin); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function execute_gremlin_profile_query( gremlin, params::AbstractDict{String}; @@ -564,15 +536,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the format specified by this parameter. See the GraphSON section in the TinkerPop documentation for a list of the formats that are currently supported. """ -function execute_gremlin_query(gremlin; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +execute_gremlin_query(gremlin; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "POST", "/gremlin", Dict{String,Any}("gremlin" => gremlin); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function execute_gremlin_query( gremlin, params::AbstractDict{String}; @@ -607,17 +578,15 @@ data-access policy statements). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"parameters"`: The openCypher query parameters. """ -function execute_open_cypher_explain_query( +execute_open_cypher_explain_query( explain, query; aws_config::AbstractAWSConfig=current_aws_config() +) = neptunedata( + "POST", + "/opencypher/explain", + Dict{String,Any}("explain" => explain, "query" => query); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptunedata( - "POST", - "/opencypher/explain", - Dict{String,Any}("explain" => explain, "query" => query); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_open_cypher_explain_query( explain, query, @@ -664,17 +633,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parameters"`: The openCypher query parameters for query execution. See Examples of openCypher parameterized queries for more information. """ -function execute_open_cypher_query( - query; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +execute_open_cypher_query(query; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "POST", "/opencypher", Dict{String,Any}("query" => query); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function execute_open_cypher_query( query, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -697,11 +663,8 @@ request must have a policy attached that allows the neptune-db:GetEngineStatus I in that cluster. """ -function get_engine_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "GET", "/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_engine_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata("GET", "/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_engine_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -725,16 +688,13 @@ Neptune IAM data-access policy statements). - `query_id`: The unique identifier that identifies the Gremlin query. """ -function get_gremlin_query_status( - queryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +get_gremlin_query_status(queryId; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/gremlin/status/$(queryId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_gremlin_query_status( queryId, params::AbstractDict{String}; @@ -774,11 +734,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"page"`: The error page number (a positive integer; the default is 1). Only valid when the errors parameter is set to TRUE. """ -function get_loader_job_status(loadId; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +get_loader_job_status(loadId; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/loader/$(loadId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_loader_job_status( loadId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -809,14 +768,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function get_mldata_processing_job(id; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +get_mldata_processing_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/ml/dataprocessing/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_mldata_processing_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -847,11 +805,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function get_mlendpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "GET", "/ml/endpoints/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_mlendpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "GET", "/ml/endpoints/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_mlendpoint( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -882,14 +838,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function get_mlmodel_training_job(id; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +get_mlmodel_training_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/ml/modeltraining/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_mlmodel_training_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -920,14 +875,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function get_mlmodel_transform_job(id; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +get_mlmodel_transform_job(id; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/ml/modeltransform/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_mlmodel_transform_job( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -955,16 +909,13 @@ available in Neptune IAM data-access policy statements). - `query_id`: The unique ID of the openCypher query for which to retrieve the query status. """ -function get_open_cypher_query_status( - queryId; aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +get_open_cypher_query_status(queryId; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/opencypher/status/$(queryId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_open_cypher_query_status( queryId, params::AbstractDict{String}; @@ -989,14 +940,13 @@ request must have a policy attached that allows the neptune-db:GetStatisticsStat action in that cluster. """ -function get_propertygraph_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +get_propertygraph_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/propertygraph/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_propertygraph_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1051,14 +1001,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"opNum"`: The operation sequence number within the specified commit to start reading from in the change-log stream data. The default is 1. """ -function get_propertygraph_stream(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +get_propertygraph_stream(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/propertygraph/stream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_propertygraph_stream( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1084,14 +1033,13 @@ cluster. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"mode"`: Mode can take one of two values: BASIC (the default), and DETAILED. """ -function get_propertygraph_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +get_propertygraph_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/propertygraph/statistics/summary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_propertygraph_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1116,14 +1064,12 @@ policy attached that allows the neptune-db:GetGraphSummary IAM action in that cl Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"mode"`: Mode can take one of two values: BASIC (the default), and DETAILED. """ -function get_rdfgraph_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "GET", - "/rdf/statistics/summary"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rdfgraph_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "GET", + "/rdf/statistics/summary"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rdfgraph_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1143,11 +1089,9 @@ end Gets RDF statistics (SPARQL). """ -function get_sparql_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "GET", "/sparql/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_sparql_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "GET", "/sparql/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_sparql_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1199,11 +1143,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"opNum"`: The operation sequence number within the specified commit to start reading from in the change-log stream data. The default is 1. """ -function get_sparql_stream(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "GET", "/sparql/stream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_sparql_stream(; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "GET", "/sparql/stream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_sparql_stream( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1233,11 +1175,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includeWaiting"`: If set to TRUE, the list returned includes waiting queries. The default is FALSE; """ -function list_gremlin_queries(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "GET", "/gremlin/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_gremlin_queries(; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "GET", "/gremlin/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_gremlin_queries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1267,11 +1207,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"limit"`: The number of load IDs to list. Must be a positive integer greater than zero and not more than 100 (which is the default). """ -function list_loader_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "GET", "/loader"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_loader_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata("GET", "/loader"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_loader_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1297,11 +1234,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function list_mldata_processing_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +list_mldata_processing_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/ml/dataprocessing"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_mldata_processing_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1330,11 +1266,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function list_mlendpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( - "GET", "/ml/endpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_mlendpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = neptunedata( + "GET", "/ml/endpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_mlendpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1363,11 +1297,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function list_mlmodel_training_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +list_mlmodel_training_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/ml/modeltraining"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_mlmodel_training_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1396,11 +1329,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur. """ -function list_mlmodel_transform_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +list_mlmodel_transform_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/ml/modeltransform"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_mlmodel_transform_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1430,11 +1362,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"includeWaiting"`: When set to TRUE and other parameters are not present, causes status information to be returned for waiting queries as well as for running queries. """ -function list_open_cypher_queries(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +list_open_cypher_queries(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "GET", "/opencypher/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_open_cypher_queries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1462,16 +1393,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ENABLE_AUTOCOMPUTE, or REFRESH, the last of which manually triggers DFE statistics generation. """ -function manage_propertygraph_statistics(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return neptunedata( +manage_propertygraph_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "POST", "/propertygraph/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function manage_propertygraph_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1499,11 +1427,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ENABLE_AUTOCOMPUTE, or REFRESH, the last of which manually triggers DFE statistics generation. """ -function manage_sparql_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return neptunedata( +manage_sparql_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = + neptunedata( "POST", "/sparql/statistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function manage_sparql_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1638,22 +1565,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if any relationship file has had to be corrected, and must instead reload all the relationships. """ -function start_loader_job( +start_loader_job( format, iamRoleArn, region, source; aws_config::AbstractAWSConfig=current_aws_config() +) = neptunedata( + "POST", + "/loader", + Dict{String,Any}( + "format" => format, + "iamRoleArn" => iamRoleArn, + "region" => region, + "source" => source, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptunedata( - "POST", - "/loader", - Dict{String,Any}( - "format" => format, - "iamRoleArn" => iamRoleArn, - "region" => region, - "source" => source, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_loader_job( format, iamRoleArn, @@ -1732,22 +1657,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SageMaker uses to encrypt data on the storage volume attached to the ML compute instances that run the training job. The default is None. """ -function start_mldata_processing_job( +start_mldata_processing_job( inputDataS3Location, processedDataS3Location; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptunedata( + "POST", + "/ml/dataprocessing", + Dict{String,Any}( + "inputDataS3Location" => inputDataS3Location, + "processedDataS3Location" => processedDataS3Location, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptunedata( - "POST", - "/ml/dataprocessing", - Dict{String,Any}( - "inputDataS3Location" => inputDataS3Location, - "processedDataS3Location" => processedDataS3Location, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_mldata_processing_job( inputDataS3Location, processedDataS3Location, @@ -1829,22 +1752,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys uses to encrypt data on the storage volume attached to the ML compute instances that run the training job. The default is None. """ -function start_mlmodel_training_job( +start_mlmodel_training_job( dataProcessingJobId, trainModelS3Location; aws_config::AbstractAWSConfig=current_aws_config(), +) = neptunedata( + "POST", + "/ml/modeltraining", + Dict{String,Any}( + "dataProcessingJobId" => dataProcessingJobId, + "trainModelS3Location" => trainModelS3Location, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptunedata( - "POST", - "/ml/modeltraining", - Dict{String,Any}( - "dataProcessingJobId" => dataProcessingJobId, - "trainModelS3Location" => trainModelS3Location, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_mlmodel_training_job( dataProcessingJobId, trainModelS3Location, @@ -1915,19 +1836,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys uses to encrypt data on the storage volume attached to the ML compute instances that run the training job. The default is None. """ -function start_mlmodel_transform_job( +start_mlmodel_transform_job( modelTransformOutputS3Location; aws_config::AbstractAWSConfig=current_aws_config() +) = neptunedata( + "POST", + "/ml/modeltransform", + Dict{String,Any}("modelTransformOutputS3Location" => modelTransformOutputS3Location); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return neptunedata( - "POST", - "/ml/modeltransform", - Dict{String,Any}( - "modelTransformOutputS3Location" => modelTransformOutputS3Location - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_mlmodel_transform_job( modelTransformOutputS3Location, params::AbstractDict{String}; diff --git a/src/services/network_firewall.jl b/src/services/network_firewall.jl index 9531bc306..63abd90d3 100644 --- a/src/services/network_firewall.jl +++ b/src/services/network_firewall.jl @@ -35,16 +35,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of it with a new token. Reapply your changes as needed, then try the operation again using the new token. """ -function associate_firewall_policy( +associate_firewall_policy( FirewallPolicyArn; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "AssociateFirewallPolicy", + Dict{String,Any}("FirewallPolicyArn" => FirewallPolicyArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "AssociateFirewallPolicy", - Dict{String,Any}("FirewallPolicyArn" => FirewallPolicyArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_firewall_policy( FirewallPolicyArn, params::AbstractDict{String}; @@ -95,16 +93,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of it with a new token. Reapply your changes as needed, then try the operation again using the new token. """ -function associate_subnets( - SubnetMappings; aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +associate_subnets(SubnetMappings; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "AssociateSubnets", Dict{String,Any}("SubnetMappings" => SubnetMappings); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_subnets( SubnetMappings, params::AbstractDict{String}; @@ -166,25 +161,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys create a firewall, the operation initializes this setting to TRUE. - `"Tags"`: The key:value pairs to associate with the resource. """ -function create_firewall( +create_firewall( FirewallName, FirewallPolicyArn, SubnetMappings, VpcId; aws_config::AbstractAWSConfig=current_aws_config(), +) = network_firewall( + "CreateFirewall", + Dict{String,Any}( + "FirewallName" => FirewallName, + "FirewallPolicyArn" => FirewallPolicyArn, + "SubnetMappings" => SubnetMappings, + "VpcId" => VpcId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "CreateFirewall", - Dict{String,Any}( - "FirewallName" => FirewallName, - "FirewallPolicyArn" => FirewallPolicyArn, - "SubnetMappings" => SubnetMappings, - "VpcId" => VpcId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_firewall( FirewallName, FirewallPolicyArn, @@ -241,18 +234,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys firewall policy resources. - `"Tags"`: The key:value pairs to associate with the resource. """ -function create_firewall_policy( +create_firewall_policy( FirewallPolicy, FirewallPolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "CreateFirewallPolicy", + Dict{String,Any}( + "FirewallPolicy" => FirewallPolicy, "FirewallPolicyName" => FirewallPolicyName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "CreateFirewallPolicy", - Dict{String,Any}( - "FirewallPolicy" => FirewallPolicy, "FirewallPolicyName" => FirewallPolicyName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_firewall_policy( FirewallPolicy, FirewallPolicyName, @@ -342,18 +333,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the originating rule group. - `"Tags"`: The key:value pairs to associate with the resource. """ -function create_rule_group( +create_rule_group( Capacity, RuleGroupName, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "CreateRuleGroup", + Dict{String,Any}( + "Capacity" => Capacity, "RuleGroupName" => RuleGroupName, "Type" => Type + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "CreateRuleGroup", - Dict{String,Any}( - "Capacity" => Capacity, "RuleGroupName" => RuleGroupName, "Type" => Type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule_group( Capacity, RuleGroupName, @@ -381,17 +370,21 @@ end create_tlsinspection_configuration(tlsinspection_configuration, tlsinspection_configuration_name) create_tlsinspection_configuration(tlsinspection_configuration, tlsinspection_configuration_name, params::Dict{String,<:Any}) -Creates an Network Firewall TLS inspection configuration. A TLS inspection configuration -contains Certificate Manager certificate associations between and the scope configurations -that Network Firewall uses to decrypt and re-encrypt traffic traveling through your -firewall. After you create a TLS inspection configuration, you can associate it with a new -firewall policy. To update the settings for a TLS inspection configuration, use -UpdateTLSInspectionConfiguration. To manage a TLS inspection configuration's tags, use the -standard Amazon Web Services resource tagging operations, ListTagsForResource, TagResource, -and UntagResource. To retrieve information about TLS inspection configurations, use -ListTLSInspectionConfigurations and DescribeTLSInspectionConfiguration. For more -information about TLS inspection configurations, see Inspecting SSL/TLS traffic with TLS -inspection configurations in the Network Firewall Developer Guide. +Creates an Network Firewall TLS inspection configuration. Network Firewall uses TLS +inspection configurations to decrypt your firewall's inbound and outbound SSL/TLS traffic. +After decryption, Network Firewall inspects the traffic according to your firewall policy's +stateful rules, and then re-encrypts it before sending it to its destination. You can +enable inspection of your firewall's inbound traffic, outbound traffic, or both. To use TLS +inspection with your firewall, you must first import or provision certificates using ACM, +create a TLS inspection configuration, add that configuration to a new firewall policy, and +then associate that policy with your firewall. To update the settings for a TLS inspection +configuration, use UpdateTLSInspectionConfiguration. To manage a TLS inspection +configuration's tags, use the standard Amazon Web Services resource tagging operations, +ListTagsForResource, TagResource, and UntagResource. To retrieve information about TLS +inspection configurations, use ListTLSInspectionConfigurations and +DescribeTLSInspectionConfiguration. For more information about TLS inspection +configurations, see Inspecting SSL/TLS traffic with TLS inspection configurations in the +Network Firewall Developer Guide. # Arguments - `tlsinspection_configuration`: The object that defines a TLS inspection configuration. @@ -416,21 +409,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EncryptionConfiguration"`: - `"Tags"`: The key:value pairs to associate with the resource. """ -function create_tlsinspection_configuration( +create_tlsinspection_configuration( TLSInspectionConfiguration, TLSInspectionConfigurationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = network_firewall( + "CreateTLSInspectionConfiguration", + Dict{String,Any}( + "TLSInspectionConfiguration" => TLSInspectionConfiguration, + "TLSInspectionConfigurationName" => TLSInspectionConfigurationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "CreateTLSInspectionConfiguration", - Dict{String,Any}( - "TLSInspectionConfiguration" => TLSInspectionConfiguration, - "TLSInspectionConfigurationName" => TLSInspectionConfigurationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_tlsinspection_configuration( TLSInspectionConfiguration, TLSInspectionConfigurationName, @@ -476,11 +467,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys firewall after you create it. You must specify the ARN or the name, and you can specify both. """ -function delete_firewall(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( - "DeleteFirewall"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_firewall(; aws_config::AbstractAWSConfig=current_aws_config()) = network_firewall( + "DeleteFirewall"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_firewall( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -503,11 +492,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys name of a firewall policy after you create it. You must specify the ARN or the name, and you can specify both. """ -function delete_firewall_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +delete_firewall_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DeleteFirewallPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_firewall_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -530,16 +518,13 @@ Deletes a resource policy that you created in a PutResourcePolicy request. resource policy you want to delete. """ -function delete_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +delete_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DeleteResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -572,11 +557,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys stateless, it contains stateless rules. If it is stateful, it contains stateful rules. This setting is required for requests that do not include the RuleGroupARN. """ -function delete_rule_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( - "DeleteRuleGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_rule_group(; aws_config::AbstractAWSConfig=current_aws_config()) = network_firewall( + "DeleteRuleGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_rule_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -599,15 +582,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration. You can't change the name of a TLS inspection configuration after you create it. You must specify the ARN or the name, and you can specify both. """ -function delete_tlsinspection_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +delete_tlsinspection_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DeleteTLSInspectionConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tlsinspection_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -633,11 +613,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys firewall after you create it. You must specify the ARN or the name, and you can specify both. """ -function describe_firewall(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( - "DescribeFirewall"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_firewall(; aws_config::AbstractAWSConfig=current_aws_config()) = network_firewall( + "DescribeFirewall"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_firewall( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -660,11 +638,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys name of a firewall policy after you create it. You must specify the ARN or the name, and you can specify both. """ -function describe_firewall_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +describe_firewall_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DescribeFirewallPolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_firewall_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -690,15 +667,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys firewall after you create it. You must specify the ARN or the name, and you can specify both. """ -function describe_logging_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +describe_logging_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DescribeLoggingConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_logging_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -721,16 +695,13 @@ Retrieves a resource policy that you created in a PutResourcePolicy request. resource policy you want to retrieve. """ -function describe_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +describe_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DescribeResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -766,11 +737,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys stateless, it contains stateless rules. If it is stateful, it contains stateful rules. This setting is required for requests that do not include the RuleGroupARN. """ -function describe_rule_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +describe_rule_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DescribeRuleGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_rule_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -799,11 +769,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys stateless, it contains stateless rules. If it is stateful, it contains stateful rules. This setting is required for requests that do not include the RuleGroupARN. """ -function describe_rule_group_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +describe_rule_group_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DescribeRuleGroupMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_rule_group_metadata( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -829,15 +798,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration. You can't change the name of a TLS inspection configuration after you create it. You must specify the ARN or the name, and you can specify both. """ -function describe_tlsinspection_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +describe_tlsinspection_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DescribeTLSInspectionConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_tlsinspection_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -879,14 +845,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of it with a new token. Reapply your changes as needed, then try the operation again using the new token. """ -function disassociate_subnets(SubnetIds; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +disassociate_subnets(SubnetIds; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "DisassociateSubnets", Dict{String,Any}("SubnetIds" => SubnetIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_subnets( SubnetIds, params::AbstractDict{String}; @@ -920,11 +885,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Network Firewall returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_firewall_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +list_firewall_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "ListFirewallPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_firewall_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -957,11 +921,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcIds"`: The unique identifiers of the VPCs that you want Network Firewall to retrieve the firewalls for. Leave this blank to retrieve all firewalls that you have defined. """ -function list_firewalls(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( - "ListFirewalls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_firewalls(; aws_config::AbstractAWSConfig=current_aws_config()) = network_firewall( + "ListFirewalls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_firewalls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -995,11 +957,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules. """ -function list_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( - "ListRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = network_firewall( + "ListRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_rule_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1032,16 +992,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Network Firewall returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1075,15 +1032,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Network Firewall returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_tlsinspection_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +list_tlsinspection_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "ListTLSInspectionConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tlsinspection_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1127,16 +1081,14 @@ sharing using RAM, see Resource Access Manager User Guide. groups and firewall policies with. """ -function put_resource_policy( +put_resource_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "PutResourcePolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "PutResourcePolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( Policy, ResourceArn, @@ -1173,14 +1125,13 @@ Firewall: firewalls, firewall policies, and rule groups. - `tags`: """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1217,16 +1168,13 @@ manage through Network Firewall: firewalls, firewall policies, and rule groups. - `tag_keys`: """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return network_firewall( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1280,16 +1228,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of it with a new token. Reapply your changes as needed, then try the operation again using the new token. """ -function update_firewall_delete_protection( +update_firewall_delete_protection( DeleteProtection; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "UpdateFirewallDeleteProtection", + Dict{String,Any}("DeleteProtection" => DeleteProtection); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "UpdateFirewallDeleteProtection", - Dict{String,Any}("DeleteProtection" => DeleteProtection); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_firewall_delete_protection( DeleteProtection, params::AbstractDict{String}; @@ -1335,11 +1281,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of it with a new token. Reapply your changes as needed, then try the operation again using the new token. """ -function update_firewall_description(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +update_firewall_description(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "UpdateFirewallDescription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_firewall_description( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1375,15 +1320,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of it with a new token. Reapply your changes as needed, then try the operation again using the new token. """ -function update_firewall_encryption_configuration(; +update_firewall_encryption_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "UpdateFirewallEncryptionConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "UpdateFirewallEncryptionConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_firewall_encryption_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1433,16 +1376,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys name of a firewall policy after you create it. You must specify the ARN or the name, and you can specify both. """ -function update_firewall_policy( +update_firewall_policy( FirewallPolicy, UpdateToken; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "UpdateFirewallPolicy", + Dict{String,Any}("FirewallPolicy" => FirewallPolicy, "UpdateToken" => UpdateToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "UpdateFirewallPolicy", - Dict{String,Any}("FirewallPolicy" => FirewallPolicy, "UpdateToken" => UpdateToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_firewall_policy( FirewallPolicy, UpdateToken, @@ -1498,18 +1439,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of it with a new token. Reapply your changes as needed, then try the operation again using the new token. """ -function update_firewall_policy_change_protection( +update_firewall_policy_change_protection( FirewallPolicyChangeProtection; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "UpdateFirewallPolicyChangeProtection", + Dict{String,Any}("FirewallPolicyChangeProtection" => FirewallPolicyChangeProtection); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "UpdateFirewallPolicyChangeProtection", - Dict{String,Any}( - "FirewallPolicyChangeProtection" => FirewallPolicyChangeProtection - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_firewall_policy_change_protection( FirewallPolicyChangeProtection, params::AbstractDict{String}; @@ -1558,11 +1495,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LoggingConfiguration"`: Defines how Network Firewall performs logging for a firewall. If you omit this setting, Network Firewall disables logging for the firewall. """ -function update_logging_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +update_logging_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "UpdateLoggingConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_logging_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1631,14 +1567,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys stateless, it contains stateless rules. If it is stateful, it contains stateful rules. This setting is required for requests that do not include the RuleGroupARN. """ -function update_rule_group(UpdateToken; aws_config::AbstractAWSConfig=current_aws_config()) - return network_firewall( +update_rule_group(UpdateToken; aws_config::AbstractAWSConfig=current_aws_config()) = + network_firewall( "UpdateRuleGroup", Dict{String,Any}("UpdateToken" => UpdateToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_rule_group( UpdateToken, params::AbstractDict{String}; @@ -1685,16 +1620,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of it with a new token. Reapply your changes as needed, then try the operation again using the new token. """ -function update_subnet_change_protection( +update_subnet_change_protection( SubnetChangeProtection; aws_config::AbstractAWSConfig=current_aws_config() +) = network_firewall( + "UpdateSubnetChangeProtection", + Dict{String,Any}("SubnetChangeProtection" => SubnetChangeProtection); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "UpdateSubnetChangeProtection", - Dict{String,Any}("SubnetChangeProtection" => SubnetChangeProtection); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_subnet_change_protection( SubnetChangeProtection, params::AbstractDict{String}; @@ -1760,21 +1693,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration. You can't change the name of a TLS inspection configuration after you create it. """ -function update_tlsinspection_configuration( +update_tlsinspection_configuration( TLSInspectionConfiguration, UpdateToken; aws_config::AbstractAWSConfig=current_aws_config(), +) = network_firewall( + "UpdateTLSInspectionConfiguration", + Dict{String,Any}( + "TLSInspectionConfiguration" => TLSInspectionConfiguration, + "UpdateToken" => UpdateToken, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return network_firewall( - "UpdateTLSInspectionConfiguration", - Dict{String,Any}( - "TLSInspectionConfiguration" => TLSInspectionConfiguration, - "UpdateToken" => UpdateToken, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_tlsinspection_configuration( TLSInspectionConfiguration, UpdateToken, diff --git a/src/services/networkmanager.jl b/src/services/networkmanager.jl index 7947fb4dd..262eada5d 100644 --- a/src/services/networkmanager.jl +++ b/src/services/networkmanager.jl @@ -15,14 +15,13 @@ core network owner, the attachment is created and connected to a core network. - `attachment_id`: The ID of the attachment. """ -function accept_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +accept_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "POST", "/attachments/$(attachmentId)/accept"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function accept_attachment( attachmentId, params::AbstractDict{String}; @@ -55,20 +54,18 @@ core network. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LinkId"`: The ID of the link. """ -function associate_connect_peer( +associate_connect_peer( ConnectPeerId, DeviceId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/connect-peer-associations", + Dict{String,Any}("ConnectPeerId" => ConnectPeerId, "DeviceId" => DeviceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/connect-peer-associations", - Dict{String,Any}("ConnectPeerId" => ConnectPeerId, "DeviceId" => DeviceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_connect_peer( ConnectPeerId, DeviceId, @@ -113,22 +110,18 @@ customer gateway with more than one device and link. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LinkId"`: The ID of the link. """ -function associate_customer_gateway( +associate_customer_gateway( CustomerGatewayArn, DeviceId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/customer-gateway-associations", + Dict{String,Any}("CustomerGatewayArn" => CustomerGatewayArn, "DeviceId" => DeviceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/customer-gateway-associations", - Dict{String,Any}( - "CustomerGatewayArn" => CustomerGatewayArn, "DeviceId" => DeviceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_customer_gateway( CustomerGatewayArn, DeviceId, @@ -167,17 +160,15 @@ and the same site. - `global_network_id`: The ID of the global network. """ -function associate_link( +associate_link( DeviceId, LinkId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/link-associations", + Dict{String,Any}("DeviceId" => DeviceId, "LinkId" => LinkId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/link-associations", - Dict{String,Any}("DeviceId" => DeviceId, "LinkId" => LinkId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_link( DeviceId, LinkId, @@ -217,23 +208,21 @@ more than one device and link. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LinkId"`: The ID of the link. """ -function associate_transit_gateway_connect_peer( +associate_transit_gateway_connect_peer( DeviceId, TransitGatewayConnectPeerArn, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/transit-gateway-connect-peer-associations", + Dict{String,Any}( + "DeviceId" => DeviceId, + "TransitGatewayConnectPeerArn" => TransitGatewayConnectPeerArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/transit-gateway-connect-peer-associations", - Dict{String,Any}( - "DeviceId" => DeviceId, - "TransitGatewayConnectPeerArn" => TransitGatewayConnectPeerArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_transit_gateway_connect_peer( DeviceId, TransitGatewayConnectPeerArn, @@ -279,27 +268,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: The client token associated with the request. - `"Tags"`: The list of key-value tags associated with the request. """ -function create_connect_attachment( +create_connect_attachment( CoreNetworkId, EdgeLocation, Options, TransportAttachmentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "POST", + "/connect-attachments", + Dict{String,Any}( + "CoreNetworkId" => CoreNetworkId, + "EdgeLocation" => EdgeLocation, + "Options" => Options, + "TransportAttachmentId" => TransportAttachmentId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/connect-attachments", - Dict{String,Any}( - "CoreNetworkId" => CoreNetworkId, - "EdgeLocation" => EdgeLocation, - "Options" => Options, - "TransportAttachmentId" => TransportAttachmentId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connect_attachment( CoreNetworkId, EdgeLocation, @@ -353,21 +340,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys protocol is NO_ENCAP. - `"Tags"`: The tags associated with the peer request. """ -function create_connect_peer( +create_connect_peer( ConnectAttachmentId, PeerAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/connect-peers", + Dict{String,Any}( + "ConnectAttachmentId" => ConnectAttachmentId, + "PeerAddress" => PeerAddress, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/connect-peers", - Dict{String,Any}( - "ConnectAttachmentId" => ConnectAttachmentId, - "PeerAddress" => PeerAddress, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connect_peer( ConnectAttachmentId, PeerAddress, @@ -414,20 +399,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LinkId"`: The ID of the link for the first device. - `"Tags"`: The tags to apply to the resource during creation. """ -function create_connection( +create_connection( ConnectedDeviceId, DeviceId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/connections", + Dict{String,Any}("ConnectedDeviceId" => ConnectedDeviceId, "DeviceId" => DeviceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/connections", - Dict{String,Any}("ConnectedDeviceId" => ConnectedDeviceId, "DeviceId" => DeviceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connection( ConnectedDeviceId, DeviceId, @@ -469,10 +452,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyDocument"`: The policy document for creating a core network. - `"Tags"`: Key-value tags associated with a core network request. """ -function create_core_network( - GlobalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +create_core_network(GlobalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "POST", "/core-networks", Dict{String,Any}( @@ -481,7 +462,6 @@ function create_core_network( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_core_network( GlobalNetworkId, params::AbstractDict{String}; @@ -529,14 +509,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: The type of the device. - `"Vendor"`: The vendor of the device. Constraints: Maximum length of 128 characters. """ -function create_device(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +create_device(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "POST", "/global-networks/$(globalNetworkId)/devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_device( globalNetworkId, params::AbstractDict{String}; @@ -563,11 +542,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters. - `"Tags"`: The tags to apply to the resource during creation. """ -function create_global_network(; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +create_global_network(; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "POST", "/global-networks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function create_global_network( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -600,17 +578,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: The type of the link. Constraints: Maximum length of 128 characters. Cannot include the following characters: | ^ """ -function create_link( +create_link( Bandwidth, SiteId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/links", + Dict{String,Any}("Bandwidth" => Bandwidth, "SiteId" => SiteId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/links", - Dict{String,Any}("Bandwidth" => Bandwidth, "SiteId" => SiteId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_link( Bandwidth, SiteId, @@ -652,14 +628,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys latitude of the site. Longitude: The longitude of the site. - `"Tags"`: The tags to apply to the resource during creation. """ -function create_site(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +create_site(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "POST", "/global-networks/$(globalNetworkId)/sites"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_site( globalNetworkId, params::AbstractDict{String}; @@ -691,21 +666,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: The client token associated with the request. - `"Tags"`: The tags associated with the request. """ -function create_site_to_site_vpn_attachment( +create_site_to_site_vpn_attachment( CoreNetworkId, VpnConnectionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/site-to-site-vpn-attachments", + Dict{String,Any}( + "CoreNetworkId" => CoreNetworkId, + "VpnConnectionArn" => VpnConnectionArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/site-to-site-vpn-attachments", - Dict{String,Any}( - "CoreNetworkId" => CoreNetworkId, - "VpnConnectionArn" => VpnConnectionArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_site_to_site_vpn_attachment( CoreNetworkId, VpnConnectionArn, @@ -746,21 +719,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: The client token associated with the request. - `"Tags"`: The list of key-value tags associated with the request. """ -function create_transit_gateway_peering( +create_transit_gateway_peering( CoreNetworkId, TransitGatewayArn; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/transit-gateway-peerings", + Dict{String,Any}( + "CoreNetworkId" => CoreNetworkId, + "TransitGatewayArn" => TransitGatewayArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/transit-gateway-peerings", - Dict{String,Any}( - "CoreNetworkId" => CoreNetworkId, - "TransitGatewayArn" => TransitGatewayArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_peering( CoreNetworkId, TransitGatewayArn, @@ -803,23 +774,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: The client token associated with the request. - `"Tags"`: The list of key-value tags associated with the request. """ -function create_transit_gateway_route_table_attachment( +create_transit_gateway_route_table_attachment( PeeringId, TransitGatewayRouteTableArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "POST", + "/transit-gateway-route-table-attachments", + Dict{String,Any}( + "PeeringId" => PeeringId, + "TransitGatewayRouteTableArn" => TransitGatewayRouteTableArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/transit-gateway-route-table-attachments", - Dict{String,Any}( - "PeeringId" => PeeringId, - "TransitGatewayRouteTableArn" => TransitGatewayRouteTableArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transit_gateway_route_table_attachment( PeeringId, TransitGatewayRouteTableArn, @@ -862,22 +831,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Options"`: Options for the VPC attachment. - `"Tags"`: The key-value tags associated with the request. """ -function create_vpc_attachment( +create_vpc_attachment( CoreNetworkId, SubnetArns, VpcArn; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/vpc-attachments", + Dict{String,Any}( + "CoreNetworkId" => CoreNetworkId, + "SubnetArns" => SubnetArns, + "VpcArn" => VpcArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/vpc-attachments", - Dict{String,Any}( - "CoreNetworkId" => CoreNetworkId, - "SubnetArns" => SubnetArns, - "VpcArn" => VpcArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_attachment( CoreNetworkId, SubnetArns, @@ -915,14 +882,13 @@ Deletes an attachment. Supports all attachment types. - `attachment_id`: The ID of the attachment to delete. """ -function delete_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +delete_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/attachments/$(attachmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_attachment( attachmentId, params::AbstractDict{String}; @@ -947,16 +913,13 @@ Deletes a Connect peer. - `connect_peer_id`: The ID of the deleted Connect peer. """ -function delete_connect_peer( - connectPeerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +delete_connect_peer(connectPeerId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/connect-peers/$(connectPeerId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connect_peer( connectPeerId, params::AbstractDict{String}; @@ -982,16 +945,14 @@ Deletes the specified connection in your global network. - `global_network_id`: The ID of the global network. """ -function delete_connection( +delete_connection( connectionId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "DELETE", + "/global-networks/$(globalNetworkId)/connections/$(connectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "DELETE", - "/global-networks/$(globalNetworkId)/connections/$(connectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_connection( connectionId, globalNetworkId, @@ -1018,16 +979,13 @@ are no attachments on a core network. - `core_network_id`: The network ID of the deleted core network. """ -function delete_core_network( - coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +delete_core_network(coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/core-networks/$(coreNetworkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_core_network( coreNetworkId, params::AbstractDict{String}; @@ -1053,16 +1011,14 @@ Deletes a policy version from a core network. You can't delete the current LIVE - `policy_version_id`: The version ID of the deleted policy. """ -function delete_core_network_policy_version( +delete_core_network_policy_version( coreNetworkId, policyVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "DELETE", + "/core-networks/$(coreNetworkId)/core-network-policy-versions/$(policyVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "DELETE", - "/core-networks/$(coreNetworkId)/core-network-policy-versions/$(policyVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_core_network_policy_version( coreNetworkId, policyVersionId, @@ -1090,16 +1046,14 @@ customer gateways. - `global_network_id`: The ID of the global network. """ -function delete_device( +delete_device( deviceId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "DELETE", + "/global-networks/$(globalNetworkId)/devices/$(deviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "DELETE", - "/global-networks/$(globalNetworkId)/devices/$(deviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_device( deviceId, globalNetworkId, @@ -1126,16 +1080,13 @@ Deletes an existing global network. You must first delete all global network obj - `global_network_id`: The ID of the global network. """ -function delete_global_network( - globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +delete_global_network(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/global-networks/$(globalNetworkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_global_network( globalNetworkId, params::AbstractDict{String}; @@ -1162,16 +1113,13 @@ customer gateways. - `link_id`: The ID of the link. """ -function delete_link( - globalNetworkId, linkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +delete_link(globalNetworkId, linkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/global-networks/$(globalNetworkId)/links/$(linkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_link( globalNetworkId, linkId, @@ -1197,14 +1145,13 @@ Deletes an existing peering connection. - `peering_id`: The ID of the peering connection to delete. """ -function delete_peering(peeringId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +delete_peering(peeringId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/peerings/$(peeringId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_peering( peeringId, params::AbstractDict{String}; @@ -1230,16 +1177,13 @@ principals specified in the resource policy. - `resource_arn`: The ARN of the policy to delete. """ -function delete_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +delete_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/resource-policy/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( resourceArn, params::AbstractDict{String}; @@ -1265,16 +1209,13 @@ Deletes an existing site. The site cannot be associated with any device or link. - `site_id`: The ID of the site. """ -function delete_site( - globalNetworkId, siteId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +delete_site(globalNetworkId, siteId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/global-networks/$(globalNetworkId)/sites/$(siteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_site( globalNetworkId, siteId, @@ -1303,16 +1244,14 @@ associations. - `transit_gateway_arn`: The Amazon Resource Name (ARN) of the transit gateway. """ -function deregister_transit_gateway( +deregister_transit_gateway( globalNetworkId, transitGatewayArn; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "DELETE", + "/global-networks/$(globalNetworkId)/transit-gateway-registrations/$(transitGatewayArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "DELETE", - "/global-networks/$(globalNetworkId)/transit-gateway-registrations/$(transitGatewayArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_transit_gateway( globalNetworkId, transitGatewayArn, @@ -1343,11 +1282,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function describe_global_networks(; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +describe_global_networks(; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/global-networks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_global_networks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1371,16 +1309,14 @@ Disassociates a core network Connect peer from a device and a link. - `global_network_id`: The ID of the global network. """ -function disassociate_connect_peer( +disassociate_connect_peer( connectPeerId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "DELETE", + "/global-networks/$(globalNetworkId)/connect-peer-associations/$(connectPeerId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "DELETE", - "/global-networks/$(globalNetworkId)/connect-peer-associations/$(connectPeerId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_connect_peer( connectPeerId, globalNetworkId, @@ -1407,16 +1343,14 @@ Disassociates a customer gateway from a device and a link. - `global_network_id`: The ID of the global network. """ -function disassociate_customer_gateway( +disassociate_customer_gateway( customerGatewayArn, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "DELETE", + "/global-networks/$(globalNetworkId)/customer-gateway-associations/$(customerGatewayArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "DELETE", - "/global-networks/$(globalNetworkId)/customer-gateway-associations/$(customerGatewayArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_customer_gateway( customerGatewayArn, globalNetworkId, @@ -1445,17 +1379,15 @@ gateways that are associated with the link. - `link_id`: The ID of the link. """ -function disassociate_link( +disassociate_link( deviceId, globalNetworkId, linkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "DELETE", + "/global-networks/$(globalNetworkId)/link-associations", + Dict{String,Any}("deviceId" => deviceId, "linkId" => linkId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "DELETE", - "/global-networks/$(globalNetworkId)/link-associations", - Dict{String,Any}("deviceId" => deviceId, "linkId" => linkId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_link( deviceId, globalNetworkId, @@ -1488,18 +1420,16 @@ Disassociates a transit gateway Connect peer from a device and link. Connect peer. """ -function disassociate_transit_gateway_connect_peer( +disassociate_transit_gateway_connect_peer( globalNetworkId, transitGatewayConnectPeerArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "DELETE", + "/global-networks/$(globalNetworkId)/transit-gateway-connect-peer-associations/$(transitGatewayConnectPeerArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "DELETE", - "/global-networks/$(globalNetworkId)/transit-gateway-connect-peer-associations/$(transitGatewayConnectPeerArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_transit_gateway_connect_peer( globalNetworkId, transitGatewayConnectPeerArn, @@ -1527,16 +1457,14 @@ submitted.. - `policy_version_id`: The ID of the policy version. """ -function execute_core_network_change_set( +execute_core_network_change_set( coreNetworkId, policyVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/core-networks/$(coreNetworkId)/core-network-change-sets/$(policyVersionId)/execute"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/core-networks/$(coreNetworkId)/core-network-change-sets/$(policyVersionId)/execute"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_core_network_change_set( coreNetworkId, policyVersionId, @@ -1562,16 +1490,13 @@ Returns information about a core network Connect attachment. - `attachment_id`: The ID of the attachment. """ -function get_connect_attachment( - attachmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_connect_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/connect-attachments/$(attachmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connect_attachment( attachmentId, params::AbstractDict{String}; @@ -1596,14 +1521,13 @@ Returns information about a core network Connect peer. - `connect_peer_id`: The ID of the Connect peer. """ -function get_connect_peer(connectPeerId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +get_connect_peer(connectPeerId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/connect-peers/$(connectPeerId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connect_peer( connectPeerId, params::AbstractDict{String}; @@ -1633,16 +1557,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function get_connect_peer_associations( +get_connect_peer_associations( globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/global-networks/$(globalNetworkId)/connect-peer-associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/global-networks/$(globalNetworkId)/connect-peer-associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_connect_peer_associations( globalNetworkId, params::AbstractDict{String}; @@ -1673,16 +1595,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function get_connections( - globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_connections(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/global-networks/$(globalNetworkId)/connections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connections( globalNetworkId, params::AbstractDict{String}; @@ -1707,14 +1626,13 @@ Returns information about the LIVE policy for a core network. - `core_network_id`: The ID of a core network. """ -function get_core_network(coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +get_core_network(coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/core-networks/$(coreNetworkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_core_network( coreNetworkId, params::AbstractDict{String}; @@ -1744,16 +1662,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function get_core_network_change_events( +get_core_network_change_events( coreNetworkId, policyVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/core-networks/$(coreNetworkId)/core-network-change-events/$(policyVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/core-networks/$(coreNetworkId)/core-network-change-events/$(policyVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_core_network_change_events( coreNetworkId, policyVersionId, @@ -1784,16 +1700,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function get_core_network_change_set( +get_core_network_change_set( coreNetworkId, policyVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/core-networks/$(coreNetworkId)/core-network-change-sets/$(policyVersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/core-networks/$(coreNetworkId)/core-network-change-sets/$(policyVersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_core_network_change_set( coreNetworkId, policyVersionId, @@ -1824,16 +1738,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"alias"`: The alias of a core network policy - `"policyVersionId"`: The ID of a core network policy version. """ -function get_core_network_policy( - coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_core_network_policy(coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/core-networks/$(coreNetworkId)/core-network-policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_core_network_policy( coreNetworkId, params::AbstractDict{String}; @@ -1865,16 +1776,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function get_customer_gateway_associations( +get_customer_gateway_associations( globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/global-networks/$(globalNetworkId)/customer-gateway-associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/global-networks/$(globalNetworkId)/customer-gateway-associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_customer_gateway_associations( globalNetworkId, params::AbstractDict{String}; @@ -1905,14 +1814,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next page of results. - `"siteId"`: The ID of the site. """ -function get_devices(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +get_devices(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/global-networks/$(globalNetworkId)/devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_devices( globalNetworkId, params::AbstractDict{String}; @@ -1944,16 +1852,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function get_link_associations( - globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_link_associations(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/global-networks/$(globalNetworkId)/link-associations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_link_associations( globalNetworkId, params::AbstractDict{String}; @@ -1988,14 +1893,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"siteId"`: The ID of the site. - `"type"`: The link type. """ -function get_links(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +get_links(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/global-networks/$(globalNetworkId)/links"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_links( globalNetworkId, params::AbstractDict{String}; @@ -2031,16 +1935,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys transit-gateway-attachment transit-gateway-connect-peer transit-gateway-route-table vpn-connection """ -function get_network_resource_counts( +get_network_resource_counts( globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/global-networks/$(globalNetworkId)/network-resource-count"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/global-networks/$(globalNetworkId)/network-resource-count"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_network_resource_counts( globalNetworkId, params::AbstractDict{String}; @@ -2081,16 +1983,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys transit-gateway-attachment transit-gateway-connect-peer transit-gateway-route-table vpn-connection """ -function get_network_resource_relationships( +get_network_resource_relationships( globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/global-networks/$(globalNetworkId)/network-resource-relationships"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/global-networks/$(globalNetworkId)/network-resource-relationships"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_network_resource_relationships( globalNetworkId, params::AbstractDict{String}; @@ -2133,16 +2033,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys transit-gateway-attachment transit-gateway-connect-peer transit-gateway-route-table vpn-connection """ -function get_network_resources( - globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_network_resources(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/global-networks/$(globalNetworkId)/network-resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_network_resources( globalNetworkId, params::AbstractDict{String}; @@ -2181,19 +2078,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If you specify 10.0.1.0/30, then the result returns 10.0.1.0/29. - `"Types"`: The route types. """ -function get_network_routes( +get_network_routes( RouteTableIdentifier, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/network-routes", + Dict{String,Any}("RouteTableIdentifier" => RouteTableIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/network-routes", - Dict{String,Any}("RouteTableIdentifier" => RouteTableIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_network_routes( RouteTableIdentifier, globalNetworkId, @@ -2236,16 +2131,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceType"`: The resource type. The following are the supported resource types: connect-peer transit-gateway-connect-peer vpn-connection """ -function get_network_telemetry( - globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_network_telemetry(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/global-networks/$(globalNetworkId)/network-telemetry"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_network_telemetry( globalNetworkId, params::AbstractDict{String}; @@ -2270,16 +2162,13 @@ Returns information about a resource policy. - `resource_arn`: The ARN of the resource. """ -function get_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/resource-policy/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( resourceArn, params::AbstractDict{String}; @@ -2305,16 +2194,14 @@ Gets information about the specified route analysis. - `route_analysis_id`: The ID of the route analysis. """ -function get_route_analysis( +get_route_analysis( globalNetworkId, routeAnalysisId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/global-networks/$(globalNetworkId)/route-analyses/$(routeAnalysisId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/global-networks/$(globalNetworkId)/route-analyses/$(routeAnalysisId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_route_analysis( globalNetworkId, routeAnalysisId, @@ -2340,16 +2227,14 @@ Returns information about a site-to-site VPN attachment. - `attachment_id`: The ID of the attachment. """ -function get_site_to_site_vpn_attachment( +get_site_to_site_vpn_attachment( attachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/site-to-site-vpn-attachments/$(attachmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/site-to-site-vpn-attachments/$(attachmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_site_to_site_vpn_attachment( attachmentId, params::AbstractDict{String}; @@ -2379,14 +2264,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next page of results. - `"siteIds"`: One or more site IDs. The maximum is 10. """ -function get_sites(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +get_sites(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/global-networks/$(globalNetworkId)/sites"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_sites( globalNetworkId, params::AbstractDict{String}; @@ -2418,16 +2302,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"transitGatewayConnectPeerArns"`: One or more transit gateway Connect peer Amazon Resource Names (ARNs). """ -function get_transit_gateway_connect_peer_associations( +get_transit_gateway_connect_peer_associations( globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/global-networks/$(globalNetworkId)/transit-gateway-connect-peer-associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/global-networks/$(globalNetworkId)/transit-gateway-connect-peer-associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_connect_peer_associations( globalNetworkId, params::AbstractDict{String}; @@ -2452,16 +2334,13 @@ Returns information about a transit gateway peer. - `peering_id`: The ID of the peering request. """ -function get_transit_gateway_peering( - peeringId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_transit_gateway_peering(peeringId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/transit-gateway-peerings/$(peeringId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_transit_gateway_peering( peeringId, params::AbstractDict{String}; @@ -2492,16 +2371,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"transitGatewayArns"`: The Amazon Resource Names (ARNs) of one or more transit gateways. The maximum is 10. """ -function get_transit_gateway_registrations( +get_transit_gateway_registrations( globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/global-networks/$(globalNetworkId)/transit-gateway-registrations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/global-networks/$(globalNetworkId)/transit-gateway-registrations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_registrations( globalNetworkId, params::AbstractDict{String}; @@ -2526,16 +2403,14 @@ Returns information about a transit gateway route table attachment. - `attachment_id`: The ID of the transit gateway route table attachment. """ -function get_transit_gateway_route_table_attachment( +get_transit_gateway_route_table_attachment( attachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/transit-gateway-route-table-attachments/$(attachmentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/transit-gateway-route-table-attachments/$(attachmentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transit_gateway_route_table_attachment( attachmentId, params::AbstractDict{String}; @@ -2560,16 +2435,13 @@ Returns information about a VPC attachment. - `attachment_id`: The ID of the attachment. """ -function get_vpc_attachment( - attachmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +get_vpc_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/vpc-attachments/$(attachmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_vpc_attachment( attachmentId, params::AbstractDict{String}; @@ -2599,11 +2471,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next page of results. - `"state"`: The state of the attachment. """ -function list_attachments(; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( - "GET", "/attachments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_attachments(; aws_config::AbstractAWSConfig=current_aws_config()) = networkmanager( + "GET", "/attachments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_attachments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2629,11 +2499,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function list_connect_peers(; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( - "GET", "/connect-peers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connect_peers(; aws_config::AbstractAWSConfig=current_aws_config()) = networkmanager( + "GET", "/connect-peers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_connect_peers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2660,16 +2528,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function list_core_network_policy_versions( +list_core_network_policy_versions( coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/core-networks/$(coreNetworkId)/core-network-policy-versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/core-networks/$(coreNetworkId)/core-network-policy-versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_core_network_policy_versions( coreNetworkId, params::AbstractDict{String}; @@ -2695,11 +2561,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function list_core_networks(; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( - "GET", "/core-networks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_core_networks(; aws_config::AbstractAWSConfig=current_aws_config()) = networkmanager( + "GET", "/core-networks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_core_networks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2724,16 +2588,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: The token for the next page of results. """ -function list_organization_service_access_status(; +list_organization_service_access_status(; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "GET", + "/organizations/service-access"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "GET", - "/organizations/service-access"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_organization_service_access_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2761,11 +2623,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"peeringType"`: Returns a list of a peering requests. - `"state"`: Returns a list of the peering request states. """ -function list_peerings(; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( - "GET", "/peerings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_peerings(; aws_config::AbstractAWSConfig=current_aws_config()) = networkmanager( + "GET", "/peerings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_peerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2784,16 +2644,13 @@ Lists the tags for a specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2825,19 +2682,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: a core network policy description. - `"LatestVersionId"`: The ID of a core network policy. """ -function put_core_network_policy( +put_core_network_policy( PolicyDocument, coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/core-networks/$(coreNetworkId)/core-network-policy", + Dict{String,Any}("PolicyDocument" => PolicyDocument, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/core-networks/$(coreNetworkId)/core-network-policy", - Dict{String,Any}( - "PolicyDocument" => PolicyDocument, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_core_network_policy( PolicyDocument, coreNetworkId, @@ -2872,17 +2725,15 @@ Creates or updates a resource policy. - `resource_arn`: The ARN of the resource policy. """ -function put_resource_policy( +put_resource_policy( PolicyDocument, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/resource-policy/$(resourceArn)", + Dict{String,Any}("PolicyDocument" => PolicyDocument); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/resource-policy/$(resourceArn)", - Dict{String,Any}("PolicyDocument" => PolicyDocument); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( PolicyDocument, resourceArn, @@ -2916,17 +2767,15 @@ transit gateway in more than one global network. - `global_network_id`: The ID of the global network. """ -function register_transit_gateway( +register_transit_gateway( TransitGatewayArn, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/transit-gateway-registrations", + Dict{String,Any}("TransitGatewayArn" => TransitGatewayArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/transit-gateway-registrations", - Dict{String,Any}("TransitGatewayArn" => TransitGatewayArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_transit_gateway( TransitGatewayArn, globalNetworkId, @@ -2956,14 +2805,13 @@ Rejects a core network attachment request. - `attachment_id`: The ID of the attachment. """ -function reject_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +reject_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "POST", "/attachments/$(attachmentId)/reject"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reject_attachment( attachmentId, params::AbstractDict{String}; @@ -2991,16 +2839,14 @@ restored policy. - `policy_version_id`: The ID of the policy version to restore. """ -function restore_core_network_policy_version( +restore_core_network_policy_version( coreNetworkId, policyVersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/core-networks/$(coreNetworkId)/core-network-policy-versions/$(policyVersionId)/restore"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/core-networks/$(coreNetworkId)/core-network-policy-versions/$(policyVersionId)/restore"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_core_network_policy_version( coreNetworkId, policyVersionId, @@ -3027,17 +2873,15 @@ be called by a management account within the organization. - `action`: The action to take for the update request. This can be either ENABLE or DISABLE. """ -function start_organization_service_access_update( +start_organization_service_access_update( Action; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/organizations/service-access", + Dict{String,Any}("Action" => Action); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/organizations/service-access", - Dict{String,Any}("Action" => Action); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_organization_service_access_update( Action, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3068,17 +2912,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UseMiddleboxes"`: Indicates whether to include the location of middlebox appliances in the route analysis. The default is false. """ -function start_route_analysis( +start_route_analysis( Destination, Source, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "POST", + "/global-networks/$(globalNetworkId)/route-analyses", + Dict{String,Any}("Destination" => Destination, "Source" => Source); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "POST", - "/global-networks/$(globalNetworkId)/route-analyses", - Dict{String,Any}("Destination" => Destination, "Source" => Source); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_route_analysis( Destination, Source, @@ -3112,15 +2954,14 @@ Tags a specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmanager( +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "POST", "/tags/$(resourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Tags, resourceArn, @@ -3147,17 +2988,14 @@ Removes tags from a specified resource. - `tag_keys`: The tag keys to remove from the specified resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -3191,16 +3029,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 256 characters. - `"LinkId"`: The ID of the link for the first device in the connection. """ -function update_connection( +update_connection( connectionId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "PATCH", + "/global-networks/$(globalNetworkId)/connections/$(connectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "PATCH", - "/global-networks/$(globalNetworkId)/connections/$(connectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connection( connectionId, globalNetworkId, @@ -3229,16 +3065,13 @@ Updates the description of a core network. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The description of the update. """ -function update_core_network( - coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +update_core_network(coreNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "PATCH", "/core-networks/$(coreNetworkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_core_network( coreNetworkId, params::AbstractDict{String}; @@ -3278,16 +3111,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: The type of the device. - `"Vendor"`: The vendor of the device. Constraints: Maximum length of 128 characters. """ -function update_device( +update_device( deviceId, globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmanager( + "PATCH", + "/global-networks/$(globalNetworkId)/devices/$(deviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "PATCH", - "/global-networks/$(globalNetworkId)/devices/$(deviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_device( deviceId, globalNetworkId, @@ -3318,16 +3149,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the global network. Constraints: Maximum length of 256 characters. """ -function update_global_network( - globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +update_global_network(globalNetworkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "PATCH", "/global-networks/$(globalNetworkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_global_network( globalNetworkId, params::AbstractDict{String}; @@ -3360,16 +3188,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Provider"`: The provider of the link. Constraints: Maximum length of 128 characters. - `"Type"`: The type of the link. Constraints: Maximum length of 128 characters. """ -function update_link( - globalNetworkId, linkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +update_link(globalNetworkId, linkId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "PATCH", "/global-networks/$(globalNetworkId)/links/$(linkId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_link( globalNetworkId, linkId, @@ -3397,20 +3222,18 @@ Updates the resource metadata for the specified global network. - `resource_arn`: The ARN of the resource. """ -function update_network_resource_metadata( +update_network_resource_metadata( Metadata, globalNetworkId, resourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = networkmanager( + "PATCH", + "/global-networks/$(globalNetworkId)/network-resources/$(resourceArn)/metadata", + Dict{String,Any}("Metadata" => Metadata); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmanager( - "PATCH", - "/global-networks/$(globalNetworkId)/network-resources/$(resourceArn)/metadata", - Dict{String,Any}("Metadata" => Metadata); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_network_resource_metadata( Metadata, globalNetworkId, @@ -3447,16 +3270,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Location"`: The site location: Address: The physical address of the site. Latitude: The latitude of the site. Longitude: The longitude of the site. """ -function update_site( - globalNetworkId, siteId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +update_site(globalNetworkId, siteId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "PATCH", "/global-networks/$(globalNetworkId)/sites/$(siteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_site( globalNetworkId, siteId, @@ -3487,16 +3307,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Options"`: Additional options for updating the VPC attachment. - `"RemoveSubnetArns"`: Removes a subnet ARN from the attachment. """ -function update_vpc_attachment( - attachmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmanager( +update_vpc_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmanager( "PATCH", "/vpc-attachments/$(attachmentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_vpc_attachment( attachmentId, params::AbstractDict{String}; diff --git a/src/services/networkmonitor.jl b/src/services/networkmonitor.jl index 5301fdc24..1238d15d5 100644 --- a/src/services/networkmonitor.jl +++ b/src/services/networkmonitor.jl @@ -33,15 +33,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"probes"`: Displays a list of all of the probes created for a monitor. - `"tags"`: The list of key-value pairs created and assigned to the monitor. """ -function create_monitor(monitorName; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmonitor( +create_monitor(monitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "POST", "/monitors", Dict{String,Any}("monitorName" => monitorName, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_monitor( monitorName, params::AbstractDict{String}; @@ -83,17 +82,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request. Only returned if a client token was provided in the request. - `"tags"`: The list of key-value pairs created and assigned to the probe. """ -function create_probe( - monitorName, probe; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmonitor( +create_probe(monitorName, probe; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "POST", "/monitors/$(monitorName)/probes", Dict{String,Any}("probe" => probe, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_probe( monitorName, probe, @@ -126,14 +122,13 @@ ListMonitors to get a list of monitor names. - `monitor_name`: The name of the monitor to delete. """ -function delete_monitor(monitorName; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmonitor( +delete_monitor(monitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "DELETE", "/monitors/$(monitorName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_monitor( monitorName, params::AbstractDict{String}; @@ -162,16 +157,13 @@ probe IDs. You can only delete a single probe at a time using this action. - `probe_id`: The ID of the probe to delete. """ -function delete_probe( - monitorName, probeId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmonitor( +delete_probe(monitorName, probeId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "DELETE", "/monitors/$(monitorName)/probes/$(probeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_probe( monitorName, probeId, @@ -198,14 +190,13 @@ Run ListMonitors to get a list of monitor names. - `monitor_name`: The name of the monitor that details are returned for. """ -function get_monitor(monitorName; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmonitor( +get_monitor(monitorName; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "GET", "/monitors/$(monitorName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_monitor( monitorName, params::AbstractDict{String}; @@ -235,14 +226,13 @@ of probes and probe IDs. list of probes and probe IDs for the monitor. """ -function get_probe(monitorName, probeId; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmonitor( +get_probe(monitorName, probeId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "GET", "/monitors/$(monitorName)/probes/$(probeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_probe( monitorName, probeId, @@ -272,11 +262,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next page of results. - `"state"`: The list of all monitors and their states. """ -function list_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmonitor( - "GET", "/monitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) = networkmonitor( + "GET", "/monitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_monitors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -295,16 +283,13 @@ Lists the tags assigned to this resource. - `resource_arn`: The """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmonitor( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -330,15 +315,14 @@ Adds key-value pairs to a monitor or probe. - `tags`: The list of key-value pairs assigned to the monitor or probe. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return networkmonitor( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -365,17 +349,14 @@ Removes a key-value pair from a monitor or probe. - `tag_keys`: The key-value pa """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmonitor( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -405,17 +386,15 @@ ListMonitors to get a list of monitor names. - `monitor_name`: The name of the monitor to update. """ -function update_monitor( +update_monitor( aggregationPeriod, monitorName; aws_config::AbstractAWSConfig=current_aws_config() +) = networkmonitor( + "PATCH", + "/monitors/$(monitorName)", + Dict{String,Any}("aggregationPeriod" => aggregationPeriod); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return networkmonitor( - "PATCH", - "/monitors/$(monitorName)", - Dict{String,Any}("aggregationPeriod" => aggregationPeriod); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_monitor( aggregationPeriod, monitorName, @@ -465,16 +444,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ICMP. If the protocol is TCP, then port is also required. - `"state"`: The state of the probe update. """ -function update_probe( - monitorName, probeId; aws_config::AbstractAWSConfig=current_aws_config() -) - return networkmonitor( +update_probe(monitorName, probeId; aws_config::AbstractAWSConfig=current_aws_config()) = + networkmonitor( "PATCH", "/monitors/$(monitorName)/probes/$(probeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_probe( monitorName, probeId, diff --git a/src/services/nimble.jl b/src/services/nimble.jl index 61cd5e827..7add77c8c 100644 --- a/src/services/nimble.jl +++ b/src/services/nimble.jl @@ -21,15 +21,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency. - `"eulaIds"`: The EULA ID. """ -function accept_eulas(studioId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/eula-acceptances", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +accept_eulas(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/eula-acceptances", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function accept_eulas( studioId, params::AbstractDict{String}; @@ -75,7 +73,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of labels, in the form of key-value pairs, that apply to this resource. """ -function create_launch_profile( +create_launch_profile( ec2SubnetIds, launchProfileProtocolVersions, name, @@ -83,22 +81,20 @@ function create_launch_profile( studioComponentIds, studioId; aws_config::AbstractAWSConfig=current_aws_config(), +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/launch-profiles", + Dict{String,Any}( + "ec2SubnetIds" => ec2SubnetIds, + "launchProfileProtocolVersions" => launchProfileProtocolVersions, + "name" => name, + "streamConfiguration" => streamConfiguration, + "studioComponentIds" => studioComponentIds, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/launch-profiles", - Dict{String,Any}( - "ec2SubnetIds" => ec2SubnetIds, - "launchProfileProtocolVersions" => launchProfileProtocolVersions, - "name" => name, - "streamConfiguration" => streamConfiguration, - "studioComponentIds" => studioComponentIds, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_launch_profile( ec2SubnetIds, launchProfileProtocolVersions, @@ -152,21 +148,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of labels, in the form of key-value pairs, that apply to this resource. """ -function create_streaming_image( +create_streaming_image( ec2ImageId, name, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/streaming-images", + Dict{String,Any}( + "ec2ImageId" => ec2ImageId, + "name" => name, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/streaming-images", - Dict{String,Any}( - "ec2ImageId" => ec2ImageId, - "name" => name, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_streaming_image( ec2ImageId, name, @@ -218,19 +212,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of labels, in the form of key-value pairs, that apply to this resource. """ -function create_streaming_session( +create_streaming_session( launchProfileId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/streaming-sessions", + Dict{String,Any}( + "launchProfileId" => launchProfileId, "X-Amz-Client-Token" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/streaming-sessions", - Dict{String,Any}( - "launchProfileId" => launchProfileId, "X-Amz-Client-Token" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_streaming_session( launchProfileId, studioId, @@ -275,17 +267,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency. - `"expirationInSeconds"`: The expiration time in seconds. """ -function create_streaming_session_stream( +create_streaming_session_stream( sessionId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)/streams", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)/streams", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_streaming_session_stream( sessionId, studioId, @@ -343,27 +333,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of labels, in the form of key-value pairs, that apply to this resource. """ -function create_studio( +create_studio( adminRoleArn, displayName, studioName, userRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = nimble( + "POST", + "/2020-08-01/studios", + Dict{String,Any}( + "adminRoleArn" => adminRoleArn, + "displayName" => displayName, + "studioName" => studioName, + "userRoleArn" => userRoleArn, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios", - Dict{String,Any}( - "adminRoleArn" => adminRoleArn, - "displayName" => displayName, - "studioName" => studioName, - "userRoleArn" => userRoleArn, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_studio( adminRoleArn, displayName, @@ -425,19 +413,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of labels, in the form of key-value pairs, that apply to this resource. """ -function create_studio_component( +create_studio_component( name, studioId, type; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/studio-components", + Dict{String,Any}( + "name" => name, "type" => type, "X-Amz-Client-Token" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/studio-components", - Dict{String,Any}( - "name" => name, "type" => type, "X-Amz-Client-Token" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_studio_component( name, studioId, @@ -480,17 +466,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function delete_launch_profile( +delete_launch_profile( launchProfileId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "DELETE", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "DELETE", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_launch_profile( launchProfileId, studioId, @@ -529,20 +513,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function delete_launch_profile_member( +delete_launch_profile_member( launchProfileId, principalId, studioId; aws_config::AbstractAWSConfig=current_aws_config(), +) = nimble( + "DELETE", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership/$(principalId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "DELETE", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership/$(principalId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_launch_profile_member( launchProfileId, principalId, @@ -580,17 +562,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function delete_streaming_image( +delete_streaming_image( streamingImageId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "DELETE", + "/2020-08-01/studios/$(studioId)/streaming-images/$(streamingImageId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "DELETE", - "/2020-08-01/studios/$(studioId)/streaming-images/$(streamingImageId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_streaming_image( streamingImageId, studioId, @@ -629,17 +609,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function delete_streaming_session( +delete_streaming_session( sessionId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "DELETE", + "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "DELETE", - "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_streaming_session( sessionId, studioId, @@ -675,15 +653,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function delete_studio(studioId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "DELETE", - "/2020-08-01/studios/$(studioId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_studio(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "DELETE", + "/2020-08-01/studios/$(studioId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_studio( studioId, params::AbstractDict{String}; @@ -719,17 +695,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function delete_studio_component( +delete_studio_component( studioComponentId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "DELETE", + "/2020-08-01/studios/$(studioId)/studio-components/$(studioComponentId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "DELETE", - "/2020-08-01/studios/$(studioId)/studio-components/$(studioComponentId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_studio_component( studioComponentId, studioId, @@ -766,17 +740,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function delete_studio_member( +delete_studio_member( principalId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "DELETE", + "/2020-08-01/studios/$(studioId)/membership/$(principalId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "DELETE", - "/2020-08-01/studios/$(studioId)/membership/$(principalId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_studio_member( principalId, studioId, @@ -806,14 +778,12 @@ Get EULA. - `eula_id`: The EULA ID. """ -function get_eula(eulaId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "GET", - "/2020-08-01/eulas/$(eulaId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_eula(eulaId; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "GET", + "/2020-08-01/eulas/$(eulaId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_eula( eulaId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -838,16 +808,14 @@ Get a launch profile. - `studio_id`: The studio ID. """ -function get_launch_profile( +get_launch_profile( launchProfileId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_launch_profile( launchProfileId, studioId, @@ -878,16 +846,14 @@ description of streaming images that can be used with this launch profile. - `studio_id`: The studio ID. """ -function get_launch_profile_details( +get_launch_profile_details( launchProfileId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/details"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/details"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_launch_profile_details( launchProfileId, studioId, @@ -919,26 +885,24 @@ Get a launch profile initialization. - `studio_id`: The studio ID. """ -function get_launch_profile_initialization( +get_launch_profile_initialization( launchProfileId, launchProfileProtocolVersions, launchPurpose, platform, studioId; aws_config::AbstractAWSConfig=current_aws_config(), +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/init", + Dict{String,Any}( + "launchProfileProtocolVersions" => launchProfileProtocolVersions, + "launchPurpose" => launchPurpose, + "platform" => platform, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/init", - Dict{String,Any}( - "launchProfileProtocolVersions" => launchProfileProtocolVersions, - "launchPurpose" => launchPurpose, - "platform" => platform, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_launch_profile_initialization( launchProfileId, launchProfileProtocolVersions, @@ -980,19 +944,17 @@ Get a user persona in launch profile membership. - `studio_id`: The studio ID. """ -function get_launch_profile_member( +get_launch_profile_member( launchProfileId, principalId, studioId; aws_config::AbstractAWSConfig=current_aws_config(), +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership/$(principalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership/$(principalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_launch_profile_member( launchProfileId, principalId, @@ -1020,16 +982,14 @@ Get streaming image. - `studio_id`: The studio ID. """ -function get_streaming_image( +get_streaming_image( streamingImageId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/streaming-images/$(streamingImageId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/streaming-images/$(streamingImageId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_streaming_image( streamingImageId, studioId, @@ -1057,16 +1017,14 @@ while creating or deleting a session. - `studio_id`: The studio ID. """ -function get_streaming_session( +get_streaming_session( sessionId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_streaming_session( sessionId, studioId, @@ -1094,16 +1052,14 @@ backup while stopping a streaming session. - `studio_id`: The studio ID. """ -function get_streaming_session_backup( +get_streaming_session_backup( backupId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/streaming-session-backups/$(backupId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/streaming-session-backups/$(backupId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_streaming_session_backup( backupId, studioId, @@ -1134,16 +1090,14 @@ streaming client. - `studio_id`: The studio ID. """ -function get_streaming_session_stream( +get_streaming_session_stream( sessionId, streamId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)/streams/$(streamId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)/streams/$(streamId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_streaming_session_stream( sessionId, streamId, @@ -1170,14 +1124,12 @@ Get a studio resource. - `studio_id`: The studio ID. """ -function get_studio(studioId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_studio(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_studio( studioId, params::AbstractDict{String}; @@ -1203,16 +1155,14 @@ Gets a studio component resource. - `studio_id`: The studio ID. """ -function get_studio_component( +get_studio_component( studioComponentId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/studio-components/$(studioComponentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/studio-components/$(studioComponentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_studio_component( studioComponentId, studioId, @@ -1239,16 +1189,14 @@ Get a user's membership in a studio. - `studio_id`: The studio ID. """ -function get_studio_member( +get_studio_member( principalId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/membership/$(principalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/membership/$(principalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_studio_member( principalId, studioId, @@ -1279,14 +1227,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null if there are no more results. """ -function list_eula_acceptances(studioId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( +list_eula_acceptances(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = + nimble( "GET", "/2020-08-01/studios/$(studioId)/eula-acceptances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_eula_acceptances( studioId, params::AbstractDict{String}; @@ -1313,11 +1260,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null if there are no more results. """ -function list_eulas(; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "GET", "/2020-08-01/eulas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_eulas(; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "GET", "/2020-08-01/eulas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_eulas( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1347,16 +1292,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null if there are no more results. """ -function list_launch_profile_members( +list_launch_profile_members( launchProfileId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_launch_profile_members( launchProfileId, studioId, @@ -1389,14 +1332,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"principalId"`: The principal ID. This currently supports a IAM Identity Center UserId. - `"states"`: Filter this request to launch profiles in any of the given states. """ -function list_launch_profiles(studioId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/launch-profiles"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_launch_profiles(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/launch-profiles"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_launch_profiles( studioId, params::AbstractDict{String}; @@ -1428,14 +1369,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"owner"`: Filter this request to streaming images with the given owner """ -function list_streaming_images(studioId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( +list_streaming_images(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = + nimble( "GET", "/2020-08-01/studios/$(studioId)/streaming-images"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_streaming_images( studioId, params::AbstractDict{String}; @@ -1465,16 +1405,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"ownedBy"`: The user ID of the user that owns the streaming session. """ -function list_streaming_session_backups( +list_streaming_session_backups( studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/streaming-session-backups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/streaming-session-backups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_streaming_session_backups( studioId, params::AbstractDict{String}; @@ -1506,16 +1444,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ownedBy"`: Filters the request to streaming session owned by the given user - `"sessionIds"`: Filters the request to only the provided session IDs. """ -function list_streaming_sessions( - studioId; aws_config::AbstractAWSConfig=current_aws_config() -) - return nimble( +list_streaming_sessions(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = + nimble( "GET", "/2020-08-01/studios/$(studioId)/streaming-sessions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_streaming_sessions( studioId, params::AbstractDict{String}; @@ -1547,16 +1482,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"states"`: Filters the request to studio components that are in one of the given states. - `"types"`: Filters the request to studio components that are of one of the given types. """ -function list_studio_components( - studioId; aws_config::AbstractAWSConfig=current_aws_config() -) - return nimble( +list_studio_components(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = + nimble( "GET", "/2020-08-01/studios/$(studioId)/studio-components"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_studio_components( studioId, params::AbstractDict{String}; @@ -1586,14 +1518,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null if there are no more results. """ -function list_studio_members(studioId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "GET", - "/2020-08-01/studios/$(studioId)/membership"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_studio_members(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "GET", + "/2020-08-01/studios/$(studioId)/membership"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_studio_members( studioId, params::AbstractDict{String}; @@ -1620,11 +1550,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null if there are no more results. """ -function list_studios(; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "GET", "/2020-08-01/studios"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_studios(; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "GET", "/2020-08-01/studios"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_studios( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1652,16 +1580,13 @@ yourself. tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return nimble( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + nimble( "GET", "/2020-08-01/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1696,25 +1621,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function put_launch_profile_members( +put_launch_profile_members( identityStoreId, launchProfileId, members, studioId; aws_config::AbstractAWSConfig=current_aws_config(), +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership", + Dict{String,Any}( + "identityStoreId" => identityStoreId, + "members" => members, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership", - Dict{String,Any}( - "identityStoreId" => identityStoreId, - "members" => members, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_launch_profile_members( identityStoreId, launchProfileId, @@ -1760,21 +1683,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function put_studio_members( +put_studio_members( identityStoreId, members, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/membership", + Dict{String,Any}( + "identityStoreId" => identityStoreId, + "members" => members, + "X-Amz-Client-Token" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/membership", - Dict{String,Any}( - "identityStoreId" => identityStoreId, - "members" => members, - "X-Amz-Client-Token" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_studio_members( identityStoreId, members, @@ -1820,17 +1741,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency. - `"backupId"`: The ID of the backup. """ -function start_streaming_session( +start_streaming_session( sessionId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)/start", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)/start", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_streaming_session( sessionId, studioId, @@ -1872,17 +1791,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function start_studio_ssoconfiguration_repair( +start_studio_ssoconfiguration_repair( studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "PUT", + "/2020-08-01/studios/$(studioId)/sso-configuration", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "PUT", - "/2020-08-01/studios/$(studioId)/sso-configuration", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_studio_ssoconfiguration_repair( studioId, params::AbstractDict{String}; @@ -1921,17 +1838,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"volumeRetentionMode"`: Adds additional instructions to a streaming session stop action to either retain the EBS volumes or delete the EBS volumes. """ -function stop_streaming_session( +stop_streaming_session( sessionId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "POST", + "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)/stop", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "POST", - "/2020-08-01/studios/$(studioId)/streaming-sessions/$(sessionId)/stop", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_streaming_session( sessionId, studioId, @@ -1965,14 +1880,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A collection of labels, in the form of key-value pairs, that apply to this resource. """ -function tag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "POST", - "/2020-08-01/tags/$(resourceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "POST", + "/2020-08-01/tags/$(resourceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, params::AbstractDict{String}; @@ -1999,17 +1912,14 @@ Deletes the tags for a resource. - `tag_keys`: One or more tag keys. Specify only the tag keys, not the tag values. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return nimble( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + nimble( "DELETE", "/2020-08-01/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2050,17 +1960,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"studioComponentIds"`: Unique identifiers for a collection of studio components that can be used with this launch profile. """ -function update_launch_profile( +update_launch_profile( launchProfileId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "PATCH", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "PATCH", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_launch_profile( launchProfileId, studioId, @@ -2100,21 +2008,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SDK automatically generates a client token and uses it for the request to ensure idempotency. """ -function update_launch_profile_member( +update_launch_profile_member( launchProfileId, persona, principalId, studioId; aws_config::AbstractAWSConfig=current_aws_config(), +) = nimble( + "PATCH", + "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership/$(principalId)", + Dict{String,Any}("persona" => persona, "X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "PATCH", - "/2020-08-01/studios/$(studioId)/launch-profiles/$(launchProfileId)/membership/$(principalId)", - Dict{String,Any}("persona" => persona, "X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_launch_profile_member( launchProfileId, persona, @@ -2159,17 +2065,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description. - `"name"`: The name for the streaming image. """ -function update_streaming_image( +update_streaming_image( streamingImageId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "PATCH", + "/2020-08-01/studios/$(studioId)/streaming-images/$(streamingImageId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "PATCH", - "/2020-08-01/studios/$(studioId)/streaming-images/$(streamingImageId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_streaming_image( streamingImageId, studioId, @@ -2211,15 +2115,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"userRoleArn"`: The IAM role that Studio Users will assume when logging in to the Nimble Studio portal. """ -function update_studio(studioId; aws_config::AbstractAWSConfig=current_aws_config()) - return nimble( - "PATCH", - "/2020-08-01/studios/$(studioId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_studio(studioId; aws_config::AbstractAWSConfig=current_aws_config()) = nimble( + "PATCH", + "/2020-08-01/studios/$(studioId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_studio( studioId, params::AbstractDict{String}; @@ -2269,17 +2171,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subtype"`: The specific subtype of a studio component. - `"type"`: The type of the studio component. """ -function update_studio_component( +update_studio_component( studioComponentId, studioId; aws_config::AbstractAWSConfig=current_aws_config() +) = nimble( + "PATCH", + "/2020-08-01/studios/$(studioId)/studio-components/$(studioComponentId)", + Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return nimble( - "PATCH", - "/2020-08-01/studios/$(studioId)/studio-components/$(studioComponentId)", - Dict{String,Any}("X-Amz-Client-Token" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_studio_component( studioComponentId, studioId, diff --git a/src/services/oam.jl b/src/services/oam.jl index fa71b1e59..5ee8616f5 100644 --- a/src/services/oam.jl +++ b/src/services/oam.jl @@ -41,24 +41,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags. """ -function create_link( +create_link( LabelTemplate, ResourceTypes, SinkIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = oam( + "POST", + "/CreateLink", + Dict{String,Any}( + "LabelTemplate" => LabelTemplate, + "ResourceTypes" => ResourceTypes, + "SinkIdentifier" => SinkIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return oam( - "POST", - "/CreateLink", - Dict{String,Any}( - "LabelTemplate" => LabelTemplate, - "ResourceTypes" => ResourceTypes, - "SinkIdentifier" => SinkIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_link( LabelTemplate, ResourceTypes, @@ -108,15 +106,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags. """ -function create_sink(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return oam( - "POST", - "/CreateSink", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_sink(Name; aws_config::AbstractAWSConfig=current_aws_config()) = oam( + "POST", + "/CreateSink", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_sink( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -140,15 +136,13 @@ operation in the source account. - `identifier`: The ARN of the link to delete. """ -function delete_link(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return oam( - "POST", - "/DeleteLink", - Dict{String,Any}("Identifier" => Identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_link(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = oam( + "POST", + "/DeleteLink", + Dict{String,Any}("Identifier" => Identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_link( Identifier, params::AbstractDict{String}; @@ -175,15 +169,13 @@ Deletes a sink. You must delete all links to a sink before you can delete that s - `identifier`: The ARN of the sink to delete. """ -function delete_sink(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return oam( - "POST", - "/DeleteSink", - Dict{String,Any}("Identifier" => Identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_sink(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = oam( + "POST", + "/DeleteSink", + Dict{String,Any}("Identifier" => Identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_sink( Identifier, params::AbstractDict{String}; @@ -211,15 +203,13 @@ To retrieve a list of link ARNs, use ListLinks. - `identifier`: The ARN of the link to retrieve information for. """ -function get_link(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return oam( - "POST", - "/GetLink", - Dict{String,Any}("Identifier" => Identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_link(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = oam( + "POST", + "/GetLink", + Dict{String,Any}("Identifier" => Identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_link( Identifier, params::AbstractDict{String}; @@ -247,15 +237,13 @@ provide the sink ARN. To retrieve a list of sink ARNs, use ListSinks. - `identifier`: The ARN of the sink to retrieve information for. """ -function get_sink(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return oam( - "POST", - "/GetSink", - Dict{String,Any}("Identifier" => Identifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_sink(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = oam( + "POST", + "/GetSink", + Dict{String,Any}("Identifier" => Identifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_sink( Identifier, params::AbstractDict{String}; @@ -283,15 +271,13 @@ accounts can attach to this sink as source accounts, and what types of data they - `sink_identifier`: The ARN of the sink to retrieve the policy of. """ -function get_sink_policy(SinkIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return oam( - "POST", - "/GetSinkPolicy", - Dict{String,Any}("SinkIdentifier" => SinkIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_sink_policy(SinkIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = oam( + "POST", + "/GetSinkPolicy", + Dict{String,Any}("SinkIdentifier" => SinkIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_sink_policy( SinkIdentifier, params::AbstractDict{String}; @@ -325,17 +311,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. You received this token from a previous call. """ -function list_attached_links( - SinkIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return oam( +list_attached_links(SinkIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + oam( "POST", "/ListAttachedLinks", Dict{String,Any}("SinkIdentifier" => SinkIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_attached_links( SinkIdentifier, params::AbstractDict{String}; @@ -366,9 +349,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. You received this token from a previous call. """ -function list_links(; aws_config::AbstractAWSConfig=current_aws_config()) - return oam("POST", "/ListLinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_links(; aws_config::AbstractAWSConfig=current_aws_config()) = + oam("POST", "/ListLinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_links( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -390,9 +372,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. You received this token from a previous call. """ -function list_sinks(; aws_config::AbstractAWSConfig=current_aws_config()) - return oam("POST", "/ListSinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_sinks(; aws_config::AbstractAWSConfig=current_aws_config()) = + oam("POST", "/ListSinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_sinks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -417,16 +398,13 @@ Displays the tags associated with a resource. Both sinks and links support taggi untag links and sinks. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return oam( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + oam( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -462,17 +440,15 @@ this section to see how to specify permitted source accounts and data types. - `sink_identifier`: The ARN of the sink to attach this policy to. """ -function put_sink_policy( +put_sink_policy( Policy, SinkIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = oam( + "POST", + "/PutSinkPolicy", + Dict{String,Any}("Policy" => Policy, "SinkIdentifier" => SinkIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return oam( - "POST", - "/PutSinkPolicy", - Dict{String,Any}("Policy" => Policy, "SinkIdentifier" => SinkIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_sink_policy( Policy, SinkIdentifier, @@ -519,15 +495,13 @@ allow you to tag and untag links and sinks. - `tags`: The list of key-value pairs to associate with the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return oam( - "PUT", - "/tags/$(ResourceArn)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = oam( + "PUT", + "/tags/$(ResourceArn)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceArn, Tags, @@ -560,17 +534,14 @@ untag links and sinks. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return oam( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + oam( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -608,17 +579,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LinkConfiguration"`: Use this structure to filter which metric namespaces and which log groups are to be shared from the source account to the monitoring account. """ -function update_link( - Identifier, ResourceTypes; aws_config::AbstractAWSConfig=current_aws_config() -) - return oam( +update_link(Identifier, ResourceTypes; aws_config::AbstractAWSConfig=current_aws_config()) = + oam( "POST", "/UpdateLink", Dict{String,Any}("Identifier" => Identifier, "ResourceTypes" => ResourceTypes); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_link( Identifier, ResourceTypes, diff --git a/src/services/omics.jl b/src/services/omics.jl index 347fc1613..19db42087 100644 --- a/src/services/omics.jl +++ b/src/services/omics.jl @@ -15,16 +15,14 @@ Stops a multipart upload. - `upload_id`: The ID for the multipart upload. """ -function abort_multipart_read_set_upload( +abort_multipart_read_set_upload( sequenceStoreId, uploadId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "DELETE", + "/sequencestore/$(sequenceStoreId)/upload/$(uploadId)/abort"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "DELETE", - "/sequencestore/$(sequenceStoreId)/upload/$(uploadId)/abort"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function abort_multipart_read_set_upload( sequenceStoreId, uploadId, @@ -50,11 +48,9 @@ Accept a resource share request. - `share_id`: The ID of the resource share. """ -function accept_share(shareId; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/share/$(shareId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +accept_share(shareId; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", "/share/$(shareId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function accept_share( shareId, params::AbstractDict{String}; @@ -80,17 +76,15 @@ Deletes one or more read sets. - `sequence_store_id`: The read sets' sequence store ID. """ -function batch_delete_read_set( +batch_delete_read_set( ids, sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/readset/batch/delete", + Dict{String,Any}("ids" => ids); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/readset/batch/delete", - Dict{String,Any}("ids" => ids); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_read_set( ids, sequenceStoreId, @@ -116,16 +110,13 @@ Cancels an annotation import job. - `job_id`: The job's ID. """ -function cancel_annotation_import_job( - jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +cancel_annotation_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "DELETE", "/import/annotation/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_annotation_import_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -148,11 +139,9 @@ Cancels a run. - `id`: The run's ID. """ -function cancel_run(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/run/$(id)/cancel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +cancel_run(id; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", "/run/$(id)/cancel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function cancel_run( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -175,16 +164,13 @@ Cancels a variant import job. - `job_id`: The job's ID. """ -function cancel_variant_import_job( - jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +cancel_variant_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "DELETE", "/import/variant/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_variant_import_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -209,17 +195,15 @@ Concludes a multipart upload once you have uploaded all the components. - `upload_id`: The ID for the multipart upload. """ -function complete_multipart_read_set_upload( +complete_multipart_read_set_upload( parts, sequenceStoreId, uploadId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/upload/$(uploadId)/complete", + Dict{String,Any}("parts" => parts); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/upload/$(uploadId)/complete", - Dict{String,Any}("parts" => parts); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_multipart_read_set_upload( parts, sequenceStoreId, @@ -256,17 +240,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versionName"`: The name given to an annotation store version to distinguish it from other versions. """ -function create_annotation_store( - storeFormat; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +create_annotation_store(storeFormat; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "POST", "/annotationStore", Dict{String,Any}("storeFormat" => storeFormat); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_annotation_store( storeFormat, params::AbstractDict{String}; @@ -300,17 +281,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Any tags added to annotation store version. - `"versionOptions"`: The options for an annotation store version. """ -function create_annotation_store_version( +create_annotation_store_version( name, versionName; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/annotationStore/$(name)/version", + Dict{String,Any}("versionName" => versionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/annotationStore/$(name)/version", - Dict{String,Any}("versionName" => versionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_annotation_store_version( name, versionName, @@ -351,27 +330,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"referenceArn"`: The ARN of the reference. - `"tags"`: Any tags to add to the read set. """ -function create_multipart_read_set_upload( +create_multipart_read_set_upload( name, sampleId, sequenceStoreId, sourceFileType, subjectId; aws_config::AbstractAWSConfig=current_aws_config(), +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/upload", + Dict{String,Any}( + "name" => name, + "sampleId" => sampleId, + "sourceFileType" => sourceFileType, + "subjectId" => subjectId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/upload", - Dict{String,Any}( - "name" => name, - "sampleId" => sampleId, - "sourceFileType" => sourceFileType, - "subjectId" => subjectId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_multipart_read_set_upload( name, sampleId, @@ -418,15 +395,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sseConfig"`: Server-side encryption (SSE) settings for the store. - `"tags"`: Tags for the store. """ -function create_reference_store(name; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/referencestore", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_reference_store(name; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/referencestore", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_reference_store( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -443,7 +418,8 @@ end create_run_group(request_id) create_run_group(request_id, params::Dict{String,<:Any}) -Creates a run group. +You can optionally create a run group to limit the compute resources for the runs that you +add to the group. # Arguments - `request_id`: To ensure that requests don't run multiple times, specify a unique ID for @@ -451,22 +427,23 @@ Creates a run group. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxCpus"`: The maximum number of CPUs to use in the group. -- `"maxDuration"`: A maximum run time for the group in minutes. -- `"maxGpus"`: The maximum GPUs that can be used by a run group. -- `"maxRuns"`: The maximum number of concurrent runs for the group. +- `"maxCpus"`: The maximum number of CPUs that can run concurrently across all active runs + in the run group. +- `"maxDuration"`: The maximum time for each run (in minutes). If a run exceeds the maximum + run time, the run fails automatically. +- `"maxGpus"`: The maximum number of GPUs that can run concurrently across all active runs + in the run group. +- `"maxRuns"`: The maximum number of runs that can be running at the same time. - `"name"`: A name for the group. - `"tags"`: Tags for the group. """ -function create_run_group(requestId; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/runGroup", - Dict{String,Any}("requestId" => requestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_run_group(requestId; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/runGroup", + Dict{String,Any}("requestId" => requestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_run_group( requestId, params::AbstractDict{String}; @@ -503,15 +480,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sseConfig"`: Server-side encryption (SSE) settings for the store. - `"tags"`: Tags for the store. """ -function create_sequence_store(name; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/sequencestore", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_sequence_store(name; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/sequencestore", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_sequence_store( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -530,8 +505,8 @@ end Creates a cross-account shared resource. The resource owner makes an offer to share the resource with the principal subscriber (an AWS user with a different account than the -resource owner). The following resources support cross-account sharing: Healthomics -variant stores Healthomics annotation stores Private workflows +resource owner). The following resources support cross-account sharing: HealthOmics +variant stores HealthOmics annotation stores Private workflows # Arguments - `principal_subscriber`: The principal subscriber is the account being offered shared @@ -542,19 +517,17 @@ variant stores Healthomics annotation stores Private workflows Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"shareName"`: A name that the owner defines for the share. """ -function create_share( +create_share( principalSubscriber, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/share", + Dict{String,Any}( + "principalSubscriber" => principalSubscriber, "resourceArn" => resourceArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/share", - Dict{String,Any}( - "principalSubscriber" => principalSubscriber, "resourceArn" => resourceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_share( principalSubscriber, resourceArn, @@ -595,15 +568,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sseConfig"`: Server-side encryption (SSE) settings for the store. - `"tags"`: Tags for the store. """ -function create_variant_store(reference; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/variantStore", - Dict{String,Any}("reference" => reference); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_variant_store(reference; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/variantStore", + Dict{String,Any}("reference" => reference); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_variant_store( reference, params::AbstractDict{String}; @@ -640,18 +611,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"main"`: The path of the main definition file for the workflow. - `"name"`: A name for the workflow. - `"parameterTemplate"`: A parameter template for the workflow. -- `"storageCapacity"`: The storage capacity for the workflow in gibibytes. +- `"storageCapacity"`: The default storage capacity for the workflow runs, in gibibytes. - `"tags"`: Tags for the workflow. """ -function create_workflow(requestId; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/workflow", - Dict{String,Any}("requestId" => requestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_workflow(requestId; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/workflow", + Dict{String,Any}("requestId" => requestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_workflow( requestId, params::AbstractDict{String}; @@ -681,14 +650,12 @@ Deletes an annotation store. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"force"`: Whether to force deletion. """ -function delete_annotation_store(name; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "DELETE", - "/annotationStore/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_annotation_store(name; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "DELETE", + "/annotationStore/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_annotation_store( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -716,17 +683,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"force"`: Forces the deletion of an annotation store version when imports are in-progress.. """ -function delete_annotation_store_versions( +delete_annotation_store_versions( name, versions; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/annotationStore/$(name)/versions/delete", + Dict{String,Any}("versions" => versions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/annotationStore/$(name)/versions/delete", - Dict{String,Any}("versions" => versions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_annotation_store_versions( name, versions, @@ -755,16 +720,13 @@ Deletes a genome reference. - `reference_store_id`: The reference's store ID. """ -function delete_reference( - id, referenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +delete_reference(id, referenceStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "DELETE", "/referencestore/$(referenceStoreId)/reference/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_reference( id, referenceStoreId, @@ -790,14 +752,12 @@ Deletes a genome reference store. - `id`: The store's ID. """ -function delete_reference_store(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "DELETE", - "/referencestore/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_reference_store(id; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "DELETE", + "/referencestore/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_reference_store( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -820,11 +780,8 @@ Deletes a workflow run. - `id`: The run's ID. """ -function delete_run(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "DELETE", "/run/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_run(id; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("DELETE", "/run/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_run( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -847,11 +804,9 @@ Deletes a workflow run group. - `id`: The run group's ID. """ -function delete_run_group(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "DELETE", "/runGroup/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_run_group(id; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "DELETE", "/runGroup/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_run_group( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -874,14 +829,12 @@ Deletes a sequence store. - `id`: The sequence store's ID. """ -function delete_sequence_store(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "DELETE", - "/sequencestore/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_sequence_store(id; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "DELETE", + "/sequencestore/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_sequence_store( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -906,14 +859,12 @@ access to the share. - `share_id`: The ID for the resource share to be deleted. """ -function delete_share(shareId; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "DELETE", - "/share/$(shareId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_share(shareId; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "DELETE", + "/share/$(shareId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_share( shareId, params::AbstractDict{String}; @@ -941,14 +892,12 @@ Deletes a variant store. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"force"`: Whether to force deletion. """ -function delete_variant_store(name; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "DELETE", - "/variantStore/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_variant_store(name; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "DELETE", + "/variantStore/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_variant_store( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -971,11 +920,9 @@ Deletes a workflow. - `id`: The workflow's ID. """ -function delete_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "DELETE", "/workflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "DELETE", "/workflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_workflow( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -998,16 +945,13 @@ Gets information about an annotation import job. - `job_id`: The job's ID. """ -function get_annotation_import_job( - jobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +get_annotation_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "GET", "/import/annotation/$(jobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_annotation_import_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1030,14 +974,12 @@ Gets information about an annotation store. - `name`: The store's name. """ -function get_annotation_store(name; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", - "/annotationStore/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_annotation_store(name; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "GET", + "/annotationStore/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_annotation_store( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1062,16 +1004,14 @@ end others. """ -function get_annotation_store_version( +get_annotation_store_version( name, versionName; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/annotationStore/$(name)/version/$(versionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/annotationStore/$(name)/version/$(versionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_annotation_store_version( name, versionName, @@ -1102,17 +1042,15 @@ Gets a file from a read set. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"file"`: The file to retrieve. """ -function get_read_set( +get_read_set( id, partNumber, sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/sequencestore/$(sequenceStoreId)/readset/$(id)", + Dict{String,Any}("partNumber" => partNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/sequencestore/$(sequenceStoreId)/readset/$(id)", - Dict{String,Any}("partNumber" => partNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_read_set( id, partNumber, @@ -1142,16 +1080,14 @@ Gets information about a read set activation job. - `sequence_store_id`: The job's sequence store ID. """ -function get_read_set_activation_job( +get_read_set_activation_job( id, sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/sequencestore/$(sequenceStoreId)/activationjob/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/sequencestore/$(sequenceStoreId)/activationjob/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_read_set_activation_job( id, sequenceStoreId, @@ -1178,16 +1114,14 @@ Gets information about a read set export job. - `sequence_store_id`: The job's sequence store ID. """ -function get_read_set_export_job( +get_read_set_export_job( id, sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/sequencestore/$(sequenceStoreId)/exportjob/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/sequencestore/$(sequenceStoreId)/exportjob/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_read_set_export_job( id, sequenceStoreId, @@ -1214,16 +1148,14 @@ Gets information about a read set import job. - `sequence_store_id`: The job's sequence store ID. """ -function get_read_set_import_job( +get_read_set_import_job( id, sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/sequencestore/$(sequenceStoreId)/importjob/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/sequencestore/$(sequenceStoreId)/importjob/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_read_set_import_job( id, sequenceStoreId, @@ -1250,16 +1182,14 @@ Gets details about a read set. - `sequence_store_id`: The read set's sequence store ID. """ -function get_read_set_metadata( +get_read_set_metadata( id, sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/sequencestore/$(sequenceStoreId)/readset/$(id)/metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/sequencestore/$(sequenceStoreId)/readset/$(id)/metadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_read_set_metadata( id, sequenceStoreId, @@ -1291,17 +1221,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Range"`: The range to retrieve. - `"file"`: The file to retrieve. """ -function get_reference( +get_reference( id, partNumber, referenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/referencestore/$(referenceStoreId)/reference/$(id)", + Dict{String,Any}("partNumber" => partNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/referencestore/$(referenceStoreId)/reference/$(id)", - Dict{String,Any}("partNumber" => partNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reference( id, partNumber, @@ -1331,16 +1259,14 @@ Gets information about a reference import job. - `reference_store_id`: The job's reference store ID. """ -function get_reference_import_job( +get_reference_import_job( id, referenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/referencestore/$(referenceStoreId)/importjob/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/referencestore/$(referenceStoreId)/importjob/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reference_import_job( id, referenceStoreId, @@ -1367,16 +1293,14 @@ Gets information about a genome reference's metadata. - `reference_store_id`: The reference's reference store ID. """ -function get_reference_metadata( +get_reference_metadata( id, referenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "GET", + "/referencestore/$(referenceStoreId)/reference/$(id)/metadata"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "GET", - "/referencestore/$(referenceStoreId)/reference/$(id)/metadata"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reference_metadata( id, referenceStoreId, @@ -1402,14 +1326,12 @@ Gets information about a reference store. - `id`: The store's ID. """ -function get_reference_store(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", - "/referencestore/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_reference_store(id; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "GET", + "/referencestore/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_reference_store( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1436,11 +1358,8 @@ information about the run. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"export"`: The run's export format. """ -function get_run(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", "/run/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_run(id; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("GET", "/run/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_run( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1459,11 +1378,8 @@ Gets information about a workflow run group. - `id`: The group's ID. """ -function get_run_group(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", "/runGroup/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_run_group(id; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("GET", "/runGroup/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_run_group( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1487,14 +1403,12 @@ Gets information about a workflow run task. - `task_id`: The task's ID. """ -function get_run_task(id, taskId; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", - "/run/$(id)/task/$(taskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_run_task(id, taskId; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "GET", + "/run/$(id)/task/$(taskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_run_task( id, taskId, @@ -1520,14 +1434,12 @@ Gets information about a sequence store. - `id`: The store's ID. """ -function get_sequence_store(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", - "/sequencestore/$(id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_sequence_store(id; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "GET", + "/sequencestore/$(id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_sequence_store( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1550,11 +1462,9 @@ Retrieves the metadata for the specified resource share. - `share_id`: The ID of the share. """ -function get_share(shareId; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", "/share/$(shareId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_share(shareId; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "GET", "/share/$(shareId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_share( shareId, params::AbstractDict{String}; @@ -1579,14 +1489,12 @@ Gets information about a variant import job. - `job_id`: The job's ID. """ -function get_variant_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", - "/import/variant/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_variant_import_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "GET", + "/import/variant/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_variant_import_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1609,14 +1517,12 @@ Gets information about a variant store. - `name`: The store's name. """ -function get_variant_store(name; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", - "/variantStore/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_variant_store(name; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "GET", + "/variantStore/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_variant_store( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1645,11 +1551,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"type"`: The workflow's type. - `"workflowOwnerId"`: The ID of the workflow owner. """ -function get_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", "/workflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("GET", "/workflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_workflow( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1676,14 +1579,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specifies the pagination token from a previous request to retrieve the next page of results. """ -function list_annotation_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/import/annotations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_annotation_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/import/annotations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_annotation_import_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1713,16 +1614,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specifies the pagination token from a previous request to retrieve the next page of results. """ -function list_annotation_store_versions( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +list_annotation_store_versions(name; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "POST", "/annotationStore/$(name)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_annotation_store_versions( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1749,11 +1647,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_annotation_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/annotationStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_annotation_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", "/annotationStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_annotation_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1782,16 +1678,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Next token returned in the response of a previous ListMultipartReadSetUploads call. Used to get the next page of results. """ -function list_multipart_read_set_uploads( +list_multipart_read_set_uploads( sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/uploads"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/uploads"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_multipart_read_set_uploads( sequenceStoreId, params::AbstractDict{String}; @@ -1823,16 +1717,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_read_set_activation_jobs( +list_read_set_activation_jobs( sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/activationjobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/activationjobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_read_set_activation_jobs( sequenceStoreId, params::AbstractDict{String}; @@ -1863,16 +1755,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_read_set_export_jobs( +list_read_set_export_jobs( sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/exportjobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/exportjobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_read_set_export_jobs( sequenceStoreId, params::AbstractDict{String}; @@ -1903,16 +1793,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_read_set_import_jobs( +list_read_set_import_jobs( sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/importjobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/importjobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_read_set_import_jobs( sequenceStoreId, params::AbstractDict{String}; @@ -1945,20 +1833,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Next token returned in the response of a previous ListReadSetUploadPartsRequest call. Used to get the next page of results. """ -function list_read_set_upload_parts( +list_read_set_upload_parts( partSource, sequenceStoreId, uploadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/upload/$(uploadId)/parts", + Dict{String,Any}("partSource" => partSource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/upload/$(uploadId)/parts", - Dict{String,Any}("partSource" => partSource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_read_set_upload_parts( partSource, sequenceStoreId, @@ -1993,14 +1879,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_read_sets(sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/readsets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_read_sets(sequenceStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/readsets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_read_sets( sequenceStoreId, params::AbstractDict{String}; @@ -2031,16 +1915,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_reference_import_jobs( +list_reference_import_jobs( referenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/referencestore/$(referenceStoreId)/importjobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/referencestore/$(referenceStoreId)/importjobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_reference_import_jobs( referenceStoreId, params::AbstractDict{String}; @@ -2068,11 +1950,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_reference_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/referencestores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_reference_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", "/referencestores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_reference_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2101,16 +1981,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_references( - referenceStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +list_references(referenceStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "POST", "/referencestore/$(referenceStoreId)/references"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_references( referenceStoreId, params::AbstractDict{String}; @@ -2138,9 +2015,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startingToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_run_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics("GET", "/runGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_run_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("GET", "/runGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_run_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2165,11 +2041,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next page of results. - `"status"`: Filter the list by status. """ -function list_run_tasks(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "GET", "/run/$(id)/task"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_run_tasks(id; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("GET", "/run/$(id)/task"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_run_tasks( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2197,9 +2070,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next page of results. - `"status"`: The status of a run. """ -function list_runs(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics("GET", "/run"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_runs(; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("GET", "/run"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_runs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2221,11 +2093,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_sequence_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/sequencestores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_sequence_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("POST", "/sequencestores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_sequence_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2255,15 +2124,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Next token returned in the response of a previous ListReadSetUploadPartsRequest call. Used to get the next page of results. """ -function list_shares(resourceOwner; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/shares", - Dict{String,Any}("resourceOwner" => resourceOwner); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_shares(resourceOwner; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/shares", + Dict{String,Any}("resourceOwner" => resourceOwner); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_shares( resourceOwner, params::AbstractDict{String}; @@ -2290,16 +2157,13 @@ Retrieves a list of tags for a resource. - `resource_arn`: The resource's ARN. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2328,11 +2192,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_variant_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/import/variants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_variant_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", "/import/variants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_variant_import_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2359,11 +2221,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_variant_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/variantStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_variant_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("POST", "/variantStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_variant_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2390,9 +2249,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next page of results. - `"type"`: Filter the list by workflow type. """ -function list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) - return omics("GET", "/workflow"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("GET", "/workflow"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_workflows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2419,19 +2277,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"runLeftNormalization"`: The job's left normalization setting. - `"versionName"`: The name of the annotation store version. """ -function start_annotation_import_job( +start_annotation_import_job( destinationName, items, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/import/annotation", + Dict{String,Any}( + "destinationName" => destinationName, "items" => items, "roleArn" => roleArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/import/annotation", - Dict{String,Any}( - "destinationName" => destinationName, "items" => items, "roleArn" => roleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_annotation_import_job( destinationName, items, @@ -2474,17 +2330,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: To ensure that jobs don't run multiple times, specify a unique token for each job. """ -function start_read_set_activation_job( +start_read_set_activation_job( sequenceStoreId, sources; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/activationjob", + Dict{String,Any}("sources" => sources); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/activationjob", - Dict{String,Any}("sources" => sources); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_read_set_activation_job( sequenceStoreId, sources, @@ -2517,23 +2371,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: To ensure that jobs don't run multiple times, specify a unique token for each job. """ -function start_read_set_export_job( +start_read_set_export_job( destination, roleArn, sequenceStoreId, sources; aws_config::AbstractAWSConfig=current_aws_config(), +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/exportjob", + Dict{String,Any}( + "destination" => destination, "roleArn" => roleArn, "sources" => sources + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/exportjob", - Dict{String,Any}( - "destination" => destination, "roleArn" => roleArn, "sources" => sources - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_read_set_export_job( destination, roleArn, @@ -2575,17 +2427,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: To ensure that jobs don't run multiple times, specify a unique token for each job. """ -function start_read_set_import_job( +start_read_set_import_job( roleArn, sequenceStoreId, sources; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/sequencestore/$(sequenceStoreId)/importjob", + Dict{String,Any}("roleArn" => roleArn, "sources" => sources); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/sequencestore/$(sequenceStoreId)/importjob", - Dict{String,Any}("roleArn" => roleArn, "sources" => sources); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_read_set_import_job( roleArn, sequenceStoreId, @@ -2622,17 +2472,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: To ensure that jobs don't run multiple times, specify a unique token for each job. """ -function start_reference_import_job( +start_reference_import_job( referenceStoreId, roleArn, sources; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/referencestore/$(referenceStoreId)/importjob", + Dict{String,Any}("roleArn" => roleArn, "sources" => sources); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/referencestore/$(referenceStoreId)/importjob", - Dict{String,Any}("roleArn" => roleArn, "sources" => sources); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_reference_import_job( referenceStoreId, roleArn, @@ -2693,15 +2541,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"workflowOwnerId"`: The ID of the workflow owner. - `"workflowType"`: The run's workflow type. """ -function start_run(requestId, roleArn; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/run", - Dict{String,Any}("requestId" => requestId, "roleArn" => roleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_run(requestId, roleArn; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/run", + Dict{String,Any}("requestId" => requestId, "roleArn" => roleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_run( requestId, roleArn, @@ -2739,19 +2585,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"annotationFields"`: The annotation schema generated by the parsed annotation data. - `"runLeftNormalization"`: The job's left normalization setting. """ -function start_variant_import_job( +start_variant_import_job( destinationName, items, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/import/variant", + Dict{String,Any}( + "destinationName" => destinationName, "items" => items, "roleArn" => roleArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/import/variant", - Dict{String,Any}( - "destinationName" => destinationName, "items" => items, "roleArn" => roleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_variant_import_job( destinationName, items, @@ -2789,15 +2633,13 @@ Tags a resource. - `tags`: Tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -2824,17 +2666,14 @@ Removes tags from a resource. - `tag_keys`: Keys of tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return omics( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + omics( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2863,14 +2702,12 @@ Updates an annotation store. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A description for the store. """ -function update_annotation_store(name; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/annotationStore/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_annotation_store(name; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/annotationStore/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_annotation_store( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2897,16 +2734,14 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of an annotation store. """ -function update_annotation_store_version( +update_annotation_store_version( name, versionName; aws_config::AbstractAWSConfig=current_aws_config() +) = omics( + "POST", + "/annotationStore/$(name)/version/$(versionName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "POST", - "/annotationStore/$(name)/version/$(versionName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_annotation_store_version( name, versionName, @@ -2939,11 +2774,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxRuns"`: The maximum number of concurrent runs for the group. - `"name"`: A name for the group. """ -function update_run_group(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/runGroup/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_run_group(id; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("POST", "/runGroup/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_run_group( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2969,14 +2801,12 @@ Updates a variant store. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A description for the store. """ -function update_variant_store(name; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", - "/variantStore/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_variant_store(name; aws_config::AbstractAWSConfig=current_aws_config()) = omics( + "POST", + "/variantStore/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_variant_store( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3003,11 +2833,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description for the workflow. - `"name"`: A name for the workflow. """ -function update_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) - return omics( - "POST", "/workflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_workflow(id; aws_config::AbstractAWSConfig=current_aws_config()) = + omics("POST", "/workflow/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_workflow( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3035,24 +2862,22 @@ previously used part number, the previously uploaded part will be overwritten. - `upload_id`: The ID for the initiated multipart upload. """ -function upload_read_set_part( +upload_read_set_part( partNumber, partSource, payload, sequenceStoreId, uploadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = omics( + "PUT", + "/sequencestore/$(sequenceStoreId)/upload/$(uploadId)/part", + Dict{String,Any}( + "partNumber" => partNumber, "partSource" => partSource, "payload" => payload + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return omics( - "PUT", - "/sequencestore/$(sequenceStoreId)/upload/$(uploadId)/part", - Dict{String,Any}( - "partNumber" => partNumber, "partSource" => partSource, "payload" => payload - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_read_set_part( partNumber, partSource, diff --git a/src/services/opensearch.jl b/src/services/opensearch.jl index 11495e455..94af6812a 100644 --- a/src/services/opensearch.jl +++ b/src/services/opensearch.jl @@ -16,16 +16,14 @@ Amazon OpenSearch Service. - `connection_id`: The ID of the inbound connection to accept. """ -function accept_inbound_connection( +accept_inbound_connection( ConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "PUT", + "/2021-01-01/opensearch/cc/inboundConnection/$(ConnectionId)/accept"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "PUT", - "/2021-01-01/opensearch/cc/inboundConnection/$(ConnectionId)/accept"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_inbound_connection( ConnectionId, params::AbstractDict{String}; @@ -56,17 +54,15 @@ Creating Amazon OpenSearch Service data source integrations with Amazon S3. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description of the data source. """ -function add_data_source( +add_data_source( DataSourceType, DomainName, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/domain/$(DomainName)/dataSource", + Dict{String,Any}("DataSourceType" => DataSourceType, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/domain/$(DomainName)/dataSource", - Dict{String,Any}("DataSourceType" => DataSourceType, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_data_source( DataSourceType, DomainName, @@ -103,15 +99,13 @@ Tagging Amazon OpenSearch Service domains. - `tag_list`: List of resource tags. """ -function add_tags(ARN, TagList; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "POST", - "/2021-01-01/tags", - Dict{String,Any}("ARN" => ARN, "TagList" => TagList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +add_tags(ARN, TagList; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "POST", + "/2021-01-01/tags", + Dict{String,Any}("ARN" => ARN, "TagList" => TagList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function add_tags( ARN, TagList, @@ -142,16 +136,14 @@ Custom packages for Amazon OpenSearch Service. to find this value. """ -function associate_package( +associate_package( DomainName, PackageID; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/packages/associate/$(PackageID)/$(DomainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/packages/associate/$(PackageID)/$(DomainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_package( DomainName, PackageID, @@ -179,17 +171,15 @@ endpoint. - `domain_name`: The name of the OpenSearch Service domain to provide access to. """ -function authorize_vpc_endpoint_access( +authorize_vpc_endpoint_access( Account, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/domain/$(DomainName)/authorizeVpcEndpointAccess", + Dict{String,Any}("Account" => Account); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/domain/$(DomainName)/authorizeVpcEndpointAccess", - Dict{String,Any}("Account" => Account); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_vpc_endpoint_access( Account, DomainName, @@ -219,16 +209,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DryRun"`: When set to True, returns the list of change IDs and properties that will be cancelled without actually cancelling the change. """ -function cancel_domain_config_change( +cancel_domain_config_change( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/domain/$(DomainName)/config/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/domain/$(DomainName)/config/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_domain_config_change( DomainName, params::AbstractDict{String}; @@ -257,17 +245,15 @@ Amazon OpenSearch Service. software update on. """ -function cancel_service_software_update( +cancel_service_software_update( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/serviceSoftwareUpdate/cancel", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/serviceSoftwareUpdate/cancel", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_service_software_update( DomainName, params::AbstractDict{String}; @@ -297,6 +283,7 @@ managing Amazon OpenSearch Service domains. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AIMLOptions"`: Options for all machine learning features for the specified domain. - `"AccessPolicies"`: Identity and Access Management (IAM) policy document specifying the access policies for the new domain. - `"AdvancedOptions"`: Key-value pairs to specify advanced configuration options. The @@ -348,15 +335,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys don't specify these values, OpenSearch Service creates the domain with a public endpoint. For more information, see Launching your Amazon OpenSearch Service domains using a VPC. """ -function create_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "POST", - "/2021-01-01/opensearch/domain", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "POST", + "/2021-01-01/opensearch/domain", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_domain( DomainName, params::AbstractDict{String}; @@ -391,24 +376,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ConnectionMode"`: The connection mode. - `"ConnectionProperties"`: The ConnectionProperties for the outbound connection. """ -function create_outbound_connection( +create_outbound_connection( ConnectionAlias, LocalDomainInfo, RemoteDomainInfo; aws_config::AbstractAWSConfig=current_aws_config(), +) = opensearch( + "POST", + "/2021-01-01/opensearch/cc/outboundConnection", + Dict{String,Any}( + "ConnectionAlias" => ConnectionAlias, + "LocalDomainInfo" => LocalDomainInfo, + "RemoteDomainInfo" => RemoteDomainInfo, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/cc/outboundConnection", - Dict{String,Any}( - "ConnectionAlias" => ConnectionAlias, - "LocalDomainInfo" => LocalDomainInfo, - "RemoteDomainInfo" => RemoteDomainInfo, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_outbound_connection( ConnectionAlias, LocalDomainInfo, @@ -451,24 +434,22 @@ Custom packages for Amazon OpenSearch Service. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PackageDescription"`: Description of the package. """ -function create_package( +create_package( PackageName, PackageSource, PackageType; aws_config::AbstractAWSConfig=current_aws_config(), +) = opensearch( + "POST", + "/2021-01-01/packages", + Dict{String,Any}( + "PackageName" => PackageName, + "PackageSource" => PackageSource, + "PackageType" => PackageType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/packages", - Dict{String,Any}( - "PackageName" => PackageName, - "PackageSource" => PackageSource, - "PackageType" => PackageType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_package( PackageName, PackageSource, @@ -509,17 +490,15 @@ Creates an Amazon OpenSearch Service-managed VPC endpoint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: Unique, case-sensitive identifier to ensure idempotency of the request. """ -function create_vpc_endpoint( +create_vpc_endpoint( DomainArn, VpcOptions; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/vpcEndpoints", + Dict{String,Any}("DomainArn" => DomainArn, "VpcOptions" => VpcOptions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/vpcEndpoints", - Dict{String,Any}("DomainArn" => DomainArn, "VpcOptions" => VpcOptions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_endpoint( DomainArn, VpcOptions, @@ -553,16 +532,14 @@ Service data source with Amazon S3. - `domain_name`: The name of the domain. """ -function delete_data_source( +delete_data_source( DataSourceName, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "DELETE", + "/2021-01-01/opensearch/domain/$(DomainName)/dataSource/$(DataSourceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "DELETE", - "/2021-01-01/opensearch/domain/$(DomainName)/dataSource/$(DataSourceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_source( DataSourceName, DomainName, @@ -589,14 +566,12 @@ after you delete it. - `domain_name`: The name of the domain you want to permanently delete. """ -function delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "DELETE", - "/2021-01-01/opensearch/domain/$(DomainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "DELETE", + "/2021-01-01/opensearch/domain/$(DomainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_domain( DomainName, params::AbstractDict{String}; @@ -623,16 +598,14 @@ OpenSearch Service. - `connection_id`: The ID of the inbound connection to permanently delete. """ -function delete_inbound_connection( +delete_inbound_connection( ConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "DELETE", + "/2021-01-01/opensearch/cc/inboundConnection/$(ConnectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "DELETE", - "/2021-01-01/opensearch/cc/inboundConnection/$(ConnectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_inbound_connection( ConnectionId, params::AbstractDict{String}; @@ -659,16 +632,14 @@ OpenSearch Service. - `connection_id`: The ID of the outbound connection you want to permanently delete. """ -function delete_outbound_connection( +delete_outbound_connection( ConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "DELETE", + "/2021-01-01/opensearch/cc/outboundConnection/$(ConnectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "DELETE", - "/2021-01-01/opensearch/cc/outboundConnection/$(ConnectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_outbound_connection( ConnectionId, params::AbstractDict{String}; @@ -695,14 +666,12 @@ Amazon OpenSearch Service. find this value. """ -function delete_package(PackageID; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "DELETE", - "/2021-01-01/packages/$(PackageID)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_package(PackageID; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "DELETE", + "/2021-01-01/packages/$(PackageID)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_package( PackageID, params::AbstractDict{String}; @@ -727,16 +696,13 @@ Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. - `vpc_endpoint_id`: The unique identifier of the endpoint. """ -function delete_vpc_endpoint( - VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +delete_vpc_endpoint(VpcEndpointId; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "DELETE", "/2021-01-01/opensearch/vpcEndpoints/$(VpcEndpointId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpc_endpoint( VpcEndpointId, params::AbstractDict{String}; @@ -762,14 +728,13 @@ including the domain ID, domain service endpoint, and domain ARN. - `domain_name`: The name of the domain that you want information about. """ -function describe_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( +describe_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_domain( DomainName, params::AbstractDict{String}; @@ -802,16 +767,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can include the returned nextToken in subsequent DescribeDomainAutoTunes operations, which returns results in the next page. """ -function describe_domain_auto_tunes( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +describe_domain_auto_tunes(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/autoTunes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_domain_auto_tunes( DomainName, params::AbstractDict{String}; @@ -842,16 +804,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"changeid"`: The specific change ID for which you want to get progress information. If omitted, the request returns information about the most recent configuration change. """ -function describe_domain_change_progress( +describe_domain_change_progress( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "GET", + "/2021-01-01/opensearch/domain/$(DomainName)/progress"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "GET", - "/2021-01-01/opensearch/domain/$(DomainName)/progress"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_domain_change_progress( DomainName, params::AbstractDict{String}; @@ -877,16 +837,13 @@ Returns the configuration of an Amazon OpenSearch Service domain. describe. """ -function describe_domain_config( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +describe_domain_config(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_domain_config( DomainName, params::AbstractDict{String}; @@ -912,16 +869,13 @@ nodes per Availability Zone, and shard count per node. - `domain_name`: The name of the domain. """ -function describe_domain_health( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +describe_domain_health(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/health"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_domain_health( DomainName, params::AbstractDict{String}; @@ -947,16 +901,13 @@ nodes, Availability Zone(s), standby nodes, node configurations, and node states - `domain_name`: The name of the domain. """ -function describe_domain_nodes( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +describe_domain_nodes(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/nodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_domain_nodes( DomainName, params::AbstractDict{String}; @@ -983,15 +934,14 @@ domains. You must specify at least one domain name. """ -function describe_domains(DomainNames; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( +describe_domains(DomainNames; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "POST", "/2021-01-01/opensearch/domain-info", Dict{String,Any}("DomainNames" => DomainNames); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_domains( DomainNames, params::AbstractDict{String}; @@ -1026,16 +976,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. The configuration specifies the updates that you're planning to make on the domain. """ -function describe_dry_run_progress( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +describe_dry_run_progress(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/dryRun"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dry_run_progress( DomainName, params::AbstractDict{String}; @@ -1068,14 +1015,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you can include the returned nextToken in subsequent DescribeInboundConnections operations, which returns results in the next page. """ -function describe_inbound_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( +describe_inbound_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "POST", "/2021-01-01/opensearch/cc/inboundConnection/search"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_inbound_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1106,16 +1052,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domainName"`: The name of the domain. Only specify if you need the limits for an existing domain. """ -function describe_instance_type_limits( +describe_instance_type_limits( EngineVersion, InstanceType; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "GET", + "/2021-01-01/opensearch/instanceTypeLimits/$(EngineVersion)/$(InstanceType)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "GET", - "/2021-01-01/opensearch/instanceTypeLimits/$(EngineVersion)/$(InstanceType)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_type_limits( EngineVersion, InstanceType, @@ -1148,14 +1092,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you can include the returned nextToken in subsequent DescribeOutboundConnections operations, which returns results in the next page. """ -function describe_outbound_connections(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( +describe_outbound_connections(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "POST", "/2021-01-01/opensearch/cc/outboundConnection/search"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_outbound_connections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1184,14 +1127,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can include the returned nextToken in subsequent DescribePackageFilters operations, which returns results in the next page. """ -function describe_packages(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "POST", - "/2021-01-01/packages/describe"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_packages(; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "POST", + "/2021-01-01/packages/describe"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_packages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1221,16 +1162,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"offeringId"`: The Reserved Instance identifier filter value. Use this parameter to show only the available instance types that match the specified reservation identifier. """ -function describe_reserved_instance_offerings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +describe_reserved_instance_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/reservedInstanceOfferings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_reserved_instance_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1260,14 +1198,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reservationId"`: The reserved instance identifier filter value. Use this parameter to show only the reservation that matches the specified reserved OpenSearch instance ID. """ -function describe_reserved_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( +describe_reserved_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/reservedInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_reserved_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1290,17 +1227,14 @@ Describes one or more Amazon OpenSearch Service-managed VPC endpoints. - `vpc_endpoint_ids`: The unique identifiers of the endpoints to get information about. """ -function describe_vpc_endpoints( - VpcEndpointIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +describe_vpc_endpoints(VpcEndpointIds; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "POST", "/2021-01-01/opensearch/vpcEndpoints/describe", Dict{String,Any}("VpcEndpointIds" => VpcEndpointIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_vpc_endpoints( VpcEndpointIds, params::AbstractDict{String}; @@ -1332,16 +1266,14 @@ packages for Amazon OpenSearch Service. ListPackagesForDomain to find this value. """ -function dissociate_package( +dissociate_package( DomainName, PackageID; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/packages/dissociate/$(PackageID)/$(DomainName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/packages/dissociate/$(PackageID)/$(DomainName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function dissociate_package( DomainName, PackageID, @@ -1369,14 +1301,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domainName"`: The name of an existing domain. Provide this parameter to limit the results to a single domain. """ -function get_compatible_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "GET", - "/2021-01-01/opensearch/compatibleVersions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_compatible_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "GET", + "/2021-01-01/opensearch/compatibleVersions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_compatible_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1400,16 +1330,14 @@ Retrieves information about a direct query data source. - `domain_name`: The name of the domain. """ -function get_data_source( +get_data_source( DataSourceName, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "GET", + "/2021-01-01/opensearch/domain/$(DomainName)/dataSource/$(DataSourceName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "GET", - "/2021-01-01/opensearch/domain/$(DomainName)/dataSource/$(DataSourceName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_source( DataSourceName, DomainName, @@ -1436,17 +1364,15 @@ The status of the maintenance action. - `maintenance_id`: The request ID of the maintenance action. """ -function get_domain_maintenance_status( +get_domain_maintenance_status( DomainName, maintenanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "GET", + "/2021-01-01/opensearch/domain/$(DomainName)/domainMaintenance", + Dict{String,Any}("maintenanceId" => maintenanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "GET", - "/2021-01-01/opensearch/domain/$(DomainName)/domainMaintenance", - Dict{String,Any}("maintenanceId" => maintenanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_domain_maintenance_status( DomainName, maintenanceId, @@ -1483,16 +1409,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you can include the returned nextToken in subsequent GetPackageVersionHistory operations, which returns results in the next page. """ -function get_package_version_history( - PackageID; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +get_package_version_history(PackageID; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/packages/$(PackageID)/history"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_package_version_history( PackageID, params::AbstractDict{String}; @@ -1525,14 +1448,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the returned nextToken in subsequent GetUpgradeHistory operations, which returns results in the next page. """ -function get_upgrade_history(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( +get_upgrade_history(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/upgradeDomain/$(DomainName)/history"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_upgrade_history( DomainName, params::AbstractDict{String}; @@ -1558,14 +1480,13 @@ on an Amazon OpenSearch Service domain. - `domain_name`: The domain of the domain to get upgrade status information for. """ -function get_upgrade_status(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( +get_upgrade_status(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/upgradeDomain/$(DomainName)/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_upgrade_status( DomainName, params::AbstractDict{String}; @@ -1591,14 +1512,13 @@ information, see Working with Amazon OpenSearch Service direct queries with Amaz - `domain_name`: The name of the domain. """ -function list_data_sources(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( +list_data_sources(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/dataSource"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_data_sources( DomainName, params::AbstractDict{String}; @@ -1632,16 +1552,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns results in the next page. - `"status"`: The status of the action. """ -function list_domain_maintenances( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +list_domain_maintenances(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/domainMaintenances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_domain_maintenances( DomainName, params::AbstractDict{String}; @@ -1667,11 +1584,9 @@ active Region. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"engineType"`: Filters the output by domain engine type. """ -function list_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "GET", "/2021-01-01/domain"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_domain_names(; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "GET", "/2021-01-01/domain"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_domain_names( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1702,16 +1617,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can include the returned nextToken in subsequent ListDomainsForPackage operations, which returns results in the next page. """ -function list_domains_for_package( - PackageID; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +list_domains_for_package(PackageID; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/packages/$(PackageID)/domains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_domains_for_package( PackageID, params::AbstractDict{String}; @@ -1749,16 +1661,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retrieveAZs"`: An optional parameter that specifies the Availability Zones for the domain. """ -function list_instance_type_details( +list_instance_type_details( EngineVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "GET", + "/2021-01-01/opensearch/instanceTypeDetails/$(EngineVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "GET", - "/2021-01-01/opensearch/instanceTypeDetails/$(EngineVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_instance_type_details( EngineVersion, params::AbstractDict{String}; @@ -1791,16 +1701,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can include the returned nextToken in subsequent ListPackagesForDomain operations, which returns results in the next page. """ -function list_packages_for_domain( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +list_packages_for_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/domain/$(DomainName)/packages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_packages_for_domain( DomainName, params::AbstractDict{String}; @@ -1833,16 +1740,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can include the returned nextToken in subsequent ListScheduledActions operations, which returns results in the next page. """ -function list_scheduled_actions( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +list_scheduled_actions(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/scheduledActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_scheduled_actions( DomainName, params::AbstractDict{String}; @@ -1868,15 +1772,13 @@ see Tagging Amazon OpenSearch Service domains. - `arn`: Amazon Resource Name (ARN) for the domain to view tags for. """ -function list_tags(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "GET", - "/2021-01-01/tags/", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(arn; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "GET", + "/2021-01-01/tags/", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1903,14 +1805,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the returned nextToken in subsequent ListVersions operations, which returns results in the next page. """ -function list_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "GET", - "/2021-01-01/opensearch/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "GET", + "/2021-01-01/opensearch/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1940,16 +1840,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can include the returned nextToken in subsequent ListVpcEndpointAccess operations, which returns results in the next page. """ -function list_vpc_endpoint_access( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +list_vpc_endpoint_access(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "GET", "/2021-01-01/opensearch/domain/$(DomainName)/listVpcEndpointAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_vpc_endpoint_access( DomainName, params::AbstractDict{String}; @@ -1977,14 +1874,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the returned nextToken in subsequent ListVpcEndpoints operations, which returns results in the next page. """ -function list_vpc_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "GET", - "/2021-01-01/opensearch/vpcEndpoints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_vpc_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "GET", + "/2021-01-01/opensearch/vpcEndpoints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_vpc_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2013,16 +1908,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can include the returned nextToken in subsequent ListEndpointsForDomain operations, which returns results in the next page. """ -function list_vpc_endpoints_for_domain( +list_vpc_endpoints_for_domain( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "GET", + "/2021-01-01/opensearch/domain/$(DomainName)/vpcEndpoints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "GET", - "/2021-01-01/opensearch/domain/$(DomainName)/vpcEndpoints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_vpc_endpoints_for_domain( DomainName, params::AbstractDict{String}; @@ -2051,22 +1944,20 @@ Allows you to purchase Amazon OpenSearch Service Reserved Instances. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InstanceCount"`: The number of OpenSearch instances to reserve. """ -function purchase_reserved_instance_offering( +purchase_reserved_instance_offering( ReservationName, ReservedInstanceOfferingId; aws_config::AbstractAWSConfig=current_aws_config(), +) = opensearch( + "POST", + "/2021-01-01/opensearch/purchaseReservedInstanceOffering", + Dict{String,Any}( + "ReservationName" => ReservationName, + "ReservedInstanceOfferingId" => ReservedInstanceOfferingId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/purchaseReservedInstanceOffering", - Dict{String,Any}( - "ReservationName" => ReservationName, - "ReservedInstanceOfferingId" => ReservedInstanceOfferingId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_reserved_instance_offering( ReservationName, ReservedInstanceOfferingId, @@ -2102,16 +1993,14 @@ connection request. - `connection_id`: The unique identifier of the inbound connection to reject. """ -function reject_inbound_connection( +reject_inbound_connection( ConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "PUT", + "/2021-01-01/opensearch/cc/inboundConnection/$(ConnectionId)/reject"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "PUT", - "/2021-01-01/opensearch/cc/inboundConnection/$(ConnectionId)/reject"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_inbound_connection( ConnectionId, params::AbstractDict{String}; @@ -2139,15 +2028,13 @@ information, see Tagging Amazon OpenSearch Service domains. - `tag_keys`: The list of tag keys to remove from the domain. """ -function remove_tags(ARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearch( - "POST", - "/2021-01-01/tags-removal", - Dict{String,Any}("ARN" => ARN, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +remove_tags(ARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = opensearch( + "POST", + "/2021-01-01/tags-removal", + Dict{String,Any}("ARN" => ARN, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function remove_tags( ARN, TagKeys, @@ -2177,17 +2064,15 @@ interface VPC endpoint. - `domain_name`: The name of the OpenSearch Service domain. """ -function revoke_vpc_endpoint_access( +revoke_vpc_endpoint_access( Account, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/domain/$(DomainName)/revokeVpcEndpointAccess", + Dict{String,Any}("Account" => Account); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/domain/$(DomainName)/revokeVpcEndpointAccess", - Dict{String,Any}("Account" => Account); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_vpc_endpoint_access( Account, DomainName, @@ -2218,17 +2103,15 @@ reboot, an Opensearch or Elasticsearch process restart, or a Dashboard or Kibana Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NodeId"`: The ID of the data node. """ -function start_domain_maintenance( +start_domain_maintenance( Action, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/domain/$(DomainName)/domainMaintenance", + Dict{String,Any}("Action" => Action); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/domain/$(DomainName)/domainMaintenance", - Dict{String,Any}("Action" => Action); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_domain_maintenance( Action, DomainName, @@ -2268,17 +2151,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent days. Default: NOW if you don't specify a value for DesiredStartTime, and TIMESTAMP if you do. """ -function start_service_software_update( +start_service_software_update( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/serviceSoftwareUpdate/start", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/serviceSoftwareUpdate/start", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_service_software_update( DomainName, params::AbstractDict{String}; @@ -2312,20 +2193,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A new description of the data source. - `"Status"`: The status of the data source update. """ -function update_data_source( +update_data_source( DataSourceName, DataSourceType, DomainName; aws_config::AbstractAWSConfig=current_aws_config(), +) = opensearch( + "PUT", + "/2021-01-01/opensearch/domain/$(DomainName)/dataSource/$(DataSourceName)", + Dict{String,Any}("DataSourceType" => DataSourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "PUT", - "/2021-01-01/opensearch/domain/$(DomainName)/dataSource/$(DataSourceName)", - Dict{String,Any}("DataSourceType" => DataSourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_source( DataSourceName, DataSourceType, @@ -2355,6 +2234,7 @@ Modifies the cluster configuration of the specified Amazon OpenSearch Service do # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AIMLOptions"`: Options for all machine learning features for the specified domain. - `"AccessPolicies"`: Identity and Access Management (IAM) access policy as a JSON-formatted string. - `"AdvancedOptions"`: Key-value pairs to specify advanced configuration options. The @@ -2399,16 +2279,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VPCOptions"`: Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your Amazon OpenSearch Service domains using a VPC. """ -function update_domain_config( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearch( +update_domain_config(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearch( "POST", "/2021-01-01/opensearch/domain/$(DomainName)/config"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_domain_config( DomainName, params::AbstractDict{String}; @@ -2440,17 +2317,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys GetPackageVersionHistoryResponse. - `"PackageDescription"`: A new description of the package. """ -function update_package( +update_package( PackageID, PackageSource; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/packages/update", + Dict{String,Any}("PackageID" => PackageID, "PackageSource" => PackageSource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/packages/update", - Dict{String,Any}("PackageID" => PackageID, "PackageSource" => PackageSource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_package( PackageID, PackageSource, @@ -2501,23 +2376,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DesiredStartTime"`: The time to implement the change, in Coordinated Universal Time (UTC). Only specify this parameter if you set ScheduleAt to TIMESTAMP. """ -function update_scheduled_action( +update_scheduled_action( ActionID, ActionType, DomainName, ScheduleAt; aws_config::AbstractAWSConfig=current_aws_config(), +) = opensearch( + "PUT", + "/2021-01-01/opensearch/domain/$(DomainName)/scheduledAction/update", + Dict{String,Any}( + "ActionID" => ActionID, "ActionType" => ActionType, "ScheduleAt" => ScheduleAt + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "PUT", - "/2021-01-01/opensearch/domain/$(DomainName)/scheduledAction/update", - Dict{String,Any}( - "ActionID" => ActionID, "ActionType" => ActionType, "ScheduleAt" => ScheduleAt - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_scheduled_action( ActionID, ActionType, @@ -2556,17 +2429,15 @@ Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. - `vpc_options`: The security groups and/or subnets to add, remove, or modify. """ -function update_vpc_endpoint( +update_vpc_endpoint( VpcEndpointId, VpcOptions; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/vpcEndpoints/update", + Dict{String,Any}("VpcEndpointId" => VpcEndpointId, "VpcOptions" => VpcOptions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/vpcEndpoints/update", - Dict{String,Any}("VpcEndpointId" => VpcEndpointId, "VpcOptions" => VpcOptions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_vpc_endpoint( VpcEndpointId, VpcOptions, @@ -2611,17 +2482,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PerformCheckOnly"`: When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the upgrade. """ -function upgrade_domain( +upgrade_domain( DomainName, TargetVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearch( + "POST", + "/2021-01-01/opensearch/upgradeDomain", + Dict{String,Any}("DomainName" => DomainName, "TargetVersion" => TargetVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearch( - "POST", - "/2021-01-01/opensearch/upgradeDomain", - Dict{String,Any}("DomainName" => DomainName, "TargetVersion" => TargetVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upgrade_domain( DomainName, TargetVersion, diff --git a/src/services/opensearchserverless.jl b/src/services/opensearchserverless.jl index 197b625b6..12a9bd17e 100644 --- a/src/services/opensearchserverless.jl +++ b/src/services/opensearchserverless.jl @@ -20,11 +20,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"names"`: A list of collection names. You can't provide names and IDs in the same request. """ -function batch_get_collection(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +batch_get_collection(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "BatchGetCollection"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function batch_get_collection( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -44,16 +43,14 @@ For more information, see Viewing data lifecycle policies. - `resource_identifiers`: The unique identifiers of policy types and resource names. """ -function batch_get_effective_lifecycle_policy( +batch_get_effective_lifecycle_policy( resourceIdentifiers; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "BatchGetEffectiveLifecyclePolicy", + Dict{String,Any}("resourceIdentifiers" => resourceIdentifiers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "BatchGetEffectiveLifecyclePolicy", - Dict{String,Any}("resourceIdentifiers" => resourceIdentifiers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_effective_lifecycle_policy( resourceIdentifiers, params::AbstractDict{String}; @@ -84,16 +81,14 @@ information, see Viewing data lifecycle policies. - `identifiers`: The unique identifiers of policy types and policy names. """ -function batch_get_lifecycle_policy( +batch_get_lifecycle_policy( identifiers; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "BatchGetLifecyclePolicy", + Dict{String,Any}("identifiers" => identifiers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "BatchGetLifecyclePolicy", - Dict{String,Any}("identifiers" => identifiers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_lifecycle_policy( identifiers, params::AbstractDict{String}; @@ -120,14 +115,13 @@ more information, see Access Amazon OpenSearch Serverless using an interface end - `ids`: A list of VPC endpoint identifiers. """ -function batch_get_vpc_endpoint(ids; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +batch_get_vpc_endpoint(ids; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "BatchGetVpcEndpoint", Dict{String,Any}("ids" => ids); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_vpc_endpoint( ids, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -159,21 +153,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the policy. Typically used to store information about the permissions defined in the policy. """ -function create_access_policy( +create_access_policy( name, policy, type; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "CreateAccessPolicy", + Dict{String,Any}( + "name" => name, + "policy" => policy, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "CreateAccessPolicy", - Dict{String,Any}( - "name" => name, - "policy" => policy, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_policy( name, policy, @@ -219,14 +211,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Serverless collection. - `"type"`: The type of collection. """ -function create_collection(name; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +create_collection(name; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "CreateCollection", Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_collection( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -262,21 +253,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier to ensure idempotency of the request. - `"description"`: A description of the lifecycle policy. """ -function create_lifecycle_policy( +create_lifecycle_policy( name, policy, type; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "CreateLifecyclePolicy", + Dict{String,Any}( + "name" => name, + "policy" => policy, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "CreateLifecyclePolicy", - Dict{String,Any}( - "name" => name, - "policy" => policy, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lifecycle_policy( name, policy, @@ -321,16 +310,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"samlOptions"`: Describes SAML options in in the form of a key-value map. This field is required if you specify saml for the type parameter. """ -function create_security_config( - name, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearchserverless( +create_security_config(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "CreateSecurityConfig", Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_security_config( name, type, @@ -374,21 +360,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the policy. Typically used to store information about the permissions defined in the policy. """ -function create_security_policy( +create_security_policy( name, policy, type; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "CreateSecurityPolicy", + Dict{String,Any}( + "name" => name, + "policy" => policy, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "CreateSecurityPolicy", - Dict{String,Any}( - "name" => name, - "policy" => policy, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_security_policy( name, policy, @@ -435,21 +419,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. """ -function create_vpc_endpoint( +create_vpc_endpoint( name, subnetIds, vpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "CreateVpcEndpoint", + Dict{String,Any}( + "name" => name, + "subnetIds" => subnetIds, + "vpcId" => vpcId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "CreateVpcEndpoint", - Dict{String,Any}( - "name" => name, - "subnetIds" => subnetIds, - "vpcId" => vpcId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpc_endpoint( name, subnetIds, @@ -491,16 +473,13 @@ control for Amazon OpenSearch Serverless. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: Unique, case-sensitive identifier to ensure idempotency of the request. """ -function delete_access_policy( - name, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearchserverless( +delete_access_policy(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "DeleteAccessPolicy", Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_access_policy( name, type, @@ -538,14 +517,13 @@ managing Amazon OpenSearch Serverless collections. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A unique, case-sensitive identifier to ensure idempotency of the request. """ -function delete_collection(id; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +delete_collection(id; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "DeleteCollection", Dict{String,Any}("id" => id, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_collection( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -578,16 +556,13 @@ lifecycle policies. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: Unique, case-sensitive identifier to ensure idempotency of the request. """ -function delete_lifecycle_policy( - name, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearchserverless( +delete_lifecycle_policy(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "DeleteLifecyclePolicy", Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_lifecycle_policy( name, type, @@ -625,14 +600,13 @@ authentication for Amazon OpenSearch Serverless. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: Unique, case-sensitive identifier to ensure idempotency of the request. """ -function delete_security_config(id; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +delete_security_config(id; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "DeleteSecurityConfig", Dict{String,Any}("id" => id, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_security_config( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -664,16 +638,13 @@ Deletes an OpenSearch Serverless security policy. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: Unique, case-sensitive identifier to ensure idempotency of the request. """ -function delete_security_policy( - name, type; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearchserverless( +delete_security_policy(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "DeleteSecurityPolicy", Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_security_policy( name, type, @@ -710,14 +681,13 @@ Access Amazon OpenSearch Serverless using an interface endpoint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: Unique, case-sensitive identifier to ensure idempotency of the request. """ -function delete_vpc_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +delete_vpc_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "DeleteVpcEndpoint", Dict{String,Any}("id" => id, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vpc_endpoint( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -747,14 +717,13 @@ control for Amazon OpenSearch Serverless. - `type`: Tye type of policy. Currently, the only supported value is data. """ -function get_access_policy(name, type; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +get_access_policy(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "GetAccessPolicy", Dict{String,Any}("name" => name, "type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_access_policy( name, type, @@ -778,11 +747,10 @@ end Returns account-level settings related to OpenSearch Serverless. """ -function get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "GetAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -799,11 +767,10 @@ Returns statistical information about your OpenSearch Serverless access policies configurations, and security policies. """ -function get_policies_stats(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +get_policies_stats(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "GetPoliciesStats"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_policies_stats( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -823,14 +790,13 @@ information, see SAML authentication for Amazon OpenSearch Serverless. - `id`: The unique identifier of the security configuration. """ -function get_security_config(id; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +get_security_config(id; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "GetSecurityConfig", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_security_config( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -855,14 +821,13 @@ Amazon OpenSearch Serverless. - `type`: The type of security policy. """ -function get_security_policy(name, type; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +get_security_policy(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "GetSecurityPolicy", Dict{String,Any}("name" => name, "type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_security_policy( name, type, @@ -897,14 +862,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results in the next page. - `"resource"`: Resource filters (can be collections or indexes) that policies can apply to. """ -function list_access_policies(type; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +list_access_policies(type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "ListAccessPolicies", Dict{String,Any}("type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_access_policies( type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -933,11 +897,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the returned nextToken in subsequent ListCollections operations, which returns results in the next page. """ -function list_collections(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +list_collections(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "ListCollections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_collections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -966,14 +929,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resources"`: Resource filters that policies can apply to. Currently, the only supported resource type is index. """ -function list_lifecycle_policies(type; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +list_lifecycle_policies(type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "ListLifecyclePolicies", Dict{String,Any}("type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_lifecycle_policies( type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1003,14 +965,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the returned nextToken in subsequent ListSecurityConfigs operations, which returns results in the next page. """ -function list_security_configs(type; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +list_security_configs(type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "ListSecurityConfigs", Dict{String,Any}("type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_security_configs( type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1040,14 +1001,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns results in the next page. - `"resource"`: Resource filters (can be collection or indexes) that policies can apply to. """ -function list_security_policies(type; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +list_security_policies(type; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "ListSecurityPolicies", Dict{String,Any}("type" => type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_security_policies( type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1072,16 +1032,13 @@ Amazon OpenSearch Serverless collections. request. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearchserverless( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1115,11 +1072,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcEndpointFilters"`: Filter the results according to the current status of the VPC endpoint. Possible statuses are CREATING, DELETING, UPDATING, ACTIVE, and FAILED. """ -function list_vpc_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +list_vpc_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "ListVpcEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_vpc_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1143,14 +1099,13 @@ Amazon OpenSearch Serverless collections. request must be unique. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1186,16 +1141,13 @@ see Tagging Amazon OpenSearch Serverless collections. request must be unique. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return opensearchserverless( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1235,21 +1187,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the permissions defined in the policy. - `"policy"`: The JSON policy document to use as the content for the policy. """ -function update_access_policy( +update_access_policy( name, policyVersion, type; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "UpdateAccessPolicy", + Dict{String,Any}( + "name" => name, + "policyVersion" => policyVersion, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "UpdateAccessPolicy", - Dict{String,Any}( - "name" => name, - "policyVersion" => policyVersion, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_access_policy( name, policyVersion, @@ -1287,11 +1237,10 @@ more information, see Managing capacity limits for Amazon OpenSearch Serverless. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"capacityLimits"`: """ -function update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "UpdateAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1317,14 +1266,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: Unique, case-sensitive identifier to ensure idempotency of the request. - `"description"`: A description of the collection. """ -function update_collection(id; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +update_collection(id; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "UpdateCollection", Dict{String,Any}("id" => id, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_collection( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1360,21 +1308,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the lifecycle policy. - `"policy"`: The JSON policy document to use as the content for the lifecycle policy. """ -function update_lifecycle_policy( +update_lifecycle_policy( name, policyVersion, type; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "UpdateLifecyclePolicy", + Dict{String,Any}( + "name" => name, + "policyVersion" => policyVersion, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "UpdateLifecyclePolicy", - Dict{String,Any}( - "name" => name, - "policyVersion" => policyVersion, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_lifecycle_policy( name, policyVersion, @@ -1420,18 +1366,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of the security configuration. - `"samlOptions"`: SAML options in in the form of a key-value map. """ -function update_security_config( +update_security_config( configVersion, id; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "UpdateSecurityConfig", + Dict{String,Any}( + "configVersion" => configVersion, "id" => id, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "UpdateSecurityConfig", - Dict{String,Any}( - "configVersion" => configVersion, "id" => id, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_security_config( configVersion, id, @@ -1475,21 +1419,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the permissions defined in the policy. - `"policy"`: The JSON policy document to use as the content for the new policy. """ -function update_security_policy( +update_security_policy( name, policyVersion, type; aws_config::AbstractAWSConfig=current_aws_config() +) = opensearchserverless( + "UpdateSecurityPolicy", + Dict{String,Any}( + "name" => name, + "policyVersion" => policyVersion, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opensearchserverless( - "UpdateSecurityPolicy", - Dict{String,Any}( - "name" => name, - "policyVersion" => policyVersion, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_security_policy( name, policyVersion, @@ -1537,14 +1479,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the endpoint. - `"removeSubnetIds"`: The unique identifiers of the subnets to remove from the endpoint. """ -function update_vpc_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) - return opensearchserverless( +update_vpc_endpoint(id; aws_config::AbstractAWSConfig=current_aws_config()) = + opensearchserverless( "UpdateVpcEndpoint", Dict{String,Any}("id" => id, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_vpc_endpoint( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/opsworks.jl b/src/services/opsworks.jl index e876d2b24..80c2d59da 100644 --- a/src/services/opsworks.jl +++ b/src/services/opsworks.jl @@ -21,16 +21,13 @@ permissions. For more information on user permissions, see Managing User Permiss registered instance to a built-in layer. """ -function assign_instance( - InstanceId, LayerIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +assign_instance(InstanceId, LayerIds; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "AssignInstance", Dict{String,Any}("InstanceId" => InstanceId, "LayerIds" => LayerIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function assign_instance( InstanceId, LayerIds, @@ -70,14 +67,12 @@ Managing User Permissions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InstanceId"`: The instance ID. """ -function assign_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "AssignVolume", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +assign_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "AssignVolume", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function assign_volume( VolumeId, params::AbstractDict{String}; @@ -111,14 +106,13 @@ Permissions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"InstanceId"`: The instance ID. """ -function associate_elastic_ip(ElasticIp; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +associate_elastic_ip(ElasticIp; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "AssociateElasticIp", Dict{String,Any}("ElasticIp" => ElasticIp); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_elastic_ip( ElasticIp, params::AbstractDict{String}; @@ -153,18 +147,16 @@ user permissions, see Managing User Permissions. attached. """ -function attach_elastic_load_balancer( +attach_elastic_load_balancer( ElasticLoadBalancerName, LayerId; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "AttachElasticLoadBalancer", + Dict{String,Any}( + "ElasticLoadBalancerName" => ElasticLoadBalancerName, "LayerId" => LayerId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "AttachElasticLoadBalancer", - Dict{String,Any}( - "ElasticLoadBalancerName" => ElasticLoadBalancerName, "LayerId" => LayerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_elastic_load_balancer( ElasticLoadBalancerName, LayerId, @@ -313,18 +305,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use OpsWorks Stacks with a VPC, see Running a Stack in a VPC. For more information about default VPC and EC2 Classic, see Supported Platforms. """ -function clone_stack( +clone_stack( ServiceRoleArn, SourceStackId; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "CloneStack", + Dict{String,Any}("ServiceRoleArn" => ServiceRoleArn, "SourceStackId" => SourceStackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "CloneStack", - Dict{String,Any}( - "ServiceRoleArn" => ServiceRoleArn, "SourceStackId" => SourceStackId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function clone_stack( ServiceRoleArn, SourceStackId, @@ -387,14 +375,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Shortname"`: The app's short name. - `"SslConfiguration"`: An SslConfiguration object with the SSL configuration. """ -function create_app(Name, StackId, Type; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +create_app(Name, StackId, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "CreateApp", Dict{String,Any}("Name" => Name, "StackId" => StackId, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_app( Name, StackId, @@ -443,16 +430,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InstanceIds"`: The instance IDs for the deployment targets. - `"LayerIds"`: The layer IDs for the deployment targets. """ -function create_deployment( - Command, StackId; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +create_deployment(Command, StackId; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "CreateDeployment", Dict{String,Any}("Command" => Command, "StackId" => StackId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_deployment( Command, StackId, @@ -552,18 +536,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys dedicated instances, see Dedicated Instances and Amazon EC2 Dedicated Instances. - `"VirtualizationType"`: The instance's virtualization type, paravirtual or hvm. """ -function create_instance( +create_instance( InstanceType, LayerIds, StackId; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "CreateInstance", + Dict{String,Any}( + "InstanceType" => InstanceType, "LayerIds" => LayerIds, "StackId" => StackId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "CreateInstance", - Dict{String,Any}( - "InstanceType" => InstanceType, "LayerIds" => LayerIds, "StackId" => StackId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instance( InstanceType, LayerIds, @@ -649,18 +631,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VolumeConfigurations"`: A VolumeConfigurations object that describes the layer's Amazon EBS volumes. """ -function create_layer( +create_layer( Name, Shortname, StackId, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "CreateLayer", + Dict{String,Any}( + "Name" => Name, "Shortname" => Shortname, "StackId" => StackId, "Type" => Type + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "CreateLayer", - Dict{String,Any}( - "Name" => Name, "Shortname" => Shortname, "StackId" => StackId, "Type" => Type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_layer( Name, Shortname, @@ -815,25 +795,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys OpsWorks Stacks with a VPC, see Running a Stack in a VPC. For more information about default VPC and EC2-Classic, see Supported Platforms. """ -function create_stack( +create_stack( DefaultInstanceProfileArn, Name, Region, ServiceRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = opsworks( + "CreateStack", + Dict{String,Any}( + "DefaultInstanceProfileArn" => DefaultInstanceProfileArn, + "Name" => Name, + "Region" => Region, + "ServiceRoleArn" => ServiceRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "CreateStack", - Dict{String,Any}( - "DefaultInstanceProfileArn" => DefaultInstanceProfileArn, - "Name" => Name, - "Region" => Region, - "ServiceRoleArn" => ServiceRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_stack( DefaultInstanceProfileArn, Name, @@ -882,14 +860,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Stacks removes them. For example, my.name is changed to myname. If you do not specify an SSH user name, OpsWorks Stacks generates one from the IAM user name. """ -function create_user_profile(IamUserArn; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +create_user_profile(IamUserArn; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "CreateUserProfile", Dict{String,Any}("IamUserArn" => IamUserArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_user_profile( IamUserArn, params::AbstractDict{String}; @@ -917,14 +894,12 @@ permissions. For more information on user permissions, see Managing User Permiss - `app_id`: The app ID. """ -function delete_app(AppId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DeleteApp", - Dict{String,Any}("AppId" => AppId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_app(AppId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DeleteApp", + Dict{String,Any}("AppId" => AppId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_app( AppId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -954,14 +929,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeleteElasticIp"`: Whether to delete the instance Elastic IP address. - `"DeleteVolumes"`: Whether to delete the instance's Amazon EBS volumes. """ -function delete_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DeleteInstance", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DeleteInstance", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_instance( InstanceId, params::AbstractDict{String}; @@ -991,14 +964,12 @@ user permissions, see Managing User Permissions. - `layer_id`: The layer ID. """ -function delete_layer(LayerId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DeleteLayer", - Dict{String,Any}("LayerId" => LayerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_layer(LayerId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DeleteLayer", + Dict{String,Any}("LayerId" => LayerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_layer( LayerId, params::AbstractDict{String}; @@ -1026,14 +997,12 @@ user permissions, see Managing User Permissions. - `stack_id`: The stack ID. """ -function delete_stack(StackId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DeleteStack", - Dict{String,Any}("StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_stack(StackId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DeleteStack", + Dict{String,Any}("StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_stack( StackId, params::AbstractDict{String}; @@ -1059,14 +1028,13 @@ permissions, see Managing User Permissions. - `iam_user_arn`: The user's IAM ARN. This can also be a federated user's ARN. """ -function delete_user_profile(IamUserArn; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +delete_user_profile(IamUserArn; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "DeleteUserProfile", Dict{String,Any}("IamUserArn" => IamUserArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user_profile( IamUserArn, params::AbstractDict{String}; @@ -1096,16 +1064,13 @@ https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.ht - `ecs_cluster_arn`: The cluster's Amazon Resource Number (ARN). """ -function deregister_ecs_cluster( - EcsClusterArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +deregister_ecs_cluster(EcsClusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "DeregisterEcsCluster", Dict{String,Any}("EcsClusterArn" => EcsClusterArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_ecs_cluster( EcsClusterArn, params::AbstractDict{String}; @@ -1135,16 +1100,13 @@ user permissions, see Managing User Permissions. - `elastic_ip`: The Elastic IP address. """ -function deregister_elastic_ip( - ElasticIp; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +deregister_elastic_ip(ElasticIp; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "DeregisterElasticIp", Dict{String,Any}("ElasticIp" => ElasticIp); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_elastic_ip( ElasticIp, params::AbstractDict{String}; @@ -1175,14 +1137,13 @@ Managing User Permissions. - `instance_id`: The instance ID. """ -function deregister_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +deregister_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "DeregisterInstance", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_instance( InstanceId, params::AbstractDict{String}; @@ -1210,16 +1171,14 @@ grants permissions. For more information on user permissions, see Managing User - `rds_db_instance_arn`: The Amazon RDS instance's ARN. """ -function deregister_rds_db_instance( +deregister_rds_db_instance( RdsDbInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "DeregisterRdsDbInstance", + Dict{String,Any}("RdsDbInstanceArn" => RdsDbInstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "DeregisterRdsDbInstance", - Dict{String,Any}("RdsDbInstanceArn" => RdsDbInstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_rds_db_instance( RdsDbInstanceArn, params::AbstractDict{String}; @@ -1253,14 +1212,12 @@ Permissions. volume ID. """ -function deregister_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DeregisterVolume", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +deregister_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DeregisterVolume", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function deregister_volume( VolumeId, params::AbstractDict{String}; @@ -1289,11 +1246,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ConfigurationManager"`: The configuration manager. - `"StackId"`: The stack ID. """ -function describe_agent_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeAgentVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_agent_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DescribeAgentVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_agent_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1323,9 +1278,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackId"`: The app stack ID. If you use this parameter, DescribeApps returns a description of the apps in the specified stack. """ -function describe_apps(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks("DescribeApps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_apps(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeApps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_apps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1354,11 +1308,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InstanceId"`: The instance ID. If you include this parameter, DescribeCommands returns a description of the commands associated with the specified instance. """ -function describe_commands(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeCommands"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_commands(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeCommands"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_commands( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1387,11 +1338,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackId"`: The stack ID. If you include this parameter, the command returns a description of the commands associated with the specified stack. """ -function describe_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeDeployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeDeployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_deployments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1430,11 +1378,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackId"`: A stack ID. DescribeEcsClusters returns a description of the cluster that is registered with the stack. """ -function describe_ecs_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeEcsClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_ecs_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeEcsClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ecs_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1465,11 +1410,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackId"`: A stack ID. If you include this parameter, DescribeElasticIps returns a description of the Elastic IP addresses that are registered with the specified stack. """ -function describe_elastic_ips(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeElasticIps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_elastic_ips(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeElasticIps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_elastic_ips( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1495,15 +1437,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackId"`: A stack ID. The action describes the stack's Elastic Load Balancing instances. """ -function describe_elastic_load_balancers(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +describe_elastic_load_balancers(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "DescribeElasticLoadBalancers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_elastic_load_balancers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1535,11 +1474,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackId"`: A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack. """ -function describe_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1564,11 +1500,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this parameter, DescribeLayers returns a description of every layer in the specified stack. - `"StackId"`: The stack ID. """ -function describe_layers(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeLayers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_layers(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeLayers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_layers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1591,16 +1524,14 @@ User Permissions. - `layer_ids`: An array of layer IDs. """ -function describe_load_based_auto_scaling( +describe_load_based_auto_scaling( LayerIds; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "DescribeLoadBasedAutoScaling", + Dict{String,Any}("LayerIds" => LayerIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "DescribeLoadBasedAutoScaling", - Dict{String,Any}("LayerIds" => LayerIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_load_based_auto_scaling( LayerIds, params::AbstractDict{String}; @@ -1625,11 +1556,9 @@ must have self-management enabled or an attached policy that explicitly grants p For more information about user permissions, see Managing User Permissions. """ -function describe_my_user_profile(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeMyUserProfile"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_my_user_profile(; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DescribeMyUserProfile"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_my_user_profile( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1648,11 +1577,9 @@ end Describes the operating systems that are supported by OpsWorks Stacks. """ -function describe_operating_systems(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeOperatingSystems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_operating_systems(; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DescribeOperatingSystems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_operating_systems( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1679,11 +1606,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about IAM ARNs, see Using Identifiers. - `"StackId"`: The stack ID. """ -function describe_permissions(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribePermissions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_permissions(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribePermissions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_permissions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1714,11 +1638,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys description of every array. - `"StackId"`: The stack ID. """ -function describe_raid_arrays(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeRaidArrays"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_raid_arrays(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeRaidArrays"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_raid_arrays( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1744,16 +1665,13 @@ User Permissions. This call accepts only one resource-identifying parameter. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"RdsDbInstanceArns"`: An array containing the ARNs of the instances to be described. """ -function describe_rds_db_instances( - StackId; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +describe_rds_db_instances(StackId; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "DescribeRdsDbInstances", Dict{String,Any}("StackId" => StackId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_rds_db_instances( StackId, params::AbstractDict{String}; @@ -1786,11 +1704,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StackId"`: The stack ID. If you use this parameter, DescribeServiceErrors returns descriptions of the errors associated with the specified stack. """ -function describe_service_errors(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeServiceErrors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_service_errors(; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "DescribeServiceErrors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_service_errors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1815,16 +1731,14 @@ user permissions, see Managing User Permissions. - `stack_id`: The stack ID. """ -function describe_stack_provisioning_parameters( +describe_stack_provisioning_parameters( StackId; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "DescribeStackProvisioningParameters", + Dict{String,Any}("StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "DescribeStackProvisioningParameters", - Dict{String,Any}("StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_stack_provisioning_parameters( StackId, params::AbstractDict{String}; @@ -1852,14 +1766,13 @@ permissions, see Managing User Permissions. - `stack_id`: The stack ID. """ -function describe_stack_summary(StackId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +describe_stack_summary(StackId; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "DescribeStackSummary", Dict{String,Any}("StackId" => StackId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_stack_summary( StackId, params::AbstractDict{String}; @@ -1891,11 +1804,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the user must specify a stack ARN that is allowed by the policy. Otherwise, DescribeStacks returns an AccessDenied error. """ -function describe_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_stacks(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeStacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_stacks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1918,16 +1828,14 @@ Managing User Permissions. - `instance_ids`: An array of instance IDs. """ -function describe_time_based_auto_scaling( +describe_time_based_auto_scaling( InstanceIds; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "DescribeTimeBasedAutoScaling", + Dict{String,Any}("InstanceIds" => InstanceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "DescribeTimeBasedAutoScaling", - Dict{String,Any}("InstanceIds" => InstanceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_time_based_auto_scaling( InstanceIds, params::AbstractDict{String}; @@ -1956,11 +1864,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IamUserArns"`: An array of IAM or federated user ARNs that identify the users to be described. """ -function describe_user_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeUserProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_user_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeUserProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_user_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1992,11 +1897,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VolumeIds"`: Am array of volume IDs. If you use this parameter, DescribeVolumes returns descriptions of the specified volumes. Otherwise, it returns a description of every volume. """ -function describe_volumes(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "DescribeVolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_volumes(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("DescribeVolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_volumes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2019,18 +1921,16 @@ permissions, see Managing User Permissions. - `layer_id`: The ID of the layer that the Elastic Load Balancing instance is attached to. """ -function detach_elastic_load_balancer( +detach_elastic_load_balancer( ElasticLoadBalancerName, LayerId; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "DetachElasticLoadBalancer", + Dict{String,Any}( + "ElasticLoadBalancerName" => ElasticLoadBalancerName, "LayerId" => LayerId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "DetachElasticLoadBalancer", - Dict{String,Any}( - "ElasticLoadBalancerName" => ElasticLoadBalancerName, "LayerId" => LayerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_elastic_load_balancer( ElasticLoadBalancerName, LayerId, @@ -2068,16 +1968,13 @@ Managing User Permissions. - `elastic_ip`: The Elastic IP address. """ -function disassociate_elastic_ip( - ElasticIp; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +disassociate_elastic_ip(ElasticIp; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "DisassociateElasticIp", Dict{String,Any}("ElasticIp" => ElasticIp); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_elastic_ip( ElasticIp, params::AbstractDict{String}; @@ -2106,16 +2003,13 @@ information on user permissions, see Managing User Permissions. - `layer_id`: The layer ID. """ -function get_hostname_suggestion( - LayerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +get_hostname_suggestion(LayerId; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "GetHostnameSuggestion", Dict{String,Any}("LayerId" => LayerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_hostname_suggestion( LayerId, params::AbstractDict{String}; @@ -2145,14 +2039,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, they are logged out. """ -function grant_access(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "GrantAccess", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +grant_access(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "GrantAccess", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function grant_access( InstanceId, params::AbstractDict{String}; @@ -2184,14 +2076,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Do not use. A validation exception occurs if you add a NextToken parameter to a ListTagsRequest call. """ -function list_tags(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "ListTags", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "ListTags", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( ResourceArn, params::AbstractDict{String}; @@ -2220,14 +2110,12 @@ For more information on user permissions, see Managing User Permissions. - `instance_id`: The instance ID. """ -function reboot_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "RebootInstance", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +reboot_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "RebootInstance", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function reboot_instance( InstanceId, params::AbstractDict{String}; @@ -2258,16 +2146,14 @@ permissions. For more information on user permissions, see Managing User Permis - `stack_id`: The stack ID. """ -function register_ecs_cluster( +register_ecs_cluster( EcsClusterArn, StackId; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "RegisterEcsCluster", + Dict{String,Any}("EcsClusterArn" => EcsClusterArn, "StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "RegisterEcsCluster", - Dict{String,Any}("EcsClusterArn" => EcsClusterArn, "StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_ecs_cluster( EcsClusterArn, StackId, @@ -2304,16 +2190,14 @@ user permissions, see Managing User Permissions. - `stack_id`: The stack ID. """ -function register_elastic_ip( +register_elastic_ip( ElasticIp, StackId; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "RegisterElasticIp", + Dict{String,Any}("ElasticIp" => ElasticIp, "StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "RegisterElasticIp", - Dict{String,Any}("ElasticIp" => ElasticIp, "StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_elastic_ip( ElasticIp, StackId, @@ -2367,14 +2251,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys between the instance and the service. - `"RsaPublicKeyFingerprint"`: The instances public RSA key fingerprint. """ -function register_instance(StackId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "RegisterInstance", - Dict{String,Any}("StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +register_instance(StackId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "RegisterInstance", + Dict{String,Any}("StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function register_instance( StackId, params::AbstractDict{String}; @@ -2404,25 +2286,23 @@ Permissions. - `stack_id`: The stack ID. """ -function register_rds_db_instance( +register_rds_db_instance( DbPassword, DbUser, RdsDbInstanceArn, StackId; aws_config::AbstractAWSConfig=current_aws_config(), +) = opsworks( + "RegisterRdsDbInstance", + Dict{String,Any}( + "DbPassword" => DbPassword, + "DbUser" => DbUser, + "RdsDbInstanceArn" => RdsDbInstanceArn, + "StackId" => StackId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "RegisterRdsDbInstance", - Dict{String,Any}( - "DbPassword" => DbPassword, - "DbUser" => DbUser, - "RdsDbInstanceArn" => RdsDbInstanceArn, - "StackId" => StackId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_rds_db_instance( DbPassword, DbUser, @@ -2468,14 +2348,12 @@ user permissions, see Managing User Permissions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Ec2VolumeId"`: The Amazon EBS volume ID. """ -function register_volume(StackId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "RegisterVolume", - Dict{String,Any}("StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +register_volume(StackId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "RegisterVolume", + Dict{String,Any}("StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function register_volume( StackId, params::AbstractDict{String}; @@ -2515,16 +2393,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration. If the load exceeds these thresholds for a specified amount of time, OpsWorks Stacks starts a specified number of instances. """ -function set_load_based_auto_scaling( - LayerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +set_load_based_auto_scaling(LayerId; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "SetLoadBasedAutoScaling", Dict{String,Any}("LayerId" => LayerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_load_based_auto_scaling( LayerId, params::AbstractDict{String}; @@ -2560,16 +2435,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys iam_only For more information about the permissions associated with these levels, see Managing User Permissions. """ -function set_permission( - IamUserArn, StackId; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +set_permission(IamUserArn, StackId; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "SetPermission", Dict{String,Any}("IamUserArn" => IamUserArn, "StackId" => StackId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function set_permission( IamUserArn, StackId, @@ -2607,16 +2479,14 @@ user permissions, see Managing User Permissions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AutoScalingSchedule"`: An AutoScalingSchedule with the instance schedule. """ -function set_time_based_auto_scaling( +set_time_based_auto_scaling( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "SetTimeBasedAutoScaling", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "SetTimeBasedAutoScaling", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_time_based_auto_scaling( InstanceId, params::AbstractDict{String}; @@ -2645,14 +2515,12 @@ For more information on user permissions, see Managing User Permissions. - `instance_id`: The instance ID. """ -function start_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "StartInstance", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "StartInstance", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_instance( InstanceId, params::AbstractDict{String}; @@ -2680,14 +2548,12 @@ permissions. For more information on user permissions, see Managing User Permiss - `stack_id`: The stack ID. """ -function start_stack(StackId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "StartStack", - Dict{String,Any}("StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_stack(StackId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "StartStack", + Dict{String,Any}("StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_stack( StackId, params::AbstractDict{String}; @@ -2723,14 +2589,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the OpsWorks Stacks instance with a new one. """ -function stop_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "StopInstance", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "StopInstance", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_instance( InstanceId, params::AbstractDict{String}; @@ -2758,14 +2622,12 @@ permissions. For more information on user permissions, see Managing User Permiss - `stack_id`: The stack ID. """ -function stop_stack(StackId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "StopStack", - Dict{String,Any}("StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_stack(StackId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "StopStack", + Dict{String,Any}("StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_stack( StackId, params::AbstractDict{String}; @@ -2797,14 +2659,13 @@ information about how tagging works, see Tags in the OpsWorks User Guide. 40 tags is allowed for any resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2840,14 +2701,13 @@ information about user permissions, see Managing User Permissions. - `instance_id`: The instance ID. """ -function unassign_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +unassign_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "UnassignInstance", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function unassign_instance( InstanceId, params::AbstractDict{String}; @@ -2877,14 +2737,12 @@ Permissions. - `volume_id`: The volume ID. """ -function unassign_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "UnassignVolume", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +unassign_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "UnassignVolume", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function unassign_volume( VolumeId, params::AbstractDict{String}; @@ -2911,16 +2769,13 @@ Removes tags from a specified stack or layer. - `tag_keys`: A list of the keys of tags to be removed from a stack or layer. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworks( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2975,14 +2830,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SslConfiguration"`: An SslConfiguration object with the SSL configuration. - `"Type"`: The app type. """ -function update_app(AppId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "UpdateApp", - Dict{String,Any}("AppId" => AppId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_app(AppId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "UpdateApp", + Dict{String,Any}("AppId" => AppId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_app( AppId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3010,14 +2863,12 @@ For more information on user permissions, see Managing User Permissions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Name"`: The new name, which can be a maximum of 32 characters. """ -function update_elastic_ip(ElasticIp; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "UpdateElasticIp", - Dict{String,Any}("ElasticIp" => ElasticIp); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_elastic_ip(ElasticIp; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "UpdateElasticIp", + Dict{String,Any}("ElasticIp" => ElasticIp); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_elastic_ip( ElasticIp, params::AbstractDict{String}; @@ -3097,14 +2948,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys change from Linux to Windows or Windows to Linux. - `"SshKeyName"`: The instance's Amazon EC2 key name. """ -function update_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "UpdateInstance", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_instance(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "UpdateInstance", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_instance( InstanceId, params::AbstractDict{String}; @@ -3170,14 +3019,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VolumeConfigurations"`: A VolumeConfigurations object that describes the layer's Amazon EBS volumes. """ -function update_layer(LayerId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "UpdateLayer", - Dict{String,Any}("LayerId" => LayerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_layer(LayerId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "UpdateLayer", + Dict{String,Any}("LayerId" => LayerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_layer( LayerId, params::AbstractDict{String}; @@ -3203,11 +3050,8 @@ For more information about user permissions, see Managing User Permissions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SshPublicKey"`: The user's SSH public key. """ -function update_my_user_profile(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "UpdateMyUserProfile"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_my_user_profile(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks("UpdateMyUserProfile"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_my_user_profile( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3235,16 +3079,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DbPassword"`: The database password. - `"DbUser"`: The master user name. """ -function update_rds_db_instance( +update_rds_db_instance( RdsDbInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworks( + "UpdateRdsDbInstance", + Dict{String,Any}("RdsDbInstanceArn" => RdsDbInstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworks( - "UpdateRdsDbInstance", - Dict{String,Any}("RdsDbInstanceArn" => RdsDbInstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rds_db_instance( RdsDbInstanceArn, params::AbstractDict{String}; @@ -3361,14 +3203,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys groups are required only for those layers that need custom settings. For more information, see Create a New Stack. """ -function update_stack(StackId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "UpdateStack", - Dict{String,Any}("StackId" => StackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_stack(StackId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "UpdateStack", + Dict{String,Any}("StackId" => StackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_stack( StackId, params::AbstractDict{String}; @@ -3403,14 +3243,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Stacks removes them. For example, my.name will be changed to myname. If you do not specify an SSH user name, OpsWorks Stacks generates one from the IAM user name. """ -function update_user_profile(IamUserArn; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( +update_user_profile(IamUserArn; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworks( "UpdateUserProfile", Dict{String,Any}("IamUserArn" => IamUserArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_user_profile( IamUserArn, params::AbstractDict{String}; @@ -3443,14 +3282,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MountPoint"`: The new mount point. - `"Name"`: The new name. Volume names can be a maximum of 128 characters. """ -function update_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworks( - "UpdateVolume", - Dict{String,Any}("VolumeId" => VolumeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_volume(VolumeId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworks( + "UpdateVolume", + Dict{String,Any}("VolumeId" => VolumeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_volume( VolumeId, params::AbstractDict{String}; diff --git a/src/services/opsworkscm.jl b/src/services/opsworkscm.jl index f159cff0b..54dfd7b1d 100644 --- a/src/services/opsworkscm.jl +++ b/src/services/opsworkscm.jl @@ -34,23 +34,21 @@ Cloudformation templates, or the user data of a server's instance. - `server_name`: The name of the server with which to associate the node. """ -function associate_node( +associate_node( EngineAttributes, NodeName, ServerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = opsworkscm( + "AssociateNode", + Dict{String,Any}( + "EngineAttributes" => EngineAttributes, + "NodeName" => NodeName, + "ServerName" => ServerName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworkscm( - "AssociateNode", - Dict{String,Any}( - "EngineAttributes" => EngineAttributes, - "NodeName" => NodeName, - "ServerName" => ServerName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_node( EngineAttributes, NodeName, @@ -103,14 +101,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Leading and trailing white spaces are trimmed from both the key and value. A maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM resources. """ -function create_backup(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( - "CreateBackup", - Dict{String,Any}("ServerName" => ServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_backup(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) = opsworkscm( + "CreateBackup", + Dict{String,Any}("ServerName" => ServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_backup( ServerName, params::AbstractDict{String}; @@ -260,27 +256,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys trimmed from both the key and value. A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server. """ -function create_server( +create_server( Engine, InstanceProfileArn, InstanceType, ServerName, ServiceRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = opsworkscm( + "CreateServer", + Dict{String,Any}( + "Engine" => Engine, + "InstanceProfileArn" => InstanceProfileArn, + "InstanceType" => InstanceType, + "ServerName" => ServerName, + "ServiceRoleArn" => ServiceRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworkscm( - "CreateServer", - Dict{String,Any}( - "Engine" => Engine, - "InstanceProfileArn" => InstanceProfileArn, - "InstanceType" => InstanceType, - "ServerName" => ServerName, - "ServiceRoleArn" => ServiceRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_server( Engine, InstanceProfileArn, @@ -324,14 +318,12 @@ ValidationException is thrown when parameters of the request are not valid. list of backup IDs. Backup IDs are in the format ServerName-yyyyMMddHHmmssSSS. """ -function delete_backup(BackupId; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( - "DeleteBackup", - Dict{String,Any}("BackupId" => BackupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_backup(BackupId; aws_config::AbstractAWSConfig=current_aws_config()) = opsworkscm( + "DeleteBackup", + Dict{String,Any}("BackupId" => BackupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_backup( BackupId, params::AbstractDict{String}; @@ -363,14 +355,12 @@ ValidationException is raised when parameters of the request are not valid. - `server_name`: The ID of the server to delete. """ -function delete_server(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( - "DeleteServer", - Dict{String,Any}("ServerName" => ServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_server(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) = opsworkscm( + "DeleteServer", + Dict{String,Any}("ServerName" => ServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_server( ServerName, params::AbstractDict{String}; @@ -393,11 +383,10 @@ end Describes your OpsWorks-CM account attributes. This operation is synchronous. """ -function describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( +describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm( "DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -425,11 +414,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: This is not currently implemented for DescribeBackups requests. - `"ServerName"`: Returns backups for the server with the specified ServerName. """ -function describe_backups(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( - "DescribeBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_backups(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm("DescribeBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_backups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -464,14 +450,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur. """ -function describe_events(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( +describe_events(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm( "DescribeEvents", Dict{String,Any}("ServerName" => ServerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_events( ServerName, params::AbstractDict{String}; @@ -502,21 +487,19 @@ is raised when parameters of the request are not valid. - `server_name`: The name of the server from which to disassociate the node. """ -function describe_node_association_status( +describe_node_association_status( NodeAssociationStatusToken, ServerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = opsworkscm( + "DescribeNodeAssociationStatus", + Dict{String,Any}( + "NodeAssociationStatusToken" => NodeAssociationStatusToken, + "ServerName" => ServerName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworkscm( - "DescribeNodeAssociationStatus", - Dict{String,Any}( - "NodeAssociationStatusToken" => NodeAssociationStatusToken, - "ServerName" => ServerName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_node_association_status( NodeAssociationStatusToken, ServerName, @@ -556,11 +539,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: This is not currently implemented for DescribeServers requests. - `"ServerName"`: Describes the server with the specified ServerName. """ -function describe_servers(; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( - "DescribeServers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_servers(; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm("DescribeServers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_servers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -592,16 +572,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Chef CHEF_ORGANIZATION: The Chef organization with which the node was associated. By default only one organization named default can exist. """ -function disassociate_node( +disassociate_node( NodeName, ServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworkscm( + "DisassociateNode", + Dict{String,Any}("NodeName" => NodeName, "ServerName" => ServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworkscm( - "DisassociateNode", - Dict{String,Any}("NodeName" => NodeName, "ServerName" => ServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_node( NodeName, ServerName, @@ -653,18 +631,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys attribute is empty, OpsWorks for Chef Automate uses the most current version. In Puppet, this parameter is ignored. """ -function export_server_engine_attribute( +export_server_engine_attribute( ExportAttributeName, ServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworkscm( + "ExportServerEngineAttribute", + Dict{String,Any}( + "ExportAttributeName" => ExportAttributeName, "ServerName" => ServerName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworkscm( - "ExportServerEngineAttribute", - Dict{String,Any}( - "ExportAttributeName" => ExportAttributeName, "ServerName" => ServerName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_server_engine_attribute( ExportAttributeName, ServerName, @@ -715,16 +691,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a nextToken value that was not returned in your previous results causes an InvalidNextTokenException to occur. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworkscm( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -769,16 +742,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KeyPair"`: The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no longer has the SSH key. """ -function restore_server( - BackupId, ServerName; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworkscm( +restore_server(BackupId, ServerName; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm( "RestoreServer", Dict{String,Any}("BackupId" => BackupId, "ServerName" => ServerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_server( BackupId, ServerName, @@ -822,14 +792,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2. """ -function start_maintenance(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( +start_maintenance(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm( "StartMaintenance", Dict{String,Any}("ServerName" => ServerName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_maintenance( ServerName, params::AbstractDict{String}; @@ -866,14 +835,13 @@ server, or to server backups. of 50 user-applied tags is allowed for any AWS OpsWorks-CM server or backup. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -908,16 +876,13 @@ Removes specified tags from an AWS OpsWorks-CM server or backup. - `tag_keys`: The keys of tags that you want to remove. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return opsworkscm( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + opsworkscm( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -955,14 +920,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PreferredBackupWindow"`: - `"PreferredMaintenanceWindow"`: """ -function update_server(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) - return opsworkscm( - "UpdateServer", - Dict{String,Any}("ServerName" => ServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_server(ServerName; aws_config::AbstractAWSConfig=current_aws_config()) = opsworkscm( + "UpdateServer", + Dict{String,Any}("ServerName" => ServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_server( ServerName, params::AbstractDict{String}; @@ -998,16 +961,14 @@ not exist. A ValidationException is raised when parameters of the request are no Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AttributeValue"`: The value to set for the attribute. """ -function update_server_engine_attributes( +update_server_engine_attributes( AttributeName, ServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = opsworkscm( + "UpdateServerEngineAttributes", + Dict{String,Any}("AttributeName" => AttributeName, "ServerName" => ServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return opsworkscm( - "UpdateServerEngineAttributes", - Dict{String,Any}("AttributeName" => AttributeName, "ServerName" => ServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_server_engine_attributes( AttributeName, ServerName, diff --git a/src/services/organizations.jl b/src/services/organizations.jl index d70d0e25c..b55d8d479 100644 --- a/src/services/organizations.jl +++ b/src/services/organizations.jl @@ -30,14 +30,13 @@ results of relevant APIs for only 30 days. After that, it's deleted. letters or digits. """ -function accept_handshake(HandshakeId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +accept_handshake(HandshakeId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "AcceptHandshake", Dict{String,Any}("HandshakeId" => HandshakeId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function accept_handshake( HandshakeId, params::AbstractDict{String}; @@ -80,16 +79,13 @@ administrator for an Amazon Web Services service. letters or digits. """ -function attach_policy( - PolicyId, TargetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +attach_policy(PolicyId, TargetId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "AttachPolicy", Dict{String,Any}("PolicyId" => PolicyId, "TargetId" => TargetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function attach_policy( PolicyId, TargetId, @@ -127,14 +123,13 @@ that, it's deleted. handshake ID string requires \"h-\" followed by from 8 to 32 lowercase letters or digits. """ -function cancel_handshake(HandshakeId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +cancel_handshake(HandshakeId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "CancelHandshake", Dict{String,Any}("HandshakeId" => HandshakeId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_handshake( HandshakeId, params::AbstractDict{String}; @@ -182,14 +177,13 @@ Web Services GovCloud (US) account in the Amazon Web Services GovCloud User Gui API request. """ -function close_account(AccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +close_account(AccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "CloseAccount", Dict{String,Any}("AccountId" => AccountId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function close_account( AccountId, params::AbstractDict{String}; @@ -233,24 +227,23 @@ from the organization's management account. For more information about creating see Creating a member account in your organization in the Organizations User Guide. When you create an account in an organization using the Organizations console, API, or CLI commands, the information required for the account to operate as a standalone account, such -as a payment method and signing the end user license agreement (EULA) is not automatically -collected. If you must remove an account from your organization later, you can do so only -after you provide the missing information. For more information, see Considerations before -removing an account from an organization in the Organizations User Guide. If you get an -exception that indicates that you exceeded your account limits for the organization, -contact Amazon Web Services Support. If you get an exception that indicates that the -operation failed because your organization is still initializing, wait one hour and then -try again. If the error persists, contact Amazon Web Services Support. Using -CreateAccount to create multiple temporary accounts isn't recommended. You can only close -an account from the Billing and Cost Management console, and you must be signed in as the -root user. For information on the requirements and process for closing an account, see -Closing a member account in your organization in the Organizations User Guide. When you -create a member account with this operation, you can choose whether to create the account -with the IAM User and Role Access to Billing Information switch enabled. If you enable it, -IAM users and roles that have appropriate permissions can view billing information for the -account. If you disable it, only the account root user can access billing information. For -information about how to disable this switch for an account, see Granting access to your -billing information and tools. +as a payment method is not automatically collected. If you must remove an account from your +organization later, you can do so only after you provide the missing information. For more +information, see Considerations before removing an account from an organization in the +Organizations User Guide. If you get an exception that indicates that you exceeded your +account limits for the organization, contact Amazon Web Services Support. If you get an +exception that indicates that the operation failed because your organization is still +initializing, wait one hour and then try again. If the error persists, contact Amazon Web +Services Support. Using CreateAccount to create multiple temporary accounts isn't +recommended. You can only close an account from the Billing and Cost Management console, +and you must be signed in as the root user. For information on the requirements and process +for closing an account, see Closing a member account in your organization in the +Organizations User Guide. When you create a member account with this operation, you can +choose whether to create the account with the IAM User and Role Access to Billing +Information switch enabled. If you enable it, IAM users and roles that have appropriate +permissions can view billing information for the account. If you disable it, only the +account root user can access billing information. For information about how to disable this +switch for an account, see Granting access to your billing information and tools. # Arguments - `account_name`: The friendly name of the member account. @@ -294,16 +287,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys valid or if you exceed the maximum allowed number of tags for an account, then the entire request fails and the account is not created. """ -function create_account( - AccountName, Email; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +create_account(AccountName, Email; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "CreateAccount", Dict{String,Any}("AccountName" => AccountName, "Email" => Email); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_account( AccountName, Email, @@ -445,16 +435,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys valid or if you exceed the maximum allowed number of tags for an account, then the entire request fails and the account is not created. """ -function create_gov_cloud_account( +create_gov_cloud_account( AccountName, Email; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "CreateGovCloudAccount", + Dict{String,Any}("AccountName" => AccountName, "Email" => Email); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "CreateGovCloudAccount", - Dict{String,Any}("AccountName" => AccountName, "Email" => Email); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_gov_cloud_account( AccountName, Email, @@ -502,11 +490,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account in the organization. For more information, see All features in the Organizations User Guide. """ -function create_organization(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "CreateOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_organization(; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "CreateOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function create_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -546,16 +532,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys valid or if you exceed the allowed number of tags for an OU, then the entire request fails and the OU is not created. """ -function create_organizational_unit( +create_organizational_unit( Name, ParentId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "CreateOrganizationalUnit", + Dict{String,Any}("Name" => Name, "ParentId" => ParentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "CreateOrganizationalUnit", - Dict{String,Any}("Name" => Name, "ParentId" => ParentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_organizational_unit( Name, ParentId, @@ -605,21 +589,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys valid or if you exceed the allowed number of tags for a policy, then the entire request fails and the policy is not created. """ -function create_policy( +create_policy( Content, Description, Name, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "CreatePolicy", + Dict{String,Any}( + "Content" => Content, + "Description" => Description, + "Name" => Name, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "CreatePolicy", - Dict{String,Any}( - "Content" => Content, - "Description" => Description, - "Name" => Name, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_policy( Content, Description, @@ -664,14 +646,13 @@ relevant APIs for only 30 days. After that, it's deleted. ID string requires \"h-\" followed by from 8 to 32 lowercase letters or digits. """ -function decline_handshake(HandshakeId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +decline_handshake(HandshakeId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "DeclineHandshake", Dict{String,Any}("HandshakeId" => HandshakeId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function decline_handshake( HandshakeId, params::AbstractDict{String}; @@ -695,11 +676,9 @@ Deletes the organization. You can delete an organization only by using credentia management account. The organization must be empty of member accounts. """ -function delete_organization(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "DeleteOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_organization(; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "DeleteOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -724,16 +703,14 @@ only from the organization's management account. followed by a second \"-\" dash and from 8 to 32 additional lowercase letters or digits. """ -function delete_organizational_unit( +delete_organizational_unit( OrganizationalUnitId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "DeleteOrganizationalUnit", + Dict{String,Any}("OrganizationalUnitId" => OrganizationalUnitId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "DeleteOrganizationalUnit", - Dict{String,Any}("OrganizationalUnitId" => OrganizationalUnitId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_organizational_unit( OrganizationalUnitId, params::AbstractDict{String}; @@ -769,14 +746,12 @@ account that is a delegated administrator for an Amazon Web Services service. letters, digits, or the underscore character (_). """ -function delete_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "DeletePolicy", - Dict{String,Any}("PolicyId" => PolicyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "DeletePolicy", + Dict{String,Any}("PolicyId" => PolicyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_policy( PolicyId, params::AbstractDict{String}; @@ -800,11 +775,10 @@ Deletes the resource policy from your organization. You can only call this opera the organization's management account. """ -function delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "DeleteResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function delete_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -840,16 +814,14 @@ This operation can be called only from the organization's management account. administrator, the operation also revokes Organizations read action permissions. """ -function deregister_delegated_administrator( +deregister_delegated_administrator( AccountId, ServicePrincipal; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "DeregisterDelegatedAdministrator", + Dict{String,Any}("AccountId" => AccountId, "ServicePrincipal" => ServicePrincipal); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "DeregisterDelegatedAdministrator", - Dict{String,Any}("AccountId" => AccountId, "ServicePrincipal" => ServicePrincipal); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_delegated_administrator( AccountId, ServicePrincipal, @@ -886,14 +858,13 @@ delegated administrator for an Amazon Web Services service. operations. The regex pattern for an account ID string requires exactly 12 digits. """ -function describe_account(AccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +describe_account(AccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "DescribeAccount", Dict{String,Any}("AccountId" => AccountId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_account( AccountId, params::AbstractDict{String}; @@ -925,16 +896,14 @@ account that is a delegated administrator for an Amazon Web Services service. lowercase letters or digits. """ -function describe_create_account_status( +describe_create_account_status( CreateAccountRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "DescribeCreateAccountStatus", + Dict{String,Any}("CreateAccountRequestId" => CreateAccountRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "DescribeCreateAccountStatus", - Dict{String,Any}("CreateAccountRequestId" => CreateAccountRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_create_account_status( CreateAccountRequestId, params::AbstractDict{String}; @@ -976,16 +945,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account that you want details about. Specifying an organization root or organizational unit (OU) as the target is not supported. """ -function describe_effective_policy( - PolicyType; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +describe_effective_policy(PolicyType; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "DescribeEffectivePolicy", Dict{String,Any}("PolicyType" => PolicyType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_effective_policy( PolicyType, params::AbstractDict{String}; @@ -1018,14 +984,13 @@ operation can be called from any account in the organization. handshake ID string requires \"h-\" followed by from 8 to 32 lowercase letters or digits. """ -function describe_handshake(HandshakeId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +describe_handshake(HandshakeId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "DescribeHandshake", Dict{String,Any}("HandshakeId" => HandshakeId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_handshake( HandshakeId, params::AbstractDict{String}; @@ -1052,11 +1017,9 @@ with DisablePolicyType. Use ListRoots to see the status of policy types for a sp root. """ -function describe_organization(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "DescribeOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_organization(; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "DescribeOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1084,16 +1047,14 @@ administrator for an Amazon Web Services service. followed by a second \"-\" dash and from 8 to 32 additional lowercase letters or digits. """ -function describe_organizational_unit( +describe_organizational_unit( OrganizationalUnitId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "DescribeOrganizationalUnit", + Dict{String,Any}("OrganizationalUnitId" => OrganizationalUnitId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "DescribeOrganizationalUnit", - Dict{String,Any}("OrganizationalUnitId" => OrganizationalUnitId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_organizational_unit( OrganizationalUnitId, params::AbstractDict{String}; @@ -1128,14 +1089,13 @@ for an Amazon Web Services service. letters, digits, or the underscore character (_). """ -function describe_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +describe_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "DescribePolicy", Dict{String,Any}("PolicyId" => PolicyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_policy( PolicyId, params::AbstractDict{String}; @@ -1160,11 +1120,10 @@ organization's management account or by a member account that is a delegated adm for an Amazon Web Services service. """ -function describe_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +describe_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "DescribeResourcePolicy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1209,16 +1168,13 @@ administrator for an Amazon Web Services service. letters or digits. """ -function detach_policy( - PolicyId, TargetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +detach_policy(PolicyId, TargetId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "DetachPolicy", Dict{String,Any}("PolicyId" => PolicyId, "TargetId" => TargetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detach_policy( PolicyId, TargetId, @@ -1284,16 +1240,14 @@ operation can be called only from the organization's management account. of a URL, such as service-abbreviation.amazonaws.com. """ -function disable_awsservice_access( +disable_awsservice_access( ServicePrincipal; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "DisableAWSServiceAccess", + Dict{String,Any}("ServicePrincipal" => ServicePrincipal); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "DisableAWSServiceAccess", - Dict{String,Any}("ServicePrincipal" => ServicePrincipal); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_awsservice_access( ServicePrincipal, params::AbstractDict{String}; @@ -1337,16 +1291,14 @@ organization, use DescribeOrganization. string requires \"r-\" followed by from 4 to 32 lowercase letters or digits. """ -function disable_policy_type( +disable_policy_type( PolicyType, RootId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "DisablePolicyType", + Dict{String,Any}("PolicyType" => PolicyType, "RootId" => RootId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "DisablePolicyType", - Dict{String,Any}("PolicyType" => PolicyType, "RootId" => RootId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_policy_type( PolicyType, RootId, @@ -1393,11 +1345,9 @@ account administrators are aware of this. This operation can be called only from organization's management account. """ -function enable_all_features(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "EnableAllFeatures"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +enable_all_features(; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "EnableAllFeatures"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function enable_all_features( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1431,16 +1381,14 @@ enabled all features. of a URL, such as service-abbreviation.amazonaws.com. """ -function enable_awsservice_access( +enable_awsservice_access( ServicePrincipal; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "EnableAWSServiceAccess", + Dict{String,Any}("ServicePrincipal" => ServicePrincipal); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "EnableAWSServiceAccess", - Dict{String,Any}("ServicePrincipal" => ServicePrincipal); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_awsservice_access( ServicePrincipal, params::AbstractDict{String}; @@ -1482,16 +1430,13 @@ DescribeOrganization. string requires \"r-\" followed by from 4 to 32 lowercase letters or digits. """ -function enable_policy_type( - PolicyType, RootId; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +enable_policy_type(PolicyType, RootId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "EnablePolicyType", Dict{String,Any}("PolicyType" => PolicyType, "RootId" => RootId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_policy_type( PolicyType, RootId, @@ -1558,16 +1503,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exceed the allowed number of tags for an account, then the entire request fails and invitations are not sent. """ -function invite_account_to_organization( - Target; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +invite_account_to_organization(Target; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "InviteAccountToOrganization", Dict{String,Any}("Target" => Target); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invite_account_to_organization( Target, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1616,11 +1558,9 @@ multiple accounts, you can only do this up to 5 accounts per second in a single organization. """ -function leave_organization(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "LeaveOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +leave_organization(; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "LeaveOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function leave_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1657,11 +1597,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "ListAccounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations("ListAccounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1704,16 +1641,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_accounts_for_parent( - ParentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +list_accounts_for_parent(ParentId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "ListAccountsForParent", Dict{String,Any}("ParentId" => ParentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_accounts_for_parent( ParentId, params::AbstractDict{String}; @@ -1757,15 +1691,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_awsservice_access_for_organization(; +list_awsservice_access_for_organization(; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "ListAWSServiceAccessForOrganization"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "ListAWSServiceAccessForOrganization"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_awsservice_access_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1814,16 +1746,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_children( - ChildType, ParentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +list_children(ChildType, ParentId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "ListChildren", Dict{String,Any}("ChildType" => ChildType, "ParentId" => ParentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_children( ChildType, ParentId, @@ -1873,11 +1802,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"States"`: A list of one or more states that you want included in the response. If this parameter isn't present, all requests are included in the response. """ -function list_create_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +list_create_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "ListCreateAccountStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_create_account_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1917,13 +1845,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify a service principal, the operation lists all delegated administrators for all services in your organization. """ -function list_delegated_administrators(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +list_delegated_administrators(; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "ListDelegatedAdministrators"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_delegated_administrators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1962,16 +1889,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_delegated_services_for_account( +list_delegated_services_for_account( AccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "ListDelegatedServicesForAccount", + Dict{String,Any}("AccountId" => AccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "ListDelegatedServicesForAccount", - Dict{String,Any}("AccountId" => AccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_delegated_services_for_account( AccountId, params::AbstractDict{String}; @@ -2021,11 +1946,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_handshakes_for_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +list_handshakes_for_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "ListHandshakesForAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_handshakes_for_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2074,15 +1998,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_handshakes_for_organization(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +list_handshakes_for_organization(; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "ListHandshakesForOrganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_handshakes_for_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2129,16 +2050,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_organizational_units_for_parent( +list_organizational_units_for_parent( ParentId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "ListOrganizationalUnitsForParent", + Dict{String,Any}("ParentId" => ParentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "ListOrganizationalUnitsForParent", - Dict{String,Any}("ParentId" => ParentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_organizational_units_for_parent( ParentId, params::AbstractDict{String}; @@ -2191,14 +2110,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_parents(ChildId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "ListParents", - Dict{String,Any}("ChildId" => ChildId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_parents(ChildId; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "ListParents", + Dict{String,Any}("ChildId" => ChildId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_parents( ChildId, params::AbstractDict{String}; @@ -2244,14 +2161,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_policies(Filter; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "ListPolicies", - Dict{String,Any}("Filter" => Filter); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_policies(Filter; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "ListPolicies", + Dict{String,Any}("Filter" => Filter); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_policies( Filter, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2303,16 +2218,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_policies_for_target( +list_policies_for_target( Filter, TargetId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "ListPoliciesForTarget", + Dict{String,Any}("Filter" => Filter, "TargetId" => TargetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "ListPoliciesForTarget", - Dict{String,Any}("Filter" => Filter, "TargetId" => TargetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_policies_for_target( Filter, TargetId, @@ -2361,11 +2274,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_roots(; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "ListRoots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_roots(; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations("ListRoots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_roots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2399,16 +2309,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_tags_for_resource( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +list_tags_for_resource(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "ListTagsForResource", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceId, params::AbstractDict{String}; @@ -2456,16 +2363,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_targets_for_policy( - PolicyId; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +list_targets_for_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "ListTargetsForPolicy", Dict{String,Any}("PolicyId" => PolicyId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_targets_for_policy( PolicyId, params::AbstractDict{String}; @@ -2508,23 +2412,21 @@ organization's management account. lowercase letters or digits. """ -function move_account( +move_account( AccountId, DestinationParentId, SourceParentId; aws_config::AbstractAWSConfig=current_aws_config(), +) = organizations( + "MoveAccount", + Dict{String,Any}( + "AccountId" => AccountId, + "DestinationParentId" => DestinationParentId, + "SourceParentId" => SourceParentId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "MoveAccount", - Dict{String,Any}( - "AccountId" => AccountId, - "DestinationParentId" => DestinationParentId, - "SourceParentId" => SourceParentId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function move_account( AccountId, DestinationParentId, @@ -2572,14 +2474,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys one of the tags is not valid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created. """ -function put_resource_policy(Content; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +put_resource_policy(Content; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "PutResourcePolicy", Dict{String,Any}("Content" => Content); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_resource_policy( Content, params::AbstractDict{String}; @@ -2613,16 +2514,14 @@ from the organization's management account. you want to make the member account a delegated administrator. """ -function register_delegated_administrator( +register_delegated_administrator( AccountId, ServicePrincipal; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "RegisterDelegatedAdministrator", + Dict{String,Any}("AccountId" => AccountId, "ServicePrincipal" => ServicePrincipal); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "RegisterDelegatedAdministrator", - Dict{String,Any}("AccountId" => AccountId, "ServicePrincipal" => ServicePrincipal); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_delegated_administrator( AccountId, ServicePrincipal, @@ -2673,16 +2572,14 @@ deleted. Amazon Web Services accounts outside of an organization do not support digits. """ -function remove_account_from_organization( +remove_account_from_organization( AccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "RemoveAccountFromOrganization", + Dict{String,Any}("AccountId" => AccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "RemoveAccountFromOrganization", - Dict{String,Any}("AccountId" => AccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_account_from_organization( AccountId, params::AbstractDict{String}; @@ -2721,14 +2618,13 @@ for an Amazon Web Services service. number of tags for a resource, then the entire request fails. """ -function tag_resource(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( +tag_resource(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "TagResource", Dict{String,Any}("ResourceId" => ResourceId, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceId, Tags, @@ -2767,16 +2663,13 @@ administrator for an Amazon Web Services service. - `tag_keys`: The list of keys for tags to remove from the specified resource. """ -function untag_resource( - ResourceId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return organizations( +untag_resource(ResourceId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + organizations( "UntagResource", Dict{String,Any}("ResourceId" => ResourceId, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceId, TagKeys, @@ -2818,16 +2711,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to validate this parameter is a string of any of the characters in the ASCII character range. """ -function update_organizational_unit( +update_organizational_unit( OrganizationalUnitId; aws_config::AbstractAWSConfig=current_aws_config() +) = organizations( + "UpdateOrganizationalUnit", + Dict{String,Any}("OrganizationalUnitId" => OrganizationalUnitId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return organizations( - "UpdateOrganizationalUnit", - Dict{String,Any}("OrganizationalUnitId" => OrganizationalUnitId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_organizational_unit( OrganizationalUnitId, params::AbstractDict{String}; @@ -2872,14 +2763,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: If provided, the new name for the policy. The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range. """ -function update_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) - return organizations( - "UpdatePolicy", - Dict{String,Any}("PolicyId" => PolicyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_policy(PolicyId; aws_config::AbstractAWSConfig=current_aws_config()) = organizations( + "UpdatePolicy", + Dict{String,Any}("PolicyId" => PolicyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_policy( PolicyId, params::AbstractDict{String}; diff --git a/src/services/osis.jl b/src/services/osis.jl index d236f5cb4..506a4f7be 100644 --- a/src/services/osis.jl +++ b/src/services/osis.jl @@ -31,26 +31,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. """ -function create_pipeline( +create_pipeline( MaxUnits, MinUnits, PipelineConfigurationBody, PipelineName; aws_config::AbstractAWSConfig=current_aws_config(), +) = osis( + "POST", + "/2022-01-01/osis/createPipeline", + Dict{String,Any}( + "MaxUnits" => MaxUnits, + "MinUnits" => MinUnits, + "PipelineConfigurationBody" => PipelineConfigurationBody, + "PipelineName" => PipelineName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return osis( - "POST", - "/2022-01-01/osis/createPipeline", - Dict{String,Any}( - "MaxUnits" => MaxUnits, - "MinUnits" => MinUnits, - "PipelineConfigurationBody" => PipelineConfigurationBody, - "PipelineName" => PipelineName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pipeline( MaxUnits, MinUnits, @@ -90,14 +88,12 @@ OpenSearch Ingestion pipelines. - `pipeline_name`: The name of the pipeline to delete. """ -function delete_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "DELETE", - "/2022-01-01/osis/deletePipeline/$(PipelineName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "DELETE", + "/2022-01-01/osis/deletePipeline/$(PipelineName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_pipeline( PipelineName, params::AbstractDict{String}; @@ -122,14 +118,12 @@ Retrieves information about an OpenSearch Ingestion pipeline. - `pipeline_name`: The name of the pipeline. """ -function get_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "GET", - "/2022-01-01/osis/getPipeline/$(PipelineName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "GET", + "/2022-01-01/osis/getPipeline/$(PipelineName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_pipeline( PipelineName, params::AbstractDict{String}; @@ -159,16 +153,13 @@ see Using blueprints to create a pipeline. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"format"`: The format format of the blueprint to retrieve. """ -function get_pipeline_blueprint( - BlueprintName; aws_config::AbstractAWSConfig=current_aws_config() -) - return osis( +get_pipeline_blueprint(BlueprintName; aws_config::AbstractAWSConfig=current_aws_config()) = + osis( "GET", "/2022-01-01/osis/getPipelineBlueprint/$(BlueprintName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_pipeline_blueprint( BlueprintName, params::AbstractDict{String}; @@ -195,16 +186,14 @@ created. For more information, see Tracking the status of pipeline creation. - `pipeline_name`: The name of the pipeline. """ -function get_pipeline_change_progress( +get_pipeline_change_progress( PipelineName; aws_config::AbstractAWSConfig=current_aws_config() +) = osis( + "GET", + "/2022-01-01/osis/getPipelineChangeProgress/$(PipelineName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return osis( - "GET", - "/2022-01-01/osis/getPipelineChangeProgress/$(PipelineName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_pipeline_change_progress( PipelineName, params::AbstractDict{String}; @@ -227,14 +216,12 @@ Retrieves a list of all available blueprints for Data Prepper. For more informat Using blueprints to create a pipeline. """ -function list_pipeline_blueprints(; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "POST", - "/2022-01-01/osis/listPipelineBlueprints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_pipeline_blueprints(; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "POST", + "/2022-01-01/osis/listPipelineBlueprints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_pipeline_blueprints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -262,14 +249,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the returned nextToken in subsequent ListPipelines operations, which returns results in the next page. """ -function list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "GET", - "/2022-01-01/osis/listPipelines"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "GET", + "/2022-01-01/osis/listPipelines"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -293,15 +278,13 @@ information, see Tagging Amazon OpenSearch Ingestion pipelines. - `arn`: The Amazon Resource Name (ARN) of the pipeline to retrieve tags for. """ -function list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "GET", - "/2022-01-01/osis/listTagsForResource/", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags_for_resource(arn; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "GET", + "/2022-01-01/osis/listTagsForResource/", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags_for_resource( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -325,14 +308,12 @@ Ingestion pipeline. - `pipeline_name`: The name of the pipeline to start. """ -function start_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "PUT", - "/2022-01-01/osis/startPipeline/$(PipelineName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "PUT", + "/2022-01-01/osis/startPipeline/$(PipelineName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_pipeline( PipelineName, params::AbstractDict{String}; @@ -358,14 +339,12 @@ Ingestion pipeline. - `pipeline_name`: The name of the pipeline to stop. """ -function stop_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "PUT", - "/2022-01-01/osis/stopPipeline/$(PipelineName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "PUT", + "/2022-01-01/osis/stopPipeline/$(PipelineName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_pipeline( PipelineName, params::AbstractDict{String}; @@ -392,15 +371,13 @@ Ingestion pipelines. - `arn`: The Amazon Resource Name (ARN) of the pipeline to tag. """ -function tag_resource(Tags, arn; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "POST", - "/2022-01-01/osis/tagResource/", - Dict{String,Any}("Tags" => Tags, "arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(Tags, arn; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "POST", + "/2022-01-01/osis/tagResource/", + Dict{String,Any}("Tags" => Tags, "arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( Tags, arn, @@ -430,15 +407,13 @@ Tagging Amazon OpenSearch Ingestion pipelines. - `arn`: The Amazon Resource Name (ARN) of the pipeline to remove tags from. """ -function untag_resource(TagKeys, arn; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "POST", - "/2022-01-01/osis/untagResource/", - Dict{String,Any}("TagKeys" => TagKeys, "arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_resource(TagKeys, arn; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "POST", + "/2022-01-01/osis/untagResource/", + Dict{String,Any}("TagKeys" => TagKeys, "arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_resource( TagKeys, arn, @@ -478,14 +453,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with n. """ -function update_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return osis( - "PUT", - "/2022-01-01/osis/updatePipeline/$(PipelineName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = osis( + "PUT", + "/2022-01-01/osis/updatePipeline/$(PipelineName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_pipeline( PipelineName, params::AbstractDict{String}; @@ -513,17 +486,15 @@ For more information, see Creating Amazon OpenSearch Ingestion pipelines. configuration as a string, each new line must be escaped with n. """ -function validate_pipeline( +validate_pipeline( PipelineConfigurationBody; aws_config::AbstractAWSConfig=current_aws_config() +) = osis( + "POST", + "/2022-01-01/osis/validatePipeline", + Dict{String,Any}("PipelineConfigurationBody" => PipelineConfigurationBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return osis( - "POST", - "/2022-01-01/osis/validatePipeline", - Dict{String,Any}("PipelineConfigurationBody" => PipelineConfigurationBody); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_pipeline( PipelineConfigurationBody, params::AbstractDict{String}; diff --git a/src/services/outposts.jl b/src/services/outposts.jl index 5ba42fda1..83479db49 100644 --- a/src/services/outposts.jl +++ b/src/services/outposts.jl @@ -16,16 +16,14 @@ Cancels the capacity task. cancel. """ -function cancel_capacity_task( +cancel_capacity_task( CapacityTaskId, OutpostId; aws_config::AbstractAWSConfig=current_aws_config() +) = outposts( + "POST", + "/outposts/$(OutpostId)/capacity/$(CapacityTaskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return outposts( - "POST", - "/outposts/$(OutpostId)/capacity/$(CapacityTaskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_capacity_task( CapacityTaskId, OutpostId, @@ -51,14 +49,12 @@ Cancels the specified order for an Outpost. - `order_id`: The ID of the order. """ -function cancel_order(OrderId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "POST", - "/orders/$(OrderId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_order(OrderId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "POST", + "/orders/$(OrderId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_order( OrderId, params::AbstractDict{String}; @@ -88,24 +84,22 @@ Creates an order for an Outpost. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PaymentTerm"`: The payment terms. """ -function create_order( +create_order( LineItems, OutpostIdentifier, PaymentOption; aws_config::AbstractAWSConfig=current_aws_config(), +) = outposts( + "POST", + "/orders", + Dict{String,Any}( + "LineItems" => LineItems, + "OutpostIdentifier" => OutpostIdentifier, + "PaymentOption" => PaymentOption, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return outposts( - "POST", - "/orders", - Dict{String,Any}( - "LineItems" => LineItems, - "OutpostIdentifier" => OutpostIdentifier, - "PaymentOption" => PaymentOption, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_order( LineItems, OutpostIdentifier, @@ -150,15 +144,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SupportedHardwareType"`: The type of hardware for this Outpost. - `"Tags"`: The tags to apply to the Outpost. """ -function create_outpost(Name, SiteId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "POST", - "/outposts", - Dict{String,Any}("Name" => Name, "SiteId" => SiteId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_outpost(Name, SiteId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "POST", + "/outposts", + Dict{String,Any}("Name" => Name, "SiteId" => SiteId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_outpost( Name, SiteId, @@ -200,15 +192,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the operating address. - `"Tags"`: The tags to apply to a site. """ -function create_site(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "POST", - "/sites", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_site(Name; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "POST", + "/sites", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_site( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -231,14 +221,12 @@ Deletes the specified Outpost. - `outpost_id`: The ID or ARN of the Outpost. """ -function delete_outpost(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "DELETE", - "/outposts/$(OutpostId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_outpost(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "DELETE", + "/outposts/$(OutpostId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_outpost( OutpostId, params::AbstractDict{String}; @@ -263,11 +251,9 @@ Deletes the specified site. - `site_id`: The ID or the Amazon Resource Name (ARN) of the site. """ -function delete_site(SiteId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "DELETE", "/sites/$(SiteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_site(SiteId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "DELETE", "/sites/$(SiteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_site( SiteId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -291,16 +277,14 @@ Gets details of the specified capacity task. - `outpost_id`: ID or ARN of the Outpost associated with the specified capacity task. """ -function get_capacity_task( +get_capacity_task( CapacityTaskId, OutpostId; aws_config::AbstractAWSConfig=current_aws_config() +) = outposts( + "GET", + "/outposts/$(OutpostId)/capacity/$(CapacityTaskId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return outposts( - "GET", - "/outposts/$(OutpostId)/capacity/$(CapacityTaskId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_capacity_task( CapacityTaskId, OutpostId, @@ -326,14 +310,13 @@ Gets information about the specified catalog item. - `catalog_item_id`: The ID of the catalog item. """ -function get_catalog_item(CatalogItemId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( +get_catalog_item(CatalogItemId; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts( "GET", "/catalog/item/$(CatalogItemId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_catalog_item( CatalogItemId, params::AbstractDict{String}; @@ -363,14 +346,12 @@ Services Outposts User Guide. - `connection_id`: The ID of the connection. """ -function get_connection(ConnectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", - "/connections/$(ConnectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_connection(ConnectionId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "GET", + "/connections/$(ConnectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_connection( ConnectionId, params::AbstractDict{String}; @@ -395,11 +376,9 @@ Gets information about the specified order. - `order_id`: The ID of the order. """ -function get_order(OrderId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", "/orders/$(OrderId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_order(OrderId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "GET", "/orders/$(OrderId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_order( OrderId, params::AbstractDict{String}; @@ -424,14 +403,12 @@ Gets information about the specified Outpost. - `outpost_id`: The ID or ARN of the Outpost. """ -function get_outpost(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", - "/outposts/$(OutpostId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_outpost(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "GET", + "/outposts/$(OutpostId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_outpost( OutpostId, params::AbstractDict{String}; @@ -460,16 +437,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function get_outpost_instance_types( - OutpostId; aws_config::AbstractAWSConfig=current_aws_config() -) - return outposts( +get_outpost_instance_types(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts( "GET", "/outposts/$(OutpostId)/instanceTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_outpost_instance_types( OutpostId, params::AbstractDict{String}; @@ -501,17 +475,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function get_outpost_supported_instance_types( +get_outpost_supported_instance_types( OrderId, OutpostId; aws_config::AbstractAWSConfig=current_aws_config() +) = outposts( + "GET", + "/outposts/$(OutpostId)/supportedInstanceTypes", + Dict{String,Any}("OrderId" => OrderId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return outposts( - "GET", - "/outposts/$(OutpostId)/supportedInstanceTypes", - Dict{String,Any}("OrderId" => OrderId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_outpost_supported_instance_types( OrderId, OutpostId, @@ -537,11 +509,9 @@ Gets information about the specified Outpost site. - `site_id`: The ID or the Amazon Resource Name (ARN) of the site. """ -function get_site(SiteId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", "/sites/$(SiteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_site(SiteId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "GET", "/sites/$(SiteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_site( SiteId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -565,17 +535,14 @@ end - `site_id`: The ID or the Amazon Resource Name (ARN) of the site. """ -function get_site_address( - AddressType, SiteId; aws_config::AbstractAWSConfig=current_aws_config() -) - return outposts( +get_site_address(AddressType, SiteId; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts( "GET", "/sites/$(SiteId)/address", Dict{String,Any}("AddressType" => AddressType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_site_address( AddressType, SiteId, @@ -612,14 +579,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"StatusFilter"`: Filters the results by state. """ -function list_assets(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", - "/outposts/$(OutpostId)/assets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_assets(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "GET", + "/outposts/$(OutpostId)/assets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_assets( OutpostId, params::AbstractDict{String}; @@ -652,11 +617,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"OutpostIdentifierFilter"`: Filters the results by an Outpost ID or an Outpost ARN. """ -function list_capacity_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", "/capacity/tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_capacity_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "GET", "/capacity/tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_capacity_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -686,11 +649,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"SupportedStorageFilter"`: Filters the results by storage option. """ -function list_catalog_items(; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", "/catalog/items"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_catalog_items(; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "GET", "/catalog/items"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_catalog_items( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -715,11 +676,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"OutpostIdentifierFilter"`: The ID or the Amazon Resource Name (ARN) of the Outpost. """ -function list_orders(; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", "/list-orders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_orders(; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts("GET", "/list-orders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_orders( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -750,11 +708,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function list_outposts(; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "GET", "/outposts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_outposts(; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts("GET", "/outposts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_outposts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -781,9 +736,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OperatingAddressCountryCodeFilter"`: Filters the results by country code. - `"OperatingAddressStateOrRegionFilter"`: Filters the results by state or region. """ -function list_sites(; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts("GET", "/sites"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_sites(; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts("GET", "/sites"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_sites( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -802,16 +756,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return outposts( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -844,17 +795,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan. """ -function start_capacity_task( +start_capacity_task( InstancePools, OrderId, OutpostId; aws_config::AbstractAWSConfig=current_aws_config() +) = outposts( + "POST", + "/outposts/$(OutpostId)/capacity", + Dict{String,Any}("InstancePools" => InstancePools, "OrderId" => OrderId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return outposts( - "POST", - "/outposts/$(OutpostId)/capacity", - Dict{String,Any}("InstancePools" => InstancePools, "OrderId" => OrderId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_capacity_task( InstancePools, OrderId, @@ -898,24 +847,22 @@ Amazon Web Services Outposts User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DeviceSerialNumber"`: The serial number of the dongle. """ -function start_connection( +start_connection( AssetId, ClientPublicKey, NetworkInterfaceDeviceIndex; aws_config::AbstractAWSConfig=current_aws_config(), +) = outposts( + "POST", + "/connections", + Dict{String,Any}( + "AssetId" => AssetId, + "ClientPublicKey" => ClientPublicKey, + "NetworkInterfaceDeviceIndex" => NetworkInterfaceDeviceIndex, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return outposts( - "POST", - "/connections", - Dict{String,Any}( - "AssetId" => AssetId, - "ClientPublicKey" => ClientPublicKey, - "NetworkInterfaceDeviceIndex" => NetworkInterfaceDeviceIndex, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_connection( AssetId, ClientPublicKey, @@ -953,15 +900,14 @@ Adds tags to the specified resource. - `tags`: The tags to add to the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -988,17 +934,14 @@ Removes tags from the specified resource. - `tag_keys`: The tag keys. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return outposts( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + outposts( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1029,14 +972,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: - `"SupportedHardwareType"`: The type of hardware for this Outpost. """ -function update_outpost(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "PATCH", - "/outposts/$(OutpostId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_outpost(OutpostId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "PATCH", + "/outposts/$(OutpostId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_outpost( OutpostId, params::AbstractDict{String}; @@ -1066,11 +1007,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: - `"Notes"`: Notes about a site. """ -function update_site(SiteId; aws_config::AbstractAWSConfig=current_aws_config()) - return outposts( - "PATCH", "/sites/$(SiteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_site(SiteId; aws_config::AbstractAWSConfig=current_aws_config()) = outposts( + "PATCH", "/sites/$(SiteId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_site( SiteId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1098,17 +1037,15 @@ that belong to the site have been deactivated. - `site_id`: The ID or the Amazon Resource Name (ARN) of the site. """ -function update_site_address( +update_site_address( Address, AddressType, SiteId; aws_config::AbstractAWSConfig=current_aws_config() +) = outposts( + "PUT", + "/sites/$(SiteId)/address", + Dict{String,Any}("Address" => Address, "AddressType" => AddressType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return outposts( - "PUT", - "/sites/$(SiteId)/address", - Dict{String,Any}("Address" => Address, "AddressType" => AddressType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_site_address( Address, AddressType, @@ -1178,16 +1115,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UplinkGbps"`: The uplink speed the rack should support for the connection to the Region. """ -function update_site_rack_physical_properties( +update_site_rack_physical_properties( SiteId; aws_config::AbstractAWSConfig=current_aws_config() +) = outposts( + "PATCH", + "/sites/$(SiteId)/rackPhysicalProperties"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return outposts( - "PATCH", - "/sites/$(SiteId)/rackPhysicalProperties"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_site_rack_physical_properties( SiteId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/panorama.jl b/src/services/panorama.jl index bcd8ecb63..8c4bfa874 100644 --- a/src/services/panorama.jl +++ b/src/services/panorama.jl @@ -24,22 +24,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RuntimeRoleArn"`: The ARN of a runtime role for the application instance. - `"Tags"`: Tags for the application instance. """ -function create_application_instance( +create_application_instance( DefaultRuntimeContextDevice, ManifestPayload; aws_config::AbstractAWSConfig=current_aws_config(), +) = panorama( + "POST", + "/application-instances", + Dict{String,Any}( + "DefaultRuntimeContextDevice" => DefaultRuntimeContextDevice, + "ManifestPayload" => ManifestPayload, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "POST", - "/application-instances", - Dict{String,Any}( - "DefaultRuntimeContextDevice" => DefaultRuntimeContextDevice, - "ManifestPayload" => ManifestPayload, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application_instance( DefaultRuntimeContextDevice, ManifestPayload, @@ -78,17 +76,15 @@ Creates a job to run on a device. A job can update a device's software or reboot Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DeviceJobConfig"`: Configuration settings for a software update job. """ -function create_job_for_devices( +create_job_for_devices( DeviceIds, JobType; aws_config::AbstractAWSConfig=current_aws_config() +) = panorama( + "POST", + "/jobs", + Dict{String,Any}("DeviceIds" => DeviceIds, "JobType" => JobType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "POST", - "/jobs", - Dict{String,Any}("DeviceIds" => DeviceIds, "JobType" => JobType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_job_for_devices( DeviceIds, JobType, @@ -128,28 +124,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"JobTags"`: Tags for the job. - `"NodeDescription"`: A description for the node. """ -function create_node_from_template_job( +create_node_from_template_job( NodeName, OutputPackageName, OutputPackageVersion, TemplateParameters, TemplateType; aws_config::AbstractAWSConfig=current_aws_config(), +) = panorama( + "POST", + "/packages/template-job", + Dict{String,Any}( + "NodeName" => NodeName, + "OutputPackageName" => OutputPackageName, + "OutputPackageVersion" => OutputPackageVersion, + "TemplateParameters" => TemplateParameters, + "TemplateType" => TemplateType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "POST", - "/packages/template-job", - Dict{String,Any}( - "NodeName" => NodeName, - "OutputPackageName" => OutputPackageName, - "OutputPackageVersion" => OutputPackageVersion, - "TemplateParameters" => TemplateParameters, - "TemplateType" => TemplateType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_node_from_template_job( NodeName, OutputPackageName, @@ -193,15 +187,13 @@ Creates a package and storage location in an Amazon S3 access point. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: Tags for the package. """ -function create_package(PackageName; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "POST", - "/packages", - Dict{String,Any}("PackageName" => PackageName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_package(PackageName; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "POST", + "/packages", + Dict{String,Any}("PackageName" => PackageName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_package( PackageName, params::AbstractDict{String}; @@ -234,26 +226,24 @@ Imports a node package. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"JobTags"`: Tags for the package import job. """ -function create_package_import_job( +create_package_import_job( ClientToken, InputConfig, JobType, OutputConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = panorama( + "POST", + "/packages/import-jobs", + Dict{String,Any}( + "ClientToken" => ClientToken, + "InputConfig" => InputConfig, + "JobType" => JobType, + "OutputConfig" => OutputConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "POST", - "/packages/import-jobs", - Dict{String,Any}( - "ClientToken" => ClientToken, - "InputConfig" => InputConfig, - "JobType" => JobType, - "OutputConfig" => OutputConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_package_import_job( ClientToken, InputConfig, @@ -292,14 +282,12 @@ Deletes a device. - `device_id`: The device's ID. """ -function delete_device(DeviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "DELETE", - "/devices/$(DeviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_device(DeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "DELETE", + "/devices/$(DeviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_device( DeviceId, params::AbstractDict{String}; @@ -329,14 +317,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ForceDelete"`: Delete the package even if it has artifacts stored in its access point. Deletes the package's artifacts from Amazon S3. """ -function delete_package(PackageId; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "DELETE", - "/packages/$(PackageId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_package(PackageId; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "DELETE", + "/packages/$(PackageId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_package( PackageId, params::AbstractDict{String}; @@ -368,19 +354,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UpdatedLatestPatchVersion"`: If the version was marked latest, the new version to maker as latest. """ -function deregister_package_version( +deregister_package_version( PackageId, PackageVersion, PatchVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = panorama( + "DELETE", + "/packages/$(PackageId)/versions/$(PackageVersion)/patch/$(PatchVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "DELETE", - "/packages/$(PackageId)/versions/$(PackageVersion)/patch/$(PatchVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_package_version( PackageId, PackageVersion, @@ -407,16 +391,14 @@ Returns information about an application instance on a device. - `application_instance_id`: The application instance's ID. """ -function describe_application_instance( +describe_application_instance( ApplicationInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = panorama( + "GET", + "/application-instances/$(ApplicationInstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "GET", - "/application-instances/$(ApplicationInstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application_instance( ApplicationInstanceId, params::AbstractDict{String}; @@ -441,16 +423,14 @@ Returns information about an application instance's configuration manifest. - `application_instance_id`: The application instance's ID. """ -function describe_application_instance_details( +describe_application_instance_details( ApplicationInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = panorama( + "GET", + "/application-instances/$(ApplicationInstanceId)/details"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "GET", - "/application-instances/$(ApplicationInstanceId)/details"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application_instance_details( ApplicationInstanceId, params::AbstractDict{String}; @@ -475,14 +455,12 @@ Returns information about a device. - `device_id`: The device's ID. """ -function describe_device(DeviceId; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "GET", - "/devices/$(DeviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_device(DeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "GET", + "/devices/$(DeviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_device( DeviceId, params::AbstractDict{String}; @@ -507,11 +485,9 @@ Returns information about a device job. - `job_id`: The job's ID. """ -function describe_device_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "GET", "/jobs/$(JobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_device_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "GET", "/jobs/$(JobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_device_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -537,11 +513,9 @@ Returns information about a node. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"OwnerAccount"`: The account ID of the node's owner. """ -function describe_node(NodeId; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "GET", "/nodes/$(NodeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_node(NodeId; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "GET", "/nodes/$(NodeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_node( NodeId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -564,16 +538,13 @@ Returns information about a job to create a camera stream node. - `job_id`: The job's ID. """ -function describe_node_from_template_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return panorama( +describe_node_from_template_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama( "GET", "/packages/template-job/$(JobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_node_from_template_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -596,14 +567,12 @@ Returns information about a package. - `package_id`: The package's ID. """ -function describe_package(PackageId; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "GET", - "/packages/metadata/$(PackageId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_package(PackageId; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "GET", + "/packages/metadata/$(PackageId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_package( PackageId, params::AbstractDict{String}; @@ -628,16 +597,13 @@ Returns information about a package import job. - `job_id`: The job's ID. """ -function describe_package_import_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return panorama( +describe_package_import_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama( "GET", "/packages/import-jobs/$(JobId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_package_import_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -665,16 +631,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OwnerAccount"`: The version's owner account. - `"PatchVersion"`: The version's patch version. """ -function describe_package_version( +describe_package_version( PackageId, PackageVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = panorama( + "GET", + "/packages/metadata/$(PackageId)/versions/$(PackageVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "GET", - "/packages/metadata/$(PackageId)/versions/$(PackageVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_package_version( PackageId, PackageVersion, @@ -706,16 +670,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_application_instance_dependencies( +list_application_instance_dependencies( ApplicationInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = panorama( + "GET", + "/application-instances/$(ApplicationInstanceId)/package-dependencies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "GET", - "/application-instances/$(ApplicationInstanceId)/package-dependencies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_instance_dependencies( ApplicationInstanceId, params::AbstractDict{String}; @@ -745,16 +707,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_application_instance_node_instances( +list_application_instance_node_instances( ApplicationInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = panorama( + "GET", + "/application-instances/$(ApplicationInstanceId)/node-instances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "GET", - "/application-instances/$(ApplicationInstanceId)/node-instances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_instance_node_instances( ApplicationInstanceId, params::AbstractDict{String}; @@ -784,14 +744,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys page of results. - `"statusFilter"`: Only include instances with a specific status. """ -function list_application_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "GET", - "/application-instances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_application_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "GET", + "/application-instances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_application_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -821,11 +779,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sorting order for the returned list. SortOrder is DESCENDING by default based on CREATED_TIME. Otherwise, SortOrder is ASCENDING. """ -function list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "GET", "/devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama("GET", "/devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -847,9 +802,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_devices_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama("GET", "/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_devices_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama("GET", "/jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_devices_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -871,14 +825,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_node_from_template_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( +list_node_from_template_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama( "GET", "/packages/template-job"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_node_from_template_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -908,9 +861,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"packageVersion"`: Search for nodes by version. - `"patchVersion"`: Search for nodes by patch version. """ -function list_nodes(; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama("GET", "/nodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_nodes(; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama("GET", "/nodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_nodes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -932,14 +884,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_package_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "GET", - "/packages/import-jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_package_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "GET", + "/packages/import-jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_package_import_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -964,11 +914,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_packages(; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "GET", "/packages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_packages(; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama("GET", "/packages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_packages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -987,16 +934,13 @@ Returns a list of tags for a resource. - `resource_arn`: The resource's ARN. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return panorama( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1030,15 +974,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NetworkingConfiguration"`: A networking configuration for the device. - `"Tags"`: Tags for the device. """ -function provision_device(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( - "POST", - "/devices", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +provision_device(Name; aws_config::AbstractAWSConfig=current_aws_config()) = panorama( + "POST", + "/devices", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function provision_device( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1067,19 +1009,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MarkLatest"`: Whether to mark the new version as the latest version. - `"OwnerAccount"`: An owner account. """ -function register_package_version( +register_package_version( PackageId, PackageVersion, PatchVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = panorama( + "PUT", + "/packages/$(PackageId)/versions/$(PackageVersion)/patch/$(PatchVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "PUT", - "/packages/$(PackageId)/versions/$(PackageVersion)/patch/$(PatchVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_package_version( PackageId, PackageVersion, @@ -1106,16 +1046,14 @@ Removes an application instance. - `application_instance_id`: An application instance ID. """ -function remove_application_instance( +remove_application_instance( ApplicationInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = panorama( + "DELETE", + "/application-instances/$(ApplicationInstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "DELETE", - "/application-instances/$(ApplicationInstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_application_instance( ApplicationInstanceId, params::AbstractDict{String}; @@ -1141,17 +1079,15 @@ Signal camera nodes to stop or resume. - `node_signals`: A list of signals. """ -function signal_application_instance_node_instances( +signal_application_instance_node_instances( ApplicationInstanceId, NodeSignals; aws_config::AbstractAWSConfig=current_aws_config() +) = panorama( + "PUT", + "/application-instances/$(ApplicationInstanceId)/node-signals", + Dict{String,Any}("NodeSignals" => NodeSignals); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return panorama( - "PUT", - "/application-instances/$(ApplicationInstanceId)/node-signals", - Dict{String,Any}("NodeSignals" => NodeSignals); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function signal_application_instance_node_instances( ApplicationInstanceId, NodeSignals, @@ -1180,15 +1116,14 @@ Tags a resource. - `tags`: Tags for the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return panorama( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1215,17 +1150,14 @@ Removes tags from a resource. - `tag_keys`: Tag keys to remove. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return panorama( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1254,16 +1186,13 @@ Updates a device's metadata. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description for the device. """ -function update_device_metadata( - DeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return panorama( +update_device_metadata(DeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + panorama( "PUT", "/devices/$(DeviceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_device_metadata( DeviceId, params::AbstractDict{String}; diff --git a/src/services/payment_cryptography.jl b/src/services/payment_cryptography.jl index cfc5db821..9d6d1693b 100644 --- a/src/services/payment_cryptography.jl +++ b/src/services/payment_cryptography.jl @@ -32,14 +32,13 @@ UpdateAlias Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"KeyArn"`: The KeyARN of the key to associate with the alias. """ -function create_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +create_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "CreateAlias", Dict{String,Any}("AliasName" => AliasName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_alias( AliasName, params::AbstractDict{String}; @@ -104,16 +103,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys other output. Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key. """ -function create_key( - Exportable, KeyAttributes; aws_config::AbstractAWSConfig=current_aws_config() -) - return payment_cryptography( +create_key(Exportable, KeyAttributes; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "CreateKey", Dict{String,Any}("Exportable" => Exportable, "KeyAttributes" => KeyAttributes); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_key( Exportable, KeyAttributes, @@ -154,14 +150,13 @@ accounts. Related operations: CreateAlias GetAlias ListAliases alias/ExampleAlias. """ -function delete_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +delete_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "DeleteAlias", Dict{String,Any}("AliasName" => AliasName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_alias( AliasName, params::AbstractDict{String}; @@ -203,14 +198,13 @@ accounts. Related operations: RestoreKey StartKeyUsage StopKeyUsage Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DeleteKeyInDays"`: The waiting period for key deletion. The default value is seven days. """ -function delete_key(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +delete_key(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "DeleteKey", Dict{String,Any}("KeyIdentifier" => KeyIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_key( KeyIdentifier, params::AbstractDict{String}; @@ -328,18 +322,16 @@ GetParametersForExport ImportKey Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ExportAttributes"`: The attributes for IPEK generation during export. """ -function export_key( +export_key( ExportKeyIdentifier, KeyMaterial; aws_config::AbstractAWSConfig=current_aws_config() +) = payment_cryptography( + "ExportKey", + Dict{String,Any}( + "ExportKeyIdentifier" => ExportKeyIdentifier, "KeyMaterial" => KeyMaterial + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography( - "ExportKey", - Dict{String,Any}( - "ExportKeyIdentifier" => ExportKeyIdentifier, "KeyMaterial" => KeyMaterial - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_key( ExportKeyIdentifier, KeyMaterial, @@ -376,14 +368,13 @@ UpdateAlias - `alias_name`: The alias of the Amazon Web Services Payment Cryptography key. """ -function get_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +get_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "GetAlias", Dict{String,Any}("AliasName" => AliasName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_alias( AliasName, params::AbstractDict{String}; @@ -412,14 +403,13 @@ operation can't be used across different Amazon Web Services accounts. Related - `key_identifier`: The KeyARN of the Amazon Web Services Payment Cryptography key. """ -function get_key(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +get_key(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "GetKey", Dict{String,Any}("KeyIdentifier" => KeyIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_key( KeyIdentifier, params::AbstractDict{String}; @@ -456,19 +446,17 @@ accounts. Related operations: ExportKey GetParametersForImport the only signing key algorithm allowed. """ -function get_parameters_for_export( +get_parameters_for_export( KeyMaterialType, SigningKeyAlgorithm; aws_config::AbstractAWSConfig=current_aws_config() +) = payment_cryptography( + "GetParametersForExport", + Dict{String,Any}( + "KeyMaterialType" => KeyMaterialType, + "SigningKeyAlgorithm" => SigningKeyAlgorithm, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography( - "GetParametersForExport", - Dict{String,Any}( - "KeyMaterialType" => KeyMaterialType, - "SigningKeyAlgorithm" => SigningKeyAlgorithm, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_parameters_for_export( KeyMaterialType, SigningKeyAlgorithm, @@ -516,21 +504,19 @@ GetParametersForExport ImportKey RSA_4096 are the allowed algorithms for RSA WrappedKeyCryptogram import. """ -function get_parameters_for_import( +get_parameters_for_import( KeyMaterialType, WrappingKeyAlgorithm; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography( + "GetParametersForImport", + Dict{String,Any}( + "KeyMaterialType" => KeyMaterialType, + "WrappingKeyAlgorithm" => WrappingKeyAlgorithm, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography( - "GetParametersForImport", - Dict{String,Any}( - "KeyMaterialType" => KeyMaterialType, - "WrappingKeyAlgorithm" => WrappingKeyAlgorithm, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_parameters_for_import( KeyMaterialType, WrappingKeyAlgorithm, @@ -571,16 +557,14 @@ accounts. - `key_identifier`: The KeyARN of the asymmetric key pair. """ -function get_public_key_certificate( +get_public_key_certificate( KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = payment_cryptography( + "GetPublicKeyCertificate", + Dict{String,Any}("KeyIdentifier" => KeyIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography( - "GetPublicKeyCertificate", - Dict{String,Any}("KeyIdentifier" => KeyIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_public_key_certificate( KeyIdentifier, params::AbstractDict{String}; @@ -708,14 +692,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key. """ -function import_key(KeyMaterial; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +import_key(KeyMaterial; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "ImportKey", Dict{String,Any}("KeyMaterial" => KeyMaterial); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function import_key( KeyMaterial, params::AbstractDict{String}; @@ -757,11 +740,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with truncated results. Set it to the value of NextToken from the truncated response you just received. """ -function list_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( - "ListAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) = payment_cryptography( + "ListAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_aliases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -795,11 +776,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with truncated results. Set it to the value of NextToken from the truncated response you just received. """ -function list_keys(; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( - "ListKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography("ListKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_keys( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -834,16 +812,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with truncated results. Set it to the value of NextToken from the truncated response you just received. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return payment_cryptography( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -876,14 +851,13 @@ StartKeyUsage StopKeyUsage Cryptography. """ -function restore_key(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +restore_key(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "RestoreKey", Dict{String,Any}("KeyIdentifier" => KeyIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_key( KeyIdentifier, params::AbstractDict{String}; @@ -912,14 +886,13 @@ operations: StopKeyUsage - `key_identifier`: The KeyArn of the key. """ -function start_key_usage(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +start_key_usage(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "StartKeyUsage", Dict{String,Any}("KeyIdentifier" => KeyIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_key_usage( KeyIdentifier, params::AbstractDict{String}; @@ -949,14 +922,13 @@ accounts. Related operations: DeleteKey StartKeyUsage - `key_identifier`: The KeyArn of the key. """ -function stop_key_usage(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +stop_key_usage(KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "StopKeyUsage", Dict{String,Any}("KeyIdentifier" => KeyIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_key_usage( KeyIdentifier, params::AbstractDict{String}; @@ -998,14 +970,13 @@ Services accounts. Related operations: ListTagsForResource UntagResourc displayed in plaintext in CloudTrail logs and other output. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1043,16 +1014,13 @@ accounts. Related operations: ListTagsForResource TagResource operation succeeded, use the ListTagsForResource operation. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return payment_cryptography( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1092,14 +1060,13 @@ Web Services accounts. Related operations: CreateAlias DeleteAlias Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"KeyArn"`: The KeyARN for the key that you are updating or removing from the alias. """ -function update_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) - return payment_cryptography( +update_alias(AliasName; aws_config::AbstractAWSConfig=current_aws_config()) = + payment_cryptography( "UpdateAlias", Dict{String,Any}("AliasName" => AliasName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_alias( AliasName, params::AbstractDict{String}; diff --git a/src/services/payment_cryptography_data.jl b/src/services/payment_cryptography_data.jl index 4756c1b16..d55e8c35c 100644 --- a/src/services/payment_cryptography_data.jl +++ b/src/services/payment_cryptography_data.jl @@ -32,25 +32,29 @@ operations: EncryptData GetPublicCertificate ImportKey - `cipher_text`: The ciphertext to decrypt. - `decryption_attributes`: The encryption key type and attributes for ciphertext decryption. - `key_identifier`: The keyARN of the encryption key that Amazon Web Services Payment - Cryptography uses for ciphertext decryption. + Cryptography uses for ciphertext decryption. When a WrappedKeyBlock is provided, this value + will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to + perform the operation. +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"WrappedKey"`: The WrappedKeyBlock containing the encryption key for ciphertext + decryption. """ -function decrypt_data( +decrypt_data( CipherText, DecryptionAttributes, KeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/keys/$(KeyIdentifier)/decrypt", + Dict{String,Any}( + "CipherText" => CipherText, "DecryptionAttributes" => DecryptionAttributes + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/keys/$(KeyIdentifier)/decrypt", - Dict{String,Any}( - "CipherText" => CipherText, "DecryptionAttributes" => DecryptionAttributes - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function decrypt_data( CipherText, DecryptionAttributes, @@ -106,29 +110,33 @@ ImportKey ReEncryptData # Arguments - `encryption_attributes`: The encryption key type and attributes for plaintext encryption. - `key_identifier`: The keyARN of the encryption key that Amazon Web Services Payment - Cryptography uses for plaintext encryption. + Cryptography uses for plaintext encryption. When a WrappedKeyBlock is provided, this value + will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to + perform the operation. - `plain_text`: The plaintext to be encrypted. For encryption using asymmetric keys, plaintext data length is constrained by encryption key strength that you define in KeyAlgorithm and padding type that you define in AsymmetricEncryptionAttributes. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide. +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"WrappedKey"`: The WrappedKeyBlock containing the encryption key for plaintext + encryption. """ -function encrypt_data( +encrypt_data( EncryptionAttributes, KeyIdentifier, PlainText; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/keys/$(KeyIdentifier)/encrypt", + Dict{String,Any}( + "EncryptionAttributes" => EncryptionAttributes, "PlainText" => PlainText + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/keys/$(KeyIdentifier)/encrypt", - Dict{String,Any}( - "EncryptionAttributes" => EncryptionAttributes, "PlainText" => PlainText - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function encrypt_data( EncryptionAttributes, KeyIdentifier, @@ -185,24 +193,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ValidationDataLength"`: The length of the CVV or CSC to be generated. The default value is 3. """ -function generate_card_validation_data( +generate_card_validation_data( GenerationAttributes, KeyIdentifier, PrimaryAccountNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/cardvalidationdata/generate", + Dict{String,Any}( + "GenerationAttributes" => GenerationAttributes, + "KeyIdentifier" => KeyIdentifier, + "PrimaryAccountNumber" => PrimaryAccountNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/cardvalidationdata/generate", - Dict{String,Any}( - "GenerationAttributes" => GenerationAttributes, - "KeyIdentifier" => KeyIdentifier, - "PrimaryAccountNumber" => PrimaryAccountNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_card_validation_data( GenerationAttributes, KeyIdentifier, @@ -259,24 +265,22 @@ Services accounts. Related operations: VerifyMac Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MacLength"`: The length of a MAC under generation. """ -function generate_mac( +generate_mac( GenerationAttributes, KeyIdentifier, MessageData; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/mac/generate", + Dict{String,Any}( + "GenerationAttributes" => GenerationAttributes, + "KeyIdentifier" => KeyIdentifier, + "MessageData" => MessageData, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/mac/generate", - Dict{String,Any}( - "GenerationAttributes" => GenerationAttributes, - "KeyIdentifier" => KeyIdentifier, - "MessageData" => MessageData, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_mac( GenerationAttributes, KeyIdentifier, @@ -340,28 +344,26 @@ Services accounts. Related operations: GenerateCardValidationData Trans Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PinDataLength"`: The length of PIN under generation. """ -function generate_pin_data( +generate_pin_data( EncryptionKeyIdentifier, GenerationAttributes, GenerationKeyIdentifier, PinBlockFormat, PrimaryAccountNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/pindata/generate", + Dict{String,Any}( + "EncryptionKeyIdentifier" => EncryptionKeyIdentifier, + "GenerationAttributes" => GenerationAttributes, + "GenerationKeyIdentifier" => GenerationKeyIdentifier, + "PinBlockFormat" => PinBlockFormat, + "PrimaryAccountNumber" => PrimaryAccountNumber, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/pindata/generate", - Dict{String,Any}( - "EncryptionKeyIdentifier" => EncryptionKeyIdentifier, - "GenerationAttributes" => GenerationAttributes, - "GenerationKeyIdentifier" => GenerationKeyIdentifier, - "PinBlockFormat" => PinBlockFormat, - "PrimaryAccountNumber" => PrimaryAccountNumber, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_pin_data( EncryptionKeyIdentifier, GenerationAttributes, @@ -396,54 +398,57 @@ end re_encrypt_data(cipher_text, incoming_encryption_attributes, incoming_key_identifier, outgoing_encryption_attributes, outgoing_key_identifier) re_encrypt_data(cipher_text, incoming_encryption_attributes, incoming_key_identifier, outgoing_encryption_attributes, outgoing_key_identifier, params::Dict{String,<:Any}) -Re-encrypt ciphertext using DUKPT, Symmetric and Asymmetric Data Encryption Keys. You can -either generate an encryption key within Amazon Web Services Payment Cryptography by -calling CreateKey or import your own encryption key by calling ImportKey. The KeyArn for -use with this operation must be in a compatible key state with KeyModesOfUse set to -Encrypt. In asymmetric encryption, ciphertext is encrypted using public component (imported -by calling ImportKey) of the asymmetric key pair created outside of Amazon Web Services -Payment Cryptography. For symmetric and DUKPT encryption, Amazon Web Services Payment -Cryptography supports TDES and AES algorithms. For asymmetric encryption, Amazon Web -Services Payment Cryptography supports RSA. To encrypt using DUKPT, a DUKPT key must -already exist within your account with KeyModesOfUse set to DeriveKey or a new DUKPT can be -generated by calling CreateKey. For information about valid keys for this operation, see -Understanding key attributes and Key types for specific data operations in the Amazon Web -Services Payment Cryptography User Guide. Cross-account use: This operation can't be used -across different Amazon Web Services accounts. Related operations: DecryptData -EncryptData GetPublicCertificate ImportKey +Re-encrypt ciphertext using DUKPT or Symmetric data encryption keys. You can either +generate an encryption key within Amazon Web Services Payment Cryptography by calling +CreateKey or import your own encryption key by calling ImportKey. The KeyArn for use with +this operation must be in a compatible key state with KeyModesOfUse set to Encrypt. For +symmetric and DUKPT encryption, Amazon Web Services Payment Cryptography supports TDES and +AES algorithms. To encrypt using DUKPT, a DUKPT key must already exist within your account +with KeyModesOfUse set to DeriveKey or a new DUKPT can be generated by calling CreateKey. +For information about valid keys for this operation, see Understanding key attributes and +Key types for specific data operations in the Amazon Web Services Payment Cryptography User +Guide. Cross-account use: This operation can't be used across different Amazon Web +Services accounts. Related operations: DecryptData EncryptData +GetPublicCertificate ImportKey # Arguments - `cipher_text`: Ciphertext to be encrypted. The minimum allowed length is 16 bytes and maximum allowed length is 4096 bytes. - `incoming_encryption_attributes`: The attributes and values for incoming ciphertext. - `incoming_key_identifier`: The keyARN of the encryption key of incoming ciphertext data. + When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping + key. Otherwise, it is the key identifier used to perform the operation. - `outgoing_encryption_attributes`: The attributes and values for outgoing ciphertext data after encryption by Amazon Web Services Payment Cryptography. - `outgoing_key_identifier`: The keyARN of the encryption key of outgoing ciphertext data after encryption by Amazon Web Services Payment Cryptography. +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"IncomingWrappedKey"`: The WrappedKeyBlock containing the encryption key of incoming + ciphertext data. +- `"OutgoingWrappedKey"`: The WrappedKeyBlock containing the encryption key of outgoing + ciphertext data after encryption by Amazon Web Services Payment Cryptography. """ -function re_encrypt_data( +re_encrypt_data( CipherText, IncomingEncryptionAttributes, IncomingKeyIdentifier, OutgoingEncryptionAttributes, OutgoingKeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/keys/$(IncomingKeyIdentifier)/reencrypt", + Dict{String,Any}( + "CipherText" => CipherText, + "IncomingEncryptionAttributes" => IncomingEncryptionAttributes, + "OutgoingEncryptionAttributes" => OutgoingEncryptionAttributes, + "OutgoingKeyIdentifier" => OutgoingKeyIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/keys/$(IncomingKeyIdentifier)/reencrypt", - Dict{String,Any}( - "CipherText" => CipherText, - "IncomingEncryptionAttributes" => IncomingEncryptionAttributes, - "OutgoingEncryptionAttributes" => OutgoingEncryptionAttributes, - "OutgoingKeyIdentifier" => OutgoingKeyIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function re_encrypt_data( CipherText, IncomingEncryptionAttributes, @@ -500,7 +505,9 @@ operations: GeneratePinData VerifyPinData - `encrypted_pin_block`: The encrypted PIN block data that Amazon Web Services Payment Cryptography translates. - `incoming_key_identifier`: The keyARN of the encryption key under which incoming PIN - block data is encrypted. This key type can be PEK or BDK. + block data is encrypted. This key type can be PEK or BDK. When a WrappedKeyBlock is + provided, this value will be the identifier to the key wrapping key for PIN block. + Otherwise, it is the key identifier used to perform the operation. - `incoming_translation_attributes`: The format of the incoming PIN block data for translation within Amazon Web Services Payment Cryptography. - `outgoing_key_identifier`: The keyARN of the encryption key for encrypting outgoing PIN @@ -512,31 +519,33 @@ operations: GeneratePinData VerifyPinData Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"IncomingDukptAttributes"`: The attributes and values to use for incoming DUKPT encryption key for PIN block translation. +- `"IncomingWrappedKey"`: The WrappedKeyBlock containing the encryption key under which + incoming PIN block data is encrypted. - `"OutgoingDukptAttributes"`: The attributes and values to use for outgoing DUKPT encryption key after PIN block translation. +- `"OutgoingWrappedKey"`: The WrappedKeyBlock containing the encryption key for encrypting + outgoing PIN block data. """ -function translate_pin_data( +translate_pin_data( EncryptedPinBlock, IncomingKeyIdentifier, IncomingTranslationAttributes, OutgoingKeyIdentifier, OutgoingTranslationAttributes; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/pindata/translate", + Dict{String,Any}( + "EncryptedPinBlock" => EncryptedPinBlock, + "IncomingKeyIdentifier" => IncomingKeyIdentifier, + "IncomingTranslationAttributes" => IncomingTranslationAttributes, + "OutgoingKeyIdentifier" => OutgoingKeyIdentifier, + "OutgoingTranslationAttributes" => OutgoingTranslationAttributes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/pindata/translate", - Dict{String,Any}( - "EncryptedPinBlock" => EncryptedPinBlock, - "IncomingKeyIdentifier" => IncomingKeyIdentifier, - "IncomingTranslationAttributes" => IncomingTranslationAttributes, - "OutgoingKeyIdentifier" => OutgoingKeyIdentifier, - "OutgoingTranslationAttributes" => OutgoingTranslationAttributes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function translate_pin_data( EncryptedPinBlock, IncomingKeyIdentifier, @@ -610,28 +619,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys verification. These parameters are required in case using ARPC Method 1 or Method 2 for ARQC verification. """ -function verify_auth_request_cryptogram( +verify_auth_request_cryptogram( AuthRequestCryptogram, KeyIdentifier, MajorKeyDerivationMode, SessionKeyDerivationAttributes, TransactionData; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/cryptogram/verify", + Dict{String,Any}( + "AuthRequestCryptogram" => AuthRequestCryptogram, + "KeyIdentifier" => KeyIdentifier, + "MajorKeyDerivationMode" => MajorKeyDerivationMode, + "SessionKeyDerivationAttributes" => SessionKeyDerivationAttributes, + "TransactionData" => TransactionData, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/cryptogram/verify", - Dict{String,Any}( - "AuthRequestCryptogram" => AuthRequestCryptogram, - "KeyIdentifier" => KeyIdentifier, - "MajorKeyDerivationMode" => MajorKeyDerivationMode, - "SessionKeyDerivationAttributes" => SessionKeyDerivationAttributes, - "TransactionData" => TransactionData, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_auth_request_cryptogram( AuthRequestCryptogram, KeyIdentifier, @@ -693,26 +700,24 @@ VerifyAuthRequestCryptogram VerifyPinData Amazon Web Services Payment Cryptography. """ -function verify_card_validation_data( +verify_card_validation_data( KeyIdentifier, PrimaryAccountNumber, ValidationData, VerificationAttributes; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/cardvalidationdata/verify", + Dict{String,Any}( + "KeyIdentifier" => KeyIdentifier, + "PrimaryAccountNumber" => PrimaryAccountNumber, + "ValidationData" => ValidationData, + "VerificationAttributes" => VerificationAttributes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/cardvalidationdata/verify", - Dict{String,Any}( - "KeyIdentifier" => KeyIdentifier, - "PrimaryAccountNumber" => PrimaryAccountNumber, - "ValidationData" => ValidationData, - "VerificationAttributes" => VerificationAttributes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_card_validation_data( KeyIdentifier, PrimaryAccountNumber, @@ -768,26 +773,24 @@ operation can't be used across different Amazon Web Services accounts. Related Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MacLength"`: The length of the MAC. """ -function verify_mac( +verify_mac( KeyIdentifier, Mac, MessageData, VerificationAttributes; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/mac/verify", + Dict{String,Any}( + "KeyIdentifier" => KeyIdentifier, + "Mac" => Mac, + "MessageData" => MessageData, + "VerificationAttributes" => VerificationAttributes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/mac/verify", - Dict{String,Any}( - "KeyIdentifier" => KeyIdentifier, - "Mac" => Mac, - "MessageData" => MessageData, - "VerificationAttributes" => VerificationAttributes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_mac( KeyIdentifier, Mac, @@ -853,7 +856,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DukptAttributes"`: The attributes and values for the DUKPT encrypted PIN block data. - `"PinDataLength"`: The length of PIN being verified. """ -function verify_pin_data( +verify_pin_data( EncryptedPinBlock, EncryptionKeyIdentifier, PinBlockFormat, @@ -861,22 +864,20 @@ function verify_pin_data( VerificationAttributes, VerificationKeyIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = payment_cryptography_data( + "POST", + "/pindata/verify", + Dict{String,Any}( + "EncryptedPinBlock" => EncryptedPinBlock, + "EncryptionKeyIdentifier" => EncryptionKeyIdentifier, + "PinBlockFormat" => PinBlockFormat, + "PrimaryAccountNumber" => PrimaryAccountNumber, + "VerificationAttributes" => VerificationAttributes, + "VerificationKeyIdentifier" => VerificationKeyIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return payment_cryptography_data( - "POST", - "/pindata/verify", - Dict{String,Any}( - "EncryptedPinBlock" => EncryptedPinBlock, - "EncryptionKeyIdentifier" => EncryptionKeyIdentifier, - "PinBlockFormat" => PinBlockFormat, - "PrimaryAccountNumber" => PrimaryAccountNumber, - "VerificationAttributes" => VerificationAttributes, - "VerificationKeyIdentifier" => VerificationKeyIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_pin_data( EncryptedPinBlock, EncryptionKeyIdentifier, diff --git a/src/services/pca_connector_ad.jl b/src/services/pca_connector_ad.jl index 90db65f90..03e98f5bd 100644 --- a/src/services/pca_connector_ad.jl +++ b/src/services/pca_connector_ad.jl @@ -22,25 +22,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: Idempotency token. - `"Tags"`: Metadata assigned to a connector consisting of a key-value pair. """ -function create_connector( +create_connector( CertificateAuthorityArn, DirectoryId, VpcInformation; aws_config::AbstractAWSConfig=current_aws_config(), +) = pca_connector_ad( + "POST", + "/connectors", + Dict{String,Any}( + "CertificateAuthorityArn" => CertificateAuthorityArn, + "DirectoryId" => DirectoryId, + "VpcInformation" => VpcInformation, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "POST", - "/connectors", - Dict{String,Any}( - "CertificateAuthorityArn" => CertificateAuthorityArn, - "DirectoryId" => DirectoryId, - "VpcInformation" => VpcInformation, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connector( CertificateAuthorityArn, DirectoryId, @@ -83,17 +81,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: Idempotency token. - `"Tags"`: Metadata assigned to a directory registration consisting of a key-value pair. """ -function create_directory_registration( +create_directory_registration( DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "POST", + "/directoryRegistrations", + Dict{String,Any}("DirectoryId" => DirectoryId, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "POST", - "/directoryRegistrations", - Dict{String,Any}("DirectoryId" => DirectoryId, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_directory_registration( DirectoryId, params::AbstractDict{String}; @@ -134,19 +130,17 @@ account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: Idempotency token. """ -function create_service_principal_name( +create_service_principal_name( ConnectorArn, DirectoryRegistrationArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = pca_connector_ad( + "POST", + "/directoryRegistrations/$(DirectoryRegistrationArn)/servicePrincipalNames/$(ConnectorArn)", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "POST", - "/directoryRegistrations/$(DirectoryRegistrationArn)/servicePrincipalNames/$(ConnectorArn)", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_principal_name( ConnectorArn, DirectoryRegistrationArn, @@ -185,22 +179,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: Idempotency token. - `"Tags"`: Metadata assigned to a template consisting of a key-value pair. """ -function create_template( +create_template( ConnectorArn, Definition, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "POST", + "/templates", + Dict{String,Any}( + "ConnectorArn" => ConnectorArn, + "Definition" => Definition, + "Name" => Name, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "POST", - "/templates", - Dict{String,Any}( - "ConnectorArn" => ConnectorArn, - "Definition" => Definition, - "Name" => Name, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_template( ConnectorArn, Definition, @@ -249,26 +241,24 @@ and/or autoenrolling with the template based on the group security identifiers ( Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: Idempotency token. """ -function create_template_group_access_control_entry( +create_template_group_access_control_entry( AccessRights, GroupDisplayName, GroupSecurityIdentifier, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = pca_connector_ad( + "POST", + "/templates/$(TemplateArn)/accessControlEntries", + Dict{String,Any}( + "AccessRights" => AccessRights, + "GroupDisplayName" => GroupDisplayName, + "GroupSecurityIdentifier" => GroupSecurityIdentifier, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "POST", - "/templates/$(TemplateArn)/accessControlEntries", - Dict{String,Any}( - "AccessRights" => AccessRights, - "GroupDisplayName" => GroupDisplayName, - "GroupSecurityIdentifier" => GroupSecurityIdentifier, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_template_group_access_control_entry( AccessRights, GroupDisplayName, @@ -314,14 +304,13 @@ tion action. CreateConnector. """ -function delete_connector(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( +delete_connector(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "DELETE", "/connectors/$(ConnectorArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connector( ConnectorArn, params::AbstractDict{String}; @@ -348,16 +337,14 @@ Services Private CA with the directory. called CreateDirectoryRegistration. """ -function delete_directory_registration( +delete_directory_registration( DirectoryRegistrationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "DELETE", + "/directoryRegistrations/$(DirectoryRegistrationArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "DELETE", - "/directoryRegistrations/$(DirectoryRegistrationArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_directory_registration( DirectoryRegistrationArn, params::AbstractDict{String}; @@ -386,18 +373,16 @@ Active Directory. called CreateDirectoryRegistration. """ -function delete_service_principal_name( +delete_service_principal_name( ConnectorArn, DirectoryRegistrationArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = pca_connector_ad( + "DELETE", + "/directoryRegistrations/$(DirectoryRegistrationArn)/servicePrincipalNames/$(ConnectorArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "DELETE", - "/directoryRegistrations/$(DirectoryRegistrationArn)/servicePrincipalNames/$(ConnectorArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service_principal_name( ConnectorArn, DirectoryRegistrationArn, @@ -425,14 +410,13 @@ revoked or expired. CreateTemplate. """ -function delete_template(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( +delete_template(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "DELETE", "/templates/$(TemplateArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_template( TemplateArn, params::AbstractDict{String}; @@ -460,16 +444,14 @@ Deletes a group access control entry. CreateTemplate. """ -function delete_template_group_access_control_entry( +delete_template_group_access_control_entry( GroupSecurityIdentifier, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "DELETE", + "/templates/$(TemplateArn)/accessControlEntries/$(GroupSecurityIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "DELETE", - "/templates/$(TemplateArn)/accessControlEntries/$(GroupSecurityIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_template_group_access_control_entry( GroupSecurityIdentifier, TemplateArn, @@ -497,14 +479,13 @@ Lists information about your connector. You specify the connector on input by it CreateConnector. """ -function get_connector(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( +get_connector(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "GET", "/connectors/$(ConnectorArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connector( ConnectorArn, params::AbstractDict{String}; @@ -530,16 +511,14 @@ A structure that contains information about your directory registration. called CreateDirectoryRegistration. """ -function get_directory_registration( +get_directory_registration( DirectoryRegistrationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "GET", + "/directoryRegistrations/$(DirectoryRegistrationArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "GET", - "/directoryRegistrations/$(DirectoryRegistrationArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_directory_registration( DirectoryRegistrationArn, params::AbstractDict{String}; @@ -568,18 +547,16 @@ Directory. called CreateDirectoryRegistration. """ -function get_service_principal_name( +get_service_principal_name( ConnectorArn, DirectoryRegistrationArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = pca_connector_ad( + "GET", + "/directoryRegistrations/$(DirectoryRegistrationArn)/servicePrincipalNames/$(ConnectorArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "GET", - "/directoryRegistrations/$(DirectoryRegistrationArn)/servicePrincipalNames/$(ConnectorArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_principal_name( ConnectorArn, DirectoryRegistrationArn, @@ -607,14 +584,13 @@ private CA. CreateTemplate. """ -function get_template(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( +get_template(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "GET", "/templates/$(TemplateArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_template( TemplateArn, params::AbstractDict{String}; @@ -642,16 +618,14 @@ Retrieves the group access control entries for a template. CreateTemplate. """ -function get_template_group_access_control_entry( +get_template_group_access_control_entry( GroupSecurityIdentifier, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "GET", + "/templates/$(TemplateArn)/accessControlEntries/$(GroupSecurityIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "GET", - "/templates/$(TemplateArn)/accessControlEntries/$(GroupSecurityIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_template_group_access_control_entry( GroupSecurityIdentifier, TemplateArn, @@ -684,11 +658,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received. """ -function list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( - "GET", "/connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = pca_connector_ad( + "GET", "/connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -715,14 +687,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received. """ -function list_directory_registrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( +list_directory_registrations(; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "GET", "/directoryRegistrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_directory_registrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -756,16 +727,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received. """ -function list_service_principal_names( +list_service_principal_names( DirectoryRegistrationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "GET", + "/directoryRegistrations/$(DirectoryRegistrationArn)/servicePrincipalNames"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "GET", - "/directoryRegistrations/$(DirectoryRegistrationArn)/servicePrincipalNames"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_principal_names( DirectoryRegistrationArn, params::AbstractDict{String}; @@ -791,16 +760,13 @@ Lists the tags, if any, that are associated with your resource. resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pca_connector_ad( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -835,16 +801,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received. """ -function list_template_group_access_control_entries( +list_template_group_access_control_entries( TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "GET", + "/templates/$(TemplateArn)/accessControlEntries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "GET", - "/templates/$(TemplateArn)/accessControlEntries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_template_group_access_control_entries( TemplateArn, params::AbstractDict{String}; @@ -879,15 +843,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received. """ -function list_templates(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( +list_templates(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "GET", "/templates", Dict{String,Any}("ConnectorArn" => ConnectorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_templates( ConnectorArn, params::AbstractDict{String}; @@ -916,15 +879,14 @@ Adds one or more tags to your resource. - `tags`: Metadata assigned to a directory registration consisting of a key-value pair. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -953,17 +915,14 @@ Removes one or more tags from your resource. resources. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return pca_connector_ad( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -999,14 +958,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys be increased automatically. All members of Active Directory groups that are allowed to enroll with a template will receive a new certificate issued using that template. """ -function update_template(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_ad( +update_template(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_ad( "PATCH", "/templates/$(TemplateArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_template( TemplateArn, params::AbstractDict{String}; @@ -1041,16 +999,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GroupDisplayName"`: Name of the Active Directory group. This name does not need to match the group name in Active Directory. """ -function update_template_group_access_control_entry( +update_template_group_access_control_entry( GroupSecurityIdentifier, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_ad( + "PATCH", + "/templates/$(TemplateArn)/accessControlEntries/$(GroupSecurityIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_ad( - "PATCH", - "/templates/$(TemplateArn)/accessControlEntries/$(GroupSecurityIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_template_group_access_control_entry( GroupSecurityIdentifier, TemplateArn, diff --git a/src/services/pca_connector_scep.jl b/src/services/pca_connector_scep.jl index 5cde2b31c..bdfca1485 100644 --- a/src/services/pca_connector_scep.jl +++ b/src/services/pca_connector_scep.jl @@ -30,15 +30,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SCEP recognizes that you are requesting multiple challenge passwords. - `"Tags"`: The key-value pairs to associate with the resource. """ -function create_challenge(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_scep( +create_challenge(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "POST", "/challenges", Dict{String,Any}("ConnectorArn" => ConnectorArn, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_challenge( ConnectorArn, params::AbstractDict{String}; @@ -98,20 +97,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Using Connector for SCEP for Microsoft Intune. - `"Tags"`: The key-value pairs to associate with the resource. """ -function create_connector( +create_connector( CertificateAuthorityArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pca_connector_scep( + "POST", + "/connectors", + Dict{String,Any}( + "CertificateAuthorityArn" => CertificateAuthorityArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pca_connector_scep( - "POST", - "/connectors", - Dict{String,Any}( - "CertificateAuthorityArn" => CertificateAuthorityArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connector( CertificateAuthorityArn, params::AbstractDict{String}; @@ -145,14 +142,13 @@ Deletes the specified Challenge. - `challenge_arn`: The Amazon Resource Name (ARN) of the challenge password to delete. """ -function delete_challenge(ChallengeArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_scep( +delete_challenge(ChallengeArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "DELETE", "/challenges/$(ChallengeArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_challenge( ChallengeArn, params::AbstractDict{String}; @@ -178,14 +174,13 @@ the connector. - `connector_arn`: The Amazon Resource Name (ARN) of the connector to delete. """ -function delete_connector(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_scep( +delete_connector(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "DELETE", "/connectors/$(ConnectorArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connector( ConnectorArn, params::AbstractDict{String}; @@ -210,16 +205,13 @@ Retrieves the metadata for the specified Challenge. - `challenge_arn`: The Amazon Resource Name (ARN) of the challenge. """ -function get_challenge_metadata( - ChallengeArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pca_connector_scep( +get_challenge_metadata(ChallengeArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "GET", "/challengeMetadata/$(ChallengeArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_challenge_metadata( ChallengeArn, params::AbstractDict{String}; @@ -244,16 +236,13 @@ Retrieves the challenge password for the specified Challenge. - `challenge_arn`: The Amazon Resource Name (ARN) of the challenge. """ -function get_challenge_password( - ChallengeArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pca_connector_scep( +get_challenge_password(ChallengeArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "GET", "/challengePasswords/$(ChallengeArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_challenge_password( ChallengeArn, params::AbstractDict{String}; @@ -280,14 +269,13 @@ certificates. - `connector_arn`: The Amazon Resource Name (ARN) of the connector. """ -function get_connector(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_scep( +get_connector(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "GET", "/connectors/$(ConnectorArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_connector( ConnectorArn, params::AbstractDict{String}; @@ -322,17 +310,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Connector for SCEP returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_challenge_metadata( - ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pca_connector_scep( +list_challenge_metadata(ConnectorArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "GET", "/challengeMetadata", Dict{String,Any}("ConnectorArn" => ConnectorArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_challenge_metadata( ConnectorArn, params::AbstractDict{String}; @@ -366,11 +351,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Connector for SCEP returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. """ -function list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_scep( - "GET", "/connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = pca_connector_scep( + "GET", "/connectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -393,16 +376,13 @@ tags for a resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pca_connector_scep( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -428,15 +408,14 @@ Adds one or more tags to your resource. - `tags`: The key-value pairs to associate with the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return pca_connector_scep( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -464,17 +443,14 @@ Removes one or more tags from your resource. resources. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return pca_connector_scep( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + pca_connector_scep( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, diff --git a/src/services/pcs.jl b/src/services/pcs.jl new file mode 100644 index 000000000..aae9365dd --- /dev/null +++ b/src/services/pcs.jl @@ -0,0 +1,952 @@ +# This file is auto-generated by AWSMetadata.jl +using AWS +using AWS.AWSServices: pcs +using AWS.Compat +using AWS.UUIDs + +""" + create_cluster(cluster_name, networking, scheduler, size) + create_cluster(cluster_name, networking, scheduler, size, params::Dict{String,<:Any}) + +Creates a cluster in your account. Amazon Web Services PCS creates the cluster controller +in a service-owned account. The cluster controller communicates with the cluster resources +in your account. The subnets and security groups for the cluster must already exist before +you use this API action. It takes time for Amazon Web Services PCS to create the cluster. +The cluster is in a Creating state until it is ready to use. There can only be 1 cluster in +a Creating state per Amazon Web Services Region per Amazon Web Services account. +CreateCluster fails with a ServiceQuotaExceededException if there is already a cluster in a +Creating state. + +# Arguments +- `cluster_name`: A name to identify the cluster. Example: MyCluster +- `networking`: The networking configuration used to set up the cluster's control plane. +- `scheduler`: The cluster management and job scheduling software associated with the + cluster. +- `size`: A value that determines the maximum number of compute nodes in the cluster and + the maximum number of jobs (active and queued). SMALL: 32 compute nodes and 256 jobs + MEDIUM: 512 compute nodes and 8192 jobs LARGE: 2048 compute nodes and 16,384 jobs + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. Idempotency ensures that an API request completes only once. + With an idempotent request, if the original request completes successfully, the subsequent + retries with the same client token return the result from the original successful request + and they have no additional effect. If you don't specify a client token, the CLI and SDK + automatically generate 1 for you. +- `"slurmConfiguration"`: Additional options related to the Slurm scheduler. +- `"tags"`: 1 or more tags added to the resource. Each tag consists of a tag key and tag + value. The tag value is optional and can be an empty string. +""" +create_cluster( + clusterName, + networking, + scheduler, + size; + aws_config::AbstractAWSConfig=current_aws_config(), +) = pcs( + "CreateCluster", + Dict{String,Any}( + "clusterName" => clusterName, + "networking" => networking, + "scheduler" => scheduler, + "size" => size, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_cluster( + clusterName, + networking, + scheduler, + size, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "CreateCluster", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterName" => clusterName, + "networking" => networking, + "scheduler" => scheduler, + "size" => size, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_compute_node_group(cluster_identifier, compute_node_group_name, custom_launch_template, iam_instance_profile_arn, instance_configs, scaling_configuration, subnet_ids) + create_compute_node_group(cluster_identifier, compute_node_group_name, custom_launch_template, iam_instance_profile_arn, instance_configs, scaling_configuration, subnet_ids, params::Dict{String,<:Any}) + +Creates a managed set of compute nodes. You associate a compute node group with a cluster +through 1 or more Amazon Web Services PCS queues or as part of the login fleet. A compute +node group includes the definition of the compute properties and lifecycle management. +Amazon Web Services PCS uses the information you provide to this API action to launch +compute nodes in your account. You can only specify subnets in the same Amazon VPC as your +cluster. You receive billing charges for the compute nodes that Amazon Web Services PCS +launches in your account. You must already have a launch template before you call this API. +For more information, see Launch an instance from a launch template in the Amazon Elastic +Compute Cloud User Guide for Linux Instances. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster to create a compute node group in. +- `compute_node_group_name`: A name to identify the cluster. Example: MyCluster +- `custom_launch_template`: +- `iam_instance_profile_arn`: The Amazon Resource Name (ARN) of the IAM instance profile + used to pass an IAM role when launching EC2 instances. The role contained in your instance + profile must have pcs:RegisterComputeNodeGroupInstance permissions attached in order to + provision instances correctly. The resource identifier of the ARN must start with AWSPCS. + For example, arn:aws:iam:123456789012:instance-profile/AWSPCSMyComputeNodeInstanceProfile. +- `instance_configs`: A list of EC2 instance configurations that Amazon Web Services PCS + can provision in the compute node group. +- `scaling_configuration`: Specifies the boundaries of the compute node group auto scaling. +- `subnet_ids`: The list of subnet IDs where the compute node group launches instances. + Subnets must be in the same VPC as the cluster. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"amiId"`: The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to + launch compute nodes (Amazon EC2 instances). If you don't provide this value, Amazon Web + Services PCS uses the AMI ID specified in the custom launch template. +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. Idempotency ensures that an API request completes only once. + With an idempotent request, if the original request completes successfully, the subsequent + retries with the same client token return the result from the original successful request + and they have no additional effect. If you don't specify a client token, the CLI and SDK + automatically generate 1 for you. +- `"purchaseOption"`: Specifies how EC2 instances are purchased on your behalf. Amazon Web + Services PCS supports On-Demand and Spot instances. For more information, see Instance + purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide + this option, it defaults to On-Demand. +- `"slurmConfiguration"`: Additional options related to the Slurm scheduler. +- `"spotOptions"`: +- `"tags"`: 1 or more tags added to the resource. Each tag consists of a tag key and tag + value. The tag value is optional and can be an empty string. +""" +create_compute_node_group( + clusterIdentifier, + computeNodeGroupName, + customLaunchTemplate, + iamInstanceProfileArn, + instanceConfigs, + scalingConfiguration, + subnetIds; + aws_config::AbstractAWSConfig=current_aws_config(), +) = pcs( + "CreateComputeNodeGroup", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "computeNodeGroupName" => computeNodeGroupName, + "customLaunchTemplate" => customLaunchTemplate, + "iamInstanceProfileArn" => iamInstanceProfileArn, + "instanceConfigs" => instanceConfigs, + "scalingConfiguration" => scalingConfiguration, + "subnetIds" => subnetIds, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_compute_node_group( + clusterIdentifier, + computeNodeGroupName, + customLaunchTemplate, + iamInstanceProfileArn, + instanceConfigs, + scalingConfiguration, + subnetIds, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "CreateComputeNodeGroup", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "computeNodeGroupName" => computeNodeGroupName, + "customLaunchTemplate" => customLaunchTemplate, + "iamInstanceProfileArn" => iamInstanceProfileArn, + "instanceConfigs" => instanceConfigs, + "scalingConfiguration" => scalingConfiguration, + "subnetIds" => subnetIds, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_queue(cluster_identifier, queue_name) + create_queue(cluster_identifier, queue_name, params::Dict{String,<:Any}) + +Creates a job queue. You must associate 1 or more compute node groups with the queue. You +can associate 1 compute node group with multiple queues. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster for which to create a queue. +- `queue_name`: A name to identify the queue. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. Idempotency ensures that an API request completes only once. + With an idempotent request, if the original request completes successfully, the subsequent + retries with the same client token return the result from the original successful request + and they have no additional effect. If you don't specify a client token, the CLI and SDK + automatically generate 1 for you. +- `"computeNodeGroupConfigurations"`: The list of compute node group configurations to + associate with the queue. Queues assign jobs to associated compute node groups. +- `"tags"`: 1 or more tags added to the resource. Each tag consists of a tag key and tag + value. The tag value is optional and can be an empty string. +""" +create_queue( + clusterIdentifier, queueName; aws_config::AbstractAWSConfig=current_aws_config() +) = pcs( + "CreateQueue", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "queueName" => queueName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_queue( + clusterIdentifier, + queueName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "CreateQueue", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "queueName" => queueName, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_cluster(cluster_identifier) + delete_cluster(cluster_identifier, params::Dict{String,<:Any}) + +Deletes a cluster and all its linked resources. You must delete all queues and compute node +groups associated with the cluster before you can delete the cluster. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster to delete. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. Idempotency ensures that an API request completes only once. + With an idempotent request, if the original request completes successfully, the subsequent + retries with the same client token return the result from the original successful request + and they have no additional effect. If you don't specify a client token, the CLI and SDK + automatically generate 1 for you. +""" +delete_cluster(clusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = pcs( + "DeleteCluster", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_cluster( + clusterIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "DeleteCluster", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_compute_node_group(cluster_identifier, compute_node_group_identifier) + delete_compute_node_group(cluster_identifier, compute_node_group_identifier, params::Dict{String,<:Any}) + +Deletes a compute node group. You must delete all queues associated with the compute node +group first. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster of the compute node group. +- `compute_node_group_identifier`: The name or ID of the compute node group to delete. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. Idempotency ensures that an API request completes only once. + With an idempotent request, if the original request completes successfully, the subsequent + retries with the same client token return the result from the original successful request + and they have no additional effect. If you don't specify a client token, the CLI and SDK + automatically generate 1 for you. +""" +delete_compute_node_group( + clusterIdentifier, + computeNodeGroupIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = pcs( + "DeleteComputeNodeGroup", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "computeNodeGroupIdentifier" => computeNodeGroupIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_compute_node_group( + clusterIdentifier, + computeNodeGroupIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "DeleteComputeNodeGroup", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "computeNodeGroupIdentifier" => computeNodeGroupIdentifier, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_queue(cluster_identifier, queue_identifier) + delete_queue(cluster_identifier, queue_identifier, params::Dict{String,<:Any}) + +Deletes a job queue. If the compute node group associated with this queue isn't associated +with any other queues, Amazon Web Services PCS terminates all the compute nodes for this +queue. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster of the queue. +- `queue_identifier`: The name or ID of the queue to delete. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. Idempotency ensures that an API request completes only once. + With an idempotent request, if the original request completes successfully, the subsequent + retries with the same client token return the result from the original successful request + and they have no additional effect. If you don't specify a client token, the CLI and SDK + automatically generate 1 for you. +""" +delete_queue( + clusterIdentifier, queueIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = pcs( + "DeleteQueue", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "queueIdentifier" => queueIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_queue( + clusterIdentifier, + queueIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "DeleteQueue", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "queueIdentifier" => queueIdentifier, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_cluster(cluster_identifier) + get_cluster(cluster_identifier, params::Dict{String,<:Any}) + +Returns detailed information about a running cluster in your account. This API action +provides networking information, endpoint information for communication with the scheduler, +and provisioning status. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster of the queue. + +""" +get_cluster(clusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = pcs( + "GetCluster", + Dict{String,Any}("clusterIdentifier" => clusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_cluster( + clusterIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "GetCluster", + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("clusterIdentifier" => clusterIdentifier), params + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_compute_node_group(cluster_identifier, compute_node_group_identifier) + get_compute_node_group(cluster_identifier, compute_node_group_identifier, params::Dict{String,<:Any}) + +Returns detailed information about a compute node group. This API action provides +networking information, EC2 instance type, compute node group status, and scheduler (such +as Slurm) configuration. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster. +- `compute_node_group_identifier`: The name or ID of the compute node group. + +""" +get_compute_node_group( + clusterIdentifier, + computeNodeGroupIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = pcs( + "GetComputeNodeGroup", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "computeNodeGroupIdentifier" => computeNodeGroupIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_compute_node_group( + clusterIdentifier, + computeNodeGroupIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "GetComputeNodeGroup", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "computeNodeGroupIdentifier" => computeNodeGroupIdentifier, + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_queue(cluster_identifier, queue_identifier) + get_queue(cluster_identifier, queue_identifier, params::Dict{String,<:Any}) + +Returns detailed information about a queue. The information includes the compute node +groups that the queue uses to schedule jobs. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster of the queue. +- `queue_identifier`: The name or ID of the queue. + +""" +get_queue( + clusterIdentifier, queueIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = pcs( + "GetQueue", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, "queueIdentifier" => queueIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_queue( + clusterIdentifier, + queueIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "GetQueue", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "queueIdentifier" => queueIdentifier, + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_clusters() + list_clusters(params::Dict{String,<:Any}) + +Returns a list of running clusters in your account. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results that are returned per call. You can use + nextToken to obtain further pages of results. The default is 10 results, and the maximum + allowed page size is 100 results. A value of 0 uses the default. +- `"nextToken"`: The value of nextToken is a unique pagination token for each page of + results returned. If nextToken is returned, there are more results available. Make the call + again using the returned token to retrieve the next page. Keep all other arguments + unchanged. Each pagination token expires after 24 hours. Using an expired pagination token + returns an HTTP 400 InvalidToken error. +""" +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + pcs("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) +function list_clusters( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return pcs( + "ListClusters", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + ) +end + +""" + list_compute_node_groups(cluster_identifier) + list_compute_node_groups(cluster_identifier, params::Dict{String,<:Any}) + +Returns a list of all compute node groups associated with a cluster. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster to list compute node groups for. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results that are returned per call. You can use + nextToken to obtain further pages of results. The default is 10 results, and the maximum + allowed page size is 100 results. A value of 0 uses the default. +- `"nextToken"`: The value of nextToken is a unique pagination token for each page of + results returned. If nextToken is returned, there are more results available. Make the call + again using the returned token to retrieve the next page. Keep all other arguments + unchanged. Each pagination token expires after 24 hours. Using an expired pagination token + returns an HTTP 400 InvalidToken error. +""" +list_compute_node_groups( + clusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = pcs( + "ListComputeNodeGroups", + Dict{String,Any}("clusterIdentifier" => clusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_compute_node_groups( + clusterIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "ListComputeNodeGroups", + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("clusterIdentifier" => clusterIdentifier), params + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_queues(cluster_identifier) + list_queues(cluster_identifier, params::Dict{String,<:Any}) + +Returns a list of all queues associated with a cluster. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster to list queues for. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results that are returned per call. You can use + nextToken to obtain further pages of results. The default is 10 results, and the maximum + allowed page size is 100 results. A value of 0 uses the default. +- `"nextToken"`: The value of nextToken is a unique pagination token for each page of + results returned. If nextToken is returned, there are more results available. Make the call + again using the returned token to retrieve the next page. Keep all other arguments + unchanged. Each pagination token expires after 24 hours. Using an expired pagination token + returns an HTTP 400 InvalidToken error. +""" +list_queues(clusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = pcs( + "ListQueues", + Dict{String,Any}("clusterIdentifier" => clusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_queues( + clusterIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "ListQueues", + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("clusterIdentifier" => clusterIdentifier), params + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_tags_for_resource(resource_arn) + list_tags_for_resource(resource_arn, params::Dict{String,<:Any}) + +Returns a list of all tags on an Amazon Web Services PCS resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource for which to list tags. + +""" +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pcs( + "ListTagsForResource", + Dict{String,Any}("resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_tags_for_resource( + resourceArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "ListTagsForResource", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("resourceArn" => resourceArn), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + register_compute_node_group_instance(bootstrap_id, cluster_identifier) + register_compute_node_group_instance(bootstrap_id, cluster_identifier, params::Dict{String,<:Any}) + + This API action isn't intended for you to use. Amazon Web Services PCS uses this API +action to register the compute nodes it launches in your account. + +# Arguments +- `bootstrap_id`: The client-generated token to allow for retries. +- `cluster_identifier`: The name or ID of the cluster to register the compute node group + instance in. + +""" +register_compute_node_group_instance( + bootstrapId, clusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = pcs( + "RegisterComputeNodeGroupInstance", + Dict{String,Any}( + "bootstrapId" => bootstrapId, "clusterIdentifier" => clusterIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function register_compute_node_group_instance( + bootstrapId, + clusterIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "RegisterComputeNodeGroupInstance", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "bootstrapId" => bootstrapId, "clusterIdentifier" => clusterIdentifier + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + tag_resource(resource_arn, tags) + tag_resource(resource_arn, tags, params::Dict{String,<:Any}) + +Adds or edits tags on an Amazon Web Services PCS resource. Each tag consists of a tag key +and a tag value. The tag key and tag value are case-sensitive strings. The tag value can be +an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, +specify an existing tag key and a new tag value. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource. +- `tags`: 1 or more tags added to the resource. Each tag consists of a tag key and tag + value. The tag value is optional and can be an empty string. + +""" +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = pcs( + "TagResource", + Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function tag_resource( + resourceArn, + tags, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "TagResource", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + untag_resource(resource_arn, tag_keys) + untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any}) + +Deletes tags from an Amazon Web Services PCS resource. To delete a tag, specify the tag key +and the Amazon Resource Name (ARN) of the Amazon Web Services PCS resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource. +- `tag_keys`: 1 or more tag keys to remove from the resource. Specify only tag keys and not + tag values. + +""" +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + pcs( + "UntagResource", + Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function untag_resource( + resourceArn, + tagKeys, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "UntagResource", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_compute_node_group(cluster_identifier, compute_node_group_identifier) + update_compute_node_group(cluster_identifier, compute_node_group_identifier, params::Dict{String,<:Any}) + +Updates a compute node group. You can update many of the fields related to your compute +node group including the configurations for networking, compute nodes, and settings +specific to your scheduler (such as Slurm). + +# Arguments +- `cluster_identifier`: The name or ID of the cluster of the compute node group. +- `compute_node_group_identifier`: The name or ID of the compute node group. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"amiId"`: The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to + launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the + custom launch template. +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. Idempotency ensures that an API request completes only once. + With an idempotent request, if the original request completes successfully, the subsequent + retries with the same client token return the result from the original successful request + and they have no additional effect. If you don't specify a client token, the CLI and SDK + automatically generate 1 for you. +- `"customLaunchTemplate"`: +- `"iamInstanceProfileArn"`: The Amazon Resource Name (ARN) of the IAM instance profile + used to pass an IAM role when launching EC2 instances. The role contained in your instance + profile must have pcs:RegisterComputeNodeGroupInstance permissions attached to provision + instances correctly. +- `"purchaseOption"`: Specifies how EC2 instances are purchased on your behalf. Amazon Web + Services PCS supports On-Demand and Spot instances. For more information, see Instance + purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide + this option, it defaults to On-Demand. +- `"scalingConfiguration"`: Specifies the boundaries of the compute node group auto scaling. +- `"slurmConfiguration"`: Additional options related to the Slurm scheduler. +- `"spotOptions"`: +- `"subnetIds"`: The list of subnet IDs where the compute node group provisions instances. + The subnets must be in the same VPC as the cluster. +""" +update_compute_node_group( + clusterIdentifier, + computeNodeGroupIdentifier; + aws_config::AbstractAWSConfig=current_aws_config(), +) = pcs( + "UpdateComputeNodeGroup", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "computeNodeGroupIdentifier" => computeNodeGroupIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_compute_node_group( + clusterIdentifier, + computeNodeGroupIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "UpdateComputeNodeGroup", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "computeNodeGroupIdentifier" => computeNodeGroupIdentifier, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_queue(cluster_identifier, queue_identifier) + update_queue(cluster_identifier, queue_identifier, params::Dict{String,<:Any}) + +Updates the compute node group configuration of a queue. Use this API to change the compute +node groups that the queue can send jobs to. + +# Arguments +- `cluster_identifier`: The name or ID of the cluster of the queue. +- `queue_identifier`: The name or ID of the queue. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. Idempotency ensures that an API request completes only once. + With an idempotent request, if the original request completes successfully, the subsequent + retries with the same client token return the result from the original successful request + and they have no additional effect. If you don't specify a client token, the CLI and SDK + automatically generate 1 for you. +- `"computeNodeGroupConfigurations"`: The list of compute node group configurations to + associate with the queue. Queues assign jobs to associated compute node groups. +""" +update_queue( + clusterIdentifier, queueIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = pcs( + "UpdateQueue", + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "queueIdentifier" => queueIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_queue( + clusterIdentifier, + queueIdentifier, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return pcs( + "UpdateQueue", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "clusterIdentifier" => clusterIdentifier, + "queueIdentifier" => queueIdentifier, + "clientToken" => string(uuid4()), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end diff --git a/src/services/personalize.jl b/src/services/personalize.jl index 3b28ce105..4798062ee 100644 --- a/src/services/personalize.jl +++ b/src/services/personalize.jl @@ -46,27 +46,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"themeGenerationConfig"`: For theme generation jobs, specify the name of the column in your Items dataset that contains each item's name. """ -function create_batch_inference_job( +create_batch_inference_job( jobInput, jobName, jobOutput, roleArn, solutionVersionArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = personalize( + "CreateBatchInferenceJob", + Dict{String,Any}( + "jobInput" => jobInput, + "jobName" => jobName, + "jobOutput" => jobOutput, + "roleArn" => roleArn, + "solutionVersionArn" => solutionVersionArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateBatchInferenceJob", - Dict{String,Any}( - "jobInput" => jobInput, - "jobName" => jobName, - "jobOutput" => jobOutput, - "roleArn" => roleArn, - "solutionVersionArn" => solutionVersionArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_batch_inference_job( jobInput, jobName, @@ -121,27 +119,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys line of input data. The maximum number of users per segment is 5 million. - `"tags"`: A list of tags to apply to the batch segment job. """ -function create_batch_segment_job( +create_batch_segment_job( jobInput, jobName, jobOutput, roleArn, solutionVersionArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = personalize( + "CreateBatchSegmentJob", + Dict{String,Any}( + "jobInput" => jobInput, + "jobName" => jobName, + "jobOutput" => jobOutput, + "roleArn" => roleArn, + "solutionVersionArn" => solutionVersionArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateBatchSegmentJob", - Dict{String,Any}( - "jobInput" => jobInput, - "jobName" => jobName, - "jobOutput" => jobOutput, - "roleArn" => roleArn, - "solutionVersionArn" => solutionVersionArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_batch_segment_job( jobInput, jobName, @@ -222,16 +218,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys necessary. - `"tags"`: A list of tags to apply to the campaign. """ -function create_campaign( +create_campaign( name, solutionVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "CreateCampaign", + Dict{String,Any}("name" => name, "solutionVersionArn" => solutionVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateCampaign", - Dict{String,Any}("name" => name, "solutionVersionArn" => solutionVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_campaign( name, solutionVersionArn, @@ -293,25 +287,23 @@ ListDataDeletionJobs DescribeDataDeletionJob Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A list of tags to apply to the data deletion job. """ -function create_data_deletion_job( +create_data_deletion_job( dataSource, datasetGroupArn, jobName, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = personalize( + "CreateDataDeletionJob", + Dict{String,Any}( + "dataSource" => dataSource, + "datasetGroupArn" => datasetGroupArn, + "jobName" => jobName, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateDataDeletionJob", - Dict{String,Any}( - "dataSource" => dataSource, - "datasetGroupArn" => datasetGroupArn, - "jobName" => jobName, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_deletion_job( dataSource, datasetGroupArn, @@ -366,25 +358,23 @@ of the dataset, call DescribeDataset. Related APIs CreateDatasetGroup L Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A list of tags to apply to the dataset. """ -function create_dataset( +create_dataset( datasetGroupArn, datasetType, name, schemaArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = personalize( + "CreateDataset", + Dict{String,Any}( + "datasetGroupArn" => datasetGroupArn, + "datasetType" => datasetType, + "name" => name, + "schemaArn" => schemaArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateDataset", - Dict{String,Any}( - "datasetGroupArn" => datasetGroupArn, - "datasetType" => datasetType, - "name" => name, - "schemaArn" => schemaArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset( datasetGroupArn, datasetType, @@ -443,25 +433,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operations), or ALL for both types. The default value is PUT. - `"tags"`: A list of tags to apply to the dataset export job. """ -function create_dataset_export_job( +create_dataset_export_job( datasetArn, jobName, jobOutput, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = personalize( + "CreateDatasetExportJob", + Dict{String,Any}( + "datasetArn" => datasetArn, + "jobName" => jobName, + "jobOutput" => jobOutput, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateDatasetExportJob", - Dict{String,Any}( - "datasetArn" => datasetArn, - "jobName" => jobName, - "jobOutput" => jobOutput, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset_export_job( datasetArn, jobName, @@ -528,14 +516,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys valid when also specifying a KMS key. - `"tags"`: A list of tags to apply to the dataset group. """ -function create_dataset_group(name; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +create_dataset_group(name; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "CreateDatasetGroup", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_dataset_group( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -590,25 +577,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to publish metrics for this import job to Amazon S3 - `"tags"`: A list of tags to apply to the dataset import job. """ -function create_dataset_import_job( +create_dataset_import_job( dataSource, datasetArn, jobName, roleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = personalize( + "CreateDatasetImportJob", + Dict{String,Any}( + "dataSource" => dataSource, + "datasetArn" => datasetArn, + "jobName" => jobName, + "roleArn" => roleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateDatasetImportJob", - Dict{String,Any}( - "dataSource" => dataSource, - "datasetArn" => datasetArn, - "jobName" => jobName, - "roleArn" => roleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset_import_job( dataSource, datasetArn, @@ -661,16 +646,14 @@ The event tracker must be in the ACTIVE state before using the tracking ID. Re Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A list of tags to apply to the event tracker. """ -function create_event_tracker( +create_event_tracker( datasetGroupArn, name; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "CreateEventTracker", + Dict{String,Any}("datasetGroupArn" => datasetGroupArn, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateEventTracker", - Dict{String,Any}("datasetGroupArn" => datasetGroupArn, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_tracker( datasetGroupArn, name, @@ -709,23 +692,21 @@ user segments. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A list of tags to apply to the filter. """ -function create_filter( +create_filter( datasetGroupArn, filterExpression, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = personalize( + "CreateFilter", + Dict{String,Any}( + "datasetGroupArn" => datasetGroupArn, + "filterExpression" => filterExpression, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateFilter", - Dict{String,Any}( - "datasetGroupArn" => datasetGroupArn, - "filterExpression" => filterExpression, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_filter( datasetGroupArn, filterExpression, @@ -771,25 +752,23 @@ recommendations. - `name`: A name for the metric attribution. """ -function create_metric_attribution( +create_metric_attribution( datasetGroupArn, metrics, metricsOutputConfig, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = personalize( + "CreateMetricAttribution", + Dict{String,Any}( + "datasetGroupArn" => datasetGroupArn, + "metrics" => metrics, + "metricsOutputConfig" => metricsOutputConfig, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateMetricAttribution", - Dict{String,Any}( - "datasetGroupArn" => datasetGroupArn, - "metrics" => metrics, - "metricsOutputConfig" => metricsOutputConfig, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_metric_attribution( datasetGroupArn, metrics, @@ -865,18 +844,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"recommenderConfig"`: The configuration details of the recommender. - `"tags"`: A list of tags to apply to the recommender. """ -function create_recommender( +create_recommender( datasetGroupArn, name, recipeArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "CreateRecommender", + Dict{String,Any}( + "datasetGroupArn" => datasetGroupArn, "name" => name, "recipeArn" => recipeArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "CreateRecommender", - Dict{String,Any}( - "datasetGroupArn" => datasetGroupArn, "name" => name, "recipeArn" => recipeArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_recommender( datasetGroupArn, name, @@ -923,14 +900,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Domain dataset group, specify the domain you chose when you created the Domain dataset group. """ -function create_schema(name, schema; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +create_schema(name, schema; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "CreateSchema", Dict{String,Any}("name" => name, "schema" => schema); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_schema( name, schema, @@ -951,34 +927,32 @@ end create_solution(dataset_group_arn, name) create_solution(dataset_group_arn, name, params::Dict{String,<:Any}) - After you create a solution, you can’t change its configuration. By default, all new -solutions use automatic training. With automatic training, you incur training costs while -your solution is active. You can't stop automatic training for a solution. To avoid -unnecessary costs, make sure to delete the solution when you are finished. For information -about training costs, see Amazon Personalize pricing. Creates the configuration for -training a model (creating a solution version). This configuration includes the recipe to -use for model training and optional training configuration, such as columns to use in -training and feature transformation parameters. For more information about configuring a -solution, see Creating and configuring a solution. By default, new solutions use -automatic training to create solution versions every 7 days. You can change the training -frequency. Automatic solution version creation starts one hour after the solution is -ACTIVE. If you manually create a solution version within the hour, the solution skips the -first automatic training. For more information, see Configuring automatic training. To -turn off automatic training, set performAutoTraining to false. If you turn off automatic -training, you must manually create a solution version by calling the CreateSolutionVersion -operation. After training starts, you can get the solution version's Amazon Resource Name -(ARN) with the ListSolutionVersions API operation. To get its status, use the -DescribeSolutionVersion. After training completes you can evaluate model accuracy by -calling GetSolutionMetrics. When you are satisfied with the solution version, you deploy it -using CreateCampaign. The campaign provides recommendations to a client through the -GetRecommendations API. Amazon Personalize doesn't support configuring the hpoObjective -for solution hyperparameter optimization at this time. Status A solution can be in one -of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE -FAILED DELETE PENDING > DELETE IN_PROGRESS To get the status of the solution, call -DescribeSolution. If you use manual training, the status must be ACTIVE before you call -CreateSolutionVersion. Related APIs ListSolutions CreateSolutionVersion -DescribeSolution DeleteSolution ListSolutionVersions DescribeSolutionVersion - + By default, all new solutions use automatic training. With automatic training, you incur +training costs while your solution is active. To avoid unnecessary costs, when you are +finished you can update the solution to turn off automatic training. For information about +training costs, see Amazon Personalize pricing. Creates the configuration for training a +model (creating a solution version). This configuration includes the recipe to use for +model training and optional training configuration, such as columns to use in training and +feature transformation parameters. For more information about configuring a solution, see +Creating and configuring a solution. By default, new solutions use automatic training to +create solution versions every 7 days. You can change the training frequency. Automatic +solution version creation starts within one hour after the solution is ACTIVE. If you +manually create a solution version within the hour, the solution skips the first automatic +training. For more information, see Configuring automatic training. To turn off automatic +training, set performAutoTraining to false. If you turn off automatic training, you must +manually create a solution version by calling the CreateSolutionVersion operation. After +training starts, you can get the solution version's Amazon Resource Name (ARN) with the +ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion. +After training completes you can evaluate model accuracy by calling GetSolutionMetrics. +When you are satisfied with the solution version, you deploy it using CreateCampaign. The +campaign provides recommendations to a client through the GetRecommendations API. Amazon +Personalize doesn't support configuring the hpoObjective for solution hyperparameter +optimization at this time. Status A solution can be in one of the following states: +CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED DELETE PENDING > +DELETE IN_PROGRESS To get the status of the solution, call DescribeSolution. If you use +manual training, the status must be ACTIVE before you call CreateSolutionVersion. Related +APIs UpdateSolution ListSolutions CreateSolutionVersion DescribeSolution + DeleteSolution ListSolutionVersions DescribeSolutionVersion # Arguments - `dataset_group_arn`: The Amazon Resource Name (ARN) of the dataset group that provides @@ -1004,7 +978,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys creates new solution versions every 7 days. You can change the training frequency by specifying a schedulingExpression in the AutoTrainingConfig as part of solution configuration. For more information about automatic training, see Configuring automatic - training. Automatic solution version creation starts one hour after the solution is + training. Automatic solution version creation starts within one hour after the solution is ACTIVE. If you manually create a solution version within the hour, the solution skips the first automatic training. After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, @@ -1015,22 +989,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"recipeArn"`: The Amazon Resource Name (ARN) of the recipe to use for model training. This is required when performAutoML is false. For information about different Amazon Personalize recipes and their ARNs, see Choosing a recipe. -- `"solutionConfig"`: The configuration to use with the solution. When performAutoML is set - to true, Amazon Personalize only evaluates the autoMLConfig section of the solution +- `"solutionConfig"`: The configuration properties for the solution. When performAutoML is + set to true, Amazon Personalize only evaluates the autoMLConfig section of the solution configuration. Amazon Personalize doesn't support configuring the hpoObjective at this time. - `"tags"`: A list of tags to apply to the solution. """ -function create_solution( - datasetGroupArn, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +create_solution(datasetGroupArn, name; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "CreateSolution", Dict{String,Any}("datasetGroupArn" => datasetGroupArn, "name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_solution( datasetGroupArn, name, @@ -1087,16 +1058,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys input solution was trained with the User-Personalization recipe or the legacy HRNN-Coldstart recipe. """ -function create_solution_version( - solutionArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +create_solution_version(solutionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "CreateSolutionVersion", Dict{String,Any}("solutionArn" => solutionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_solution_version( solutionArn, params::AbstractDict{String}; @@ -1125,14 +1093,13 @@ CreateCampaign. - `campaign_arn`: The Amazon Resource Name (ARN) of the campaign to delete. """ -function delete_campaign(campaignArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +delete_campaign(campaignArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DeleteCampaign", Dict{String,Any}("campaignArn" => campaignArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_campaign( campaignArn, params::AbstractDict{String}; @@ -1160,14 +1127,13 @@ datasets, see CreateDataset. - `dataset_arn`: The Amazon Resource Name (ARN) of the dataset to delete. """ -function delete_dataset(datasetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +delete_dataset(datasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DeleteDataset", Dict{String,Any}("datasetArn" => datasetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dataset( datasetArn, params::AbstractDict{String}; @@ -1195,16 +1161,13 @@ group. - `dataset_group_arn`: The ARN of the dataset group to delete. """ -function delete_dataset_group( - datasetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +delete_dataset_group(datasetGroupArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DeleteDatasetGroup", Dict{String,Any}("datasetGroupArn" => datasetGroupArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dataset_group( datasetGroupArn, params::AbstractDict{String}; @@ -1233,16 +1196,13 @@ information on event trackers, see CreateEventTracker. - `event_tracker_arn`: The Amazon Resource Name (ARN) of the event tracker to delete. """ -function delete_event_tracker( - eventTrackerArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +delete_event_tracker(eventTrackerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DeleteEventTracker", Dict{String,Any}("eventTrackerArn" => eventTrackerArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_event_tracker( eventTrackerArn, params::AbstractDict{String}; @@ -1270,14 +1230,12 @@ Deletes a filter. - `filter_arn`: The ARN of the filter to delete. """ -function delete_filter(filterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "DeleteFilter", - Dict{String,Any}("filterArn" => filterArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_filter(filterArn; aws_config::AbstractAWSConfig=current_aws_config()) = personalize( + "DeleteFilter", + Dict{String,Any}("filterArn" => filterArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_filter( filterArn, params::AbstractDict{String}; @@ -1303,16 +1261,14 @@ Deletes a metric attribution. - `metric_attribution_arn`: The metric attribution's Amazon Resource Name (ARN). """ -function delete_metric_attribution( +delete_metric_attribution( metricAttributionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DeleteMetricAttribution", + Dict{String,Any}("metricAttributionArn" => metricAttributionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DeleteMetricAttribution", - Dict{String,Any}("metricAttributionArn" => metricAttributionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_metric_attribution( metricAttributionArn, params::AbstractDict{String}; @@ -1343,16 +1299,13 @@ a GetRecommendations request. - `recommender_arn`: The Amazon Resource Name (ARN) of the recommender to delete. """ -function delete_recommender( - recommenderArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +delete_recommender(recommenderArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DeleteRecommender", Dict{String,Any}("recommenderArn" => recommenderArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_recommender( recommenderArn, params::AbstractDict{String}; @@ -1379,14 +1332,12 @@ schema. For more information on schemas, see CreateSchema. - `schema_arn`: The Amazon Resource Name (ARN) of the schema to delete. """ -function delete_schema(schemaArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "DeleteSchema", - Dict{String,Any}("schemaArn" => schemaArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_schema(schemaArn; aws_config::AbstractAWSConfig=current_aws_config()) = personalize( + "DeleteSchema", + Dict{String,Any}("schemaArn" => schemaArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_schema( schemaArn, params::AbstractDict{String}; @@ -1416,14 +1367,13 @@ PENDING or IN PROGRESS state. For more information on solutions, see CreateSolut - `solution_arn`: The ARN of the solution to delete. """ -function delete_solution(solutionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +delete_solution(solutionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DeleteSolution", Dict{String,Any}("solutionArn" => solutionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_solution( solutionArn, params::AbstractDict{String}; @@ -1449,16 +1399,13 @@ Describes the given algorithm. - `algorithm_arn`: The Amazon Resource Name (ARN) of the algorithm to describe. """ -function describe_algorithm( - algorithmArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +describe_algorithm(algorithmArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DescribeAlgorithm", Dict{String,Any}("algorithmArn" => algorithmArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_algorithm( algorithmArn, params::AbstractDict{String}; @@ -1486,16 +1433,14 @@ generate the recommendations. - `batch_inference_job_arn`: The ARN of the batch inference job to describe. """ -function describe_batch_inference_job( +describe_batch_inference_job( batchInferenceJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeBatchInferenceJob", + Dict{String,Any}("batchInferenceJobArn" => batchInferenceJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeBatchInferenceJob", - Dict{String,Any}("batchInferenceJobArn" => batchInferenceJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_batch_inference_job( batchInferenceJobArn, params::AbstractDict{String}; @@ -1527,16 +1472,14 @@ generate segments. - `batch_segment_job_arn`: The ARN of the batch segment job to describe. """ -function describe_batch_segment_job( +describe_batch_segment_job( batchSegmentJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeBatchSegmentJob", + Dict{String,Any}("batchSegmentJobArn" => batchSegmentJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeBatchSegmentJob", - Dict{String,Any}("batchSegmentJobArn" => batchSegmentJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_batch_segment_job( batchSegmentJobArn, params::AbstractDict{String}; @@ -1568,14 +1511,13 @@ CreateCampaign. - `campaign_arn`: The Amazon Resource Name (ARN) of the campaign. """ -function describe_campaign(campaignArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +describe_campaign(campaignArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DescribeCampaign", Dict{String,Any}("campaignArn" => campaignArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_campaign( campaignArn, params::AbstractDict{String}; @@ -1601,16 +1543,14 @@ Describes the data deletion job created by CreateDataDeletionJob, including the - `data_deletion_job_arn`: The Amazon Resource Name (ARN) of the data deletion job. """ -function describe_data_deletion_job( +describe_data_deletion_job( dataDeletionJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeDataDeletionJob", + Dict{String,Any}("dataDeletionJobArn" => dataDeletionJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeDataDeletionJob", - Dict{String,Any}("dataDeletionJobArn" => dataDeletionJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_data_deletion_job( dataDeletionJobArn, params::AbstractDict{String}; @@ -1638,14 +1578,13 @@ Describes the given dataset. For more information on datasets, see CreateDataset - `dataset_arn`: The Amazon Resource Name (ARN) of the dataset to describe. """ -function describe_dataset(datasetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +describe_dataset(datasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DescribeDataset", Dict{String,Any}("datasetArn" => datasetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dataset( datasetArn, params::AbstractDict{String}; @@ -1673,16 +1612,14 @@ job status. describe. """ -function describe_dataset_export_job( +describe_dataset_export_job( datasetExportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeDatasetExportJob", + Dict{String,Any}("datasetExportJobArn" => datasetExportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeDatasetExportJob", - Dict{String,Any}("datasetExportJobArn" => datasetExportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dataset_export_job( datasetExportJobArn, params::AbstractDict{String}; @@ -1713,16 +1650,14 @@ CreateDatasetGroup. - `dataset_group_arn`: The Amazon Resource Name (ARN) of the dataset group to describe. """ -function describe_dataset_group( +describe_dataset_group( datasetGroupArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeDatasetGroup", + Dict{String,Any}("datasetGroupArn" => datasetGroupArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeDatasetGroup", - Dict{String,Any}("datasetGroupArn" => datasetGroupArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dataset_group( datasetGroupArn, params::AbstractDict{String}; @@ -1752,16 +1687,14 @@ job status. describe. """ -function describe_dataset_import_job( +describe_dataset_import_job( datasetImportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeDatasetImportJob", + Dict{String,Any}("datasetImportJobArn" => datasetImportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeDatasetImportJob", - Dict{String,Any}("datasetImportJobArn" => datasetImportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dataset_import_job( datasetImportJobArn, params::AbstractDict{String}; @@ -1792,16 +1725,14 @@ tracker. For more information on event trackers, see CreateEventTracker. - `event_tracker_arn`: The Amazon Resource Name (ARN) of the event tracker to describe. """ -function describe_event_tracker( +describe_event_tracker( eventTrackerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeEventTracker", + Dict{String,Any}("eventTrackerArn" => eventTrackerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeEventTracker", - Dict{String,Any}("eventTrackerArn" => eventTrackerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_event_tracker( eventTrackerArn, params::AbstractDict{String}; @@ -1830,16 +1761,14 @@ Describes the given feature transformation. transformation to describe. """ -function describe_feature_transformation( +describe_feature_transformation( featureTransformationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeFeatureTransformation", + Dict{String,Any}("featureTransformationArn" => featureTransformationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeFeatureTransformation", - Dict{String,Any}("featureTransformationArn" => featureTransformationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_feature_transformation( featureTransformationArn, params::AbstractDict{String}; @@ -1869,14 +1798,13 @@ Describes a filter's properties. - `filter_arn`: The ARN of the filter to describe. """ -function describe_filter(filterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +describe_filter(filterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DescribeFilter", Dict{String,Any}("filterArn" => filterArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_filter( filterArn, params::AbstractDict{String}; @@ -1902,16 +1830,14 @@ Describes a metric attribution. - `metric_attribution_arn`: The metric attribution's Amazon Resource Name (ARN). """ -function describe_metric_attribution( +describe_metric_attribution( metricAttributionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeMetricAttribution", + Dict{String,Any}("metricAttributionArn" => metricAttributionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeMetricAttribution", - Dict{String,Any}("metricAttributionArn" => metricAttributionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_metric_attribution( metricAttributionArn, params::AbstractDict{String}; @@ -1947,14 +1873,13 @@ GetRecommendations API. - `recipe_arn`: The Amazon Resource Name (ARN) of the recipe to describe. """ -function describe_recipe(recipeArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +describe_recipe(recipeArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DescribeRecipe", Dict{String,Any}("recipeArn" => recipeArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_recipe( recipeArn, params::AbstractDict{String}; @@ -1986,16 +1911,13 @@ recommenders, see CreateRecommender. - `recommender_arn`: The Amazon Resource Name (ARN) of the recommender to describe. """ -function describe_recommender( - recommenderArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +describe_recommender(recommenderArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DescribeRecommender", Dict{String,Any}("recommenderArn" => recommenderArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_recommender( recommenderArn, params::AbstractDict{String}; @@ -2021,14 +1943,13 @@ Describes a schema. For more information on schemas, see CreateSchema. - `schema_arn`: The Amazon Resource Name (ARN) of the schema to retrieve. """ -function describe_schema(schemaArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +describe_schema(schemaArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DescribeSchema", Dict{String,Any}("schemaArn" => schemaArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_schema( schemaArn, params::AbstractDict{String}; @@ -2054,14 +1975,13 @@ Describes a solution. For more information on solutions, see CreateSolution. - `solution_arn`: The Amazon Resource Name (ARN) of the solution to describe. """ -function describe_solution(solutionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +describe_solution(solutionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "DescribeSolution", Dict{String,Any}("solutionArn" => solutionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_solution( solutionArn, params::AbstractDict{String}; @@ -2088,16 +2008,14 @@ CreateSolution - `solution_version_arn`: The Amazon Resource Name (ARN) of the solution version. """ -function describe_solution_version( +describe_solution_version( solutionVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "DescribeSolutionVersion", + Dict{String,Any}("solutionVersionArn" => solutionVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "DescribeSolutionVersion", - Dict{String,Any}("solutionVersionArn" => solutionVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_solution_version( solutionVersionArn, params::AbstractDict{String}; @@ -2126,16 +2044,14 @@ Gets the metrics for the specified solution version. to get metrics. """ -function get_solution_metrics( +get_solution_metrics( solutionVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "GetSolutionMetrics", + Dict{String,Any}("solutionVersionArn" => solutionVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "GetSolutionMetrics", - Dict{String,Any}("solutionVersionArn" => solutionVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_solution_metrics( solutionVersionArn, params::AbstractDict{String}; @@ -2167,11 +2083,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"solutionVersionArn"`: The Amazon Resource Name (ARN) of the solution version from which the batch inference jobs were created. """ -function list_batch_inference_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +list_batch_inference_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "ListBatchInferenceJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_batch_inference_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2198,11 +2113,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"solutionVersionArn"`: The Amazon Resource Name (ARN) of the solution version that the batch segment jobs used to generate batch segments. """ -function list_batch_segment_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListBatchSegmentJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_batch_segment_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = personalize( + "ListBatchSegmentJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_batch_segment_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2232,11 +2145,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for. When a solution is not specified, all the campaigns associated with the account are listed. """ -function list_campaigns(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListCampaigns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_campaigns(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListCampaigns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_campaigns( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2263,11 +2173,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListDataDeletionJobs for getting the next set of jobs (if they exist). """ -function list_data_deletion_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListDataDeletionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_data_deletion_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = personalize( + "ListDataDeletionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_data_deletion_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2297,11 +2205,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListDatasetExportJobs for getting the next set of dataset export jobs (if they exist). """ -function list_dataset_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +list_dataset_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "ListDatasetExportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_dataset_export_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2327,11 +2234,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListDatasetGroups for getting the next set of dataset groups (if they exist). """ -function list_dataset_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListDatasetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_dataset_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListDatasetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_dataset_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2358,11 +2262,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListDatasetImportJobs for getting the next set of dataset import jobs (if they exist). """ -function list_dataset_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +list_dataset_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "ListDatasetImportJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_dataset_import_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2390,11 +2293,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListDatasets for getting the next set of dataset import jobs (if they exist). """ -function list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListDatasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_datasets(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListDatasets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_datasets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2418,11 +2318,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListEventTrackers for getting the next set of event trackers (if they exist). """ -function list_event_trackers(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListEventTrackers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_event_trackers(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListEventTrackers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_event_trackers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2444,11 +2341,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListFilters for getting the next set of filters (if they exist). """ -function list_filters(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListFilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_filters(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListFilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_filters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2471,15 +2365,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_metric_attribution_metrics(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +list_metric_attribution_metrics(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "ListMetricAttributionMetrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_metric_attribution_metrics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2505,11 +2396,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Specify the pagination token from a previous request to retrieve the next page of results. """ -function list_metric_attributions(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +list_metric_attributions(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "ListMetricAttributions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_metric_attributions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2538,11 +2428,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next set of recipes (if they exist). - `"recipeProvider"`: The default is SERVICE. """ -function list_recipes(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListRecipes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_recipes(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListRecipes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_recipes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2569,11 +2456,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListRecommenders for getting the next set of recommenders (if they exist). """ -function list_recommenders(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListRecommenders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_recommenders(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListRecommenders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_recommenders( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2596,11 +2480,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListSchemas for getting the next set of schemas (if they exist). """ -function list_schemas(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListSchemas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_schemas(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListSchemas"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_schemas( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2624,11 +2505,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys getting the next set of solution versions (if they exist). - `"solutionArn"`: The Amazon Resource Name (ARN) of the solution. """ -function list_solution_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListSolutionVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_solution_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = personalize( + "ListSolutionVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_solution_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2656,11 +2535,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token returned from the previous call to ListSolutions for getting the next set of solutions (if they exist). """ -function list_solutions(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( - "ListSolutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_solutions(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize("ListSolutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_solutions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2679,16 +2555,13 @@ Get a list of tags attached to a resource. - `resource_arn`: The resource's Amazon Resource Name (ARN). """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2715,16 +2588,13 @@ models, but resumes billing and automatic retraining for the recommender. - `recommender_arn`: The Amazon Resource Name (ARN) of the recommender to start. """ -function start_recommender( - recommenderArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +start_recommender(recommenderArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "StartRecommender", Dict{String,Any}("recommenderArn" => recommenderArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_recommender( recommenderArn, params::AbstractDict{String}; @@ -2751,16 +2621,13 @@ retraining for the recommender. - `recommender_arn`: The Amazon Resource Name (ARN) of the recommender to stop. """ -function stop_recommender( - recommenderArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +stop_recommender(recommenderArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "StopRecommender", Dict{String,Any}("recommenderArn" => recommenderArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_recommender( recommenderArn, params::AbstractDict{String}; @@ -2792,16 +2659,14 @@ once it has been stopped. to stop creating. """ -function stop_solution_version_creation( +stop_solution_version_creation( solutionVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "StopSolutionVersionCreation", + Dict{String,Any}("solutionVersionArn" => solutionVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "StopSolutionVersionCreation", - Dict{String,Any}("solutionVersionArn" => solutionVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_solution_version_creation( solutionVersionArn, params::AbstractDict{String}; @@ -2831,14 +2696,13 @@ Add a list of tags to a resource. Personalize resources. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2871,16 +2735,13 @@ Removing tags from Amazon Personalize resources. - `tag_keys`: The keys of the tags to be removed. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2938,14 +2799,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information about automatic campaign updates, see Enabling automatic campaign updates. """ -function update_campaign(campaignArn; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +update_campaign(campaignArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "UpdateCampaign", Dict{String,Any}("campaignArn" => campaignArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_campaign( campaignArn, params::AbstractDict{String}; @@ -2973,16 +2833,13 @@ see Replacing a dataset's schema. - `schema_arn`: The Amazon Resource Name (ARN) of the new schema you want use. """ -function update_dataset( - datasetArn, schemaArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize( +update_dataset(datasetArn, schemaArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "UpdateDataset", Dict{String,Any}("datasetArn" => datasetArn, "schemaArn" => schemaArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_dataset( datasetArn, schemaArn, @@ -3017,11 +2874,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"metricsOutputConfig"`: An output config for the metric attribution. - `"removeMetrics"`: Remove metric attributes from the metric attribution. """ -function update_metric_attribution(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize( +update_metric_attribution(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( "UpdateMetricAttribution"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_metric_attribution( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3049,18 +2905,16 @@ latestRecommenderUpdate returned in the DescribeRecommender operation. - `recommender_config`: The configuration details of the recommender. """ -function update_recommender( +update_recommender( recommenderArn, recommenderConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize( + "UpdateRecommender", + Dict{String,Any}( + "recommenderArn" => recommenderArn, "recommenderConfig" => recommenderConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize( - "UpdateRecommender", - Dict{String,Any}( - "recommenderArn" => recommenderArn, "recommenderConfig" => recommenderConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_recommender( recommenderArn, recommenderConfig, @@ -3083,3 +2937,53 @@ function update_recommender( feature_set=SERVICE_FEATURE_SET, ) end + +""" + update_solution(solution_arn) + update_solution(solution_arn, params::Dict{String,<:Any}) + +Updates an Amazon Personalize solution to use a different automatic training configuration. +When you update a solution, you can change whether the solution uses automatic training, +and you can change the training frequency. For more information about updating a solution, +see Updating a solution. A solution update can be in one of the following states: CREATE +PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED To get the status of a +solution update, call the DescribeSolution API operation and find the status in the +latestSolutionUpdate. + +# Arguments +- `solution_arn`: The Amazon Resource Name (ARN) of the solution to update. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"performAutoTraining"`: Whether the solution uses automatic training to create new + solution versions (trained models). You can change the training frequency by specifying a + schedulingExpression in the AutoTrainingConfig as part of solution configuration. If you + turn on automatic training, the first automatic training starts within one hour after the + solution update completes. If you manually create a solution version within the hour, the + solution skips the first automatic training. For more information about automatic training, + see Configuring automatic training. After training starts, you can get the solution + version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get + its status, use the DescribeSolutionVersion. +- `"solutionUpdateConfig"`: The new configuration details of the solution. +""" +update_solution(solutionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize( + "UpdateSolution", + Dict{String,Any}("solutionArn" => solutionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function update_solution( + solutionArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return personalize( + "UpdateSolution", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("solutionArn" => solutionArn), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end diff --git a/src/services/personalize_events.jl b/src/services/personalize_events.jl index cd3abc61f..7d9978338 100644 --- a/src/services/personalize_events.jl +++ b/src/services/personalize_events.jl @@ -21,19 +21,17 @@ in an Actions dataset, see Actions dataset. you. For more information, see Action interaction event tracker ID. """ -function put_action_interactions( +put_action_interactions( actionInteractions, trackingId; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize_events( + "POST", + "/action-interactions", + Dict{String,Any}( + "actionInteractions" => actionInteractions, "trackingId" => trackingId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize_events( - "POST", - "/action-interactions", - Dict{String,Any}( - "actionInteractions" => actionInteractions, "trackingId" => trackingId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_action_interactions( actionInteractions, trackingId, @@ -70,17 +68,14 @@ individually. action or actions to. """ -function put_actions( - actions, datasetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return personalize_events( +put_actions(actions, datasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize_events( "POST", "/actions", Dict{String,Any}("actions" => actions, "datasetArn" => datasetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_actions( actions, datasetArn, @@ -122,19 +117,17 @@ events. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"userId"`: The user associated with the event. """ -function put_events( +put_events( eventList, sessionId, trackingId; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize_events( + "POST", + "/events", + Dict{String,Any}( + "eventList" => eventList, "sessionId" => sessionId, "trackingId" => trackingId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize_events( - "POST", - "/events", - Dict{String,Any}( - "eventList" => eventList, "sessionId" => sessionId, "trackingId" => trackingId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_events( eventList, sessionId, @@ -174,15 +167,14 @@ individually. - `items`: A list of item data. """ -function put_items(datasetArn, items; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize_events( +put_items(datasetArn, items; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize_events( "POST", "/items", Dict{String,Any}("datasetArn" => datasetArn, "items" => items); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_items( datasetArn, items, @@ -217,15 +209,14 @@ individually. - `users`: A list of user data. """ -function put_users(datasetArn, users; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize_events( +put_users(datasetArn, users; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize_events( "POST", "/users", Dict{String,Any}("datasetArn" => datasetArn, "users" => users); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_users( datasetArn, users, diff --git a/src/services/personalize_runtime.jl b/src/services/personalize_runtime.jl index 07bb43739..2b56b018e 100644 --- a/src/services/personalize_runtime.jl +++ b/src/services/personalize_runtime.jl @@ -34,14 +34,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"numResults"`: The number of results to return. The default is 5. The maximum is 100. - `"userId"`: The user ID of the user to provide action recommendations for. """ -function get_action_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize_runtime( +get_action_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize_runtime( "POST", "/action-recommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_action_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -93,19 +92,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign. """ -function get_personalized_ranking( +get_personalized_ranking( campaignArn, inputList, userId; aws_config::AbstractAWSConfig=current_aws_config() +) = personalize_runtime( + "POST", + "/personalize-ranking", + Dict{String,Any}( + "campaignArn" => campaignArn, "inputList" => inputList, "userId" => userId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return personalize_runtime( - "POST", - "/personalize-ranking", - Dict{String,Any}( - "campaignArn" => campaignArn, "inputList" => inputList, "userId" => userId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_personalized_ranking( campaignArn, inputList, @@ -183,11 +180,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"userId"`: The user ID to provide recommendations for. Required for USER_PERSONALIZATION recipe type. """ -function get_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return personalize_runtime( +get_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + personalize_runtime( "POST", "/recommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/pi.jl b/src/services/pi.jl index 56ed71815..0aad0921a 100644 --- a/src/services/pi.jl +++ b/src/services/pi.jl @@ -24,25 +24,23 @@ Creates a new performance analysis report for a specific time period for the DB Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The metadata assigned to the analysis report consisting of a key-value pair. """ -function create_performance_analysis_report( +create_performance_analysis_report( EndTime, Identifier, ServiceType, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = pi( + "CreatePerformanceAnalysisReport", + Dict{String,Any}( + "EndTime" => EndTime, + "Identifier" => Identifier, + "ServiceType" => ServiceType, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "CreatePerformanceAnalysisReport", - Dict{String,Any}( - "EndTime" => EndTime, - "Identifier" => Identifier, - "ServiceType" => ServiceType, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_performance_analysis_report( EndTime, Identifier, @@ -87,23 +85,21 @@ Deletes a performance analysis report. return metrics. Valid value is RDS. """ -function delete_performance_analysis_report( +delete_performance_analysis_report( AnalysisReportId, Identifier, ServiceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = pi( + "DeletePerformanceAnalysisReport", + Dict{String,Any}( + "AnalysisReportId" => AnalysisReportId, + "Identifier" => Identifier, + "ServiceType" => ServiceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "DeletePerformanceAnalysisReport", - Dict{String,Any}( - "AnalysisReportId" => AnalysisReportId, - "Identifier" => Identifier, - "ServiceType" => ServiceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_performance_analysis_report( AnalysisReportId, Identifier, @@ -173,7 +169,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"AdditionalMetrics\" : { \"string\" : \"string\" }. - `"Filter"`: One or more filters to apply in the request. Restrictions: Any number of filters by the same dimension, as specified in the GroupBy or Partition parameters. A - single filter for any other dimension in this dimension group. + single filter for any other dimension in this dimension group. The db.sql.db_id filter + isn't available for RDS for SQL Server DB instances. - `"MaxResults"`: The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved. @@ -189,7 +186,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response. """ -function describe_dimension_keys( +describe_dimension_keys( EndTime, GroupBy, Identifier, @@ -197,21 +194,19 @@ function describe_dimension_keys( ServiceType, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = pi( + "DescribeDimensionKeys", + Dict{String,Any}( + "EndTime" => EndTime, + "GroupBy" => GroupBy, + "Identifier" => Identifier, + "Metric" => Metric, + "ServiceType" => ServiceType, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "DescribeDimensionKeys", - Dict{String,Any}( - "EndTime" => EndTime, - "GroupBy" => GroupBy, - "Identifier" => Identifier, - "Metric" => Metric, - "ServiceType" => ServiceType, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dimension_keys( EndTime, GroupBy, @@ -278,25 +273,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Specify either the full dimension name db.query.statement or the short dimension name statement (DocumentDB only). """ -function get_dimension_key_details( +get_dimension_key_details( Group, GroupIdentifier, Identifier, ServiceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = pi( + "GetDimensionKeyDetails", + Dict{String,Any}( + "Group" => Group, + "GroupIdentifier" => GroupIdentifier, + "Identifier" => Identifier, + "ServiceType" => ServiceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "GetDimensionKeyDetails", - Dict{String,Any}( - "Group" => Group, - "GroupIdentifier" => GroupIdentifier, - "Identifier" => Identifier, - "ServiceType" => ServiceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_dimension_key_details( Group, GroupIdentifier, @@ -350,23 +343,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TextFormat"`: Indicates the text format in the report. The options are PLAIN_TEXT or MARKDOWN. The default value is plain text. """ -function get_performance_analysis_report( +get_performance_analysis_report( AnalysisReportId, Identifier, ServiceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = pi( + "GetPerformanceAnalysisReport", + Dict{String,Any}( + "AnalysisReportId" => AnalysisReportId, + "Identifier" => Identifier, + "ServiceType" => ServiceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "GetPerformanceAnalysisReport", - Dict{String,Any}( - "AnalysisReportId" => AnalysisReportId, - "Identifier" => Identifier, - "ServiceType" => ServiceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_performance_analysis_report( AnalysisReportId, Identifier, @@ -408,16 +399,14 @@ a feature is turned on or off on a specific DB instance. metrics. """ -function get_resource_metadata( +get_resource_metadata( Identifier, ServiceType; aws_config::AbstractAWSConfig=current_aws_config() +) = pi( + "GetResourceMetadata", + Dict{String,Any}("Identifier" => Identifier, "ServiceType" => ServiceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "GetResourceMetadata", - Dict{String,Any}("Identifier" => Identifier, "ServiceType" => ServiceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_metadata( Identifier, ServiceType, @@ -488,27 +477,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data points in the response. """ -function get_resource_metrics( +get_resource_metrics( EndTime, Identifier, MetricQueries, ServiceType, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = pi( + "GetResourceMetrics", + Dict{String,Any}( + "EndTime" => EndTime, + "Identifier" => Identifier, + "MetricQueries" => MetricQueries, + "ServiceType" => ServiceType, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "GetResourceMetrics", - Dict{String,Any}( - "EndTime" => EndTime, - "Identifier" => Identifier, - "MetricQueries" => MetricQueries, - "ServiceType" => ServiceType, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_metrics( EndTime, Identifier, @@ -569,18 +556,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords. """ -function list_available_resource_dimensions( +list_available_resource_dimensions( Identifier, Metrics, ServiceType; aws_config::AbstractAWSConfig=current_aws_config() +) = pi( + "ListAvailableResourceDimensions", + Dict{String,Any}( + "Identifier" => Identifier, "Metrics" => Metrics, "ServiceType" => ServiceType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "ListAvailableResourceDimensions", - Dict{String,Any}( - "Identifier" => Identifier, "Metrics" => Metrics, "ServiceType" => ServiceType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_available_resource_dimensions( Identifier, Metrics, @@ -633,20 +618,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords. """ -function list_available_resource_metrics( +list_available_resource_metrics( Identifier, MetricTypes, ServiceType; aws_config::AbstractAWSConfig=current_aws_config() +) = pi( + "ListAvailableResourceMetrics", + Dict{String,Any}( + "Identifier" => Identifier, + "MetricTypes" => MetricTypes, + "ServiceType" => ServiceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "ListAvailableResourceMetrics", - Dict{String,Any}( - "Identifier" => Identifier, - "MetricTypes" => MetricTypes, - "ServiceType" => ServiceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_available_resource_metrics( Identifier, MetricTypes, @@ -698,16 +681,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is specified, the response includes only records beyond the token, up to the value specified by MaxResults. """ -function list_performance_analysis_reports( +list_performance_analysis_reports( Identifier, ServiceType; aws_config::AbstractAWSConfig=current_aws_config() +) = pi( + "ListPerformanceAnalysisReports", + Dict{String,Any}("Identifier" => Identifier, "ServiceType" => ServiceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "ListPerformanceAnalysisReports", - Dict{String,Any}("Identifier" => Identifier, "ServiceType" => ServiceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_performance_analysis_reports( Identifier, ServiceType, @@ -742,16 +723,14 @@ Retrieves all the metadata tags associated with Amazon RDS Performance Insights Insights returns metrics. Valid value is RDS. """ -function list_tags_for_resource( +list_tags_for_resource( ResourceARN, ServiceType; aws_config::AbstractAWSConfig=current_aws_config() +) = pi( + "ListTagsForResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "ServiceType" => ServiceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "ListTagsForResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "ServiceType" => ServiceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_resource( ResourceARN, ServiceType, @@ -789,18 +768,16 @@ Adds metadata tags to the Amazon RDS Performance Insights resource. - `tags`: The metadata assigned to an Amazon RDS resource consisting of a key-value pair. """ -function tag_resource( +tag_resource( ResourceARN, ServiceType, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = pi( + "TagResource", + Dict{String,Any}( + "ResourceARN" => ResourceARN, "ServiceType" => ServiceType, "Tags" => Tags + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "TagResource", - Dict{String,Any}( - "ResourceARN" => ResourceARN, "ServiceType" => ServiceType, "Tags" => Tags - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_resource( ResourceARN, ServiceType, @@ -842,18 +819,16 @@ Deletes the metadata tags from the Amazon RDS Performance Insights resource. consisting of a key-value pair. """ -function untag_resource( +untag_resource( ResourceARN, ServiceType, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = pi( + "UntagResource", + Dict{String,Any}( + "ResourceARN" => ResourceARN, "ServiceType" => ServiceType, "TagKeys" => TagKeys + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pi( - "UntagResource", - Dict{String,Any}( - "ResourceARN" => ResourceARN, "ServiceType" => ServiceType, "TagKeys" => TagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource( ResourceARN, ServiceType, diff --git a/src/services/pinpoint.jl b/src/services/pinpoint.jl index 3f990b3a2..7bf84999b 100644 --- a/src/services/pinpoint.jl +++ b/src/services/pinpoint.jl @@ -14,17 +14,14 @@ using AWS.UUIDs - `create_application_request`: """ -function create_app( - CreateApplicationRequest; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +create_app(CreateApplicationRequest; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "POST", "/v1/apps", Dict{String,Any}("CreateApplicationRequest" => CreateApplicationRequest); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_app( CreateApplicationRequest, params::AbstractDict{String}; @@ -58,17 +55,15 @@ for an application. as the Project ID on the Amazon Pinpoint console. """ -function create_campaign( +create_campaign( WriteCampaignRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/campaigns", + Dict{String,Any}("WriteCampaignRequest" => WriteCampaignRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/campaigns", - Dict{String,Any}("WriteCampaignRequest" => WriteCampaignRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_campaign( WriteCampaignRequest, application_id, @@ -103,17 +98,15 @@ Creates a message template for messages that are sent through the email channel. alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive. """ -function create_email_template( +create_email_template( EmailTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/templates/$(template-name)/email", + Dict{String,Any}("EmailTemplateRequest" => EmailTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/templates/$(template-name)/email", - Dict{String,Any}("EmailTemplateRequest" => EmailTemplateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_email_template( EmailTemplateRequest, template_name, @@ -147,17 +140,15 @@ Creates an export job for an application. as the Project ID on the Amazon Pinpoint console. """ -function create_export_job( +create_export_job( ExportJobRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/jobs/export", + Dict{String,Any}("ExportJobRequest" => ExportJobRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/jobs/export", - Dict{String,Any}("ExportJobRequest" => ExportJobRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_export_job( ExportJobRequest, application_id, @@ -189,17 +180,15 @@ Creates an import job for an application. as the Project ID on the Amazon Pinpoint console. """ -function create_import_job( +create_import_job( ImportJobRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/jobs/import", + Dict{String,Any}("ImportJobRequest" => ImportJobRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/jobs/import", - Dict{String,Any}("ImportJobRequest" => ImportJobRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_import_job( ImportJobRequest, application_id, @@ -232,17 +221,15 @@ Creates a new message template for messages using the in-app message channel. alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive. """ -function create_in_app_template( +create_in_app_template( InAppTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/templates/$(template-name)/inapp", + Dict{String,Any}("InAppTemplateRequest" => InAppTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/templates/$(template-name)/inapp", - Dict{String,Any}("InAppTemplateRequest" => InAppTemplateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_in_app_template( InAppTemplateRequest, template_name, @@ -276,17 +263,15 @@ Creates a journey for an application. as the Project ID on the Amazon Pinpoint console. """ -function create_journey( +create_journey( WriteJourneyRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/journeys", + Dict{String,Any}("WriteJourneyRequest" => WriteJourneyRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/journeys", - Dict{String,Any}("WriteJourneyRequest" => WriteJourneyRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_journey( WriteJourneyRequest, application_id, @@ -321,21 +306,17 @@ Creates a message template for messages that are sent through a push notificatio alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive. """ -function create_push_template( +create_push_template( PushNotificationTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "POST", + "/v1/templates/$(template-name)/push", + Dict{String,Any}("PushNotificationTemplateRequest" => PushNotificationTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/templates/$(template-name)/push", - Dict{String,Any}( - "PushNotificationTemplateRequest" => PushNotificationTemplateRequest - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_push_template( PushNotificationTemplateRequest, template_name, @@ -369,19 +350,15 @@ Creates an Amazon Pinpoint configuration for a recommender model. - `create_recommender_configuration`: """ -function create_recommender_configuration( +create_recommender_configuration( CreateRecommenderConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/recommenders", + Dict{String,Any}("CreateRecommenderConfiguration" => CreateRecommenderConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/recommenders", - Dict{String,Any}( - "CreateRecommenderConfiguration" => CreateRecommenderConfiguration - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_recommender_configuration( CreateRecommenderConfiguration, params::AbstractDict{String}; @@ -417,17 +394,15 @@ settings for an existing segment that's associated with an application. as the Project ID on the Amazon Pinpoint console. """ -function create_segment( +create_segment( WriteSegmentRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/segments", + Dict{String,Any}("WriteSegmentRequest" => WriteSegmentRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/segments", - Dict{String,Any}("WriteSegmentRequest" => WriteSegmentRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_segment( WriteSegmentRequest, application_id, @@ -462,17 +437,15 @@ Creates a message template for messages that are sent through the SMS channel. alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive. """ -function create_sms_template( +create_sms_template( SMSTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/templates/$(template-name)/sms", + Dict{String,Any}("SMSTemplateRequest" => SMSTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/templates/$(template-name)/sms", - Dict{String,Any}("SMSTemplateRequest" => SMSTemplateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sms_template( SMSTemplateRequest, template_name, @@ -505,17 +478,15 @@ Creates a message template for messages that are sent through the voice channel. alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive. """ -function create_voice_template( +create_voice_template( VoiceTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/templates/$(template-name)/voice", + Dict{String,Any}("VoiceTemplateRequest" => VoiceTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/templates/$(template-name)/voice", - Dict{String,Any}("VoiceTemplateRequest" => VoiceTemplateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_voice_template( VoiceTemplateRequest, template_name, @@ -549,16 +520,13 @@ channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_adm_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_adm_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/apps/$(application-id)/channels/adm"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_adm_channel( application_id, params::AbstractDict{String}; @@ -585,16 +553,13 @@ channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_apns_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_apns_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/apps/$(application-id)/channels/apns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_apns_channel( application_id, params::AbstractDict{String}; @@ -621,16 +586,14 @@ the channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_apns_sandbox_channel( +delete_apns_sandbox_channel( application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)/channels/apns_sandbox"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)/channels/apns_sandbox"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_apns_sandbox_channel( application_id, params::AbstractDict{String}; @@ -657,16 +620,14 @@ channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_apns_voip_channel( +delete_apns_voip_channel( application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)/channels/apns_voip"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)/channels/apns_voip"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_apns_voip_channel( application_id, params::AbstractDict{String}; @@ -693,16 +654,14 @@ for the channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_apns_voip_sandbox_channel( +delete_apns_voip_sandbox_channel( application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)/channels/apns_voip_sandbox"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)/channels/apns_voip_sandbox"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_apns_voip_sandbox_channel( application_id, params::AbstractDict{String}; @@ -728,14 +687,12 @@ Deletes an application. as the Project ID on the Amazon Pinpoint console. """ -function delete_app(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_app(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_app( application_id, params::AbstractDict{String}; @@ -762,16 +719,13 @@ channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_baidu_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_baidu_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/apps/$(application-id)/channels/baidu"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_baidu_channel( application_id, params::AbstractDict{String}; @@ -798,16 +752,14 @@ Deletes a campaign from an application. - `campaign-id`: The unique identifier for the campaign. """ -function delete_campaign( +delete_campaign( application_id, campaign_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)/campaigns/$(campaign-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)/campaigns/$(campaign-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_campaign( application_id, campaign_id, @@ -835,16 +787,13 @@ channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_email_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_email_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/apps/$(application-id)/channels/email"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_email_channel( application_id, params::AbstractDict{String}; @@ -884,16 +833,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function delete_email_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_email_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/templates/$(template-name)/email"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_email_template( template_name, params::AbstractDict{String}; @@ -921,16 +867,14 @@ Deletes an endpoint from an application. can't contain , { or }. """ -function delete_endpoint( +delete_endpoint( application_id, endpoint_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)/endpoints/$(endpoint-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)/endpoints/$(endpoint-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_endpoint( application_id, endpoint_id, @@ -957,16 +901,13 @@ Deletes the event stream for an application. as the Project ID on the Amazon Pinpoint console. """ -function delete_event_stream( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_event_stream(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/apps/$(application-id)/eventstream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_event_stream( application_id, params::AbstractDict{String}; @@ -993,16 +934,13 @@ channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_gcm_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_gcm_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/apps/$(application-id)/channels/gcm"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_gcm_channel( application_id, params::AbstractDict{String}; @@ -1042,16 +980,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function delete_in_app_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_in_app_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/templates/$(template-name)/inapp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_in_app_template( template_name, params::AbstractDict{String}; @@ -1078,16 +1013,14 @@ Deletes a journey from an application. - `journey-id`: The unique identifier for the journey. """ -function delete_journey( +delete_journey( application_id, journey_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)/journeys/$(journey-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)/journeys/$(journey-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_journey( application_id, journey_id, @@ -1128,16 +1061,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function delete_push_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_push_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/templates/$(template-name)/push"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_push_template( template_name, params::AbstractDict{String}; @@ -1163,16 +1093,14 @@ Deletes an Amazon Pinpoint configuration for a recommender model. identifier is displayed as the Recommender ID on the Amazon Pinpoint console. """ -function delete_recommender_configuration( +delete_recommender_configuration( recommender_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/recommenders/$(recommender-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/recommenders/$(recommender-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_recommender_configuration( recommender_id, params::AbstractDict{String}; @@ -1199,16 +1127,14 @@ Deletes a segment from an application. - `segment-id`: The unique identifier for the segment. """ -function delete_segment( +delete_segment( application_id, segment_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)/segments/$(segment-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)/segments/$(segment-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_segment( application_id, segment_id, @@ -1236,16 +1162,13 @@ channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_sms_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_sms_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/apps/$(application-id)/channels/sms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_sms_channel( application_id, params::AbstractDict{String}; @@ -1285,16 +1208,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function delete_sms_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_sms_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/templates/$(template-name)/sms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_sms_template( template_name, params::AbstractDict{String}; @@ -1321,16 +1241,14 @@ Deletes all the endpoints that are associated with a specific user ID. - `user-id`: The unique identifier for the user. """ -function delete_user_endpoints( +delete_user_endpoints( application_id, user_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "DELETE", + "/v1/apps/$(application-id)/users/$(user-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "DELETE", - "/v1/apps/$(application-id)/users/$(user-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_endpoints( application_id, user_id, @@ -1358,16 +1276,13 @@ channel. as the Project ID on the Amazon Pinpoint console. """ -function delete_voice_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_voice_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/apps/$(application-id)/channels/voice"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_voice_channel( application_id, params::AbstractDict{String}; @@ -1407,16 +1322,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function delete_voice_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +delete_voice_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/templates/$(template-name)/voice"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_voice_template( template_name, params::AbstractDict{String}; @@ -1442,14 +1354,13 @@ Retrieves information about the status and settings of the ADM channel for an ap as the Project ID on the Amazon Pinpoint console. """ -function get_adm_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( +get_adm_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/channels/adm"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_adm_channel( application_id, params::AbstractDict{String}; @@ -1475,16 +1386,13 @@ Retrieves information about the status and settings of the APNs channel for an a as the Project ID on the Amazon Pinpoint console. """ -function get_apns_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_apns_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/channels/apns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_apns_channel( application_id, params::AbstractDict{String}; @@ -1511,16 +1419,14 @@ application. as the Project ID on the Amazon Pinpoint console. """ -function get_apns_sandbox_channel( +get_apns_sandbox_channel( application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/channels/apns_sandbox"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/channels/apns_sandbox"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_apns_sandbox_channel( application_id, params::AbstractDict{String}; @@ -1547,16 +1453,13 @@ application. as the Project ID on the Amazon Pinpoint console. """ -function get_apns_voip_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_apns_voip_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/channels/apns_voip"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_apns_voip_channel( application_id, params::AbstractDict{String}; @@ -1583,16 +1486,14 @@ application. as the Project ID on the Amazon Pinpoint console. """ -function get_apns_voip_sandbox_channel( +get_apns_voip_sandbox_channel( application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/channels/apns_voip_sandbox"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/channels/apns_voip_sandbox"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_apns_voip_sandbox_channel( application_id, params::AbstractDict{String}; @@ -1618,14 +1519,12 @@ Retrieves information about an application. as the Project ID on the Amazon Pinpoint console. """ -function get_app(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( - "GET", - "/v1/apps/$(application-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_app(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = pinpoint( + "GET", + "/v1/apps/$(application-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_app( application_id, params::AbstractDict{String}; @@ -1671,16 +1570,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day. """ -function get_application_date_range_kpi( +get_application_date_range_kpi( application_id, kpi_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/kpis/daterange/$(kpi-name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/kpis/daterange/$(kpi-name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_date_range_kpi( application_id, kpi_name, @@ -1707,16 +1604,14 @@ Retrieves information about the settings for an application. as the Project ID on the Amazon Pinpoint console. """ -function get_application_settings( +get_application_settings( application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_settings( application_id, params::AbstractDict{String}; @@ -1745,11 +1640,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_apps(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( - "GET", "/v1/apps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_apps(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint("GET", "/v1/apps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_apps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1769,16 +1661,13 @@ Retrieves information about the status and settings of the Baidu channel for an as the Project ID on the Amazon Pinpoint console. """ -function get_baidu_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_baidu_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/channels/baidu"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_baidu_channel( application_id, params::AbstractDict{String}; @@ -1805,16 +1694,14 @@ Retrieves information about the status, configuration, and other settings for a - `campaign-id`: The unique identifier for the campaign. """ -function get_campaign( +get_campaign( application_id, campaign_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/campaigns/$(campaign-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/campaigns/$(campaign-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_campaign( application_id, campaign_id, @@ -1848,16 +1735,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_campaign_activities( +get_campaign_activities( application_id, campaign_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/campaigns/$(campaign-id)/activities"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/campaigns/$(campaign-id)/activities"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_campaign_activities( application_id, campaign_id, @@ -1904,19 +1789,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day. """ -function get_campaign_date_range_kpi( +get_campaign_date_range_kpi( application_id, campaign_id, kpi_name; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/campaigns/$(campaign-id)/kpis/daterange/$(kpi-name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/campaigns/$(campaign-id)/kpis/daterange/$(kpi-name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_campaign_date_range_kpi( application_id, campaign_id, @@ -1947,16 +1830,14 @@ version of a campaign. - `version`: The unique version number (Version property) for the campaign version. """ -function get_campaign_version( +get_campaign_version( application_id, campaign_id, version; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/campaigns/$(campaign-id)/versions/$(version)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/campaigns/$(campaign-id)/versions/$(version)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_campaign_version( application_id, campaign_id, @@ -1992,16 +1873,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_campaign_versions( +get_campaign_versions( application_id, campaign_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/campaigns/$(campaign-id)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/campaigns/$(campaign-id)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_campaign_versions( application_id, campaign_id, @@ -2035,14 +1914,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_campaigns(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( +get_campaigns(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/campaigns"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_campaigns( application_id, params::AbstractDict{String}; @@ -2068,14 +1946,12 @@ Retrieves information about the history and status of each channel for an applic as the Project ID on the Amazon Pinpoint console. """ -function get_channels(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/channels"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_channels(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = pinpoint( + "GET", + "/v1/apps/$(application-id)/channels"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_channels( application_id, params::AbstractDict{String}; @@ -2101,16 +1977,13 @@ Retrieves information about the status and settings of the email channel for an as the Project ID on the Amazon Pinpoint console. """ -function get_email_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_email_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/channels/email"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_email_channel( application_id, params::AbstractDict{String}; @@ -2151,16 +2024,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function get_email_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_email_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/templates/$(template-name)/email"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_email_template( template_name, params::AbstractDict{String}; @@ -2189,16 +2059,14 @@ application. can't contain , { or }. """ -function get_endpoint( +get_endpoint( application_id, endpoint_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/endpoints/$(endpoint-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/endpoints/$(endpoint-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_endpoint( application_id, endpoint_id, @@ -2225,16 +2093,13 @@ Retrieves information about the event stream settings for an application. as the Project ID on the Amazon Pinpoint console. """ -function get_event_stream( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_event_stream(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/eventstream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_event_stream( application_id, params::AbstractDict{String}; @@ -2262,16 +2127,13 @@ application. - `job-id`: The unique identifier for the job. """ -function get_export_job( - application_id, job_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_export_job(application_id, job_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/jobs/export/$(job-id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_export_job( application_id, job_id, @@ -2305,14 +2167,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_export_jobs(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( +get_export_jobs(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/jobs/export"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_export_jobs( application_id, params::AbstractDict{String}; @@ -2338,14 +2199,13 @@ Retrieves information about the status and settings of the GCM channel for an ap as the Project ID on the Amazon Pinpoint console. """ -function get_gcm_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( +get_gcm_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/channels/gcm"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_gcm_channel( application_id, params::AbstractDict{String}; @@ -2373,16 +2233,13 @@ application. - `job-id`: The unique identifier for the job. """ -function get_import_job( - application_id, job_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_import_job(application_id, job_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/jobs/import/$(job-id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_import_job( application_id, job_id, @@ -2416,14 +2273,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_import_jobs(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( +get_import_jobs(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/jobs/import"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_import_jobs( application_id, params::AbstractDict{String}; @@ -2450,16 +2306,14 @@ Retrieves the in-app messages targeted for the provided endpoint ID. - `endpoint-id`: The unique identifier for the endpoint. """ -function get_in_app_messages( +get_in_app_messages( application_id, endpoint_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/endpoints/$(endpoint-id)/inappmessages"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/endpoints/$(endpoint-id)/inappmessages"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_in_app_messages( application_id, endpoint_id, @@ -2501,16 +2355,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function get_in_app_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_in_app_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/templates/$(template-name)/inapp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_in_app_template( template_name, params::AbstractDict{String}; @@ -2537,16 +2388,14 @@ Retrieves information about the status, configuration, and other settings for a - `journey-id`: The unique identifier for the journey. """ -function get_journey( +get_journey( application_id, journey_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/journeys/$(journey-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/journeys/$(journey-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_journey( application_id, journey_id, @@ -2594,16 +2443,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day. """ -function get_journey_date_range_kpi( +get_journey_date_range_kpi( application_id, journey_id, kpi_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/journeys/$(journey-id)/kpis/daterange/$(kpi-name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/journeys/$(journey-id)/kpis/daterange/$(kpi-name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_journey_date_range_kpi( application_id, journey_id, @@ -2640,19 +2487,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"page-size"`: The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics. """ -function get_journey_execution_activity_metrics( +get_journey_execution_activity_metrics( application_id, journey_activity_id, journey_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/journeys/$(journey-id)/activities/$(journey-activity-id)/execution-metrics"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/journeys/$(journey-id)/activities/$(journey-activity-id)/execution-metrics"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_journey_execution_activity_metrics( application_id, journey_activity_id, @@ -2688,16 +2533,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"page-size"`: The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics. """ -function get_journey_execution_metrics( +get_journey_execution_metrics( application_id, journey_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/journeys/$(journey-id)/execution-metrics"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/journeys/$(journey-id)/execution-metrics"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_journey_execution_metrics( application_id, journey_id, @@ -2734,20 +2577,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"page-size"`: The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics. """ -function get_journey_run_execution_activity_metrics( +get_journey_run_execution_activity_metrics( application_id, journey_activity_id, journey_id, run_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/journeys/$(journey-id)/runs/$(run-id)/activities/$(journey-activity-id)/execution-metrics"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/journeys/$(journey-id)/runs/$(run-id)/activities/$(journey-activity-id)/execution-metrics"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_journey_run_execution_activity_metrics( application_id, journey_activity_id, @@ -2785,16 +2626,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"page-size"`: The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics. """ -function get_journey_run_execution_metrics( +get_journey_run_execution_metrics( application_id, journey_id, run_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/journeys/$(journey-id)/runs/$(run-id)/execution-metrics"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/journeys/$(journey-id)/runs/$(run-id)/execution-metrics"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_journey_run_execution_metrics( application_id, journey_id, @@ -2829,16 +2668,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_journey_runs( +get_journey_runs( application_id, journey_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/journeys/$(journey-id)/runs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/journeys/$(journey-id)/runs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_journey_runs( application_id, journey_id, @@ -2880,16 +2717,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function get_push_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_push_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/templates/$(template-name)/push"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_push_template( template_name, params::AbstractDict{String}; @@ -2915,16 +2749,14 @@ Retrieves information about an Amazon Pinpoint configuration for a recommender m identifier is displayed as the Recommender ID on the Amazon Pinpoint console. """ -function get_recommender_configuration( +get_recommender_configuration( recommender_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/recommenders/$(recommender-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/recommenders/$(recommender-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recommender_configuration( recommender_id, params::AbstractDict{String}; @@ -2953,13 +2785,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_recommender_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_recommender_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/recommenders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_recommender_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2985,16 +2814,14 @@ segment that's associated with an application. - `segment-id`: The unique identifier for the segment. """ -function get_segment( +get_segment( application_id, segment_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/segments/$(segment-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/segments/$(segment-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_segment( application_id, segment_id, @@ -3028,16 +2855,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_segment_export_jobs( +get_segment_export_jobs( application_id, segment_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/segments/$(segment-id)/jobs/export"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/segments/$(segment-id)/jobs/export"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_segment_export_jobs( application_id, segment_id, @@ -3071,16 +2896,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_segment_import_jobs( +get_segment_import_jobs( application_id, segment_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/segments/$(segment-id)/jobs/import"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/segments/$(segment-id)/jobs/import"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_segment_import_jobs( application_id, segment_id, @@ -3110,16 +2933,14 @@ version of a segment that's associated with an application. - `version`: The unique version number (Version property) for the campaign version. """ -function get_segment_version( +get_segment_version( application_id, segment_id, version; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/segments/$(segment-id)/versions/$(version)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/segments/$(segment-id)/versions/$(version)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_segment_version( application_id, segment_id, @@ -3155,16 +2976,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_segment_versions( +get_segment_versions( application_id, segment_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/segments/$(segment-id)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/segments/$(segment-id)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_segment_versions( application_id, segment_id, @@ -3198,14 +3017,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function get_segments(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/segments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_segments(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = pinpoint( + "GET", + "/v1/apps/$(application-id)/segments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_segments( application_id, params::AbstractDict{String}; @@ -3231,14 +3048,13 @@ Retrieves information about the status and settings of the SMS channel for an ap as the Project ID on the Amazon Pinpoint console. """ -function get_sms_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( +get_sms_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/channels/sms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_sms_channel( application_id, params::AbstractDict{String}; @@ -3279,14 +3095,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function get_sms_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( +get_sms_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/templates/$(template-name)/sms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_sms_template( template_name, params::AbstractDict{String}; @@ -3313,16 +3128,14 @@ Retrieves information about all the endpoints that are associated with a specifi - `user-id`: The unique identifier for the user. """ -function get_user_endpoints( +get_user_endpoints( application_id, user_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/apps/$(application-id)/users/$(user-id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/apps/$(application-id)/users/$(user-id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_user_endpoints( application_id, user_id, @@ -3349,16 +3162,13 @@ Retrieves information about the status and settings of the voice channel for an as the Project ID on the Amazon Pinpoint console. """ -function get_voice_channel( - application_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_voice_channel(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/channels/voice"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_voice_channel( application_id, params::AbstractDict{String}; @@ -3399,16 +3209,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function get_voice_template( - template_name; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +get_voice_template(template_name; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/templates/$(template-name)/voice"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_voice_template( template_name, params::AbstractDict{String}; @@ -3441,14 +3248,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"token"`: The NextToken string that specifies which page of results to return in a paginated response. """ -function list_journeys(application_id; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( +list_journeys(application_id; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/apps/$(application-id)/journeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_journeys( application_id, params::AbstractDict{String}; @@ -3474,16 +3280,13 @@ message template, or segment. - `resource-arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +list_tags_for_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "GET", "/v1/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resource_arn, params::AbstractDict{String}; @@ -3518,16 +3321,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"page-size"`: The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics. """ -function list_template_versions( +list_template_versions( template_name, template_type; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "GET", + "/v1/templates/$(template-name)/$(template-type)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "GET", - "/v1/templates/$(template-name)/$(template-type)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_template_versions( template_name, template_type, @@ -3563,11 +3364,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, don't include this parameter in your request. """ -function list_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint( - "GET", "/v1/templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint("GET", "/v1/templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3590,17 +3388,15 @@ Retrieves information about a phone number. - `number_validate_request`: """ -function phone_number_validate( +phone_number_validate( NumberValidateRequest; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/phone/number/validate", + Dict{String,Any}("NumberValidateRequest" => NumberValidateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/phone/number/validate", - Dict{String,Any}("NumberValidateRequest" => NumberValidateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function phone_number_validate( NumberValidateRequest, params::AbstractDict{String}; @@ -3634,17 +3430,15 @@ stream for an application. as the Project ID on the Amazon Pinpoint console. """ -function put_event_stream( +put_event_stream( WriteEventStream, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/eventstream", + Dict{String,Any}("WriteEventStream" => WriteEventStream); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/eventstream", - Dict{String,Any}("WriteEventStream" => WriteEventStream); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_event_stream( WriteEventStream, application_id, @@ -3677,17 +3471,15 @@ existing events are associated with. as the Project ID on the Amazon Pinpoint console. """ -function put_events( +put_events( EventsRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/events", + Dict{String,Any}("EventsRequest" => EventsRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/events", - Dict{String,Any}("EventsRequest" => EventsRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_events( EventsRequest, application_id, @@ -3726,20 +3518,18 @@ changed values for these attributes. first name, last name, and age. """ -function remove_attributes( +remove_attributes( UpdateAttributesRequest, application_id, attribute_type; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/attributes/$(attribute-type)", + Dict{String,Any}("UpdateAttributesRequest" => UpdateAttributesRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/attributes/$(attribute-type)", - Dict{String,Any}("UpdateAttributesRequest" => UpdateAttributesRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_attributes( UpdateAttributesRequest, application_id, @@ -3774,17 +3564,15 @@ Creates and sends a direct message. as the Project ID on the Amazon Pinpoint console. """ -function send_messages( +send_messages( MessageRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/messages", + Dict{String,Any}("MessageRequest" => MessageRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/messages", - Dict{String,Any}("MessageRequest" => MessageRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_messages( MessageRequest, application_id, @@ -3813,21 +3601,17 @@ Send an OTP message - `application-id`: The unique ID of your Amazon Pinpoint application. """ -function send_otpmessage( +send_otpmessage( SendOTPMessageRequestParameters, application_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/otp", + Dict{String,Any}("SendOTPMessageRequestParameters" => SendOTPMessageRequestParameters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/otp", - Dict{String,Any}( - "SendOTPMessageRequestParameters" => SendOTPMessageRequestParameters - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_otpmessage( SendOTPMessageRequestParameters, application_id, @@ -3863,19 +3647,17 @@ Creates and sends a message to a list of users. as the Project ID on the Amazon Pinpoint console. """ -function send_users_messages( +send_users_messages( SendUsersMessageRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/users-messages", + Dict{String,Any}("SendUsersMessageRequest" => SendUsersMessageRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/users-messages", - Dict{String,Any}("SendUsersMessageRequest" => SendUsersMessageRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_users_messages( SendUsersMessageRequest, application_id, @@ -3909,17 +3691,14 @@ segment. - `resource-arn`: The Amazon Resource Name (ARN) of the resource. """ -function tag_resource( - TagsModel, resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +tag_resource(TagsModel, resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "POST", "/v1/tags/$(resource-arn)", Dict{String,Any}("TagsModel" => TagsModel); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( TagsModel, resource_arn, @@ -3951,17 +3730,14 @@ or segment. an ampersand (&). """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint( "DELETE", "/v1/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -3990,17 +3766,15 @@ channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_adm_channel( +update_adm_channel( ADMChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/adm", + Dict{String,Any}("ADMChannelRequest" => ADMChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/adm", - Dict{String,Any}("ADMChannelRequest" => ADMChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_adm_channel( ADMChannelRequest, application_id, @@ -4033,17 +3807,15 @@ channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_apns_channel( +update_apns_channel( APNSChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/apns", + Dict{String,Any}("APNSChannelRequest" => APNSChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/apns", - Dict{String,Any}("APNSChannelRequest" => APNSChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_apns_channel( APNSChannelRequest, application_id, @@ -4076,19 +3848,17 @@ the APNs sandbox channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_apns_sandbox_channel( +update_apns_sandbox_channel( APNSSandboxChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/apns_sandbox", + Dict{String,Any}("APNSSandboxChannelRequest" => APNSSandboxChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/apns_sandbox", - Dict{String,Any}("APNSSandboxChannelRequest" => APNSSandboxChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_apns_sandbox_channel( APNSSandboxChannelRequest, application_id, @@ -4123,19 +3893,17 @@ APNs VoIP channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_apns_voip_channel( +update_apns_voip_channel( APNSVoipChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/apns_voip", + Dict{String,Any}("APNSVoipChannelRequest" => APNSVoipChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/apns_voip", - Dict{String,Any}("APNSVoipChannelRequest" => APNSVoipChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_apns_voip_channel( APNSVoipChannelRequest, application_id, @@ -4170,19 +3938,17 @@ of the APNs VoIP sandbox channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_apns_voip_sandbox_channel( +update_apns_voip_sandbox_channel( APNSVoipSandboxChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/apns_voip_sandbox", + Dict{String,Any}("APNSVoipSandboxChannelRequest" => APNSVoipSandboxChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/apns_voip_sandbox", - Dict{String,Any}("APNSVoipSandboxChannelRequest" => APNSVoipSandboxChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_apns_voip_sandbox_channel( APNSVoipSandboxChannelRequest, application_id, @@ -4218,21 +3984,17 @@ Updates the settings for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_application_settings( +update_application_settings( WriteApplicationSettingsRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/settings", + Dict{String,Any}("WriteApplicationSettingsRequest" => WriteApplicationSettingsRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/settings", - Dict{String,Any}( - "WriteApplicationSettingsRequest" => WriteApplicationSettingsRequest - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application_settings( WriteApplicationSettingsRequest, application_id, @@ -4269,17 +4031,15 @@ Baidu channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_baidu_channel( +update_baidu_channel( BaiduChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/baidu", + Dict{String,Any}("BaiduChannelRequest" => BaiduChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/baidu", - Dict{String,Any}("BaiduChannelRequest" => BaiduChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_baidu_channel( BaiduChannelRequest, application_id, @@ -4314,20 +4074,18 @@ Updates the configuration and other settings for a campaign. - `campaign-id`: The unique identifier for the campaign. """ -function update_campaign( +update_campaign( WriteCampaignRequest, application_id, campaign_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/campaigns/$(campaign-id)", + Dict{String,Any}("WriteCampaignRequest" => WriteCampaignRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/campaigns/$(campaign-id)", - Dict{String,Any}("WriteCampaignRequest" => WriteCampaignRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_campaign( WriteCampaignRequest, application_id, @@ -4363,17 +4121,15 @@ email channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_email_channel( +update_email_channel( EmailChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/email", + Dict{String,Any}("EmailChannelRequest" => EmailChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/email", - Dict{String,Any}("EmailChannelRequest" => EmailChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_email_channel( EmailChannelRequest, application_id, @@ -4427,17 +4183,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function update_email_template( +update_email_template( EmailTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/templates/$(template-name)/email", + Dict{String,Any}("EmailTemplateRequest" => EmailTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/templates/$(template-name)/email", - Dict{String,Any}("EmailTemplateRequest" => EmailTemplateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_email_template( EmailTemplateRequest, template_name, @@ -4476,20 +4230,18 @@ attribute, Amazon Pinpoint replaces (overwrites) any existing values with the ne can't contain , { or }. """ -function update_endpoint( +update_endpoint( EndpointRequest, application_id, endpoint_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/endpoints/$(endpoint-id)", + Dict{String,Any}("EndpointRequest" => EndpointRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/endpoints/$(endpoint-id)", - Dict{String,Any}("EndpointRequest" => EndpointRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_endpoint( EndpointRequest, application_id, @@ -4526,17 +4278,15 @@ new values. as the Project ID on the Amazon Pinpoint console. """ -function update_endpoints_batch( +update_endpoints_batch( EndpointBatchRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/endpoints", + Dict{String,Any}("EndpointBatchRequest" => EndpointBatchRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/endpoints", - Dict{String,Any}("EndpointBatchRequest" => EndpointBatchRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_endpoints_batch( EndpointBatchRequest, application_id, @@ -4571,17 +4321,15 @@ channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_gcm_channel( +update_gcm_channel( GCMChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/gcm", + Dict{String,Any}("GCMChannelRequest" => GCMChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/gcm", - Dict{String,Any}("GCMChannelRequest" => GCMChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_gcm_channel( GCMChannelRequest, application_id, @@ -4633,17 +4381,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function update_in_app_template( +update_in_app_template( InAppTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/templates/$(template-name)/inapp", + Dict{String,Any}("InAppTemplateRequest" => InAppTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/templates/$(template-name)/inapp", - Dict{String,Any}("InAppTemplateRequest" => InAppTemplateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_in_app_template( InAppTemplateRequest, template_name, @@ -4678,20 +4424,18 @@ Updates the configuration and other settings for a journey. - `journey-id`: The unique identifier for the journey. """ -function update_journey( +update_journey( WriteJourneyRequest, application_id, journey_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/journeys/$(journey-id)", + Dict{String,Any}("WriteJourneyRequest" => WriteJourneyRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/journeys/$(journey-id)", - Dict{String,Any}("WriteJourneyRequest" => WriteJourneyRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_journey( WriteJourneyRequest, application_id, @@ -4727,20 +4471,18 @@ Cancels (stops) an active journey. - `journey-id`: The unique identifier for the journey. """ -function update_journey_state( +update_journey_state( JourneyStateRequest, application_id, journey_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/journeys/$(journey-id)/state", + Dict{String,Any}("JourneyStateRequest" => JourneyStateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/journeys/$(journey-id)/state", - Dict{String,Any}("JourneyStateRequest" => JourneyStateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_journey_state( JourneyStateRequest, application_id, @@ -4796,21 +4538,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function update_push_template( +update_push_template( PushNotificationTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/templates/$(template-name)/push", + Dict{String,Any}("PushNotificationTemplateRequest" => PushNotificationTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/templates/$(template-name)/push", - Dict{String,Any}( - "PushNotificationTemplateRequest" => PushNotificationTemplateRequest - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_push_template( PushNotificationTemplateRequest, template_name, @@ -4846,21 +4584,17 @@ Updates an Amazon Pinpoint configuration for a recommender model. identifier is displayed as the Recommender ID on the Amazon Pinpoint console. """ -function update_recommender_configuration( +update_recommender_configuration( UpdateRecommenderConfiguration, recommender_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/recommenders/$(recommender-id)", + Dict{String,Any}("UpdateRecommenderConfiguration" => UpdateRecommenderConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/recommenders/$(recommender-id)", - Dict{String,Any}( - "UpdateRecommenderConfiguration" => UpdateRecommenderConfiguration - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_recommender_configuration( UpdateRecommenderConfiguration, recommender_id, @@ -4898,20 +4632,18 @@ settings for an existing segment that's associated with an application. - `segment-id`: The unique identifier for the segment. """ -function update_segment( +update_segment( WriteSegmentRequest, application_id, segment_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/segments/$(segment-id)", + Dict{String,Any}("WriteSegmentRequest" => WriteSegmentRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/segments/$(segment-id)", - Dict{String,Any}("WriteSegmentRequest" => WriteSegmentRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_segment( WriteSegmentRequest, application_id, @@ -4947,17 +4679,15 @@ channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_sms_channel( +update_sms_channel( SMSChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/sms", + Dict{String,Any}("SMSChannelRequest" => SMSChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/sms", - Dict{String,Any}("SMSChannelRequest" => SMSChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sms_channel( SMSChannelRequest, application_id, @@ -5009,17 +4739,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function update_sms_template( +update_sms_template( SMSTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/templates/$(template-name)/sms", + Dict{String,Any}("SMSTemplateRequest" => SMSTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/templates/$(template-name)/sms", - Dict{String,Any}("SMSTemplateRequest" => SMSTemplateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sms_template( SMSTemplateRequest, template_name, @@ -5054,20 +4782,18 @@ Changes the status of a specific version of a message template to active. values are: EMAIL, PUSH, SMS, and VOICE. """ -function update_template_active_version( +update_template_active_version( TemplateActiveVersionRequest, template_name, template_type; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "PUT", + "/v1/templates/$(template-name)/$(template-type)/active-version", + Dict{String,Any}("TemplateActiveVersionRequest" => TemplateActiveVersionRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/templates/$(template-name)/$(template-type)/active-version", - Dict{String,Any}("TemplateActiveVersionRequest" => TemplateActiveVersionRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_template_active_version( TemplateActiveVersionRequest, template_name, @@ -5105,17 +4831,15 @@ voice channel for an application. as the Project ID on the Amazon Pinpoint console. """ -function update_voice_channel( +update_voice_channel( VoiceChannelRequest, application_id; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/apps/$(application-id)/channels/voice", + Dict{String,Any}("VoiceChannelRequest" => VoiceChannelRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/apps/$(application-id)/channels/voice", - Dict{String,Any}("VoiceChannelRequest" => VoiceChannelRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_voice_channel( VoiceChannelRequest, application_id, @@ -5169,17 +4893,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if the create-new-version parameter isn't used or is set to false. For a delete operation, deletes the template, including all versions of the template. """ -function update_voice_template( +update_voice_template( VoiceTemplateRequest, template_name; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint( + "PUT", + "/v1/templates/$(template-name)/voice", + Dict{String,Any}("VoiceTemplateRequest" => VoiceTemplateRequest); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "PUT", - "/v1/templates/$(template-name)/voice", - Dict{String,Any}("VoiceTemplateRequest" => VoiceTemplateRequest); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_voice_template( VoiceTemplateRequest, template_name, @@ -5212,21 +4934,19 @@ Verify an OTP - `application-id`: The unique ID of your Amazon Pinpoint application. """ -function verify_otpmessage( +verify_otpmessage( VerifyOTPMessageRequestParameters, application_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint( + "POST", + "/v1/apps/$(application-id)/verify-otp", + Dict{String,Any}( + "VerifyOTPMessageRequestParameters" => VerifyOTPMessageRequestParameters + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint( - "POST", - "/v1/apps/$(application-id)/verify-otp", - Dict{String,Any}( - "VerifyOTPMessageRequestParameters" => VerifyOTPMessageRequestParameters - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_otpmessage( VerifyOTPMessageRequestParameters, application_id, diff --git a/src/services/pinpoint_email.jl b/src/services/pinpoint_email.jl index 2276beee3..1b662c883 100644 --- a/src/services/pinpoint_email.jl +++ b/src/services/pinpoint_email.jl @@ -30,17 +30,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TrackingOptions"`: An object that defines the open and click tracking options for emails that you send using the configuration set. """ -function create_configuration_set( +create_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "POST", + "/v1/email/configuration-sets", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "POST", - "/v1/email/configuration-sets", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -80,23 +78,21 @@ can include more than one event destination. configuration set. """ -function create_configuration_set_event_destination( +create_configuration_set_event_destination( ConfigurationSetName, EventDestination, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_email( + "POST", + "/v1/email/configuration-sets/$(ConfigurationSetName)/event-destinations", + Dict{String,Any}( + "EventDestination" => EventDestination, + "EventDestinationName" => EventDestinationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "POST", - "/v1/email/configuration-sets/$(ConfigurationSetName)/event-destinations", - Dict{String,Any}( - "EventDestination" => EventDestination, - "EventDestinationName" => EventDestinationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set_event_destination( ConfigurationSetName, EventDestination, @@ -139,17 +135,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An object that defines the tags (keys and values) that you want to associate with the pool. """ -function create_dedicated_ip_pool( - PoolName; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +create_dedicated_ip_pool(PoolName; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "POST", "/v1/email/dedicated-ip-pools", Dict{String,Any}("PoolName" => PoolName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_dedicated_ip_pool( PoolName, params::AbstractDict{String}; @@ -191,17 +184,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An array of objects that define the tags (keys and values) that you want to associate with the predictive inbox placement test. """ -function create_deliverability_test_report( +create_deliverability_test_report( Content, FromEmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "POST", + "/v1/email/deliverability-dashboard/test", + Dict{String,Any}("Content" => Content, "FromEmailAddress" => FromEmailAddress); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "POST", - "/v1/email/deliverability-dashboard/test", - Dict{String,Any}("Content" => Content, "FromEmailAddress" => FromEmailAddress); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deliverability_test_report( Content, FromEmailAddress, @@ -249,17 +240,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An array of objects that define the tags (keys and values) that you want to associate with the email identity. """ -function create_email_identity( - EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +create_email_identity(EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "POST", "/v1/email/identities", Dict{String,Any}("EmailIdentity" => EmailIdentity); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_email_identity( EmailIdentity, params::AbstractDict{String}; @@ -290,16 +278,14 @@ applied to the email. - `configuration_set_name`: The name of the configuration set that you want to delete. """ -function delete_configuration_set( +delete_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "DELETE", + "/v1/email/configuration-sets/$(ConfigurationSetName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "DELETE", - "/v1/email/configuration-sets/$(ConfigurationSetName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -330,18 +316,16 @@ Data Firehose to stream data to Amazon S3 for long-term storage. - `event_destination_name`: The name of the event destination that you want to delete. """ -function delete_configuration_set_event_destination( +delete_configuration_set_event_destination( ConfigurationSetName, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_email( + "DELETE", + "/v1/email/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "DELETE", - "/v1/email/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set_event_destination( ConfigurationSetName, EventDestinationName, @@ -367,16 +351,13 @@ Delete a dedicated IP pool. - `pool_name`: The name of the dedicated IP pool that you want to delete. """ -function delete_dedicated_ip_pool( - PoolName; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +delete_dedicated_ip_pool(PoolName; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "DELETE", "/v1/email/dedicated-ip-pools/$(PoolName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dedicated_ip_pool( PoolName, params::AbstractDict{String}; @@ -403,16 +384,13 @@ identity can be either an email address or a domain name. delete from your Amazon Pinpoint account. """ -function delete_email_identity( - EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +delete_email_identity(EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "DELETE", "/v1/email/identities/$(EmailIdentity)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_email_identity( EmailIdentity, params::AbstractDict{String}; @@ -435,11 +413,9 @@ Obtain information about the email-sending status and capabilities of your Amazo account in the current AWS Region. """ -function get_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_email( - "GET", "/v1/email/account"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account(; aws_config::AbstractAWSConfig=current_aws_config()) = pinpoint_email( + "GET", "/v1/email/account"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -464,17 +440,15 @@ Retrieve a list of the blacklists that your dedicated IP addresses appear on. email using Amazon Pinpoint or Amazon SES. """ -function get_blacklist_reports( +get_blacklist_reports( BlacklistItemNames; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "GET", + "/v1/email/deliverability-dashboard/blacklist-report", + Dict{String,Any}("BlacklistItemNames" => BlacklistItemNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "GET", - "/v1/email/deliverability-dashboard/blacklist-report", - Dict{String,Any}("BlacklistItemNames" => BlacklistItemNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_blacklist_reports( BlacklistItemNames, params::AbstractDict{String}; @@ -509,16 +483,14 @@ rules in that configuration set are applied to the email. information about. """ -function get_configuration_set( +get_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "GET", + "/v1/email/configuration-sets/$(ConfigurationSetName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "GET", - "/v1/email/configuration-sets/$(ConfigurationSetName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -549,16 +521,14 @@ to Amazon S3 for long-term storage. destination. """ -function get_configuration_set_event_destinations( +get_configuration_set_event_destinations( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "GET", + "/v1/email/configuration-sets/$(ConfigurationSetName)/event-destinations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "GET", - "/v1/email/configuration-sets/$(ConfigurationSetName)/event-destinations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configuration_set_event_destinations( ConfigurationSetName, params::AbstractDict{String}; @@ -587,14 +557,12 @@ address. account. """ -function get_dedicated_ip(IP; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_email( - "GET", - "/v1/email/dedicated-ips/$(IP)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_dedicated_ip(IP; aws_config::AbstractAWSConfig=current_aws_config()) = pinpoint_email( + "GET", + "/v1/email/dedicated-ips/$(IP)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_dedicated_ip( IP, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -622,14 +590,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response includes a NextToken element, which you can use to obtain additional results. - `"PoolName"`: The name of the IP pool that the dedicated IP address is associated with. """ -function get_dedicated_ips(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_email( - "GET", - "/v1/email/dedicated-ips"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_dedicated_ips(; aws_config::AbstractAWSConfig=current_aws_config()) = pinpoint_email( + "GET", + "/v1/email/dedicated-ips"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_dedicated_ips( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -656,16 +622,13 @@ about the features and cost of a Deliverability dashboard subscription, see Amaz Pricing. """ -function get_deliverability_dashboard_options(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +get_deliverability_dashboard_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "GET", "/v1/email/deliverability-dashboard"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_deliverability_dashboard_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -688,16 +651,14 @@ Retrieve the results of a predictive inbox placement test. - `report_id`: A unique string that identifies the predictive inbox placement test. """ -function get_deliverability_test_report( +get_deliverability_test_report( ReportId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "GET", + "/v1/email/deliverability-dashboard/test-reports/$(ReportId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "GET", - "/v1/email/deliverability-dashboard/test-reports/$(ReportId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deliverability_test_report( ReportId, params::AbstractDict{String}; @@ -727,16 +688,14 @@ dashboard is enabled for (PutDeliverabilityDashboardOption operation). using the Amazon Pinpoint API or the Amazon Pinpoint console. """ -function get_domain_deliverability_campaign( +get_domain_deliverability_campaign( CampaignId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "GET", + "/v1/email/deliverability-dashboard/campaigns/$(CampaignId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "GET", - "/v1/email/deliverability-dashboard/campaigns/$(CampaignId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_domain_deliverability_campaign( CampaignId, params::AbstractDict{String}; @@ -766,17 +725,15 @@ Retrieve inbox placement and engagement rates for the domains that you use to se metrics for. """ -function get_domain_statistics_report( +get_domain_statistics_report( Domain, EndDate, StartDate; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "GET", + "/v1/email/deliverability-dashboard/statistics-report/$(Domain)", + Dict{String,Any}("EndDate" => EndDate, "StartDate" => StartDate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "GET", - "/v1/email/deliverability-dashboard/statistics-report/$(Domain)", - Dict{String,Any}("EndDate" => EndDate, "StartDate" => StartDate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_domain_statistics_report( Domain, EndDate, @@ -811,16 +768,13 @@ its custom Mail-From settings. - `email_identity`: The email identity that you want to retrieve details for. """ -function get_email_identity( - EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +get_email_identity(EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "GET", "/v1/email/identities/$(EmailIdentity)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_email_identity( EmailIdentity, params::AbstractDict{String}; @@ -854,14 +808,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results. """ -function list_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_email( +list_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "GET", "/v1/email/configuration-sets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_configuration_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -889,14 +842,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results. """ -function list_dedicated_ip_pools(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_email( +list_dedicated_ip_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "GET", "/v1/email/dedicated-ip-pools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dedicated_ip_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -927,16 +879,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use to obtain additional results. The value you specify has to be at least 0, and can be no more than 1000. """ -function list_deliverability_test_reports(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +list_deliverability_test_reports(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "GET", "/v1/email/deliverability-dashboard/test-reports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_deliverability_test_reports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -976,17 +925,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the number that you specify in this parameter, the response includes a NextToken element, which you can use to obtain additional results. """ -function list_domain_deliverability_campaigns( +list_domain_deliverability_campaigns( EndDate, StartDate, SubscribedDomain; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "GET", + "/v1/email/deliverability-dashboard/domains/$(SubscribedDomain)/campaigns", + Dict{String,Any}("EndDate" => EndDate, "StartDate" => StartDate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "GET", - "/v1/email/deliverability-dashboard/domains/$(SubscribedDomain)/campaigns", - Dict{String,Any}("EndDate" => EndDate, "StartDate" => StartDate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_domain_deliverability_campaigns( EndDate, StartDate, @@ -1026,14 +973,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response includes a NextToken element, which you can use to obtain additional results. The value you specify has to be at least 0, and can be no more than 1000. """ -function list_email_identities(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_email( +list_email_identities(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "GET", "/v1/email/identities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_email_identities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1061,17 +1007,14 @@ tag value acts as a descriptor within a tag key. tag information for. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "GET", "/v1/email/tags", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1100,16 +1043,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys addresses that are associated with your Amazon Pinpoint account in the current AWS Region. Set to true to enable the automatic warm-up feature, or set to false to disable it. """ -function put_account_dedicated_ip_warmup_attributes(; +put_account_dedicated_ip_warmup_attributes(; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/account/dedicated-ips/warmup"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/account/dedicated-ips/warmup"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_dedicated_ip_warmup_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1135,16 +1076,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account's ability to send email, you can't use this operation to resume your account's ability to send email. """ -function put_account_sending_attributes(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +put_account_sending_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "PUT", "/v1/email/account/sending"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_account_sending_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1177,16 +1115,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established. """ -function put_configuration_set_delivery_options( +put_configuration_set_delivery_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/configuration-sets/$(ConfigurationSetName)/delivery-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/configuration-sets/$(ConfigurationSetName)/delivery-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_delivery_options( ConfigurationSetName, params::AbstractDict{String}; @@ -1218,16 +1154,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration set. If false, tracking of reputation metrics is disabled for the configuration set. """ -function put_configuration_set_reputation_options( +put_configuration_set_reputation_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/configuration-sets/$(ConfigurationSetName)/reputation-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/configuration-sets/$(ConfigurationSetName)/reputation-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_reputation_options( ConfigurationSetName, params::AbstractDict{String}; @@ -1258,16 +1192,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SendingEnabled"`: If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set. """ -function put_configuration_set_sending_options( +put_configuration_set_sending_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/configuration-sets/$(ConfigurationSetName)/sending"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/configuration-sets/$(ConfigurationSetName)/sending"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_sending_options( ConfigurationSetName, params::AbstractDict{String}; @@ -1297,16 +1229,14 @@ using Amazon Pinpoint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CustomRedirectDomain"`: The domain that you want to use to track open and click events. """ -function put_configuration_set_tracking_options( +put_configuration_set_tracking_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/configuration-sets/$(ConfigurationSetName)/tracking-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/configuration-sets/$(ConfigurationSetName)/tracking-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_tracking_options( ConfigurationSetName, params::AbstractDict{String}; @@ -1338,17 +1268,15 @@ by using the CreateDedicatedIpPool operation. account. """ -function put_dedicated_ip_in_pool( +put_dedicated_ip_in_pool( DestinationPoolName, IP; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/dedicated-ips/$(IP)/pool", + Dict{String,Any}("DestinationPoolName" => DestinationPoolName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/dedicated-ips/$(IP)/pool", - Dict{String,Any}("DestinationPoolName" => DestinationPoolName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_dedicated_ip_in_pool( DestinationPoolName, IP, @@ -1382,17 +1310,15 @@ end IP address. """ -function put_dedicated_ip_warmup_attributes( +put_dedicated_ip_warmup_attributes( IP, WarmupPercentage; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/dedicated-ips/$(IP)/warmup", + Dict{String,Any}("WarmupPercentage" => WarmupPercentage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/dedicated-ips/$(IP)/warmup", - Dict{String,Any}("WarmupPercentage" => WarmupPercentage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_dedicated_ip_warmup_attributes( IP, WarmupPercentage, @@ -1433,17 +1359,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubscribedDomains"`: An array of objects, one for each verified domain that you use to send email and enabled the Deliverability dashboard for. """ -function put_deliverability_dashboard_option( +put_deliverability_dashboard_option( DashboardEnabled; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/deliverability-dashboard", + Dict{String,Any}("DashboardEnabled" => DashboardEnabled); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/deliverability-dashboard", - Dict{String,Any}("DashboardEnabled" => DashboardEnabled); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_deliverability_dashboard_option( DashboardEnabled, params::AbstractDict{String}; @@ -1478,16 +1402,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DKIM-signed. When you set this value to false, then the messages that Amazon Pinpoint sends from the identity aren't DKIM-signed. """ -function put_email_identity_dkim_attributes( +put_email_identity_dkim_attributes( EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/identities/$(EmailIdentity)/dkim"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/identities/$(EmailIdentity)/dkim"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_identity_dkim_attributes( EmailIdentity, params::AbstractDict{String}; @@ -1533,16 +1455,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled). """ -function put_email_identity_feedback_attributes( +put_email_identity_feedback_attributes( EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/identities/$(EmailIdentity)/feedback"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/identities/$(EmailIdentity)/feedback"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_identity_feedback_attributes( EmailIdentity, params::AbstractDict{String}; @@ -1580,16 +1500,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the verified identity. It can't be used to receive email. It can't be used in a \"From\" address if the MAIL FROM domain is a destination for feedback forwarding emails. """ -function put_email_identity_mail_from_attributes( +put_email_identity_mail_from_attributes( EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_email( + "PUT", + "/v1/email/identities/$(EmailIdentity)/mail-from"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/identities/$(EmailIdentity)/mail-from"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_identity_mail_from_attributes( EmailIdentity, params::AbstractDict{String}; @@ -1635,17 +1553,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReplyToAddresses"`: The \"Reply-to\" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply. """ -function send_email( - Content, Destination; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +send_email(Content, Destination; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "POST", "/v1/email/outbound-emails", Dict{String,Any}("Content" => Content, "Destination" => Destination); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_email( Content, Destination, @@ -1687,15 +1602,14 @@ descriptor within a tag key. is 128 characters. The maximum length of a tag value is 256 characters. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_email( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "POST", "/v1/email/tags", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1733,17 +1647,14 @@ Remove one or more tags (keys and values) from a specified resource. /v1/email/tags?ResourceArn=ResourceArn&TagKeys=Key1&TagKeys=Key2 """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_email( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_email( "DELETE", "/v1/email/tags", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1783,20 +1694,18 @@ S3 for long-term storage. - `event_destination_name`: The name of the event destination that you want to modify. """ -function update_configuration_set_event_destination( +update_configuration_set_event_destination( ConfigurationSetName, EventDestination, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_email( + "PUT", + "/v1/email/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)", + Dict{String,Any}("EventDestination" => EventDestination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_email( - "PUT", - "/v1/email/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)", - Dict{String,Any}("EventDestination" => EventDestination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_set_event_destination( ConfigurationSetName, EventDestination, diff --git a/src/services/pinpoint_sms_voice.jl b/src/services/pinpoint_sms_voice.jl index 7389c483f..483e5b98b 100644 --- a/src/services/pinpoint_sms_voice.jl +++ b/src/services/pinpoint_sms_voice.jl @@ -15,14 +15,13 @@ more event destinations to it. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ConfigurationSetName"`: The name that you want to give the configuration set. """ -function create_configuration_set(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice( +create_configuration_set(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice( "POST", "/v1/sms-voice/configuration-sets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_configuration_set( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -49,16 +48,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EventDestination"`: - `"EventDestinationName"`: A name that identifies the event destination. """ -function create_configuration_set_event_destination( +create_configuration_set_event_destination( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice( + "POST", + "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)/event-destinations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice( - "POST", - "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)/event-destinations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set_event_destination( ConfigurationSetName, params::AbstractDict{String}; @@ -83,16 +80,14 @@ Deletes an existing configuration set. - `configuration_set_name`: ConfigurationSetName """ -function delete_configuration_set( +delete_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice( + "DELETE", + "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice( - "DELETE", - "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -118,18 +113,16 @@ Deletes an event destination in a configuration set. - `event_destination_name`: EventDestinationName """ -function delete_configuration_set_event_destination( +delete_configuration_set_event_destination( ConfigurationSetName, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice( + "DELETE", + "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice( - "DELETE", - "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set_event_destination( ConfigurationSetName, EventDestinationName, @@ -156,16 +149,14 @@ the Amazon Resource Name (ARN) of the destination, and the name of the event des - `configuration_set_name`: ConfigurationSetName """ -function get_configuration_set_event_destinations( +get_configuration_set_event_destinations( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice( + "GET", + "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)/event-destinations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice( - "GET", - "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)/event-destinations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configuration_set_event_destinations( ConfigurationSetName, params::AbstractDict{String}; @@ -193,14 +184,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys position in the list of results. - `"PageSize"`: Used to specify the number of items that should be returned in the response. """ -function list_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice( +list_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice( "GET", "/v1/sms-voice/configuration-sets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_configuration_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -231,14 +221,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys voice message. This isn't necessarily the phone number that appears on recipients' devices when they receive the message, because you can specify a CallerId parameter in the request. """ -function send_voice_message(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice( +send_voice_message(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice( "POST", "/v1/sms-voice/voice/message"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_voice_message( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -267,18 +256,16 @@ Amazon CloudWatch destination when a call fails. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"EventDestination"`: """ -function update_configuration_set_event_destination( +update_configuration_set_event_destination( ConfigurationSetName, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice( + "PUT", + "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice( - "PUT", - "/v1/sms-voice/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_set_event_destination( ConfigurationSetName, EventDestinationName, diff --git a/src/services/pinpoint_sms_voice_v2.jl b/src/services/pinpoint_sms_voice_v2.jl index b4fa0d96c..6a6500db4 100644 --- a/src/services/pinpoint_sms_voice_v2.jl +++ b/src/services/pinpoint_sms_voice_v2.jl @@ -29,24 +29,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency. """ -function associate_origination_identity( +associate_origination_identity( IsoCountryCode, OriginationIdentity, PoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "AssociateOriginationIdentity", + Dict{String,Any}( + "IsoCountryCode" => IsoCountryCode, + "OriginationIdentity" => OriginationIdentity, + "PoolId" => PoolId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "AssociateOriginationIdentity", - Dict{String,Any}( - "IsoCountryCode" => IsoCountryCode, - "OriginationIdentity" => OriginationIdentity, - "PoolId" => PoolId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_origination_identity( IsoCountryCode, OriginationIdentity, @@ -87,21 +85,19 @@ configuration sets. - `protect_configuration_id`: The unique identifier for the protect configuration. """ -function associate_protect_configuration( +associate_protect_configuration( ConfigurationSetName, ProtectConfigurationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "AssociateProtectConfiguration", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "ProtectConfigurationId" => ProtectConfigurationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "AssociateProtectConfiguration", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "ProtectConfigurationId" => ProtectConfigurationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_protect_configuration( ConfigurationSetName, ProtectConfigurationId, @@ -145,18 +141,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An array of key and value pair tags that's associated with the new configuration set. """ -function create_configuration_set( +create_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "CreateConfigurationSet", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, "ClientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "CreateConfigurationSet", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -184,12 +178,12 @@ end create_event_destination(configuration_set_name, event_destination_name, matching_event_types, params::Dict{String,<:Any}) Creates a new event destination in a configuration set. An event destination is a location -where you send message events. The event options are Amazon CloudWatch, Amazon Kinesis Data +where you send message events. The event options are Amazon CloudWatch, Amazon Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic. Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a -single destination, such as a CloudWatch or Kinesis Data Firehose destination. +single destination, such as a CloudWatch or Firehose destination. # Arguments - `configuration_set_name`: Either the name of the configuration set or the configuration @@ -197,8 +191,8 @@ single destination, such as a CloudWatch or Kinesis Data Firehose destination. found using the DescribeConfigurationSets action. - `event_destination_name`: The name that identifies the event destination. - `matching_event_types`: An array of event types that determine which events to log. If - \"ALL\" is used, then Amazon Pinpoint logs every event type. The TEXT_SENT event type is - not supported. + \"ALL\" is used, then AWS End User Messaging SMS and Voice logs every event type. The + TEXT_SENT event type is not supported. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -208,28 +202,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CloudWatchLogsDestination"`: An object that contains information about an event destination for logging to Amazon CloudWatch Logs. - `"KinesisFirehoseDestination"`: An object that contains information about an event - destination for logging to Amazon Kinesis Data Firehose. + destination for logging to Amazon Data Firehose. - `"SnsDestination"`: An object that contains information about an event destination for logging to Amazon SNS. """ -function create_event_destination( +create_event_destination( ConfigurationSetName, EventDestinationName, MatchingEventTypes; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "CreateEventDestination", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "EventDestinationName" => EventDestinationName, + "MatchingEventTypes" => MatchingEventTypes, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "CreateEventDestination", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "EventDestinationName" => EventDestinationName, - "MatchingEventTypes" => MatchingEventTypes, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_destination( ConfigurationSetName, EventDestinationName, @@ -265,7 +257,7 @@ An opt-out list is a list of phone numbers that are opted out, meaning you can't or voice messages to them. If end user replies with the keyword \"STOP,\" an entry for the phone number is added to the opt-out list. In addition to STOP, your recipients can use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of supported opt-out -keywords, see SMS opt out in the Amazon Pinpoint User Guide. +keywords, see SMS opt out in the AWS End User Messaging SMS User Guide. # Arguments - `opt_out_list_name`: The name of the new OptOutList. @@ -277,10 +269,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is used for the request to ensure idempotency. - `"Tags"`: An array of tags (key and value pairs) to associate with the new OptOutList. """ -function create_opt_out_list( - OptOutListName; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +create_opt_out_list(OptOutListName; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "CreateOptOutList", Dict{String,Any}( "OptOutListName" => OptOutListName, "ClientToken" => string(uuid4()) @@ -288,7 +278,6 @@ function create_opt_out_list( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_opt_out_list( OptOutListName, params::AbstractDict{String}; @@ -328,11 +317,12 @@ be associated with multiple pools. country or region of the new pool. - `message_type`: The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or - time-sensitive. + time-sensitive. After the pool is created the MessageType can't be changed. - `origination_identity`: The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the - values for SenderId and SenderIdArn. + values for SenderId and SenderIdArn. After the pool is created you can add more origination + identities to the pool by using AssociateOriginationIdentity. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -343,24 +333,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can't be deleted. You can change this value using the UpdatePool action. - `"Tags"`: An array of tags (key and value pairs) associated with the pool. """ -function create_pool( +create_pool( IsoCountryCode, MessageType, OriginationIdentity; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "CreatePool", + Dict{String,Any}( + "IsoCountryCode" => IsoCountryCode, + "MessageType" => MessageType, + "OriginationIdentity" => OriginationIdentity, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "CreatePool", - Dict{String,Any}( - "IsoCountryCode" => IsoCountryCode, - "MessageType" => MessageType, - "OriginationIdentity" => OriginationIdentity, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pool( IsoCountryCode, MessageType, @@ -405,14 +393,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default this is set to false. - `"Tags"`: An array of key and value pair tags that are associated with the resource. """ -function create_protect_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +create_protect_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "CreateProtectConfiguration", Dict{String,Any}("ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_protect_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -443,10 +430,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is used for the request to ensure idempotency. - `"Tags"`: An array of tags (key and value pairs) to associate with the registration. """ -function create_registration( - RegistrationType; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +create_registration(RegistrationType; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "CreateRegistration", Dict{String,Any}( "RegistrationType" => RegistrationType, "ClientToken" => string(uuid4()) @@ -454,7 +439,6 @@ function create_registration( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_registration( RegistrationType, params::AbstractDict{String}; @@ -488,16 +472,14 @@ Associate the registration with an origination identity such as a phone number o be a PhoneNumberId or SenderId. """ -function create_registration_association( +create_registration_association( RegistrationId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "CreateRegistrationAssociation", + Dict{String,Any}("RegistrationId" => RegistrationId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "CreateRegistrationAssociation", - Dict{String,Any}("RegistrationId" => RegistrationId, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_registration_association( RegistrationId, ResourceId, @@ -541,16 +523,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An array of tags (key and value pairs) to associate with the registration attachment. """ -function create_registration_attachment(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +create_registration_attachment(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "CreateRegistrationAttachment", Dict{String,Any}("ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_registration_attachment( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -575,16 +554,14 @@ version of the registration becomes read-only. - `registration_id`: The unique identifier for the registration. """ -function create_registration_version( +create_registration_version( RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "CreateRegistrationVersion", + Dict{String,Any}("RegistrationId" => RegistrationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "CreateRegistrationVersion", - Dict{String,Any}("RegistrationId" => RegistrationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_registration_version( RegistrationId, params::AbstractDict{String}; @@ -617,19 +594,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is used for the request to ensure idempotency. - `"Tags"`: An array of tags (key and value pairs) to associate with the destination number. """ -function create_verified_destination_number( +create_verified_destination_number( DestinationPhoneNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "CreateVerifiedDestinationNumber", + Dict{String,Any}( + "DestinationPhoneNumber" => DestinationPhoneNumber, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "CreateVerifiedDestinationNumber", - Dict{String,Any}( - "DestinationPhoneNumber" => DestinationPhoneNumber, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_verified_destination_number( DestinationPhoneNumber, params::AbstractDict{String}; @@ -659,15 +634,13 @@ end Removes the current account default protect configuration. """ -function delete_account_default_protect_configuration(; +delete_account_default_protect_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteAccountDefaultProtectConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteAccountDefaultProtectConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_account_default_protect_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -693,16 +666,14 @@ destination for specific types of events related to voice and SMS messages. using the DescribeConfigurationSets action. """ -function delete_configuration_set( +delete_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteConfigurationSet", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteConfigurationSet", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -739,16 +710,14 @@ setting applies to your entire Amazon Web Services account. DescribeConfigurationSets action. """ -function delete_default_message_type( +delete_default_message_type( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteDefaultMessageType", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteDefaultMessageType", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_default_message_type( ConfigurationSetName, params::AbstractDict{String}; @@ -782,16 +751,14 @@ sender ID capabilities varies by country or region. and ConfigurationSetArn can be found using the DescribeConfigurationSets action. """ -function delete_default_sender_id( +delete_default_sender_id( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteDefaultSenderId", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteDefaultSenderId", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_default_sender_id( ConfigurationSetName, params::AbstractDict{String}; @@ -827,21 +794,19 @@ destination, or send notifications to endpoints that are subscribed to an Amazon - `event_destination_name`: The name of the event destination to delete. """ -function delete_event_destination( +delete_event_destination( ConfigurationSetName, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "DeleteEventDestination", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "EventDestinationName" => EventDestinationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteEventDestination", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "EventDestinationName" => EventDestinationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_destination( ConfigurationSetName, EventDestinationName, @@ -873,8 +838,8 @@ Deletes an existing keyword from an origination phone number or pool. A keyword that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins -with a keyword, Amazon Pinpoint responds with a customizable message. Keywords \"HELP\" and -\"STOP\" can't be deleted or modified. +with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message. +Keywords \"HELP\" and \"STOP\" can't be deleted or modified. # Arguments - `keyword`: The keyword to delete. @@ -883,18 +848,14 @@ with a keyword, Amazon Pinpoint responds with a customizable message. Keywords \ PhoneNumberId and PhoneNumberArn and DescribePools to find the values of PoolId and PoolArn. """ -function delete_keyword( +delete_keyword( Keyword, OriginationIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteKeyword", + Dict{String,Any}("Keyword" => Keyword, "OriginationIdentity" => OriginationIdentity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteKeyword", - Dict{String,Any}( - "Keyword" => Keyword, "OriginationIdentity" => OriginationIdentity - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_keyword( Keyword, OriginationIdentity, @@ -927,15 +888,13 @@ which is controlled by Amazon Web Services. For more information on spend limits see Quotas for Server Migration Service in the Server Migration Service User Guide. """ -function delete_media_message_spend_limit_override(; +delete_media_message_spend_limit_override(; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteMediaMessageSpendLimitOverride"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteMediaMessageSpendLimitOverride"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_media_message_spend_limit_override( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -960,16 +919,13 @@ phone number or pool, an error is returned. can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn. """ -function delete_opt_out_list( - OptOutListName; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +delete_opt_out_list(OptOutListName; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DeleteOptOutList", Dict{String,Any}("OptOutListName" => OptOutListName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_opt_out_list( OptOutListName, params::AbstractDict{String}; @@ -999,18 +955,16 @@ returned. - `opted_out_number`: The phone number, in E.164 format, to remove from the OptOutList. """ -function delete_opted_out_number( +delete_opted_out_number( OptOutListName, OptedOutNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteOptedOutNumber", + Dict{String,Any}( + "OptOutListName" => OptOutListName, "OptedOutNumber" => OptedOutNumber + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteOptedOutNumber", - Dict{String,Any}( - "OptOutListName" => OptOutListName, "OptedOutNumber" => OptedOutNumber - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_opted_out_number( OptOutListName, OptedOutNumber, @@ -1048,14 +1002,13 @@ account. the values for PoolId and PoolArn . """ -function delete_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +delete_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DeletePool", Dict{String,Any}("PoolId" => PoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_pool( PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1079,16 +1032,14 @@ or associated with a configuration set. - `protect_configuration_id`: The unique identifier for the protect configuration. """ -function delete_protect_configuration( +delete_protect_configuration( ProtectConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteProtectConfiguration", + Dict{String,Any}("ProtectConfigurationId" => ProtectConfigurationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteProtectConfiguration", - Dict{String,Any}("ProtectConfigurationId" => ProtectConfigurationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_protect_configuration( ProtectConfigurationId, params::AbstractDict{String}; @@ -1118,16 +1069,13 @@ Permanently delete an existing registration from your account. - `registration_id`: The unique identifier for the registration. """ -function delete_registration( - RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +delete_registration(RegistrationId; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DeleteRegistration", Dict{String,Any}("RegistrationId" => RegistrationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_registration( RegistrationId, params::AbstractDict{String}; @@ -1153,16 +1101,14 @@ Permanently delete the specified registration attachment. - `registration_attachment_id`: The unique identifier for the registration attachment. """ -function delete_registration_attachment( +delete_registration_attachment( RegistrationAttachmentId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteRegistrationAttachment", + Dict{String,Any}("RegistrationAttachmentId" => RegistrationAttachmentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteRegistrationAttachment", - Dict{String,Any}("RegistrationAttachmentId" => RegistrationAttachmentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_registration_attachment( RegistrationAttachmentId, params::AbstractDict{String}; @@ -1194,16 +1140,14 @@ Delete the value in a registration form field. - `registration_id`: The unique identifier for the registration. """ -function delete_registration_field_value( +delete_registration_field_value( FieldPath, RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteRegistrationFieldValue", + Dict{String,Any}("FieldPath" => FieldPath, "RegistrationId" => RegistrationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteRegistrationFieldValue", - Dict{String,Any}("FieldPath" => FieldPath, "RegistrationId" => RegistrationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_registration_field_value( FieldPath, RegistrationId, @@ -1232,19 +1176,17 @@ end Deletes an account-level monthly spending limit override for sending text messages. Deleting a spend limit override will set the EnforcedLimit to equal the MaxLimit, which is -controlled by Amazon Web Services. For more information on spend limits (quotas) see Amazon -Pinpoint quotas in the Amazon Pinpoint Developer Guide. +controlled by Amazon Web Services. For more information on spend limits (quotas) see Quotas + in the AWS End User Messaging SMS User Guide. """ -function delete_text_message_spend_limit_override(; +delete_text_message_spend_limit_override(; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteTextMessageSpendLimitOverride"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteTextMessageSpendLimitOverride"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_text_message_spend_limit_override( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1267,16 +1209,14 @@ Delete a verified destination phone number. phone number. """ -function delete_verified_destination_number( +delete_verified_destination_number( VerifiedDestinationNumberId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteVerifiedDestinationNumber", + Dict{String,Any}("VerifiedDestinationNumberId" => VerifiedDestinationNumberId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteVerifiedDestinationNumber", - Dict{String,Any}("VerifiedDestinationNumberId" => VerifiedDestinationNumberId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_verified_destination_number( VerifiedDestinationNumberId, params::AbstractDict{String}; @@ -1304,19 +1244,17 @@ end Deletes an account level monthly spend limit override for sending voice messages. Deleting a spend limit override sets the EnforcedLimit equal to the MaxLimit, which is controlled by -Amazon Web Services. For more information on spending limits (quotas) see Amazon Pinpoint -quotas in the Amazon Pinpoint Developer Guide. +Amazon Web Services. For more information on spending limits (quotas) see Quotas in the +AWS End User Messaging SMS User Guide. """ -function delete_voice_message_spend_limit_override(; +delete_voice_message_spend_limit_override(; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DeleteVoiceMessageSpendLimitOverride"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DeleteVoiceMessageSpendLimitOverride"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_voice_message_spend_limit_override( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1335,9 +1273,9 @@ end Describes attributes of your Amazon Web Services account. The supported account attributes include account tier, which indicates whether your account is in the sandbox or production environment. When you're ready to move your account out of the sandbox, create an Amazon -Web Services Support case for a service limit increase request. New Amazon Pinpoint -accounts are placed into an SMS or voice sandbox. The sandbox protects both Amazon Web -Services end recipients and SMS or voice recipients from fraud and abuse. +Web Services Support case for a service limit increase request. New accounts are placed +into an SMS or voice sandbox. The sandbox protects both Amazon Web Services end recipients +and SMS or voice recipients from fraud and abuse. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1345,11 +1283,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request. """ -function describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1365,12 +1302,12 @@ end describe_account_limits() describe_account_limits(params::Dict{String,<:Any}) -Describes the current Amazon Pinpoint SMS Voice V2 resource quotas for your account. The -description for a quota includes the quota name, current usage toward that quota, and the -quota's maximum value. When you establish an Amazon Web Services account, the account has -initial quotas on the maximum number of configuration sets, opt-out lists, phone numbers, -and pools that you can create in a given Region. For more information see Amazon Pinpoint -quotas in the Amazon Pinpoint Developer Guide. +Describes the current AWS End User Messaging SMS and Voice SMS Voice V2 resource quotas for +your account. The description for a quota includes the quota name, current usage toward +that quota, and the quota's maximum value. When you establish an Amazon Web Services +account, the account has initial quotas on the maximum number of configuration sets, +opt-out lists, phone numbers, and pools that you can create in a given Region. For more +information see Quotas in the AWS End User Messaging SMS User Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -1378,11 +1315,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request. """ -function describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_account_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeAccountLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1414,11 +1350,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request. """ -function describe_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeConfigurationSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_configuration_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1438,8 +1373,8 @@ Describes the specified keywords or all keywords on your origination phone numbe A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a -message that begins with a keyword, Amazon Pinpoint responds with a customizable message. -If you specify a keyword that isn't valid, an error is returned. +message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a +customizable message. If you specify a keyword that isn't valid, an error is returned. # Arguments - `origination_identity`: The origination identity to use such as a PhoneNumberId, @@ -1455,16 +1390,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request. """ -function describe_keywords( - OriginationIdentity; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +describe_keywords(OriginationIdentity; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeKeywords", Dict{String,Any}("OriginationIdentity" => OriginationIdentity); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_keywords( OriginationIdentity, params::AbstractDict{String}; @@ -1502,11 +1434,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OptOutListNames"`: The OptOutLists to show the details of. This is an array of strings that can be either the OptOutListName or OptOutListArn. """ -function describe_opt_out_lists(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_opt_out_lists(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeOptOutLists"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_opt_out_lists( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1542,16 +1473,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply a value for this field in the initial request. - `"OptedOutNumbers"`: An array of phone numbers to search for in the OptOutList. """ -function describe_opted_out_numbers( +describe_opted_out_numbers( OptOutListName; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DescribeOptedOutNumbers", + Dict{String,Any}("OptOutListName" => OptOutListName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DescribeOptedOutNumbers", - Dict{String,Any}("OptOutListName" => OptOutListName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_opted_out_numbers( OptOutListName, params::AbstractDict{String}; @@ -1587,11 +1516,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PhoneNumberIds"`: The unique identifier of phone numbers to find information about. This is an array of strings that can be either the PhoneNumberId or PhoneNumberArn. """ -function describe_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribePhoneNumbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_phone_numbers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1624,11 +1552,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PoolIds"`: The unique identifier of pools to find. This is an array of strings that can be either the PoolId or PoolArn. """ -function describe_pools(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribePools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1652,15 +1579,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply a value for this field in the initial request. - `"ProtectConfigurationIds"`: An array of protect configuration identifiers to search for. """ -function describe_protect_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +describe_protect_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeProtectConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_protect_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1688,15 +1612,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RegistrationAttachmentIds"`: The unique identifier of registration attachments to find. This is an array of RegistrationAttachmentId. """ -function describe_registration_attachments(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +describe_registration_attachments(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeRegistrationAttachments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_registration_attachments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1728,16 +1649,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply a value for this field in the initial request. - `"SectionPath"`: The path to the section of the registration. """ -function describe_registration_field_definitions( +describe_registration_field_definitions( RegistrationType; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DescribeRegistrationFieldDefinitions", + Dict{String,Any}("RegistrationType" => RegistrationType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DescribeRegistrationFieldDefinitions", - Dict{String,Any}("RegistrationType" => RegistrationType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_registration_field_definitions( RegistrationType, params::AbstractDict{String}; @@ -1773,16 +1692,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SectionPath"`: The path to the section of the registration. - `"VersionNumber"`: The version number of the registration. """ -function describe_registration_field_values( +describe_registration_field_values( RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DescribeRegistrationFieldValues", + Dict{String,Any}("RegistrationId" => RegistrationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DescribeRegistrationFieldValues", - Dict{String,Any}("RegistrationId" => RegistrationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_registration_field_values( RegistrationId, params::AbstractDict{String}; @@ -1817,16 +1734,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply a value for this field in the initial request. - `"SectionPaths"`: An array of paths for the registration form section. """ -function describe_registration_section_definitions( +describe_registration_section_definitions( RegistrationType; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DescribeRegistrationSectionDefinitions", + Dict{String,Any}("RegistrationType" => RegistrationType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DescribeRegistrationSectionDefinitions", - Dict{String,Any}("RegistrationType" => RegistrationType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_registration_section_definitions( RegistrationType, params::AbstractDict{String}; @@ -1861,15 +1776,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RegistrationTypes"`: The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action. """ -function describe_registration_type_definitions(; +describe_registration_type_definitions(; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DescribeRegistrationTypeDefinitions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DescribeRegistrationTypeDefinitions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_registration_type_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1898,16 +1811,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply a value for this field in the initial request. - `"VersionNumbers"`: An array of registration version numbers. """ -function describe_registration_versions( +describe_registration_versions( RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DescribeRegistrationVersions", + Dict{String,Any}("RegistrationId" => RegistrationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DescribeRegistrationVersions", - Dict{String,Any}("RegistrationId" => RegistrationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_registration_versions( RegistrationId, params::AbstractDict{String}; @@ -1937,11 +1848,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply a value for this field in the initial request. - `"RegistrationIds"`: An array of unique identifiers for each registration. """ -function describe_registrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_registrations(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeRegistrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_registrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1972,11 +1882,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply a value for this field in the initial request. - `"SenderIds"`: An array of SenderIdAndCountry objects to search for. """ -function describe_sender_ids(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_sender_ids(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeSenderIds"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_sender_ids( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1989,11 +1898,11 @@ end describe_spend_limits() describe_spend_limits(params::Dict{String,<:Any}) -Describes the current Amazon Pinpoint monthly spend limits for sending voice and text -messages. When you establish an Amazon Web Services account, the account has initial -monthly spend limit in a given Region. For more information on increasing your monthly -spend limit, see Requesting increases to your monthly SMS spending quota for Amazon -Pinpoint in the Amazon Pinpoint User Guide. +Describes the current monthly spend limits for sending voice and text messages. When you +establish an Amazon Web Services account, the account has initial monthly spend limit in a +given Region. For more information on increasing your monthly spend limit, see Requesting +increases to your monthly SMS, MMS, or Voice spending quota in the AWS End User Messaging +SMS User Guide. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -2001,11 +1910,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request. """ -function describe_spend_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +describe_spend_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "DescribeSpendLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_spend_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2033,15 +1941,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to supply a value for this field in the initial request. - `"VerifiedDestinationNumberIds"`: An array of VerifiedDestinationNumberid to retreive. """ -function describe_verified_destination_numbers(; +describe_verified_destination_numbers(; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DescribeVerifiedDestinationNumbers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DescribeVerifiedDestinationNumbers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_verified_destination_numbers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2076,24 +1982,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency. """ -function disassociate_origination_identity( +disassociate_origination_identity( IsoCountryCode, OriginationIdentity, PoolId; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "DisassociateOriginationIdentity", + Dict{String,Any}( + "IsoCountryCode" => IsoCountryCode, + "OriginationIdentity" => OriginationIdentity, + "PoolId" => PoolId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DisassociateOriginationIdentity", - Dict{String,Any}( - "IsoCountryCode" => IsoCountryCode, - "OriginationIdentity" => OriginationIdentity, - "PoolId" => PoolId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_origination_identity( IsoCountryCode, OriginationIdentity, @@ -2131,21 +2035,19 @@ Disassociate a protect configuration from a configuration set. - `protect_configuration_id`: The unique identifier for the protect configuration. """ -function disassociate_protect_configuration( +disassociate_protect_configuration( ConfigurationSetName, ProtectConfigurationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "DisassociateProtectConfiguration", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "ProtectConfigurationId" => ProtectConfigurationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DisassociateProtectConfiguration", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "ProtectConfigurationId" => ProtectConfigurationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_protect_configuration( ConfigurationSetName, ProtectConfigurationId, @@ -2179,16 +2081,14 @@ Discard the current version of the registration. - `registration_id`: The unique identifier for the registration. """ -function discard_registration_version( +discard_registration_version( RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "DiscardRegistrationVersion", + Dict{String,Any}("RegistrationId" => RegistrationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "DiscardRegistrationVersion", - Dict{String,Any}("RegistrationId" => RegistrationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function discard_registration_version( RegistrationId, params::AbstractDict{String}; @@ -2216,21 +2116,19 @@ Retrieve the CountryRuleSet for the specified NumberCapability from a protect co - `protect_configuration_id`: The unique identifier for the protect configuration. """ -function get_protect_configuration_country_rule_set( +get_protect_configuration_country_rule_set( NumberCapability, ProtectConfigurationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "GetProtectConfigurationCountryRuleSet", + Dict{String,Any}( + "NumberCapability" => NumberCapability, + "ProtectConfigurationId" => ProtectConfigurationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "GetProtectConfigurationCountryRuleSet", - Dict{String,Any}( - "NumberCapability" => NumberCapability, - "ProtectConfigurationId" => ProtectConfigurationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_protect_configuration_country_rule_set( NumberCapability, ProtectConfigurationId, @@ -2273,16 +2171,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request. """ -function list_pool_origination_identities( +list_pool_origination_identities( PoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "ListPoolOriginationIdentities", + Dict{String,Any}("PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "ListPoolOriginationIdentities", - Dict{String,Any}("PoolId" => PoolId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_pool_origination_identities( PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2311,16 +2207,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request. """ -function list_registration_associations( +list_registration_associations( RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "ListRegistrationAssociations", + Dict{String,Any}("RegistrationId" => RegistrationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "ListRegistrationAssociations", - Dict{String,Any}("RegistrationId" => RegistrationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_registration_associations( RegistrationId, params::AbstractDict{String}; @@ -2346,16 +2240,13 @@ List all tags associated with a resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource to query for. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2379,8 +2270,8 @@ Creates or updates a keyword configuration on an origination phone number or poo keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message -that begins with a keyword, Amazon Pinpoint responds with a customizable message. If you -specify a keyword that isn't valid, an error is returned. +that begins with a keyword, AWS End User Messaging SMS and Voice responds with a +customizable message. If you specify a keyword that isn't valid, an error is returned. # Arguments - `keyword`: The new keyword to add. @@ -2396,23 +2287,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AUTOMATIC_RESPONSE: A message is sent to the recipient. OPT_OUT: Keeps the recipient from receiving future messages. OPT_IN: The recipient wants to receive future messages. """ -function put_keyword( +put_keyword( Keyword, KeywordMessage, OriginationIdentity; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "PutKeyword", + Dict{String,Any}( + "Keyword" => Keyword, + "KeywordMessage" => KeywordMessage, + "OriginationIdentity" => OriginationIdentity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "PutKeyword", - Dict{String,Any}( - "Keyword" => Keyword, - "KeywordMessage" => KeywordMessage, - "OriginationIdentity" => OriginationIdentity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_keyword( Keyword, KeywordMessage, @@ -2450,18 +2339,16 @@ number isn't valid or if the specified opt-out list doesn't exist, an error is r - `opted_out_number`: The phone number to add to the OptOutList in E.164 format. """ -function put_opted_out_number( +put_opted_out_number( OptOutListName, OptedOutNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "PutOptedOutNumber", + Dict{String,Any}( + "OptOutListName" => OptOutListName, "OptedOutNumber" => OptedOutNumber + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "PutOptedOutNumber", - Dict{String,Any}( - "OptOutListName" => OptOutListName, "OptedOutNumber" => OptedOutNumber - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_opted_out_number( OptOutListName, OptedOutNumber, @@ -2501,16 +2388,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SelectChoices"`: An array of values for the form field. - `"TextValue"`: The text data for a free form field. """ -function put_registration_field_value( +put_registration_field_value( FieldPath, RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "PutRegistrationFieldValue", + Dict{String,Any}("FieldPath" => FieldPath, "RegistrationId" => RegistrationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "PutRegistrationFieldValue", - Dict{String,Any}("FieldPath" => FieldPath, "RegistrationId" => RegistrationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_registration_field_value( FieldPath, RegistrationId, @@ -2546,16 +2431,13 @@ deletion protection enabled or is associated with a pool, an error is returned. You can use DescribePhoneNumbers to get the values for PhoneNumberId and PhoneNumberArn. """ -function release_phone_number( - PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +release_phone_number(PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "ReleasePhoneNumber", Dict{String,Any}("PhoneNumberId" => PhoneNumberId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function release_phone_number( PhoneNumberId, params::AbstractDict{String}; @@ -2583,16 +2465,14 @@ Releases an existing sender ID in your account. - `sender_id`: The sender ID to release. """ -function release_sender_id( +release_sender_id( IsoCountryCode, SenderId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "ReleaseSenderId", + Dict{String,Any}("IsoCountryCode" => IsoCountryCode, "SenderId" => SenderId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "ReleaseSenderId", - Dict{String,Any}("IsoCountryCode" => IsoCountryCode, "SenderId" => SenderId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function release_sender_id( IsoCountryCode, SenderId, @@ -2620,7 +2500,7 @@ end request_phone_number(iso_country_code, message_type, number_capabilities, number_type, params::Dict{String,<:Any}) Request an origination phone number for use in your account. For more information on phone -number request see Requesting a number in the Amazon Pinpoint User Guide. +number request see Request a phone number in the AWS End User Messaging SMS User Guide. # Arguments - `iso_country_code`: The two-character code, in ISO 3166-1 alpha-2 format, for the country @@ -2648,26 +2528,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An array of tags (key and value pairs) associate with the requested phone number. """ -function request_phone_number( +request_phone_number( IsoCountryCode, MessageType, NumberCapabilities, NumberType; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "RequestPhoneNumber", + Dict{String,Any}( + "IsoCountryCode" => IsoCountryCode, + "MessageType" => MessageType, + "NumberCapabilities" => NumberCapabilities, + "NumberType" => NumberType, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "RequestPhoneNumber", - Dict{String,Any}( - "IsoCountryCode" => IsoCountryCode, - "MessageType" => MessageType, - "NumberCapabilities" => NumberCapabilities, - "NumberType" => NumberType, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function request_phone_number( IsoCountryCode, MessageType, @@ -2719,20 +2597,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys time-sensitive. - `"Tags"`: An array of tags (key and value pairs) to associate with the sender ID. """ -function request_sender_id( +request_sender_id( IsoCountryCode, SenderId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "RequestSenderId", + Dict{String,Any}( + "IsoCountryCode" => IsoCountryCode, + "SenderId" => SenderId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "RequestSenderId", - Dict{String,Any}( - "IsoCountryCode" => IsoCountryCode, - "SenderId" => SenderId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function request_sender_id( IsoCountryCode, SenderId, @@ -2785,21 +2661,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OriginationIdentity"`: The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn. """ -function send_destination_number_verification_code( +send_destination_number_verification_code( VerificationChannel, VerifiedDestinationNumberId; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "SendDestinationNumberVerificationCode", + Dict{String,Any}( + "VerificationChannel" => VerificationChannel, + "VerifiedDestinationNumberId" => VerifiedDestinationNumberId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SendDestinationNumberVerificationCode", - Dict{String,Any}( - "VerificationChannel" => VerificationChannel, - "VerifiedDestinationNumberId" => VerifiedDestinationNumberId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_destination_number_verification_code( VerificationChannel, VerifiedDestinationNumberId, @@ -2852,21 +2726,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProtectConfigurationId"`: The unique identifier of the protect configuration to use. - `"TimeToLive"`: How long the text message is valid for. By default this is 72 hours. """ -function send_media_message( +send_media_message( DestinationPhoneNumber, OriginationIdentity; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "SendMediaMessage", + Dict{String,Any}( + "DestinationPhoneNumber" => DestinationPhoneNumber, + "OriginationIdentity" => OriginationIdentity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SendMediaMessage", - Dict{String,Any}( - "DestinationPhoneNumber" => DestinationPhoneNumber, - "OriginationIdentity" => OriginationIdentity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_media_message( DestinationPhoneNumber, OriginationIdentity, @@ -2894,11 +2766,12 @@ end send_text_message(destination_phone_number) send_text_message(destination_phone_number, params::Dict{String,<:Any}) -Creates a new text message and sends it to a recipient's phone number. SMS throughput -limits are measured in Message Parts per Second (MPS). Your MPS limit depends on the -destination country of your messages, as well as the type of phone number (origination -number) that you use to send the message. For more information, see Message Parts per -Second (MPS) limits in the Amazon Pinpoint User Guide. +Creates a new text message and sends it to a recipient's phone number. SendTextMessage only +sends an SMS message to one recipient each time it is invoked. SMS throughput limits are +measured in Message Parts per Second (MPS). Your MPS limit depends on the destination +country of your messages, as well as the type of phone number (origination number) that you +use to send the message. For more information about MPS, see Message Parts per Second (MPS) +limits in the AWS End User Messaging SMS User Guide. # Arguments - `destination_phone_number`: The destination phone number in E.164 format. @@ -2912,31 +2785,40 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DestinationCountryParameters"`: This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for - sending SMS messages to recipients in India. + sending SMS messages to recipients in India. IN_ENTITY_ID The entity ID or Principal + Entity (PE) ID that you received after completing the sender ID registration process. + IN_TEMPLATE_ID The template ID that you received after completing the sender ID + registration process. Make sure that the Template ID that you specify matches your message + template exactly. If your message doesn't match the template that you provided during the + registration process, the mobile carriers might reject your message. - `"DryRun"`: When set to true, the message is checked and validated, but isn't sent to the - end recipient. + end recipient. You are not charged for using DryRun. The Message Parts per Second (MPS) + limit when using DryRun is five. If your origination identity has a lower MPS limit then + the lower MPS limit is used. For more information about MPS limits, see Message Parts per + Second (MPS) limits in the AWS End User Messaging SMS User Guide.. - `"Keyword"`: When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute. - `"MaxPrice"`: The maximum amount that you want to spend, in US dollars, per each text - message part. A text message can contain multiple parts. + message. If the calculated amount to send the text message is greater than MaxPrice, the + message is not sent and an error is returned. - `"MessageBody"`: The body of the text message. - `"MessageType"`: The type of message. Valid values are for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive. - `"OriginationIdentity"`: The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn. - `"ProtectConfigurationId"`: The unique identifier for the protect configuration. -- `"TimeToLive"`: How long the text message is valid for. By default this is 72 hours. +- `"TimeToLive"`: How long the text message is valid for, in seconds. By default this is 72 + hours. If the messages isn't handed off before the TTL expires we stop attempting to hand + off the message and return TTL_EXPIRED event. """ -function send_text_message( +send_text_message( DestinationPhoneNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "SendTextMessage", + Dict{String,Any}("DestinationPhoneNumber" => DestinationPhoneNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SendTextMessage", - Dict{String,Any}("DestinationPhoneNumber" => DestinationPhoneNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_text_message( DestinationPhoneNumber, params::AbstractDict{String}; @@ -2960,8 +2842,8 @@ end send_voice_message(destination_phone_number, origination_identity) send_voice_message(destination_phone_number, origination_identity, params::Dict{String,<:Any}) -Allows you to send a request that sends a voice message through Amazon Pinpoint. This -operation uses Amazon Polly to convert a text script into a voice message. +Allows you to send a request that sends a voice message. This operation uses Amazon Polly +to convert a text script into a voice message. # Arguments - `destination_phone_number`: The destination phone number in E.164 format. @@ -2987,21 +2869,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VoiceId"`: The voice for the Amazon Polly service to use. By default this is set to \"MATTHEW\". """ -function send_voice_message( +send_voice_message( DestinationPhoneNumber, OriginationIdentity; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "SendVoiceMessage", + Dict{String,Any}( + "DestinationPhoneNumber" => DestinationPhoneNumber, + "OriginationIdentity" => OriginationIdentity, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SendVoiceMessage", - Dict{String,Any}( - "DestinationPhoneNumber" => DestinationPhoneNumber, - "OriginationIdentity" => OriginationIdentity, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_voice_message( DestinationPhoneNumber, OriginationIdentity, @@ -3037,16 +2917,14 @@ replaced with the provided protect configuration. - `protect_configuration_id`: The unique identifier for the protect configuration. """ -function set_account_default_protect_configuration( +set_account_default_protect_configuration( ProtectConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "SetAccountDefaultProtectConfiguration", + Dict{String,Any}("ProtectConfigurationId" => ProtectConfigurationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SetAccountDefaultProtectConfiguration", - Dict{String,Any}("ProtectConfigurationId" => ProtectConfigurationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_account_default_protect_configuration( ProtectConfigurationId, params::AbstractDict{String}; @@ -3084,18 +2962,16 @@ Promotional. This setting applies to your entire Amazon Web Services account. time-sensitive. """ -function set_default_message_type( +set_default_message_type( ConfigurationSetName, MessageType; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "SetDefaultMessageType", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, "MessageType" => MessageType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SetDefaultMessageType", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, "MessageType" => MessageType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_default_message_type( ConfigurationSetName, MessageType, @@ -3138,18 +3014,16 @@ available in your account. sender ID, such as 'NOTICE'. """ -function set_default_sender_id( +set_default_sender_id( ConfigurationSetName, SenderId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "SetDefaultSenderId", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, "SenderId" => SenderId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SetDefaultSenderId", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, "SenderId" => SenderId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_default_sender_id( ConfigurationSetName, SenderId, @@ -3184,16 +3058,14 @@ Services. - `monthly_limit`: The new monthly limit to enforce on text messages. """ -function set_media_message_spend_limit_override( +set_media_message_spend_limit_override( MonthlyLimit; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "SetMediaMessageSpendLimitOverride", + Dict{String,Any}("MonthlyLimit" => MonthlyLimit); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SetMediaMessageSpendLimitOverride", - Dict{String,Any}("MonthlyLimit" => MonthlyLimit); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_media_message_spend_limit_override( MonthlyLimit, params::AbstractDict{String}; @@ -3221,16 +3093,14 @@ Services. - `monthly_limit`: The new monthly limit to enforce on text messages. """ -function set_text_message_spend_limit_override( +set_text_message_spend_limit_override( MonthlyLimit; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "SetTextMessageSpendLimitOverride", + Dict{String,Any}("MonthlyLimit" => MonthlyLimit); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SetTextMessageSpendLimitOverride", - Dict{String,Any}("MonthlyLimit" => MonthlyLimit); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_text_message_spend_limit_override( MonthlyLimit, params::AbstractDict{String}; @@ -3258,16 +3128,14 @@ Web Services. - `monthly_limit`: The new monthly limit to enforce on voice messages. """ -function set_voice_message_spend_limit_override( +set_voice_message_spend_limit_override( MonthlyLimit; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "SetVoiceMessageSpendLimitOverride", + Dict{String,Any}("MonthlyLimit" => MonthlyLimit); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SetVoiceMessageSpendLimitOverride", - Dict{String,Any}("MonthlyLimit" => MonthlyLimit); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_voice_message_spend_limit_override( MonthlyLimit, params::AbstractDict{String}; @@ -3293,16 +3161,14 @@ Submit the specified registration for review and approval. - `registration_id`: The unique identifier for the registration. """ -function submit_registration_version( +submit_registration_version( RegistrationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "SubmitRegistrationVersion", + Dict{String,Any}("RegistrationId" => RegistrationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "SubmitRegistrationVersion", - Dict{String,Any}("RegistrationId" => RegistrationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function submit_registration_version( RegistrationId, params::AbstractDict{String}; @@ -3322,25 +3188,24 @@ end tag_resource(resource_arn, tags) tag_resource(resource_arn, tags, params::Dict{String,<:Any}) -Adds or overwrites only the specified tags for the specified Amazon Pinpoint SMS Voice, -version 2 resource. When you specify an existing tag key, the value is overwritten with the -new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and an -optional value. Tag keys must be unique per resource. For more information about tags, see -Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide. +Adds or overwrites only the specified tags for the specified resource. When you specify an +existing tag key, the value is overwritten with the new value. Each resource can have a +maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be +unique per resource. For more information about tags, see Tags in the AWS End User +Messaging SMS User Guide. # Arguments - `resource_arn`: The Amazon Resource Name (ARN) of the resource. - `tags`: An array of key and value pair tags that are associated with the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -3365,25 +3230,21 @@ end untag_resource(resource_arn, tag_keys) untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any}) -Removes the association of the specified tags from an Amazon Pinpoint SMS Voice V2 -resource. For more information on tags see Tagging Amazon Pinpoint resources in the Amazon -Pinpoint Developer Guide. +Removes the association of the specified tags from a resource. For more information on tags +see Tags in the AWS End User Messaging SMS User Guide. # Arguments - `resource_arn`: The Amazon Resource Name (ARN) of the resource. - `tag_keys`: An array of tag key values to unassociate with the resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -3409,10 +3270,10 @@ end update_event_destination(configuration_set_name, event_destination_name, params::Dict{String,<:Any}) Updates an existing event destination in a configuration set. You can update the IAM role -ARN for CloudWatch Logs and Kinesis Data Firehose. You can also enable or disable the event -destination. You may want to update an event destination to change its matching event types -or updating the destination resource ARN. You can't change an event destination's type -between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS. +ARN for CloudWatch Logs and Firehose. You can also enable or disable the event destination. +You may want to update an event destination to change its matching event types or updating +the destination resource ARN. You can't change an event destination's type between +CloudWatch Logs, Firehose, and Amazon SNS. # Arguments - `configuration_set_name`: The configuration set to update with the new event destination. @@ -3425,27 +3286,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys destination that sends data to CloudWatch Logs. - `"Enabled"`: When set to true logging is enabled. - `"KinesisFirehoseDestination"`: An object that contains information about an event - destination for logging to Kinesis Data Firehose. + destination for logging to Firehose. - `"MatchingEventTypes"`: An array of event types that determine which events to log. The TEXT_SENT event type is not supported. - `"SnsDestination"`: An object that contains information about an event destination that sends data to Amazon SNS. """ -function update_event_destination( +update_event_destination( ConfigurationSetName, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "UpdateEventDestination", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "EventDestinationName" => EventDestinationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "UpdateEventDestination", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "EventDestinationName" => EventDestinationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_event_destination( ConfigurationSetName, EventDestinationName, @@ -3489,26 +3348,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OptOutListName"`: The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn. - `"SelfManagedOptOutsEnabled"`: By default this is set to false. When an end recipient - sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon - Pinpoint automatically replies with a customizable message and adds the end recipient to - the OptOutList. When set to true you're responsible for responding to HELP and STOP - requests. You're also responsible for tracking and honoring opt-out requests. + sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End + User Messaging SMS and Voice automatically replies with a customizable message and adds the + end recipient to the OptOutList. When set to true you're responsible for responding to HELP + and STOP requests. You're also responsible for tracking and honoring opt-out requests. - `"TwoWayChannelArn"`: The Amazon Resource Name (ARN) of the two way channel. - `"TwoWayChannelRole"`: An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages. - `"TwoWayEnabled"`: By default this is set to false. When set to true you can receive incoming text messages from your end recipients. """ -function update_phone_number( - PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config() -) - return pinpoint_sms_voice_v2( +update_phone_number(PhoneNumberId; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "UpdatePhoneNumber", Dict{String,Any}("PhoneNumberId" => PhoneNumberId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_phone_number( PhoneNumberId, params::AbstractDict{String}; @@ -3542,10 +3398,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OptOutListName"`: The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn. - `"SelfManagedOptOutsEnabled"`: By default this is set to false. When an end recipient - sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon - Pinpoint automatically replies with a customizable message and adds the end recipient to - the OptOutList. When set to true you're responsible for responding to HELP and STOP - requests. You're also responsible for tracking and honoring opt-out requests. + sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End + User Messaging SMS and Voice automatically replies with a customizable message and adds the + end recipient to the OptOutList. When set to true you're responsible for responding to HELP + and STOP requests. You're also responsible for tracking and honoring opt-out requests. - `"SharedRoutesEnabled"`: Indicates whether shared routes are enabled for the pool. - `"TwoWayChannelArn"`: The Amazon Resource Name (ARN) of the two way channel. - `"TwoWayChannelRole"`: An optional IAM Role Arn for a service to assume, to be able to @@ -3553,14 +3409,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TwoWayEnabled"`: By default this is set to false. When set to true you can receive incoming text messages from your end recipients. """ -function update_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) - return pinpoint_sms_voice_v2( +update_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + pinpoint_sms_voice_v2( "UpdatePool", Dict{String,Any}("PoolId" => PoolId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_pool( PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3586,16 +3441,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeletionProtectionEnabled"`: When set to true deletion protection is enabled. By default this is set to false. """ -function update_protect_configuration( +update_protect_configuration( ProtectConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "UpdateProtectConfiguration", + Dict{String,Any}("ProtectConfigurationId" => ProtectConfigurationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "UpdateProtectConfiguration", - Dict{String,Any}("ProtectConfigurationId" => ProtectConfigurationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_protect_configuration( ProtectConfigurationId, params::AbstractDict{String}; @@ -3627,28 +3480,26 @@ only applied to the specified NumberCapability type. - `country_rule_set_updates`: A map of ProtectConfigurationCountryRuleSetInformation objects that contain the details for the requested NumberCapability. The Key is the two-letter ISO country code. For a list of supported ISO country codes, see Supported - countries and regions (SMS channel) in the Amazon Pinpoint SMS user guide. + countries and regions (SMS channel) in the AWS End User Messaging SMS User Guide. - `number_capability`: The number capability to apply the CountryRuleSetUpdates updates to. - `protect_configuration_id`: The unique identifier for the protect configuration. """ -function update_protect_configuration_country_rule_set( +update_protect_configuration_country_rule_set( CountryRuleSetUpdates, NumberCapability, ProtectConfigurationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "UpdateProtectConfigurationCountryRuleSet", + Dict{String,Any}( + "CountryRuleSetUpdates" => CountryRuleSetUpdates, + "NumberCapability" => NumberCapability, + "ProtectConfigurationId" => ProtectConfigurationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "UpdateProtectConfigurationCountryRuleSet", - Dict{String,Any}( - "CountryRuleSetUpdates" => CountryRuleSetUpdates, - "NumberCapability" => NumberCapability, - "ProtectConfigurationId" => ProtectConfigurationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_protect_configuration_country_rule_set( CountryRuleSetUpdates, NumberCapability, @@ -3690,16 +3541,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeletionProtectionEnabled"`: By default this is set to false. When set to true the sender ID can't be deleted. """ -function update_sender_id( +update_sender_id( IsoCountryCode, SenderId; aws_config::AbstractAWSConfig=current_aws_config() +) = pinpoint_sms_voice_v2( + "UpdateSenderId", + Dict{String,Any}("IsoCountryCode" => IsoCountryCode, "SenderId" => SenderId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "UpdateSenderId", - Dict{String,Any}("IsoCountryCode" => IsoCountryCode, "SenderId" => SenderId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sender_id( IsoCountryCode, SenderId, @@ -3736,21 +3585,19 @@ opt-in the verified destination phone number to receive more messages. phone number. """ -function verify_destination_number( +verify_destination_number( VerificationCode, VerifiedDestinationNumberId; aws_config::AbstractAWSConfig=current_aws_config(), +) = pinpoint_sms_voice_v2( + "VerifyDestinationNumber", + Dict{String,Any}( + "VerificationCode" => VerificationCode, + "VerifiedDestinationNumberId" => VerifiedDestinationNumberId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pinpoint_sms_voice_v2( - "VerifyDestinationNumber", - Dict{String,Any}( - "VerificationCode" => VerificationCode, - "VerifiedDestinationNumberId" => VerifiedDestinationNumberId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_destination_number( VerificationCode, VerifiedDestinationNumberId, diff --git a/src/services/pipes.jl b/src/services/pipes.jl index 7ed27ffcc..fca927c3f 100644 --- a/src/services/pipes.jl +++ b/src/services/pipes.jl @@ -30,17 +30,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about pipe target parameters, including how to use dynamic path parameters, see Target parameters in the Amazon EventBridge User Guide. """ -function create_pipe( +create_pipe( Name, RoleArn, Source, Target; aws_config::AbstractAWSConfig=current_aws_config() +) = pipes( + "POST", + "/v1/pipes/$(Name)", + Dict{String,Any}("RoleArn" => RoleArn, "Source" => Source, "Target" => Target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pipes( - "POST", - "/v1/pipes/$(Name)", - Dict{String,Any}("RoleArn" => RoleArn, "Source" => Source, "Target" => Target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pipe( Name, RoleArn, @@ -77,14 +75,12 @@ the Amazon EventBridge User Guide. - `name`: The name of the pipe. """ -function delete_pipe(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return pipes( - "DELETE", - "/v1/pipes/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_pipe(Name; aws_config::AbstractAWSConfig=current_aws_config()) = pipes( + "DELETE", + "/v1/pipes/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_pipe( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -108,11 +104,9 @@ EventBridge Pipes in the Amazon EventBridge User Guide. - `name`: The name of the pipe. """ -function describe_pipe(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return pipes( - "GET", "/v1/pipes/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_pipe(Name; aws_config::AbstractAWSConfig=current_aws_config()) = pipes( + "GET", "/v1/pipes/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_pipe( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -148,9 +142,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourcePrefix"`: The prefix matching the pipe source. - `"TargetPrefix"`: The prefix matching the pipe target. """ -function list_pipes(; aws_config::AbstractAWSConfig=current_aws_config()) - return pipes("GET", "/v1/pipes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_pipes(; aws_config::AbstractAWSConfig=current_aws_config()) = + pipes("GET", "/v1/pipes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_pipes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -169,16 +162,13 @@ Displays the tags associated with a pipe. - `resource_arn`: The ARN of the pipe for which you want to view tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return pipes( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + pipes( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -203,14 +193,12 @@ Start an existing pipe. - `name`: The name of the pipe. """ -function start_pipe(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return pipes( - "POST", - "/v1/pipes/$(Name)/start"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_pipe(Name; aws_config::AbstractAWSConfig=current_aws_config()) = pipes( + "POST", + "/v1/pipes/$(Name)/start"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_pipe( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -233,14 +221,12 @@ Stop an existing pipe. - `name`: The name of the pipe. """ -function stop_pipe(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return pipes( - "POST", - "/v1/pipes/$(Name)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_pipe(Name; aws_config::AbstractAWSConfig=current_aws_config()) = pipes( + "POST", + "/v1/pipes/$(Name)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_pipe( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -272,15 +258,13 @@ many as 50 tags with a pipe. - `tags`: The list of key-value pairs associated with the pipe. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return pipes( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = pipes( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -307,17 +291,14 @@ Removes one or more tags from the specified pipes. - `tag_keys`: The list of tag keys to remove from the pipe. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return pipes( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + pipes( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -364,15 +345,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about pipe target parameters, including how to use dynamic path parameters, see Target parameters in the Amazon EventBridge User Guide. """ -function update_pipe(Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) - return pipes( - "PUT", - "/v1/pipes/$(Name)", - Dict{String,Any}("RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_pipe(Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) = pipes( + "PUT", + "/v1/pipes/$(Name)", + Dict{String,Any}("RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_pipe( Name, RoleArn, diff --git a/src/services/polly.jl b/src/services/polly.jl index 9b0b4d301..7b786c318 100644 --- a/src/services/polly.jl +++ b/src/services/polly.jl @@ -18,14 +18,12 @@ Managing Lexicons. region. """ -function delete_lexicon(LexiconName; aws_config::AbstractAWSConfig=current_aws_config()) - return polly( - "DELETE", - "/v1/lexicons/$(LexiconName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_lexicon(LexiconName; aws_config::AbstractAWSConfig=current_aws_config()) = polly( + "DELETE", + "/v1/lexicons/$(LexiconName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_lexicon( LexiconName, params::AbstractDict{String}; @@ -70,11 +68,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque pagination token returned from the previous DescribeVoices operation. If present, this indicates where to continue the listing. """ -function describe_voices(; aws_config::AbstractAWSConfig=current_aws_config()) - return polly( - "GET", "/v1/voices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_voices(; aws_config::AbstractAWSConfig=current_aws_config()) = + polly("GET", "/v1/voices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_voices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -94,14 +89,12 @@ Region. For more information, see Managing Lexicons. - `lexicon_name`: Name of the lexicon. """ -function get_lexicon(LexiconName; aws_config::AbstractAWSConfig=current_aws_config()) - return polly( - "GET", - "/v1/lexicons/$(LexiconName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_lexicon(LexiconName; aws_config::AbstractAWSConfig=current_aws_config()) = polly( + "GET", + "/v1/lexicons/$(LexiconName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_lexicon( LexiconName, params::AbstractDict{String}; @@ -128,16 +121,13 @@ link to the S3 bucket containing the output of the task. - `task_id`: The Amazon Polly generated identifier for a speech synthesis task. """ -function get_speech_synthesis_task( - TaskId; aws_config::AbstractAWSConfig=current_aws_config() -) - return polly( +get_speech_synthesis_task(TaskId; aws_config::AbstractAWSConfig=current_aws_config()) = + polly( "GET", "/v1/synthesisTasks/$(TaskId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_speech_synthesis_task( TaskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -162,11 +152,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An opaque pagination token returned from previous ListLexicons operation. If present, indicates where to continue the list of lexicons. """ -function list_lexicons(; aws_config::AbstractAWSConfig=current_aws_config()) - return polly( - "GET", "/v1/lexicons"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_lexicons(; aws_config::AbstractAWSConfig=current_aws_config()) = + polly("GET", "/v1/lexicons"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_lexicons( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -194,11 +181,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys speech synthesis tasks. - `"Status"`: Status of the speech synthesis tasks returned in a List operation """ -function list_speech_synthesis_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return polly( - "GET", "/v1/synthesisTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_speech_synthesis_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = polly( + "GET", "/v1/synthesisTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_speech_synthesis_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -227,17 +212,14 @@ available to the SynthesizeSpeech operation. For more information, see Managing characters long. """ -function put_lexicon( - Content, LexiconName; aws_config::AbstractAWSConfig=current_aws_config() -) - return polly( +put_lexicon(Content, LexiconName; aws_config::AbstractAWSConfig=current_aws_config()) = + polly( "PUT", "/v1/lexicons/$(LexiconName)", Dict{String,Any}("Content" => Content); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_lexicon( Content, LexiconName, @@ -301,26 +283,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TextType"`: Specifies whether the input text is plain text or SSML. The default value is plain text. """ -function start_speech_synthesis_task( +start_speech_synthesis_task( OutputFormat, OutputS3BucketName, Text, VoiceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = polly( + "POST", + "/v1/synthesisTasks", + Dict{String,Any}( + "OutputFormat" => OutputFormat, + "OutputS3BucketName" => OutputS3BucketName, + "Text" => Text, + "VoiceId" => VoiceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return polly( - "POST", - "/v1/synthesisTasks", - Dict{String,Any}( - "OutputFormat" => OutputFormat, - "OutputS3BucketName" => OutputS3BucketName, - "Text" => Text, - "VoiceId" => VoiceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_speech_synthesis_task( OutputFormat, OutputS3BucketName, @@ -396,19 +376,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TextType"`: Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML. """ -function synthesize_speech( +synthesize_speech( OutputFormat, Text, VoiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = polly( + "POST", + "/v1/speech", + Dict{String,Any}("OutputFormat" => OutputFormat, "Text" => Text, "VoiceId" => VoiceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return polly( - "POST", - "/v1/speech", - Dict{String,Any}( - "OutputFormat" => OutputFormat, "Text" => Text, "VoiceId" => VoiceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function synthesize_speech( OutputFormat, Text, diff --git a/src/services/pricing.jl b/src/services/pricing.jl index bc0cce94d..8e9db515b 100644 --- a/src/services/pricing.jl +++ b/src/services/pricing.jl @@ -25,11 +25,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AmazonEC2. You can use the ServiceCode to filter the results in a GetProducts call. To retrieve a list of all services, leave this blank. """ -function describe_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return pricing( - "DescribeServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + pricing("DescribeServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -58,16 +55,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that indicates the next set of results that you want to retrieve. """ -function get_attribute_values( +get_attribute_values( AttributeName, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = pricing( + "GetAttributeValues", + Dict{String,Any}("AttributeName" => AttributeName, "ServiceCode" => ServiceCode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pricing( - "GetAttributeValues", - Dict{String,Any}("AttributeName" => AttributeName, "ServiceCode" => ServiceCode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_attribute_values( AttributeName, ServiceCode, @@ -107,16 +102,14 @@ retrieve from the ListPriceLists response. located. PriceListArn can be obtained from the ListPriceLists response. """ -function get_price_list_file_url( +get_price_list_file_url( FileFormat, PriceListArn; aws_config::AbstractAWSConfig=current_aws_config() +) = pricing( + "GetPriceListFileUrl", + Dict{String,Any}("FileFormat" => FileFormat, "PriceListArn" => PriceListArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pricing( - "GetPriceListFileUrl", - Dict{String,Any}("FileFormat" => FileFormat, "PriceListArn" => PriceListArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_price_list_file_url( FileFormat, PriceListArn, @@ -158,14 +151,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token that indicates the next set of results that you want to retrieve. """ -function get_products(ServiceCode; aws_config::AbstractAWSConfig=current_aws_config()) - return pricing( - "GetProducts", - Dict{String,Any}("ServiceCode" => ServiceCode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_products(ServiceCode; aws_config::AbstractAWSConfig=current_aws_config()) = pricing( + "GetProducts", + Dict{String,Any}("ServiceCode" => ServiceCode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_products( ServiceCode, params::AbstractDict{String}; @@ -216,23 +207,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys nothing is specified, you retrieve price lists for all applicable Regions. The available RegionCode list can be retrieved from GetAttributeValues API. """ -function list_price_lists( +list_price_lists( CurrencyCode, EffectiveDate, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config(), +) = pricing( + "ListPriceLists", + Dict{String,Any}( + "CurrencyCode" => CurrencyCode, + "EffectiveDate" => EffectiveDate, + "ServiceCode" => ServiceCode, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return pricing( - "ListPriceLists", - Dict{String,Any}( - "CurrencyCode" => CurrencyCode, - "EffectiveDate" => EffectiveDate, - "ServiceCode" => ServiceCode, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_price_lists( CurrencyCode, EffectiveDate, diff --git a/src/services/privatenetworks.jl b/src/services/privatenetworks.jl index da3b4b993..2ceadd8b3 100644 --- a/src/services/privatenetworks.jl +++ b/src/services/privatenetworks.jl @@ -14,17 +14,14 @@ Acknowledges that the specified network order was received. - `order_arn`: The Amazon Resource Name (ARN) of the order. """ -function acknowledge_order_receipt( - orderArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +acknowledge_order_receipt(orderArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "POST", "/v1/orders/acknowledge", Dict{String,Any}("orderArn" => orderArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function acknowledge_order_receipt( orderArn, params::AbstractDict{String}; @@ -55,17 +52,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency. """ -function activate_device_identifier( +activate_device_identifier( deviceIdentifierArn; aws_config::AbstractAWSConfig=current_aws_config() +) = privatenetworks( + "POST", + "/v1/device-identifiers/activate", + Dict{String,Any}("deviceIdentifierArn" => deviceIdentifierArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return privatenetworks( - "POST", - "/v1/device-identifiers/activate", - Dict{String,Any}("deviceIdentifierArn" => deviceIdentifierArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function activate_device_identifier( deviceIdentifierArn, params::AbstractDict{String}; @@ -109,19 +104,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you do not include commitmentConfiguration in the ActivateNetworkSiteRequest action, the commitment period is set to 60-days. """ -function activate_network_site( +activate_network_site( networkSiteArn, shippingAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = privatenetworks( + "POST", + "/v1/network-sites/activate", + Dict{String,Any}( + "networkSiteArn" => networkSiteArn, "shippingAddress" => shippingAddress + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return privatenetworks( - "POST", - "/v1/network-sites/activate", - Dict{String,Any}( - "networkSiteArn" => networkSiteArn, "shippingAddress" => shippingAddress - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function activate_network_site( networkSiteArn, shippingAddress, @@ -168,17 +161,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the radio unit. - `"position"`: The position of the network resource. """ -function configure_access_point( - accessPointArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +configure_access_point(accessPointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "POST", "/v1/network-resources/configure", Dict{String,Any}("accessPointArn" => accessPointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function configure_access_point( accessPointArn, params::AbstractDict{String}; @@ -212,15 +202,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the network. - `"tags"`: The tags to apply to the network. """ -function create_network(networkName; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( +create_network(networkName; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "POST", "/v1/networks", Dict{String,Any}("networkName" => networkName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_network( networkName, params::AbstractDict{String}; @@ -260,17 +249,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pendingPlan"`: Information about the pending plan for this site. - `"tags"`: The tags to apply to the network site. """ -function create_network_site( +create_network_site( networkArn, networkSiteName; aws_config::AbstractAWSConfig=current_aws_config() +) = privatenetworks( + "POST", + "/v1/network-sites", + Dict{String,Any}("networkArn" => networkArn, "networkSiteName" => networkSiteName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return privatenetworks( - "POST", - "/v1/network-sites", - Dict{String,Any}("networkArn" => networkArn, "networkSiteName" => networkSiteName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network_site( networkArn, networkSiteName, @@ -308,17 +295,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency. """ -function deactivate_device_identifier( +deactivate_device_identifier( deviceIdentifierArn; aws_config::AbstractAWSConfig=current_aws_config() +) = privatenetworks( + "POST", + "/v1/device-identifiers/deactivate", + Dict{String,Any}("deviceIdentifierArn" => deviceIdentifierArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return privatenetworks( - "POST", - "/v1/device-identifiers/deactivate", - Dict{String,Any}("deviceIdentifierArn" => deviceIdentifierArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deactivate_device_identifier( deviceIdentifierArn, params::AbstractDict{String}; @@ -355,14 +340,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency. """ -function delete_network(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( +delete_network(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "DELETE", "/v1/networks/$(networkArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_network( networkArn, params::AbstractDict{String}; @@ -393,16 +377,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency. """ -function delete_network_site( - networkSiteArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +delete_network_site(networkSiteArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "DELETE", "/v1/network-sites/$(networkSiteArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_network_site( networkSiteArn, params::AbstractDict{String}; @@ -427,16 +408,14 @@ Gets the specified device identifier. - `device_identifier_arn`: The Amazon Resource Name (ARN) of the device identifier. """ -function get_device_identifier( +get_device_identifier( deviceIdentifierArn; aws_config::AbstractAWSConfig=current_aws_config() +) = privatenetworks( + "GET", + "/v1/device-identifiers/$(deviceIdentifierArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return privatenetworks( - "GET", - "/v1/device-identifiers/$(deviceIdentifierArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_device_identifier( deviceIdentifierArn, params::AbstractDict{String}; @@ -461,14 +440,13 @@ Gets the specified network. - `network_arn`: The Amazon Resource Name (ARN) of the network. """ -function get_network(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( +get_network(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "GET", "/v1/networks/$(networkArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_network( networkArn, params::AbstractDict{String}; @@ -493,16 +471,14 @@ Gets the specified network resource. - `network_resource_arn`: The Amazon Resource Name (ARN) of the network resource. """ -function get_network_resource( +get_network_resource( networkResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = privatenetworks( + "GET", + "/v1/network-resources/$(networkResourceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return privatenetworks( - "GET", - "/v1/network-resources/$(networkResourceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_network_resource( networkResourceArn, params::AbstractDict{String}; @@ -527,16 +503,13 @@ Gets the specified network site. - `network_site_arn`: The Amazon Resource Name (ARN) of the network site. """ -function get_network_site( - networkSiteArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +get_network_site(networkSiteArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "GET", "/v1/network-sites/$(networkSiteArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_network_site( networkSiteArn, params::AbstractDict{String}; @@ -561,14 +534,12 @@ Gets the specified order. - `order_arn`: The Amazon Resource Name (ARN) of the order. """ -function get_order(orderArn; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( - "GET", - "/v1/orders/$(orderArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_order(orderArn; aws_config::AbstractAWSConfig=current_aws_config()) = privatenetworks( + "GET", + "/v1/orders/$(orderArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_order( orderArn, params::AbstractDict{String}; @@ -606,17 +577,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"startToken"`: The token for the next page of results. """ -function list_device_identifiers( - networkArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +list_device_identifiers(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "POST", "/v1/device-identifiers/list", Dict{String,Any}("networkArn" => networkArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_device_identifiers( networkArn, params::AbstractDict{String}; @@ -655,17 +623,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"startToken"`: The token for the next page of results. """ -function list_network_resources( - networkArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +list_network_resources(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "POST", "/v1/network-resources", Dict{String,Any}("networkArn" => networkArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_network_resources( networkArn, params::AbstractDict{String}; @@ -702,15 +667,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"startToken"`: The token for the next page of results. """ -function list_network_sites(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( +list_network_sites(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "POST", "/v1/network-sites/list", Dict{String,Any}("networkArn" => networkArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_network_sites( networkArn, params::AbstractDict{String}; @@ -743,11 +707,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"startToken"`: The token for the next page of results. """ -function list_networks(; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( - "POST", "/v1/networks/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_networks(; aws_config::AbstractAWSConfig=current_aws_config()) = privatenetworks( + "POST", "/v1/networks/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_networks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -782,15 +744,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"startToken"`: The token for the next page of results. """ -function list_orders(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( +list_orders(networkArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "POST", "/v1/orders/list", Dict{String,Any}("networkArn" => networkArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_orders( networkArn, params::AbstractDict{String}; @@ -817,16 +778,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -848,11 +806,8 @@ end Checks the health of the service. """ -function ping(; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( - "GET", "/ping"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +ping(; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks("GET", "/ping"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function ping( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -902,19 +857,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys replacing or returning a network resource, we use the address from the original order for the network resource. """ -function start_network_resource_update( +start_network_resource_update( networkResourceArn, updateType; aws_config::AbstractAWSConfig=current_aws_config() +) = privatenetworks( + "POST", + "/v1/network-resources/update", + Dict{String,Any}( + "networkResourceArn" => networkResourceArn, "updateType" => updateType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return privatenetworks( - "POST", - "/v1/network-resources/update", - Dict{String,Any}( - "networkResourceArn" => networkResourceArn, "updateType" => updateType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_network_resource_update( networkResourceArn, updateType, @@ -949,15 +902,14 @@ end - `tags`: The tags to add to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return privatenetworks( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -984,17 +936,14 @@ Removes tags from the specified resource. - `tag_keys`: The tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1025,17 +974,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. For more information, see How to ensure idempotency. - `"description"`: The description. """ -function update_network_site( - networkSiteArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return privatenetworks( +update_network_site(networkSiteArn; aws_config::AbstractAWSConfig=current_aws_config()) = + privatenetworks( "PUT", "/v1/network-sites/site", Dict{String,Any}("networkSiteArn" => networkSiteArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_network_site( networkSiteArn, params::AbstractDict{String}; @@ -1067,17 +1013,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency. """ -function update_network_site_plan( +update_network_site_plan( networkSiteArn, pendingPlan; aws_config::AbstractAWSConfig=current_aws_config() +) = privatenetworks( + "PUT", + "/v1/network-sites/plan", + Dict{String,Any}("networkSiteArn" => networkSiteArn, "pendingPlan" => pendingPlan); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return privatenetworks( - "PUT", - "/v1/network-sites/plan", - Dict{String,Any}("networkSiteArn" => networkSiteArn, "pendingPlan" => pendingPlan); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_network_site_plan( networkSiteArn, pendingPlan, diff --git a/src/services/proton.jl b/src/services/proton.jl index 901e33569..c3a6fd2f0 100644 --- a/src/services/proton.jl +++ b/src/services/proton.jl @@ -17,16 +17,14 @@ For more information, see Environment account connections in the Proton User gui - `id`: The ID of the environment account connection. """ -function accept_environment_account_connection( +accept_environment_account_connection( id; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "AcceptEnvironmentAccountConnection", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "AcceptEnvironmentAccountConnection", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_environment_account_connection( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -50,16 +48,14 @@ Proton User Guide. - `component_name`: The name of the component with the deployment to cancel. """ -function cancel_component_deployment( +cancel_component_deployment( componentName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CancelComponentDeployment", + Dict{String,Any}("componentName" => componentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CancelComponentDeployment", - Dict{String,Any}("componentName" => componentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_component_deployment( componentName, params::AbstractDict{String}; @@ -91,16 +87,14 @@ deployment state is SUCCEEDED and the cancellation attempt has no effect. - `environment_name`: The name of the environment with the deployment to cancel. """ -function cancel_environment_deployment( +cancel_environment_deployment( environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CancelEnvironmentDeployment", + Dict{String,Any}("environmentName" => environmentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CancelEnvironmentDeployment", - Dict{String,Any}("environmentName" => environmentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_environment_deployment( environmentName, params::AbstractDict{String}; @@ -135,18 +129,16 @@ deployment state is SUCCEEDED and the cancellation attempt has no effect. - `service_name`: The name of the service with the service instance deployment to cancel. """ -function cancel_service_instance_deployment( +cancel_service_instance_deployment( serviceInstanceName, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CancelServiceInstanceDeployment", + Dict{String,Any}( + "serviceInstanceName" => serviceInstanceName, "serviceName" => serviceName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CancelServiceInstanceDeployment", - Dict{String,Any}( - "serviceInstanceName" => serviceInstanceName, "serviceName" => serviceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_service_instance_deployment( serviceInstanceName, serviceName, @@ -186,16 +178,14 @@ deployment state is SUCCEEDED and the cancellation attempt has no effect. - `service_name`: The name of the service with the service pipeline deployment to cancel. """ -function cancel_service_pipeline_deployment( +cancel_service_pipeline_deployment( serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CancelServicePipelineDeployment", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CancelServicePipelineDeployment", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_service_pipeline_deployment( serviceName, params::AbstractDict{String}; @@ -247,21 +237,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys component. A tag is a key-value pair. For more information, see Proton resources and tagging in the Proton User Guide. """ -function create_component( +create_component( manifest, name, templateFile; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CreateComponent", + Dict{String,Any}( + "manifest" => manifest, + "name" => name, + "templateFile" => templateFile, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateComponent", - Dict{String,Any}( - "manifest" => manifest, - "name" => name, - "templateFile" => templateFile, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_component( manifest, name, @@ -343,25 +331,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tagging in the Proton User Guide. - `"templateMinorVersion"`: The minor version of the environment template. """ -function create_environment( +create_environment( name, spec, templateMajorVersion, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "CreateEnvironment", + Dict{String,Any}( + "name" => name, + "spec" => spec, + "templateMajorVersion" => templateMajorVersion, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateEnvironment", - Dict{String,Any}( - "name" => name, - "spec" => spec, - "templateMajorVersion" => templateMajorVersion, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment( name, spec, @@ -428,20 +414,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys environment account connection. A tag is a key-value pair. For more information, see Proton resources and tagging in the Proton User Guide. """ -function create_environment_account_connection( +create_environment_account_connection( environmentName, managementAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CreateEnvironmentAccountConnection", + Dict{String,Any}( + "environmentName" => environmentName, + "managementAccountId" => managementAccountId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateEnvironmentAccountConnection", - Dict{String,Any}( - "environmentName" => environmentName, - "managementAccountId" => managementAccountId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment_account_connection( environmentName, managementAccountId, @@ -495,16 +479,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys environment template. A tag is a key-value pair. For more information, see Proton resources and tagging in the Proton User Guide. """ -function create_environment_template( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +create_environment_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "CreateEnvironmentTemplate", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_environment_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -541,20 +522,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys environment template version. A tag is a key-value pair. For more information, see Proton resources and tagging in the Proton User Guide. """ -function create_environment_template_version( +create_environment_template_version( source, templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CreateEnvironmentTemplateVersion", + Dict{String,Any}( + "source" => source, + "templateName" => templateName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateEnvironmentTemplateVersion", - Dict{String,Any}( - "source" => source, - "templateName" => templateName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_environment_template_version( source, templateName, @@ -605,18 +584,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys repository. A tag is a key-value pair. For more information, see Proton resources and tagging in the Proton User Guide. """ -function create_repository( +create_repository( connectionArn, name, provider; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CreateRepository", + Dict{String,Any}( + "connectionArn" => connectionArn, "name" => name, "provider" => provider + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateRepository", - Dict{String,Any}( - "connectionArn" => connectionArn, "name" => name, "provider" => provider - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_repository( connectionArn, name, @@ -675,25 +652,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateMinorVersion"`: The minor version of the service template that was used to create the service. """ -function create_service( +create_service( name, spec, templateMajorVersion, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "CreateService", + Dict{String,Any}( + "name" => name, + "spec" => spec, + "templateMajorVersion" => templateMajorVersion, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateService", - Dict{String,Any}( - "name" => name, - "spec" => spec, - "templateMajorVersion" => templateMajorVersion, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service( name, spec, @@ -743,21 +718,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateMinorVersion"`: To create a new minor version of the service template, include a major Version. """ -function create_service_instance( +create_service_instance( name, serviceName, spec; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "CreateServiceInstance", + Dict{String,Any}( + "name" => name, + "serviceName" => serviceName, + "spec" => spec, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateServiceInstance", - Dict{String,Any}( - "name" => name, - "serviceName" => serviceName, - "spec" => spec, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_instance( name, serviceName, @@ -798,27 +771,25 @@ Create the Proton Ops configuration file. - `service_name`: The name of the service the Proton Ops file is for. """ -function create_service_sync_config( +create_service_sync_config( branch, filePath, repositoryName, repositoryProvider, serviceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "CreateServiceSyncConfig", + Dict{String,Any}( + "branch" => branch, + "filePath" => filePath, + "repositoryName" => repositoryName, + "repositoryProvider" => repositoryProvider, + "serviceName" => serviceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateServiceSyncConfig", - Dict{String,Any}( - "branch" => branch, - "filePath" => filePath, - "repositoryName" => repositoryName, - "repositoryProvider" => repositoryProvider, - "serviceName" => serviceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_sync_config( branch, filePath, @@ -875,14 +846,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys service template. A tag is a key-value pair. For more information, see Proton resources and tagging in the Proton User Guide. """ -function create_service_template(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "CreateServiceTemplate", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_service_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "CreateServiceTemplate", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_service_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -926,24 +895,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys service template version. A tag is a key-value pair. For more information, see Proton resources and tagging in the Proton User Guide. """ -function create_service_template_version( +create_service_template_version( compatibleEnvironmentTemplates, source, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "CreateServiceTemplateVersion", + Dict{String,Any}( + "compatibleEnvironmentTemplates" => compatibleEnvironmentTemplates, + "source" => source, + "templateName" => templateName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateServiceTemplateVersion", - Dict{String,Any}( - "compatibleEnvironmentTemplates" => compatibleEnvironmentTemplates, - "source" => source, - "templateName" => templateName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_template_version( compatibleEnvironmentTemplates, source, @@ -994,27 +961,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subdirectory"`: A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory. """ -function create_template_sync_config( +create_template_sync_config( branch, repositoryName, repositoryProvider, templateName, templateType; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "CreateTemplateSyncConfig", + Dict{String,Any}( + "branch" => branch, + "repositoryName" => repositoryName, + "repositoryProvider" => repositoryProvider, + "templateName" => templateName, + "templateType" => templateType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "CreateTemplateSyncConfig", - Dict{String,Any}( - "branch" => branch, - "repositoryName" => repositoryName, - "repositoryProvider" => repositoryProvider, - "templateName" => templateName, - "templateType" => templateType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_template_sync_config( branch, repositoryName, @@ -1055,14 +1020,12 @@ components in the Proton User Guide. - `name`: The name of the component to delete. """ -function delete_component(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "DeleteComponent", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_component(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "DeleteComponent", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_component( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1084,14 +1047,12 @@ Delete the deployment. - `id`: The ID of the deployment to delete. """ -function delete_deployment(id; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "DeleteDeployment", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_deployment(id; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "DeleteDeployment", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_deployment( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1113,14 +1074,12 @@ Delete an environment. - `name`: The name of the environment to delete. """ -function delete_environment(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "DeleteEnvironment", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_environment(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "DeleteEnvironment", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_environment( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1147,16 +1106,14 @@ information, see Environment account connections in the Proton User guide. - `id`: The ID of the environment account connection to delete. """ -function delete_environment_account_connection( +delete_environment_account_connection( id; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "DeleteEnvironmentAccountConnection", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "DeleteEnvironmentAccountConnection", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment_account_connection( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1179,16 +1136,13 @@ environment template. - `name`: The name of the environment template to delete. """ -function delete_environment_template( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +delete_environment_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "DeleteEnvironmentTemplate", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_environment_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1219,23 +1173,21 @@ version that's backward compatible. - `template_name`: The name of the environment template. """ -function delete_environment_template_version( +delete_environment_template_version( majorVersion, minorVersion, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "DeleteEnvironmentTemplateVersion", + Dict{String,Any}( + "majorVersion" => majorVersion, + "minorVersion" => minorVersion, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "DeleteEnvironmentTemplateVersion", - Dict{String,Any}( - "majorVersion" => majorVersion, - "minorVersion" => minorVersion, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_environment_template_version( majorVersion, minorVersion, @@ -1272,16 +1224,13 @@ De-register and unlink your repository. - `provider`: The repository provider. """ -function delete_repository( - name, provider; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +delete_repository(name, provider; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "DeleteRepository", Dict{String,Any}("name" => name, "provider" => provider); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_repository( name, provider, @@ -1312,14 +1261,12 @@ components, see Proton components in the Proton User Guide. - `name`: The name of the service to delete. """ -function delete_service(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "DeleteService", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_service(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "DeleteService", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_service( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1342,16 +1289,14 @@ Delete the Proton Ops file. configuration for. """ -function delete_service_sync_config( +delete_service_sync_config( serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "DeleteServiceSyncConfig", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "DeleteServiceSyncConfig", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service_sync_config( serviceName, params::AbstractDict{String}; @@ -1378,14 +1323,12 @@ template. - `name`: The name of the service template to delete. """ -function delete_service_template(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "DeleteServiceTemplate", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_service_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "DeleteServiceTemplate", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_service_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1416,23 +1359,21 @@ compatible. - `template_name`: The name of the service template. """ -function delete_service_template_version( +delete_service_template_version( majorVersion, minorVersion, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "DeleteServiceTemplateVersion", + Dict{String,Any}( + "majorVersion" => majorVersion, + "minorVersion" => minorVersion, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "DeleteServiceTemplateVersion", - Dict{String,Any}( - "majorVersion" => majorVersion, - "minorVersion" => minorVersion, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service_template_version( majorVersion, minorVersion, @@ -1469,16 +1410,14 @@ Delete a template sync configuration. - `template_type`: The template type. """ -function delete_template_sync_config( +delete_template_sync_config( templateName, templateType; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "DeleteTemplateSyncConfig", + Dict{String,Any}("templateName" => templateName, "templateType" => templateType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "DeleteTemplateSyncConfig", - Dict{String,Any}("templateName" => templateName, "templateType" => templateType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_template_sync_config( templateName, templateType, @@ -1508,11 +1447,8 @@ end Get detail data for Proton account-wide settings. """ -function get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("GetAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1532,14 +1468,12 @@ components in the Proton User Guide. - `name`: The name of the component that you want to get the detailed data for. """ -function get_component(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetComponent", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_component(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "GetComponent", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_component( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1568,14 +1502,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys deployment ID. serviceName must be specified to identify the service instance. - `"serviceName"`: The name of the service associated with the given deployment ID. """ -function get_deployment(id; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetDeployment", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_deployment(id; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "GetDeployment", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_deployment( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1597,14 +1529,12 @@ Get detailed data for an environment. - `name`: The name of the environment that you want to get the detailed data for. """ -function get_environment(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetEnvironment", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_environment(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "GetEnvironment", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_environment( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1628,16 +1558,13 @@ more information, see Environment account connections in the Proton User guide. for. """ -function get_environment_account_connection( - id; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +get_environment_account_connection(id; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "GetEnvironmentAccountConnection", Dict{String,Any}("id" => id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_environment_account_connection( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1659,14 +1586,12 @@ Get detailed data for an environment template. - `name`: The name of the environment template that you want to get the detailed data for. """ -function get_environment_template(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetEnvironmentTemplate", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_environment_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "GetEnvironmentTemplate", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_environment_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1693,23 +1618,21 @@ Get detailed data for a major or minor version of an environment template. detailed data for. """ -function get_environment_template_version( +get_environment_template_version( majorVersion, minorVersion, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "GetEnvironmentTemplateVersion", + Dict{String,Any}( + "majorVersion" => majorVersion, + "minorVersion" => minorVersion, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "GetEnvironmentTemplateVersion", - Dict{String,Any}( - "majorVersion" => majorVersion, - "minorVersion" => minorVersion, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_environment_template_version( majorVersion, minorVersion, @@ -1746,14 +1669,12 @@ Get detail data for a linked repository. - `provider`: The repository provider. """ -function get_repository(name, provider; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetRepository", - Dict{String,Any}("name" => name, "provider" => provider); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_repository(name, provider; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "GetRepository", + Dict{String,Any}("name" => name, "provider" => provider); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_repository( name, provider, @@ -1790,25 +1711,23 @@ see ABAC in the Proton User Guide. - `sync_type`: The repository sync type. """ -function get_repository_sync_status( +get_repository_sync_status( branch, repositoryName, repositoryProvider, syncType; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "GetRepositorySyncStatus", + Dict{String,Any}( + "branch" => branch, + "repositoryName" => repositoryName, + "repositoryProvider" => repositoryProvider, + "syncType" => syncType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "GetRepositorySyncStatus", - Dict{String,Any}( - "branch" => branch, - "repositoryName" => repositoryName, - "repositoryProvider" => repositoryProvider, - "syncType" => syncType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_repository_sync_status( branch, repositoryName, @@ -1853,11 +1772,8 @@ the Amazon Web Services account. For more information, see Proton dashboard in t User Guide. """ -function get_resources_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetResourcesSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_resources_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("GetResourcesSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_resources_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1879,14 +1795,12 @@ Get detailed data for a service. - `name`: The name of the service that you want to get the detailed data for. """ -function get_service(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetService", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_service(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "GetService", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_service( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1910,16 +1824,14 @@ template and it runs in a specific environment. - `service_name`: The name of the service that you want the service instance input for. """ -function get_service_instance( +get_service_instance( name, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "GetServiceInstance", + Dict{String,Any}("name" => name, "serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "GetServiceInstance", - Dict{String,Any}("name" => name, "serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_instance( name, serviceName, @@ -1952,18 +1864,16 @@ Get the status of the synced service instance. - `service_name`: The name of the service that the service instance belongs to. """ -function get_service_instance_sync_status( +get_service_instance_sync_status( serviceInstanceName, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "GetServiceInstanceSyncStatus", + Dict{String,Any}( + "serviceInstanceName" => serviceInstanceName, "serviceName" => serviceName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "GetServiceInstanceSyncStatus", - Dict{String,Any}( - "serviceInstanceName" => serviceInstanceName, "serviceName" => serviceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_instance_sync_status( serviceInstanceName, serviceName, @@ -2003,16 +1913,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys service sync blocker summary for. If given bothe the instance name and the service name, only the instance is blocked. """ -function get_service_sync_blocker_summary( +get_service_sync_blocker_summary( serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "GetServiceSyncBlockerSummary", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "GetServiceSyncBlockerSummary", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_sync_blocker_summary( serviceName, params::AbstractDict{String}; @@ -2039,16 +1947,13 @@ Get detailed information for the service sync configuration. configuration for. """ -function get_service_sync_config( - serviceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +get_service_sync_config(serviceName; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "GetServiceSyncConfig", Dict{String,Any}("serviceName" => serviceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_service_sync_config( serviceName, params::AbstractDict{String}; @@ -2074,14 +1979,12 @@ Get detailed data for a service template. - `name`: The name of the service template that you want to get detailed data for. """ -function get_service_template(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "GetServiceTemplate", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_service_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "GetServiceTemplate", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_service_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2106,23 +2009,21 @@ Get detailed data for a major or minor version of a service template. detailed data for. """ -function get_service_template_version( +get_service_template_version( majorVersion, minorVersion, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "GetServiceTemplateVersion", + Dict{String,Any}( + "majorVersion" => majorVersion, + "minorVersion" => minorVersion, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "GetServiceTemplateVersion", - Dict{String,Any}( - "majorVersion" => majorVersion, - "minorVersion" => minorVersion, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_template_version( majorVersion, minorVersion, @@ -2158,17 +2059,15 @@ Get detail data for a template sync configuration. - `template_name`: The template name. - `template_type`: The template type. -""" -function get_template_sync_config( - templateName, templateType; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( - "GetTemplateSyncConfig", - Dict{String,Any}("templateName" => templateName, "templateType" => templateType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +""" +get_template_sync_config( + templateName, templateType; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "GetTemplateSyncConfig", + Dict{String,Any}("templateName" => templateName, "templateType" => templateType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_template_sync_config( templateName, templateType, @@ -2203,23 +2102,21 @@ Get the status of a template sync. - `template_version`: The template major version. """ -function get_template_sync_status( +get_template_sync_status( templateName, templateType, templateVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "GetTemplateSyncStatus", + Dict{String,Any}( + "templateName" => templateName, + "templateType" => templateType, + "templateVersion" => templateVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "GetTemplateSyncStatus", - Dict{String,Any}( - "templateName" => templateName, - "templateType" => templateType, - "templateVersion" => templateVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_template_sync_status( templateName, templateType, @@ -2261,16 +2158,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested. """ -function list_component_outputs( - componentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +list_component_outputs(componentName; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "ListComponentOutputs", Dict{String,Any}("componentName" => componentName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_component_outputs( componentName, params::AbstractDict{String}; @@ -2302,16 +2196,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the array of provisioned resources, after the list of provisioned resources that was previously requested. """ -function list_component_provisioned_resources( +list_component_provisioned_resources( componentName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListComponentProvisionedResources", + Dict{String,Any}("componentName" => componentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListComponentProvisionedResources", - Dict{String,Any}("componentName" => componentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_component_provisioned_resources( componentName, params::AbstractDict{String}; @@ -2347,9 +2239,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceName"`: The name of a service for result list filtering. Proton returns components attached to service instances of the service. """ -function list_components(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton("ListComponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_components(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("ListComponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_components( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2379,9 +2270,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceName"`: The name of a service for result list filtering. Proton returns deployments associated with service instances of the service. """ -function list_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton("ListDeployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("ListDeployments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_deployments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2410,16 +2300,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account connections that was previously requested. - `"statuses"`: The status details for each listed environment account connection. """ -function list_environment_account_connections( +list_environment_account_connections( requestedBy; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListEnvironmentAccountConnections", + Dict{String,Any}("requestedBy" => requestedBy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListEnvironmentAccountConnections", - Dict{String,Any}("requestedBy" => requestedBy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_account_connections( requestedBy, params::AbstractDict{String}; @@ -2451,16 +2339,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys array of environment outputs, after the list of environment outputs that was previously requested. """ -function list_environment_outputs( +list_environment_outputs( environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListEnvironmentOutputs", + Dict{String,Any}("environmentName" => environmentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListEnvironmentOutputs", - Dict{String,Any}("environmentName" => environmentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_outputs( environmentName, params::AbstractDict{String}; @@ -2493,16 +2379,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource in the array of environment provisioned resources, after the list of environment provisioned resources that was previously requested. """ -function list_environment_provisioned_resources( +list_environment_provisioned_resources( environmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListEnvironmentProvisionedResources", + Dict{String,Any}("environmentName" => environmentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListEnvironmentProvisionedResources", - Dict{String,Any}("environmentName" => environmentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_provisioned_resources( environmentName, params::AbstractDict{String}; @@ -2540,16 +2424,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the array of major or minor versions of an environment template, after the list of major or minor versions that was previously requested. """ -function list_environment_template_versions( +list_environment_template_versions( templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListEnvironmentTemplateVersions", + Dict{String,Any}("templateName" => templateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListEnvironmentTemplateVersions", - Dict{String,Any}("templateName" => templateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_environment_template_versions( templateName, params::AbstractDict{String}; @@ -2578,11 +2460,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the array of environment templates, after the list of environment templates that was previously requested. """ -function list_environment_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "ListEnvironmentTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_environment_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "ListEnvironmentTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_environment_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2607,11 +2487,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that indicates the location of the next environment in the array of environments, after the list of environments that was previously requested. """ -function list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "ListEnvironments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("ListEnvironments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2632,11 +2509,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that indicates the location of the next repository in the array of repositories, after the list of repositories previously requested. """ -function list_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "ListRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("ListRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_repositories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2662,23 +2536,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the array of repository sync definitions, after the list of repository sync definitions previously requested. """ -function list_repository_sync_definitions( +list_repository_sync_definitions( repositoryName, repositoryProvider, syncType; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "ListRepositorySyncDefinitions", + Dict{String,Any}( + "repositoryName" => repositoryName, + "repositoryProvider" => repositoryProvider, + "syncType" => syncType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListRepositorySyncDefinitions", - Dict{String,Any}( - "repositoryName" => repositoryName, - "repositoryProvider" => repositoryProvider, - "syncType" => syncType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_repository_sync_definitions( repositoryName, repositoryProvider, @@ -2720,18 +2592,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested. """ -function list_service_instance_outputs( +list_service_instance_outputs( serviceInstanceName, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListServiceInstanceOutputs", + Dict{String,Any}( + "serviceInstanceName" => serviceInstanceName, "serviceName" => serviceName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListServiceInstanceOutputs", - Dict{String,Any}( - "serviceInstanceName" => serviceInstanceName, "serviceName" => serviceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_instance_outputs( serviceInstanceName, serviceName, @@ -2772,18 +2642,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the array of provisioned resources, after the list of provisioned resources that was previously requested. """ -function list_service_instance_provisioned_resources( +list_service_instance_provisioned_resources( serviceInstanceName, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListServiceInstanceProvisionedResources", + Dict{String,Any}( + "serviceInstanceName" => serviceInstanceName, "serviceName" => serviceName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListServiceInstanceProvisionedResources", - Dict{String,Any}( - "serviceInstanceName" => serviceInstanceName, "serviceName" => serviceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_instance_provisioned_resources( serviceInstanceName, serviceName, @@ -2827,11 +2695,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: serviceName - `"sortOrder"`: Result list sort order. Default: ASCENDING """ -function list_service_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "ListServiceInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_service_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("ListServiceInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_service_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2858,16 +2723,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested. """ -function list_service_pipeline_outputs( +list_service_pipeline_outputs( serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListServicePipelineOutputs", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListServicePipelineOutputs", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_pipeline_outputs( serviceName, params::AbstractDict{String}; @@ -2898,16 +2761,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the array of provisioned resources, after the list of provisioned resources that was previously requested. """ -function list_service_pipeline_provisioned_resources( +list_service_pipeline_provisioned_resources( serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListServicePipelineProvisionedResources", + Dict{String,Any}("serviceName" => serviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListServicePipelineProvisionedResources", - Dict{String,Any}("serviceName" => serviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_pipeline_provisioned_resources( serviceName, params::AbstractDict{String}; @@ -2943,16 +2804,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the array of major or minor versions of a service template, after the list of major or minor versions that was previously requested. """ -function list_service_template_versions( +list_service_template_versions( templateName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "ListServiceTemplateVersions", + Dict{String,Any}("templateName" => templateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "ListServiceTemplateVersions", - Dict{String,Any}("templateName" => templateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_template_versions( templateName, params::AbstractDict{String}; @@ -2980,11 +2839,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that indicates the location of the next service template in the array of service templates, after the list of service templates previously requested. """ -function list_service_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "ListServiceTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_service_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("ListServiceTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_service_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3008,9 +2864,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that indicates the location of the next service in the array of services, after the list of services that was previously requested. """ -function list_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton("ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3035,16 +2890,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token that indicates the location of the next resource tag in the array of resource tags, after the list of resource tags that was previously requested. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -3077,16 +2929,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of your provisioned resource. - `"statusMessage"`: The deployment status message for your provisioned resource. """ -function notify_resource_deployment_status_change( +notify_resource_deployment_status_change( resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "NotifyResourceDeploymentStatusChange", + Dict{String,Any}("resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "NotifyResourceDeploymentStatusChange", - Dict{String,Any}("resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_resource_deployment_status_change( resourceArn, params::AbstractDict{String}; @@ -3116,16 +2966,14 @@ account connections in the Proton User guide. - `id`: The ID of the environment account connection to reject. """ -function reject_environment_account_connection( +reject_environment_account_connection( id; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "RejectEnvironmentAccountConnection", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "RejectEnvironmentAccountConnection", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_environment_account_connection( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3150,14 +2998,13 @@ resource. For more information, see Proton resources and tagging in the Proton U - `tags`: A list of customer tags to apply to the Proton resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -3193,16 +3040,13 @@ Proton User Guide. from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -3249,11 +3093,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provisioning, and by customer-owned automation for self-managed provisioning. To remove a previously configured ARN, specify an empty string. """ -function update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "UpdateAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + proton("UpdateAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3301,10 +3142,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys infrastructure that a custom component provisions. Components support a single IaC file, even if you use Terraform as your template language. """ -function update_component( - deploymentType, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +update_component(deploymentType, name; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "UpdateComponent", Dict{String,Any}( "deploymentType" => deploymentType, @@ -3314,7 +3153,6 @@ function update_component( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_component( deploymentType, name, @@ -3410,16 +3248,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateMajorVersion"`: The major version of the environment to update. - `"templateMinorVersion"`: The minor version of the environment to update. """ -function update_environment( +update_environment( deploymentType, name; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "UpdateEnvironment", + Dict{String,Any}("deploymentType" => deploymentType, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateEnvironment", - Dict{String,Any}("deploymentType" => deploymentType, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment( deploymentType, name, @@ -3464,16 +3300,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"roleArn"`: The Amazon Resource Name (ARN) of the IAM service role that's associated with the environment account connection to update. """ -function update_environment_account_connection( +update_environment_account_connection( id; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "UpdateEnvironmentAccountConnection", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateEnvironmentAccountConnection", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment_account_connection( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3500,16 +3334,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"displayName"`: The name of the environment template to update as displayed in the developer interface. """ -function update_environment_template( - name; aws_config::AbstractAWSConfig=current_aws_config() -) - return proton( +update_environment_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = + proton( "UpdateEnvironmentTemplate", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_environment_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3539,23 +3370,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: A description of environment template version to update. - `"status"`: The status of the environment template minor version to update. """ -function update_environment_template_version( +update_environment_template_version( majorVersion, minorVersion, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "UpdateEnvironmentTemplateVersion", + Dict{String,Any}( + "majorVersion" => majorVersion, + "minorVersion" => minorVersion, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateEnvironmentTemplateVersion", - Dict{String,Any}( - "majorVersion" => majorVersion, - "minorVersion" => minorVersion, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_environment_template_version( majorVersion, minorVersion, @@ -3603,14 +3432,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the existing service instances or pipeline. For more information, see Edit a service in the Proton User Guide. """ -function update_service(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "UpdateService", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_service(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "UpdateService", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_service( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3654,21 +3481,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateMajorVersion"`: The major version of the service template to update. - `"templateMinorVersion"`: The minor version of the service template to update. """ -function update_service_instance( +update_service_instance( deploymentType, name, serviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "UpdateServiceInstance", + Dict{String,Any}( + "deploymentType" => deploymentType, + "name" => name, + "serviceName" => serviceName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateServiceInstance", - Dict{String,Any}( - "deploymentType" => deploymentType, - "name" => name, - "serviceName" => serviceName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_instance( deploymentType, name, @@ -3735,18 +3560,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateMinorVersion"`: The minor version of the service template that was used to create the service that the pipeline is associated with. """ -function update_service_pipeline( +update_service_pipeline( deploymentType, serviceName, spec; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "UpdateServicePipeline", + Dict{String,Any}( + "deploymentType" => deploymentType, "serviceName" => serviceName, "spec" => spec + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateServicePipeline", - Dict{String,Any}( - "deploymentType" => deploymentType, "serviceName" => serviceName, "spec" => spec - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_pipeline( deploymentType, serviceName, @@ -3783,16 +3606,14 @@ Update the service sync blocker by resolving it. - `resolved_reason`: The reason the service sync blocker was resolved. """ -function update_service_sync_blocker( +update_service_sync_blocker( id, resolvedReason; aws_config::AbstractAWSConfig=current_aws_config() +) = proton( + "UpdateServiceSyncBlocker", + Dict{String,Any}("id" => id, "resolvedReason" => resolvedReason); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateServiceSyncBlocker", - Dict{String,Any}("id" => id, "resolvedReason" => resolvedReason); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_sync_blocker( id, resolvedReason, @@ -3828,27 +3649,25 @@ Update the Proton Ops config file. - `service_name`: The name of the service the Proton Ops file is for. """ -function update_service_sync_config( +update_service_sync_config( branch, filePath, repositoryName, repositoryProvider, serviceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "UpdateServiceSyncConfig", + Dict{String,Any}( + "branch" => branch, + "filePath" => filePath, + "repositoryName" => repositoryName, + "repositoryProvider" => repositoryProvider, + "serviceName" => serviceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateServiceSyncConfig", - Dict{String,Any}( - "branch" => branch, - "filePath" => filePath, - "repositoryName" => repositoryName, - "repositoryProvider" => repositoryProvider, - "serviceName" => serviceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_sync_config( branch, filePath, @@ -3893,14 +3712,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"displayName"`: The name of the service template to update that's displayed in the developer interface. """ -function update_service_template(name; aws_config::AbstractAWSConfig=current_aws_config()) - return proton( - "UpdateServiceTemplate", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_service_template(name; aws_config::AbstractAWSConfig=current_aws_config()) = proton( + "UpdateServiceTemplate", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_service_template( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3937,23 +3754,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associations. For more information about components, see Proton components in the Proton User Guide. """ -function update_service_template_version( +update_service_template_version( majorVersion, minorVersion, templateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "UpdateServiceTemplateVersion", + Dict{String,Any}( + "majorVersion" => majorVersion, + "minorVersion" => minorVersion, + "templateName" => templateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateServiceTemplateVersion", - Dict{String,Any}( - "majorVersion" => majorVersion, - "minorVersion" => minorVersion, - "templateName" => templateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_template_version( majorVersion, minorVersion, @@ -4000,27 +3815,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subdirectory"`: A subdirectory path to your template bundle version. When included, limits the template bundle search to this repository directory. """ -function update_template_sync_config( +update_template_sync_config( branch, repositoryName, repositoryProvider, templateName, templateType; aws_config::AbstractAWSConfig=current_aws_config(), +) = proton( + "UpdateTemplateSyncConfig", + Dict{String,Any}( + "branch" => branch, + "repositoryName" => repositoryName, + "repositoryProvider" => repositoryProvider, + "templateName" => templateName, + "templateType" => templateType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return proton( - "UpdateTemplateSyncConfig", - Dict{String,Any}( - "branch" => branch, - "repositoryName" => repositoryName, - "repositoryProvider" => repositoryProvider, - "templateName" => templateName, - "templateType" => templateType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_template_sync_config( branch, repositoryName, diff --git a/src/services/qapps.jl b/src/services/qapps.jl new file mode 100644 index 000000000..96a29b62c --- /dev/null +++ b/src/services/qapps.jl @@ -0,0 +1,1192 @@ +# This file is auto-generated by AWSMetadata.jl +using AWS +using AWS.AWSServices: qapps +using AWS.Compat +using AWS.UUIDs + +""" + associate_library_item_review(instance-id, library_item_id) + associate_library_item_review(instance-id, library_item_id, params::Dict{String,<:Any}) + +Associates a rating or review for a library item with the user submitting the request. This +increments the rating count for the specified library item. + +# Arguments +- `instance-id`: The unique identifier for the Amazon Q Business application environment + instance. +- `library_item_id`: The unique identifier of the library item to associate the review with. + +""" +associate_library_item_review( + instance_id, libraryItemId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/catalog.associateItemRating", + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function associate_library_item_review( + instance_id, + libraryItemId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/catalog.associateItemRating", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + associate_qapp_with_user(app_id, instance-id) + associate_qapp_with_user(app_id, instance-id, params::Dict{String,<:Any}) + +This operation creates a link between the user's identity calling the operation and a +specific Q App. This is useful to mark the Q App as a favorite for the user if the user +doesn't own the Amazon Q App so they can still run it and see it in their inventory of Q +Apps. + +# Arguments +- `app_id`: The ID of the Amazon Q App to associate with the user. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +""" +associate_qapp_with_user( + appId, instance_id; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/apps.install", + Dict{String,Any}( + "appId" => appId, "headers" => Dict{String,Any}("instance-id" => instance_id) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function associate_qapp_with_user( + appId, + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/apps.install", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appId" => appId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_library_item(app_id, app_version, categories, instance-id) + create_library_item(app_id, app_version, categories, instance-id, params::Dict{String,<:Any}) + +Creates a new library item for an Amazon Q App, allowing it to be discovered and used by +other allowed users. + +# Arguments +- `app_id`: The unique identifier of the Amazon Q App to publish to the library. +- `app_version`: The version of the Amazon Q App to publish to the library. +- `categories`: The categories to associate with the library item for easier discovery. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +""" +create_library_item( + appId, + appVersion, + categories, + instance_id; + aws_config::AbstractAWSConfig=current_aws_config(), +) = qapps( + "POST", + "/catalog.createItem", + Dict{String,Any}( + "appId" => appId, + "appVersion" => appVersion, + "categories" => categories, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_library_item( + appId, + appVersion, + categories, + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/catalog.createItem", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appId" => appId, + "appVersion" => appVersion, + "categories" => categories, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + create_qapp(app_definition, instance-id, title) + create_qapp(app_definition, instance-id, title, params::Dict{String,<:Any}) + +Creates a new Amazon Q App based on the provided definition. The Q App definition specifies +the cards and flow of the Q App. This operation also calculates the dependencies between +the cards by inspecting the references in the prompts. + +# Arguments +- `app_definition`: The definition of the new Q App, specifying the cards and flow. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `title`: The title of the new Q App. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"description"`: The description of the new Q App. +- `"tags"`: Optional tags to associate with the new Q App. +""" +create_qapp( + appDefinition, instance_id, title; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/apps.create", + Dict{String,Any}( + "appDefinition" => appDefinition, + "title" => title, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_qapp( + appDefinition, + instance_id, + title, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/apps.create", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appDefinition" => appDefinition, + "title" => title, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_library_item(instance-id, library_item_id) + delete_library_item(instance-id, library_item_id, params::Dict{String,<:Any}) + +Deletes a library item for an Amazon Q App, removing it from the library so it can no +longer be discovered or used by other users. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `library_item_id`: The unique identifier of the library item to delete. + +""" +delete_library_item( + instance_id, libraryItemId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/catalog.deleteItem", + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_library_item( + instance_id, + libraryItemId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/catalog.deleteItem", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_qapp(app_id, instance-id) + delete_qapp(app_id, instance-id, params::Dict{String,<:Any}) + +Deletes an Amazon Q App owned by the user. If the Q App was previously published to the +library, it is also removed from the library. + +# Arguments +- `app_id`: The unique identifier of the Q App to delete. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +""" +delete_qapp(appId, instance_id; aws_config::AbstractAWSConfig=current_aws_config()) = qapps( + "POST", + "/apps.delete", + Dict{String,Any}( + "appId" => appId, "headers" => Dict{String,Any}("instance-id" => instance_id) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_qapp( + appId, + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/apps.delete", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appId" => appId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + disassociate_library_item_review(instance-id, library_item_id) + disassociate_library_item_review(instance-id, library_item_id, params::Dict{String,<:Any}) + +Removes a rating or review previously submitted by the user for a library item. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `library_item_id`: The unique identifier of the library item to remove the review from. + +""" +disassociate_library_item_review( + instance_id, libraryItemId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/catalog.disassociateItemRating", + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function disassociate_library_item_review( + instance_id, + libraryItemId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/catalog.disassociateItemRating", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + disassociate_qapp_from_user(app_id, instance-id) + disassociate_qapp_from_user(app_id, instance-id, params::Dict{String,<:Any}) + +Disassociates a Q App from a user removing the user's access to run the Q App. + +# Arguments +- `app_id`: The unique identifier of the Q App to disassociate from the user. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +""" +disassociate_qapp_from_user( + appId, instance_id; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/apps.uninstall", + Dict{String,Any}( + "appId" => appId, "headers" => Dict{String,Any}("instance-id" => instance_id) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function disassociate_qapp_from_user( + appId, + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/apps.uninstall", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appId" => appId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_library_item(instance-id, library_item_id) + get_library_item(instance-id, library_item_id, params::Dict{String,<:Any}) + +Retrieves details about a library item for an Amazon Q App, including its metadata, +categories, ratings, and usage statistics. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `library_item_id`: The unique identifier of the library item to retrieve. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"appId"`: The unique identifier of the Amazon Q App associated with the library item. +""" +get_library_item( + instance_id, libraryItemId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "GET", + "/catalog.getItem", + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_library_item( + instance_id, + libraryItemId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "GET", + "/catalog.getItem", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_qapp(app_id, instance-id) + get_qapp(app_id, instance-id, params::Dict{String,<:Any}) + +Retrieves the full details of an Q App, including its definition specifying the cards and +flow. + +# Arguments +- `app_id`: The unique identifier of the Q App to retrieve. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +""" +get_qapp(appId, instance_id; aws_config::AbstractAWSConfig=current_aws_config()) = qapps( + "GET", + "/apps.get", + Dict{String,Any}( + "appId" => appId, "headers" => Dict{String,Any}("instance-id" => instance_id) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_qapp( + appId, + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "GET", + "/apps.get", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appId" => appId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_qapp_session(instance-id, session_id) + get_qapp_session(instance-id, session_id, params::Dict{String,<:Any}) + +Retrieves the current state and results for an active session of an Amazon Q App. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `session_id`: The unique identifier of the Q App session to retrieve. + +""" +get_qapp_session( + instance_id, sessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "GET", + "/runtime.getQAppSession", + Dict{String,Any}( + "sessionId" => sessionId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_qapp_session( + instance_id, + sessionId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "GET", + "/runtime.getQAppSession", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "sessionId" => sessionId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + import_document(app_id, card_id, file_contents_base64, file_name, instance-id, scope) + import_document(app_id, card_id, file_contents_base64, file_name, instance-id, scope, params::Dict{String,<:Any}) + +Uploads a file that can then be used either as a default in a FileUploadCard from Q App +definition or as a file that is used inside a single Q App run. The purpose of the document +is determined by a scope parameter that indicates whether it is at the app definition level +or at the app session level. + +# Arguments +- `app_id`: The unique identifier of the Q App the file is associated with. +- `card_id`: The unique identifier of the card the file is associated with, if applicable. +- `file_contents_base64`: The base64-encoded contents of the file to upload. +- `file_name`: The name of the file being uploaded. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `scope`: Whether the file is associated with an Q App definition or a specific Q App + session. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"sessionId"`: The unique identifier of the Q App session the file is associated with, if + applicable. +""" +import_document( + appId, + cardId, + fileContentsBase64, + fileName, + instance_id, + scope; + aws_config::AbstractAWSConfig=current_aws_config(), +) = qapps( + "POST", + "/apps.importDocument", + Dict{String,Any}( + "appId" => appId, + "cardId" => cardId, + "fileContentsBase64" => fileContentsBase64, + "fileName" => fileName, + "scope" => scope, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function import_document( + appId, + cardId, + fileContentsBase64, + fileName, + instance_id, + scope, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/apps.importDocument", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appId" => appId, + "cardId" => cardId, + "fileContentsBase64" => fileContentsBase64, + "fileName" => fileName, + "scope" => scope, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_library_items(instance-id) + list_library_items(instance-id, params::Dict{String,<:Any}) + +Lists the library items for Amazon Q Apps that are published and available for users in +your Amazon Web Services account. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"categoryId"`: Optional category to filter the library items by. +- `"limit"`: The maximum number of library items to return in the response. +- `"nextToken"`: The token to request the next page of results. +""" +list_library_items(instance_id; aws_config::AbstractAWSConfig=current_aws_config()) = qapps( + "GET", + "/catalog.list", + Dict{String,Any}("headers" => Dict{String,Any}("instance-id" => instance_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_library_items( + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "GET", + "/catalog.list", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "headers" => Dict{String,Any}("instance-id" => instance_id) + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_qapps(instance-id) + list_qapps(instance-id, params::Dict{String,<:Any}) + +Lists the Amazon Q Apps owned by or associated with the user either because they created it +or because they used it from the library in the past. The user identity is extracted from +the credentials used to invoke this operation.. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"limit"`: The maximum number of Q Apps to return in the response. +- `"nextToken"`: The token to request the next page of results. +""" +list_qapps(instance_id; aws_config::AbstractAWSConfig=current_aws_config()) = qapps( + "GET", + "/apps.list", + Dict{String,Any}("headers" => Dict{String,Any}("instance-id" => instance_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_qapps( + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "GET", + "/apps.list", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "headers" => Dict{String,Any}("instance-id" => instance_id) + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_tags_for_resource(resource_arn) + list_tags_for_resource(resource_arn, params::Dict{String,<:Any}) + +Lists the tags associated with an Amazon Q Apps resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource whose tags should be + listed. + +""" +list_tags_for_resource(resourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + qapps( + "GET", + "/tags/$(resourceARN)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_tags_for_resource( + resourceARN, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "GET", + "/tags/$(resourceARN)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + predict_qapp(instance-id) + predict_qapp(instance-id, params::Dict{String,<:Any}) + +Generates an Amazon Q App definition based on either a conversation or a problem statement +provided as input.The resulting app definition can be used to call CreateQApp. This API +doesn't create Amazon Q Apps directly. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"options"`: The input to generate the Q App definition from, either a conversation or + problem statement. +""" +predict_qapp(instance_id; aws_config::AbstractAWSConfig=current_aws_config()) = qapps( + "POST", + "/apps.predictQApp", + Dict{String,Any}("headers" => Dict{String,Any}("instance-id" => instance_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function predict_qapp( + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/apps.predictQApp", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "headers" => Dict{String,Any}("instance-id" => instance_id) + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + start_qapp_session(app_id, app_version, instance-id) + start_qapp_session(app_id, app_version, instance-id, params::Dict{String,<:Any}) + +Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be +run. Each Q App session will be condensed into a single conversation in the web +experience. + +# Arguments +- `app_id`: The unique identifier of the Q App to start a session for. +- `app_version`: The version of the Q App to use for the session. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"initialValues"`: Optional initial input values to provide for the Q App session. +- `"tags"`: Optional tags to associate with the new Q App session. +""" +start_qapp_session( + appId, appVersion, instance_id; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/runtime.startQAppSession", + Dict{String,Any}( + "appId" => appId, + "appVersion" => appVersion, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function start_qapp_session( + appId, + appVersion, + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/runtime.startQAppSession", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appId" => appId, + "appVersion" => appVersion, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + stop_qapp_session(instance-id, session_id) + stop_qapp_session(instance-id, session_id, params::Dict{String,<:Any}) + +Stops an active session for an Amazon Q App.This deletes all data related to the session +and makes it invalid for future uses. The results of the session will be persisted as part +of the conversation. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `session_id`: The unique identifier of the Q App session to stop. + +""" +stop_qapp_session( + instance_id, sessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/runtime.deleteMiniAppRun", + Dict{String,Any}( + "sessionId" => sessionId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function stop_qapp_session( + instance_id, + sessionId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/runtime.deleteMiniAppRun", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "sessionId" => sessionId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + tag_resource(resource_arn, tags) + tag_resource(resource_arn, tags, params::Dict{String,<:Any}) + +Associates tags with an Amazon Q Apps resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource to tag. +- `tags`: The tags to associate with the resource. + +""" +tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) = qapps( + "POST", + "/tags/$(resourceARN)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function tag_resource( + resourceARN, + tags, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/tags/$(resourceARN)", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("tags" => tags), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + untag_resource(resource_arn, tag_keys) + untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any}) + +Disassociates tags from an Amazon Q Apps resource. + +# Arguments +- `resource_arn`: The Amazon Resource Name (ARN) of the resource to disassociate the tag + from. +- `tag_keys`: The keys of the tags to disassociate from the resource. + +""" +untag_resource(resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + qapps( + "DELETE", + "/tags/$(resourceARN)", + Dict{String,Any}("tagKeys" => tagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function untag_resource( + resourceARN, + tagKeys, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "DELETE", + "/tags/$(resourceARN)", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("tagKeys" => tagKeys), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_library_item(instance-id, library_item_id) + update_library_item(instance-id, library_item_id, params::Dict{String,<:Any}) + +Updates the library item for an Amazon Q App. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `library_item_id`: The unique identifier of the library item to update. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"categories"`: The new categories to associate with the library item. +- `"status"`: The new status to set for the library item, such as \"Published\" or + \"Hidden\". +""" +update_library_item( + instance_id, libraryItemId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/catalog.updateItem", + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_library_item( + instance_id, + libraryItemId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/catalog.updateItem", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_library_item_metadata(instance-id, library_item_id) + update_library_item_metadata(instance-id, library_item_id, params::Dict{String,<:Any}) + +Updates the verification status of a library item for an Amazon Q App. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `library_item_id`: The unique identifier of the updated library item. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"isVerified"`: The verification status of the library item +""" +update_library_item_metadata( + instance_id, libraryItemId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/catalog.updateItemMetadata", + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_library_item_metadata( + instance_id, + libraryItemId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/catalog.updateItemMetadata", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "libraryItemId" => libraryItemId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_qapp(app_id, instance-id) + update_qapp(app_id, instance-id, params::Dict{String,<:Any}) + +Updates an existing Amazon Q App, allowing modifications to its title, description, and +definition. + +# Arguments +- `app_id`: The unique identifier of the Q App to update. +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"appDefinition"`: The new definition specifying the cards and flow for the Q App. +- `"description"`: The new description for the Q App. +- `"title"`: The new title for the Q App. +""" +update_qapp(appId, instance_id; aws_config::AbstractAWSConfig=current_aws_config()) = qapps( + "POST", + "/apps.update", + Dict{String,Any}( + "appId" => appId, "headers" => Dict{String,Any}("instance-id" => instance_id) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_qapp( + appId, + instance_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/apps.update", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "appId" => appId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_qapp_session(instance-id, session_id) + update_qapp_session(instance-id, session_id, params::Dict{String,<:Any}) + +Updates the session for a given Q App sessionId. This is only valid when at least one card +of the session is in the WAITING state. Data for each WAITING card can be provided as +input. If inputs are not provided, the call will be accepted but session will not move +forward. Inputs for cards that are not in the WAITING status will be ignored. + +# Arguments +- `instance-id`: The unique identifier of the Amazon Q Business application environment + instance. +- `session_id`: The unique identifier of the Q App session to provide input for. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"values"`: The input values to provide for the current state of the Q App session. +""" +update_qapp_session( + instance_id, sessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = qapps( + "POST", + "/runtime.updateQAppSession", + Dict{String,Any}( + "sessionId" => sessionId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_qapp_session( + instance_id, + sessionId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qapps( + "POST", + "/runtime.updateQAppSession", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "sessionId" => sessionId, + "headers" => Dict{String,Any}("instance-id" => instance_id), + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end diff --git a/src/services/qbusiness.jl b/src/services/qbusiness.jl index 38f50e8fd..65226be0f 100644 --- a/src/services/qbusiness.jl +++ b/src/services/qbusiness.jl @@ -23,17 +23,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"dataSourceSyncId"`: The identifier of the data source sync during which the documents were deleted. """ -function batch_delete_document( +batch_delete_document( applicationId, documents, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "POST", + "/applications/$(applicationId)/indices/$(indexId)/documents/delete", + Dict{String,Any}("documents" => documents); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/indices/$(indexId)/documents/delete", - Dict{String,Any}("documents" => documents); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_document( applicationId, documents, @@ -75,17 +73,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"roleArn"`: The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket. """ -function batch_put_document( +batch_put_document( applicationId, documents, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "POST", + "/applications/$(applicationId)/indices/$(indexId)/documents", + Dict{String,Any}("documents" => documents); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/indices/$(indexId)/documents", - Dict{String,Any}("documents" => documents); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_document( applicationId, documents, @@ -141,15 +137,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"userId"`: The identifier of the user attached to the chat input. - `"userMessage"`: A end user message in a conversation. """ -function chat_sync(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( - "POST", - "/applications/$(applicationId)/conversations?sync", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +chat_sync(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = qbusiness( + "POST", + "/applications/$(applicationId)/conversations?sync", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function chat_sync( applicationId, params::AbstractDict{String}; @@ -183,14 +177,20 @@ assign subscription tiers to users. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"attachmentsConfiguration"`: An option to allow end users to upload files directly during chat. +- `"clientIdsForOIDC"`: The OIDC client ID for a Amazon Q Business application. - `"clientToken"`: A token that you provide to identify the request to create your Amazon Q Business application. - `"description"`: A description for the Amazon Q Business application. - `"encryptionConfiguration"`: The identifier of the KMS key that is used to encrypt your data. Amazon Q Business doesn't support asymmetric keys. +- `"iamIdentityProviderArn"`: The Amazon Resource Name (ARN) of an identity provider being + used by an Amazon Q Business application. - `"identityCenterInstanceArn"`: The Amazon Resource Name (ARN) of the IAM Identity Center instance you are either creating for—or connecting to—your Amazon Q Business application. +- `"identityType"`: The authentication type being used by a Amazon Q Business application. +- `"personalizationConfiguration"`: Configuration information about chat response + personalization. For more information, see Personalizing chat responses - `"qAppsConfiguration"`: An option to allow end users to create and use Amazon Q Apps in the web experience. - `"roleArn"`: The Amazon Resource Name (ARN) of an IAM role with permissions to access @@ -200,15 +200,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @. """ -function create_application(displayName; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( +create_application(displayName; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "POST", "/applications", Dict{String,Any}("displayName" => displayName, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_application( displayName, params::AbstractDict{String}; @@ -242,8 +241,16 @@ created. Otherwise, an exception is raised. # Arguments - `application_id`: The identifier of the Amazon Q Business application the data source will be attached to. -- `configuration`: Configuration information to connect to your data source repository. For - configuration templates for your specific data source, see Supported connectors. +- `configuration`: Configuration information to connect your data source repository to + Amazon Q Business. Use this parameter to provide a JSON schema with configuration + information specific to your data source connector. Each data source has a JSON schema + provided by Amazon Q Business that you must use. For example, the Amazon S3 and Web Crawler + connectors require the following JSON schemas: Amazon S3 JSON schema Web Crawler + JSON schema You can find configuration templates for your specific data source using the + following steps: Navigate to the Supported connectors page in the Amazon Q Business User + Guide, and select the data source of your choice. Then, from your specific data source + connector page, select Using the API. You will find the JSON schema for your data source, + including parameter descriptions, in this section. - `display_name`: A name for the data source connector. - `index_id`: The identifier of the index that you want to use with the data source connector. @@ -271,25 +278,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to connect to your data source. For more information, see Using Amazon VPC with Amazon Q Business connectors. """ -function create_data_source( +create_data_source( applicationId, configuration, displayName, indexId; aws_config::AbstractAWSConfig=current_aws_config(), +) = qbusiness( + "POST", + "/applications/$(applicationId)/indices/$(indexId)/datasources", + Dict{String,Any}( + "configuration" => configuration, + "displayName" => displayName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/indices/$(indexId)/datasources", - Dict{String,Any}( - "configuration" => configuration, - "displayName" => displayName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_source( applicationId, configuration, @@ -343,17 +348,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"type"`: The index type that's suitable for your needs. For more information on what's included in each type of index, see Amazon Q Business tiers. """ -function create_index( +create_index( applicationId, displayName; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "POST", + "/applications/$(applicationId)/indices", + Dict{String,Any}("displayName" => displayName, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/indices", - Dict{String,Any}("displayName" => displayName, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_index( applicationId, displayName, @@ -400,26 +403,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @. """ -function create_plugin( +create_plugin( applicationId, authConfiguration, displayName, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = qbusiness( + "POST", + "/applications/$(applicationId)/plugins", + Dict{String,Any}( + "authConfiguration" => authConfiguration, + "displayName" => displayName, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/plugins", - Dict{String,Any}( - "authConfiguration" => authConfiguration, - "displayName" => displayName, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_plugin( applicationId, authConfiguration, @@ -470,26 +471,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys also use tags to help control access to the retriever. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @. """ -function create_retriever( +create_retriever( applicationId, configuration, displayName, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = qbusiness( + "POST", + "/applications/$(applicationId)/retrievers", + Dict{String,Any}( + "configuration" => configuration, + "displayName" => displayName, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/retrievers", - Dict{String,Any}( - "configuration" => configuration, - "displayName" => displayName, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_retriever( applicationId, configuration, @@ -536,17 +535,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Business user mapping. - `"userAliases"`: The list of user aliases in the mapping. """ -function create_user( - applicationId, userId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +create_user(applicationId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "POST", "/applications/$(applicationId)/users", Dict{String,Any}("userId" => userId, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_user( applicationId, userId, @@ -581,8 +577,12 @@ Creates an Amazon Q Business web experience. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: A token you provide to identify a request to create an Amazon Q Business web experience. +- `"identityProviderConfiguration"`: Information about the identity provider (IdP) used to + authenticate end users of an Amazon Q Business web experience. - `"roleArn"`: The Amazon Resource Name (ARN) of the service role attached to your web - experience. + experience. You must provide this value if you're using IAM Identity Center to manage end + user access to your application. If you're using legacy identity management to manage user + access, you don't need to provide this value. - `"samplePromptsControlMode"`: Determines whether sample prompts are enabled in the web experience for an end user. - `"subtitle"`: A subtitle to personalize your Amazon Q Business web experience. @@ -594,17 +594,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"welcomeMessage"`: The customized welcome message for end users of an Amazon Q Business web experience. """ -function create_web_experience( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +create_web_experience(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "POST", "/applications/$(applicationId)/experiences", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_web_experience( applicationId, params::AbstractDict{String}; @@ -631,16 +628,13 @@ Deletes an Amazon Q Business application. - `application_id`: The identifier of the Amazon Q Business application. """ -function delete_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +delete_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "DELETE", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( applicationId, params::AbstractDict{String}; @@ -666,16 +660,14 @@ Deletes chat controls configured for an existing Amazon Q Business application. configured for. """ -function delete_chat_controls_configuration( +delete_chat_controls_configuration( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "DELETE", + "/applications/$(applicationId)/chatcontrols"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "DELETE", - "/applications/$(applicationId)/chatcontrols"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_chat_controls_configuration( applicationId, params::AbstractDict{String}; @@ -706,16 +698,14 @@ Deletes an Amazon Q Business web experience conversation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"userId"`: The identifier of the user who is deleting the conversation. """ -function delete_conversation( +delete_conversation( applicationId, conversationId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "DELETE", + "/applications/$(applicationId)/conversations/$(conversationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "DELETE", - "/applications/$(applicationId)/conversations/$(conversationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_conversation( applicationId, conversationId, @@ -745,16 +735,14 @@ the Status field returned by a call to the DescribeDataSource API is set to DELE - `index_id`: The identifier of the index used with the data source connector. """ -function delete_data_source( +delete_data_source( applicationId, dataSourceId, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "DELETE", + "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "DELETE", - "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_source( applicationId, dataSourceId, @@ -799,16 +787,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys so that these groups cannot access customer-related documents stored in Salesforce. Only \"Sales and Marketing\" should access documents in the Salesforce data source. """ -function delete_group( +delete_group( applicationId, groupName, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "DELETE", + "/applications/$(applicationId)/indices/$(indexId)/groups/$(groupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "DELETE", - "/applications/$(applicationId)/indices/$(indexId)/groups/$(groupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_group( applicationId, groupName, @@ -837,16 +823,13 @@ Deletes an Amazon Q Business index. - `index_id`: The identifier of the Amazon Q Business index. """ -function delete_index( - applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +delete_index(applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "DELETE", "/applications/$(applicationId)/indices/$(indexId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_index( applicationId, indexId, @@ -873,16 +856,13 @@ Deletes an Amazon Q Business plugin. - `plugin_id`: The identifier of the plugin being deleted. """ -function delete_plugin( - applicationId, pluginId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +delete_plugin(applicationId, pluginId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "DELETE", "/applications/$(applicationId)/plugins/$(pluginId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_plugin( applicationId, pluginId, @@ -909,16 +889,14 @@ Deletes the retriever used by an Amazon Q Business application. - `retriever_id`: The identifier of the retriever being deleted. """ -function delete_retriever( +delete_retriever( applicationId, retrieverId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "DELETE", + "/applications/$(applicationId)/retrievers/$(retrieverId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "DELETE", - "/applications/$(applicationId)/retrievers/$(retrieverId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_retriever( applicationId, retrieverId, @@ -945,16 +923,13 @@ Deletes a user by email id. - `user_id`: The user email being deleted. """ -function delete_user( - applicationId, userId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +delete_user(applicationId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "DELETE", "/applications/$(applicationId)/users/$(userId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user( applicationId, userId, @@ -982,16 +957,14 @@ Deletes an Amazon Q Business web experience. - `web_experience_id`: The identifier of the Amazon Q Business web experience being deleted. """ -function delete_web_experience( +delete_web_experience( applicationId, webExperienceId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "DELETE", + "/applications/$(applicationId)/experiences/$(webExperienceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "DELETE", - "/applications/$(applicationId)/experiences/$(webExperienceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_web_experience( applicationId, webExperienceId, @@ -1017,14 +990,13 @@ Gets information about an existing Amazon Q Business application. - `application_id`: The identifier of the Amazon Q Business application. """ -function get_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( +get_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_application( applicationId, params::AbstractDict{String}; @@ -1057,16 +1029,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business chat controls configured. """ -function get_chat_controls_configuration( +get_chat_controls_configuration( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "GET", + "/applications/$(applicationId)/chatcontrols"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/chatcontrols"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_chat_controls_configuration( applicationId, params::AbstractDict{String}; @@ -1093,16 +1063,14 @@ Gets information about an existing Amazon Q Business data source connector. - `index_id`: The identfier of the index used with the data source connector. """ -function get_data_source( +get_data_source( applicationId, dataSourceId, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "GET", + "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_source( applicationId, dataSourceId, @@ -1134,16 +1102,14 @@ Describes a group by group name. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"dataSourceId"`: The identifier of the data source the group is attached to. """ -function get_group( +get_group( applicationId, groupName, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "GET", + "/applications/$(applicationId)/indices/$(indexId)/groups/$(groupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/indices/$(indexId)/groups/$(groupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_group( applicationId, groupName, @@ -1172,16 +1138,13 @@ Gets information about an existing Amazon Q Business index. - `index_id`: The identifier of the Amazon Q Business index you want information on. """ -function get_index( - applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +get_index(applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/applications/$(applicationId)/indices/$(indexId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_index( applicationId, indexId, @@ -1208,16 +1171,13 @@ Gets information about an existing Amazon Q Business plugin. - `plugin_id`: The identifier of the plugin. """ -function get_plugin( - applicationId, pluginId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +get_plugin(applicationId, pluginId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/applications/$(applicationId)/plugins/$(pluginId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_plugin( applicationId, pluginId, @@ -1244,16 +1204,14 @@ Gets information about an existing retriever used by an Amazon Q Business applic - `retriever_id`: The identifier of the retriever. """ -function get_retriever( +get_retriever( applicationId, retrieverId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "GET", + "/applications/$(applicationId)/retrievers/$(retrieverId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/retrievers/$(retrieverId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_retriever( applicationId, retrieverId, @@ -1281,14 +1239,13 @@ source. - `user_id`: The user email address attached to the user. """ -function get_user(applicationId, userId; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( +get_user(applicationId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/applications/$(applicationId)/users/$(userId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_user( applicationId, userId, @@ -1316,16 +1273,14 @@ Gets information about an existing Amazon Q Business web experience. - `web_experience_id`: The identifier of the Amazon Q Business web experience. """ -function get_web_experience( +get_web_experience( applicationId, webExperienceId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "GET", + "/applications/$(applicationId)/experiences/$(webExperienceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/experiences/$(webExperienceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_web_experience( applicationId, webExperienceId, @@ -1354,11 +1309,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business applications. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( - "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = qbusiness( + "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1389,16 +1342,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"userId"`: The identifier of the user involved in the Amazon Q Business web experience conversation. """ -function list_conversations( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +list_conversations(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/applications/$(applicationId)/conversations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_conversations( applicationId, params::AbstractDict{String}; @@ -1437,16 +1387,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"syncStatus"`: Only returns synchronization jobs with the Status field equal to the specified status. """ -function list_data_source_sync_jobs( +list_data_source_sync_jobs( applicationId, dataSourceId, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "GET", + "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)/syncjobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)/syncjobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_source_sync_jobs( applicationId, dataSourceId, @@ -1481,16 +1429,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business data source connectors. """ -function list_data_sources( +list_data_sources( applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "GET", + "/applications/$(applicationId)/indices/$(indexId)/datasources"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/indices/$(indexId)/datasources"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_data_sources( applicationId, indexId, @@ -1524,16 +1470,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of documents. """ -function list_documents( - applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +list_documents(applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/applications/$(applicationId)/index/$(indexId)/documents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_documents( applicationId, indexId, @@ -1571,20 +1514,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of groups that are mapped to users. """ -function list_groups( +list_groups( applicationId, indexId, updatedEarlierThan; aws_config::AbstractAWSConfig=current_aws_config(), +) = qbusiness( + "GET", + "/applications/$(applicationId)/indices/$(indexId)/groups", + Dict{String,Any}("updatedEarlierThan" => updatedEarlierThan); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/indices/$(indexId)/groups", - Dict{String,Any}("updatedEarlierThan" => updatedEarlierThan); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_groups( applicationId, indexId, @@ -1622,14 +1563,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business indices. """ -function list_indices(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( - "GET", - "/applications/$(applicationId)/indices"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_indices(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = qbusiness( + "GET", + "/applications/$(applicationId)/indices"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_indices( applicationId, params::AbstractDict{String}; @@ -1662,16 +1601,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"userId"`: The identifier of the user involved in the Amazon Q Business web experience conversation. """ -function list_messages( +list_messages( applicationId, conversationId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "GET", + "/applications/$(applicationId)/conversations/$(conversationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "GET", - "/applications/$(applicationId)/conversations/$(conversationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_messages( applicationId, conversationId, @@ -1703,14 +1640,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of plugins. """ -function list_plugins(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( - "GET", - "/applications/$(applicationId)/plugins"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_plugins(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = qbusiness( + "GET", + "/applications/$(applicationId)/plugins"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_plugins( applicationId, params::AbstractDict{String}; @@ -1740,14 +1675,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: If the number of retrievers returned exceeds maxResults, Amazon Q Business returns a next token as a pagination token to retrieve the next set of retrievers. """ -function list_retrievers(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( +list_retrievers(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/applications/$(applicationId)/retrievers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_retrievers( applicationId, params::AbstractDict{String}; @@ -1774,16 +1708,13 @@ and data sources can have tags associated with them. data source to get a list of tags for. """ -function list_tags_for_resource( - resourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +list_tags_for_resource(resourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/v1/tags/$(resourceARN)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceARN, params::AbstractDict{String}; @@ -1815,16 +1746,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business conversations. """ -function list_web_experiences( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +list_web_experiences(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "GET", "/applications/$(applicationId)/experiences"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_web_experiences( applicationId, params::AbstractDict{String}; @@ -1858,19 +1786,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys message. - `"userId"`: The identifier of the user giving the feedback. """ -function put_feedback( +put_feedback( applicationId, conversationId, messageId; aws_config::AbstractAWSConfig=current_aws_config(), +) = qbusiness( + "POST", + "/applications/$(applicationId)/conversations/$(conversationId)/messages/$(messageId)/feedback"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/conversations/$(conversationId)/messages/$(messageId)/feedback"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_feedback( applicationId, conversationId, @@ -1904,11 +1830,7 @@ top-secret company documents in their Amazon Q Business chat results. - `group_members`: - `group_name`: The list that contains your users or sub groups that belong the same group. For example, the group \"Company\" includes the user \"CEO\" and the sub groups - \"Research\", \"Engineering\", and \"Sales and Marketing\". If you have more than 1000 - users and/or sub groups for a single group, you need to provide the path to the S3 file - that lists your users and sub groups for a group. Your sub groups can contain more than - 1000 users, but the list of sub groups that belong to a group (and/or users) must be no - more than 1000. + \"Research\", \"Engineering\", and \"Sales and Marketing\". - `index_id`: The identifier of the index in which you want to map users to their groups. - `type`: The type of the group. @@ -1921,24 +1843,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys documents stored in the data sources Confluence and Salesforce. However, \"Sales and Marketing\" team only needs access to customer-related documents stored in Salesforce. """ -function put_group( +put_group( applicationId, groupMembers, groupName, indexId, type; aws_config::AbstractAWSConfig=current_aws_config(), +) = qbusiness( + "PUT", + "/applications/$(applicationId)/indices/$(indexId)/groups", + Dict{String,Any}( + "groupMembers" => groupMembers, "groupName" => groupName, "type" => type + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "PUT", - "/applications/$(applicationId)/indices/$(indexId)/groups", - Dict{String,Any}( - "groupMembers" => groupMembers, "groupName" => groupName, "type" => type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_group( applicationId, groupMembers, @@ -1979,16 +1899,14 @@ progress, Amazon Q Business returns a ConflictException. - `index_id`: The identifier of the index used with the data source connector. """ -function start_data_source_sync_job( +start_data_source_sync_job( applicationId, dataSourceId, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "POST", + "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)/startsync"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)/startsync"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_data_source_sync_job( applicationId, dataSourceId, @@ -2019,16 +1937,14 @@ Stops an Amazon Q Business data source connector synchronization job already in connector. """ -function stop_data_source_sync_job( +stop_data_source_sync_job( applicationId, dataSourceId, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "POST", + "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)/stopsync"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "POST", - "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)/stopsync"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_data_source_sync_job( applicationId, dataSourceId, @@ -2059,15 +1975,14 @@ resource. If the tag already exists, the existing value is replaced with the new a tag already exists, the existing value is replaced with the new value. """ -function tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return qbusiness( +tag_resource(resourceARN, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "POST", "/v1/tags/$(resourceARN)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceARN, tags, @@ -2096,17 +2011,14 @@ Removes a tag from an Amazon Q Business application or a data source. source. If a tag key does not exist on the resource, it is ignored. """ -function untag_resource( - resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +untag_resource(resourceARN, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "DELETE", "/v1/tags/$(resourceARN)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceARN, tagKeys, @@ -2135,26 +2047,28 @@ Updates an existing Amazon Q Business application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"attachmentsConfiguration"`: An option to allow end users to upload files directly during chat. +- `"autoSubscriptionConfiguration"`: An option to enable updating the default subscription + type assigned to an Amazon Q Business application using IAM identity federation for user + management. - `"description"`: A description for the Amazon Q Business application. - `"displayName"`: A name for the Amazon Q Business application. - `"identityCenterInstanceArn"`: The Amazon Resource Name (ARN) of the IAM Identity Center instance you are either creating for—or connecting to—your Amazon Q Business application. +- `"personalizationConfiguration"`: Configuration information about chat response + personalization. For more information, see Personalizing chat responses. - `"qAppsConfiguration"`: An option to allow end users to create and use Amazon Q Apps in the web experience. - `"roleArn"`: An Amazon Web Services Identity and Access Management (IAM) role that gives Amazon Q Business permission to access Amazon CloudWatch logs and metrics. """ -function update_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +update_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "PUT", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( applicationId, params::AbstractDict{String}; @@ -2195,17 +2109,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"topicConfigurationsToDelete"`: The configured topic specific chat controls you want to delete. """ -function update_chat_controls_configuration( +update_chat_controls_configuration( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "PATCH", + "/applications/$(applicationId)/chatcontrols", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "PATCH", - "/applications/$(applicationId)/chatcontrols", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_chat_controls_configuration( applicationId, params::AbstractDict{String}; @@ -2245,16 +2157,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"syncSchedule"`: The chosen update frequency for your data source. - `"vpcConfiguration"`: """ -function update_data_source( +update_data_source( applicationId, dataSourceId, indexId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "PUT", + "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "PUT", - "/applications/$(applicationId)/indices/$(indexId)/datasources/$(dataSourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_source( applicationId, dataSourceId, @@ -2293,16 +2203,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys example, the company department name associated with each document. For more information, see Understanding document attributes. """ -function update_index( - applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +update_index(applicationId, indexId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "PUT", "/applications/$(applicationId)/indices/$(indexId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_index( applicationId, indexId, @@ -2336,16 +2243,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serverUrl"`: The source URL used for plugin configuration. - `"state"`: The status of the plugin. """ -function update_plugin( - applicationId, pluginId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +update_plugin(applicationId, pluginId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "PUT", "/applications/$(applicationId)/plugins/$(pluginId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_plugin( applicationId, pluginId, @@ -2378,16 +2282,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"roleArn"`: The Amazon Resource Name (ARN) of an IAM role with permission to access the retriever and required resources. """ -function update_retriever( +update_retriever( applicationId, retrieverId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "PUT", + "/applications/$(applicationId)/retrievers/$(retrieverId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "PUT", - "/applications/$(applicationId)/retrievers/$(retrieverId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_retriever( applicationId, retrieverId, @@ -2418,16 +2320,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"userAliasesToDelete"`: The user aliases attached to the user id that are to be deleted. - `"userAliasesToUpdate"`: The user aliases attached to the user id that are to be updated. """ -function update_user( - applicationId, userId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qbusiness( +update_user(applicationId, userId; aws_config::AbstractAWSConfig=current_aws_config()) = + qbusiness( "PUT", "/applications/$(applicationId)/users/$(userId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_user( applicationId, userId, @@ -2458,6 +2357,8 @@ Updates an Amazon Q Business web experience. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"authenticationConfiguration"`: The authentication configuration of the Amazon Q Business web experience. +- `"identityProviderConfiguration"`: Information about the identity provider (IdP) used to + authenticate end users of an Amazon Q Business web experience. - `"roleArn"`: The Amazon Resource Name (ARN) of the role with permission to access the Amazon Q Business web experience and required resources. - `"samplePromptsControlMode"`: Determines whether sample prompts are enabled in the web @@ -2467,16 +2368,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"welcomeMessage"`: A customized welcome message for an end user in an Amazon Q Business web experience. """ -function update_web_experience( +update_web_experience( applicationId, webExperienceId; aws_config::AbstractAWSConfig=current_aws_config() +) = qbusiness( + "PUT", + "/applications/$(applicationId)/experiences/$(webExperienceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qbusiness( - "PUT", - "/applications/$(applicationId)/experiences/$(webExperienceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_web_experience( applicationId, webExperienceId, diff --git a/src/services/qconnect.jl b/src/services/qconnect.jl index 5dbfee738..a56197e00 100644 --- a/src/services/qconnect.jl +++ b/src/services/qconnect.jl @@ -30,15 +30,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for your instance. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_assistant(name, type; aws_config::AbstractAWSConfig=current_aws_config()) - return qconnect( - "POST", - "/assistants", - Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_assistant(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = qconnect( + "POST", + "/assistants", + Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_assistant( name, type, @@ -83,24 +81,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys field. For more information about idempotency, see Making retries safe with idempotent APIs. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_assistant_association( +create_assistant_association( assistantId, association, associationType; aws_config::AbstractAWSConfig=current_aws_config(), +) = qconnect( + "POST", + "/assistants/$(assistantId)/associations", + Dict{String,Any}( + "association" => association, + "associationType" => associationType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/assistants/$(assistantId)/associations", - Dict{String,Any}( - "association" => association, - "associationType" => associationType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_assistant_association( assistantId, association, @@ -158,34 +154,104 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags used to organize, track, or control access for this resource. - `"title"`: The title of the content. If not set, the title is equal to the name. """ -function create_content( +create_content( knowledgeBaseId, name, uploadId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/contents", + Dict{String,Any}( + "name" => name, "uploadId" => uploadId, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_content( + knowledgeBaseId, + name, + uploadId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return qconnect( "POST", "/knowledgeBases/$(knowledgeBaseId)/contents", Dict{String,Any}( - "name" => name, "uploadId" => uploadId, "clientToken" => string(uuid4()) + mergewith( + _merge, + Dict{String,Any}( + "name" => name, "uploadId" => uploadId, "clientToken" => string(uuid4()) + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_content( + +""" + create_content_association(association, association_type, content_id, knowledge_base_id) + create_content_association(association, association_type, content_id, knowledge_base_id, params::Dict{String,<:Any}) + +Creates an association between a content resource in a knowledge base and step-by-step +guides. Step-by-step guides offer instructions to agents for resolving common customer +issues. You create a content association to integrate Amazon Q in Connect and step-by-step +guides. After you integrate Amazon Q and step-by-step guides, when Amazon Q provides a +recommendation to an agent based on the intent that it's detected, it also provides them +with the option to start the step-by-step guide that you have associated with the content. +Note the following limitations: You can create only one content association for each +content resource in a knowledge base. You can associate a step-by-step guide with +multiple content resources. For more information, see Integrate Amazon Q in Connect with +step-by-step guides in the Amazon Connect Administrator Guide. + +# Arguments +- `association`: The identifier of the associated resource. +- `association_type`: The type of association. +- `content_id`: The identifier of the content. +- `knowledge_base_id`: The identifier of the knowledge base. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. If not provided, the Amazon Web Services SDK populates this + field. For more information about idempotency, see Making retries safe with idempotent APIs. +- `"tags"`: The tags used to organize, track, or control access for this resource. +""" +create_content_association( + association, + associationType, + contentId, + knowledgeBaseId; + aws_config::AbstractAWSConfig=current_aws_config(), +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/associations", + Dict{String,Any}( + "association" => association, + "associationType" => associationType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_content_association( + association, + associationType, + contentId, knowledgeBaseId, - name, - uploadId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return qconnect( "POST", - "/knowledgeBases/$(knowledgeBaseId)/contents", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/associations", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "name" => name, "uploadId" => uploadId, "clientToken" => string(uuid4()) + "association" => association, + "associationType" => associationType, + "clientToken" => string(uuid4()), ), params, ), @@ -230,21 +296,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for EXTERNAL knowledge bases. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_knowledge_base( +create_knowledge_base( knowledgeBaseType, name; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases", + Dict{String,Any}( + "knowledgeBaseType" => knowledgeBaseType, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases", - Dict{String,Any}( - "knowledgeBaseType" => knowledgeBaseType, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_knowledge_base( knowledgeBaseType, name, @@ -302,19 +366,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys across the knowledge base. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_quick_response( +create_quick_response( content, knowledgeBaseId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/quickResponses", + Dict{String,Any}( + "content" => content, "name" => name, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/quickResponses", - Dict{String,Any}( - "content" => content, "name" => name, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_quick_response( content, knowledgeBaseId, @@ -361,17 +423,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tagFilter"`: An object that can be used to specify Tag conditions. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_session( - assistantId, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +create_session(assistantId, name; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "POST", "/assistants/$(assistantId)/sessions", Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_session( assistantId, name, @@ -404,14 +463,13 @@ Deletes an assistant. or the ARN. URLs cannot contain the ARN. """ -function delete_assistant(assistantId; aws_config::AbstractAWSConfig=current_aws_config()) - return qconnect( +delete_assistant(assistantId; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "DELETE", "/assistants/$(assistantId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_assistant( assistantId, params::AbstractDict{String}; @@ -439,16 +497,14 @@ Deletes an assistant association. or the ARN. URLs cannot contain the ARN. """ -function delete_assistant_association( +delete_assistant_association( assistantAssociationId, assistantId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "DELETE", + "/assistants/$(assistantId)/associations/$(assistantAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "DELETE", - "/assistants/$(assistantId)/associations/$(assistantAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_assistant_association( assistantAssociationId, assistantId, @@ -477,17 +533,57 @@ Deletes the content. ARN. URLs cannot contain the ARN. """ -function delete_content( +delete_content( contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_content( + contentId, + knowledgeBaseId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return qconnect( "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function delete_content( + +""" + delete_content_association(content_association_id, content_id, knowledge_base_id) + delete_content_association(content_association_id, content_id, knowledge_base_id, params::Dict{String,<:Any}) + +Deletes the content association. For more information about content associations--what +they are and when they are used--see Integrate Amazon Q in Connect with step-by-step guides +in the Amazon Connect Administrator Guide. + +# Arguments +- `content_association_id`: The identifier of the content association. Can be either the ID + or the ARN. URLs cannot contain the ARN. +- `content_id`: The identifier of the content. +- `knowledge_base_id`: The identifier of the knowledge base. + +""" +delete_content_association( + contentAssociationId, + contentId, + knowledgeBaseId; + aws_config::AbstractAWSConfig=current_aws_config(), +) = qconnect( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/associations/$(contentAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_content_association( + contentAssociationId, contentId, knowledgeBaseId, params::AbstractDict{String}; @@ -495,7 +591,7 @@ function delete_content( ) return qconnect( "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/associations/$(contentAssociationId)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -513,16 +609,14 @@ Deletes the quick response import job. - `knowledge_base_id`: The identifier of the knowledge base. """ -function delete_import_job( +delete_import_job( importJobId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/importJobs/$(importJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/importJobs/$(importJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_import_job( importJobId, knowledgeBaseId, @@ -554,16 +648,13 @@ Reference. the ARN. URLs cannot contain the ARN. """ -function delete_knowledge_base( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +delete_knowledge_base(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "DELETE", "/knowledgeBases/$(knowledgeBaseId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_knowledge_base( knowledgeBaseId, params::AbstractDict{String}; @@ -590,16 +681,14 @@ Deletes a quick response. - `quick_response_id`: The identifier of the quick response to delete. """ -function delete_quick_response( +delete_quick_response( knowledgeBaseId, quickResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_quick_response( knowledgeBaseId, quickResponseId, @@ -626,14 +715,12 @@ Retrieves information about an assistant. or the ARN. URLs cannot contain the ARN. """ -function get_assistant(assistantId; aws_config::AbstractAWSConfig=current_aws_config()) - return qconnect( - "GET", - "/assistants/$(assistantId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_assistant(assistantId; aws_config::AbstractAWSConfig=current_aws_config()) = qconnect( + "GET", + "/assistants/$(assistantId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_assistant( assistantId, params::AbstractDict{String}; @@ -661,16 +748,14 @@ Retrieves information about an assistant association. or the ARN. URLs cannot contain the ARN. """ -function get_assistant_association( +get_assistant_association( assistantAssociationId, assistantId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "GET", + "/assistants/$(assistantId)/associations/$(assistantAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "GET", - "/assistants/$(assistantId)/associations/$(assistantAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_assistant_association( assistantAssociationId, assistantId, @@ -700,17 +785,57 @@ Retrieves content, including a pre-signed URL to download the content. the ARN. """ -function get_content( +get_content( contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_content( + contentId, + knowledgeBaseId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return qconnect( "GET", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function get_content( + +""" + get_content_association(content_association_id, content_id, knowledge_base_id) + get_content_association(content_association_id, content_id, knowledge_base_id, params::Dict{String,<:Any}) + +Returns the content association. For more information about content associations--what they +are and when they are used--see Integrate Amazon Q in Connect with step-by-step guides in +the Amazon Connect Administrator Guide. + +# Arguments +- `content_association_id`: The identifier of the content association. Can be either the ID + or the ARN. URLs cannot contain the ARN. +- `content_id`: The identifier of the content. +- `knowledge_base_id`: The identifier of the knowledge base. + +""" +get_content_association( + contentAssociationId, + contentId, + knowledgeBaseId; + aws_config::AbstractAWSConfig=current_aws_config(), +) = qconnect( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/associations/$(contentAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function get_content_association( + contentAssociationId, contentId, knowledgeBaseId, params::AbstractDict{String}; @@ -718,7 +843,7 @@ function get_content( ) return qconnect( "GET", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/associations/$(contentAssociationId)", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -738,16 +863,14 @@ Retrieves summary information about the content. ARN. URLs cannot contain the ARN. """ -function get_content_summary( +get_content_summary( contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/summary"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "GET", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/summary"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_content_summary( contentId, knowledgeBaseId, @@ -774,16 +897,14 @@ Retrieves the started import job. - `knowledge_base_id`: The identifier of the knowledge base that the import job belongs to. """ -function get_import_job( +get_import_job( importJobId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/importJobs/$(importJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "GET", - "/knowledgeBases/$(knowledgeBaseId)/importJobs/$(importJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_import_job( importJobId, knowledgeBaseId, @@ -810,16 +931,13 @@ Retrieves information about the knowledge base. ARN. URLs cannot contain the ARN. """ -function get_knowledge_base( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +get_knowledge_base(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "GET", "/knowledgeBases/$(knowledgeBaseId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_knowledge_base( knowledgeBaseId, params::AbstractDict{String}; @@ -846,16 +964,14 @@ Retrieves the quick response. - `quick_response_id`: The identifier of the quick response. """ -function get_quick_response( +get_quick_response( knowledgeBaseId, quickResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "GET", - "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_quick_response( knowledgeBaseId, quickResponseId, @@ -898,16 +1014,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list. """ -function get_recommendations( +get_recommendations( assistantId, sessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "GET", + "/assistants/$(assistantId)/sessions/$(sessionId)/recommendations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "GET", - "/assistants/$(assistantId)/sessions/$(sessionId)/recommendations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recommendations( assistantId, sessionId, @@ -936,16 +1050,13 @@ Retrieves information for a specified session. contain the ARN. """ -function get_session( - assistantId, sessionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +get_session(assistantId, sessionId; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "GET", "/assistants/$(assistantId)/sessions/$(sessionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_session( assistantId, sessionId, @@ -977,16 +1088,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_assistant_associations( +list_assistant_associations( assistantId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "GET", + "/assistants/$(assistantId)/associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "GET", - "/assistants/$(assistantId)/associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_assistant_associations( assistantId, params::AbstractDict{String}; @@ -1013,11 +1122,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_assistants(; aws_config::AbstractAWSConfig=current_aws_config()) - return qconnect( - "GET", "/assistants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_assistants(; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect("GET", "/assistants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_assistants( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1026,6 +1132,47 @@ function list_assistants( ) end +""" + list_content_associations(content_id, knowledge_base_id) + list_content_associations(content_id, knowledge_base_id, params::Dict{String,<:Any}) + +Lists the content associations. For more information about content associations--what they +are and when they are used--see Integrate Amazon Q in Connect with step-by-step guides in +the Amazon Connect Administrator Guide. + +# Arguments +- `content_id`: The identifier of the content. +- `knowledge_base_id`: The identifier of the knowledge base. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of results to return per page. +- `"nextToken"`: The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of results. +""" +list_content_associations( + contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_content_associations( + contentId, + knowledgeBaseId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return qconnect( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/associations", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_contents(knowledge_base_id) list_contents(knowledge_base_id, params::Dict{String,<:Any}) @@ -1043,14 +1190,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_contents(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) - return qconnect( +list_contents(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "GET", "/knowledgeBases/$(knowledgeBaseId)/contents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_contents( knowledgeBaseId, params::AbstractDict{String}; @@ -1081,16 +1227,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_import_jobs( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +list_import_jobs(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "GET", "/knowledgeBases/$(knowledgeBaseId)/importJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_import_jobs( knowledgeBaseId, params::AbstractDict{String}; @@ -1117,11 +1260,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_knowledge_bases(; aws_config::AbstractAWSConfig=current_aws_config()) - return qconnect( - "GET", "/knowledgeBases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_knowledge_bases(; aws_config::AbstractAWSConfig=current_aws_config()) = qconnect( + "GET", "/knowledgeBases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_knowledge_bases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1150,16 +1291,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_quick_responses( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +list_quick_responses(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "GET", "/knowledgeBases/$(knowledgeBaseId)/quickResponses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_quick_responses( knowledgeBaseId, params::AbstractDict{String}; @@ -1184,16 +1322,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1224,20 +1359,18 @@ a waitTimeSeconds input for long-polling behavior and avoiding duplicate recomme contain the ARN. """ -function notify_recommendations_received( +notify_recommendations_received( assistantId, recommendationIds, sessionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = qconnect( + "POST", + "/assistants/$(assistantId)/sessions/$(sessionId)/recommendations/notify", + Dict{String,Any}("recommendationIds" => recommendationIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/assistants/$(assistantId)/sessions/$(sessionId)/recommendations/notify", - Dict{String,Any}("recommendationIds" => recommendationIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_recommendations_received( assistantId, recommendationIds, @@ -1272,25 +1405,23 @@ supports generative targets. - `target_type`: The type of the feedback target. """ -function put_feedback( +put_feedback( assistantId, contentFeedback, targetId, targetType; aws_config::AbstractAWSConfig=current_aws_config(), +) = qconnect( + "PUT", + "/assistants/$(assistantId)/feedback", + Dict{String,Any}( + "contentFeedback" => contentFeedback, + "targetId" => targetId, + "targetType" => targetType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "PUT", - "/assistants/$(assistantId)/feedback", - Dict{String,Any}( - "contentFeedback" => contentFeedback, - "targetId" => targetId, - "targetType" => targetType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_feedback( assistantId, contentFeedback, @@ -1342,17 +1473,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sessionId"`: The identifier of the Amazon Q in Connect session. Can be either the ID or the ARN. URLs cannot contain the ARN. """ -function query_assistant( +query_assistant( assistantId, queryText; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/assistants/$(assistantId)/query", + Dict{String,Any}("queryText" => queryText); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/assistants/$(assistantId)/query", - Dict{String,Any}("queryText" => queryText); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function query_assistant( assistantId, queryText, @@ -1381,16 +1510,14 @@ Removes a URI template from a knowledge base. ARN. URLs cannot contain the ARN. """ -function remove_knowledge_base_template_uri( +remove_knowledge_base_template_uri( knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/templateUri"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/templateUri"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_knowledge_base_template_uri( knowledgeBaseId, params::AbstractDict{String}; @@ -1424,17 +1551,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function search_content( +search_content( knowledgeBaseId, searchExpression; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/search", + Dict{String,Any}("searchExpression" => searchExpression); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/search", - Dict{String,Any}("searchExpression" => searchExpression); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_content( knowledgeBaseId, searchExpression, @@ -1475,17 +1600,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function search_quick_responses( +search_quick_responses( knowledgeBaseId, searchExpression; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/search/quickResponses", + Dict{String,Any}("searchExpression" => searchExpression); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/search/quickResponses", - Dict{String,Any}("searchExpression" => searchExpression); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_quick_responses( knowledgeBaseId, searchExpression, @@ -1522,17 +1645,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function search_sessions( +search_sessions( assistantId, searchExpression; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/assistants/$(assistantId)/searchSessions", + Dict{String,Any}("searchExpression" => searchExpression); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/assistants/$(assistantId)/searchSessions", - Dict{String,Any}("searchExpression" => searchExpression); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_sessions( assistantId, searchExpression, @@ -1571,17 +1692,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"presignedUrlTimeToLive"`: The expected expiration time of the generated presigned URL, specified in minutes. """ -function start_content_upload( +start_content_upload( contentType, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/upload", + Dict{String,Any}("contentType" => contentType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/upload", - Dict{String,Any}("contentType" => contentType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_content_upload( contentType, knowledgeBaseId, @@ -1625,24 +1744,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that the resource data are imported from. - `"metadata"`: The metadata fields of the imported Amazon Q in Connect resources. """ -function start_import_job( +start_import_job( importJobType, knowledgeBaseId, uploadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/importJobs", + Dict{String,Any}( + "importJobType" => importJobType, + "uploadId" => uploadId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/importJobs", - Dict{String,Any}( - "importJobType" => importJobType, - "uploadId" => uploadId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_import_job( importJobType, knowledgeBaseId, @@ -1680,15 +1797,14 @@ Adds the specified tags to the specified resource. - `tags`: The tags used to organize, track, or control access for this resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return qconnect( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1715,17 +1831,14 @@ Removes the specified tags from the specified resource. - `tag_keys`: The tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1771,16 +1884,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"uploadId"`: A pointer to the uploaded asset. This value is returned by StartContentUpload. """ -function update_content( +update_content( contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_content( contentId, knowledgeBaseId, @@ -1813,17 +1924,15 @@ https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*{Id}*/vie - `template_uri`: The template URI to update. """ -function update_knowledge_base_template_uri( +update_knowledge_base_template_uri( knowledgeBaseId, templateUri; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/templateUri", + Dict{String,Any}("templateUri" => templateUri); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/templateUri", - Dict{String,Any}("templateUri" => templateUri); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_knowledge_base_template_uri( knowledgeBaseId, templateUri, @@ -1874,16 +1983,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"shortcutKey"`: The shortcut key of the quick response. The value should be unique across the knowledge base. """ -function update_quick_response( +update_quick_response( knowledgeBaseId, quickResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = qconnect( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qconnect( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_quick_response( knowledgeBaseId, quickResponseId, @@ -1918,16 +2025,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description. - `"tagFilter"`: An object that can be used to specify Tag conditions. """ -function update_session( - assistantId, sessionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return qconnect( +update_session(assistantId, sessionId; aws_config::AbstractAWSConfig=current_aws_config()) = + qconnect( "POST", "/assistants/$(assistantId)/sessions/$(sessionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_session( assistantId, sessionId, diff --git a/src/services/qldb.jl b/src/services/qldb.jl index 74b81382a..7436ab0ce 100644 --- a/src/services/qldb.jl +++ b/src/services/qldb.jl @@ -19,16 +19,14 @@ this limit expires. be canceled. """ -function cancel_journal_kinesis_stream( +cancel_journal_kinesis_stream( name, streamId; aws_config::AbstractAWSConfig=current_aws_config() +) = qldb( + "DELETE", + "/ledgers/$(name)/journal-kinesis-streams/$(streamId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "DELETE", - "/ledgers/$(name)/journal-kinesis-streams/$(streamId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_journal_kinesis_stream( name, streamId, @@ -96,17 +94,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null. """ -function create_ledger( - Name, PermissionsMode; aws_config::AbstractAWSConfig=current_aws_config() -) - return qldb( +create_ledger(Name, PermissionsMode; aws_config::AbstractAWSConfig=current_aws_config()) = + qldb( "POST", "/ledgers", Dict{String,Any}("Name" => Name, "PermissionsMode" => PermissionsMode); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_ledger( Name, PermissionsMode, @@ -140,11 +135,9 @@ disable it by calling the UpdateLedger operation to set this parameter to false. - `name`: The name of the ledger that you want to delete. """ -function delete_ledger(name; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb( - "DELETE", "/ledgers/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_ledger(name; aws_config::AbstractAWSConfig=current_aws_config()) = qldb( + "DELETE", "/ledgers/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_ledger( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -173,16 +166,14 @@ QLDB Developer Guide. describe. """ -function describe_journal_kinesis_stream( +describe_journal_kinesis_stream( name, streamId; aws_config::AbstractAWSConfig=current_aws_config() +) = qldb( + "GET", + "/ledgers/$(name)/journal-kinesis-streams/$(streamId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "GET", - "/ledgers/$(name)/journal-kinesis-streams/$(streamId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_journal_kinesis_stream( name, streamId, @@ -215,16 +206,14 @@ doesn't exist, then throws ResourceNotFoundException. - `name`: The name of the ledger. """ -function describe_journal_s3_export( +describe_journal_s3_export( exportId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = qldb( + "GET", + "/ledgers/$(name)/journal-s3-exports/$(exportId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "GET", - "/ledgers/$(name)/journal-s3-exports/$(exportId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_journal_s3_export( exportId, name, @@ -251,11 +240,8 @@ rest settings, and when it was created. - `name`: The name of the ledger that you want to describe. """ -function describe_ledger(name; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb( - "GET", "/ledgers/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_ledger(name; aws_config::AbstractAWSConfig=current_aws_config()) = + qldb("GET", "/ledgers/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ledger( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -310,27 +296,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can use this format to directly integrate JSON exports with analytics tools such as Amazon Athena and Glue because these services can parse newline-delimited JSON automatically. """ -function export_journal_to_s3( +export_journal_to_s3( ExclusiveEndTime, InclusiveStartTime, RoleArn, S3ExportConfiguration, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = qldb( + "POST", + "/ledgers/$(name)/journal-s3-exports", + Dict{String,Any}( + "ExclusiveEndTime" => ExclusiveEndTime, + "InclusiveStartTime" => InclusiveStartTime, + "RoleArn" => RoleArn, + "S3ExportConfiguration" => S3ExportConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "POST", - "/ledgers/$(name)/journal-s3-exports", - Dict{String,Any}( - "ExclusiveEndTime" => ExclusiveEndTime, - "InclusiveStartTime" => InclusiveStartTime, - "RoleArn" => RoleArn, - "S3ExportConfiguration" => S3ExportConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_journal_to_s3( ExclusiveEndTime, InclusiveStartTime, @@ -384,15 +368,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request a proof. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo. For example: {strandId:\"BlFTjlSXze9BIh1KOszcE3\",sequenceNo:49}. """ -function get_block(BlockAddress, name; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb( - "POST", - "/ledgers/$(name)/block", - Dict{String,Any}("BlockAddress" => BlockAddress); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_block(BlockAddress, name; aws_config::AbstractAWSConfig=current_aws_config()) = qldb( + "POST", + "/ledgers/$(name)/block", + Dict{String,Any}("BlockAddress" => BlockAddress); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_block( BlockAddress, name, @@ -421,14 +403,12 @@ includes a 256-bit hash value and a block address. - `name`: The name of the ledger. """ -function get_digest(name; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb( - "POST", - "/ledgers/$(name)/digest"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_digest(name; aws_config::AbstractAWSConfig=current_aws_config()) = qldb( + "POST", + "/ledgers/$(name)/digest"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_digest( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -462,17 +442,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request a proof. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo. For example: {strandId:\"BlFTjlSXze9BIh1KOszcE3\",sequenceNo:49}. """ -function get_revision( +get_revision( BlockAddress, DocumentId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = qldb( + "POST", + "/ledgers/$(name)/revision", + Dict{String,Any}("BlockAddress" => BlockAddress, "DocumentId" => DocumentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "POST", - "/ledgers/$(name)/revision", - Dict{String,Any}("BlockAddress" => BlockAddress, "DocumentId" => DocumentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_revision( BlockAddress, DocumentId, @@ -519,16 +497,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. If you received a value for NextToken in the response from a previous ListJournalKinesisStreamsForLedger call, you should use that value as input here. """ -function list_journal_kinesis_streams_for_ledger( +list_journal_kinesis_streams_for_ledger( name; aws_config::AbstractAWSConfig=current_aws_config() +) = qldb( + "GET", + "/ledgers/$(name)/journal-kinesis-streams"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "GET", - "/ledgers/$(name)/journal-kinesis-streams"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_journal_kinesis_streams_for_ledger( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -559,11 +535,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. If you received a value for NextToken in the response from a previous ListJournalS3Exports call, then you should use that value as input here. """ -function list_journal_s3_exports(; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb( - "GET", "/journal-s3-exports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_journal_s3_exports(; aws_config::AbstractAWSConfig=current_aws_config()) = qldb( + "GET", "/journal-s3-exports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_journal_s3_exports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -598,16 +572,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. If you received a value for NextToken in the response from a previous ListJournalS3ExportsForLedger call, then you should use that value as input here. """ -function list_journal_s3_exports_for_ledger( +list_journal_s3_exports_for_ledger( name; aws_config::AbstractAWSConfig=current_aws_config() +) = qldb( + "GET", + "/ledgers/$(name)/journal-s3-exports"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "GET", - "/ledgers/$(name)/journal-s3-exports"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_journal_s3_exports_for_ledger( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -636,9 +608,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. If you received a value for NextToken in the response from a previous ListLedgers call, then you should use that value as input here. """ -function list_ledgers(; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb("GET", "/ledgers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_ledgers(; aws_config::AbstractAWSConfig=current_aws_config()) = + qldb("GET", "/ledgers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_ledgers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -658,16 +629,13 @@ Returns all tags for a specified Amazon QLDB resource. arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return qldb( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + qldb( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -720,27 +688,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The key-value pairs to add as tags to the stream that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null. """ -function stream_journal_to_kinesis( +stream_journal_to_kinesis( InclusiveStartTime, KinesisConfiguration, RoleArn, StreamName, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = qldb( + "POST", + "/ledgers/$(name)/journal-kinesis-streams", + Dict{String,Any}( + "InclusiveStartTime" => InclusiveStartTime, + "KinesisConfiguration" => KinesisConfiguration, + "RoleArn" => RoleArn, + "StreamName" => StreamName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "POST", - "/ledgers/$(name)/journal-kinesis-streams", - Dict{String,Any}( - "InclusiveStartTime" => InclusiveStartTime, - "KinesisConfiguration" => KinesisConfiguration, - "RoleArn" => RoleArn, - "StreamName" => StreamName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stream_journal_to_kinesis( InclusiveStartTime, KinesisConfiguration, @@ -786,15 +752,13 @@ an error. example: arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = qldb( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( Tags, resourceArn, @@ -823,17 +787,14 @@ tag keys to remove. - `tag_keys`: The list of tag keys to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return qldb( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + qldb( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -882,11 +843,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide. """ -function update_ledger(name; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb( - "PATCH", "/ledgers/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_ledger(name; aws_config::AbstractAWSConfig=current_aws_config()) = qldb( + "PATCH", "/ledgers/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_ledger( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -926,17 +885,15 @@ QLDB Developer Guide. - `name`: The name of the ledger. """ -function update_ledger_permissions_mode( +update_ledger_permissions_mode( PermissionsMode, name; aws_config::AbstractAWSConfig=current_aws_config() +) = qldb( + "PATCH", + "/ledgers/$(name)/permissions-mode", + Dict{String,Any}("PermissionsMode" => PermissionsMode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return qldb( - "PATCH", - "/ledgers/$(name)/permissions-mode", - Dict{String,Any}("PermissionsMode" => PermissionsMode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_ledger_permissions_mode( PermissionsMode, name, diff --git a/src/services/qldb_session.jl b/src/services/qldb_session.jl index b81abf671..b1204a519 100644 --- a/src/services/qldb_session.jl +++ b/src/services/qldb_session.jl @@ -33,11 +33,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response. - `"StartTransaction"`: Command to start a new transaction. """ -function send_command(; aws_config::AbstractAWSConfig=current_aws_config()) - return qldb_session( - "SendCommand"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +send_command(; aws_config::AbstractAWSConfig=current_aws_config()) = + qldb_session("SendCommand"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function send_command( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/quicksight.jl b/src/services/quicksight.jl index dbca7665d..6842f71ab 100644 --- a/src/services/quicksight.jl +++ b/src/services/quicksight.jl @@ -4,6 +4,84 @@ using AWS.AWSServices: quicksight using AWS.Compat using AWS.UUIDs +""" + batch_create_topic_reviewed_answer(answers, aws_account_id, topic_id) + batch_create_topic_reviewed_answer(answers, aws_account_id, topic_id, params::Dict{String,<:Any}) + +Creates new reviewed answers for a Q Topic. + +# Arguments +- `answers`: The definition of the Answers to be created. +- `aws_account_id`: The ID of the Amazon Web Services account that you want to create a + reviewed answer in. +- `topic_id`: The ID for the topic reviewed answer that you want to create. This ID is + unique per Amazon Web Services Region for each Amazon Web Services account. + +""" +batch_create_topic_reviewed_answer( + Answers, AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/batch-create-reviewed-answers", + Dict{String,Any}("Answers" => Answers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function batch_create_topic_reviewed_answer( + Answers, + AwsAccountId, + TopicId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return quicksight( + "POST", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/batch-create-reviewed-answers", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Answers" => Answers), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + batch_delete_topic_reviewed_answer(aws_account_id, topic_id) + batch_delete_topic_reviewed_answer(aws_account_id, topic_id, params::Dict{String,<:Any}) + +Deletes reviewed answers for Q Topic. + +# Arguments +- `aws_account_id`: The ID of the Amazon Web Services account that you want to delete a + reviewed answers in. +- `topic_id`: The ID for the topic reviewed answer that you want to delete. This ID is + unique per Amazon Web Services Region for each Amazon Web Services account. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AnswerIds"`: The Answer IDs of the Answers to be deleted. +""" +batch_delete_topic_reviewed_answer( + AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/batch-delete-reviewed-answers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function batch_delete_topic_reviewed_answer( + AwsAccountId, + TopicId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return quicksight( + "POST", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/batch-delete-reviewed-answers", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ cancel_ingestion(aws_account_id, data_set_id, ingestion_id) cancel_ingestion(aws_account_id, data_set_id, ingestion_id, params::Dict{String,<:Any}) @@ -16,16 +94,14 @@ Cancels an ongoing ingestion of data into SPICE. - `ingestion_id`: An ID for the ingestion. """ -function cancel_ingestion( +cancel_ingestion( AwsAccountId, DataSetId, IngestionId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/ingestions/$(IngestionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/ingestions/$(IngestionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_ingestion( AwsAccountId, DataSetId, @@ -77,17 +153,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of the tags that you want to attach to this resource. - `"namespace"`: The Amazon QuickSight namespace that you want to add customizations to. """ -function create_account_customization( +create_account_customization( AccountCustomization, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/customizations", + Dict{String,Any}("AccountCustomization" => AccountCustomization); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/customizations", - Dict{String,Any}("AccountCustomization" => AccountCustomization); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_account_customization( AccountCustomization, AwsAccountId, @@ -212,25 +286,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys QuickSight account. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account. """ -function create_account_subscription( +create_account_subscription( AccountName, AuthenticationMethod, AwsAccountId, NotificationEmail; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/account/$(AwsAccountId)", + Dict{String,Any}( + "AccountName" => AccountName, + "AuthenticationMethod" => AuthenticationMethod, + "NotificationEmail" => NotificationEmail, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/account/$(AwsAccountId)", - Dict{String,Any}( - "AccountName" => AccountName, - "AuthenticationMethod" => AuthenticationMethod, - "NotificationEmail" => NotificationEmail, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_account_subscription( AccountName, AuthenticationMethod, @@ -298,17 +370,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ValidationStrategy"`: The option to relax the validation needed to create an analysis with definition objects. This skips the validation step for specific errors. """ -function create_analysis( +create_analysis( AnalysisId, AwsAccountId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_analysis( AnalysisId, AwsAccountId, @@ -389,17 +459,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionDescription"`: A description for the first version of the dashboard being created. """ -function create_dashboard( +create_dashboard( AwsAccountId, DashboardId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dashboard( AwsAccountId, DashboardId, @@ -454,27 +522,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. """ -function create_data_set( +create_data_set( AwsAccountId, DataSetId, ImportMode, Name, PhysicalTableMap; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/data-sets", + Dict{String,Any}( + "DataSetId" => DataSetId, + "ImportMode" => ImportMode, + "Name" => Name, + "PhysicalTableMap" => PhysicalTableMap, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/data-sets", - Dict{String,Any}( - "DataSetId" => DataSetId, - "ImportMode" => ImportMode, - "Name" => Name, - "PhysicalTableMap" => PhysicalTableMap, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_set( AwsAccountId, DataSetId, @@ -535,21 +601,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcConnectionProperties"`: Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source. """ -function create_data_source( +create_data_source( AwsAccountId, DataSourceId, Name, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/data-sources", + Dict{String,Any}("DataSourceId" => DataSourceId, "Name" => Name, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/data-sources", - Dict{String,Any}("DataSourceId" => DataSourceId, "Name" => Name, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_source( AwsAccountId, DataSourceId, @@ -598,16 +662,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The default value for this parameter is ACCOUNT. - `"Tags"`: Tags for the folder. """ -function create_folder( - AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +create_folder(AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "POST", "/accounts/$(AwsAccountId)/folders/$(FolderId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_folder( AwsAccountId, FolderId, @@ -636,20 +697,18 @@ Adds an asset, such as a dashboard, analysis, or dataset into a folder. - `member_type`: The member type of the asset that you want to add to a folder. """ -function create_folder_membership( +create_folder_membership( AwsAccountId, FolderId, MemberId, MemberType; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/folders/$(FolderId)/members/$(MemberType)/$(MemberId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/folders/$(FolderId)/members/$(MemberType)/$(MemberId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_folder_membership( AwsAccountId, FolderId, @@ -688,17 +747,15 @@ up-name> . The response is a group object. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description for the group that you want to create. """ -function create_group( +create_group( AwsAccountId, GroupName, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_group( AwsAccountId, GroupName, @@ -732,20 +789,18 @@ Adds an Amazon QuickSight user to an Amazon QuickSight group. - `namespace`: The namespace that you want the user to be a part of. """ -function create_group_membership( +create_group_membership( AwsAccountId, GroupName, MemberName, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)/members/$(MemberName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)/members/$(MemberName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_group_membership( AwsAccountId, GroupName, @@ -790,23 +845,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyArn"`: The ARN for the IAM policy to apply to the Amazon QuickSight users and groups specified in this assignment. """ -function create_iampolicy_assignment( +create_iampolicy_assignment( AssignmentName, AssignmentStatus, AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/iam-policy-assignments/", + Dict{String,Any}( + "AssignmentName" => AssignmentName, "AssignmentStatus" => AssignmentStatus + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/iam-policy-assignments/", - Dict{String,Any}( - "AssignmentName" => AssignmentName, "AssignmentStatus" => AssignmentStatus - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_iampolicy_assignment( AssignmentName, AssignmentStatus, @@ -855,16 +908,14 @@ but not on the ingestion resource. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"IngestionType"`: The type of ingestion that you want to create. """ -function create_ingestion( +create_ingestion( AwsAccountId, DataSetId, IngestionId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/ingestions/$(IngestionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/ingestions/$(IngestionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ingestion( AwsAccountId, DataSetId, @@ -905,20 +956,18 @@ your limit, create a ticket with Amazon Web Services Support. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags that you want to associate with the namespace that you're creating. """ -function create_namespace( +create_namespace( AwsAccountId, IdentityStore, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)", + Dict{String,Any}("IdentityStore" => IdentityStore, "Namespace" => Namespace); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)", - Dict{String,Any}("IdentityStore" => IdentityStore, "Namespace" => Namespace); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_namespace( AwsAccountId, IdentityStore, @@ -956,17 +1005,15 @@ single dataset. - `schedule`: The refresh schedule. """ -function create_refresh_schedule( +create_refresh_schedule( AwsAccountId, DataSetId, Schedule; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules", + Dict{String,Any}("Schedule" => Schedule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules", - Dict{String,Any}("Schedule" => Schedule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_refresh_schedule( AwsAccountId, DataSetId, @@ -1000,20 +1047,18 @@ Use CreateRoleMembership to add an existing Amazon QuickSight group to an existi - `role`: The role that you want to add a group to. """ -function create_role_membership( +create_role_membership( AwsAccountId, MemberName, Namespace, Role; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/members/$(MemberName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/members/$(MemberName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_role_membership( AwsAccountId, MemberName, @@ -1076,16 +1121,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys called, a new version is created. Each version of the template maintains a description of the version in the VersionDescription field. """ -function create_template( +create_template( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_template( AwsAccountId, TemplateId, @@ -1117,21 +1160,19 @@ Creates a template alias for a template. - `template_version_number`: The version number of the template. """ -function create_template_alias( +create_template_alias( AliasName, AwsAccountId, TemplateId, TemplateVersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases/$(AliasName)", + Dict{String,Any}("TemplateVersionNumber" => TemplateVersionNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases/$(AliasName)", - Dict{String,Any}("TemplateVersionNumber" => TemplateVersionNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_template_alias( AliasName, AwsAccountId, @@ -1183,24 +1224,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys creating. Every time UpdateTheme is called, a new version is created. Each version of the theme has a description of the version in the VersionDescription field. """ -function create_theme( +create_theme( AwsAccountId, BaseThemeId, Configuration, Name, ThemeId; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)", + Dict{String,Any}( + "BaseThemeId" => BaseThemeId, "Configuration" => Configuration, "Name" => Name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)", - Dict{String,Any}( - "BaseThemeId" => BaseThemeId, "Configuration" => Configuration, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_theme( AwsAccountId, BaseThemeId, @@ -1245,21 +1284,19 @@ Creates a theme alias for a theme. - `theme_version_number`: The version number of the theme. """ -function create_theme_alias( +create_theme_alias( AliasName, AwsAccountId, ThemeId, ThemeVersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases/$(AliasName)", + Dict{String,Any}("ThemeVersionNumber" => ThemeVersionNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases/$(AliasName)", - Dict{String,Any}("ThemeVersionNumber" => ThemeVersionNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_theme_alias( AliasName, AwsAccountId, @@ -1299,17 +1336,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. """ -function create_topic( +create_topic( AwsAccountId, Topic, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/topics", + Dict{String,Any}("Topic" => Topic, "TopicId" => TopicId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/topics", - Dict{String,Any}("Topic" => Topic, "TopicId" => TopicId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_topic( AwsAccountId, Topic, @@ -1348,21 +1383,19 @@ Creates a topic refresh schedule. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DatasetName"`: The name of the dataset. """ -function create_topic_refresh_schedule( +create_topic_refresh_schedule( AwsAccountId, DatasetArn, RefreshSchedule, TopicId; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules", + Dict{String,Any}("DatasetArn" => DatasetArn, "RefreshSchedule" => RefreshSchedule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules", - Dict{String,Any}("DatasetArn" => DatasetArn, "RefreshSchedule" => RefreshSchedule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_topic_refresh_schedule( AwsAccountId, DatasetArn, @@ -1410,7 +1443,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. """ -function create_vpcconnection( +create_vpcconnection( AwsAccountId, Name, RoleArn, @@ -1418,21 +1451,19 @@ function create_vpcconnection( SubnetIds, VPCConnectionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/vpc-connections", + Dict{String,Any}( + "Name" => Name, + "RoleArn" => RoleArn, + "SecurityGroupIds" => SecurityGroupIds, + "SubnetIds" => SubnetIds, + "VPCConnectionId" => VPCConnectionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/vpc-connections", - Dict{String,Any}( - "Name" => Name, - "RoleArn" => RoleArn, - "SecurityGroupIds" => SecurityGroupIds, - "SubnetIds" => SubnetIds, - "VPCConnectionId" => VPCConnectionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpcconnection( AwsAccountId, Name, @@ -1480,16 +1511,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"namespace"`: The Amazon QuickSight namespace that you're deleting the customizations from. """ -function delete_account_customization( +delete_account_customization( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/customizations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/customizations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_account_customization( AwsAccountId, params::AbstractDict{String}; @@ -1519,16 +1548,14 @@ to False, then make another call to the DeleteAccountSubscription API. delete. """ -function delete_account_subscription( +delete_account_subscription( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/account/$(AwsAccountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/account/$(AwsAccountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_account_subscription( AwsAccountId, params::AbstractDict{String}; @@ -1573,16 +1600,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys QuickSight waits before it deletes the analysis. You can't use this parameter with the ForceDeleteWithoutRecovery option in the same API call. The default value is 30. """ -function delete_analysis( +delete_analysis( AnalysisId, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_analysis( AnalysisId, AwsAccountId, @@ -1614,16 +1639,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version-number"`: The version number of the dashboard. If the version number property is provided, only the specified version of the dashboard is deleted. """ -function delete_dashboard( +delete_dashboard( AwsAccountId, DashboardId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dashboard( AwsAccountId, DashboardId, @@ -1651,16 +1674,14 @@ Deletes a dataset. Amazon Web Services Region for each Amazon Web Services account. """ -function delete_data_set( +delete_data_set( AwsAccountId, DataSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_set( AwsAccountId, DataSetId, @@ -1687,16 +1708,14 @@ Deletes the dataset refresh properties of the dataset. - `data_set_id`: The ID of the dataset. """ -function delete_data_set_refresh_properties( +delete_data_set_refresh_properties( AwsAccountId, DataSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-properties"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-properties"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_set_refresh_properties( AwsAccountId, DataSetId, @@ -1725,16 +1744,14 @@ the deleted data source. Region for each Amazon Web Services account. """ -function delete_data_source( +delete_data_source( AwsAccountId, DataSourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_source( AwsAccountId, DataSourceId, @@ -1761,16 +1778,13 @@ Deletes an empty folder. - `folder_id`: The ID of the folder. """ -function delete_folder( - AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +delete_folder(AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "DELETE", "/accounts/$(AwsAccountId)/folders/$(FolderId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_folder( AwsAccountId, FolderId, @@ -1799,20 +1813,18 @@ Removes an asset, such as a dashboard, analysis, or dataset, from a folder. - `member_type`: The member type of the asset that you want to delete from a folder. """ -function delete_folder_membership( +delete_folder_membership( AwsAccountId, FolderId, MemberId, MemberType; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/folders/$(FolderId)/members/$(MemberType)/$(MemberId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/folders/$(FolderId)/members/$(MemberType)/$(MemberId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_folder_membership( AwsAccountId, FolderId, @@ -1844,16 +1856,14 @@ Removes a user group from Amazon QuickSight. - `namespace`: The namespace of the group that you want to delete. """ -function delete_group( +delete_group( AwsAccountId, GroupName, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_group( AwsAccountId, GroupName, @@ -1885,20 +1895,18 @@ Removes a user from a group so that the user is no longer a member of the group. - `namespace`: The namespace of the group that you want to remove a user from. """ -function delete_group_membership( +delete_group_membership( AwsAccountId, GroupName, MemberName, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)/members/$(MemberName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)/members/$(MemberName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_group_membership( AwsAccountId, GroupName, @@ -1929,19 +1937,17 @@ Deletes an existing IAM policy assignment. - `namespace`: The namespace that contains the assignment. """ -function delete_iampolicy_assignment( +delete_iampolicy_assignment( AssignmentName, AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/namespace/$(Namespace)/iam-policy-assignments/$(AssignmentName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/namespace/$(Namespace)/iam-policy-assignments/$(AssignmentName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_iampolicy_assignment( AssignmentName, AwsAccountId, @@ -1973,16 +1979,14 @@ Amazon QuickSight accounts that use IAM Identity Center. associated access scopes and authorized targets from. """ -function delete_identity_propagation_config( +delete_identity_propagation_config( AwsAccountId, Service; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/identity-propagation-config/$(Service)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/identity-propagation-config/$(Service)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_identity_propagation_config( AwsAccountId, Service, @@ -2013,16 +2017,14 @@ relevant asset. - `namespace`: The namespace that you want to delete. """ -function delete_namespace( +delete_namespace( AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_namespace( AwsAccountId, Namespace, @@ -2050,16 +2052,14 @@ Deletes a refresh schedule from a dataset. - `schedule_id`: The ID of the refresh schedule. """ -function delete_refresh_schedule( +delete_refresh_schedule( AwsAccountId, DataSetId, ScheduleId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules/$(ScheduleId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules/$(ScheduleId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_refresh_schedule( AwsAccountId, DataSetId, @@ -2090,16 +2090,14 @@ Removes custom permissions from the role. - `role`: The role that you want to remove permissions from. """ -function delete_role_custom_permission( +delete_role_custom_permission( AwsAccountId, Namespace, Role; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/custom-permission"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/custom-permission"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_role_custom_permission( AwsAccountId, Namespace, @@ -2131,20 +2129,18 @@ Removes a group from a role. - `role`: The role that you want to remove permissions from. """ -function delete_role_membership( +delete_role_membership( AwsAccountId, MemberName, Namespace, Role; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/members/$(MemberName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/members/$(MemberName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_role_membership( AwsAccountId, MemberName, @@ -2178,16 +2174,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version-number"`: Specifies the version of the template that you want to delete. If you don't provide a version number, DeleteTemplate deletes all versions of the template. """ -function delete_template( +delete_template( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_template( AwsAccountId, TemplateId, @@ -2219,16 +2213,14 @@ alias, you delete the version of the template that the alias points to. - `template_id`: The ID for the template that the specified alias is for. """ -function delete_template_alias( +delete_template_alias( AliasName, AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases/$(AliasName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases/$(AliasName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_template_alias( AliasName, AwsAccountId, @@ -2262,16 +2254,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys don't provide a version number, you're using this call to DeleteTheme to delete all versions of the theme. """ -function delete_theme( - AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +delete_theme(AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "DELETE", "/accounts/$(AwsAccountId)/themes/$(ThemeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_theme( AwsAccountId, ThemeId, @@ -2301,16 +2290,14 @@ specific alias, you delete the version of the theme that the alias points to. - `theme_id`: The ID for the theme that the specified alias is for. """ -function delete_theme_alias( +delete_theme_alias( AliasName, AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases/$(AliasName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases/$(AliasName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_theme_alias( AliasName, AwsAccountId, @@ -2340,16 +2327,13 @@ Deletes a topic. Services Region for each Amazon Web Services account. """ -function delete_topic( - AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +delete_topic(AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "DELETE", "/accounts/$(AwsAccountId)/topics/$(TopicId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_topic( AwsAccountId, TopicId, @@ -2378,16 +2362,14 @@ Deletes a topic refresh schedule. Services Region for each Amazon Web Services account. """ -function delete_topic_refresh_schedule( +delete_topic_refresh_schedule( AwsAccountId, DatasetId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules/$(DatasetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules/$(DatasetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_topic_refresh_schedule( AwsAccountId, DatasetId, @@ -2419,16 +2401,14 @@ role that's making the call. The IAM user isn't deleted as a result of this call - `user_name`: The name of the user that you want to delete. """ -function delete_user( +delete_user( AwsAccountId, Namespace, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user( AwsAccountId, Namespace, @@ -2459,16 +2439,14 @@ Deletes a user identified by its principal ID. - `principal_id`: The principal ID of the user. """ -function delete_user_by_principal_id( +delete_user_by_principal_id( AwsAccountId, Namespace, PrincipalId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/user-principals/$(PrincipalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/user-principals/$(PrincipalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_by_principal_id( AwsAccountId, Namespace, @@ -2498,16 +2476,14 @@ Deletes a VPC connection. unique identifier for each Amazon Web Services Region in an Amazon Web Services account. """ -function delete_vpcconnection( +delete_vpcconnection( AwsAccountId, VPCConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "DELETE", + "/accounts/$(AwsAccountId)/vpc-connections/$(VPCConnectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "DELETE", - "/accounts/$(AwsAccountId)/vpc-connections/$(VPCConnectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpcconnection( AwsAccountId, VPCConnectionId, @@ -2572,16 +2548,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the console. Omit this flag, or set it to no-resolved, to reveal customizations that are configured at different levels. """ -function describe_account_customization( +describe_account_customization( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/customizations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/customizations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_account_customization( AwsAccountId, params::AbstractDict{String}; @@ -2608,16 +2582,14 @@ created in this Amazon Web Services account. that you want to list. """ -function describe_account_settings( +describe_account_settings( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_account_settings( AwsAccountId, params::AbstractDict{String}; @@ -2646,16 +2618,14 @@ notification email address. QuickSight account. """ -function describe_account_subscription( +describe_account_subscription( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/account/$(AwsAccountId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/account/$(AwsAccountId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_account_subscription( AwsAccountId, params::AbstractDict{String}; @@ -2683,16 +2653,14 @@ Provides a summary of the metadata for an analysis. You must be using the Amazon Web Services account that the analysis is in. """ -function describe_analysis( +describe_analysis( AnalysisId, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_analysis( AnalysisId, AwsAccountId, @@ -2723,16 +2691,14 @@ status of a recently created or updated Analysis, use the DescribeAnalysis ins You must be using the Amazon Web Services account that the analysis is in. """ -function describe_analysis_definition( +describe_analysis_definition( AnalysisId, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)/definition"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)/definition"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_analysis_definition( AnalysisId, AwsAccountId, @@ -2762,16 +2728,14 @@ Provides the read and write permissions for an analysis. the analysis is in. """ -function describe_analysis_permissions( +describe_analysis_permissions( AnalysisId, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_analysis_permissions( AnalysisId, AwsAccountId, @@ -2804,16 +2768,14 @@ available for 14 days after the job starts. in. """ -function describe_asset_bundle_export_job( +describe_asset_bundle_export_job( AssetBundleExportJobId, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/asset-bundle-export-jobs/$(AssetBundleExportJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/asset-bundle-export-jobs/$(AssetBundleExportJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_asset_bundle_export_job( AssetBundleExportJobId, AwsAccountId, @@ -2843,16 +2805,14 @@ it has succeeded or failed. Job descriptions are available for 14 days after job in. """ -function describe_asset_bundle_import_job( +describe_asset_bundle_import_job( AssetBundleImportJobId, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/asset-bundle-import-jobs/$(AssetBundleImportJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/asset-bundle-import-jobs/$(AssetBundleImportJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_asset_bundle_import_job( AssetBundleImportJobId, AwsAccountId, @@ -2885,16 +2845,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version-number"`: The version number for the dashboard. If a version number isn't passed, the latest published dashboard version is described. """ -function describe_dashboard( +describe_dashboard( AwsAccountId, DashboardId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dashboard( AwsAccountId, DashboardId, @@ -2929,16 +2887,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version-number"`: The version number for the dashboard. If a version number isn't passed, the latest published dashboard version is described. """ -function describe_dashboard_definition( +describe_dashboard_definition( AwsAccountId, DashboardId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/definition"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/definition"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dashboard_definition( AwsAccountId, DashboardId, @@ -2966,16 +2922,14 @@ Describes read and write permissions for a dashboard. - `dashboard_id`: The ID for the dashboard, also added to the IAM policy. """ -function describe_dashboard_permissions( +describe_dashboard_permissions( AwsAccountId, DashboardId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dashboard_permissions( AwsAccountId, DashboardId, @@ -3006,19 +2960,17 @@ status of the job. For information on available status codes, see JobStatus. new job with a StartDashboardSnapshotJob API call. """ -function describe_dashboard_snapshot_job( +describe_dashboard_snapshot_job( AwsAccountId, DashboardId, SnapshotJobId; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/snapshot-jobs/$(SnapshotJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/snapshot-jobs/$(SnapshotJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dashboard_snapshot_job( AwsAccountId, DashboardId, @@ -3053,19 +3005,17 @@ reached a terminal state.. new job with a StartDashboardSnapshotJob API call. """ -function describe_dashboard_snapshot_job_result( +describe_dashboard_snapshot_job_result( AwsAccountId, DashboardId, SnapshotJobId; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/snapshot-jobs/$(SnapshotJobId)/result"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/snapshot-jobs/$(SnapshotJobId)/result"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dashboard_snapshot_job_result( AwsAccountId, DashboardId, @@ -3095,16 +3045,14 @@ a source. Amazon Web Services Region for each Amazon Web Services account. """ -function describe_data_set( +describe_data_set( AwsAccountId, DataSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_data_set( AwsAccountId, DataSetId, @@ -3133,16 +3081,14 @@ arn:aws:quicksight:region:aws-account-id:dataset/data-set-id. Amazon Web Services Region for each Amazon Web Services account. """ -function describe_data_set_permissions( +describe_data_set_permissions( AwsAccountId, DataSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_data_set_permissions( AwsAccountId, DataSetId, @@ -3169,16 +3115,14 @@ Describes the refresh properties of a dataset. - `data_set_id`: The ID of the dataset. """ -function describe_data_set_refresh_properties( +describe_data_set_refresh_properties( AwsAccountId, DataSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-properties"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-properties"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_data_set_refresh_properties( AwsAccountId, DataSetId, @@ -3206,16 +3150,14 @@ Describes a data source. Region for each Amazon Web Services account. """ -function describe_data_source( +describe_data_source( AwsAccountId, DataSourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_data_source( AwsAccountId, DataSourceId, @@ -3243,16 +3185,14 @@ Describes the resource permissions for a data source. Region for each Amazon Web Services account. """ -function describe_data_source_permissions( +describe_data_source_permissions( AwsAccountId, DataSourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_data_source_permissions( AwsAccountId, DataSourceId, @@ -3279,16 +3219,14 @@ Describes a folder. - `folder_id`: The ID of the folder. """ -function describe_folder( +describe_folder( AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/folders/$(FolderId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/folders/$(FolderId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_folder( AwsAccountId, FolderId, @@ -3320,16 +3258,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"namespace"`: The namespace of the folder whose permissions you want described. - `"next-token"`: A pagination token for the next set of results. """ -function describe_folder_permissions( +describe_folder_permissions( AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/folders/$(FolderId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/folders/$(FolderId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_folder_permissions( AwsAccountId, FolderId, @@ -3362,16 +3298,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"namespace"`: The namespace of the folder whose permissions you want described. - `"next-token"`: A pagination token for the next set of results. """ -function describe_folder_resolved_permissions( +describe_folder_resolved_permissions( AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/folders/$(FolderId)/resolved-permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/folders/$(FolderId)/resolved-permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_folder_resolved_permissions( AwsAccountId, FolderId, @@ -3401,16 +3335,14 @@ Returns an Amazon QuickSight group's description and Amazon Resource Name (ARN). - `namespace`: The namespace of the group that you want described. """ -function describe_group( +describe_group( AwsAccountId, GroupName, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_group( AwsAccountId, GroupName, @@ -3444,20 +3376,18 @@ GroupMember object is returned. - `namespace`: The namespace that includes the group you are searching within. """ -function describe_group_membership( +describe_group_membership( AwsAccountId, GroupName, MemberName, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)/members/$(MemberName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)/members/$(MemberName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_group_membership( AwsAccountId, GroupName, @@ -3488,19 +3418,17 @@ Describes an existing IAM policy assignment, as specified by the assignment name - `namespace`: The namespace that contains the assignment. """ -function describe_iampolicy_assignment( +describe_iampolicy_assignment( AssignmentName, AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/iam-policy-assignments/$(AssignmentName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/iam-policy-assignments/$(AssignmentName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_iampolicy_assignment( AssignmentName, AwsAccountId, @@ -3529,16 +3457,14 @@ Describes a SPICE ingestion. - `ingestion_id`: An ID for the ingestion. """ -function describe_ingestion( +describe_ingestion( AwsAccountId, DataSetId, IngestionId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/ingestions/$(IngestionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/ingestions/$(IngestionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_ingestion( AwsAccountId, DataSetId, @@ -3565,16 +3491,13 @@ Provides a summary and status of IP rules. - `aws_account_id`: The ID of the Amazon Web Services account that contains the IP rules. """ -function describe_ip_restriction( - AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +describe_ip_restriction(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/ip-restriction"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_ip_restriction( AwsAccountId, params::AbstractDict{String}; @@ -3603,16 +3526,14 @@ Describes all customer managed key registrations in a Amazon QuickSight account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"default-key-only"`: Determines whether the request returns the default key only. """ -function describe_key_registration( +describe_key_registration( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/key-registration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/key-registration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_key_registration( AwsAccountId, params::AbstractDict{String}; @@ -3639,16 +3560,14 @@ Describes the current namespace. - `namespace`: The namespace that you want to describe. """ -function describe_namespace( +describe_namespace( AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_namespace( AwsAccountId, Namespace, @@ -3676,16 +3595,14 @@ Provides a summary of a refresh schedule. - `schedule_id`: The ID of the refresh schedule. """ -function describe_refresh_schedule( +describe_refresh_schedule( AwsAccountId, DataSetId, ScheduleId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules/$(ScheduleId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules/$(ScheduleId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_refresh_schedule( AwsAccountId, DataSetId, @@ -3716,16 +3633,14 @@ Describes all custom permissions that are mapped to a role. - `role`: The name of the role whose permissions you want described. """ -function describe_role_custom_permission( +describe_role_custom_permission( AwsAccountId, Namespace, Role; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/custom-permission"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/custom-permission"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_role_custom_permission( AwsAccountId, Namespace, @@ -3762,16 +3677,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version-number"`: (Optional) The number for the version to describe. If a VersionNumber parameter value isn't provided, the latest version of the template is described. """ -function describe_template( +describe_template( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_template( AwsAccountId, TemplateId, @@ -3803,16 +3716,14 @@ Describes the template alias for a template. - `template_id`: The ID for the template. """ -function describe_template_alias( +describe_template_alias( AliasName, AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases/$(AliasName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases/$(AliasName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_template_alias( AliasName, AwsAccountId, @@ -3850,16 +3761,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The keyword PUBLISHED doesn't apply to templates. - `"version-number"`: The version number of the template. """ -function describe_template_definition( +describe_template_definition( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/definition"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/definition"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_template_definition( AwsAccountId, TemplateId, @@ -3887,16 +3796,14 @@ Describes read and write permissions on a template. - `template_id`: The ID for the template. """ -function describe_template_permissions( +describe_template_permissions( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_template_permissions( AwsAccountId, TemplateId, @@ -3932,16 +3839,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"version-number"`: The version number for the version to describe. If a VersionNumber parameter value isn't provided, the latest version of the theme is described. """ -function describe_theme( - AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +describe_theme(AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/themes/$(ThemeId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_theme( AwsAccountId, ThemeId, @@ -3970,16 +3874,14 @@ Describes the alias for a theme. - `theme_id`: The ID for the theme. """ -function describe_theme_alias( +describe_theme_alias( AliasName, AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases/$(AliasName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases/$(AliasName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_theme_alias( AliasName, AwsAccountId, @@ -4008,16 +3910,14 @@ Describes the read and write permissions for a theme. - `theme_id`: The ID for the theme that you want to describe permissions for. """ -function describe_theme_permissions( +describe_theme_permissions( AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_theme_permissions( AwsAccountId, ThemeId, @@ -4045,16 +3945,13 @@ Describes a topic. Web Services Region for each Amazon Web Services account. """ -function describe_topic( - AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +describe_topic(AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/topics/$(TopicId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_topic( AwsAccountId, TopicId, @@ -4083,16 +3980,14 @@ Describes the permissions of a topic. Web Services Region for each Amazon Web Services account. """ -function describe_topic_permissions( +describe_topic_permissions( AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_topic_permissions( AwsAccountId, TopicId, @@ -4123,16 +4018,14 @@ Describes the status of a topic refresh. Web Services Region for each Amazon Web Services account. """ -function describe_topic_refresh( +describe_topic_refresh( AwsAccountId, RefreshId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/refresh/$(RefreshId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/refresh/$(RefreshId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_topic_refresh( AwsAccountId, RefreshId, @@ -4163,16 +4056,14 @@ Deletes a topic refresh schedule. account. """ -function describe_topic_refresh_schedule( +describe_topic_refresh_schedule( AwsAccountId, DatasetId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules/$(DatasetId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules/$(DatasetId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_topic_refresh_schedule( AwsAccountId, DatasetId, @@ -4203,16 +4094,14 @@ Returns information about a user, given the user name. - `user_name`: The name of the user that you want to describe. """ -function describe_user( +describe_user( AwsAccountId, Namespace, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_user( AwsAccountId, Namespace, @@ -4242,16 +4131,14 @@ Describes a VPC connection. unique identifier for each Amazon Web Services Region in an Amazon Web Services account. """ -function describe_vpcconnection( +describe_vpcconnection( AwsAccountId, VPCConnectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/vpc-connections/$(VPCConnectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/vpc-connections/$(VPCConnectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_vpcconnection( AwsAccountId, VPCConnectionId, @@ -4316,25 +4203,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource tagging feature. For more information, see Using Row-Level Security (RLS) with Tagsin the Amazon QuickSight User Guide. """ -function generate_embed_url_for_anonymous_user( +generate_embed_url_for_anonymous_user( AuthorizedResourceArns, AwsAccountId, ExperienceConfiguration, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/embed-url/anonymous-user", + Dict{String,Any}( + "AuthorizedResourceArns" => AuthorizedResourceArns, + "ExperienceConfiguration" => ExperienceConfiguration, + "Namespace" => Namespace, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/embed-url/anonymous-user", - Dict{String,Any}( - "AuthorizedResourceArns" => AuthorizedResourceArns, - "ExperienceConfiguration" => ExperienceConfiguration, - "Namespace" => Namespace, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_embed_url_for_anonymous_user( AuthorizedResourceArns, AwsAccountId, @@ -4401,22 +4286,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SessionLifetimeInMinutes"`: How many minutes the session is valid. The session lifetime must be in [15-600] minutes range. """ -function generate_embed_url_for_registered_user( +generate_embed_url_for_registered_user( AwsAccountId, ExperienceConfiguration, UserArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/embed-url/registered-user", + Dict{String,Any}( + "ExperienceConfiguration" => ExperienceConfiguration, "UserArn" => UserArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/embed-url/registered-user", - Dict{String,Any}( - "ExperienceConfiguration" => ExperienceConfiguration, "UserArn" => UserArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_embed_url_for_registered_user( AwsAccountId, ExperienceConfiguration, @@ -4497,20 +4380,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys federation. Omit this parameter for users in the third group – IAM users and IAM role-based sessions. """ -function get_dashboard_embed_url( +get_dashboard_embed_url( AwsAccountId, DashboardId, creds_type; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/embed-url", + Dict{String,Any}("creds-type" => creds_type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/embed-url", - Dict{String,Any}("creds-type" => creds_type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_dashboard_embed_url( AwsAccountId, DashboardId, @@ -4564,16 +4445,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys SAML, OpenID Connect, or IAM federation Omit this parameter for users in the third group, IAM users and IAM role-based sessions. """ -function get_session_embed_url( - AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +get_session_embed_url(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/session-embed-url"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_session_embed_url( AwsAccountId, params::AbstractDict{String}; @@ -4602,14 +4480,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return. - `"next-token"`: A pagination token that can be used in a subsequent request. """ -function list_analyses(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( +list_analyses(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/analyses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_analyses( AwsAccountId, params::AbstractDict{String}; @@ -4643,16 +4520,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_asset_bundle_export_jobs( +list_asset_bundle_export_jobs( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/asset-bundle-export-jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/asset-bundle-export-jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_asset_bundle_export_jobs( AwsAccountId, params::AbstractDict{String}; @@ -4686,16 +4561,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_asset_bundle_import_jobs( +list_asset_bundle_import_jobs( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/asset-bundle-import-jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/asset-bundle-import-jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_asset_bundle_import_jobs( AwsAccountId, params::AbstractDict{String}; @@ -4727,16 +4600,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_dashboard_versions( +list_dashboard_versions( AwsAccountId, DashboardId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_dashboard_versions( AwsAccountId, DashboardId, @@ -4768,14 +4639,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_dashboards(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( +list_dashboards(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/dashboards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dashboards( AwsAccountId, params::AbstractDict{String}; @@ -4807,14 +4677,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_data_sets(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( +list_data_sets(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/data-sets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_data_sets( AwsAccountId, params::AbstractDict{String}; @@ -4845,14 +4714,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_data_sources(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( +list_data_sources(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/data-sources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_data_sources( AwsAccountId, params::AbstractDict{String}; @@ -4883,16 +4751,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_folder_members( +list_folder_members( AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/folders/$(FolderId)/members"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/folders/$(FolderId)/members"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_folder_members( AwsAccountId, FolderId, @@ -4923,14 +4789,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_folders(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/folders"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_folders(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/folders"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_folders( AwsAccountId, params::AbstractDict{String}; @@ -4963,16 +4827,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return from this request. - `"next-token"`: A pagination token that can be used in a subsequent request. """ -function list_group_memberships( - AwsAccountId, GroupName, Namespace; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)/members"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_group_memberships( + AwsAccountId, GroupName, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)/members"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_group_memberships( AwsAccountId, GroupName, @@ -5006,16 +4868,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return. - `"next-token"`: A pagination token that can be used in a subsequent request. """ -function list_groups( - AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +list_groups(AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_groups( AwsAccountId, Namespace, @@ -5049,16 +4908,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_iampolicy_assignments( +list_iampolicy_assignments( AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/v2/iam-policy-assignments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/v2/iam-policy-assignments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_iampolicy_assignments( AwsAccountId, Namespace, @@ -5093,16 +4950,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_iampolicy_assignments_for_user( +list_iampolicy_assignments_for_user( AwsAccountId, Namespace, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)/iam-policy-assignments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)/iam-policy-assignments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_iampolicy_assignments_for_user( AwsAccountId, Namespace, @@ -5137,16 +4992,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_identity_propagation_configs( +list_identity_propagation_configs( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/identity-propagation-config"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/identity-propagation-config"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_identity_propagation_configs( AwsAccountId, params::AbstractDict{String}; @@ -5177,16 +5030,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_ingestions( +list_ingestions( AwsAccountId, DataSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/ingestions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/ingestions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_ingestions( AwsAccountId, DataSetId, @@ -5223,14 +5074,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys token is valid for 24 hours. If you try to make a ListNamespaces API call with an expired token, you will receive a HTTP 400 InvalidNextTokenException error. """ -function list_namespaces(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( +list_namespaces(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/namespaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_namespaces( AwsAccountId, params::AbstractDict{String}; @@ -5256,16 +5106,14 @@ Lists the refresh schedules of a dataset. Each dataset can have up to 5 schedule - `data_set_id`: The ID of the dataset. """ -function list_refresh_schedules( +list_refresh_schedules( AwsAccountId, DataSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_refresh_schedules( AwsAccountId, DataSetId, @@ -5299,16 +5147,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return. - `"next-token"`: A pagination token that can be used in a subsequent request. """ -function list_role_memberships( +list_role_memberships( AwsAccountId, Namespace, Role; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/members"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/members"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_role_memberships( AwsAccountId, Namespace, @@ -5336,16 +5182,13 @@ Lists the tags assigned to a resource. tags for. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/resources/$(ResourceArn)/tags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -5377,16 +5220,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_template_aliases( +list_template_aliases( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_template_aliases( AwsAccountId, TemplateId, @@ -5419,16 +5260,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_template_versions( +list_template_versions( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_template_versions( AwsAccountId, TemplateId, @@ -5460,14 +5299,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_templates(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( +list_templates(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_templates( AwsAccountId, params::AbstractDict{String}; @@ -5499,16 +5337,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_theme_aliases( +list_theme_aliases( AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_theme_aliases( AwsAccountId, ThemeId, @@ -5541,16 +5377,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_theme_versions( +list_theme_versions( AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_theme_versions( AwsAccountId, ThemeId, @@ -5586,14 +5420,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by people using Amazon QuickSight. QUICKSIGHT - Display only the starting themes defined by Amazon QuickSight. """ -function list_themes(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/themes"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_themes(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/themes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_themes( AwsAccountId, params::AbstractDict{String}; @@ -5621,17 +5453,51 @@ Lists all of the refresh schedules for a topic. Web Services Region for each Amazon Web Services account. """ -function list_topic_refresh_schedules( +list_topic_refresh_schedules( AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_topic_refresh_schedules( + AwsAccountId, + TopicId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return quicksight( "GET", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules"; + "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function list_topic_refresh_schedules( + +""" + list_topic_reviewed_answers(aws_account_id, topic_id) + list_topic_reviewed_answers(aws_account_id, topic_id, params::Dict{String,<:Any}) + +Lists all reviewed answers for a Q Topic. + +# Arguments +- `aws_account_id`: The ID of the Amazon Web Services account that containd the reviewed + answers that you want listed. +- `topic_id`: The ID for the topic that contains the reviewed answer that you want to list. + This ID is unique per Amazon Web Services Region for each Amazon Web Services account. + +""" +list_topic_reviewed_answers( + AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/reviewed-answers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_topic_reviewed_answers( AwsAccountId, TopicId, params::AbstractDict{String}; @@ -5639,7 +5505,7 @@ function list_topic_refresh_schedules( ) return quicksight( "GET", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/reviewed-answers", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -5662,14 +5528,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_topics(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/topics"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_topics(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/topics"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_topics( AwsAccountId, params::AbstractDict{String}; @@ -5701,16 +5565,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return from this request. - `"next-token"`: A pagination token that can be used in a subsequent request. """ -function list_user_groups( +list_user_groups( AwsAccountId, Namespace, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "GET", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)/groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "GET", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)/groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_user_groups( AwsAccountId, Namespace, @@ -5744,16 +5606,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return from this request. - `"next-token"`: A pagination token that can be used in a subsequent request. """ -function list_users( - AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +list_users(AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_users( AwsAccountId, Namespace, @@ -5786,16 +5645,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next-token"`: The token for the next set of results, or null if there are no more results. """ -function list_vpcconnections( - AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +list_vpcconnections(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "GET", "/accounts/$(AwsAccountId)/vpc-connections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_vpcconnections( AwsAccountId, params::AbstractDict{String}; @@ -5822,20 +5678,18 @@ Creates or updates the dataset refresh properties for the dataset. - `data_set_refresh_properties`: The dataset refresh properties. """ -function put_data_set_refresh_properties( +put_data_set_refresh_properties( AwsAccountId, DataSetId, DataSetRefreshProperties; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-properties", + Dict{String,Any}("DataSetRefreshProperties" => DataSetRefreshProperties); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-properties", - Dict{String,Any}("DataSetRefreshProperties" => DataSetRefreshProperties); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_data_set_refresh_properties( AwsAccountId, DataSetId, @@ -5933,24 +5787,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserName"`: The Amazon QuickSight user name that you want to create for the user you are registering. """ -function register_user( +register_user( AwsAccountId, Email, IdentityType, Namespace, UserRole; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users", + Dict{String,Any}( + "Email" => Email, "IdentityType" => IdentityType, "UserRole" => UserRole + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users", - Dict{String,Any}( - "Email" => Email, "IdentityType" => IdentityType, "UserRole" => UserRole - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_user( AwsAccountId, Email, @@ -5988,16 +5840,14 @@ Restores an analysis. - `aws_account_id`: The ID of the Amazon Web Services account that contains the analysis. """ -function restore_analysis( +restore_analysis( AnalysisId, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/restore/analyses/$(AnalysisId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/restore/analyses/$(AnalysisId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_analysis( AnalysisId, AwsAccountId, @@ -6031,17 +5881,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return. - `"NextToken"`: A pagination token that can be used in a subsequent request. """ -function search_analyses( - AwsAccountId, Filters; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +search_analyses(AwsAccountId, Filters; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "POST", "/accounts/$(AwsAccountId)/search/analyses", Dict{String,Any}("Filters" => Filters); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_analyses( AwsAccountId, Filters, @@ -6077,17 +5924,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or null if there are no more results. """ -function search_dashboards( +search_dashboards( AwsAccountId, Filters; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/search/dashboards", + Dict{String,Any}("Filters" => Filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/search/dashboards", - Dict{String,Any}("Filters" => Filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_dashboards( AwsAccountId, Filters, @@ -6118,17 +5963,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to be returned per request. - `"NextToken"`: A pagination token that can be used in a subsequent request. """ -function search_data_sets( +search_data_sets( AwsAccountId, Filters; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/search/data-sets", + Dict{String,Any}("Filters" => Filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/search/data-sets", - Dict{String,Any}("Filters" => Filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_data_sets( AwsAccountId, Filters, @@ -6159,17 +6002,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to be returned per request. - `"NextToken"`: A pagination token that can be used in a subsequent request. """ -function search_data_sources( +search_data_sources( AwsAccountId, Filters; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/search/data-sources", + Dict{String,Any}("Filters" => Filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/search/data-sources", - Dict{String,Any}("Filters" => Filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_data_sources( AwsAccountId, Filters, @@ -6204,17 +6045,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results, or null if there are no more results. """ -function search_folders( - AwsAccountId, Filters; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +search_folders(AwsAccountId, Filters; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "POST", "/accounts/$(AwsAccountId)/search/folders", Dict{String,Any}("Filters" => Filters); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_folders( AwsAccountId, Filters, @@ -6249,17 +6087,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max-results"`: The maximum number of results to return from this request. - `"next-token"`: A pagination token that can be used in a subsequent request. """ -function search_groups( +search_groups( AwsAccountId, Filters, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups-search", + Dict{String,Any}("Filters" => Filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups-search", - Dict{String,Any}("Filters" => Filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_groups( AwsAccountId, Filters, @@ -6322,25 +6158,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for every error is enforced. If it is set to FALSE, validation is skipped for specific UI errors that are shown as warnings. The default value for StrictModeForAllResources is FALSE. """ -function start_asset_bundle_export_job( +start_asset_bundle_export_job( AssetBundleExportJobId, AwsAccountId, ExportFormat, ResourceArns; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/asset-bundle-export-jobs/export", + Dict{String,Any}( + "AssetBundleExportJobId" => AssetBundleExportJobId, + "ExportFormat" => ExportFormat, + "ResourceArns" => ResourceArns, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/asset-bundle-export-jobs/export", - Dict{String,Any}( - "AssetBundleExportJobId" => AssetBundleExportJobId, - "ExportFormat" => ExportFormat, - "ResourceArns" => ResourceArns, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_asset_bundle_export_job( AssetBundleExportJobId, AwsAccountId, @@ -6403,23 +6237,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OverrideValidationStrategy"`: An optional validation strategy override for all analyses and dashboards that is applied to the resource configuration before import. """ -function start_asset_bundle_import_job( +start_asset_bundle_import_job( AssetBundleImportJobId, AssetBundleImportSource, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/asset-bundle-import-jobs/import", + Dict{String,Any}( + "AssetBundleImportJobId" => AssetBundleImportJobId, + "AssetBundleImportSource" => AssetBundleImportSource, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/asset-bundle-import-jobs/import", - Dict{String,Any}( - "AssetBundleImportJobId" => AssetBundleImportJobId, - "AssetBundleImportSource" => AssetBundleImportSource, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_asset_bundle_import_job( AssetBundleImportJobId, AssetBundleImportSource, @@ -6504,26 +6336,24 @@ configuration. The size of the generated snapshots. Amazon QuickSight. """ -function start_dashboard_snapshot_job( +start_dashboard_snapshot_job( AwsAccountId, DashboardId, SnapshotConfiguration, SnapshotJobId, UserConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/snapshot-jobs", + Dict{String,Any}( + "SnapshotConfiguration" => SnapshotConfiguration, + "SnapshotJobId" => SnapshotJobId, + "UserConfiguration" => UserConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/snapshot-jobs", - Dict{String,Any}( - "SnapshotConfiguration" => SnapshotConfiguration, - "SnapshotJobId" => SnapshotJobId, - "UserConfiguration" => UserConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_dashboard_snapshot_job( AwsAccountId, DashboardId, @@ -6577,15 +6407,14 @@ currently support the tag editor for Resource Groups. the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return quicksight( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "POST", "/resources/$(ResourceArn)/tags", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -6613,17 +6442,14 @@ Removes a tag or tags from a resource. resource. """ -function untag_resource( - ResourceArn, keys; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +untag_resource(ResourceArn, keys; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "DELETE", "/resources/$(ResourceArn)/tags", Dict{String,Any}("keys" => keys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, keys, @@ -6657,20 +6483,18 @@ customizations apply, use the DescribeAccountCustomization API operation. Amazon QuickSight customizations for. # Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"namespace"`: The namespace that you want to update Amazon QuickSight customizations for. -""" -function update_account_customization( - AccountCustomization, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/customizations", - Dict{String,Any}("AccountCustomization" => AccountCustomization); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"namespace"`: The namespace that you want to update Amazon QuickSight customizations for. +""" +update_account_customization( + AccountCustomization, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/customizations", + Dict{String,Any}("AccountCustomization" => AccountCustomization); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_account_customization( AccountCustomization, AwsAccountId, @@ -6715,17 +6539,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys deleted and results in an error message if a user tries to make a DeleteAccountSubscription request. A False value will allow the account to be deleted. """ -function update_account_settings( +update_account_settings( AwsAccountId, DefaultNamespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/settings", + Dict{String,Any}("DefaultNamespace" => DefaultNamespace); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/settings", - Dict{String,Any}("DefaultNamespace" => DefaultNamespace); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_account_settings( AwsAccountId, DefaultNamespace, @@ -6774,17 +6596,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ValidationStrategy"`: The option to relax the validation needed to update an analysis with definition objects. This skips the validation step for specific errors. """ -function update_analysis( +update_analysis( AnalysisId, AwsAccountId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_analysis( AnalysisId, AwsAccountId, @@ -6821,16 +6641,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RevokePermissions"`: A structure that describes the permissions to remove and the principal to remove them from. """ -function update_analysis_permissions( +update_analysis_permissions( AnalysisId, AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/analyses/$(AnalysisId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_analysis_permissions( AnalysisId, AwsAccountId, @@ -6895,17 +6713,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionDescription"`: A description for the first version of the dashboard being created. """ -function update_dashboard( +update_dashboard( AwsAccountId, DashboardId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dashboard( AwsAccountId, DashboardId, @@ -6936,20 +6752,18 @@ Updates the linked analyses on a dashboard. dashboard. """ -function update_dashboard_links( +update_dashboard_links( AwsAccountId, DashboardId, LinkEntities; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/linked-entities", + Dict{String,Any}("LinkEntities" => LinkEntities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/linked-entities", - Dict{String,Any}("LinkEntities" => LinkEntities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dashboard_links( AwsAccountId, DashboardId, @@ -6986,16 +6800,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RevokeLinkPermissions"`: Revokes link permissions from all users in a defined namespace. - `"RevokePermissions"`: The permissions that you want to revoke from this resource. """ -function update_dashboard_permissions( +update_dashboard_permissions( AwsAccountId, DashboardId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dashboard_permissions( AwsAccountId, DashboardId, @@ -7024,19 +6836,17 @@ Updates the published version of a dashboard. - `version_number`: The version number of the dashboard. """ -function update_dashboard_published_version( +update_dashboard_published_version( AwsAccountId, DashboardId, VersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/versions/$(VersionNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/dashboards/$(DashboardId)/versions/$(VersionNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dashboard_published_version( AwsAccountId, DashboardId, @@ -7086,26 +6896,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys row-level security. Row-level security tags are currently supported for anonymous embedding only. """ -function update_data_set( +update_data_set( AwsAccountId, DataSetId, ImportMode, Name, PhysicalTableMap; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)", + Dict{String,Any}( + "ImportMode" => ImportMode, + "Name" => Name, + "PhysicalTableMap" => PhysicalTableMap, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)", - Dict{String,Any}( - "ImportMode" => ImportMode, - "Name" => Name, - "PhysicalTableMap" => PhysicalTableMap, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_set( AwsAccountId, DataSetId, @@ -7151,16 +6959,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GrantPermissions"`: The resource permissions that you want to grant to the dataset. - `"RevokePermissions"`: The resource permissions that you want to revoke from the dataset. """ -function update_data_set_permissions( +update_data_set_permissions( AwsAccountId, DataSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_set_permissions( AwsAccountId, DataSetId, @@ -7200,17 +7006,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcConnectionProperties"`: Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source. """ -function update_data_source( +update_data_source( AwsAccountId, DataSourceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_source( AwsAccountId, DataSourceId, @@ -7245,16 +7049,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RevokePermissions"`: A list of resource permissions that you want to revoke on the data source. """ -function update_data_source_permissions( +update_data_source_permissions( AwsAccountId, DataSourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/data-sources/$(DataSourceId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_source_permissions( AwsAccountId, DataSourceId, @@ -7283,17 +7085,15 @@ Updates the name of a folder. - `name`: The name of the folder. """ -function update_folder( +update_folder( AwsAccountId, FolderId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/folders/$(FolderId)", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/folders/$(FolderId)", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_folder( AwsAccountId, FolderId, @@ -7328,16 +7128,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RevokePermissions"`: The permissions that you want to revoke from a resource. Namespace ARNs are not supported Principal values for folder permissions. """ -function update_folder_permissions( +update_folder_permissions( AwsAccountId, FolderId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/folders/$(FolderId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/folders/$(FolderId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_folder_permissions( AwsAccountId, FolderId, @@ -7370,16 +7168,14 @@ Changes a group description. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The description for the group that you want to update. """ -function update_group( +update_group( AwsAccountId, GroupName, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/groups/$(GroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_group( AwsAccountId, GroupName, @@ -7422,19 +7218,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PolicyArn"`: The ARN for the IAM policy to apply to the Amazon QuickSight users and groups specified in this assignment. """ -function update_iampolicy_assignment( +update_iampolicy_assignment( AssignmentName, AwsAccountId, Namespace; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/iam-policy-assignments/$(AssignmentName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/iam-policy-assignments/$(AssignmentName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_iampolicy_assignment( AssignmentName, AwsAccountId, @@ -7470,16 +7264,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AuthorizedTargets"`: Specifies a list of application ARNs that represent the authorized targets for a service. """ -function update_identity_propagation_config( +update_identity_propagation_config( AwsAccountId, Service; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/identity-propagation-config/$(Service)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/identity-propagation-config/$(Service)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_identity_propagation_config( AwsAccountId, Service, @@ -7518,16 +7310,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configure this parameter, traffic from all VPC endpoints that are present in the specified VPC is allowed. """ -function update_ip_restriction( - AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() -) - return quicksight( +update_ip_restriction(AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config()) = + quicksight( "POST", "/accounts/$(AwsAccountId)/ip-restriction"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_ip_restriction( AwsAccountId, params::AbstractDict{String}; @@ -7555,17 +7344,15 @@ Updates a customer managed key in a Amazon QuickSight account. Amazon QuickSight account. """ -function update_key_registration( +update_key_registration( AwsAccountId, KeyRegistration; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/key-registration", + Dict{String,Any}("KeyRegistration" => KeyRegistration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/key-registration", - Dict{String,Any}("KeyRegistration" => KeyRegistration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_key_registration( AwsAccountId, KeyRegistration, @@ -7605,16 +7392,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PublicSharingEnabled"`: A Boolean value that indicates whether public sharing is turned on for an Amazon QuickSight account. """ -function update_public_sharing_settings( +update_public_sharing_settings( AwsAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/public-sharing-settings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/public-sharing-settings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_public_sharing_settings( AwsAccountId, params::AbstractDict{String}; @@ -7641,17 +7426,15 @@ Updates a refresh schedule for a dataset. - `schedule`: The refresh schedule. """ -function update_refresh_schedule( +update_refresh_schedule( AwsAccountId, DataSetId, Schedule; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules", + Dict{String,Any}("Schedule" => Schedule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/data-sets/$(DataSetId)/refresh-schedules", - Dict{String,Any}("Schedule" => Schedule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_refresh_schedule( AwsAccountId, DataSetId, @@ -7686,21 +7469,19 @@ Updates the custom permissions that are associated with a role. - `role`: The name of role tht you want to update. """ -function update_role_custom_permission( +update_role_custom_permission( AwsAccountId, CustomPermissionsName, Namespace, Role; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/custom-permission", + Dict{String,Any}("CustomPermissionsName" => CustomPermissionsName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/roles/$(Role)/custom-permission", - Dict{String,Any}("CustomPermissionsName" => CustomPermissionsName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_role_custom_permission( AwsAccountId, CustomPermissionsName, @@ -7739,17 +7520,15 @@ Updates the SPICE capacity configuration for a Amazon QuickSight account. can also be purchased manually with this option. """ -function update_spicecapacity_configuration( +update_spicecapacity_configuration( AwsAccountId, PurchaseMode; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "POST", + "/accounts/$(AwsAccountId)/spice-capacity-configuration", + Dict{String,Any}("PurchaseMode" => PurchaseMode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "POST", - "/accounts/$(AwsAccountId)/spice-capacity-configuration", - Dict{String,Any}("PurchaseMode" => PurchaseMode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_spicecapacity_configuration( AwsAccountId, PurchaseMode, @@ -7799,16 +7578,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version of the template maintains a description of the version in the VersionDescription field. """ -function update_template( +update_template( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_template( AwsAccountId, TemplateId, @@ -7841,21 +7618,19 @@ Updates the template alias of a template. - `template_version_number`: The version number of the template. """ -function update_template_alias( +update_template_alias( AliasName, AwsAccountId, TemplateId, TemplateVersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases/$(AliasName)", + Dict{String,Any}("TemplateVersionNumber" => TemplateVersionNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/aliases/$(AliasName)", - Dict{String,Any}("TemplateVersionNumber" => TemplateVersionNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_template_alias( AliasName, AwsAccountId, @@ -7894,16 +7669,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GrantPermissions"`: A list of resource permissions to be granted on the template. - `"RevokePermissions"`: A list of resource permissions to be revoked from the template. """ -function update_template_permissions( +update_template_permissions( AwsAccountId, TemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/templates/$(TemplateId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/templates/$(TemplateId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_template_permissions( AwsAccountId, TemplateId, @@ -7940,17 +7713,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys time that you call UpdateTheme, you create a new version of the theme. Each version of the theme maintains a description of the version in VersionDescription. """ -function update_theme( +update_theme( AwsAccountId, BaseThemeId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)", + Dict{String,Any}("BaseThemeId" => BaseThemeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)", - Dict{String,Any}("BaseThemeId" => BaseThemeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_theme( AwsAccountId, BaseThemeId, @@ -7983,21 +7754,19 @@ Updates an alias of a theme. - `theme_version_number`: The version number of the theme that the alias should reference. """ -function update_theme_alias( +update_theme_alias( AliasName, AwsAccountId, ThemeId, ThemeVersionNumber; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases/$(AliasName)", + Dict{String,Any}("ThemeVersionNumber" => ThemeVersionNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)/aliases/$(AliasName)", - Dict{String,Any}("ThemeVersionNumber" => ThemeVersionNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_theme_alias( AliasName, AwsAccountId, @@ -8045,16 +7814,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GrantPermissions"`: A list of resource permissions to be granted for the theme. - `"RevokePermissions"`: A list of resource permissions to be revoked from the theme. """ -function update_theme_permissions( +update_theme_permissions( AwsAccountId, ThemeId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/themes/$(ThemeId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/themes/$(ThemeId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_theme_permissions( AwsAccountId, ThemeId, @@ -8084,17 +7851,15 @@ Updates a topic. Services Region for each Amazon Web Services account. """ -function update_topic( +update_topic( AwsAccountId, Topic, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/topics/$(TopicId)", + Dict{String,Any}("Topic" => Topic); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/topics/$(TopicId)", - Dict{String,Any}("Topic" => Topic); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_topic( AwsAccountId, Topic, @@ -8128,16 +7893,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GrantPermissions"`: The resource permissions that you want to grant to the topic. - `"RevokePermissions"`: The resource permissions that you want to revoke from the topic. """ -function update_topic_permissions( +update_topic_permissions( AwsAccountId, TopicId; aws_config::AbstractAWSConfig=current_aws_config() +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_topic_permissions( AwsAccountId, TopicId, @@ -8168,21 +7931,19 @@ Updates a topic refresh schedule. Services Region for each Amazon Web Services account. """ -function update_topic_refresh_schedule( +update_topic_refresh_schedule( AwsAccountId, DatasetId, RefreshSchedule, TopicId; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules/$(DatasetId)", + Dict{String,Any}("RefreshSchedule" => RefreshSchedule); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/topics/$(TopicId)/schedules/$(DatasetId)", - Dict{String,Any}("RefreshSchedule" => RefreshSchedule); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_topic_refresh_schedule( AwsAccountId, DatasetId, @@ -8265,22 +8026,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in before a custom permissions profile was applied. This parameter defaults to NULL and it doesn't accept any other value. """ -function update_user( +update_user( AwsAccountId, Email, Namespace, Role, UserName; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)", + Dict{String,Any}("Email" => Email, "Role" => Role); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/namespaces/$(Namespace)/users/$(UserName)", - Dict{String,Any}("Email" => Email, "Role" => Role); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user( AwsAccountId, Email, @@ -8321,7 +8080,7 @@ Updates a VPC connection. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DnsResolvers"`: A list of IP addresses of DNS resolver endpoints for the VPC connection. """ -function update_vpcconnection( +update_vpcconnection( AwsAccountId, Name, RoleArn, @@ -8329,20 +8088,18 @@ function update_vpcconnection( SubnetIds, VPCConnectionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = quicksight( + "PUT", + "/accounts/$(AwsAccountId)/vpc-connections/$(VPCConnectionId)", + Dict{String,Any}( + "Name" => Name, + "RoleArn" => RoleArn, + "SecurityGroupIds" => SecurityGroupIds, + "SubnetIds" => SubnetIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return quicksight( - "PUT", - "/accounts/$(AwsAccountId)/vpc-connections/$(VPCConnectionId)", - Dict{String,Any}( - "Name" => Name, - "RoleArn" => RoleArn, - "SecurityGroupIds" => SecurityGroupIds, - "SubnetIds" => SubnetIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_vpcconnection( AwsAccountId, Name, diff --git a/src/services/ram.jl b/src/services/ram.jl index 700e7e585..c6213fb8b 100644 --- a/src/services/ram.jl +++ b/src/services/ram.jl @@ -27,17 +27,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function accept_resource_share_invitation( +accept_resource_share_invitation( resourceShareInvitationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/acceptresourceshareinvitation", + Dict{String,Any}("resourceShareInvitationArn" => resourceShareInvitationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/acceptresourceshareinvitation", - Dict{String,Any}("resourceShareInvitationArn" => resourceShareInvitationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_resource_share_invitation( resourceShareInvitationArn, params::AbstractDict{String}; @@ -101,17 +99,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sources"`: Specifies from which source accounts the service principal has access to the resources in this resource share. """ -function associate_resource_share( +associate_resource_share( resourceShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/associateresourceshare", + Dict{String,Any}("resourceShareArn" => resourceShareArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/associateresourceshare", - Dict{String,Any}("resourceShareArn" => resourceShareArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_resource_share( resourceShareArn, params::AbstractDict{String}; @@ -172,19 +168,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and you don't set replace to true then the operation returns an error. This helps prevent accidental overwriting of a permission. """ -function associate_resource_share_permission( +associate_resource_share_permission( permissionArn, resourceShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/associateresourcesharepermission", + Dict{String,Any}( + "permissionArn" => permissionArn, "resourceShareArn" => resourceShareArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/associateresourcesharepermission", - Dict{String,Any}( - "permissionArn" => permissionArn, "resourceShareArn" => resourceShareArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_resource_share_permission( permissionArn, resourceShareArn, @@ -251,21 +245,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Specifies a list of one or more tag key and value pairs to attach to the permission. """ -function create_permission( +create_permission( name, policyTemplate, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/createpermission", + Dict{String,Any}( + "name" => name, + "policyTemplate" => policyTemplate, + "resourceType" => resourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/createpermission", - Dict{String,Any}( - "name" => name, - "policyTemplate" => policyTemplate, - "resourceType" => resourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_permission( name, policyTemplate, @@ -331,19 +323,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function create_permission_version( +create_permission_version( permissionArn, policyTemplate; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/createpermissionversion", + Dict{String,Any}("permissionArn" => permissionArn, "policyTemplate" => policyTemplate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/createpermissionversion", - Dict{String,Any}( - "permissionArn" => permissionArn, "policyTemplate" => policyTemplate - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_permission_version( permissionArn, policyTemplate, @@ -417,15 +405,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the resources associated with the resource share. """ -function create_resource_share(name; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", - "/createresourceshare", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_resource_share(name; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", + "/createresourceshare", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_resource_share( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -462,17 +448,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function delete_permission( - permissionArn; aws_config::AbstractAWSConfig=current_aws_config() +delete_permission(permissionArn; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "DELETE", + "/deletepermission", + Dict{String,Any}("permissionArn" => permissionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "DELETE", - "/deletepermission", - Dict{String,Any}("permissionArn" => permissionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_permission( permissionArn, params::AbstractDict{String}; @@ -521,19 +503,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function delete_permission_version( +delete_permission_version( permissionArn, permissionVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "DELETE", + "/deletepermissionversion", + Dict{String,Any}( + "permissionArn" => permissionArn, "permissionVersion" => permissionVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "DELETE", - "/deletepermissionversion", - Dict{String,Any}( - "permissionArn" => permissionArn, "permissionVersion" => permissionVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_permission_version( permissionArn, permissionVersion, @@ -581,17 +561,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function delete_resource_share( +delete_resource_share( resourceShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "DELETE", + "/deleteresourceshare", + Dict{String,Any}("resourceShareArn" => resourceShareArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "DELETE", - "/deleteresourceshare", - Dict{String,Any}("resourceShareArn" => resourceShareArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource_share( resourceShareArn, params::AbstractDict{String}; @@ -648,17 +626,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sources"`: Specifies from which source accounts the service principal no longer has access to the resources in this resource share. """ -function disassociate_resource_share( +disassociate_resource_share( resourceShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/disassociateresourceshare", + Dict{String,Any}("resourceShareArn" => resourceShareArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/disassociateresourceshare", - Dict{String,Any}("resourceShareArn" => resourceShareArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_resource_share( resourceShareArn, params::AbstractDict{String}; @@ -703,19 +679,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function disassociate_resource_share_permission( +disassociate_resource_share_permission( permissionArn, resourceShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/disassociateresourcesharepermission", + Dict{String,Any}( + "permissionArn" => permissionArn, "resourceShareArn" => resourceShareArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/disassociateresourcesharepermission", - Dict{String,Any}( - "permissionArn" => permissionArn, "resourceShareArn" => resourceShareArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_resource_share_permission( permissionArn, resourceShareArn, @@ -754,16 +728,13 @@ Amazon Web Services accounts, or for supported resource types, IAM roles and use must call this operation from an IAM role or user in the organization's management account. """ -function enable_sharing_with_aws_organization(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ram( +enable_sharing_with_aws_organization(; aws_config::AbstractAWSConfig=current_aws_config()) = + ram( "POST", "/enablesharingwithawsorganization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_sharing_with_aws_organization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -794,15 +765,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you don't specify this parameter, the operation retrieves the default version. To see the list of available versions, use ListPermissionVersions. """ -function get_permission(permissionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", - "/getpermission", - Dict{String,Any}("permissionArn" => permissionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_permission(permissionArn; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", + "/getpermission", + Dict{String,Any}("permissionArn" => permissionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_permission( permissionArn, params::AbstractDict{String}; @@ -845,17 +814,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken response to request the next page of results. - `"principal"`: Specifies the principal. """ -function get_resource_policies( - resourceArns; aws_config::AbstractAWSConfig=current_aws_config() -) - return ram( +get_resource_policies(resourceArns; aws_config::AbstractAWSConfig=current_aws_config()) = + ram( "POST", "/getresourcepolicies", Dict{String,Any}("resourceArns" => resourceArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policies( resourceArns, params::AbstractDict{String}; @@ -910,17 +876,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceShareArns"`: Specifies a list of Amazon Resource Names (ARNs) of the resource share whose associations you want to retrieve. """ -function get_resource_share_associations( +get_resource_share_associations( associationType; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/getresourceshareassociations", + Dict{String,Any}("associationType" => associationType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/getresourceshareassociations", - Dict{String,Any}("associationType" => associationType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_share_associations( associationType, params::AbstractDict{String}; @@ -964,16 +928,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceShareInvitationArns"`: Specifies the Amazon Resource Names (ARNs) of the resource share invitations you want information about. """ -function get_resource_share_invitations(; - aws_config::AbstractAWSConfig=current_aws_config() +get_resource_share_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", + "/getresourceshareinvitations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/getresourceshareinvitations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resource_share_invitations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1025,17 +985,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tagFilters"`: Specifies that you want to retrieve details of only those resource shares that match the specified tag keys and values. """ -function get_resource_shares( - resourceOwner; aws_config::AbstractAWSConfig=current_aws_config() -) - return ram( +get_resource_shares(resourceOwner; aws_config::AbstractAWSConfig=current_aws_config()) = + ram( "POST", "/getresourceshares", Dict{String,Any}("resourceOwner" => resourceOwner); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_shares( resourceOwner, params::AbstractDict{String}; @@ -1084,17 +1041,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource types. REGIONAL – the results include only regional resources or resource types. The default value is ALL. """ -function list_pending_invitation_resources( +list_pending_invitation_resources( resourceShareInvitationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/listpendinginvitationresources", + Dict{String,Any}("resourceShareInvitationArn" => resourceShareInvitationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/listpendinginvitationresources", - Dict{String,Any}("resourceShareInvitationArn" => resourceShareInvitationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_pending_invitation_resources( resourceShareInvitationArn, params::AbstractDict{String}; @@ -1155,14 +1110,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceType"`: Specifies that you want to list only those associations with resource shares that include at least one resource of this resource type. """ -function list_permission_associations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", - "/listpermissionassociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_permission_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", + "/listpermissionassociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_permission_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1201,17 +1154,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_permission_versions( +list_permission_versions( permissionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/listpermissionversions", + Dict{String,Any}("permissionArn" => permissionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/listpermissionversions", - Dict{String,Any}("permissionArn" => permissionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_permission_versions( permissionArn, params::AbstractDict{String}; @@ -1259,11 +1210,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys only permissions that apply to Amazon EC2 subnets, specify ec2:subnet. You can use the ListResourceTypes operation to get the specific string required. """ -function list_permissions(; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", "/listpermissions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_permissions(; aws_config::AbstractAWSConfig=current_aws_config()) = + ram("POST", "/listpermissions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_permissions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1320,15 +1268,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated with resource shares that include the specified resource type. For a list of valid values, query the ListResourceTypes operation. """ -function list_principals(resourceOwner; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", - "/listprincipals", - Dict{String,Any}("resourceOwner" => resourceOwner); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_principals(resourceOwner; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", + "/listprincipals", + Dict{String,Any}("resourceOwner" => resourceOwner); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_principals( resourceOwner, params::AbstractDict{String}; @@ -1372,16 +1318,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys replacePermissionAssociationsWorkstructure returned by the ReplacePermissionAssociations operation. """ -function list_replace_permission_associations_work(; +list_replace_permission_associations_work(; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/listreplacepermissionassociationswork"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/listreplacepermissionassociationswork"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_replace_permission_associations_work( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1419,17 +1363,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_resource_share_permissions( +list_resource_share_permissions( resourceShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/listresourcesharepermissions", + Dict{String,Any}("resourceShareArn" => resourceShareArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/listresourcesharepermissions", - Dict{String,Any}("resourceShareArn" => resourceShareArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resource_share_permissions( resourceShareArn, params::AbstractDict{String}; @@ -1474,11 +1416,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource types. REGIONAL – the results include only regional resources or resource types. The default value is ALL. """ -function list_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", "/listresourcetypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", "/listresourcetypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_resource_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1532,15 +1472,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resources of the specified resource type. For valid values, query the ListResourceTypes operation. """ -function list_resources(resourceOwner; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", - "/listresources", - Dict{String,Any}("resourceOwner" => resourceOwner); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_resources(resourceOwner; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", + "/listresources", + Dict{String,Any}("resourceOwner" => resourceOwner); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_resources( resourceOwner, params::AbstractDict{String}; @@ -1596,17 +1534,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function promote_permission_created_from_policy( +promote_permission_created_from_policy( name, permissionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/promotepermissioncreatedfrompolicy", + Dict{String,Any}("name" => name, "permissionArn" => permissionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/promotepermissioncreatedfrompolicy", - Dict{String,Any}("name" => name, "permissionArn" => permissionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function promote_permission_created_from_policy( name, permissionArn, @@ -1650,17 +1586,15 @@ CREATED_FROM_POLICY permission, then this operation fails. promote. """ -function promote_resource_share_created_from_policy( +promote_resource_share_created_from_policy( resourceShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/promoteresourcesharecreatedfrompolicy", + Dict{String,Any}("resourceShareArn" => resourceShareArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/promoteresourcesharecreatedfrompolicy", - Dict{String,Any}("resourceShareArn" => resourceShareArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function promote_resource_share_created_from_policy( resourceShareArn, params::AbstractDict{String}; @@ -1700,17 +1634,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function reject_resource_share_invitation( +reject_resource_share_invitation( resourceShareInvitationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/rejectresourceshareinvitation", + Dict{String,Any}("resourceShareInvitationArn" => resourceShareInvitationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/rejectresourceshareinvitation", - Dict{String,Any}("resourceShareInvitationArn" => resourceShareInvitationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_resource_share_invitation( resourceShareInvitationArn, params::AbstractDict{String}; @@ -1770,19 +1702,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"fromPermissionVersion"`: Specifies that you want to updated the permissions for only those resource shares that use the specified version of the managed permission. """ -function replace_permission_associations( +replace_permission_associations( fromPermissionArn, toPermissionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/replacepermissionassociations", + Dict{String,Any}( + "fromPermissionArn" => fromPermissionArn, "toPermissionArn" => toPermissionArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/replacepermissionassociations", - Dict{String,Any}( - "fromPermissionArn" => fromPermissionArn, "toPermissionArn" => toPermissionArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replace_permission_associations( fromPermissionArn, toPermissionArn, @@ -1834,19 +1764,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function set_default_permission_version( +set_default_permission_version( permissionArn, permissionVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/setdefaultpermissionversion", + Dict{String,Any}( + "permissionArn" => permissionArn, "permissionVersion" => permissionVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/setdefaultpermissionversion", - Dict{String,Any}( - "permissionArn" => permissionArn, "permissionVersion" => permissionVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_default_permission_version( permissionArn, permissionVersion, @@ -1893,15 +1821,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you want to add tags to. You must specify either resourceShareArn, or resourceArn, but not both. """ -function tag_resource(tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", - "/tagresource", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(tags; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", + "/tagresource", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( tags, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1934,15 +1860,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resources in the resource share. You must specify either resourceShareArn, or resourceArn, but not both. """ -function untag_resource(tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return ram( - "POST", - "/untagresource", - Dict{String,Any}("tagKeys" => tagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_resource(tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = ram( + "POST", + "/untagresource", + Dict{String,Any}("tagKeys" => tagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_resource( tagKeys, params::AbstractDict{String}; @@ -1981,17 +1905,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IdempotentParameterMismatch error. - `"name"`: If specified, the new name that you want to attach to the resource share. """ -function update_resource_share( +update_resource_share( resourceShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ram( + "POST", + "/updateresourceshare", + Dict{String,Any}("resourceShareArn" => resourceShareArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ram( - "POST", - "/updateresourceshare", - Dict{String,Any}("resourceShareArn" => resourceShareArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_share( resourceShareArn, params::AbstractDict{String}; diff --git a/src/services/rbin.jl b/src/services/rbin.jl index beb093fbe..6e9d3e376 100644 --- a/src/services/rbin.jl +++ b/src/services/rbin.jl @@ -34,19 +34,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resources are not tagged. - `"Tags"`: Information about the tags to assign to the retention rule. """ -function create_rule( +create_rule( ResourceType, RetentionPeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = rbin( + "POST", + "/rules", + Dict{String,Any}("ResourceType" => ResourceType, "RetentionPeriod" => RetentionPeriod); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rbin( - "POST", - "/rules", - Dict{String,Any}( - "ResourceType" => ResourceType, "RetentionPeriod" => RetentionPeriod - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule( ResourceType, RetentionPeriod, @@ -81,14 +77,12 @@ retention rules in the Amazon Elastic Compute Cloud User Guide. - `identifier`: The unique ID of the retention rule. """ -function delete_rule(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return rbin( - "DELETE", - "/rules/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_rule(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = rbin( + "DELETE", + "/rules/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_rule( identifier, params::AbstractDict{String}; @@ -113,14 +107,12 @@ Gets information about a Recycle Bin retention rule. - `identifier`: The unique ID of the retention rule. """ -function get_rule(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return rbin( - "GET", - "/rules/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rule(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = rbin( + "GET", + "/rules/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rule( identifier, params::AbstractDict{String}; @@ -157,15 +149,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceTags"`: Information about the resource tags used to identify resources that are retained by the retention rule. """ -function list_rules(ResourceType; aws_config::AbstractAWSConfig=current_aws_config()) - return rbin( - "POST", - "/list-rules", - Dict{String,Any}("ResourceType" => ResourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_rules(ResourceType; aws_config::AbstractAWSConfig=current_aws_config()) = rbin( + "POST", + "/list-rules", + Dict{String,Any}("ResourceType" => ResourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_rules( ResourceType, params::AbstractDict{String}; @@ -192,16 +182,13 @@ Lists the tags assigned to a retention rule. - `resource_arn`: The Amazon Resource Name (ARN) of the retention rule. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return rbin( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rbin( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -227,17 +214,15 @@ Locks a retention rule. A locked retention rule can't be modified or deleted. - `identifier`: The unique ID of the retention rule. """ -function lock_rule( +lock_rule( LockConfiguration, identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rbin( + "PATCH", + "/rules/$(identifier)/lock", + Dict{String,Any}("LockConfiguration" => LockConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rbin( - "PATCH", - "/rules/$(identifier)/lock", - Dict{String,Any}("LockConfiguration" => LockConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function lock_rule( LockConfiguration, identifier, @@ -268,15 +253,13 @@ Assigns tags to the specified retention rule. - `resource_arn`: The Amazon Resource Name (ARN) of the retention rule. """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return rbin( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = rbin( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( Tags, resourceArn, @@ -303,14 +286,12 @@ only after the unlock delay period expires. - `identifier`: The unique ID of the retention rule. """ -function unlock_rule(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return rbin( - "PATCH", - "/rules/$(identifier)/unlock"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +unlock_rule(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = rbin( + "PATCH", + "/rules/$(identifier)/unlock"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function unlock_rule( identifier, params::AbstractDict{String}; @@ -337,17 +318,14 @@ Unassigns a tag from a retention rule. key are unassigned. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return rbin( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + rbin( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -393,14 +371,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RetentionPeriod"`: Information about the retention period for which the retention rule is to retain resources. """ -function update_rule(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return rbin( - "PATCH", - "/rules/$(identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_rule(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = rbin( + "PATCH", + "/rules/$(identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_rule( identifier, params::AbstractDict{String}; diff --git a/src/services/rds.jl b/src/services/rds.jl index 979de17e6..ea37c619d 100644 --- a/src/services/rds.jl +++ b/src/services/rds.jl @@ -20,18 +20,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FeatureName"`: The name of the feature for the DB cluster that the IAM role is to be associated with. For information about supported feature names, see DBEngineVersion. """ -function add_role_to_dbcluster( +add_role_to_dbcluster( DBClusterIdentifier, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "AddRoleToDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "AddRoleToDBCluster", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, "RoleArn" => RoleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_role_to_dbcluster( DBClusterIdentifier, RoleArn, @@ -70,23 +66,21 @@ instance. To add a role to a DB instance, the status of the DB instance must be instance, for example arn:aws:iam::123456789012:role/AccessRole. """ -function add_role_to_dbinstance( +add_role_to_dbinstance( DBInstanceIdentifier, FeatureName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "AddRoleToDBInstance", + Dict{String,Any}( + "DBInstanceIdentifier" => DBInstanceIdentifier, + "FeatureName" => FeatureName, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "AddRoleToDBInstance", - Dict{String,Any}( - "DBInstanceIdentifier" => DBInstanceIdentifier, - "FeatureName" => FeatureName, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_role_to_dbinstance( DBInstanceIdentifier, FeatureName, @@ -131,18 +125,16 @@ Adds a source identifier to an existing RDS event notification subscription. a source identifier to. """ -function add_source_identifier_to_subscription( +add_source_identifier_to_subscription( SourceIdentifier, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "AddSourceIdentifierToSubscription", + Dict{String,Any}( + "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "AddSourceIdentifierToSubscription", - Dict{String,Any}( - "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_source_identifier_to_subscription( SourceIdentifier, SubscriptionName, @@ -186,16 +178,14 @@ and Amazon RDS Resources. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the Amazon RDS resource. """ -function add_tags_to_resource( +add_tags_to_resource( ResourceName, Tag; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "AddTagsToResource", + Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "AddTagsToResource", - Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_resource( ResourceName, Tag, @@ -235,23 +225,21 @@ Applies a pending maintenance action to a resource (for example, to a DB instanc Constructing an RDS Amazon Resource Name (ARN). """ -function apply_pending_maintenance_action( +apply_pending_maintenance_action( ApplyAction, OptInType, ResourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "ApplyPendingMaintenanceAction", + Dict{String,Any}( + "ApplyAction" => ApplyAction, + "OptInType" => OptInType, + "ResourceIdentifier" => ResourceIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ApplyPendingMaintenanceAction", - Dict{String,Any}( - "ApplyAction" => ApplyAction, - "OptInType" => OptInType, - "ResourceIdentifier" => ResourceIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function apply_pending_maintenance_action( ApplyAction, OptInType, @@ -314,16 +302,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided. """ -function authorize_dbsecurity_group_ingress( +authorize_dbsecurity_group_ingress( DBSecurityGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "AuthorizeDBSecurityGroupIngress", + Dict{String,Any}("DBSecurityGroupName" => DBSecurityGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "AuthorizeDBSecurityGroupIngress", - Dict{String,Any}("DBSecurityGroupName" => DBSecurityGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_dbsecurity_group_ingress( DBSecurityGroupName, params::AbstractDict{String}; @@ -372,18 +358,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys earlier than the earliest backtrack time. When this parameter is disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error occurs. """ -function backtrack_dbcluster( +backtrack_dbcluster( BacktrackTo, DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "BacktrackDBCluster", + Dict{String,Any}( + "BacktrackTo" => BacktrackTo, "DBClusterIdentifier" => DBClusterIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "BacktrackDBCluster", - Dict{String,Any}( - "BacktrackTo" => BacktrackTo, "DBClusterIdentifier" => DBClusterIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function backtrack_dbcluster( BacktrackTo, DBClusterIdentifier, @@ -418,16 +402,14 @@ Any data that has already been written to the S3 bucket isn't removed. - `export_task_identifier`: The identifier of the snapshot or cluster export task to cancel. """ -function cancel_export_task( +cancel_export_task( ExportTaskIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "CancelExportTask", + Dict{String,Any}("ExportTaskIdentifier" => ExportTaskIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CancelExportTask", - Dict{String,Any}("ExportTaskIdentifier" => ExportTaskIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_export_task( ExportTaskIdentifier, params::AbstractDict{String}; @@ -471,26 +453,24 @@ default parameters and values for the specified DB cluster parameter group famil Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function copy_dbcluster_parameter_group( +copy_dbcluster_parameter_group( SourceDBClusterParameterGroupIdentifier, TargetDBClusterParameterGroupDescription, TargetDBClusterParameterGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CopyDBClusterParameterGroup", + Dict{String,Any}( + "SourceDBClusterParameterGroupIdentifier" => + SourceDBClusterParameterGroupIdentifier, + "TargetDBClusterParameterGroupDescription" => + TargetDBClusterParameterGroupDescription, + "TargetDBClusterParameterGroupIdentifier" => + TargetDBClusterParameterGroupIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CopyDBClusterParameterGroup", - Dict{String,Any}( - "SourceDBClusterParameterGroupIdentifier" => - SourceDBClusterParameterGroupIdentifier, - "TargetDBClusterParameterGroupDescription" => - TargetDBClusterParameterGroupDescription, - "TargetDBClusterParameterGroupIdentifier" => - TargetDBClusterParameterGroupIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbcluster_parameter_group( SourceDBClusterParameterGroupIdentifier, TargetDBClusterParameterGroupDescription, @@ -611,21 +591,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceRegion"`: The ID of the region that contains the snapshot to be copied. - `"Tags"`: """ -function copy_dbcluster_snapshot( +copy_dbcluster_snapshot( SourceDBClusterSnapshotIdentifier, TargetDBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CopyDBClusterSnapshot", + Dict{String,Any}( + "SourceDBClusterSnapshotIdentifier" => SourceDBClusterSnapshotIdentifier, + "TargetDBClusterSnapshotIdentifier" => TargetDBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CopyDBClusterSnapshot", - Dict{String,Any}( - "SourceDBClusterSnapshotIdentifier" => SourceDBClusterSnapshotIdentifier, - "TargetDBClusterSnapshotIdentifier" => TargetDBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbcluster_snapshot( SourceDBClusterSnapshotIdentifier, TargetDBClusterSnapshotIdentifier, @@ -673,23 +651,21 @@ values for the specified DB parameter group family. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function copy_dbparameter_group( +copy_dbparameter_group( SourceDBParameterGroupIdentifier, TargetDBParameterGroupDescription, TargetDBParameterGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CopyDBParameterGroup", + Dict{String,Any}( + "SourceDBParameterGroupIdentifier" => SourceDBParameterGroupIdentifier, + "TargetDBParameterGroupDescription" => TargetDBParameterGroupDescription, + "TargetDBParameterGroupIdentifier" => TargetDBParameterGroupIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CopyDBParameterGroup", - Dict{String,Any}( - "SourceDBParameterGroupIdentifier" => SourceDBParameterGroupIdentifier, - "TargetDBParameterGroupDescription" => TargetDBParameterGroupDescription, - "TargetDBParameterGroupIdentifier" => TargetDBParameterGroupIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbparameter_group( SourceDBParameterGroupIdentifier, TargetDBParameterGroupDescription, @@ -812,21 +788,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetCustomAvailabilityZone"`: The external custom Availability Zone (CAZ) identifier for the target CAZ. Example: rds-caz-aiqhTgQv. """ -function copy_dbsnapshot( +copy_dbsnapshot( SourceDBSnapshotIdentifier, TargetDBSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CopyDBSnapshot", + Dict{String,Any}( + "SourceDBSnapshotIdentifier" => SourceDBSnapshotIdentifier, + "TargetDBSnapshotIdentifier" => TargetDBSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CopyDBSnapshot", - Dict{String,Any}( - "SourceDBSnapshotIdentifier" => SourceDBSnapshotIdentifier, - "TargetDBSnapshotIdentifier" => TargetDBSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_dbsnapshot( SourceDBSnapshotIdentifier, TargetDBSnapshotIdentifier, @@ -869,23 +843,21 @@ Copies the specified option group. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function copy_option_group( +copy_option_group( SourceOptionGroupIdentifier, TargetOptionGroupDescription, TargetOptionGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CopyOptionGroup", + Dict{String,Any}( + "SourceOptionGroupIdentifier" => SourceOptionGroupIdentifier, + "TargetOptionGroupDescription" => TargetOptionGroupDescription, + "TargetOptionGroupIdentifier" => TargetOptionGroupIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CopyOptionGroup", - Dict{String,Any}( - "SourceOptionGroupIdentifier" => SourceOptionGroupIdentifier, - "TargetOptionGroupDescription" => TargetOptionGroupDescription, - "TargetOptionGroupIdentifier" => TargetOptionGroupIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_option_group( SourceOptionGroupIdentifier, TargetOptionGroupDescription, @@ -960,18 +932,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys file system to the preferred configuration. For more information, see Upgrading the storage file system for a DB instance. """ -function create_blue_green_deployment( +create_blue_green_deployment( BlueGreenDeploymentName, Source; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "CreateBlueGreenDeployment", + Dict{String,Any}( + "BlueGreenDeploymentName" => BlueGreenDeploymentName, "Source" => Source + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateBlueGreenDeployment", - Dict{String,Any}( - "BlueGreenDeploymentName" => BlueGreenDeploymentName, "Source" => Source - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_blue_green_deployment( BlueGreenDeploymentName, Source, @@ -1048,16 +1018,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Machine Image (AMI) for the CEV. If you specify UseAwsProvidedLatestImage, you can't also specify ImageId. """ -function create_custom_dbengine_version( +create_custom_dbengine_version( Engine, EngineVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "CreateCustomDBEngineVersion", + Dict{String,Any}("Engine" => Engine, "EngineVersion" => EngineVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateCustomDBEngineVersion", - Dict{String,Any}("Engine" => Engine, "EngineVersion" => EngineVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_dbengine_version( Engine, EngineVersion, @@ -1146,7 +1114,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DBSubnetGroupName"`: A DB subnet group to associate with this DB cluster. This setting is required to create a Multi-AZ DB cluster. Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters Constraints: Must match the name of an existing DB subnet group. - Must not be default. Example: mydbsubnetgroup + Example: mydbsubnetgroup - `"DBSystemId"`: Reserved for future use. - `"DatabaseName"`: The name for your database of up to 64 alphanumeric characters. A database named postgres is always created. If this parameter is specified, an additional @@ -1365,22 +1333,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Tue | Wed | Thu | Fri | Sat | Sun. Must be in Universal Coordinated Time (UTC). Must be at least 30 minutes. - `"PubliclyAccessible"`: Specifies whether the DB cluster is publicly accessible. When the - DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the - private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - ultimately controlled by the security group it uses. That public access isn't permitted if - the security group assigned to the DB cluster doesn't permit it. When the DB cluster isn't - publicly accessible, it is an internal DB cluster with a DNS name that resolves to a - private IP address. Valid for Cluster Type: Multi-AZ DB clusters only Default: The default - behavior varies depending on whether DBSubnetGroupName is specified. If DBSubnetGroupName - isn't specified, and PubliclyAccessible isn't specified, the following applies: If the - default VPC in the target Region doesn’t have an internet gateway attached to it, the DB - cluster is private. If the default VPC in the target Region has an internet gateway - attached to it, the DB cluster is public. If DBSubnetGroupName is specified, and - PubliclyAccessible isn't specified, the following applies: If the subnets are part of a - VPC that doesn’t have an internet gateway attached to it, the DB cluster is private. If - the subnets are part of a VPC that has an internet gateway attached to it, the DB cluster - is public. + DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual + private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + address. When you connect from within the same VPC as the DB cluster, the endpoint resolves + to the private IP address. Access to the DB cluster is ultimately controlled by the + security group it uses. That public access isn't permitted if the security group assigned + to the DB cluster doesn't permit it. When the DB cluster isn't publicly accessible, it is + an internal DB cluster with a DNS name that resolves to a private IP address. Valid for + Cluster Type: Multi-AZ DB clusters only Default: The default behavior varies depending on + whether DBSubnetGroupName is specified. If DBSubnetGroupName isn't specified, and + PubliclyAccessible isn't specified, the following applies: If the default VPC in the + target Region doesn’t have an internet gateway attached to it, the DB cluster is private. + If the default VPC in the target Region has an internet gateway attached to it, the DB + cluster is public. If DBSubnetGroupName is specified, and PubliclyAccessible isn't + specified, the following applies: If the subnets are part of a VPC that doesn’t have an + internet gateway attached to it, the DB cluster is private. If the subnets are part of a + VPC that has an internet gateway attached to it, the DB cluster is public. - `"RdsCustomClusterConfiguration"`: Reserved for future use. - `"ReplicationSourceIdentifier"`: The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica. Valid for Cluster Type: @@ -1406,16 +1374,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with this DB cluster. Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters """ -function create_dbcluster( +create_dbcluster( DBClusterIdentifier, Engine; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "CreateDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "Engine" => Engine); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBCluster", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "Engine" => Engine); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster( DBClusterIdentifier, Engine, @@ -1461,23 +1427,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys group. - `"Tags"`: The tags to be assigned to the Amazon RDS resource. """ -function create_dbcluster_endpoint( +create_dbcluster_endpoint( DBClusterEndpointIdentifier, DBClusterIdentifier, EndpointType; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBClusterEndpoint", + Dict{String,Any}( + "DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier, + "DBClusterIdentifier" => DBClusterIdentifier, + "EndpointType" => EndpointType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBClusterEndpoint", - Dict{String,Any}( - "DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier, - "DBClusterIdentifier" => DBClusterIdentifier, - "EndpointType" => EndpointType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster_endpoint( DBClusterEndpointIdentifier, DBClusterIdentifier, @@ -1553,23 +1517,21 @@ in the Amazon RDS User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: Tags to assign to the DB cluster parameter group. """ -function create_dbcluster_parameter_group( +create_dbcluster_parameter_group( DBClusterParameterGroupName, DBParameterGroupFamily, Description; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBClusterParameterGroup", + Dict{String,Any}( + "DBClusterParameterGroupName" => DBClusterParameterGroupName, + "DBParameterGroupFamily" => DBParameterGroupFamily, + "Description" => Description, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBClusterParameterGroup", - Dict{String,Any}( - "DBClusterParameterGroupName" => DBClusterParameterGroupName, - "DBParameterGroupFamily" => DBParameterGroupFamily, - "Description" => Description, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster_parameter_group( DBClusterParameterGroupName, DBParameterGroupFamily, @@ -1616,21 +1578,19 @@ clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to be assigned to the DB cluster snapshot. """ -function create_dbcluster_snapshot( +create_dbcluster_snapshot( DBClusterIdentifier, DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBClusterSnapshot", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBClusterSnapshot", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbcluster_snapshot( DBClusterIdentifier, DBClusterSnapshotIdentifier, @@ -2049,21 +2009,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys see Fault Tolerance for an Aurora DB Cluster in the Amazon Aurora User Guide. This setting doesn't apply to RDS Custom DB instances. Default: 1 Valid Values: 0 - 15 - `"PubliclyAccessible"`: Specifies whether the DB instance is publicly accessible. When - the DB instance is publicly accessible, its Domain Name System (DNS) endpoint resolves to - the private IP address from within the DB instance's virtual private cloud (VPC). It - resolves to the public IP address from outside of the DB instance's VPC. Access to the DB - instance is ultimately controlled by the security group it uses. That public access is not - permitted if the security group assigned to the DB instance doesn't permit it. When the DB - instance isn't publicly accessible, it is an internal DB instance with a DNS name that - resolves to a private IP address. Default: The default behavior varies depending on whether - DBSubnetGroupName is specified. If DBSubnetGroupName isn't specified, and - PubliclyAccessible isn't specified, the following applies: If the default VPC in the - target Region doesn’t have an internet gateway attached to it, the DB instance is - private. If the default VPC in the target Region has an internet gateway attached to it, - the DB instance is public. If DBSubnetGroupName is specified, and PubliclyAccessible - isn't specified, the following applies: If the subnets are part of a VPC that doesn’t - have an internet gateway attached to it, the DB instance is private. If the subnets are - part of a VPC that has an internet gateway attached to it, the DB instance is public. + the DB instance is publicly accessible and you connect from outside of the DB instance's + virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public + IP address. When you connect from within the same VPC as the DB instance, the endpoint + resolves to the private IP address. Access to the DB instance is ultimately controlled by + the security group it uses. That public access is not permitted if the security group + assigned to the DB instance doesn't permit it. When the DB instance isn't publicly + accessible, it is an internal DB instance with a DNS name that resolves to a private IP + address. Default: The default behavior varies depending on whether DBSubnetGroupName is + specified. If DBSubnetGroupName isn't specified, and PubliclyAccessible isn't specified, + the following applies: If the default VPC in the target Region doesn’t have an internet + gateway attached to it, the DB instance is private. If the default VPC in the target + Region has an internet gateway attached to it, the DB instance is public. If + DBSubnetGroupName is specified, and PubliclyAccessible isn't specified, the following + applies: If the subnets are part of a VPC that doesn’t have an internet gateway + attached to it, the DB instance is private. If the subnets are part of a VPC that has an + internet gateway attached to it, the DB instance is public. - `"StorageEncrypted"`: Specifes whether the DB instance is encrypted. By default, it isn't encrypted. For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error. This setting doesn't apply to Amazon Aurora DB @@ -2088,23 +2049,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of EC2 VPC security groups is managed by the DB cluster. Default: The default EC2 VPC security group for the DB subnet group's VPC. """ -function create_dbinstance( +create_dbinstance( DBInstanceClass, DBInstanceIdentifier, Engine; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBInstance", + Dict{String,Any}( + "DBInstanceClass" => DBInstanceClass, + "DBInstanceIdentifier" => DBInstanceIdentifier, + "Engine" => Engine, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBInstance", - Dict{String,Any}( - "DBInstanceClass" => DBInstanceClass, - "DBInstanceIdentifier" => DBInstanceIdentifier, - "Engine" => Engine, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbinstance( DBInstanceClass, DBInstanceIdentifier, @@ -2403,16 +2362,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys read replica. This setting doesn't apply to RDS Custom DB instances. Default: The default EC2 VPC security group for the DB subnet group's VPC. """ -function create_dbinstance_read_replica( +create_dbinstance_read_replica( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "CreateDBInstanceReadReplica", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBInstanceReadReplica", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbinstance_read_replica( DBInstanceIdentifier, params::AbstractDict{String}; @@ -2476,23 +2433,21 @@ modified. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: Tags to assign to the DB parameter group. """ -function create_dbparameter_group( +create_dbparameter_group( DBParameterGroupFamily, DBParameterGroupName, Description; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBParameterGroup", + Dict{String,Any}( + "DBParameterGroupFamily" => DBParameterGroupFamily, + "DBParameterGroupName" => DBParameterGroupName, + "Description" => Description, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBParameterGroup", - Dict{String,Any}( - "DBParameterGroupFamily" => DBParameterGroupFamily, - "DBParameterGroupName" => DBParameterGroupName, - "Description" => Description, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbparameter_group( DBParameterGroupFamily, DBParameterGroupName, @@ -2558,27 +2513,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: One or more VPC security group IDs to associate with the new proxy. """ -function create_dbproxy( +create_dbproxy( Auth, DBProxyName, EngineFamily, RoleArn, VpcSubnetIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBProxy", + Dict{String,Any}( + "Auth" => Auth, + "DBProxyName" => DBProxyName, + "EngineFamily" => EngineFamily, + "RoleArn" => RoleArn, + "VpcSubnetIds" => VpcSubnetIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBProxy", - Dict{String,Any}( - "Auth" => Auth, - "DBProxyName" => DBProxyName, - "EngineFamily" => EngineFamily, - "RoleArn" => RoleArn, - "VpcSubnetIds" => VpcSubnetIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbproxy( Auth, DBProxyName, @@ -2634,23 +2587,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys create. You can specify a different set of security group IDs than for the original DB proxy. The default is the default security group for the VPC. """ -function create_dbproxy_endpoint( +create_dbproxy_endpoint( DBProxyEndpointName, DBProxyName, VpcSubnetIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBProxyEndpoint", + Dict{String,Any}( + "DBProxyEndpointName" => DBProxyEndpointName, + "DBProxyName" => DBProxyName, + "VpcSubnetIds" => VpcSubnetIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBProxyEndpoint", - Dict{String,Any}( - "DBProxyEndpointName" => DBProxyEndpointName, - "DBProxyName" => DBProxyName, - "VpcSubnetIds" => VpcSubnetIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbproxy_endpoint( DBProxyEndpointName, DBProxyName, @@ -2699,21 +2650,19 @@ the Amazon RDS User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: Tags to assign to the DB security group. """ -function create_dbsecurity_group( +create_dbsecurity_group( DBSecurityGroupDescription, DBSecurityGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBSecurityGroup", + Dict{String,Any}( + "DBSecurityGroupDescription" => DBSecurityGroupDescription, + "DBSecurityGroupName" => DBSecurityGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBSecurityGroup", - Dict{String,Any}( - "DBSecurityGroupDescription" => DBSecurityGroupDescription, - "DBSecurityGroupName" => DBSecurityGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbsecurity_group( DBSecurityGroupDescription, DBSecurityGroupName, @@ -2757,6 +2706,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each physical shard. 2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard. +- `"MinACU"`: The minimum capacity of the DB shard group in Aurora capacity units (ACUs). - `"PubliclyAccessible"`: Specifies whether the DB shard group is publicly accessible. When the DB shard group is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB shard group's virtual private cloud (VPC). It @@ -2775,23 +2725,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are part of a VPC that has an internet gateway attached to it, the DB shard group is public. """ -function create_dbshard_group( +create_dbshard_group( DBClusterIdentifier, DBShardGroupIdentifier, MaxACU; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBShardGroup", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "DBShardGroupIdentifier" => DBShardGroupIdentifier, + "MaxACU" => MaxACU, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBShardGroup", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "DBShardGroupIdentifier" => DBShardGroupIdentifier, - "MaxACU" => MaxACU, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbshard_group( DBClusterIdentifier, DBShardGroupIdentifier, @@ -2836,21 +2784,19 @@ storage-optimization state. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_dbsnapshot( +create_dbsnapshot( DBInstanceIdentifier, DBSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBSnapshot", + Dict{String,Any}( + "DBInstanceIdentifier" => DBInstanceIdentifier, + "DBSnapshotIdentifier" => DBSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBSnapshot", - Dict{String,Any}( - "DBInstanceIdentifier" => DBInstanceIdentifier, - "DBSnapshotIdentifier" => DBSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbsnapshot( DBInstanceIdentifier, DBSnapshotIdentifier, @@ -2894,23 +2840,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubnetIds"`: The EC2 Subnet IDs for the DB subnet group. - `"Tags"`: Tags to assign to the DB subnet group. """ -function create_dbsubnet_group( +create_dbsubnet_group( DBSubnetGroupDescription, DBSubnetGroupName, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateDBSubnetGroup", + Dict{String,Any}( + "DBSubnetGroupDescription" => DBSubnetGroupDescription, + "DBSubnetGroupName" => DBSubnetGroupName, + "SubnetIdentifier" => SubnetIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateDBSubnetGroup", - Dict{String,Any}( - "DBSubnetGroupDescription" => DBSubnetGroupDescription, - "DBSubnetGroupName" => DBSubnetGroupName, - "SubnetIdentifier" => SubnetIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dbsubnet_group( DBSubnetGroupDescription, DBSubnetGroupName, @@ -2996,18 +2940,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys custom-engine-version | blue-green-deployment - `"Tags"`: """ -function create_event_subscription( +create_event_subscription( SnsTopicArn, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "CreateEventSubscription", + Dict{String,Any}("SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateEventSubscription", - Dict{String,Any}( - "SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_subscription( SnsTopicArn, SubscriptionName, @@ -3081,11 +3021,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys database cluster. Constraints: Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the setting from the source DB cluster. """ -function create_global_cluster(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "CreateGlobalCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_global_cluster(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("CreateGlobalCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_global_cluster( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3124,23 +3061,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys encryption key, RDS uses a default Amazon Web Services owned key. - `"Tags"`: """ -function create_integration( +create_integration( IntegrationName, SourceArn, TargetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateIntegration", + Dict{String,Any}( + "IntegrationName" => IntegrationName, + "SourceArn" => SourceArn, + "TargetArn" => TargetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateIntegration", - Dict{String,Any}( - "IntegrationName" => IntegrationName, - "SourceArn" => SourceArn, - "TargetArn" => TargetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_integration( IntegrationName, SourceArn, @@ -3189,25 +3124,23 @@ apply to RDS Custom. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: Tags to assign to the option group. """ -function create_option_group( +create_option_group( EngineName, MajorEngineVersion, OptionGroupDescription, OptionGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateOptionGroup", + Dict{String,Any}( + "EngineName" => EngineName, + "MajorEngineVersion" => MajorEngineVersion, + "OptionGroupDescription" => OptionGroupDescription, + "OptionGroupName" => OptionGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateOptionGroup", - Dict{String,Any}( - "EngineName" => EngineName, - "MajorEngineVersion" => MajorEngineVersion, - "OptionGroupDescription" => OptionGroupDescription, - "OptionGroupName" => OptionGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_option_group( EngineName, MajorEngineVersion, @@ -3264,25 +3197,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NcharCharacterSetName"`: The NCHAR value for the tenant database. - `"Tags"`: """ -function create_tenant_database( +create_tenant_database( DBInstanceIdentifier, MasterUserPassword, MasterUsername, TenantDBName; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "CreateTenantDatabase", + Dict{String,Any}( + "DBInstanceIdentifier" => DBInstanceIdentifier, + "MasterUserPassword" => MasterUserPassword, + "MasterUsername" => MasterUsername, + "TenantDBName" => TenantDBName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "CreateTenantDatabase", - Dict{String,Any}( - "DBInstanceIdentifier" => DBInstanceIdentifier, - "MasterUserPassword" => MasterUserPassword, - "MasterUsername" => MasterUsername, - "TenantDBName" => TenantDBName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_tenant_database( DBInstanceIdentifier, MasterUserPassword, @@ -3328,16 +3259,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeleteTarget"`: Specifies whether to delete the resources in the green environment. You can't specify this option if the blue/green deployment status is SWITCHOVER_COMPLETED. """ -function delete_blue_green_deployment( +delete_blue_green_deployment( BlueGreenDeploymentIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteBlueGreenDeployment", + Dict{String,Any}("BlueGreenDeploymentIdentifier" => BlueGreenDeploymentIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteBlueGreenDeployment", - Dict{String,Any}("BlueGreenDeploymentIdentifier" => BlueGreenDeploymentIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_blue_green_deployment( BlueGreenDeploymentIdentifier, params::AbstractDict{String}; @@ -3383,16 +3312,14 @@ RDS User Guide. EngineVersion is unique per customer per Amazon Web Services Region. """ -function delete_custom_dbengine_version( +delete_custom_dbengine_version( Engine, EngineVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteCustomDBEngineVersion", + Dict{String,Any}("Engine" => Engine, "EngineVersion" => EngineVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteCustomDBEngineVersion", - Dict{String,Any}("Engine" => Engine, "EngineVersion" => EngineVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_dbengine_version( Engine, EngineVersion, @@ -3435,27 +3362,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys after the DB cluster is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB cluster is deleted. - `"FinalDBSnapshotIdentifier"`: The DB cluster snapshot identifier of the new DB cluster - snapshot created when SkipFinalSnapshot is disabled. Specifying this parameter and also - skipping the creation of a final DB cluster snapshot with the SkipFinalShapshot parameter - results in an error. Constraints: Must be 1 to 255 letters, numbers, or hyphens. First - character must be a letter Can't end with a hyphen or contain two consecutive hyphens + snapshot created when SkipFinalSnapshot is disabled. If you specify this parameter and + also skip the creation of a final DB cluster snapshot with the SkipFinalShapshot parameter, + the request results in an error. Constraints: Must be 1 to 255 letters, numbers, or + hyphens. First character must be a letter Can't end with a hyphen or contain two + consecutive hyphens - `"SkipFinalSnapshot"`: Specifies whether to skip the creation of a final DB cluster - snapshot before the DB cluster is deleted. If skip is specified, no DB cluster snapshot is - created. If skip isn't specified, a DB cluster snapshot is created before the DB cluster is - deleted. By default, skip isn't specified, and the DB cluster snapshot is created. By - default, this parameter is disabled. You must specify a FinalDBSnapshotIdentifier - parameter if SkipFinalSnapshot is disabled. -""" -function delete_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( + snapshot before RDS deletes the DB cluster. If you set this value to true, RDS doesn't + create a final DB cluster snapshot. If you set this value to false or don't specify it, RDS + creates a DB cluster snapshot before it deletes the DB cluster. By default, this parameter + is disabled, so RDS creates a final DB cluster snapshot. If SkipFinalSnapshot is disabled, + you must specify a value for the FinalDBSnapshotIdentifier parameter. +""" +delete_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DeleteDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -3487,16 +3412,14 @@ the Amazon Resource Name (ARN) of the automated backups. changed and which is unique to an Amazon Web Services Region. """ -function delete_dbcluster_automated_backup( +delete_dbcluster_automated_backup( DbClusterResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBClusterAutomatedBackup", + Dict{String,Any}("DbClusterResourceId" => DbClusterResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBClusterAutomatedBackup", - Dict{String,Any}("DbClusterResourceId" => DbClusterResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_automated_backup( DbClusterResourceId, params::AbstractDict{String}; @@ -3528,16 +3451,14 @@ only applies to Aurora DB clusters. parameter is stored as a lowercase string. """ -function delete_dbcluster_endpoint( +delete_dbcluster_endpoint( DBClusterEndpointIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBClusterEndpoint", + Dict{String,Any}("DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBClusterEndpoint", - Dict{String,Any}("DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_endpoint( DBClusterEndpointIdentifier, params::AbstractDict{String}; @@ -3574,16 +3495,14 @@ Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS Use delete a default DB cluster parameter group. Can't be associated with any DB clusters. """ -function delete_dbcluster_parameter_group( +delete_dbcluster_parameter_group( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBClusterParameterGroup", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBClusterParameterGroup", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_parameter_group( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -3620,16 +3539,14 @@ in the Amazon RDS User Guide. Constraints: Must be the name of an existing DB cluster snapshot in the available state. """ -function delete_dbcluster_snapshot( +delete_dbcluster_snapshot( DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBClusterSnapshot", + Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBClusterSnapshot", - Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbcluster_snapshot( DBClusterSnapshotIdentifier, params::AbstractDict{String}; @@ -3700,16 +3617,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you delete a read replica or an RDS Custom instance, you must enable this setting. This setting is required for RDS Custom. """ -function delete_dbinstance( +delete_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -3745,15 +3660,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DbiResourceId"`: The identifier for the source DB instance, which can't be changed and which is unique to an Amazon Web Services Region. """ -function delete_dbinstance_automated_backup(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +delete_dbinstance_automated_backup(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DeleteDBInstanceAutomatedBackup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dbinstance_automated_backup( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3778,16 +3690,14 @@ associated with any DB instances. Can't be associated with any DB instances """ -function delete_dbparameter_group( +delete_dbparameter_group( DBParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBParameterGroup", + Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBParameterGroup", - Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbparameter_group( DBParameterGroupName, params::AbstractDict{String}; @@ -3817,14 +3727,12 @@ Deletes an existing DB proxy. - `dbproxy_name`: The name of the DB proxy to delete. """ -function delete_dbproxy(DBProxyName; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DeleteDBProxy", - Dict{String,Any}("DBProxyName" => DBProxyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_dbproxy(DBProxyName; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "DeleteDBProxy", + Dict{String,Any}("DBProxyName" => DBProxyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_dbproxy( DBProxyName, params::AbstractDict{String}; @@ -3853,16 +3761,14 @@ default VPC. - `dbproxy_endpoint_name`: The name of the DB proxy endpoint to delete. """ -function delete_dbproxy_endpoint( +delete_dbproxy_endpoint( DBProxyEndpointName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBProxyEndpoint", + Dict{String,Any}("DBProxyEndpointName" => DBProxyEndpointName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBProxyEndpoint", - Dict{String,Any}("DBProxyEndpointName" => DBProxyEndpointName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbproxy_endpoint( DBProxyEndpointName, params::AbstractDict{String}; @@ -3900,16 +3806,14 @@ not in a VPC into a VPC in the Amazon RDS User Guide. consecutive hyphens Must not be \"Default\" """ -function delete_dbsecurity_group( +delete_dbsecurity_group( DBSecurityGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBSecurityGroup", + Dict{String,Any}("DBSecurityGroupName" => DBSecurityGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBSecurityGroup", - Dict{String,Any}("DBSecurityGroupName" => DBSecurityGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbsecurity_group( DBSecurityGroupName, params::AbstractDict{String}; @@ -3939,16 +3843,14 @@ Deletes an Aurora Limitless Database DB shard group. - `dbshard_group_identifier`: Teh name of the DB shard group to delete. """ -function delete_dbshard_group( +delete_dbshard_group( DBShardGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBShardGroup", + Dict{String,Any}("DBShardGroupIdentifier" => DBShardGroupIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBShardGroup", - Dict{String,Any}("DBShardGroupIdentifier" => DBShardGroupIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbshard_group( DBShardGroupIdentifier, params::AbstractDict{String}; @@ -3980,16 +3882,14 @@ The DB snapshot must be in the available state to be deleted. existing DB snapshot in the available state. """ -function delete_dbsnapshot( +delete_dbsnapshot( DBSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBSnapshot", + Dict{String,Any}("DBSnapshotIdentifier" => DBSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBSnapshot", - Dict{String,Any}("DBSnapshotIdentifier" => DBSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbsnapshot( DBSnapshotIdentifier, params::AbstractDict{String}; @@ -4022,16 +3922,14 @@ any DB instances. Must not be default. Example: mydbsubnetgroup """ -function delete_dbsubnet_group( +delete_dbsubnet_group( DBSubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteDBSubnetGroup", + Dict{String,Any}("DBSubnetGroupName" => DBSubnetGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteDBSubnetGroup", - Dict{String,Any}("DBSubnetGroupName" => DBSubnetGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_dbsubnet_group( DBSubnetGroupName, params::AbstractDict{String}; @@ -4060,16 +3958,14 @@ Deletes an RDS event notification subscription. delete. """ -function delete_event_subscription( +delete_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -4099,16 +3995,14 @@ detached or destroyed first. This action only applies to Aurora DB clusters. deleted. """ -function delete_global_cluster( +delete_global_cluster( GlobalClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteGlobalCluster", + Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteGlobalCluster", - Dict{String,Any}("GlobalClusterIdentifier" => GlobalClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_global_cluster( GlobalClusterIdentifier, params::AbstractDict{String}; @@ -4138,16 +4032,14 @@ Deletes a zero-ETL integration with Amazon Redshift. - `integration_identifier`: The unique identifier of the integration. """ -function delete_integration( +delete_integration( IntegrationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteIntegration", + Dict{String,Any}("IntegrationIdentifier" => IntegrationIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteIntegration", - Dict{String,Any}("IntegrationIdentifier" => IntegrationIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_integration( IntegrationIdentifier, params::AbstractDict{String}; @@ -4178,16 +4070,13 @@ Deletes an existing option group. default option groups. """ -function delete_option_group( - OptionGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +delete_option_group(OptionGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DeleteOptionGroup", Dict{String,Any}("OptionGroupName" => OptionGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_option_group( OptionGroupName, params::AbstractDict{String}; @@ -4232,18 +4121,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys snapshot. If you don't enable this parameter, you must specify the FinalDBSnapshotIdentifier parameter. """ -function delete_tenant_database( +delete_tenant_database( DBInstanceIdentifier, TenantDBName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeleteTenantDatabase", + Dict{String,Any}( + "DBInstanceIdentifier" => DBInstanceIdentifier, "TenantDBName" => TenantDBName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeleteTenantDatabase", - Dict{String,Any}( - "DBInstanceIdentifier" => DBInstanceIdentifier, "TenantDBName" => TenantDBName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_tenant_database( DBInstanceIdentifier, TenantDBName, @@ -4284,16 +4171,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DBInstanceIdentifiers"`: One or more DB instance identifiers. - `"TargetGroupName"`: The identifier of the DBProxyTargetGroup. """ -function deregister_dbproxy_targets( +deregister_dbproxy_targets( DBProxyName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DeregisterDBProxyTargets", + Dict{String,Any}("DBProxyName" => DBProxyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DeregisterDBProxyTargets", - Dict{String,Any}("DBProxyName" => DBProxyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_dbproxy_targets( DBProxyName, params::AbstractDict{String}; @@ -4319,11 +4204,8 @@ quota includes the quota name, current usage toward that quota, and the quota's value. This command doesn't take any parameters. """ -function describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_account_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4367,15 +4249,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Must be a minimum of 20. Can't exceed 100. """ -function describe_blue_green_deployments(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_blue_green_deployments(; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "DescribeBlueGreenDeployments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeBlueGreenDeployments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_blue_green_deployments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4410,11 +4288,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4457,15 +4332,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results. """ -function describe_dbcluster_automated_backups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +describe_dbcluster_automated_backups(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DescribeDBClusterAutomatedBackups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dbcluster_automated_backups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4511,16 +4383,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbcluster_backtracks( +describe_dbcluster_backtracks( DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeDBClusterBacktracks", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeDBClusterBacktracks", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbcluster_backtracks( DBClusterIdentifier, params::AbstractDict{String}; @@ -4569,11 +4439,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbcluster_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBClusterEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbcluster_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "DescribeDBClusterEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dbcluster_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4609,15 +4477,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbcluster_parameter_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +describe_dbcluster_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DescribeDBClusterParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dbcluster_parameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4656,16 +4521,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Source"`: A specific source to return parameters for. Valid Values: customer engine service """ -function describe_dbcluster_parameters( +describe_dbcluster_parameters( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeDBClusterParameters", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeDBClusterParameters", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbcluster_parameters( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -4706,16 +4569,14 @@ private, use the ModifyDBClusterSnapshotAttribute API action. the attributes for. """ -function describe_dbcluster_snapshot_attributes( +describe_dbcluster_snapshot_attributes( DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeDBClusterSnapshotAttributes", + Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeDBClusterSnapshotAttributes", - Dict{String,Any}("DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbcluster_snapshot_attributes( DBClusterSnapshotIdentifier, params::AbstractDict{String}; @@ -4793,11 +4654,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys doesn't apply when SnapshotType is set to shared. The IncludeShared parameter doesn't apply when SnapshotType is set to public. """ -function describe_dbcluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBClusterSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbcluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "DescribeDBClusterSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_dbcluster_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4846,9 +4705,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100 """ -function describe_dbclusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds("DescribeDBClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_dbclusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbclusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4908,11 +4766,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbengine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbengine_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBEngineVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbengine_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4962,15 +4817,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results. """ -function describe_dbinstance_automated_backups(; +describe_dbinstance_automated_backups(; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeDBInstanceAutomatedBackups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeDBInstanceAutomatedBackups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbinstance_automated_backups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5014,11 +4867,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbinstances(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbinstances(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbinstances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5056,16 +4906,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a marker is included in the response so you can retrieve the remaining results. """ -function describe_dblog_files( +describe_dblog_files( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeDBLogFiles", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeDBLogFiles", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dblog_files( DBInstanceIdentifier, params::AbstractDict{String}; @@ -5106,11 +4954,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbparameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbparameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbparameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5145,16 +4990,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Source"`: The parameter types to return. Default: All parameter types returned Valid Values: user | system | engine-default """ -function describe_dbparameters( +describe_dbparameters( DBParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeDBParameters", + Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeDBParameters", - Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbparameters( DBParameterGroupName, params::AbstractDict{String}; @@ -5193,9 +5036,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbproxies(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds("DescribeDBProxies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_dbproxies(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBProxies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbproxies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5227,11 +5069,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbproxy_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBProxyEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbproxy_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBProxyEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbproxy_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5265,16 +5104,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Minimum 20, maximum 100. - `"TargetGroupName"`: The identifier of the DBProxyTargetGroup to describe. """ -function describe_dbproxy_target_groups( +describe_dbproxy_target_groups( DBProxyName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeDBProxyTargetGroups", + Dict{String,Any}("DBProxyName" => DBProxyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeDBProxyTargetGroups", - Dict{String,Any}("DBProxyName" => DBProxyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbproxy_target_groups( DBProxyName, params::AbstractDict{String}; @@ -5311,16 +5148,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Minimum 20, maximum 100. - `"TargetGroupName"`: The identifier of the DBProxyTargetGroup to describe. """ -function describe_dbproxy_targets( - DBProxyName; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +describe_dbproxy_targets(DBProxyName; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DescribeDBProxyTargets", Dict{String,Any}("DBProxyName" => DBProxyName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dbproxy_targets( DBProxyName, params::AbstractDict{String}; @@ -5379,11 +5213,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results. """ -function describe_dbrecommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbrecommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbrecommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5419,11 +5250,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbsecurity_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBSecurityGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbsecurity_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBSecurityGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbsecurity_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5456,11 +5284,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100 """ -function describe_dbshard_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBShardGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbshard_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBShardGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbshard_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5490,16 +5315,14 @@ public or private, use the ModifyDBSnapshotAttribute API action. for. """ -function describe_dbsnapshot_attributes( +describe_dbsnapshot_attributes( DBSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeDBSnapshotAttributes", + Dict{String,Any}("DBSnapshotIdentifier" => DBSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeDBSnapshotAttributes", - Dict{String,Any}("DBSnapshotIdentifier" => DBSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_dbsnapshot_attributes( DBSnapshotIdentifier, params::AbstractDict{String}; @@ -5564,15 +5387,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys have been marked as public. awsbackup – All DB snapshots managed by the Amazon Web Services Backup service. """ -function describe_dbsnapshot_tenant_databases(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +describe_dbsnapshot_tenant_databases(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DescribeDBSnapshotTenantDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dbsnapshot_tenant_databases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5639,11 +5459,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys doesn't apply when SnapshotType is set to shared. The IncludeShared parameter doesn't apply when SnapshotType is set to public. """ -function describe_dbsnapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbsnapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbsnapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5675,11 +5492,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_dbsubnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeDBSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_dbsubnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeDBSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_dbsubnet_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5714,16 +5528,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_engine_default_cluster_parameters( +describe_engine_default_cluster_parameters( DBParameterGroupFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeEngineDefaultClusterParameters", + Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeEngineDefaultClusterParameters", - Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_engine_default_cluster_parameters( DBParameterGroupFamily, params::AbstractDict{String}; @@ -5776,16 +5588,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_engine_default_parameters( +describe_engine_default_parameters( DBParameterGroupFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeEngineDefaultParameters", + Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeEngineDefaultParameters", - Dict{String,Any}("DBParameterGroupFamily" => DBParameterGroupFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_engine_default_parameters( DBParameterGroupFamily, params::AbstractDict{String}; @@ -5820,11 +5630,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify db-proxy. Valid Values: db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy """ -function describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_event_categories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5856,13 +5663,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. - `"SubscriptionName"`: The name of the RDS event notification subscription you want to - describe. -""" -function describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end + describe. +""" +describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "DescribeEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_event_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5919,9 +5724,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page. Example: 2009-07-08T18:00Z """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5960,11 +5764,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon S3. - `"SourceType"`: The type of source for the export. """ -function describe_export_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeExportTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_export_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeExportTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_export_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6002,11 +5803,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_global_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeGlobalClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_global_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeGlobalClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_global_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6036,11 +5834,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_integrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeIntegrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_integrations(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeIntegrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_integrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6077,16 +5872,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100. """ -function describe_option_group_options( +describe_option_group_options( EngineName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeOptionGroupOptions", + Dict{String,Any}("EngineName" => EngineName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeOptionGroupOptions", - Dict{String,Any}("EngineName" => EngineName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_option_group_options( EngineName, params::AbstractDict{String}; @@ -6128,11 +5921,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OptionGroupName"`: The name of the option group to describe. Can't be supplied together with EngineName or MajorEngineVersion. """ -function describe_option_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeOptionGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_option_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeOptionGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_option_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6181,16 +5971,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys only VPC offerings. RDS Custom supports only VPC offerings. If you describe non-VPC offerings for RDS Custom, the output shows VPC offerings. """ -function describe_orderable_dbinstance_options( +describe_orderable_dbinstance_options( Engine; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeOrderableDBInstanceOptions", + Dict{String,Any}("Engine" => Engine); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeOrderableDBInstanceOptions", - Dict{String,Any}("Engine" => Engine); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_orderable_dbinstance_options( Engine, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6207,7 +5995,11 @@ end describe_pending_maintenance_actions(params::Dict{String,<:Any}) Returns a list of resources (for example, DB instances) that have at least one pending -maintenance action. +maintenance action. This API follows an eventual consistency model. This means that the +result of the DescribePendingMaintenanceActions command might not be immediately visible to +all subsequent RDS commands. Keep this in mind when you use +DescribePendingMaintenanceActions immediately after using a previous API command such as +ApplyPendingMaintenanceActions. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -6226,15 +6018,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Minimum 20, maximum 100. - `"ResourceIdentifier"`: The ARN of a resource to return pending maintenance actions for. """ -function describe_pending_maintenance_actions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +describe_pending_maintenance_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DescribePendingMaintenanceActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_pending_maintenance_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6282,13 +6071,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReservedDBInstancesOfferingId"`: The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier. """ -function describe_reserved_dbinstances(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeReservedDBInstances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_reserved_dbinstances(; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "DescribeReservedDBInstances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_reserved_dbinstances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6332,15 +6119,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter to show only the available offering that matches the specified reservation identifier. Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706 """ -function describe_reserved_dbinstances_offerings(; +describe_reserved_dbinstances_offerings(; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeReservedDBInstancesOfferings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeReservedDBInstancesOfferings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_reserved_dbinstances_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6377,11 +6162,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RegionName"`: The source Amazon Web Services Region name. For example, us-east-1. Constraints: Must specify a valid Amazon Web Services Region name. """ -function describe_source_regions(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeSourceRegions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_source_regions(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeSourceRegions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_source_regions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6421,11 +6203,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys existing tenant database on the specified DB instance owned by your Amazon Web Services account. This parameter isn’t case-sensitive. """ -function describe_tenant_databases(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "DescribeTenantDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_tenant_databases(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("DescribeTenantDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_tenant_databases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6449,16 +6228,14 @@ command doesn't apply to RDS Custom. - `dbinstance_identifier`: The customer identifier or the ARN of your DB instance. """ -function describe_valid_dbinstance_modifications( +describe_valid_dbinstance_modifications( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DescribeValidDBInstanceModifications", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DescribeValidDBInstanceModifications", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_valid_dbinstance_modifications( DBInstanceIdentifier, params::AbstractDict{String}; @@ -6492,16 +6269,13 @@ EnableHttpEndpoint parameter of the ModifyDBCluster operation. - `resource_arn`: The Amazon Resource Name (ARN) of the DB cluster. """ -function disable_http_endpoint( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +disable_http_endpoint(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "DisableHttpEndpoint", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_http_endpoint( ResourceArn, params::AbstractDict{String}; @@ -6549,18 +6323,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false. """ -function download_dblog_file_portion( +download_dblog_file_portion( DBInstanceIdentifier, LogFileName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "DownloadDBLogFilePortion", + Dict{String,Any}( + "DBInstanceIdentifier" => DBInstanceIdentifier, "LogFileName" => LogFileName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "DownloadDBLogFilePortion", - Dict{String,Any}( - "DBInstanceIdentifier" => DBInstanceIdentifier, "LogFileName" => LogFileName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function download_dblog_file_portion( DBInstanceIdentifier, LogFileName, @@ -6600,16 +6372,12 @@ clusters, use the EnableHttpEndpoint parameter of the ModifyDBCluster operation. - `resource_arn`: The Amazon Resource Name (ARN) of the DB cluster. """ -function enable_http_endpoint( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +enable_http_endpoint(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "EnableHttpEndpoint", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "EnableHttpEndpoint", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_http_endpoint( ResourceArn, params::AbstractDict{String}; @@ -6657,16 +6425,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys standby in the DB cluster, for example mydbcluster-replica1. This setting isn't supported for RDS for MySQL Multi-AZ DB clusters. """ -function failover_dbcluster( +failover_dbcluster( DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "FailoverDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "FailoverDBCluster", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function failover_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -6734,21 +6500,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Switchover"`: Specifies whether to switch over this global database cluster. Constraints: Can't be specified together with the AllowDataLoss parameter. """ -function failover_global_cluster( +failover_global_cluster( GlobalClusterIdentifier, TargetDbClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "FailoverGlobalCluster", + Dict{String,Any}( + "GlobalClusterIdentifier" => GlobalClusterIdentifier, + "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "FailoverGlobalCluster", - Dict{String,Any}( - "GlobalClusterIdentifier" => GlobalClusterIdentifier, - "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function failover_global_cluster( GlobalClusterIdentifier, TargetDbClusterIdentifier, @@ -6788,16 +6552,13 @@ resource, see Tagging Amazon RDS Resources in the Amazon RDS User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Filters"`: This parameter isn't currently supported. """ -function list_tags_for_resource( - ResourceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +list_tags_for_resource(ResourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "ListTagsForResource", Dict{String,Any}("ResourceName" => ResourceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceName, params::AbstractDict{String}; @@ -6832,11 +6593,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceArn"`: The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server DB instance. For example, arn:aws:rds:us-east-1:12345667890:db:my-orcl-db. """ -function modify_activity_stream(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "ModifyActivityStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +modify_activity_stream(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("ModifyActivityStream"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function modify_activity_stream( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6876,9 +6634,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RemoveCustomerOverride"`: Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default. """ -function modify_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds("ModifyCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +modify_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("ModifyCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function modify_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6923,16 +6680,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys sets the capacity to the specified value as soon as possible. RollbackCapacityChange ignores the capacity change if a scaling point isn't found in the timeout period. """ -function modify_current_dbcluster_capacity( +modify_current_dbcluster_capacity( DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyCurrentDBClusterCapacity", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyCurrentDBClusterCapacity", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_current_dbcluster_capacity( DBClusterIdentifier, params::AbstractDict{String}; @@ -6985,16 +6740,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys availability status of the CEV, it must not currently be in use by an RDS Custom instance, snapshot, or automated backup. """ -function modify_custom_dbengine_version( +modify_custom_dbengine_version( Engine, EngineVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyCustomDBEngineVersion", + Dict{String,Any}("Engine" => Engine, "EngineVersion" => EngineVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyCustomDBEngineVersion", - Dict{String,Any}("Engine" => Engine, "EngineVersion" => EngineVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_custom_dbengine_version( Engine, EngineVersion, @@ -7264,16 +7017,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with this DB cluster. Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters """ -function modify_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +modify_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "ModifyDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -7313,16 +7063,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StaticMembers"`: List of DB instance identifiers that are part of the custom endpoint group. """ -function modify_dbcluster_endpoint( +modify_dbcluster_endpoint( DBClusterEndpointIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBClusterEndpoint", + Dict{String,Any}("DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBClusterEndpoint", - Dict{String,Any}("DBClusterEndpointIdentifier" => DBClusterEndpointIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbcluster_endpoint( DBClusterEndpointIdentifier, params::AbstractDict{String}; @@ -7388,21 +7136,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys applied after a reboot without failover to the DB clusters associated with the parameter group. """ -function modify_dbcluster_parameter_group( +modify_dbcluster_parameter_group( DBClusterParameterGroupName, Parameter; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "ModifyDBClusterParameterGroup", + Dict{String,Any}( + "DBClusterParameterGroupName" => DBClusterParameterGroupName, + "Parameter" => Parameter, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBClusterParameterGroup", - Dict{String,Any}( - "DBClusterParameterGroupName" => DBClusterParameterGroupName, - "Parameter" => Parameter, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbcluster_parameter_group( DBClusterParameterGroupName, Parameter, @@ -7470,21 +7216,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot. """ -function modify_dbcluster_snapshot_attribute( +modify_dbcluster_snapshot_attribute( AttributeName, DBClusterSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "ModifyDBClusterSnapshotAttribute", + Dict{String,Any}( + "AttributeName" => AttributeName, + "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBClusterSnapshotAttribute", - Dict{String,Any}( - "AttributeName" => AttributeName, - "DBClusterSnapshotIdentifier" => DBClusterSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbcluster_snapshot_attribute( AttributeName, DBClusterSnapshotIdentifier, @@ -7875,16 +7619,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys see Fault Tolerance for an Aurora DB Cluster in the Amazon Aurora User Guide. This setting doesn't apply to RDS Custom DB instances. Default: 1 Valid Values: 0 - 15 - `"PubliclyAccessible"`: Specifies whether the DB instance is publicly accessible. When - the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - the private IP address from within the DB cluster's virtual private cloud (VPC). It - resolves to the public IP address from outside of the DB cluster's VPC. Access to the DB - cluster is ultimately controlled by the security group it uses. That public access isn't - permitted if the security group assigned to the DB cluster doesn't permit it. When the DB - instance isn't publicly accessible, it is an internal DB instance with a DNS name that - resolves to a private IP address. PubliclyAccessible only applies to DB instances in a - VPC. The DB instance must be part of a public subnet and PubliclyAccessible must be enabled - for it to be publicly accessible. Changes to the PubliclyAccessible parameter are applied - immediately regardless of the value of the ApplyImmediately parameter. + the DB instance is publicly accessible and you connect from outside of the DB instance's + virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public + IP address. When you connect from within the same VPC as the DB instance, the endpoint + resolves to the private IP address. Access to the DB instance is ultimately controlled by + the security group it uses. That public access isn't permitted if the security group + assigned to the DB instance doesn't permit it. When the DB instance isn't publicly + accessible, it is an internal DB instance with a DNS name that resolves to a private IP + address. PubliclyAccessible only applies to DB instances in a VPC. The DB instance must be + part of a public subnet and PubliclyAccessible must be enabled for it to be publicly + accessible. Changes to the PubliclyAccessible parameter are applied immediately regardless + of the value of the ApplyImmediately parameter. - `"ReplicaMode"`: A value that sets the open mode of a replica database to either mounted or read-only. Currently, this parameter is only supported for Oracle DB instances. Mounted DB replicas are included in Oracle Enterprise Edition. The main use case for @@ -7934,16 +7679,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ModifyDBCluster.) RDS Custom Constraints: If supplied, must match existing VPC security group IDs. """ -function modify_dbinstance( +modify_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -8010,18 +7753,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys on RDS for SQL Server DB instances. Use immediate. For more information on modifying DB parameters, see Working with DB parameter groups in the Amazon RDS User Guide. """ -function modify_dbparameter_group( +modify_dbparameter_group( DBParameterGroupName, Parameter; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBParameterGroup", + Dict{String,Any}( + "DBParameterGroupName" => DBParameterGroupName, "Parameter" => Parameter + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBParameterGroup", - Dict{String,Any}( - "DBParameterGroupName" => DBParameterGroupName, "Parameter" => Parameter - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbparameter_group( DBParameterGroupName, Parameter, @@ -8075,14 +7816,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys secrets in Amazon Web Services Secrets Manager. - `"SecurityGroups"`: The new list of security groups for the DBProxy. """ -function modify_dbproxy(DBProxyName; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "ModifyDBProxy", - Dict{String,Any}("DBProxyName" => DBProxyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +modify_dbproxy(DBProxyName; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "ModifyDBProxy", + Dict{String,Any}("DBProxyName" => DBProxyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_dbproxy( DBProxyName, params::AbstractDict{String}; @@ -8117,16 +7856,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DB proxy endpoint uses a different VPC than the original proxy, you also specify a different set of security group IDs than for the original proxy. """ -function modify_dbproxy_endpoint( +modify_dbproxy_endpoint( DBProxyEndpointName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBProxyEndpoint", + Dict{String,Any}("DBProxyEndpointName" => DBProxyEndpointName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBProxyEndpoint", - Dict{String,Any}("DBProxyEndpointName" => DBProxyEndpointName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbproxy_endpoint( DBProxyEndpointName, params::AbstractDict{String}; @@ -8164,18 +7901,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens. """ -function modify_dbproxy_target_group( +modify_dbproxy_target_group( DBProxyName, TargetGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBProxyTargetGroup", + Dict{String,Any}("DBProxyName" => DBProxyName, "TargetGroupName" => TargetGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBProxyTargetGroup", - Dict{String,Any}( - "DBProxyName" => DBProxyName, "TargetGroupName" => TargetGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbproxy_target_group( DBProxyName, TargetGroupName, @@ -8215,16 +7948,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys update multiple recommended actions at one time. - `"Status"`: The recommendation status to update. Valid values: active dismissed """ -function modify_dbrecommendation( +modify_dbrecommendation( RecommendationId; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBRecommendation", + Dict{String,Any}("RecommendationId" => RecommendationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBRecommendation", - Dict{String,Any}("RecommendationId" => RecommendationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbrecommendation( RecommendationId, params::AbstractDict{String}; @@ -8255,17 +7986,16 @@ more settings by specifying these parameters and the new values in the request. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MaxACU"`: The maximum capacity of the DB shard group in Aurora capacity units (ACUs). +- `"MinACU"`: The minimum capacity of the DB shard group in Aurora capacity units (ACUs). """ -function modify_dbshard_group( +modify_dbshard_group( DBShardGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBShardGroup", + Dict{String,Any}("DBShardGroupIdentifier" => DBShardGroupIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBShardGroup", - Dict{String,Any}("DBShardGroupIdentifier" => DBShardGroupIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbshard_group( DBShardGroupIdentifier, params::AbstractDict{String}; @@ -8313,16 +8043,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys considerations apply when upgrading a DB snapshot as when upgrading a DB instance. For more information, see Option group considerations in the Amazon RDS User Guide. """ -function modify_dbsnapshot( +modify_dbsnapshot( DBSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBSnapshot", + Dict{String,Any}("DBSnapshotIdentifier" => DBSnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBSnapshot", - Dict{String,Any}("DBSnapshotIdentifier" => DBSnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbsnapshot( DBSnapshotIdentifier, params::AbstractDict{String}; @@ -8383,18 +8111,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account whose account ID is explicitly added to the restore attribute can still copy or restore the manual DB snapshot. """ -function modify_dbsnapshot_attribute( +modify_dbsnapshot_attribute( AttributeName, DBSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBSnapshotAttribute", + Dict{String,Any}( + "AttributeName" => AttributeName, "DBSnapshotIdentifier" => DBSnapshotIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBSnapshotAttribute", - Dict{String,Any}( - "AttributeName" => AttributeName, "DBSnapshotIdentifier" => DBSnapshotIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbsnapshot_attribute( AttributeName, DBSnapshotIdentifier, @@ -8436,18 +8162,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DBSubnetGroupDescription"`: The description for the DB subnet group. - `"SubnetIds"`: The EC2 subnet IDs for the DB subnet group. """ -function modify_dbsubnet_group( +modify_dbsubnet_group( DBSubnetGroupName, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyDBSubnetGroup", + Dict{String,Any}( + "DBSubnetGroupName" => DBSubnetGroupName, "SubnetIdentifier" => SubnetIdentifier + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyDBSubnetGroup", - Dict{String,Any}( - "DBSubnetGroupName" => DBSubnetGroupName, "SubnetIdentifier" => SubnetIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_dbsubnet_group( DBSubnetGroupName, SubnetIdentifier, @@ -8499,16 +8223,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment """ -function modify_event_subscription( +modify_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -8562,11 +8284,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 63 letters, numbers, or hyphens. The first character must be a letter. Can't end with a hyphen or contain two consecutive hyphens. Example: my-cluster2 """ -function modify_global_cluster(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "ModifyGlobalCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +modify_global_cluster(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("ModifyGlobalCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function modify_global_cluster( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -8595,17 +8314,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys filtering for Aurora zero-ETL integrations with Amazon Redshift. - `"Description"`: A new description for the integration. - `"IntegrationName"`: A new name for the integration. -""" -function modify_integration( - IntegrationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( - "ModifyIntegration", - Dict{String,Any}("IntegrationIdentifier" => IntegrationIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +""" +modify_integration( + IntegrationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyIntegration", + Dict{String,Any}("IntegrationIdentifier" => IntegrationIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_integration( IntegrationIdentifier, params::AbstractDict{String}; @@ -8645,16 +8362,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys present, the specified configuration is used to update the existing configuration. - `"OptionsToRemove"`: Options in this list are removed from the option group. """ -function modify_option_group( - OptionGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +modify_option_group(OptionGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "ModifyOptionGroup", Dict{String,Any}("OptionGroupName" => OptionGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_option_group( OptionGroupName, params::AbstractDict{String}; @@ -8701,18 +8415,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This parameter isn’t case-sensitive. Constraints: Can't be the string null or any other reserved word. Can't be longer than 8 characters. """ -function modify_tenant_database( +modify_tenant_database( DBInstanceIdentifier, TenantDBName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ModifyTenantDatabase", + Dict{String,Any}( + "DBInstanceIdentifier" => DBInstanceIdentifier, "TenantDBName" => TenantDBName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ModifyTenantDatabase", - Dict{String,Any}( - "DBInstanceIdentifier" => DBInstanceIdentifier, "TenantDBName" => TenantDBName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_tenant_database( DBInstanceIdentifier, TenantDBName, @@ -8768,16 +8480,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hh24:mi-hh24:mi. Must be in Universal Coordinated Time (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes. """ -function promote_read_replica( +promote_read_replica( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "PromoteReadReplica", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "PromoteReadReplica", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function promote_read_replica( DBInstanceIdentifier, params::AbstractDict{String}; @@ -8809,16 +8519,14 @@ Promotes a read replica DB cluster to a standalone DB cluster. cluster read replica. Example: my-cluster-replica1 """ -function promote_read_replica_dbcluster( +promote_read_replica_dbcluster( DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "PromoteReadReplicaDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "PromoteReadReplicaDBCluster", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function promote_read_replica_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -8855,16 +8563,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Example: myreservationID - `"Tags"`: """ -function purchase_reserved_dbinstances_offering( +purchase_reserved_dbinstances_offering( ReservedDBInstancesOfferingId; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "PurchaseReservedDBInstancesOffering", + Dict{String,Any}("ReservedDBInstancesOfferingId" => ReservedDBInstancesOfferingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "PurchaseReservedDBInstancesOffering", - Dict{String,Any}("ReservedDBInstancesOfferingId" => ReservedDBInstancesOfferingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_reserved_dbinstances_offering( ReservedDBInstancesOfferingId, params::AbstractDict{String}; @@ -8903,16 +8609,13 @@ Multi-AZ DB cluster deployments in the Amazon RDS User Guide. lowercase string. Constraints: Must match the identifier of an existing DBCluster. """ -function reboot_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +reboot_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "RebootDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reboot_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -8954,16 +8657,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ForceFailover"`: Specifies whether the reboot is conducted through a Multi-AZ failover. Constraint: You can't enable force failover if the instance isn't configured for Multi-AZ. """ -function reboot_dbinstance( +reboot_dbinstance( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RebootDBInstance", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RebootDBInstance", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -8995,16 +8696,14 @@ effect. This operation applies only to Aurora Limitless Database DBb shard group - `dbshard_group_identifier`: The name of the DB shard group to reboot. """ -function reboot_dbshard_group( +reboot_dbshard_group( DBShardGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RebootDBShardGroup", + Dict{String,Any}("DBShardGroupIdentifier" => DBShardGroupIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RebootDBShardGroup", - Dict{String,Any}("DBShardGroupIdentifier" => DBShardGroupIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_dbshard_group( DBShardGroupIdentifier, params::AbstractDict{String}; @@ -9040,16 +8739,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DBInstanceIdentifiers"`: One or more DB instance identifiers. - `"TargetGroupName"`: The identifier of the DBProxyTargetGroup. """ -function register_dbproxy_targets( - DBProxyName; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +register_dbproxy_targets(DBProxyName; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "RegisterDBProxyTargets", Dict{String,Any}("DBProxyName" => DBProxyName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function register_dbproxy_targets( DBProxyName, params::AbstractDict{String}; @@ -9081,11 +8777,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GlobalClusterIdentifier"`: The cluster identifier to detach from the Aurora global database cluster. """ -function remove_from_global_cluster(; aws_config::AbstractAWSConfig=current_aws_config()) - return rds( - "RemoveFromGlobalCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +remove_from_global_cluster(; aws_config::AbstractAWSConfig=current_aws_config()) = + rds("RemoveFromGlobalCluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function remove_from_global_cluster( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9116,18 +8809,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FeatureName"`: The name of the feature for the DB cluster that the IAM role is to be disassociated from. For information about supported feature names, see DBEngineVersion. """ -function remove_role_from_dbcluster( +remove_role_from_dbcluster( DBClusterIdentifier, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RemoveRoleFromDBCluster", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier, "RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RemoveRoleFromDBCluster", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, "RoleArn" => RoleArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_role_from_dbcluster( DBClusterIdentifier, RoleArn, @@ -9165,23 +8854,21 @@ instance. instance, for example, arn:aws:iam::123456789012:role/AccessRole. """ -function remove_role_from_dbinstance( +remove_role_from_dbinstance( DBInstanceIdentifier, FeatureName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "RemoveRoleFromDBInstance", + Dict{String,Any}( + "DBInstanceIdentifier" => DBInstanceIdentifier, + "FeatureName" => FeatureName, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RemoveRoleFromDBInstance", - Dict{String,Any}( - "DBInstanceIdentifier" => DBInstanceIdentifier, - "FeatureName" => FeatureName, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_role_from_dbinstance( DBInstanceIdentifier, FeatureName, @@ -9220,18 +8907,16 @@ Removes a source identifier from an existing RDS event notification subscription remove a source identifier from. """ -function remove_source_identifier_from_subscription( +remove_source_identifier_from_subscription( SourceIdentifier, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RemoveSourceIdentifierFromSubscription", + Dict{String,Any}( + "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RemoveSourceIdentifierFromSubscription", - Dict{String,Any}( - "SourceIdentifier" => SourceIdentifier, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_source_identifier_from_subscription( SourceIdentifier, SubscriptionName, @@ -9269,16 +8954,14 @@ resource, see Tagging Amazon RDS Resources in the Amazon RDS User Guide. - `tag_keys`: The tag key (name) of the tag to be removed. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceName, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RemoveTagsFromResource", + Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RemoveTagsFromResource", - Dict{String,Any}("ResourceName" => ResourceName, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceName, TagKeys, @@ -9326,16 +9009,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter group to their default values. You can't use this parameter if there is a list of parameter names specified for the Parameters parameter. """ -function reset_dbcluster_parameter_group( +reset_dbcluster_parameter_group( DBClusterParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ResetDBClusterParameterGroup", + Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ResetDBClusterParameterGroup", - Dict{String,Any}("DBClusterParameterGroupName" => DBClusterParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_dbcluster_parameter_group( DBClusterParameterGroupName, params::AbstractDict{String}; @@ -9388,16 +9069,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys group to default values. By default, all parameters in the DB parameter group are reset to default values. """ -function reset_dbparameter_group( +reset_dbparameter_group( DBParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "ResetDBParameterGroup", + Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "ResetDBParameterGroup", - Dict{String,Any}("DBParameterGroupName" => DBParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_dbparameter_group( DBParameterGroupName, params::AbstractDict{String}; @@ -9575,7 +9254,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with the restored DB cluster. """ -function restore_dbcluster_from_s3( +restore_dbcluster_from_s3( DBClusterIdentifier, Engine, MasterUsername, @@ -9584,22 +9263,20 @@ function restore_dbcluster_from_s3( SourceEngine, SourceEngineVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "RestoreDBClusterFromS3", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "Engine" => Engine, + "MasterUsername" => MasterUsername, + "S3BucketName" => S3BucketName, + "S3IngestionRoleArn" => S3IngestionRoleArn, + "SourceEngine" => SourceEngine, + "SourceEngineVersion" => SourceEngineVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RestoreDBClusterFromS3", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "Engine" => Engine, - "MasterUsername" => MasterUsername, - "S3BucketName" => S3BucketName, - "S3IngestionRoleArn" => S3IngestionRoleArn, - "SourceEngine" => SourceEngine, - "SourceEngineVersion" => SourceEngineVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbcluster_from_s3( DBClusterIdentifier, Engine, @@ -9803,23 +9480,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of VPC security groups that the new DB cluster will belong to. Valid for: Aurora DB clusters and Multi-AZ DB clusters """ -function restore_dbcluster_from_snapshot( +restore_dbcluster_from_snapshot( DBClusterIdentifier, Engine, SnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "RestoreDBClusterFromSnapshot", + Dict{String,Any}( + "DBClusterIdentifier" => DBClusterIdentifier, + "Engine" => Engine, + "SnapshotIdentifier" => SnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RestoreDBClusterFromSnapshot", - Dict{String,Any}( - "DBClusterIdentifier" => DBClusterIdentifier, - "Engine" => Engine, - "SnapshotIdentifier" => SnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbcluster_from_snapshot( DBClusterIdentifier, Engine, @@ -10010,16 +9685,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of VPC security groups that the new DB cluster belongs to. Valid for: Aurora DB clusters and Multi-AZ DB clusters """ -function restore_dbcluster_to_point_in_time( +restore_dbcluster_to_point_in_time( DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RestoreDBClusterToPointInTime", + Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RestoreDBClusterToPointInTime", - Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbcluster_to_point_in_time( DBClusterIdentifier, params::AbstractDict{String}; @@ -10249,16 +9922,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with this DB instance. Default: The default EC2 VPC security group for the DB subnet group's VPC. """ -function restore_dbinstance_from_dbsnapshot( +restore_dbinstance_from_dbsnapshot( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RestoreDBInstanceFromDBSnapshot", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RestoreDBInstanceFromDBSnapshot", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbinstance_from_dbsnapshot( DBInstanceIdentifier, params::AbstractDict{String}; @@ -10487,7 +10158,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instance uses its default processor features. - `"VpcSecurityGroupIds"`: A list of VPC security groups to associate with this DB instance. """ -function restore_dbinstance_from_s3( +restore_dbinstance_from_s3( DBInstanceClass, DBInstanceIdentifier, Engine, @@ -10496,22 +10167,20 @@ function restore_dbinstance_from_s3( SourceEngine, SourceEngineVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "RestoreDBInstanceFromS3", + Dict{String,Any}( + "DBInstanceClass" => DBInstanceClass, + "DBInstanceIdentifier" => DBInstanceIdentifier, + "Engine" => Engine, + "S3BucketName" => S3BucketName, + "S3IngestionRoleArn" => S3IngestionRoleArn, + "SourceEngine" => SourceEngine, + "SourceEngineVersion" => SourceEngineVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RestoreDBInstanceFromS3", - Dict{String,Any}( - "DBInstanceClass" => DBInstanceClass, - "DBInstanceIdentifier" => DBInstanceIdentifier, - "Engine" => Engine, - "S3BucketName" => S3BucketName, - "S3IngestionRoleArn" => S3IngestionRoleArn, - "SourceEngine" => SourceEngine, - "SourceEngineVersion" => SourceEngineVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbinstance_from_s3( DBInstanceClass, DBInstanceIdentifier, @@ -10744,16 +10413,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of EC2 VPC security groups to associate with this DB instance. Default: The default EC2 VPC security group for the DB subnet group's VPC. """ -function restore_dbinstance_to_point_in_time( +restore_dbinstance_to_point_in_time( TargetDBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RestoreDBInstanceToPointInTime", + Dict{String,Any}("TargetDBInstanceIdentifier" => TargetDBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RestoreDBInstanceToPointInTime", - Dict{String,Any}("TargetDBInstanceIdentifier" => TargetDBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_dbinstance_to_point_in_time( TargetDBInstanceIdentifier, params::AbstractDict{String}; @@ -10809,16 +10476,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided. """ -function revoke_dbsecurity_group_ingress( +revoke_dbsecurity_group_ingress( DBSecurityGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "RevokeDBSecurityGroupIngress", + Dict{String,Any}("DBSecurityGroupName" => DBSecurityGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "RevokeDBSecurityGroupIngress", - Dict{String,Any}("DBSecurityGroupName" => DBSecurityGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_dbsecurity_group_ingress( DBSecurityGroupName, params::AbstractDict{String}; @@ -10865,18 +10530,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys includes engine-native audit fields. This option applies to an Oracle or Microsoft SQL Server DB instance. By default, no engine-native audit fields are included. """ -function start_activity_stream( +start_activity_stream( KmsKeyId, Mode, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "StartActivityStream", + Dict{String,Any}("KmsKeyId" => KmsKeyId, "Mode" => Mode, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "StartActivityStream", - Dict{String,Any}( - "KmsKeyId" => KmsKeyId, "Mode" => Mode, "ResourceArn" => ResourceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_activity_stream( KmsKeyId, Mode, @@ -10914,16 +10575,13 @@ only applies to Aurora DB clusters. started. This parameter is stored as a lowercase string. """ -function start_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +start_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "StartDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -10957,16 +10615,13 @@ Aurora DB clusters, use StartDBCluster instead. - `dbinstance_identifier`: The user-supplied instance identifier. """ -function start_dbinstance( - DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +start_dbinstance(DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "StartDBInstance", Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -11019,16 +10674,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region. """ -function start_dbinstance_automated_backups_replication( +start_dbinstance_automated_backups_replication( SourceDBInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "StartDBInstanceAutomatedBackupsReplication", + Dict{String,Any}("SourceDBInstanceArn" => SourceDBInstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "StartDBInstanceAutomatedBackupsReplication", - Dict{String,Any}("SourceDBInstanceArn" => SourceDBInstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_dbinstance_automated_backups_replication( SourceDBInstanceArn, params::AbstractDict{String}; @@ -11054,11 +10707,10 @@ end Starts an export of DB snapshot or DB cluster data to Amazon S3. The provided IAM role must have access to the S3 bucket. You can't export snapshot data from Db2 or RDS Custom DB -instances. You can't export cluster data from Multi-AZ DB clusters. For more information on -exporting DB snapshot data, see Exporting DB snapshot data to Amazon S3 in the Amazon RDS -User Guide or Exporting DB cluster snapshot data to Amazon S3 in the Amazon Aurora User -Guide. For more information on exporting DB cluster data, see Exporting DB cluster data to -Amazon S3 in the Amazon Aurora User Guide. +instances. For more information on exporting DB snapshot data, see Exporting DB snapshot +data to Amazon S3 in the Amazon RDS User Guide or Exporting DB cluster snapshot data to +Amazon S3 in the Amazon Aurora User Guide. For more information on exporting DB cluster +data, see Exporting DB cluster data to Amazon S3 in the Amazon Aurora User Guide. # Arguments - `export_task_identifier`: A unique identifier for the export task. This ID isn't an @@ -11096,27 +10748,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"S3Prefix"`: The Amazon S3 bucket prefix to use as the file name and path of the exported data. """ -function start_export_task( +start_export_task( ExportTaskIdentifier, IamRoleArn, KmsKeyId, S3BucketName, SourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "StartExportTask", + Dict{String,Any}( + "ExportTaskIdentifier" => ExportTaskIdentifier, + "IamRoleArn" => IamRoleArn, + "KmsKeyId" => KmsKeyId, + "S3BucketName" => S3BucketName, + "SourceArn" => SourceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "StartExportTask", - Dict{String,Any}( - "ExportTaskIdentifier" => ExportTaskIdentifier, - "IamRoleArn" => IamRoleArn, - "KmsKeyId" => KmsKeyId, - "S3BucketName" => S3BucketName, - "SourceArn" => SourceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_export_task( ExportTaskIdentifier, IamRoleArn, @@ -11165,16 +10815,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ApplyImmediately"`: Specifies whether or not the database activity stream is to stop as soon as possible, regardless of the maintenance window for the database. """ -function stop_activity_stream( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +stop_activity_stream(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = rds( + "StopActivityStream", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "StopActivityStream", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_activity_stream( ResourceArn, params::AbstractDict{String}; @@ -11205,16 +10851,13 @@ This operation only applies to Aurora DB clusters. stopped. This parameter is stored as a lowercase string. """ -function stop_dbcluster( - DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +stop_dbcluster(DBClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "StopDBCluster", Dict{String,Any}("DBClusterIdentifier" => DBClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_dbcluster( DBClusterIdentifier, params::AbstractDict{String}; @@ -11253,16 +10896,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DBSnapshotIdentifier"`: The user-supplied instance identifier of the DB Snapshot created immediately before the DB instance is stopped. """ -function stop_dbinstance( - DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return rds( +stop_dbinstance(DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + rds( "StopDBInstance", Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_dbinstance( DBInstanceIdentifier, params::AbstractDict{String}; @@ -11296,16 +10936,14 @@ Automated Backups to Another Amazon Web Services Region in the Amazon RDS User G arn:aws:rds:us-west-2:123456789012:db:mydatabase. """ -function stop_dbinstance_automated_backups_replication( +stop_dbinstance_automated_backups_replication( SourceDBInstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "StopDBInstanceAutomatedBackupsReplication", + Dict{String,Any}("SourceDBInstanceArn" => SourceDBInstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "StopDBInstanceAutomatedBackupsReplication", - Dict{String,Any}("SourceDBInstanceArn" => SourceDBInstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_dbinstance_automated_backups_replication( SourceDBInstanceArn, params::AbstractDict{String}; @@ -11345,16 +10983,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Default: 300 If the switchover takes longer than the specified duration, then any changes are rolled back, and no changes are made to the environments. """ -function switchover_blue_green_deployment( +switchover_blue_green_deployment( BlueGreenDeploymentIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "SwitchoverBlueGreenDeployment", + Dict{String,Any}("BlueGreenDeploymentIdentifier" => BlueGreenDeploymentIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "SwitchoverBlueGreenDeployment", - Dict{String,Any}("BlueGreenDeploymentIdentifier" => BlueGreenDeploymentIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function switchover_blue_green_deployment( BlueGreenDeploymentIdentifier, params::AbstractDict{String}; @@ -11403,21 +11039,19 @@ fall back to the original primary after a global database failover. Region. """ -function switchover_global_cluster( +switchover_global_cluster( GlobalClusterIdentifier, TargetDbClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds( + "SwitchoverGlobalCluster", + Dict{String,Any}( + "GlobalClusterIdentifier" => GlobalClusterIdentifier, + "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "SwitchoverGlobalCluster", - Dict{String,Any}( - "GlobalClusterIdentifier" => GlobalClusterIdentifier, - "TargetDbClusterIdentifier" => TargetDbClusterIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function switchover_global_cluster( GlobalClusterIdentifier, TargetDbClusterIdentifier, @@ -11455,16 +11089,14 @@ database. existing Oracle read replica DB instance. """ -function switchover_read_replica( +switchover_read_replica( DBInstanceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = rds( + "SwitchoverReadReplica", + Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds( - "SwitchoverReadReplica", - Dict{String,Any}("DBInstanceIdentifier" => DBInstanceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function switchover_read_replica( DBInstanceIdentifier, params::AbstractDict{String}; diff --git a/src/services/rds_data.jl b/src/services/rds_data.jl index 58af11cdc..af40511e6 100644 --- a/src/services/rds_data.jl +++ b/src/services/rds_data.jl @@ -44,19 +44,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the SQL statement in. If the SQL statement is not part of a transaction, don't set this parameter. """ -function batch_execute_statement( +batch_execute_statement( resourceArn, secretArn, sql; aws_config::AbstractAWSConfig=current_aws_config() +) = rds_data( + "POST", + "/BatchExecute", + Dict{String,Any}("resourceArn" => resourceArn, "secretArn" => secretArn, "sql" => sql); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds_data( - "POST", - "/BatchExecute", - Dict{String,Any}( - "resourceArn" => resourceArn, "secretArn" => secretArn, "sql" => sql - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_execute_statement( resourceArn, secretArn, @@ -101,17 +97,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"database"`: The name of the database. - `"schema"`: The name of the database schema. """ -function begin_transaction( +begin_transaction( resourceArn, secretArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rds_data( + "POST", + "/BeginTransaction", + Dict{String,Any}("resourceArn" => resourceArn, "secretArn" => secretArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds_data( - "POST", - "/BeginTransaction", - Dict{String,Any}("resourceArn" => resourceArn, "secretArn" => secretArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function begin_transaction( resourceArn, secretArn, @@ -145,24 +139,22 @@ Ends a SQL transaction started with the BeginTransaction operation and commits t - `transaction_id`: The identifier of the transaction to end and commit. """ -function commit_transaction( +commit_transaction( resourceArn, secretArn, transactionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds_data( + "POST", + "/CommitTransaction", + Dict{String,Any}( + "resourceArn" => resourceArn, + "secretArn" => secretArn, + "transactionId" => transactionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds_data( - "POST", - "/CommitTransaction", - Dict{String,Any}( - "resourceArn" => resourceArn, - "secretArn" => secretArn, - "transactionId" => transactionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function commit_transaction( resourceArn, secretArn, @@ -211,24 +203,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"database"`: The name of the database. - `"schema"`: The name of the database schema. """ -function execute_sql( +execute_sql( awsSecretStoreArn, dbClusterOrInstanceArn, sqlStatements; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds_data( + "POST", + "/ExecuteSql", + Dict{String,Any}( + "awsSecretStoreArn" => awsSecretStoreArn, + "dbClusterOrInstanceArn" => dbClusterOrInstanceArn, + "sqlStatements" => sqlStatements, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds_data( - "POST", - "/ExecuteSql", - Dict{String,Any}( - "awsSecretStoreArn" => awsSecretStoreArn, - "dbClusterOrInstanceArn" => dbClusterOrInstanceArn, - "sqlStatements" => sqlStatements, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_sql( awsSecretStoreArn, dbClusterOrInstanceArn, @@ -296,19 +286,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the SQL statement in. If the SQL statement is not part of a transaction, don't set this parameter. """ -function execute_statement( +execute_statement( resourceArn, secretArn, sql; aws_config::AbstractAWSConfig=current_aws_config() +) = rds_data( + "POST", + "/Execute", + Dict{String,Any}("resourceArn" => resourceArn, "secretArn" => secretArn, "sql" => sql); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds_data( - "POST", - "/Execute", - Dict{String,Any}( - "resourceArn" => resourceArn, "secretArn" => secretArn, "sql" => sql - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_statement( resourceArn, secretArn, @@ -345,24 +331,22 @@ Performs a rollback of a transaction. Rolling back a transaction cancels its cha - `transaction_id`: The identifier of the transaction to roll back. """ -function rollback_transaction( +rollback_transaction( resourceArn, secretArn, transactionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = rds_data( + "POST", + "/RollbackTransaction", + Dict{String,Any}( + "resourceArn" => resourceArn, + "secretArn" => secretArn, + "transactionId" => transactionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rds_data( - "POST", - "/RollbackTransaction", - Dict{String,Any}( - "resourceArn" => resourceArn, - "secretArn" => secretArn, - "transactionId" => transactionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rollback_transaction( resourceArn, secretArn, diff --git a/src/services/redshift.jl b/src/services/redshift.jl index 6e7ffcbb7..60f06847f 100644 --- a/src/services/redshift.jl +++ b/src/services/redshift.jl @@ -19,21 +19,19 @@ Exchanges a DC1 Reserved Node for a DC2 Reserved Node with no changes to the con GetReservedNodeExchangeOfferings """ -function accept_reserved_node_exchange( +accept_reserved_node_exchange( ReservedNodeId, TargetReservedNodeOfferingId; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "AcceptReservedNodeExchange", + Dict{String,Any}( + "ReservedNodeId" => ReservedNodeId, + "TargetReservedNodeOfferingId" => TargetReservedNodeOfferingId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "AcceptReservedNodeExchange", - Dict{String,Any}( - "ReservedNodeId" => ReservedNodeId, - "TargetReservedNodeOfferingId" => TargetReservedNodeOfferingId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_reserved_node_exchange( ReservedNodeId, TargetReservedNodeOfferingId, @@ -73,25 +71,23 @@ integration on the partner website. - `partner_name`: The name of the partner that is authorized to send data. """ -function add_partner( +add_partner( AccountId, ClusterIdentifier, DatabaseName, PartnerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "AddPartner", + Dict{String,Any}( + "AccountId" => AccountId, + "ClusterIdentifier" => ClusterIdentifier, + "DatabaseName" => DatabaseName, + "PartnerName" => PartnerName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "AddPartner", - Dict{String,Any}( - "AccountId" => AccountId, - "ClusterIdentifier" => ClusterIdentifier, - "DatabaseName" => DatabaseName, - "PartnerName" => PartnerName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_partner( AccountId, ClusterIdentifier, @@ -141,16 +137,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ConsumerRegion"`: From a datashare consumer account, associates a datashare with all existing and future namespaces in the specified Amazon Web Services Region. """ -function associate_data_share_consumer( +associate_data_share_consumer( DataShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "AssociateDataShareConsumer", + Dict{String,Any}("DataShareArn" => DataShareArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "AssociateDataShareConsumer", - Dict{String,Any}("DataShareArn" => DataShareArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_data_share_consumer( DataShareArn, params::AbstractDict{String}; @@ -197,16 +191,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys security group specified by the EC2SecurityGroupName parameter. The Amazon Web Services Access Key ID is not an acceptable value. Example: 111122223333 """ -function authorize_cluster_security_group_ingress( +authorize_cluster_security_group_ingress( ClusterSecurityGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "AuthorizeClusterSecurityGroupIngress", + Dict{String,Any}("ClusterSecurityGroupName" => ClusterSecurityGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "AuthorizeClusterSecurityGroupIngress", - Dict{String,Any}("ClusterSecurityGroupName" => ClusterSecurityGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_cluster_security_group_ingress( ClusterSecurityGroupName, params::AbstractDict{String}; @@ -245,18 +237,16 @@ producer account must have the correct access permissions. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AllowWrites"`: If set to true, allows write operations for a datashare. """ -function authorize_data_share( +authorize_data_share( ConsumerIdentifier, DataShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "AuthorizeDataShare", + Dict{String,Any}( + "ConsumerIdentifier" => ConsumerIdentifier, "DataShareArn" => DataShareArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "AuthorizeDataShare", - Dict{String,Any}( - "ConsumerIdentifier" => ConsumerIdentifier, "DataShareArn" => DataShareArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_data_share( ConsumerIdentifier, DataShareArn, @@ -294,16 +284,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClusterIdentifier"`: The cluster identifier of the cluster to grant access to. - `"VpcIds"`: The virtual private cloud (VPC) identifiers to grant access to. """ -function authorize_endpoint_access( - Account; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +authorize_endpoint_access(Account; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "AuthorizeEndpointAccess", Dict{String,Any}("Account" => Account); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function authorize_endpoint_access( Account, params::AbstractDict{String}; @@ -342,16 +329,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnapshotIdentifier"`: The identifier of the snapshot the account is authorized to restore. """ -function authorize_snapshot_access( +authorize_snapshot_access( AccountWithRestoreAccess; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "AuthorizeSnapshotAccess", + Dict{String,Any}("AccountWithRestoreAccess" => AccountWithRestoreAccess); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "AuthorizeSnapshotAccess", - Dict{String,Any}("AccountWithRestoreAccess" => AccountWithRestoreAccess); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function authorize_snapshot_access( AccountWithRestoreAccess, params::AbstractDict{String}; @@ -385,16 +370,14 @@ Deletes a set of cluster snapshots. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Identifiers"`: A list of identifiers for the snapshots that you want to delete. """ -function batch_delete_cluster_snapshots( +batch_delete_cluster_snapshots( DeleteClusterSnapshotMessage; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "BatchDeleteClusterSnapshots", + Dict{String,Any}("DeleteClusterSnapshotMessage" => DeleteClusterSnapshotMessage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "BatchDeleteClusterSnapshots", - Dict{String,Any}("DeleteClusterSnapshotMessage" => DeleteClusterSnapshotMessage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_cluster_snapshots( DeleteClusterSnapshotMessage, params::AbstractDict{String}; @@ -437,16 +420,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the snapshots, use the force option. - `"SnapshotIdentifierList"`: A list of snapshot identifiers you want to modify. """ -function batch_modify_cluster_snapshots( - String; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +batch_modify_cluster_snapshots(String; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "BatchModifyClusterSnapshots", Dict{String,Any}("String" => String); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_modify_cluster_snapshots( String, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -469,16 +449,13 @@ Cancels a resize operation for a cluster. resize operation for. """ -function cancel_resize( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +cancel_resize(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "CancelResize", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_resize( ClusterIdentifier, params::AbstractDict{String}; @@ -528,21 +505,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys snapshot resource element that specifies anything other than * for the cluster name. Constraints: Must be the identifier for a valid cluster. """ -function copy_cluster_snapshot( +copy_cluster_snapshot( SourceSnapshotIdentifier, TargetSnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CopyClusterSnapshot", + Dict{String,Any}( + "SourceSnapshotIdentifier" => SourceSnapshotIdentifier, + "TargetSnapshotIdentifier" => TargetSnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CopyClusterSnapshot", - Dict{String,Any}( - "SourceSnapshotIdentifier" => SourceSnapshotIdentifier, - "TargetSnapshotIdentifier" => TargetSnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_cluster_snapshot( SourceSnapshotIdentifier, TargetSnapshotIdentifier, @@ -578,21 +553,19 @@ Creates an authentication profile with the specified parameters. - `authentication_profile_name`: The name of the authentication profile to be created. """ -function create_authentication_profile( +create_authentication_profile( AuthenticationProfileContent, AuthenticationProfileName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateAuthenticationProfile", + Dict{String,Any}( + "AuthenticationProfileContent" => AuthenticationProfileContent, + "AuthenticationProfileName" => AuthenticationProfileName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateAuthenticationProfile", - Dict{String,Any}( - "AuthenticationProfileContent" => AuthenticationProfileContent, - "AuthenticationProfileName" => AuthenticationProfileName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_authentication_profile( AuthenticationProfileContent, AuthenticationProfileName, @@ -772,23 +745,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated with the cluster. Default: The default VPC security group is associated with the cluster. """ -function create_cluster( +create_cluster( ClusterIdentifier, MasterUsername, NodeType; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateCluster", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, + "MasterUsername" => MasterUsername, + "NodeType" => NodeType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateCluster", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, - "MasterUsername" => MasterUsername, - "NodeType" => NodeType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster( ClusterIdentifier, MasterUsername, @@ -845,23 +816,21 @@ in the Amazon Redshift Cluster Management Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A list of tag instances. """ -function create_cluster_parameter_group( +create_cluster_parameter_group( Description, ParameterGroupFamily, ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateClusterParameterGroup", + Dict{String,Any}( + "Description" => Description, + "ParameterGroupFamily" => ParameterGroupFamily, + "ParameterGroupName" => ParameterGroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateClusterParameterGroup", - Dict{String,Any}( - "Description" => Description, - "ParameterGroupFamily" => ParameterGroupFamily, - "ParameterGroupName" => ParameterGroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster_parameter_group( Description, ParameterGroupFamily, @@ -906,21 +875,19 @@ Cluster Security Groups in the Amazon Redshift Cluster Management Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A list of tag instances. """ -function create_cluster_security_group( +create_cluster_security_group( ClusterSecurityGroupName, Description; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateClusterSecurityGroup", + Dict{String,Any}( + "ClusterSecurityGroupName" => ClusterSecurityGroupName, + "Description" => Description, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateClusterSecurityGroup", - Dict{String,Any}( - "ClusterSecurityGroupName" => ClusterSecurityGroupName, - "Description" => Description, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster_security_group( ClusterSecurityGroupName, Description, @@ -967,21 +934,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys -1 or an integer between 1 and 3,653. The default value is -1. - `"Tags"`: A list of tag instances. """ -function create_cluster_snapshot( +create_cluster_snapshot( ClusterIdentifier, SnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateClusterSnapshot", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, + "SnapshotIdentifier" => SnapshotIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateClusterSnapshot", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, - "SnapshotIdentifier" => SnapshotIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster_snapshot( ClusterIdentifier, SnapshotIdentifier, @@ -1029,23 +994,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys single request. - `"Tags"`: A list of tag instances. """ -function create_cluster_subnet_group( +create_cluster_subnet_group( ClusterSubnetGroupName, Description, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateClusterSubnetGroup", + Dict{String,Any}( + "ClusterSubnetGroupName" => ClusterSubnetGroupName, + "Description" => Description, + "SubnetIdentifier" => SubnetIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateClusterSubnetGroup", - Dict{String,Any}( - "ClusterSubnetGroupName" => ClusterSubnetGroupName, - "Description" => Description, - "SubnetIdentifier" => SubnetIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster_subnet_group( ClusterSubnetGroupName, Description, @@ -1086,23 +1049,21 @@ Name (ARN). - `custom_domain_name`: The custom domain name for a custom domain association. """ -function create_custom_domain_association( +create_custom_domain_association( ClusterIdentifier, CustomDomainCertificateArn, CustomDomainName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateCustomDomainAssociation", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, + "CustomDomainCertificateArn" => CustomDomainCertificateArn, + "CustomDomainName" => CustomDomainName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateCustomDomainAssociation", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, - "CustomDomainCertificateArn" => CustomDomainCertificateArn, - "CustomDomainName" => CustomDomainName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_domain_association( ClusterIdentifier, CustomDomainCertificateArn, @@ -1149,18 +1110,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. """ -function create_endpoint_access( +create_endpoint_access( EndpointName, SubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "CreateEndpointAccess", + Dict{String,Any}("EndpointName" => EndpointName, "SubnetGroupName" => SubnetGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateEndpointAccess", - Dict{String,Any}( - "EndpointName" => EndpointName, "SubnetGroupName" => SubnetGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint_access( EndpointName, SubnetGroupName, @@ -1236,18 +1193,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys cluster-snapshot, and scheduled-action. - `"Tags"`: A list of tag instances. """ -function create_event_subscription( +create_event_subscription( SnsTopicArn, SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "CreateEventSubscription", + Dict{String,Any}("SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateEventSubscription", - Dict{String,Any}( - "SnsTopicArn" => SnsTopicArn, "SubscriptionName" => SubscriptionName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_event_subscription( SnsTopicArn, SubscriptionName, @@ -1291,18 +1244,14 @@ Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A list of tag instances. """ -function create_hsm_client_certificate( +create_hsm_client_certificate( HsmClientCertificateIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "CreateHsmClientCertificate", + Dict{String,Any}("HsmClientCertificateIdentifier" => HsmClientCertificateIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateHsmClientCertificate", - Dict{String,Any}( - "HsmClientCertificateIdentifier" => HsmClientCertificateIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hsm_client_certificate( HsmClientCertificateIdentifier, params::AbstractDict{String}; @@ -1352,7 +1301,7 @@ Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A list of tag instances. """ -function create_hsm_configuration( +create_hsm_configuration( Description, HsmConfigurationIdentifier, HsmIpAddress, @@ -1360,21 +1309,19 @@ function create_hsm_configuration( HsmPartitionPassword, HsmServerPublicCertificate; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateHsmConfiguration", + Dict{String,Any}( + "Description" => Description, + "HsmConfigurationIdentifier" => HsmConfigurationIdentifier, + "HsmIpAddress" => HsmIpAddress, + "HsmPartitionName" => HsmPartitionName, + "HsmPartitionPassword" => HsmPartitionPassword, + "HsmServerPublicCertificate" => HsmServerPublicCertificate, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateHsmConfiguration", - Dict{String,Any}( - "Description" => Description, - "HsmConfigurationIdentifier" => HsmConfigurationIdentifier, - "HsmIpAddress" => HsmIpAddress, - "HsmPartitionName" => HsmPartitionName, - "HsmPartitionPassword" => HsmPartitionPassword, - "HsmServerPublicCertificate" => HsmServerPublicCertificate, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hsm_configuration( Description, HsmConfigurationIdentifier, @@ -1432,25 +1379,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServiceIntegrations"`: A collection of service integrations for the Redshift IAM Identity Center application. """ -function create_redshift_idc_application( +create_redshift_idc_application( IamRoleArn, IdcDisplayName, IdcInstanceArn, RedshiftIdcApplicationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateRedshiftIdcApplication", + Dict{String,Any}( + "IamRoleArn" => IamRoleArn, + "IdcDisplayName" => IdcDisplayName, + "IdcInstanceArn" => IdcInstanceArn, + "RedshiftIdcApplicationName" => RedshiftIdcApplicationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateRedshiftIdcApplication", - Dict{String,Any}( - "IamRoleArn" => IamRoleArn, - "IdcDisplayName" => IdcDisplayName, - "IdcInstanceArn" => IdcInstanceArn, - "RedshiftIdcApplicationName" => RedshiftIdcApplicationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_redshift_idc_application( IamRoleArn, IdcDisplayName, @@ -1507,25 +1452,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys scheduled action does not trigger. For more information about this parameter, see ScheduledAction. """ -function create_scheduled_action( +create_scheduled_action( IamRole, Schedule, ScheduledActionName, TargetAction; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateScheduledAction", + Dict{String,Any}( + "IamRole" => IamRole, + "Schedule" => Schedule, + "ScheduledActionName" => ScheduledActionName, + "TargetAction" => TargetAction, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateScheduledAction", - Dict{String,Any}( - "IamRole" => IamRole, - "Schedule" => Schedule, - "ScheduledActionName" => ScheduledActionName, - "TargetAction" => TargetAction, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_scheduled_action( IamRole, Schedule, @@ -1575,16 +1518,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Redshift permission. If no key is specified, the default key is used. - `"Tags"`: A list of tag instances. """ -function create_snapshot_copy_grant( +create_snapshot_copy_grant( SnapshotCopyGrantName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "CreateSnapshotCopyGrant", + Dict{String,Any}("SnapshotCopyGrantName" => SnapshotCopyGrantName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateSnapshotCopyGrant", - Dict{String,Any}("SnapshotCopyGrantName" => SnapshotCopyGrantName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_snapshot_copy_grant( SnapshotCopyGrantName, params::AbstractDict{String}; @@ -1622,11 +1563,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys characters are allowed for the identifier. - `"Tags"`: An optional set of tags you can use to search for the schedule. """ -function create_snapshot_schedule(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "CreateSnapshotSchedule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_snapshot_schedule(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift( + "CreateSnapshotSchedule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function create_snapshot_schedule( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1664,14 +1603,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys multiple tags with a space. For example, --tags \"Key\"=\"owner\",\"Value\"=\"admin\" \"Key\"=\"environment\",\"Value\"=\"test\" \"Key\"=\"version\",\"Value\"=\"1.0\". """ -function create_tags(ResourceName, Tag; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +create_tags(ResourceName, Tag; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "CreateTags", Dict{String,Any}("ResourceName" => ResourceName, "Tag" => Tag); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_tags( ResourceName, Tag, @@ -1717,25 +1655,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The default is monthly. - `"Tags"`: A list of tag instances. """ -function create_usage_limit( +create_usage_limit( Amount, ClusterIdentifier, FeatureType, LimitType; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "CreateUsageLimit", + Dict{String,Any}( + "Amount" => Amount, + "ClusterIdentifier" => ClusterIdentifier, + "FeatureType" => FeatureType, + "LimitType" => LimitType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "CreateUsageLimit", - Dict{String,Any}( - "Amount" => Amount, - "ClusterIdentifier" => ClusterIdentifier, - "FeatureType" => FeatureType, - "LimitType" => LimitType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_usage_limit( Amount, ClusterIdentifier, @@ -1777,18 +1713,16 @@ From a datashare producer account, removes authorization from the specified data authorization from. """ -function deauthorize_data_share( +deauthorize_data_share( ConsumerIdentifier, DataShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeauthorizeDataShare", + Dict{String,Any}( + "ConsumerIdentifier" => ConsumerIdentifier, "DataShareArn" => DataShareArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeauthorizeDataShare", - Dict{String,Any}( - "ConsumerIdentifier" => ConsumerIdentifier, "DataShareArn" => DataShareArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deauthorize_data_share( ConsumerIdentifier, DataShareArn, @@ -1822,16 +1756,14 @@ Deletes an authentication profile. - `authentication_profile_name`: The name of the authentication profile to delete. """ -function delete_authentication_profile( +delete_authentication_profile( AuthenticationProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteAuthenticationProfile", + Dict{String,Any}("AuthenticationProfileName" => AuthenticationProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteAuthenticationProfile", - Dict{String,Any}("AuthenticationProfileName" => AuthenticationProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_authentication_profile( AuthenticationProfileName, params::AbstractDict{String}; @@ -1890,16 +1822,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The FinalClusterSnapshotIdentifier parameter must be specified if SkipFinalClusterSnapshot is false. Default: false """ -function delete_cluster( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +delete_cluster(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DeleteCluster", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cluster( ClusterIdentifier, params::AbstractDict{String}; @@ -1930,16 +1859,14 @@ if it is associated with a cluster. parameter group. """ -function delete_cluster_parameter_group( +delete_cluster_parameter_group( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteClusterParameterGroup", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteClusterParameterGroup", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cluster_parameter_group( ParameterGroupName, params::AbstractDict{String}; @@ -1970,16 +1897,14 @@ in the Amazon Redshift Cluster Management Guide. - `cluster_security_group_name`: The name of the cluster security group to be deleted. """ -function delete_cluster_security_group( +delete_cluster_security_group( ClusterSecurityGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteClusterSecurityGroup", + Dict{String,Any}("ClusterSecurityGroupName" => ClusterSecurityGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteClusterSecurityGroup", - Dict{String,Any}("ClusterSecurityGroupName" => ClusterSecurityGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cluster_security_group( ClusterSecurityGroupName, params::AbstractDict{String}; @@ -2022,16 +1947,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys snapshot resource element that specifies anything other than * for the cluster name. Constraints: Must be the name of valid cluster. """ -function delete_cluster_snapshot( +delete_cluster_snapshot( SnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteClusterSnapshot", + Dict{String,Any}("SnapshotIdentifier" => SnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteClusterSnapshot", - Dict{String,Any}("SnapshotIdentifier" => SnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cluster_snapshot( SnapshotIdentifier, params::AbstractDict{String}; @@ -2059,16 +1982,14 @@ Deletes the specified cluster subnet group. - `cluster_subnet_group_name`: The name of the cluster subnet group name to be deleted. """ -function delete_cluster_subnet_group( +delete_cluster_subnet_group( ClusterSubnetGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteClusterSubnetGroup", + Dict{String,Any}("ClusterSubnetGroupName" => ClusterSubnetGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteClusterSubnetGroup", - Dict{String,Any}("ClusterSubnetGroupName" => ClusterSubnetGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cluster_subnet_group( ClusterSubnetGroupName, params::AbstractDict{String}; @@ -2100,18 +2021,16 @@ Contains information about deleting a custom domain association for a cluster. - `custom_domain_name`: The custom domain name for the custom domain association. """ -function delete_custom_domain_association( +delete_custom_domain_association( ClusterIdentifier, CustomDomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteCustomDomainAssociation", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, "CustomDomainName" => CustomDomainName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteCustomDomainAssociation", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, "CustomDomainName" => CustomDomainName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_domain_association( ClusterIdentifier, CustomDomainName, @@ -2145,16 +2064,13 @@ Deletes a Redshift-managed VPC endpoint. - `endpoint_name`: The Redshift-managed VPC endpoint to delete. """ -function delete_endpoint_access( - EndpointName; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +delete_endpoint_access(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DeleteEndpointAccess", Dict{String,Any}("EndpointName" => EndpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_endpoint_access( EndpointName, params::AbstractDict{String}; @@ -2181,16 +2097,14 @@ Deletes an Amazon Redshift event notification subscription. be deleted. """ -function delete_event_subscription( +delete_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -2219,18 +2133,14 @@ Deletes the specified HSM client certificate. deleted. """ -function delete_hsm_client_certificate( +delete_hsm_client_certificate( HsmClientCertificateIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteHsmClientCertificate", + Dict{String,Any}("HsmClientCertificateIdentifier" => HsmClientCertificateIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteHsmClientCertificate", - Dict{String,Any}( - "HsmClientCertificateIdentifier" => HsmClientCertificateIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_hsm_client_certificate( HsmClientCertificateIdentifier, params::AbstractDict{String}; @@ -2263,16 +2173,14 @@ Deletes the specified Amazon Redshift HSM configuration. to be deleted. """ -function delete_hsm_configuration( +delete_hsm_configuration( HsmConfigurationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteHsmConfiguration", + Dict{String,Any}("HsmConfigurationIdentifier" => HsmConfigurationIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteHsmConfiguration", - Dict{String,Any}("HsmConfigurationIdentifier" => HsmConfigurationIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_hsm_configuration( HsmConfigurationIdentifier, params::AbstractDict{String}; @@ -2309,25 +2217,23 @@ integration is deleted at the partner's website. - `partner_name`: The name of the partner that is authorized to send data. """ -function delete_partner( +delete_partner( AccountId, ClusterIdentifier, DatabaseName, PartnerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "DeletePartner", + Dict{String,Any}( + "AccountId" => AccountId, + "ClusterIdentifier" => ClusterIdentifier, + "DatabaseName" => DatabaseName, + "PartnerName" => PartnerName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeletePartner", - Dict{String,Any}( - "AccountId" => AccountId, - "ClusterIdentifier" => ClusterIdentifier, - "DatabaseName" => DatabaseName, - "PartnerName" => PartnerName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_partner( AccountId, ClusterIdentifier, @@ -2366,16 +2272,14 @@ Deletes an Amazon Redshift IAM Identity Center application. application. """ -function delete_redshift_idc_application( +delete_redshift_idc_application( RedshiftIdcApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteRedshiftIdcApplication", + Dict{String,Any}("RedshiftIdcApplicationArn" => RedshiftIdcApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteRedshiftIdcApplication", - Dict{String,Any}("RedshiftIdcApplicationArn" => RedshiftIdcApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_redshift_idc_application( RedshiftIdcApplicationArn, params::AbstractDict{String}; @@ -2406,16 +2310,13 @@ Deletes the resource policy for a specified resource. policy is deleted. """ -function delete_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +delete_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DeleteResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -2441,16 +2342,14 @@ Deletes a scheduled action. - `scheduled_action_name`: The name of the scheduled action to delete. """ -function delete_scheduled_action( +delete_scheduled_action( ScheduledActionName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteScheduledAction", + Dict{String,Any}("ScheduledActionName" => ScheduledActionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteScheduledAction", - Dict{String,Any}("ScheduledActionName" => ScheduledActionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_scheduled_action( ScheduledActionName, params::AbstractDict{String}; @@ -2480,16 +2379,14 @@ Deletes the specified snapshot copy grant. - `snapshot_copy_grant_name`: The name of the snapshot copy grant to delete. """ -function delete_snapshot_copy_grant( +delete_snapshot_copy_grant( SnapshotCopyGrantName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteSnapshotCopyGrant", + Dict{String,Any}("SnapshotCopyGrantName" => SnapshotCopyGrantName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteSnapshotCopyGrant", - Dict{String,Any}("SnapshotCopyGrantName" => SnapshotCopyGrantName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_snapshot_copy_grant( SnapshotCopyGrantName, params::AbstractDict{String}; @@ -2519,16 +2416,14 @@ Deletes a snapshot schedule. - `schedule_identifier`: A unique identifier of the snapshot schedule to delete. """ -function delete_snapshot_schedule( +delete_snapshot_schedule( ScheduleIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DeleteSnapshotSchedule", + Dict{String,Any}("ScheduleIdentifier" => ScheduleIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DeleteSnapshotSchedule", - Dict{String,Any}("ScheduleIdentifier" => ScheduleIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_snapshot_schedule( ScheduleIdentifier, params::AbstractDict{String}; @@ -2562,16 +2457,13 @@ to delete the tag or tags. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"TagKeys"`: The tag key that you want to delete. """ -function delete_tags( - ResourceName, TagKey; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +delete_tags(ResourceName, TagKey; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DeleteTags", Dict{String,Any}("ResourceName" => ResourceName, "TagKey" => TagKey); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tags( ResourceName, TagKey, @@ -2602,16 +2494,13 @@ Deletes a usage limit from a cluster. - `usage_limit_id`: The identifier of the usage limit to delete. """ -function delete_usage_limit( - UsageLimitId; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +delete_usage_limit(UsageLimitId; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DeleteUsageLimit", Dict{String,Any}("UsageLimitId" => UsageLimitId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_usage_limit( UsageLimitId, params::AbstractDict{String}; @@ -2637,11 +2526,10 @@ Returns a list of attributes attached to an account Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AttributeNames"`: A list of attribute names. """ -function describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +describe_account_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeAccountAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2664,15 +2552,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AuthenticationProfileName"`: The name of the authentication profile to describe. If not specified then all authentication profiles owned by the account are listed. """ -function describe_authentication_profiles(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_authentication_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeAuthenticationProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_authentication_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2707,11 +2592,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys records by providing the returned marker value in the marker parameter and retrying the request. Default: 100 Constraints: minimum 20, maximum 100. """ -function describe_cluster_db_revisions(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +describe_cluster_db_revisions(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeClusterDbRevisions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_cluster_db_revisions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2766,15 +2650,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If you specify both of these tag values in the request, Amazon Redshift returns a response with the parameter groups that have either or both of these tag values associated with them. """ -function describe_cluster_parameter_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_cluster_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeClusterParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cluster_parameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2819,16 +2700,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the same as the default parameter group. Default: All parameter types returned. Valid Values: user | engine-default """ -function describe_cluster_parameters( +describe_cluster_parameters( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DescribeClusterParameters", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DescribeClusterParameters", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cluster_parameters( ParameterGroupName, params::AbstractDict{String}; @@ -2889,15 +2768,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you specify both of these tag values in the request, Amazon Redshift returns a response with the security groups that have either or both of these tag values associated with them. """ -function describe_cluster_security_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_cluster_security_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeClusterSecurityGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cluster_security_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2976,11 +2852,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys both of these tag values in the request, Amazon Redshift returns a response with the snapshots that have either or both of these tag values associated with them. """ -function describe_cluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeClusterSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_cluster_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift( + "DescribeClusterSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_cluster_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3031,15 +2905,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you specify both of these tag values in the request, Amazon Redshift returns a response with the subnet groups that have either or both of these tag values associated with them. """ -function describe_cluster_subnet_groups(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_cluster_subnet_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeClusterSubnetGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cluster_subnet_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3067,11 +2938,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys marker value in the Marker parameter and retrying the request. - `"MaxRecords"`: An integer value for the maximum number of maintenance tracks to return. """ -function describe_cluster_tracks(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeClusterTracks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_cluster_tracks(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift( + "DescribeClusterTracks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_cluster_tracks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3109,11 +2978,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrying the command with the returned marker value. Default: 100 Constraints: minimum 20, maximum 100. """ -function describe_cluster_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeClusterVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_cluster_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift( + "DescribeClusterVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_cluster_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3167,11 +3034,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys these tag values in the request, Amazon Redshift returns a response with the clusters that have either or both of these tag values associated with them. """ -function describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift("DescribeClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3194,15 +3058,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Marker"`: The marker for the custom domain association. - `"MaxRecords"`: The maximum records setting for the associated custom domain. """ -function describe_custom_domain_associations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_custom_domain_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeCustomDomainAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_custom_domain_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3233,11 +3094,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value. """ -function describe_data_shares(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeDataShares"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_data_shares(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift("DescribeDataShares"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_data_shares( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3270,15 +3128,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this field is specified, Amazon Redshift returns the list of datashares that have the specified status. """ -function describe_data_shares_for_consumer(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_data_shares_for_consumer(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeDataSharesForConsumer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_data_shares_for_consumer( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3313,15 +3168,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: An identifier giving the status of a datashare in the producer. If this field is specified, Amazon Redshift returns the list of datashares that have the specified status. """ -function describe_data_shares_for_producer(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_data_shares_for_producer(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeDataSharesForProducer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_data_shares_for_producer( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3357,16 +3209,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrying the command with the returned marker value. Default: 100 Constraints: minimum 20, maximum 100. """ -function describe_default_cluster_parameters( +describe_default_cluster_parameters( ParameterGroupFamily; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DescribeDefaultClusterParameters", + Dict{String,Any}("ParameterGroupFamily" => ParameterGroupFamily); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DescribeDefaultClusterParameters", - Dict{String,Any}("ParameterGroupFamily" => ParameterGroupFamily); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_default_cluster_parameters( ParameterGroupFamily, params::AbstractDict{String}; @@ -3405,11 +3255,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceOwner"`: The Amazon Web Services account ID of the owner of the cluster. - `"VpcId"`: The virtual private cloud (VPC) identifier with access to the cluster. """ -function describe_endpoint_access(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeEndpointAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_endpoint_access(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift( + "DescribeEndpointAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_endpoint_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3443,15 +3291,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exist than the specified MaxRecords value, a pagination token called a Marker is included in the response so that the remaining results can be retrieved. """ -function describe_endpoint_authorization(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_endpoint_authorization(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeEndpointAuthorization"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_endpoint_authorization( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3477,11 +3322,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys described event categories apply. Valid values: cluster, cluster-snapshot, cluster-parameter-group, cluster-security-group, and scheduled-action. """ -function describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_event_categories(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift( + "DescribeEventCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_event_categories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3532,11 +3375,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response with the subscriptions that have either or both of these tag values associated with them. """ -function describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +describe_event_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeEventSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_event_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3592,11 +3434,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page. Example: 2009-07-08T18:00Z """ -function describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift("DescribeEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3646,15 +3485,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response with the HSM client certificates that have either or both of these tag values associated with them. """ -function describe_hsm_client_certificates(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_hsm_client_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeHsmClientCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_hsm_client_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3707,11 +3543,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with the HSM configurations that have either or both of these tag values associated with them. """ -function describe_hsm_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +describe_hsm_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeHsmConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_hsm_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3744,13 +3579,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 20, maximum 100. - `"TargetArn"`: The Amazon Resource Name (ARN) of the target of an inbound integration. """ -function describe_inbound_integrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +describe_inbound_integrations(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeInboundIntegrations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_inbound_integrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3774,16 +3608,14 @@ the specified Amazon Redshift cluster. Example: examplecluster """ -function describe_logging_status( +describe_logging_status( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DescribeLoggingStatus", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DescribeLoggingStatus", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_logging_status( ClusterIdentifier, params::AbstractDict{String}; @@ -3837,16 +3669,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnapshotIdentifier"`: The identifier of the snapshot to evaluate for possible node configurations. """ -function describe_node_configuration_options( +describe_node_configuration_options( ActionType; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DescribeNodeConfigurationOptions", + Dict{String,Any}("ActionType" => ActionType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DescribeNodeConfigurationOptions", - Dict{String,Any}("ActionType" => ActionType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_node_configuration_options( ActionType, params::AbstractDict{String}; @@ -3892,15 +3722,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NodeType"`: The node type filter value. Specify this parameter to show only the available offerings matching the specified node type. """ -function describe_orderable_cluster_options(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_orderable_cluster_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeOrderableClusterOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_orderable_cluster_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3930,18 +3757,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PartnerName"`: The name of the partner that is being described. If partner name is not specified, then all partner integrations are described. """ -function describe_partners( +describe_partners( AccountId, ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DescribePartners", + Dict{String,Any}("AccountId" => AccountId, "ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DescribePartners", - Dict{String,Any}( - "AccountId" => AccountId, "ClusterIdentifier" => ClusterIdentifier - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_partners( AccountId, ClusterIdentifier, @@ -3984,15 +3807,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RedshiftIdcApplicationArn"`: The ARN for the Redshift application that integrates with IAM Identity Center. """ -function describe_redshift_idc_applications(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_redshift_idc_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeRedshiftIdcApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_redshift_idc_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4026,15 +3846,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReservedNodeId"`: The identifier of the source reserved node in a reserved-node exchange request. """ -function describe_reserved_node_exchange_status(; +describe_reserved_node_exchange_status(; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DescribeReservedNodeExchangeStatus"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DescribeReservedNodeExchangeStatus"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_reserved_node_exchange_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4072,15 +3890,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 20, maximum 100. - `"ReservedNodeOfferingId"`: The unique identifier for the offering. """ -function describe_reserved_node_offerings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_reserved_node_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeReservedNodeOfferings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_reserved_node_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4112,11 +3927,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 20, maximum 100. - `"ReservedNodeId"`: Identifier for the node reservation. """ -function describe_reserved_nodes(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeReservedNodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_reserved_nodes(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift( + "DescribeReservedNodes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_reserved_nodes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4144,16 +3957,13 @@ and specifying a different number or type of nodes for the cluster. clusters defined for an Amazon Web Services account are returned. """ -function describe_resize( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +describe_resize(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeResize", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_resize( ClusterIdentifier, params::AbstractDict{String}; @@ -4199,11 +4009,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys scheduled actions that have invocations after this time are retrieved. - `"TargetActionType"`: The type of the scheduled actions to retrieve. """ -function describe_scheduled_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeScheduledActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_scheduled_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift( + "DescribeScheduledActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_scheduled_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4248,11 +4056,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the request, Amazon Redshift returns a response with all resources that have either or both of these tag values associated with them. """ -function describe_snapshot_copy_grants(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +describe_snapshot_copy_grants(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeSnapshotCopyGrants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_snapshot_copy_grants( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4287,11 +4094,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagKeys"`: The key value for a snapshot schedule tag. - `"TagValues"`: The value corresponding to the key of the snapshot schedule tag. """ -function describe_snapshot_schedules(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +describe_snapshot_schedules(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeSnapshotSchedules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_snapshot_schedules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4310,11 +4116,8 @@ end Returns account level backups storage size and provisional storage. """ -function describe_storage(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeStorage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_storage(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift("DescribeStorage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_storage( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4347,11 +4150,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for. If you don't specify a TableRestoreRequestId value, then DescribeTableRestoreStatus returns the status of all in-progress table restore requests. """ -function describe_table_restore_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +describe_table_restore_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DescribeTableRestoreStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_table_restore_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4410,9 +4212,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the request, Amazon Redshift returns a response with all resources that have either or both of these tag values associated with them. """ -function describe_tags(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift("DescribeTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_tags(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift("DescribeTags"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_tags( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4462,11 +4263,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys them. - `"UsageLimitId"`: The identifier of the usage limit to describe. """ -function describe_usage_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "DescribeUsageLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_usage_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift("DescribeUsageLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_usage_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4490,16 +4288,13 @@ Amazon Redshift cluster. Example: examplecluster """ -function disable_logging( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +disable_logging(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "DisableLogging", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_logging( ClusterIdentifier, params::AbstractDict{String}; @@ -4532,16 +4327,14 @@ that grants Amazon Redshift permission to the key in the destination region. of an existing cluster that has cross-region snapshot copy enabled. """ -function disable_snapshot_copy( +disable_snapshot_copy( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DisableSnapshotCopy", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DisableSnapshotCopy", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_snapshot_copy( ClusterIdentifier, params::AbstractDict{String}; @@ -4578,16 +4371,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DisassociateEntireAccount"`: A value that specifies whether association for the datashare is removed from the entire account. """ -function disassociate_data_share_consumer( +disassociate_data_share_consumer( DataShareArn; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "DisassociateDataShareConsumer", + Dict{String,Any}("DataShareArn" => DataShareArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "DisassociateDataShareConsumer", - Dict{String,Any}("DataShareArn" => DataShareArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_data_share_consumer( DataShareArn, params::AbstractDict{String}; @@ -4628,16 +4419,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys backslash (), or control characters. The hexadecimal codes for invalid characters are: x00 to x20 x22 x27 x5c x7f or larger """ -function enable_logging( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +enable_logging(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "EnableLogging", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_logging( ClusterIdentifier, params::AbstractDict{String}; @@ -4682,19 +4470,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnapshotCopyGrantName"`: The name of the snapshot copy grant to use when snapshots of an Amazon Web Services KMS-encrypted cluster are copied to the destination region. """ -function enable_snapshot_copy( +enable_snapshot_copy( ClusterIdentifier, DestinationRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "EnableSnapshotCopy", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, + "DestinationRegion" => DestinationRegion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "EnableSnapshotCopy", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, - "DestinationRegion" => DestinationRegion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_snapshot_copy( ClusterIdentifier, DestinationRegion, @@ -4730,16 +4516,14 @@ Availability Zone. unit will be failed over to another Availability Zone. """ -function failover_primary_compute( +failover_primary_compute( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "FailoverPrimaryCompute", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "FailoverPrimaryCompute", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function failover_primary_compute( ClusterIdentifier, params::AbstractDict{String}; @@ -4817,14 +4601,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DurationSeconds"`: The number of seconds until the returned temporary password expires. Constraint: minimum 900, maximum 3600. Default: 900 """ -function get_cluster_credentials(DbUser; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +get_cluster_credentials(DbUser; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "GetClusterCredentials", Dict{String,Any}("DbUser" => DbUser); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cluster_credentials( DbUser, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4861,15 +4644,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DurationSeconds"`: The number of seconds until the returned temporary password expires. Range: 900-3600. Default: 900. """ -function get_cluster_credentials_with_iam(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +get_cluster_credentials_with_iam(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "GetClusterCredentialsWithIAM"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cluster_credentials_with_iam( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4909,16 +4689,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnapshotIdentifier"`: The identifier for the snapshot that is the source for the reserved-node exchange. """ -function get_reserved_node_exchange_configuration_options( +get_reserved_node_exchange_configuration_options( ActionType; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "GetReservedNodeExchangeConfigurationOptions", + Dict{String,Any}("ActionType" => ActionType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "GetReservedNodeExchangeConfigurationOptions", - Dict{String,Any}("ActionType" => ActionType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reserved_node_exchange_configuration_options( ActionType, params::AbstractDict{String}; @@ -4952,16 +4730,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxRecords"`: An integer setting the maximum number of ReservedNodeOfferings to retrieve. """ -function get_reserved_node_exchange_offerings( +get_reserved_node_exchange_offerings( ReservedNodeId; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "GetReservedNodeExchangeOfferings", + Dict{String,Any}("ReservedNodeId" => ReservedNodeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "GetReservedNodeExchangeOfferings", - Dict{String,Any}("ReservedNodeId" => ReservedNodeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reserved_node_exchange_offerings( ReservedNodeId, params::AbstractDict{String}; @@ -4988,16 +4764,13 @@ Get the resource policy for a specified resource. policy is fetched. """ -function get_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +get_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "GetResourcePolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -5040,11 +4813,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys identifier and the cluster namespace ARN parameters are specified, then recommendations for all clusters in the account are returned. """ -function list_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "ListRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift("ListRecommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5071,16 +4841,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AquaConfigurationStatus"`: This parameter is retired. Amazon Redshift automatically determines whether to use AQUA (Advanced Query Accelerator). """ -function modify_aqua_configuration( +modify_aqua_configuration( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyAquaConfiguration", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyAquaConfiguration", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_aqua_configuration( ClusterIdentifier, params::AbstractDict{String}; @@ -5110,21 +4878,19 @@ Modifies an authentication profile. - `authentication_profile_name`: The name of the authentication profile to replace. """ -function modify_authentication_profile( +modify_authentication_profile( AuthenticationProfileContent, AuthenticationProfileName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "ModifyAuthenticationProfile", + Dict{String,Any}( + "AuthenticationProfileContent" => AuthenticationProfileContent, + "AuthenticationProfileName" => AuthenticationProfileName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyAuthenticationProfile", - Dict{String,Any}( - "AuthenticationProfileContent" => AuthenticationProfileContent, - "AuthenticationProfileName" => AuthenticationProfileName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_authentication_profile( AuthenticationProfileContent, AuthenticationProfileName, @@ -5282,16 +5048,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is asynchronously applied as soon as possible. """ -function modify_cluster( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +modify_cluster(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "ModifyCluster", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_cluster( ClusterIdentifier, params::AbstractDict{String}; @@ -5323,18 +5086,16 @@ the database running in a cluster. from the response to the DescribeClusterDbRevisions request. """ -function modify_cluster_db_revision( +modify_cluster_db_revision( ClusterIdentifier, RevisionTarget; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyClusterDbRevision", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, "RevisionTarget" => RevisionTarget + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyClusterDbRevision", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, "RevisionTarget" => RevisionTarget - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cluster_db_revision( ClusterIdentifier, RevisionTarget, @@ -5380,16 +5141,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RemoveIamRoles"`: Zero or more IAM roles in ARN format to disassociate from the cluster. """ -function modify_cluster_iam_roles( +modify_cluster_iam_roles( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyClusterIamRoles", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyClusterIamRoles", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cluster_iam_roles( ClusterIdentifier, params::AbstractDict{String}; @@ -5429,16 +5188,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeferMaintenanceStartTime"`: A timestamp indicating the start time for the deferred maintenance window. """ -function modify_cluster_maintenance( +modify_cluster_maintenance( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyClusterMaintenance", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyClusterMaintenance", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cluster_maintenance( ClusterIdentifier, params::AbstractDict{String}; @@ -5480,18 +5237,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys optional. For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter. """ -function modify_cluster_parameter_group( +modify_cluster_parameter_group( Parameter, ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyClusterParameterGroup", + Dict{String,Any}("Parameter" => Parameter, "ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyClusterParameterGroup", - Dict{String,Any}( - "Parameter" => Parameter, "ParameterGroupName" => ParameterGroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cluster_parameter_group( Parameter, ParameterGroupName, @@ -5533,16 +5286,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys falls outside of the new retention period, you can specify the force option to immediately delete the snapshot. The value must be either -1 or an integer between 1 and 3,653. """ -function modify_cluster_snapshot( +modify_cluster_snapshot( SnapshotIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyClusterSnapshot", + Dict{String,Any}("SnapshotIdentifier" => SnapshotIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyClusterSnapshot", - Dict{String,Any}("SnapshotIdentifier" => SnapshotIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cluster_snapshot( SnapshotIdentifier, params::AbstractDict{String}; @@ -5577,16 +5328,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ScheduleIdentifier"`: A unique alphanumeric identifier for the schedule that you want to associate with the cluster. """ -function modify_cluster_snapshot_schedule( +modify_cluster_snapshot_schedule( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyClusterSnapshotSchedule", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyClusterSnapshotSchedule", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cluster_snapshot_schedule( ClusterIdentifier, params::AbstractDict{String}; @@ -5622,21 +5371,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubnetIds"`: An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request. """ -function modify_cluster_subnet_group( +modify_cluster_subnet_group( ClusterSubnetGroupName, SubnetIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "ModifyClusterSubnetGroup", + Dict{String,Any}( + "ClusterSubnetGroupName" => ClusterSubnetGroupName, + "SubnetIdentifier" => SubnetIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyClusterSubnetGroup", - Dict{String,Any}( - "ClusterSubnetGroupName" => ClusterSubnetGroupName, - "SubnetIdentifier" => SubnetIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_cluster_subnet_group( ClusterSubnetGroupName, SubnetIdentifier, @@ -5674,23 +5421,21 @@ Contains information for changing a custom domain association. - `custom_domain_name`: The custom domain name for a changed custom domain association. """ -function modify_custom_domain_association( +modify_custom_domain_association( ClusterIdentifier, CustomDomainCertificateArn, CustomDomainName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "ModifyCustomDomainAssociation", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, + "CustomDomainCertificateArn" => CustomDomainCertificateArn, + "CustomDomainName" => CustomDomainName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyCustomDomainAssociation", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, - "CustomDomainCertificateArn" => CustomDomainCertificateArn, - "CustomDomainName" => CustomDomainName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_custom_domain_association( ClusterIdentifier, CustomDomainCertificateArn, @@ -5730,16 +5475,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcSecurityGroupIds"`: The complete list of VPC security groups associated with the endpoint after the endpoint is modified. """ -function modify_endpoint_access( - EndpointName; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +modify_endpoint_access(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "ModifyEndpointAccess", Dict{String,Any}("EndpointName" => EndpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_endpoint_access( EndpointName, params::AbstractDict{String}; @@ -5788,16 +5530,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify source IDs. Valid values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and scheduled-action. """ -function modify_event_subscription( +modify_event_subscription( SubscriptionName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyEventSubscription", + Dict{String,Any}("SubscriptionName" => SubscriptionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyEventSubscription", - Dict{String,Any}("SubscriptionName" => SubscriptionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_event_subscription( SubscriptionName, params::AbstractDict{String}; @@ -5840,16 +5580,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServiceIntegrations"`: A collection of service integrations associated with the application. """ -function modify_redshift_idc_application( +modify_redshift_idc_application( RedshiftIdcApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyRedshiftIdcApplication", + Dict{String,Any}("RedshiftIdcApplicationArn" => RedshiftIdcApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyRedshiftIdcApplication", - Dict{String,Any}("RedshiftIdcApplicationArn" => RedshiftIdcApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_redshift_idc_application( RedshiftIdcApplicationArn, params::AbstractDict{String}; @@ -5894,16 +5632,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetAction"`: A modified JSON format of the scheduled action. For more information about this parameter, see ScheduledAction. """ -function modify_scheduled_action( +modify_scheduled_action( ScheduledActionName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifyScheduledAction", + Dict{String,Any}("ScheduledActionName" => ScheduledActionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifyScheduledAction", - Dict{String,Any}("ScheduledActionName" => ScheduledActionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_scheduled_action( ScheduledActionName, params::AbstractDict{String}; @@ -5957,18 +5693,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Manual"`: Indicates whether to apply the snapshot retention period to newly copied manual snapshots instead of automated snapshots. """ -function modify_snapshot_copy_retention_period( +modify_snapshot_copy_retention_period( ClusterIdentifier, RetentionPeriod; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ModifySnapshotCopyRetentionPeriod", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, "RetentionPeriod" => RetentionPeriod + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifySnapshotCopyRetentionPeriod", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, "RetentionPeriod" => RetentionPeriod - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_snapshot_copy_retention_period( ClusterIdentifier, RetentionPeriod, @@ -6009,21 +5743,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ScheduleDefinitions"`: An updated list of schedule definitions. A schedule definition is made up of schedule expressions, for example, \"cron(30 12 *)\" or \"rate(12 hours)\". """ -function modify_snapshot_schedule( +modify_snapshot_schedule( ScheduleDefinition, ScheduleIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "ModifySnapshotSchedule", + Dict{String,Any}( + "ScheduleDefinition" => ScheduleDefinition, + "ScheduleIdentifier" => ScheduleIdentifier, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ModifySnapshotSchedule", - Dict{String,Any}( - "ScheduleDefinition" => ScheduleDefinition, - "ScheduleIdentifier" => ScheduleIdentifier, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_snapshot_schedule( ScheduleDefinition, ScheduleIdentifier, @@ -6064,16 +5796,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"BreachAction"`: The new action that Amazon Redshift takes when the limit is reached. For more information about this parameter, see UsageLimit. """ -function modify_usage_limit( - UsageLimitId; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +modify_usage_limit(UsageLimitId; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "ModifyUsageLimit", Dict{String,Any}("UsageLimitId" => UsageLimitId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_usage_limit( UsageLimitId, params::AbstractDict{String}; @@ -6099,16 +5828,13 @@ Pauses a cluster. - `cluster_identifier`: The identifier of the cluster to be paused. """ -function pause_cluster( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +pause_cluster(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "PauseCluster", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function pause_cluster( ClusterIdentifier, params::AbstractDict{String}; @@ -6145,16 +5871,14 @@ Reserved Nodes in the Amazon Redshift Cluster Management Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NodeCount"`: The number of reserved nodes that you want to purchase. Default: 1 """ -function purchase_reserved_node_offering( +purchase_reserved_node_offering( ReservedNodeOfferingId; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "PurchaseReservedNodeOffering", + Dict{String,Any}("ReservedNodeOfferingId" => ReservedNodeOfferingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "PurchaseReservedNodeOffering", - Dict{String,Any}("ReservedNodeOfferingId" => ReservedNodeOfferingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function purchase_reserved_node_offering( ReservedNodeOfferingId, params::AbstractDict{String}; @@ -6186,16 +5910,14 @@ Updates the resource policy for a specified resource. policy is updated. """ -function put_resource_policy( +put_resource_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "PutResourcePolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "PutResourcePolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( Policy, ResourceArn, @@ -6230,16 +5952,13 @@ to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide. - `cluster_identifier`: The cluster identifier. """ -function reboot_cluster( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +reboot_cluster(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "RebootCluster", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reboot_cluster( ClusterIdentifier, params::AbstractDict{String}; @@ -6267,14 +5986,13 @@ From a datashare consumer account, rejects the specified datashare. - `data_share_arn`: The Amazon Resource Name (ARN) of the datashare to reject. """ -function reject_data_share(DataShareArn; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( +reject_data_share(DataShareArn; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "RejectDataShare", Dict{String,Any}("DataShareArn" => DataShareArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reject_data_share( DataShareArn, params::AbstractDict{String}; @@ -6310,16 +6028,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResetAllParameters"`: If true, all parameters in the specified parameter group will be reset to their default values. Default: true """ -function reset_cluster_parameter_group( +reset_cluster_parameter_group( ParameterGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "ResetClusterParameterGroup", + Dict{String,Any}("ParameterGroupName" => ParameterGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "ResetClusterParameterGroup", - Dict{String,Any}("ParameterGroupName" => ParameterGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_cluster_parameter_group( ParameterGroupName, params::AbstractDict{String}; @@ -6365,16 +6081,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReservedNodeId"`: The identifier of the reserved node. - `"TargetReservedNodeOfferingId"`: The identifier of the target reserved node offering. """ -function resize_cluster( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +resize_cluster(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "ResizeCluster", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resize_cluster( ClusterIdentifier, params::AbstractDict{String}; @@ -6526,16 +6239,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated with the cluster. Default: The default VPC security group is associated with the cluster. VPC security groups only apply to clusters in VPCs. """ -function restore_from_cluster_snapshot( +restore_from_cluster_snapshot( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "RestoreFromClusterSnapshot", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "RestoreFromClusterSnapshot", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_from_cluster_snapshot( ClusterIdentifier, params::AbstractDict{String}; @@ -6590,27 +6301,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetDatabaseName"`: The name of the database to restore the table to. - `"TargetSchemaName"`: The name of the schema to restore the table to. """ -function restore_table_from_cluster_snapshot( +restore_table_from_cluster_snapshot( ClusterIdentifier, NewTableName, SnapshotIdentifier, SourceDatabaseName, SourceTableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "RestoreTableFromClusterSnapshot", + Dict{String,Any}( + "ClusterIdentifier" => ClusterIdentifier, + "NewTableName" => NewTableName, + "SnapshotIdentifier" => SnapshotIdentifier, + "SourceDatabaseName" => SourceDatabaseName, + "SourceTableName" => SourceTableName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "RestoreTableFromClusterSnapshot", - Dict{String,Any}( - "ClusterIdentifier" => ClusterIdentifier, - "NewTableName" => NewTableName, - "SnapshotIdentifier" => SnapshotIdentifier, - "SourceDatabaseName" => SourceDatabaseName, - "SourceTableName" => SourceTableName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_table_from_cluster_snapshot( ClusterIdentifier, NewTableName, @@ -6650,16 +6359,13 @@ Resumes a paused cluster. - `cluster_identifier`: The identifier of the cluster to be resumed. """ -function resume_cluster( - ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift( +resume_cluster(ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift( "ResumeCluster", Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resume_cluster( ClusterIdentifier, params::AbstractDict{String}; @@ -6704,16 +6410,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys EC2SecurityGroupName must also be provided. and CIDRIP cannot be provided. Example: 111122223333 """ -function revoke_cluster_security_group_ingress( +revoke_cluster_security_group_ingress( ClusterSecurityGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "RevokeClusterSecurityGroupIngress", + Dict{String,Any}("ClusterSecurityGroupName" => ClusterSecurityGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "RevokeClusterSecurityGroupIngress", - Dict{String,Any}("ClusterSecurityGroupName" => ClusterSecurityGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_cluster_security_group_ingress( ClusterSecurityGroupName, params::AbstractDict{String}; @@ -6747,11 +6451,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys VPC endpoints associated with the endpoint authorization are also deleted. - `"VpcIds"`: The virtual private cloud (VPC) identifiers for which access is to be revoked. """ -function revoke_endpoint_access(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift( - "RevokeEndpointAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +revoke_endpoint_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift("RevokeEndpointAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function revoke_endpoint_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -6786,16 +6487,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SnapshotIdentifier"`: The identifier of the snapshot that the account can no longer access. """ -function revoke_snapshot_access( +revoke_snapshot_access( AccountWithRestoreAccess; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "RevokeSnapshotAccess", + Dict{String,Any}("AccountWithRestoreAccess" => AccountWithRestoreAccess); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "RevokeSnapshotAccess", - Dict{String,Any}("AccountWithRestoreAccess" => AccountWithRestoreAccess); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_snapshot_access( AccountWithRestoreAccess, params::AbstractDict{String}; @@ -6827,16 +6526,14 @@ Rotates the encryption keys for a cluster. enabled. """ -function rotate_encryption_key( +rotate_encryption_key( ClusterIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift( + "RotateEncryptionKey", + Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "RotateEncryptionKey", - Dict{String,Any}("ClusterIdentifier" => ClusterIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rotate_encryption_key( ClusterIdentifier, params::AbstractDict{String}; @@ -6873,27 +6570,25 @@ Updates the status of a partner integration. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"StatusMessage"`: The status message provided by the partner. """ -function update_partner_status( +update_partner_status( AccountId, ClusterIdentifier, DatabaseName, PartnerName, Status; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift( + "UpdatePartnerStatus", + Dict{String,Any}( + "AccountId" => AccountId, + "ClusterIdentifier" => ClusterIdentifier, + "DatabaseName" => DatabaseName, + "PartnerName" => PartnerName, + "Status" => Status, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift( - "UpdatePartnerStatus", - Dict{String,Any}( - "AccountId" => AccountId, - "ClusterIdentifier" => ClusterIdentifier, - "DatabaseName" => DatabaseName, - "PartnerName" => PartnerName, - "Status" => Status, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_partner_status( AccountId, ClusterIdentifier, diff --git a/src/services/redshift_data.jl b/src/services/redshift_data.jl index aca846450..7131b7f87 100644 --- a/src/services/redshift_data.jl +++ b/src/services/redshift_data.jl @@ -5,8 +5,8 @@ using AWS.Compat using AWS.UUIDs """ - batch_execute_statement(database, sqls) - batch_execute_statement(database, sqls, params::Dict{String,<:Any}) + batch_execute_statement(sqls) + batch_execute_statement(sqls, params::Dict{String,<:Any}) Runs one or more SQL statements, which can be data manipulation language (DML) or data definition language (DDL). Depending on the authorization method, use one of the following @@ -31,8 +31,6 @@ is required. For more information about the Amazon Redshift Data API and CLI examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide. # Arguments -- `database`: The name of the database. This parameter is required when authenticating - using either Secrets Manager or temporary credentials. - `sqls`: One or more SQL statements to run. The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then @@ -44,10 +42,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. - `"ClusterIdentifier"`: The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. +- `"Database"`: The name of the database. This parameter is required when authenticating + using either Secrets Manager or temporary credentials. - `"DbUser"`: The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. - `"SecretArn"`: The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. +- `"SessionId"`: The session identifier of the query. +- `"SessionKeepAliveSeconds"`: The number of seconds to keep the session alive after the + query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the + session is forced closed and the query is terminated. - `"StatementName"`: The name of the SQL statements. You can name the SQL statements when you create them to identify the query. - `"WithEvent"`: A value that indicates whether to send an event to the Amazon EventBridge @@ -56,32 +60,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials. """ -function batch_execute_statement( - Database, Sqls; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_data( +batch_execute_statement(Sqls; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_data( "BatchExecuteStatement", - Dict{String,Any}( - "Database" => Database, "Sqls" => Sqls, "ClientToken" => string(uuid4()) - ); + Dict{String,Any}("Sqls" => Sqls, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_execute_statement( - Database, - Sqls, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), + Sqls, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return redshift_data( "BatchExecuteStatement", Dict{String,Any}( mergewith( _merge, - Dict{String,Any}( - "Database" => Database, "Sqls" => Sqls, "ClientToken" => string(uuid4()) - ), + Dict{String,Any}("Sqls" => Sqls, "ClientToken" => string(uuid4())), params, ), ); @@ -104,14 +98,12 @@ Data API in the Amazon Redshift Management Guide. BatchExecuteStatment, ExecuteStatment, and ListStatements. """ -function cancel_statement(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_data( - "CancelStatement", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_statement(Id; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_data( + "CancelStatement", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_statement( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -141,14 +133,12 @@ the Amazon Redshift Management Guide. BatchExecuteStatment, ExecuteStatement, and ListStatements. """ -function describe_statement(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_data( - "DescribeStatement", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_statement(Id; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_data( + "DescribeStatement", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_statement( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -218,14 +208,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials. """ -function describe_table(Database; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_data( +describe_table(Database; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_data( "DescribeTable", Dict{String,Any}("Database" => Database); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_table( Database, params::AbstractDict{String}; @@ -242,8 +231,8 @@ function describe_table( end """ - execute_statement(database, sql) - execute_statement(database, sql, params::Dict{String,<:Any}) + execute_statement(sql) + execute_statement(sql, params::Dict{String,<:Any}) Runs an SQL statement, which can be data manipulation language (DML) or data definition language (DDL). This statement must be a single SQL statement. Depending on the @@ -269,8 +258,6 @@ is required. For more information about the Amazon Redshift Data API and CLI examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide. # Arguments -- `database`: The name of the database. This parameter is required when authenticating - using either Secrets Manager or temporary credentials. - `sql`: The SQL statement text to run. # Optional Parameters @@ -279,11 +266,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotency of the request. - `"ClusterIdentifier"`: The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. +- `"Database"`: The name of the database. This parameter is required when authenticating + using either Secrets Manager or temporary credentials. - `"DbUser"`: The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. - `"Parameters"`: The parameters for the SQL statement. - `"SecretArn"`: The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. +- `"SessionId"`: The session identifier of the query. +- `"SessionKeepAliveSeconds"`: The number of seconds to keep the session alive after the + query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the + session is forced closed and the query is terminated. - `"StatementName"`: The name of the SQL statement. You can name the SQL statement when you create it to identify the query. - `"WithEvent"`: A value that indicates whether to send an event to the Amazon EventBridge @@ -292,32 +285,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials. """ -function execute_statement( - Database, Sql; aws_config::AbstractAWSConfig=current_aws_config() +execute_statement(Sql; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_data( + "ExecuteStatement", + Dict{String,Any}("Sql" => Sql, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_data( - "ExecuteStatement", - Dict{String,Any}( - "Database" => Database, "Sql" => Sql, "ClientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_statement( - Database, - Sql, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), + Sql, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return redshift_data( "ExecuteStatement", Dict{String,Any}( mergewith( _merge, - Dict{String,Any}( - "Database" => Database, "Sql" => Sql, "ClientToken" => string(uuid4()) - ), + Dict{String,Any}("Sql" => Sql, "ClientToken" => string(uuid4())), params, ), ); @@ -351,14 +333,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. """ -function get_statement_result(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_data( +get_statement_result(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_data( "GetStatementResult", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_statement_result( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -420,14 +401,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials. """ -function list_databases(Database; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_data( +list_databases(Database; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_data( "ListDatabases", Dict{String,Any}("Database" => Database); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_databases( Database, params::AbstractDict{String}; @@ -498,14 +478,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials. """ -function list_schemas(Database; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_data( - "ListSchemas", - Dict{String,Any}("Database" => Database); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_schemas(Database; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_data( + "ListSchemas", + Dict{String,Any}("Database" => Database); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_schemas( Database, params::AbstractDict{String}; @@ -556,11 +534,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys been chosen to be run. STARTED - The query run has started. SUBMITTED - The query was submitted, but not yet processed. """ -function list_statements(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_data( - "ListStatements"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_statements(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_data("ListStatements"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_statements( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -632,14 +607,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials. """ -function list_tables(Database; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_data( - "ListTables", - Dict{String,Any}("Database" => Database); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tables(Database; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_data( + "ListTables", + Dict{String,Any}("Database" => Database); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tables( Database, params::AbstractDict{String}; diff --git a/src/services/redshift_serverless.jl b/src/services/redshift_serverless.jl index cd535c91f..0ccceaa33 100644 --- a/src/services/redshift_serverless.jl +++ b/src/services/redshift_serverless.jl @@ -20,18 +20,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retentionPeriod"`: How long to retain the snapshot. - `"tags"`: An array of Tag objects to associate with the created snapshot. """ -function convert_recovery_point_to_snapshot( +convert_recovery_point_to_snapshot( recoveryPointId, snapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "ConvertRecoveryPointToSnapshot", + Dict{String,Any}("recoveryPointId" => recoveryPointId, "snapshotName" => snapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "ConvertRecoveryPointToSnapshot", - Dict{String,Any}( - "recoveryPointId" => recoveryPointId, "snapshotName" => snapshotName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function convert_recovery_point_to_snapshot( recoveryPointId, snapshotName, @@ -67,23 +63,21 @@ Creates a custom domain association for Amazon Redshift Serverless. - `workgroup_name`: The name of the workgroup associated with the database. """ -function create_custom_domain_association( +create_custom_domain_association( customDomainCertificateArn, customDomainName, workgroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift_serverless( + "CreateCustomDomainAssociation", + Dict{String,Any}( + "customDomainCertificateArn" => customDomainCertificateArn, + "customDomainName" => customDomainName, + "workgroupName" => workgroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "CreateCustomDomainAssociation", - Dict{String,Any}( - "customDomainCertificateArn" => customDomainCertificateArn, - "customDomainName" => customDomainName, - "workgroupName" => workgroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_domain_association( customDomainCertificateArn, customDomainName, @@ -131,23 +125,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. """ -function create_endpoint_access( +create_endpoint_access( endpointName, subnetIds, workgroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift_serverless( + "CreateEndpointAccess", + Dict{String,Any}( + "endpointName" => endpointName, + "subnetIds" => subnetIds, + "workgroupName" => workgroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "CreateEndpointAccess", - Dict{String,Any}( - "endpointName" => endpointName, - "subnetIds" => subnetIds, - "workgroupName" => workgroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint_access( endpointName, subnetIds, @@ -207,14 +199,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IAM Identity Center. - `"tags"`: A list of tag instances. """ -function create_namespace(namespaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +create_namespace(namespaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "CreateNamespace", Dict{String,Any}("namespaceName" => namespaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_namespace( namespaceName, params::AbstractDict{String}; @@ -245,8 +236,8 @@ operation. action. This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots. (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, - see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster - Management Guide + see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management + Guide - `schedule`: The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC. Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00. @@ -267,27 +258,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startTime"`: The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger. """ -function create_scheduled_action( +create_scheduled_action( namespaceName, roleArn, schedule, scheduledActionName, targetAction; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift_serverless( + "CreateScheduledAction", + Dict{String,Any}( + "namespaceName" => namespaceName, + "roleArn" => roleArn, + "schedule" => schedule, + "scheduledActionName" => scheduledActionName, + "targetAction" => targetAction, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "CreateScheduledAction", - Dict{String,Any}( - "namespaceName" => namespaceName, - "roleArn" => roleArn, - "schedule" => schedule, - "scheduledActionName" => scheduledActionName, - "targetAction" => targetAction, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_scheduled_action( namespaceName, roleArn, @@ -333,16 +322,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"retentionPeriod"`: How long to retain the created snapshot. - `"tags"`: An array of Tag objects to associate with the snapshot. """ -function create_snapshot( +create_snapshot( namespaceName, snapshotName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "CreateSnapshot", + Dict{String,Any}("namespaceName" => namespaceName, "snapshotName" => snapshotName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "CreateSnapshot", - Dict{String,Any}("namespaceName" => namespaceName, "snapshotName" => snapshotName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_snapshot( namespaceName, snapshotName, @@ -384,18 +371,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"snapshotRetentionPeriod"`: The retention period of the snapshots that you copy to the destination Amazon Web Services Region. """ -function create_snapshot_copy_configuration( +create_snapshot_copy_configuration( destinationRegion, namespaceName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "CreateSnapshotCopyConfiguration", + Dict{String,Any}( + "destinationRegion" => destinationRegion, "namespaceName" => namespaceName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "CreateSnapshotCopyConfiguration", - Dict{String,Any}( - "destinationRegion" => destinationRegion, "namespaceName" => namespaceName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_snapshot_copy_configuration( destinationRegion, namespaceName, @@ -441,18 +426,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"period"`: The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly. """ -function create_usage_limit( +create_usage_limit( amount, resourceArn, usageType; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "CreateUsageLimit", + Dict{String,Any}( + "amount" => amount, "resourceArn" => resourceArn, "usageType" => usageType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "CreateUsageLimit", - Dict{String,Any}( - "amount" => amount, "resourceArn" => resourceArn, "usageType" => usageType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_usage_limit( amount, resourceArn, @@ -501,6 +484,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"enhancedVpcRouting"`: The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet. +- `"ipAddressType"`: The IP address type that the workgroup supports. Possible values are + ipv4 and dualstack. - `"maxCapacity"`: The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs. - `"port"`: The custom port to use when connecting to a workgroup. Valid port ranges are @@ -511,18 +496,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subnetIds"`: An array of VPC subnet IDs to associate with the workgroup. - `"tags"`: A array of tag instances. """ -function create_workgroup( +create_workgroup( namespaceName, workgroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "CreateWorkgroup", + Dict{String,Any}("namespaceName" => namespaceName, "workgroupName" => workgroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "CreateWorkgroup", - Dict{String,Any}( - "namespaceName" => namespaceName, "workgroupName" => workgroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workgroup( namespaceName, workgroupName, @@ -556,18 +537,16 @@ Deletes a custom domain association for Amazon Redshift Serverless. - `workgroup_name`: The name of the workgroup associated with the database. """ -function delete_custom_domain_association( +delete_custom_domain_association( customDomainName, workgroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "DeleteCustomDomainAssociation", + Dict{String,Any}( + "customDomainName" => customDomainName, "workgroupName" => workgroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "DeleteCustomDomainAssociation", - Dict{String,Any}( - "customDomainName" => customDomainName, "workgroupName" => workgroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_domain_association( customDomainName, workgroupName, @@ -600,16 +579,13 @@ Deletes an Amazon Redshift Serverless managed VPC endpoint. - `endpoint_name`: The name of the VPC endpoint to delete. """ -function delete_endpoint_access( - endpointName; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +delete_endpoint_access(endpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "DeleteEndpointAccess", Dict{String,Any}("endpointName" => endpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_endpoint_access( endpointName, params::AbstractDict{String}; @@ -641,14 +617,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys deleted. - `"finalSnapshotRetentionPeriod"`: How long to retain the final snapshot. """ -function delete_namespace(namespaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +delete_namespace(namespaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "DeleteNamespace", Dict{String,Any}("namespaceName" => namespaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_namespace( namespaceName, params::AbstractDict{String}; @@ -674,16 +649,13 @@ Deletes the specified resource policy. - `resource_arn`: The Amazon Resource Name (ARN) of the policy to delete. """ -function delete_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +delete_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "DeleteResourcePolicy", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( resourceArn, params::AbstractDict{String}; @@ -709,16 +681,14 @@ Deletes a scheduled action. - `scheduled_action_name`: The name of the scheduled action to delete. """ -function delete_scheduled_action( +delete_scheduled_action( scheduledActionName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "DeleteScheduledAction", + Dict{String,Any}("scheduledActionName" => scheduledActionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "DeleteScheduledAction", - Dict{String,Any}("scheduledActionName" => scheduledActionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_scheduled_action( scheduledActionName, params::AbstractDict{String}; @@ -748,14 +718,13 @@ Deletes a snapshot from Amazon Redshift Serverless. - `snapshot_name`: The name of the snapshot to be deleted. """ -function delete_snapshot(snapshotName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +delete_snapshot(snapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "DeleteSnapshot", Dict{String,Any}("snapshotName" => snapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_snapshot( snapshotName, params::AbstractDict{String}; @@ -781,16 +750,14 @@ Deletes a snapshot copy configuration - `snapshot_copy_configuration_id`: The ID of the snapshot copy configuration to delete. """ -function delete_snapshot_copy_configuration( +delete_snapshot_copy_configuration( snapshotCopyConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "DeleteSnapshotCopyConfiguration", + Dict{String,Any}("snapshotCopyConfigurationId" => snapshotCopyConfigurationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "DeleteSnapshotCopyConfiguration", - Dict{String,Any}("snapshotCopyConfigurationId" => snapshotCopyConfigurationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_snapshot_copy_configuration( snapshotCopyConfigurationId, params::AbstractDict{String}; @@ -822,16 +789,13 @@ Deletes a usage limit from Amazon Redshift Serverless. - `usage_limit_id`: The unique identifier of the usage limit to delete. """ -function delete_usage_limit( - usageLimitId; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +delete_usage_limit(usageLimitId; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "DeleteUsageLimit", Dict{String,Any}("usageLimitId" => usageLimitId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_usage_limit( usageLimitId, params::AbstractDict{String}; @@ -857,14 +821,13 @@ Deletes a workgroup. - `workgroup_name`: The name of the workgroup to be deleted. """ -function delete_workgroup(workgroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +delete_workgroup(workgroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "DeleteWorkgroup", Dict{String,Any}("workgroupName" => workgroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_workgroup( workgroupName, params::AbstractDict{String}; @@ -907,11 +870,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The minimum is 900 seconds, and the maximum is 3600 seconds. - `"workgroupName"`: The name of the workgroup associated with the database. """ -function get_credentials(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( - "GetCredentials"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_credentials(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_serverless( + "GetCredentials"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_credentials( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -931,18 +892,16 @@ Gets information about a specific custom domain association. - `workgroup_name`: The name of the workgroup associated with the database. """ -function get_custom_domain_association( +get_custom_domain_association( customDomainName, workgroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "GetCustomDomainAssociation", + Dict{String,Any}( + "customDomainName" => customDomainName, "workgroupName" => workgroupName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "GetCustomDomainAssociation", - Dict{String,Any}( - "customDomainName" => customDomainName, "workgroupName" => workgroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_custom_domain_association( customDomainName, workgroupName, @@ -975,16 +934,13 @@ Returns information, such as the name, about a VPC endpoint. - `endpoint_name`: The name of the VPC endpoint to return information for. """ -function get_endpoint_access( - endpointName; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +get_endpoint_access(endpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "GetEndpointAccess", Dict{String,Any}("endpointName" => endpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_endpoint_access( endpointName, params::AbstractDict{String}; @@ -1010,14 +966,13 @@ Returns information about a namespace in Amazon Redshift Serverless. - `namespace_name`: The name of the namespace to retrieve information for. """ -function get_namespace(namespaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +get_namespace(namespaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "GetNamespace", Dict{String,Any}("namespaceName" => namespaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_namespace( namespaceName, params::AbstractDict{String}; @@ -1044,16 +999,13 @@ Returns information about a recovery point. for. """ -function get_recovery_point( - recoveryPointId; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +get_recovery_point(recoveryPointId; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "GetRecoveryPoint", Dict{String,Any}("recoveryPointId" => recoveryPointId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_recovery_point( recoveryPointId, params::AbstractDict{String}; @@ -1081,16 +1033,13 @@ Returns a resource policy. - `resource_arn`: The Amazon Resource Name (ARN) of the resource to return. """ -function get_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +get_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "GetResourcePolicy", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( resourceArn, params::AbstractDict{String}; @@ -1116,16 +1065,14 @@ Returns information about a scheduled action. - `scheduled_action_name`: The name of the scheduled action. """ -function get_scheduled_action( +get_scheduled_action( scheduledActionName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "GetScheduledAction", + Dict{String,Any}("scheduledActionName" => scheduledActionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "GetScheduledAction", - Dict{String,Any}("scheduledActionName" => scheduledActionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_scheduled_action( scheduledActionName, params::AbstractDict{String}; @@ -1158,11 +1105,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"snapshotArn"`: The Amazon Resource Name (ARN) of the snapshot to return. - `"snapshotName"`: The name of the snapshot to return. """ -function get_snapshot(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( - "GetSnapshot"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_snapshot(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_serverless( + "GetSnapshot"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_snapshot( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1182,16 +1127,14 @@ Returns information about a TableRestoreStatus object. status for. """ -function get_table_restore_status( +get_table_restore_status( tableRestoreRequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "GetTableRestoreStatus", + Dict{String,Any}("tableRestoreRequestId" => tableRestoreRequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "GetTableRestoreStatus", - Dict{String,Any}("tableRestoreRequestId" => tableRestoreRequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_table_restore_status( tableRestoreRequestId, params::AbstractDict{String}; @@ -1221,14 +1164,13 @@ Returns information about a usage limit. - `usage_limit_id`: The unique identifier of the usage limit to return information for. """ -function get_usage_limit(usageLimitId; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +get_usage_limit(usageLimitId; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "GetUsageLimit", Dict{String,Any}("usageLimitId" => usageLimitId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_usage_limit( usageLimitId, params::AbstractDict{String}; @@ -1254,14 +1196,13 @@ Returns information about a specific workgroup. - `workgroup_name`: The name of the workgroup to return information for. """ -function get_workgroup(workgroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +get_workgroup(workgroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "GetWorkgroup", Dict{String,Any}("workgroupName" => workgroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_workgroup( workgroupName, params::AbstractDict{String}; @@ -1294,15 +1235,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. """ -function list_custom_domain_associations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +list_custom_domain_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "ListCustomDomainAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_custom_domain_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1333,11 +1271,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Redshift Serverless. - `"workgroupName"`: The name of the workgroup associated with the VPC endpoint to return. """ -function list_endpoint_access(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +list_endpoint_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "ListEndpointAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_endpoint_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1360,11 +1297,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include the returned nextToken in following ListNamespaces operations, which returns results in the next page. """ -function list_namespaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( - "ListNamespaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_namespaces(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_serverless( + "ListNamespaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_namespaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1392,11 +1327,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results in the next page. - `"startTime"`: The time when the recovery point's creation was initiated. """ -function list_recovery_points(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +list_recovery_points(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "ListRecoveryPoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_recovery_points( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1421,11 +1355,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. """ -function list_scheduled_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +list_scheduled_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "ListScheduledActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_scheduled_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1452,15 +1385,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. """ -function list_snapshot_copy_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +list_snapshot_copy_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "ListSnapshotCopyConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_snapshot_copy_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1492,11 +1422,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ownerAccount"`: The owner Amazon Web Services account of the snapshot. - `"startTime"`: The time when the creation of the snapshot was initiated. """ -function list_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( - "ListSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_snapshots(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_serverless( + "ListSnapshots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_snapshots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1523,11 +1451,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"workgroupName"`: The workgroup from which to list all of the statuses of RestoreTableFromSnapshot operations. """ -function list_table_restore_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +list_table_restore_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "ListTableRestoreStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_table_restore_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1549,16 +1476,13 @@ Lists the tags assigned to a resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource to list tags for. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1591,11 +1515,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys limits you want to list. - `"usageType"`: The Amazon Redshift Serverless feature whose limits you want to see. """ -function list_usage_limits(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +list_usage_limits(; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "ListUsageLimits"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_usage_limits( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1620,11 +1543,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ownerAccount"`: The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup. """ -function list_workgroups(; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( - "ListWorkgroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_workgroups(; aws_config::AbstractAWSConfig=current_aws_config()) = redshift_serverless( + "ListWorkgroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_workgroups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1649,16 +1570,14 @@ across Amazon Web Services accounts. resource policy for. """ -function put_resource_policy( +put_resource_policy( policy, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "PutResourcePolicy", + Dict{String,Any}("policy" => policy, "resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "PutResourcePolicy", - Dict{String,Any}("policy" => policy, "resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( policy, resourceArn, @@ -1691,23 +1610,21 @@ Restore the data from a recovery point. - `workgroup_name`: The name of the workgroup used to restore data. """ -function restore_from_recovery_point( +restore_from_recovery_point( namespaceName, recoveryPointId, workgroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift_serverless( + "RestoreFromRecoveryPoint", + Dict{String,Any}( + "namespaceName" => namespaceName, + "recoveryPointId" => recoveryPointId, + "workgroupName" => workgroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "RestoreFromRecoveryPoint", - Dict{String,Any}( - "namespaceName" => namespaceName, - "recoveryPointId" => recoveryPointId, - "workgroupName" => workgroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_from_recovery_point( namespaceName, recoveryPointId, @@ -1760,18 +1677,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"snapshotName"`: The name of the snapshot to restore from. Must not be specified at the same time as snapshotArn. """ -function restore_from_snapshot( +restore_from_snapshot( namespaceName, workgroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "RestoreFromSnapshot", + Dict{String,Any}("namespaceName" => namespaceName, "workgroupName" => workgroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "RestoreFromSnapshot", - Dict{String,Any}( - "namespaceName" => namespaceName, "workgroupName" => workgroupName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_from_snapshot( namespaceName, workgroupName, @@ -1820,7 +1733,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"targetDatabaseName"`: The name of the database to restore the table to. - `"targetSchemaName"`: The name of the schema to restore the table to. """ -function restore_table_from_recovery_point( +restore_table_from_recovery_point( namespaceName, newTableName, recoveryPointId, @@ -1828,21 +1741,19 @@ function restore_table_from_recovery_point( sourceTableName, workgroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift_serverless( + "RestoreTableFromRecoveryPoint", + Dict{String,Any}( + "namespaceName" => namespaceName, + "newTableName" => newTableName, + "recoveryPointId" => recoveryPointId, + "sourceDatabaseName" => sourceDatabaseName, + "sourceTableName" => sourceTableName, + "workgroupName" => workgroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "RestoreTableFromRecoveryPoint", - Dict{String,Any}( - "namespaceName" => namespaceName, - "newTableName" => newTableName, - "recoveryPointId" => recoveryPointId, - "sourceDatabaseName" => sourceDatabaseName, - "sourceTableName" => sourceTableName, - "workgroupName" => workgroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_table_from_recovery_point( namespaceName, newTableName, @@ -1900,7 +1811,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"targetDatabaseName"`: The name of the database to restore the table to. - `"targetSchemaName"`: The name of the schema to restore the table to. """ -function restore_table_from_snapshot( +restore_table_from_snapshot( namespaceName, newTableName, snapshotName, @@ -1908,21 +1819,19 @@ function restore_table_from_snapshot( sourceTableName, workgroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift_serverless( + "RestoreTableFromSnapshot", + Dict{String,Any}( + "namespaceName" => namespaceName, + "newTableName" => newTableName, + "snapshotName" => snapshotName, + "sourceDatabaseName" => sourceDatabaseName, + "sourceTableName" => sourceTableName, + "workgroupName" => workgroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "RestoreTableFromSnapshot", - Dict{String,Any}( - "namespaceName" => namespaceName, - "newTableName" => newTableName, - "snapshotName" => snapshotName, - "sourceDatabaseName" => sourceDatabaseName, - "sourceTableName" => sourceTableName, - "workgroupName" => workgroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_table_from_snapshot( namespaceName, newTableName, @@ -1965,14 +1874,13 @@ Assigns one or more tags to a resource. - `tags`: The map of the key-value pairs used to tag the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2004,16 +1912,13 @@ Removes a tag or set of tags from a resource. - `tag_keys`: The tag or set of tags to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2047,23 +1952,21 @@ Updates an Amazon Redshift Serverless certificate associated with a custom domai - `workgroup_name`: The name of the workgroup associated with the database. """ -function update_custom_domain_association( +update_custom_domain_association( customDomainCertificateArn, customDomainName, workgroupName; aws_config::AbstractAWSConfig=current_aws_config(), +) = redshift_serverless( + "UpdateCustomDomainAssociation", + Dict{String,Any}( + "customDomainCertificateArn" => customDomainCertificateArn, + "customDomainName" => customDomainName, + "workgroupName" => workgroupName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "UpdateCustomDomainAssociation", - Dict{String,Any}( - "customDomainCertificateArn" => customDomainCertificateArn, - "customDomainName" => customDomainName, - "workgroupName" => workgroupName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_custom_domain_association( customDomainCertificateArn, customDomainName, @@ -2103,16 +2006,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"vpcSecurityGroupIds"`: The list of VPC security groups associated with the endpoint after the endpoint is modified. """ -function update_endpoint_access( - endpointName; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +update_endpoint_access(endpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "UpdateEndpointAccess", Dict{String,Any}("endpointName" => endpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_endpoint_access( endpointName, params::AbstractDict{String}; @@ -2164,14 +2064,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys true. If manageAdminPassword is false or not set, Amazon Redshift uses adminUserPassword for the admin user account's password. """ -function update_namespace(namespaceName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +update_namespace(namespaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "UpdateNamespace", Dict{String,Any}("namespaceName" => namespaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_namespace( namespaceName, params::AbstractDict{String}; @@ -2205,8 +2104,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys action. This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, - see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster - Management Guide + see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management + Guide - `"schedule"`: The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC. Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, @@ -2217,16 +2116,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"startTime"`: The start time in UTC of the scheduled action to update to. - `"targetAction"`: """ -function update_scheduled_action( +update_scheduled_action( scheduledActionName; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "UpdateScheduledAction", + Dict{String,Any}("scheduledActionName" => scheduledActionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "UpdateScheduledAction", - Dict{String,Any}("scheduledActionName" => scheduledActionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_scheduled_action( scheduledActionName, params::AbstractDict{String}; @@ -2259,14 +2156,13 @@ Updates a snapshot. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"retentionPeriod"`: The new retention period of the snapshot. """ -function update_snapshot(snapshotName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +update_snapshot(snapshotName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "UpdateSnapshot", Dict{String,Any}("snapshotName" => snapshotName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_snapshot( snapshotName, params::AbstractDict{String}; @@ -2296,16 +2192,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"snapshotRetentionPeriod"`: The new retention period of how long to keep a snapshot in the destination Amazon Web Services Region. """ -function update_snapshot_copy_configuration( +update_snapshot_copy_configuration( snapshotCopyConfigurationId; aws_config::AbstractAWSConfig=current_aws_config() +) = redshift_serverless( + "UpdateSnapshotCopyConfiguration", + Dict{String,Any}("snapshotCopyConfigurationId" => snapshotCopyConfigurationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return redshift_serverless( - "UpdateSnapshotCopyConfiguration", - Dict{String,Any}("snapshotCopyConfigurationId" => snapshotCopyConfigurationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_snapshot_copy_configuration( snapshotCopyConfigurationId, params::AbstractDict{String}; @@ -2345,16 +2239,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"breachAction"`: The new action that Amazon Redshift Serverless takes when the limit is reached. """ -function update_usage_limit( - usageLimitId; aws_config::AbstractAWSConfig=current_aws_config() -) - return redshift_serverless( +update_usage_limit(usageLimitId; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "UpdateUsageLimit", Dict{String,Any}("usageLimitId" => usageLimitId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_usage_limit( usageLimitId, params::AbstractDict{String}; @@ -2395,6 +2286,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"enhancedVpcRouting"`: The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC. +- `"ipAddressType"`: The IP address type that the workgroup supports. Possible values are + ipv4 and dualstack. - `"maxCapacity"`: The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs. - `"port"`: The custom port to use when connecting to a workgroup. Valid port ranges are @@ -2404,14 +2297,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"securityGroupIds"`: An array of security group IDs to associate with the workgroup. - `"subnetIds"`: An array of VPC subnet IDs to associate with the workgroup. """ -function update_workgroup(workgroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return redshift_serverless( +update_workgroup(workgroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + redshift_serverless( "UpdateWorkgroup", Dict{String,Any}("workgroupName" => workgroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_workgroup( workgroupName, params::AbstractDict{String}; diff --git a/src/services/rekognition.jl b/src/services/rekognition.jl index dd2409892..b410d9ab8 100644 --- a/src/services/rekognition.jl +++ b/src/services/rekognition.jl @@ -40,21 +40,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserMatchThreshold"`: An optional value specifying the minimum confidence in the UserID match to return. The default value is 75. """ -function associate_faces( +associate_faces( CollectionId, FaceIds, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "AssociateFaces", + Dict{String,Any}( + "CollectionId" => CollectionId, + "FaceIds" => FaceIds, + "UserId" => UserId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "AssociateFaces", - Dict{String,Any}( - "CollectionId" => CollectionId, - "FaceIds" => FaceIds, - "UserId" => UserId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_faces( CollectionId, FaceIds, @@ -146,16 +144,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SimilarityThreshold"`: The minimum level of confidence in the face matches that a match must meet to be included in the FaceMatches array. """ -function compare_faces( +compare_faces( SourceImage, TargetImage; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "CompareFaces", + Dict{String,Any}("SourceImage" => SourceImage, "TargetImage" => TargetImage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "CompareFaces", - Dict{String,Any}("SourceImage" => SourceImage, "TargetImage" => TargetImage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function compare_faces( SourceImage, TargetImage, @@ -223,27 +219,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys manages. - `"Tags"`: The key-value tags to assign to the model version. """ -function copy_project_version( +copy_project_version( DestinationProjectArn, OutputConfig, SourceProjectArn, SourceProjectVersionArn, VersionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = rekognition( + "CopyProjectVersion", + Dict{String,Any}( + "DestinationProjectArn" => DestinationProjectArn, + "OutputConfig" => OutputConfig, + "SourceProjectArn" => SourceProjectArn, + "SourceProjectVersionArn" => SourceProjectVersionArn, + "VersionName" => VersionName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "CopyProjectVersion", - Dict{String,Any}( - "DestinationProjectArn" => DestinationProjectArn, - "OutputConfig" => OutputConfig, - "SourceProjectArn" => SourceProjectArn, - "SourceProjectVersionArn" => SourceProjectVersionArn, - "VersionName" => VersionName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_project_version( DestinationProjectArn, OutputConfig, @@ -294,14 +288,13 @@ operation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: A set of tags (key-value pairs) that you want to attach to the collection. """ -function create_collection(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +create_collection(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "CreateCollection", Dict{String,Any}("CollectionId" => CollectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_collection( CollectionId, params::AbstractDict{String}; @@ -349,17 +342,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries. +- `"Tags"`: A set of tags (key-value pairs) that you want to attach to the dataset. """ -function create_dataset( +create_dataset( DatasetType, ProjectArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "CreateDataset", + Dict{String,Any}("DatasetType" => DatasetType, "ProjectArn" => ProjectArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "CreateDataset", - Dict{String,Any}("DatasetType" => DatasetType, "ProjectArn" => ProjectArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_dataset( DatasetType, ProjectArn, @@ -404,11 +396,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Settings"`: A session settings object. It contains settings for the operation to be performed. For Face Liveness, it accepts OutputConfig and AuditImagesLimit. """ -function create_face_liveness_session(; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +create_face_liveness_session(; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "CreateFaceLivenessSession"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function create_face_liveness_session( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -441,15 +432,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for Content Moderation. Applicable only to adapters. - `"Feature"`: Specifies feature that is being customized. If no value is provided CUSTOM_LABELS is used as a default. +- `"Tags"`: A set of tags (key-value pairs) that you want to attach to the project. """ -function create_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +create_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "CreateProject", Dict{String,Any}("ProjectName" => ProjectName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_project( ProjectName, params::AbstractDict{String}; @@ -520,23 +511,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must not have any associated datasets. - `"VersionDescription"`: A description applied to the project version being created. """ -function create_project_version( +create_project_version( OutputConfig, ProjectArn, VersionName; aws_config::AbstractAWSConfig=current_aws_config(), +) = rekognition( + "CreateProjectVersion", + Dict{String,Any}( + "OutputConfig" => OutputConfig, + "ProjectArn" => ProjectArn, + "VersionName" => VersionName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "CreateProjectVersion", - Dict{String,Any}( - "OutputConfig" => OutputConfig, - "ProjectArn" => ProjectArn, - "VersionName" => VersionName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_project_version( OutputConfig, ProjectArn, @@ -630,27 +619,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A set of tags (key-value pairs) that you want to attach to the stream processor. """ -function create_stream_processor( +create_stream_processor( Input, Name, Output, RoleArn, Settings; aws_config::AbstractAWSConfig=current_aws_config(), +) = rekognition( + "CreateStreamProcessor", + Dict{String,Any}( + "Input" => Input, + "Name" => Name, + "Output" => Output, + "RoleArn" => RoleArn, + "Settings" => Settings, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "CreateStreamProcessor", - Dict{String,Any}( - "Input" => Input, - "Name" => Name, - "Output" => Output, - "RoleArn" => RoleArn, - "Settings" => Settings, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_stream_processor( Input, Name, @@ -704,10 +691,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you use the same token with multiple CreateUser requests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once. """ -function create_user( - CollectionId, UserId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +create_user(CollectionId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "CreateUser", Dict{String,Any}( "CollectionId" => CollectionId, @@ -717,7 +702,6 @@ function create_user( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_user( CollectionId, UserId, @@ -754,14 +738,13 @@ to perform the rekognition:DeleteCollection action. - `collection_id`: ID of the collection to delete. """ -function delete_collection(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +delete_collection(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DeleteCollection", Dict{String,Any}("CollectionId" => CollectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_collection( CollectionId, params::AbstractDict{String}; @@ -794,14 +777,13 @@ This operation requires permissions to perform the rekognition:DeleteDataset act delete. """ -function delete_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +delete_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DeleteDataset", Dict{String,Any}("DatasetArn" => DatasetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dataset( DatasetArn, params::AbstractDict{String}; @@ -830,16 +812,13 @@ rekognition:DeleteFaces action. - `face_ids`: An array of face IDs to delete. """ -function delete_faces( - CollectionId, FaceIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +delete_faces(CollectionId, FaceIds; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DeleteFaces", Dict{String,Any}("CollectionId" => CollectionId, "FaceIds" => FaceIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_faces( CollectionId, FaceIds, @@ -876,14 +855,13 @@ perform the rekognition:DeleteProject action. - `project_arn`: The Amazon Resource Name (ARN) of the project that you want to delete. """ -function delete_project(ProjectArn; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +delete_project(ProjectArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DeleteProject", Dict{String,Any}("ProjectArn" => ProjectArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_project( ProjectArn, params::AbstractDict{String}; @@ -917,16 +895,14 @@ operation requires permissions to perform the rekognition:DeleteProjectPolicy ac Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"PolicyRevisionId"`: The ID of the project policy revision that you want to delete. """ -function delete_project_policy( +delete_project_policy( PolicyName, ProjectArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "DeleteProjectPolicy", + Dict{String,Any}("PolicyName" => PolicyName, "ProjectArn" => ProjectArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "DeleteProjectPolicy", - Dict{String,Any}("PolicyName" => PolicyName, "ProjectArn" => ProjectArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_project_policy( PolicyName, ProjectArn, @@ -963,16 +939,14 @@ perform the rekognition:DeleteProjectVersion action. want to delete. """ -function delete_project_version( +delete_project_version( ProjectVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "DeleteProjectVersion", + Dict{String,Any}("ProjectVersionArn" => ProjectVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "DeleteProjectVersion", - Dict{String,Any}("ProjectVersionArn" => ProjectVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_project_version( ProjectVersionArn, params::AbstractDict{String}; @@ -1002,14 +976,13 @@ same name for a stream processor for a few seconds after calling DeleteStreamPro - `name`: The name of the stream processor you want to delete. """ -function delete_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +delete_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DeleteStreamProcessor", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_stream_processor( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1042,10 +1015,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you use the same token with multiple DeleteUser requests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once. """ -function delete_user( - CollectionId, UserId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +delete_user(CollectionId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DeleteUser", Dict{String,Any}( "CollectionId" => CollectionId, @@ -1055,7 +1026,6 @@ function delete_user( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user( CollectionId, UserId, @@ -1093,16 +1063,13 @@ Amazon Rekognition Developer Guide. - `collection_id`: The ID of the collection to describe. """ -function describe_collection( - CollectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +describe_collection(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DescribeCollection", Dict{String,Any}("CollectionId" => CollectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_collection( CollectionId, params::AbstractDict{String}; @@ -1131,14 +1098,13 @@ permissions to perform the rekognition:DescribeDataset action. - `dataset_arn`: The Amazon Resource Name (ARN) of the dataset that you want to describe. """ -function describe_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +describe_dataset(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DescribeDataset", Dict{String,Any}("DatasetArn" => DatasetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_dataset( DatasetArn, params::AbstractDict{String}; @@ -1182,16 +1148,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys arn:aws:rekognition:us-east-1:123456789012:project/getting-started/version/my-model.2020-01 -21T09.10.15/1234567890123. """ -function describe_project_versions( - ProjectArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +describe_project_versions(ProjectArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DescribeProjectVersions", Dict{String,Any}("ProjectArn" => ProjectArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_project_versions( ProjectArn, params::AbstractDict{String}; @@ -1228,11 +1191,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys don't specify a value, the response includes descriptions for all the projects in your AWS account. """ -function describe_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "DescribeProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition("DescribeProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1253,14 +1213,13 @@ recognition being performed, and the current status of the stream processor. - `name`: Name of the stream processor for which you want information. """ -function describe_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +describe_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DescribeStreamProcessor", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_stream_processor( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1322,16 +1281,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys MinConfidence, DetectCustomLabels returns labels based on the assumed threshold of each label. """ -function detect_custom_labels( +detect_custom_labels( Image, ProjectVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "DetectCustomLabels", + Dict{String,Any}("Image" => Image, "ProjectVersionArn" => ProjectVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "DetectCustomLabels", - Dict{String,Any}("Image" => Image, "ProjectVersionArn" => ProjectVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detect_custom_labels( Image, ProjectVersionArn, @@ -1392,14 +1349,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys when using DetectFaces, they aren't supported when analyzing videos with StartFaceDetection and GetFaceDetection. """ -function detect_faces(Image; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "DetectFaces", - Dict{String,Any}("Image" => Image); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +detect_faces(Image; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "DetectFaces", + Dict{String,Any}("Image" => Image); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function detect_faces( Image, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1495,14 +1450,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys label categories must be supplied. For a full list of labels and label categories, see Detecting labels. """ -function detect_labels(Image; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "DetectLabels", - Dict{String,Any}("Image" => Image); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +detect_labels(Image; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "DetectLabels", + Dict{String,Any}("Image" => Image); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function detect_labels( Image, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1547,14 +1500,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProjectVersion"`: Identifier for the custom adapter. Expects the ProjectVersionArn as a value. Use the CreateProject or CreateProjectVersion APIs to create a custom adapter. """ -function detect_moderation_labels(Image; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +detect_moderation_labels(Image; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DetectModerationLabels", Dict{String,Any}("Image" => Image); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_moderation_labels( Image, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1596,16 +1548,13 @@ rekognition:DetectProtectiveEquipment action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SummarizationAttributes"`: An array of PPE types that you want to summarize. """ -function detect_protective_equipment( - Image; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +detect_protective_equipment(Image; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DetectProtectiveEquipment", Dict{String,Any}("Image" => Image); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_protective_equipment( Image, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1653,14 +1602,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Filters"`: Optional parameters that let you set the criteria that the text must meet to be included in your response. """ -function detect_text(Image; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "DetectText", - Dict{String,Any}("Image" => Image); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +detect_text(Image; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "DetectText", + Dict{String,Any}("Image" => Image); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function detect_text( Image, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1696,21 +1643,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once. """ -function disassociate_faces( +disassociate_faces( CollectionId, FaceIds, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "DisassociateFaces", + Dict{String,Any}( + "CollectionId" => CollectionId, + "FaceIds" => FaceIds, + "UserId" => UserId, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "DisassociateFaces", - Dict{String,Any}( - "CollectionId" => CollectionId, - "FaceIds" => FaceIds, - "UserId" => UserId, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_faces( CollectionId, FaceIds, @@ -1759,16 +1704,13 @@ rekognition:DistributeDatasetEntries action. datasets must belong to the same project. The test dataset must be empty. """ -function distribute_dataset_entries( - Datasets; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +distribute_dataset_entries(Datasets; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "DistributeDatasetEntries", Dict{String,Any}("Datasets" => Datasets); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function distribute_dataset_entries( Datasets, params::AbstractDict{String}; @@ -1799,14 +1741,12 @@ operation requires permissions to perform the rekognition:GetCelebrityInfo actio RecognizeCelebrities operation, which recognizes celebrities in an image. """ -function get_celebrity_info(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "GetCelebrityInfo", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_celebrity_info(Id; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "GetCelebrityInfo", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_celebrity_info( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1869,16 +1809,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by the celebrity identifier, specify TIMESTAMP to sort by the time the celebrity was recognized. """ -function get_celebrity_recognition( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +get_celebrity_recognition(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "GetCelebrityRecognition", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_celebrity_recognition( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1938,14 +1875,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphabetically group elements for a label together. Within each label group, the array element are sorted by detection confidence. The default sort is by TIMESTAMP. """ -function get_content_moderation(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +get_content_moderation(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "GetContentModeration", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_content_moderation( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1991,14 +1927,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces. """ -function get_face_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "GetFaceDetection", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_face_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "GetFaceDetection", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_face_detection( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2027,16 +1961,14 @@ images are always returned when possible. also acts as an idempotency token for all operations associated with the session. """ -function get_face_liveness_session_results( +get_face_liveness_session_results( SessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "GetFaceLivenessSessionResults", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "GetFaceLivenessSessionResults", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_face_liveness_session_results( SessionId, params::AbstractDict{String}; @@ -2092,14 +2024,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: Sort to use for grouping faces in the response. Use TIMESTAMP to group faces by the time that they are recognized. Use INDEX to sort by recognized faces. """ -function get_face_search(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "GetFaceSearch", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_face_search(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "GetFaceSearch", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_face_search( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2153,7 +2083,9 @@ in the sample seen below. Use MaxResults parameter to limit the number of label If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetlabelDetection and populate the NextToken request -parameter with the token value returned from the previous call to GetLabelDetection. +parameter with the token value returned from the previous call to GetLabelDetection. If you +are retrieving results while using the Amazon Simple Notification Service, note that you +will receive an \"ERROR\" notification if the job encounters an issue. # Arguments - `job_id`: Job identifier for the label detection operation for which you want results @@ -2174,14 +2106,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys label together. Within each label group, the array element are sorted by detection confidence. The default sort is by TIMESTAMP. """ -function get_label_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +get_label_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "GetLabelDetection", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_label_detection( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2205,14 +2136,13 @@ StartMediaAnalysisJob. results. """ -function get_media_analysis_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +get_media_analysis_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "GetMediaAnalysisJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_media_analysis_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2265,14 +2195,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys sort by INDEX, the array elements for each person are sorted by detection confidence. The default sort is by TIMESTAMP. """ -function get_person_tracking(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +get_person_tracking(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "GetPersonTracking", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_person_tracking( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2321,14 +2250,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of text. """ -function get_segment_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +get_segment_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "GetSegmentDetection", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_segment_detection( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2375,14 +2303,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text. """ -function get_text_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "GetTextDetection", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_text_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "GetTextDetection", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_text_detection( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2488,16 +2414,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is performed. To use quality filtering, the collection you are using must be associated with version 3 of the face model or higher. """ -function index_faces( - CollectionId, Image; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +index_faces(CollectionId, Image; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "IndexFaces", Dict{String,Any}("CollectionId" => CollectionId, "Image" => Image); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function index_faces( CollectionId, Image, @@ -2533,11 +2456,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of collection IDs to return. - `"NextToken"`: Pagination token from the previous response. """ -function list_collections(; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "ListCollections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_collections(; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition("ListCollections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_collections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2585,16 +2505,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the JSON Line for a single image, or gettting JSON Lines for all images within a specific folder. """ -function list_dataset_entries( - DatasetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +list_dataset_entries(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "ListDatasetEntries", Dict{String,Any}("DatasetArn" => DatasetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dataset_entries( DatasetArn, params::AbstractDict{String}; @@ -2632,14 +2549,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results. """ -function list_dataset_labels(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +list_dataset_labels(DatasetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "ListDatasetLabels", Dict{String,Any}("DatasetArn" => DatasetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_dataset_labels( DatasetArn, params::AbstractDict{String}; @@ -2679,14 +2595,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserId"`: An array of user IDs to filter results with when listing faces in a collection. """ -function list_faces(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "ListFaces", - Dict{String,Any}("CollectionId" => CollectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_faces(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "ListFaces", + Dict{String,Any}("CollectionId" => CollectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_faces( CollectionId, params::AbstractDict{String}; @@ -2716,11 +2630,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys InvalidParameterException error occurs. The default value is 100. - `"NextToken"`: Pagination token, if the previous response was incomplete. """ -function list_media_analysis_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +list_media_analysis_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "ListMediaAnalysisJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_media_analysis_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2753,16 +2666,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results. """ -function list_project_policies( - ProjectArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +list_project_policies(ProjectArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "ListProjectPolicies", Dict{String,Any}("ProjectArn" => ProjectArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_project_policies( ProjectArn, params::AbstractDict{String}; @@ -2792,11 +2702,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys processors to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of stream processors. """ -function list_stream_processors(; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "ListStreamProcessors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_stream_processors(; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "ListStreamProcessors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_stream_processors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2821,16 +2729,13 @@ rekognition:ListTagsForResource action. that contains the tags that you want a list of. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2864,14 +2769,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: Maximum number of UsersID to return. - `"NextToken"`: Pagingation token to receive the next set of UsersID. """ -function list_users(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( - "ListUsers", - Dict{String,Any}("CollectionId" => CollectionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_users(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) = rekognition( + "ListUsers", + Dict{String,Any}("CollectionId" => CollectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_users( CollectionId, params::AbstractDict{String}; @@ -2920,23 +2823,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys policy, Amazon Rekognition Custom Labels generates and assigns a new PolicyRevisionId and then deletes the previous version of the policy. """ -function put_project_policy( +put_project_policy( PolicyDocument, PolicyName, ProjectArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = rekognition( + "PutProjectPolicy", + Dict{String,Any}( + "PolicyDocument" => PolicyDocument, + "PolicyName" => PolicyName, + "ProjectArn" => ProjectArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "PutProjectPolicy", - Dict{String,Any}( - "PolicyDocument" => PolicyDocument, - "PolicyName" => PolicyName, - "ProjectArn" => ProjectArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_project_policy( PolicyDocument, PolicyName, @@ -2994,14 +2895,13 @@ operation. the Amazon Rekognition developer guide. """ -function recognize_celebrities(Image; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +recognize_celebrities(Image; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "RecognizeCelebrities", Dict{String,Any}("Image" => Image); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function recognize_celebrities( Image, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3041,16 +2941,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxFaces"`: Maximum number of faces to return. The operation returns the maximum number of faces with the highest confidence in the match. """ -function search_faces( - CollectionId, FaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +search_faces(CollectionId, FaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "SearchFaces", Dict{String,Any}("CollectionId" => CollectionId, "FaceId" => FaceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_faces( CollectionId, FaceId, @@ -3126,16 +3023,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is performed. The default value is NONE. To use quality filtering, the collection you are using must be associated with version 3 of the face model or higher. """ -function search_faces_by_image( +search_faces_by_image( CollectionId, Image; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "SearchFacesByImage", + Dict{String,Any}("CollectionId" => CollectionId, "Image" => Image); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "SearchFacesByImage", - Dict{String,Any}("CollectionId" => CollectionId, "Image" => Image); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_faces_by_image( CollectionId, Image, @@ -3179,14 +3074,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserMatchThreshold"`: Optional value that specifies the minimum confidence in the matched UserID to return. Default value of 80. """ -function search_users(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +search_users(CollectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "SearchUsers", Dict{String,Any}("CollectionId" => CollectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_users( CollectionId, params::AbstractDict{String}; @@ -3228,16 +3122,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserMatchThreshold"`: Specifies the minimum confidence in the UserID match to return. Default value is 80. """ -function search_users_by_image( +search_users_by_image( CollectionId, Image; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "SearchUsersByImage", + Dict{String,Any}("CollectionId" => CollectionId, "Image" => Image); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "SearchUsersByImage", - Dict{String,Any}("CollectionId" => CollectionId, "Image" => Image); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_users_by_image( CollectionId, Image, @@ -3291,16 +3183,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys topic must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy. """ -function start_celebrity_recognition( - Video; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +start_celebrity_recognition(Video; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StartCelebrityRecognition", Dict{String,Any}("Video" => Video); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_celebrity_recognition( Video, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3354,14 +3243,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy to access the topic. """ -function start_content_moderation(Video; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +start_content_moderation(Video; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StartContentModeration", Dict{String,Any}("Video" => Video); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_content_moderation( Video, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3408,14 +3296,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon SNS topic must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy. """ -function start_face_detection(Video; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +start_face_detection(Video; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StartFaceDetection", Dict{String,Any}("Video" => Video); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_face_detection( Video, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3461,16 +3348,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy to access the topic. """ -function start_face_search( - CollectionId, Video; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +start_face_search(CollectionId, Video; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StartFaceSearch", Dict{String,Any}("CollectionId" => CollectionId, "Video" => Video); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_face_search( CollectionId, Video, @@ -3543,14 +3427,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameters for the label detection request of an asynchronous label analysis operation. Settings can include filters for GENERAL_LABELS. """ -function start_label_detection(Video; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +start_label_detection(Video; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StartLabelDetection", Dict{String,Any}("Video" => Video); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_label_detection( Video, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3585,24 +3468,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys used to encrypt images copied into the service. The key is also used to encrypt results and manifest files written to the output Amazon S3 bucket. """ -function start_media_analysis_job( +start_media_analysis_job( Input, OperationsConfig, OutputConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = rekognition( + "StartMediaAnalysisJob", + Dict{String,Any}( + "Input" => Input, + "OperationsConfig" => OperationsConfig, + "OutputConfig" => OutputConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "StartMediaAnalysisJob", - Dict{String,Any}( - "Input" => Input, - "OperationsConfig" => OperationsConfig, - "OutputConfig" => OutputConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_media_analysis_job( Input, OperationsConfig, @@ -3660,14 +3541,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy. """ -function start_person_tracking(Video; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +start_person_tracking(Video; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StartPersonTracking", Dict{String,Any}("Video" => Video); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_person_tracking( Video, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3703,19 +3583,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys model. If you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale the model. """ -function start_project_version( +start_project_version( MinInferenceUnits, ProjectVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "StartProjectVersion", + Dict{String,Any}( + "MinInferenceUnits" => MinInferenceUnits, + "ProjectVersionArn" => ProjectVersionArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "StartProjectVersion", - Dict{String,Any}( - "MinInferenceUnits" => MinInferenceUnits, - "ProjectVersionArn" => ProjectVersionArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_project_version( MinInferenceUnits, ProjectVersionArn, @@ -3778,16 +3656,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that the Amazon SNS topic must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy to access the topic. """ -function start_segment_detection( +start_segment_detection( SegmentTypes, Video; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "StartSegmentDetection", + Dict{String,Any}("SegmentTypes" => SegmentTypes, "Video" => Video); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "StartSegmentDetection", - Dict{String,Any}("SegmentTypes" => SegmentTypes, "Video" => Video); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_segment_detection( SegmentTypes, Video, @@ -3832,14 +3708,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maximum amount of time to process the video. This is a required parameter for label detection stream processors and should not be used to start a face search stream processor. """ -function start_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +start_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StartStreamProcessor", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_stream_processor( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3880,14 +3755,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and identify them in the completion notification. - `"NotificationChannel"`: """ -function start_text_detection(Video; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +start_text_detection(Video; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StartTextDetection", Dict{String,Any}("Video" => Video); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_text_detection( Video, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3914,16 +3788,14 @@ permissions to perform the rekognition:StopProjectVersion action. action. """ -function stop_project_version( +stop_project_version( ProjectVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "StopProjectVersion", + Dict{String,Any}("ProjectVersionArn" => ProjectVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "StopProjectVersion", - Dict{String,Any}("ProjectVersionArn" => ProjectVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_project_version( ProjectVersionArn, params::AbstractDict{String}; @@ -3951,14 +3823,13 @@ Stops a running stream processor that was created by CreateStreamProcessor. - `name`: The name of a stream processor created by CreateStreamProcessor. """ -function stop_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +stop_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "StopStreamProcessor", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_stream_processor( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3984,14 +3855,13 @@ requires permissions to perform the rekognition:TagResource action. - `tags`: The key-value tags to assign to the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -4026,16 +3896,13 @@ rekognition:UntagResource action. - `tag_keys`: A list of the tags that you want to remove. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return rekognition( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -4083,16 +3950,14 @@ permissions to perform the rekognition:UpdateDatasetEntries action. - `dataset_arn`: The Amazon Resource Name (ARN) of the dataset that you want to update. """ -function update_dataset_entries( +update_dataset_entries( Changes, DatasetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rekognition( + "UpdateDatasetEntries", + Dict{String,Any}("Changes" => Changes, "DatasetArn" => DatasetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rekognition( - "UpdateDatasetEntries", - Dict{String,Any}("Changes" => Changes, "DatasetArn" => DatasetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_dataset_entries( Changes, DatasetArn, @@ -4138,14 +4003,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys detection settings can be updated to detect different labels with a different minimum confidence. """ -function update_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return rekognition( +update_stream_processor(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + rekognition( "UpdateStreamProcessor", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_stream_processor( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/repostspace.jl b/src/services/repostspace.jl index 22e699aed..8334e3720 100644 --- a/src/services/repostspace.jl +++ b/src/services/repostspace.jl @@ -29,17 +29,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys don't provide a key, your data is encrypted by default with a key that AWS owns and manages for you. """ -function create_space( - name, subdomain, tier; aws_config::AbstractAWSConfig=current_aws_config() -) - return repostspace( +create_space(name, subdomain, tier; aws_config::AbstractAWSConfig=current_aws_config()) = + repostspace( "POST", "/spaces", Dict{String,Any}("name" => name, "subdomain" => subdomain, "tier" => tier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_space( name, subdomain, @@ -72,14 +69,12 @@ Deletes an AWS re:Post Private private re:Post. - `space_id`: The unique ID of the private re:Post. """ -function delete_space(spaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return repostspace( - "DELETE", - "/spaces/$(spaceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_space(spaceId; aws_config::AbstractAWSConfig=current_aws_config()) = repostspace( + "DELETE", + "/spaces/$(spaceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_space( spaceId, params::AbstractDict{String}; @@ -105,16 +100,13 @@ Removes the user or group from the list of administrators of the private re:Post - `space_id`: The ID of the private re:Post to remove the admin from. """ -function deregister_admin( - adminId, spaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return repostspace( +deregister_admin(adminId, spaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + repostspace( "DELETE", "/spaces/$(spaceId)/admins/$(adminId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_admin( adminId, spaceId, @@ -140,11 +132,9 @@ Displays information about the AWS re:Post Private private re:Post. - `space_id`: The ID of the private re:Post. """ -function get_space(spaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return repostspace( - "GET", "/spaces/$(spaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_space(spaceId; aws_config::AbstractAWSConfig=current_aws_config()) = repostspace( + "GET", "/spaces/$(spaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_space( spaceId, params::AbstractDict{String}; @@ -172,11 +162,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of private re:Posts to return. You receive this token from a previous ListSpaces operation. """ -function list_spaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return repostspace( - "GET", "/spaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_spaces(; aws_config::AbstractAWSConfig=current_aws_config()) = + repostspace("GET", "/spaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_spaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -196,16 +183,13 @@ resourceArn. The only resource that can be tagged is a private re:Post. - `resource_arn`: The ARN of the resource that the tags are associated with. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return repostspace( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + repostspace( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -231,16 +215,13 @@ Adds a user or group to the list of administrators of the private re:Post. - `space_id`: The ID of the private re:Post. """ -function register_admin( - adminId, spaceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return repostspace( +register_admin(adminId, spaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + repostspace( "POST", "/spaces/$(spaceId)/admins/$(adminId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function register_admin( adminId, spaceId, @@ -269,17 +250,15 @@ Sends an invitation email to selected users and groups. - `title`: The title of the invite. """ -function send_invites( +send_invites( accessorIds, body, spaceId, title; aws_config::AbstractAWSConfig=current_aws_config() +) = repostspace( + "POST", + "/spaces/$(spaceId)/invite", + Dict{String,Any}("accessorIds" => accessorIds, "body" => body, "title" => title); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return repostspace( - "POST", - "/spaces/$(spaceId)/invite", - Dict{String,Any}("accessorIds" => accessorIds, "body" => body, "title" => title); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_invites( accessorIds, body, @@ -322,15 +301,14 @@ replaces the previous value for that tag. tags. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return repostspace( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + repostspace( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -357,17 +335,14 @@ Removes the association of the tag with the AWS re:Post Private resource. - `tag_keys`: The key values of the tag. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return repostspace( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + repostspace( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -400,11 +375,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys unanswered questions into AWS support tickets. - `"tier"`: The pricing tier of this private re:Post. """ -function update_space(spaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return repostspace( - "PUT", "/spaces/$(spaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_space(spaceId; aws_config::AbstractAWSConfig=current_aws_config()) = repostspace( + "PUT", "/spaces/$(spaceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_space( spaceId, params::AbstractDict{String}; diff --git a/src/services/resiliencehub.jl b/src/services/resiliencehub.jl index eb576a94a..f2003bfbc 100644 --- a/src/services/resiliencehub.jl +++ b/src/services/resiliencehub.jl @@ -4,6 +4,50 @@ using AWS.AWSServices: resiliencehub using AWS.Compat using AWS.UUIDs +""" + accept_resource_grouping_recommendations(app_arn, entries) + accept_resource_grouping_recommendations(app_arn, entries, params::Dict{String,<:Any}) + +Accepts the resource grouping recommendations suggested by Resilience Hub for your +application. + +# Arguments +- `app_arn`: Amazon Resource Name (ARN) of the Resilience Hub application. The format for + this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information + about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference + guide. +- `entries`: Indicates the list of resource grouping recommendations you want to include in + your application. + +""" +accept_resource_grouping_recommendations( + appArn, entries; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/accept-resource-grouping-recommendations", + Dict{String,Any}("appArn" => appArn, "entries" => entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function accept_resource_grouping_recommendations( + appArn, + entries, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return resiliencehub( + "POST", + "/accept-resource-grouping-recommendations", + Dict{String,Any}( + mergewith( + _merge, Dict{String,Any}("appArn" => appArn, "entries" => entries), params + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ add_draft_app_version_resource_mappings(app_arn, resource_mappings) add_draft_app_version_resource_mappings(app_arn, resource_mappings, params::Dict{String,<:Any}) @@ -11,7 +55,7 @@ using AWS.UUIDs Adds the source of resource-maps to the draft version of an application. During assessment, Resilience Hub will use these resource-maps to resolve the latest physical ID for each resource in the application template. For more information about different types of -resources suported by Resilience Hub and how to add them in your application, see Step 2: +resources supported by Resilience Hub and how to add them in your application, see Step 2: How is your application managed? in the Resilience Hub User Guide. # Arguments @@ -26,17 +70,15 @@ How is your application managed? in the Resilience Hub User Guide. CloudFormation stack. """ -function add_draft_app_version_resource_mappings( +add_draft_app_version_resource_mappings( appArn, resourceMappings; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/add-draft-app-version-resource-mappings", + Dict{String,Any}("appArn" => appArn, "resourceMappings" => resourceMappings); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/add-draft-app-version-resource-mappings", - Dict{String,Any}("appArn" => appArn, "resourceMappings" => resourceMappings); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_draft_app_version_resource_mappings( appArn, resourceMappings, @@ -75,17 +117,15 @@ Enables you to include or exclude one or more operational recommendations. included or excluded. """ -function batch_update_recommendation_status( +batch_update_recommendation_status( appArn, requestEntries; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/batch-update-recommendation-status", + Dict{String,Any}("appArn" => appArn, "requestEntries" => requestEntries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/batch-update-recommendation-status", - Dict{String,Any}("appArn" => appArn, "requestEntries" => requestEntries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_recommendation_status( appArn, requestEntries, @@ -146,15 +186,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair. """ -function create_app(name; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( - "POST", - "/create-app", - Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_app(name; aws_config::AbstractAWSConfig=current_aws_config()) = resiliencehub( + "POST", + "/create-app", + Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_app( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -200,22 +238,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys token for other API requests. - `"id"`: Identifier of the Application Component. """ -function create_app_version_app_component( +create_app_version_app_component( appArn, name, type; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/create-app-version-app-component", + Dict{String,Any}( + "appArn" => appArn, + "name" => name, + "type" => type, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/create-app-version-app-component", - Dict{String,Any}( - "appArn" => appArn, - "name" => name, - "type" => type, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_version_app_component( appArn, name, @@ -276,29 +312,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys token for other API requests. - `"resourceName"`: Name of the resource. """ -function create_app_version_resource( +create_app_version_resource( appArn, appComponents, logicalResourceId, physicalResourceId, resourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = resiliencehub( + "POST", + "/create-app-version-resource", + Dict{String,Any}( + "appArn" => appArn, + "appComponents" => appComponents, + "logicalResourceId" => logicalResourceId, + "physicalResourceId" => physicalResourceId, + "resourceType" => resourceType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/create-app-version-resource", - Dict{String,Any}( - "appArn" => appArn, - "appComponents" => appComponents, - "logicalResourceId" => logicalResourceId, - "physicalResourceId" => physicalResourceId, - "resourceType" => resourceType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_version_resource( appArn, appComponents, @@ -360,21 +394,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair. """ -function create_recommendation_template( +create_recommendation_template( assessmentArn, name; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/create-recommendation-template", + Dict{String,Any}( + "assessmentArn" => assessmentArn, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/create-recommendation-template", - Dict{String,Any}( - "assessmentArn" => assessmentArn, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_recommendation_template( assessmentArn, name, @@ -429,22 +461,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair. """ -function create_resiliency_policy( +create_resiliency_policy( policy, policyName, tier; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/create-resiliency-policy", + Dict{String,Any}( + "policy" => policy, + "policyName" => policyName, + "tier" => tier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/create-resiliency-policy", - Dict{String,Any}( - "policy" => policy, - "policyName" => policyName, - "tier" => tier, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resiliency_policy( policy, policyName, @@ -491,15 +521,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys token for other API requests. - `"forceDelete"`: A boolean option to force the deletion of an Resilience Hub application. """ -function delete_app(appArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( - "POST", - "/delete-app", - Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_app(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = resiliencehub( + "POST", + "/delete-app", + Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_app( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -537,10 +565,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests. """ -function delete_app_assessment( - assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +delete_app_assessment(assessmentArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/delete-app-assessment", Dict{String,Any}( @@ -549,7 +575,6 @@ function delete_app_assessment( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app_assessment( assessmentArn, params::AbstractDict{String}; @@ -598,15 +623,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"terraformSource"`: The imported Terraform s3 state file you want to remove from the Resilience Hub application. """ -function delete_app_input_source(appArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( +delete_app_input_source(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/delete-app-input-source", Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app_input_source( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -648,17 +672,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests. """ -function delete_app_version_app_component( +delete_app_version_app_component( appArn, id; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/delete-app-version-app-component", + Dict{String,Any}("appArn" => appArn, "id" => id, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/delete-app-version-app-component", - Dict{String,Any}("appArn" => appArn, "id" => id, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_version_app_component( appArn, id, @@ -709,17 +731,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"physicalResourceId"`: Physical identifier of the resource. - `"resourceName"`: Name of the resource. """ -function delete_app_version_resource( - appArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +delete_app_version_resource(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/delete-app-version-resource", Dict{String,Any}("appArn" => appArn, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app_version_resource( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -754,20 +773,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests. """ -function delete_recommendation_template( +delete_recommendation_template( recommendationTemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/delete-recommendation-template", + Dict{String,Any}( + "recommendationTemplateArn" => recommendationTemplateArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/delete-recommendation-template", - Dict{String,Any}( - "recommendationTemplateArn" => recommendationTemplateArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_recommendation_template( recommendationTemplateArn, params::AbstractDict{String}; @@ -809,17 +826,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests. """ -function delete_resiliency_policy( - policyArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +delete_resiliency_policy(policyArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/delete-resiliency-policy", Dict{String,Any}("policyArn" => policyArn, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resiliency_policy( policyArn, params::AbstractDict{String}; @@ -855,15 +869,13 @@ Describes an Resilience Hub application. guide. """ -function describe_app(appArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( - "POST", - "/describe-app", - Dict{String,Any}("appArn" => appArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_app(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = resiliencehub( + "POST", + "/describe-app", + Dict{String,Any}("appArn" => appArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_app( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -889,17 +901,14 @@ Describes an assessment for an Resilience Hub application. guide. """ -function describe_app_assessment( - assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +describe_app_assessment(assessmentArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/describe-app-assessment", Dict{String,Any}("assessmentArn" => assessmentArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_app_assessment( assessmentArn, params::AbstractDict{String}; @@ -930,17 +939,15 @@ Describes the Resilience Hub application version. - `app_version`: Resilience Hub application version. """ -function describe_app_version( +describe_app_version( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/describe-app-version", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/describe-app-version", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_version( appArn, appVersion, @@ -977,17 +984,15 @@ Describes an Application Component in the Resilience Hub application. - `id`: Identifier of the Application Component. """ -function describe_app_version_app_component( +describe_app_version_app_component( appArn, appVersion, id; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/describe-app-version-app-component", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion, "id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/describe-app-version-app-component", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion, "id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_version_app_component( appArn, appVersion, @@ -1017,7 +1022,7 @@ end describe_app_version_resource(app_arn, app_version, params::Dict{String,<:Any}) Describes a resource of the Resilience Hub application. This API accepts only one of the -following parameters to descibe the resource: resourceName logicalResourceId +following parameters to describe the resource: resourceName logicalResourceId physicalResourceId (Along with physicalResourceId, you can also provide awsAccountId, and awsRegion) @@ -1036,17 +1041,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"physicalResourceId"`: Physical identifier of the resource. - `"resourceName"`: Name of the resource. """ -function describe_app_version_resource( +describe_app_version_resource( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/describe-app-version-resource", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/describe-app-version-resource", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_version_resource( appArn, appVersion, @@ -1086,17 +1089,15 @@ version. If resolutionId is not specified, the current resolution status is retu Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"resolutionId"`: The identifier for a specific resolution. """ -function describe_app_version_resources_resolution_status( +describe_app_version_resources_resolution_status( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/describe-app-version-resources-resolution-status", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/describe-app-version-resources-resolution-status", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_version_resources_resolution_status( appArn, appVersion, @@ -1132,17 +1133,15 @@ Describes details about an Resilience Hub application. - `app_version`: The version of the application. """ -function describe_app_version_template( +describe_app_version_template( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/describe-app-version-template", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/describe-app-version-template", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_version_template( appArn, appVersion, @@ -1180,17 +1179,15 @@ describeDraftAppVersionResourcesImportStatus to obtain the status. guide. """ -function describe_draft_app_version_resources_import_status( +describe_draft_app_version_resources_import_status( appArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/describe-draft-app-version-resources-import-status", + Dict{String,Any}("appArn" => appArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/describe-draft-app-version-resources-import-status", - Dict{String,Any}("appArn" => appArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_draft_app_version_resources_import_status( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1218,17 +1215,14 @@ policy object includes creation time, data location constraints, the Amazon Reso General Reference guide. """ -function describe_resiliency_policy( - policyArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +describe_resiliency_policy(policyArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/describe-resiliency-policy", Dict{String,Any}("policyArn" => policyArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_resiliency_policy( policyArn, params::AbstractDict{String}; @@ -1245,6 +1239,44 @@ function describe_resiliency_policy( ) end +""" + describe_resource_grouping_recommendation_task(app_arn) + describe_resource_grouping_recommendation_task(app_arn, params::Dict{String,<:Any}) + +Describes the resource grouping recommendation tasks run by Resilience Hub for your +application. + +# Arguments +- `app_arn`: Amazon Resource Name (ARN) of the Resilience Hub application. The format for + this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information + about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference + guide. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"groupingId"`: Indicates the identifier of the grouping recommendation task. +""" +describe_resource_grouping_recommendation_task( + appArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/describe-resource-grouping-recommendation-task", + Dict{String,Any}("appArn" => appArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_resource_grouping_recommendation_task( + appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return resiliencehub( + "POST", + "/describe-resource-grouping-recommendation-task", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("appArn" => appArn), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ import_resources_to_draft_app_version(app_arn) import_resources_to_draft_app_version(app_arn, params::Dict{String,<:Any}) @@ -1268,17 +1300,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sourceArns"`: The Amazon Resource Names (ARNs) for the resources. - `"terraformSources"`: A list of terraform file s3 URLs you need to import. """ -function import_resources_to_draft_app_version( +import_resources_to_draft_app_version( appArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/import-resources-to-draft-app-version", + Dict{String,Any}("appArn" => appArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/import-resources-to-draft-app-version", - Dict{String,Any}("appArn" => appArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_resources_to_draft_app_version( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1310,17 +1340,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_alarm_recommendations( +list_alarm_recommendations( assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-alarm-recommendations", + Dict{String,Any}("assessmentArn" => assessmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-alarm-recommendations", - Dict{String,Any}("assessmentArn" => assessmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_alarm_recommendations( assessmentArn, params::AbstractDict{String}; @@ -1351,21 +1379,18 @@ List of compliance drifts that were detected while running an assessment. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: -- `"maxResults"`: Indicates the maximum number of applications requested. -- `"nextToken"`: Indicates the unique token number of the next application to be checked - for compliance and regulatory requirements from the list of applications. +- `"maxResults"`: Indicates the maximum number of compliance drifts requested. +- `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_app_assessment_compliance_drifts( +list_app_assessment_compliance_drifts( assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-app-assessment-compliance-drifts", + Dict{String,Any}("assessmentArn" => assessmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-app-assessment-compliance-drifts", - Dict{String,Any}("assessmentArn" => assessmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_assessment_compliance_drifts( assessmentArn, params::AbstractDict{String}; @@ -1401,17 +1426,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response so that the remaining results can be retrieved. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_app_assessment_resource_drifts( +list_app_assessment_resource_drifts( assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-app-assessment-resource-drifts", + Dict{String,Any}("assessmentArn" => assessmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-app-assessment-resource-drifts", - Dict{String,Any}("assessmentArn" => assessmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_assessment_resource_drifts( assessmentArn, params::AbstractDict{String}; @@ -1453,14 +1476,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reverseOrder"`: The default is to sort by ascending startTime. To sort by descending startTime, set reverseOrder to true. """ -function list_app_assessments(; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( - "GET", - "/list-app-assessments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_app_assessments(; aws_config::AbstractAWSConfig=current_aws_config()) = resiliencehub( + "GET", + "/list-app-assessments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_app_assessments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1492,17 +1513,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_app_component_compliances( +list_app_component_compliances( assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-app-component-compliances", + Dict{String,Any}("assessmentArn" => assessmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-app-component-compliances", - Dict{String,Any}("assessmentArn" => assessmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_component_compliances( assessmentArn, params::AbstractDict{String}; @@ -1538,17 +1557,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_app_component_recommendations( +list_app_component_recommendations( assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-app-component-recommendations", + Dict{String,Any}("assessmentArn" => assessmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-app-component-recommendations", - Dict{String,Any}("assessmentArn" => assessmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_component_recommendations( assessmentArn, params::AbstractDict{String}; @@ -1586,17 +1603,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys application. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_app_input_sources( +list_app_input_sources( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-app-input-sources", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-app-input-sources", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_input_sources( appArn, appVersion, @@ -1637,17 +1652,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Hub application version. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_app_version_app_components( +list_app_version_app_components( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-app-version-app-components", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-app-version-app-components", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_version_app_components( appArn, appVersion, @@ -1691,17 +1704,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_app_version_resource_mappings( +list_app_version_resource_mappings( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-app-version-resource-mappings", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-app-version-resource-mappings", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_version_resource_mappings( appArn, appVersion, @@ -1744,17 +1755,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Null, or the token from a previous call to get the next set of results. - `"resolutionId"`: The identifier for a specific resolution. """ -function list_app_version_resources( +list_app_version_resources( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-app-version-resources", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-app-version-resources", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_app_version_resources( appArn, appVersion, @@ -1797,15 +1806,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Null, or the token from a previous call to get the next set of results. - `"startTime"`: Lower limit of the time range to filter the application versions. """ -function list_app_versions(appArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( +list_app_versions(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/list-app-versions", Dict{String,Any}("appArn" => appArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_app_versions( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1842,15 +1850,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Null, or the token from a previous call to get the next set of results. - `"reverseOrder"`: The application list is sorted based on the values of lastAppComplianceEvaluationTime field. By default, application list is sorted in ascending - order. To sort the appliation list in descending order, set this field to True. + order. To sort the application list in descending order, set this field to True. - `"toLastAssessmentTime"`: Indicates the upper limit of the range that is used to filter the applications based on their last assessment times. """ -function list_apps(; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( - "GET", "/list-apps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_apps(; aws_config::AbstractAWSConfig=current_aws_config()) = resiliencehub( + "GET", "/list-apps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_apps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1882,14 +1888,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys startTime, set reverseOrder to true. - `"status"`: Status of the action. """ -function list_recommendation_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( +list_recommendation_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "GET", "/list-recommendation-templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_recommendation_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1916,14 +1921,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Null, or the token from a previous call to get the next set of results. - `"policyName"`: The name of the policy """ -function list_resiliency_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( +list_resiliency_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "GET", "/list-resiliency-policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resiliency_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1936,6 +1940,43 @@ function list_resiliency_policies( ) end +""" + list_resource_grouping_recommendations() + list_resource_grouping_recommendations(params::Dict{String,<:Any}) + +Lists the resource grouping recommendations suggested by Resilience Hub for your +application. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"appArn"`: Amazon Resource Name (ARN) of the Resilience Hub application. The format for + this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information + about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference + guide. +- `"maxResults"`: Maximum number of grouping recommendations to be displayed per Resilience + Hub application. +- `"nextToken"`: Null, or the token from a previous call to get the next set of results. +""" +list_resource_grouping_recommendations(; + aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "GET", + "/list-resource-grouping-recommendations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_resource_grouping_recommendations( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return resiliencehub( + "GET", + "/list-resource-grouping-recommendations", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ list_sop_recommendations(assessment_arn) list_sop_recommendations(assessment_arn, params::Dict{String,<:Any}) @@ -1956,17 +1997,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_sop_recommendations( +list_sop_recommendations( assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-sop-recommendations", + Dict{String,Any}("assessmentArn" => assessmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-sop-recommendations", - Dict{String,Any}("assessmentArn" => assessmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_sop_recommendations( assessmentArn, params::AbstractDict{String}; @@ -1996,16 +2035,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_suggested_resiliency_policies(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +list_suggested_resiliency_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "GET", "/list-suggested-resiliency-policies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_suggested_resiliency_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2029,16 +2065,13 @@ Lists the tags for your resources in your Resilience Hub applications. Hub application. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -2072,17 +2105,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys remaining results can be retrieved. - `"nextToken"`: Null, or the token from a previous call to get the next set of results. """ -function list_test_recommendations( +list_test_recommendations( assessmentArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-test-recommendations", + Dict{String,Any}("assessmentArn" => assessmentArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-test-recommendations", - Dict{String,Any}("assessmentArn" => assessmentArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_test_recommendations( assessmentArn, params::AbstractDict{String}; @@ -2122,17 +2153,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Null, or the token from a previous call to get the next set of results. - `"resolutionId"`: The identifier for a specific resolution. """ -function list_unsupported_app_version_resources( +list_unsupported_app_version_resources( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/list-unsupported-app-version-resources", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/list-unsupported-app-version-resources", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_unsupported_app_version_resources( appArn, appVersion, @@ -2170,15 +2199,14 @@ Publishes a new version of a specific Resilience Hub application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"versionName"`: Name of the application version. """ -function publish_app_version(appArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( +publish_app_version(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/publish-app-version", Dict{String,Any}("appArn" => appArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function publish_app_version( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2256,31 +2284,72 @@ Adds or updates the app template for an Resilience Hub application draft version \"[{\"region\":\"<REGION>\", \"accounts\":[{\"id\":\"<ACCOUNT_ID>\"}]}]\" """ -function put_draft_app_version_template( +put_draft_app_version_template( appArn, appTemplateBody; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/put-draft-app-version-template", + Dict{String,Any}("appArn" => appArn, "appTemplateBody" => appTemplateBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function put_draft_app_version_template( + appArn, + appTemplateBody, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return resiliencehub( "POST", "/put-draft-app-version-template", - Dict{String,Any}("appArn" => appArn, "appTemplateBody" => appTemplateBody); + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("appArn" => appArn, "appTemplateBody" => appTemplateBody), + params, + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function put_draft_app_version_template( + +""" + reject_resource_grouping_recommendations(app_arn, entries) + reject_resource_grouping_recommendations(app_arn, entries, params::Dict{String,<:Any}) + +Rejects resource grouping recommendations. + +# Arguments +- `app_arn`: Amazon Resource Name (ARN) of the Resilience Hub application. The format for + this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information + about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference + guide. +- `entries`: Indicates the list of resource grouping recommendations you have selected to + exclude from your application. + +""" +reject_resource_grouping_recommendations( + appArn, entries; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/reject-resource-grouping-recommendations", + Dict{String,Any}("appArn" => appArn, "entries" => entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function reject_resource_grouping_recommendations( appArn, - appTemplateBody, + entries, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return resiliencehub( "POST", - "/put-draft-app-version-template", + "/reject-resource-grouping-recommendations", Dict{String,Any}( mergewith( - _merge, - Dict{String,Any}("appArn" => appArn, "appTemplateBody" => appTemplateBody), - params, + _merge, Dict{String,Any}("appArn" => appArn, "entries" => entries), params ), ); aws_config=aws_config, @@ -2316,17 +2385,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"terraformSourceNames"`: The names of the Terraform sources you want to remove from the resource mappings. """ -function remove_draft_app_version_resource_mappings( +remove_draft_app_version_resource_mappings( appArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/remove-draft-app-version-resource-mappings", + Dict{String,Any}("appArn" => appArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/remove-draft-app-version-resource-mappings", - Dict{String,Any}("appArn" => appArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_draft_app_version_resource_mappings( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2353,17 +2420,15 @@ Resolves the resources for an application version. - `app_version`: The version of the application. """ -function resolve_app_version_resources( +resolve_app_version_resources( appArn, appVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/resolve-app-version-resources", + Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/resolve-app-version-resources", - Dict{String,Any}("appArn" => appArn, "appVersion" => appVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function resolve_app_version_resources( appArn, appVersion, @@ -2407,22 +2472,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair. """ -function start_app_assessment( +start_app_assessment( appArn, appVersion, assessmentName; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/start-app-assessment", + Dict{String,Any}( + "appArn" => appArn, + "appVersion" => appVersion, + "assessmentName" => assessmentName, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/start-app-assessment", - Dict{String,Any}( - "appArn" => appArn, - "appVersion" => appVersion, - "assessmentName" => assessmentName, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_app_assessment( appArn, appVersion, @@ -2450,6 +2513,40 @@ function start_app_assessment( ) end +""" + start_resource_grouping_recommendation_task(app_arn) + start_resource_grouping_recommendation_task(app_arn, params::Dict{String,<:Any}) + +Starts grouping recommendation task. + +# Arguments +- `app_arn`: Amazon Resource Name (ARN) of the Resilience Hub application. The format for + this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information + about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference + guide. + +""" +start_resource_grouping_recommendation_task( + appArn; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/start-resource-grouping-recommendation-task", + Dict{String,Any}("appArn" => appArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function start_resource_grouping_recommendation_task( + appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return resiliencehub( + "POST", + "/start-resource-grouping-recommendation-task", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("appArn" => appArn), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ tag_resource(resource_arn, tags) tag_resource(resource_arn, tags, params::Dict{String,<:Any}) @@ -2461,15 +2558,14 @@ Applies one or more tags to a resource. - `tags`: The tags to assign to the resource. Each tag consists of a key/value pair. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2496,17 +2592,14 @@ Removes one or more tags from a resource. - `tag_keys`: The keys of the tags you want to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2549,15 +2642,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. """ -function update_app(appArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( - "POST", - "/update-app", - Dict{String,Any}("appArn" => appArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_app(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = resiliencehub( + "POST", + "/update-app", + Dict{String,Any}("appArn" => appArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_app( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2593,15 +2684,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys failover region and one associated account. Key: \"failover-regions\" Value: \"[{\"region\":\"<REGION>\", \"accounts\":[{\"id\":\"<ACCOUNT_ID>\"}]}]\" """ -function update_app_version(appArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resiliencehub( +update_app_version(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/update-app-version", Dict{String,Any}("appArn" => appArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_app_version( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2638,17 +2728,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"type"`: Type of Application Component. For more information about the types of Application Component, see Grouping resources in an AppComponent. """ -function update_app_version_app_component( +update_app_version_app_component( appArn, id; aws_config::AbstractAWSConfig=current_aws_config() +) = resiliencehub( + "POST", + "/update-app-version-app-component", + Dict{String,Any}("appArn" => appArn, "id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resiliencehub( - "POST", - "/update-app-version-app-component", - Dict{String,Any}("appArn" => appArn, "id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_version_app_component( appArn, id, @@ -2696,17 +2784,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceName"`: Name of the resource. - `"resourceType"`: Type of resource. """ -function update_app_version_resource( - appArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +update_app_version_resource(appArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/update-app-version-resource", Dict{String,Any}("appArn" => appArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_app_version_resource( appArn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2746,17 +2831,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tier"`: The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (NonCritical). """ -function update_resiliency_policy( - policyArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resiliencehub( +update_resiliency_policy(policyArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resiliencehub( "POST", "/update-resiliency-policy", Dict{String,Any}("policyArn" => policyArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_resiliency_policy( policyArn, params::AbstractDict{String}; diff --git a/src/services/resource_explorer_2.jl b/src/services/resource_explorer_2.jl index 89dc26c10..8e23ceab7 100644 --- a/src/services/resource_explorer_2.jl +++ b/src/services/resource_explorer_2.jl @@ -21,15 +21,14 @@ every Search operation performed in that Region. operation. The specified view must already exist in the called Region. """ -function associate_default_view(ViewArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +associate_default_view(ViewArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/AssociateDefaultView", Dict{String,Any}("ViewArn" => ViewArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_default_view( ViewArn, params::AbstractDict{String}; @@ -55,11 +54,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ViewArns"`: A list of Amazon resource names (ARNs) that identify the views you want details for. """ -function batch_get_view(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( - "POST", "/BatchGetView"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +batch_get_view(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_explorer_2( + "POST", "/BatchGetView"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function batch_get_view( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -111,15 +108,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The specified tags are attached only to the index created in this Amazon Web Services Region. The tags aren't attached to any of the resources listed in the index. """ -function create_index(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( - "POST", - "/CreateIndex", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_index(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_explorer_2( + "POST", + "/CreateIndex", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_index( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -172,15 +167,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ARN. If left empty, the default is account. - `"Tags"`: Tag key and value pairs that are attached to the view. """ -function create_view(ViewName; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +create_view(ViewName; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/CreateView", Dict{String,Any}("ViewName" => ViewName, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_view( ViewName, params::AbstractDict{String}; @@ -219,15 +213,13 @@ Resource Explorer until another aggregator index is configured. - `arn`: The Amazon resource name (ARN) of the index that you want to delete. """ -function delete_index(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( - "POST", - "/DeleteIndex", - Dict{String,Any}("Arn" => Arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_index(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = resource_explorer_2( + "POST", + "/DeleteIndex", + Dict{String,Any}("Arn" => Arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_index( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -252,15 +244,14 @@ to use until you configure a new default by calling the AssociateDefaultView ope - `view_arn`: The Amazon resource name (ARN) of the view that you want to delete. """ -function delete_view(ViewArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +delete_view(ViewArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/DeleteView", Dict{String,Any}("ViewArn" => ViewArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_view( ViewArn, params::AbstractDict{String}; @@ -286,14 +277,13 @@ operation. If an Amazon Web Services Region doesn't have a default view configur users must explicitly specify a view with every Search operation performed in that Region. """ -function disassociate_default_view(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +disassociate_default_view(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/DisassociateDefaultView"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_default_view( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -316,16 +306,14 @@ management account or a delegated administrator with service access enabled can API call. """ -function get_account_level_service_configuration(; +get_account_level_service_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = resource_explorer_2( + "POST", + "/GetAccountLevelServiceConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resource_explorer_2( - "POST", - "/GetAccountLevelServiceConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_account_level_service_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -347,11 +335,10 @@ Services Region in which you call this operation. You can then call GetView to r details of that view. """ -function get_default_view(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +get_default_view(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/GetDefaultView"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_default_view( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -372,11 +359,9 @@ Retrieves details about the Amazon Web Services Resource Explorer index in the A Services Region in which you invoked the operation. """ -function get_index(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( - "POST", "/GetIndex"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_index(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_explorer_2( + "POST", "/GetIndex"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_index( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -395,15 +380,13 @@ Retrieves details of the specified view. - `view_arn`: The Amazon resource name (ARN) of the view that you want information about. """ -function get_view(ViewArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( - "POST", - "/GetView", - Dict{String,Any}("ViewArn" => ViewArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_view(ViewArn; aws_config::AbstractAWSConfig=current_aws_config()) = resource_explorer_2( + "POST", + "/GetView", + Dict{String,Any}("ViewArn" => ViewArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_view( ViewArn, params::AbstractDict{String}; @@ -444,11 +427,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: If specified, limits the output to only indexes of the specified Type, either LOCAL or AGGREGATOR. Use this option to discover the aggregator index for your account. """ -function list_indexes(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( - "POST", "/ListIndexes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_indexes(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_explorer_2( + "POST", "/ListIndexes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_indexes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -489,17 +470,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours. """ -function list_indexes_for_members( +list_indexes_for_members( AccountIdList; aws_config::AbstractAWSConfig=current_aws_config() +) = resource_explorer_2( + "POST", + "/ListIndexesForMembers", + Dict{String,Any}("AccountIdList" => AccountIdList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resource_explorer_2( - "POST", - "/ListIndexesForMembers", - Dict{String,Any}("AccountIdList" => AccountIdList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_indexes_for_members( AccountIdList, params::AbstractDict{String}; @@ -538,14 +517,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours. """ -function list_supported_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +list_supported_resource_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/ListSupportedResourceTypes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_supported_resource_types( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -569,16 +547,13 @@ Lists the tags that are attached to the specified resource. attach tags to. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return resource_explorer_2( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -618,11 +593,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. The pagination tokens expire after 24 hours. """ -function list_views(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( - "POST", "/ListViews"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_views(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_explorer_2( + "POST", "/ListViews"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_views( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -674,15 +647,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Region either doesn't have a default view or if you don't have permission to use the default view, then the operation fails with a 401 Unauthorized exception. """ -function search(QueryString; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +search(QueryString; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/Search", Dict{String,Any}("QueryString" => QueryString); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search( QueryString, params::AbstractDict{String}; @@ -715,14 +687,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tag key and value pairs that you want to attach to the specified view or index. """ -function tag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +tag_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, params::AbstractDict{String}; @@ -751,17 +722,14 @@ view or index. view or index. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return resource_explorer_2( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -821,15 +789,14 @@ hours before you can promote another index to be the new aggregator index for th see Turning on cross-Region search in the Amazon Web Services Resource Explorer User Guide. """ -function update_index_type(Arn, Type; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +update_index_type(Arn, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/UpdateIndexType", Dict{String,Any}("Arn" => Arn, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_index_type( Arn, Type, @@ -872,15 +839,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results from this view. It is a list of objects that each describe a field to include. The default is an empty list, with no optional fields included in the results. """ -function update_view(ViewArn; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_explorer_2( +update_view(ViewArn; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_explorer_2( "POST", "/UpdateView", Dict{String,Any}("ViewArn" => ViewArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_view( ViewArn, params::AbstractDict{String}; diff --git a/src/services/resource_groups.jl b/src/services/resource_groups.jl index 0e71534dc..6752344b5 100644 --- a/src/services/resource_groups.jl +++ b/src/services/resource_groups.jl @@ -38,15 +38,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys or a Configuration, but not both. - `"Tags"`: The tags to add to the group. A tag is key-value pair string. """ -function create_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "POST", - "/groups", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "POST", + "/groups", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -73,11 +71,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Group"`: The name or the ARN of the resource group to delete. - `"GroupName"`: Deprecated - don't use this parameter. Use Group instead. """ -function delete_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "POST", "/delete-group"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_group(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "POST", "/delete-group"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -97,14 +93,13 @@ end Retrieves the current status of optional features in Resource Groups. """ -function get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( +get_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/get-account-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -129,11 +124,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Group"`: The name or the ARN of the resource group to retrieve. - `"GroupName"`: Deprecated - don't use this parameter. Use Group instead. """ -function get_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "POST", "/get-group"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_group(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "POST", "/get-group"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -156,14 +149,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Group"`: The name or the ARN of the resource group for which you want to retrive the service configuration. """ -function get_group_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( +get_group_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/get-group-configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_group_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -190,11 +182,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Group"`: The name or the ARN of the resource group to query. - `"GroupName"`: Don't use this parameter. Use Group instead. """ -function get_group_query(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "POST", "/get-group-query"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_group_query(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "POST", "/get-group-query"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_group_query( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -219,14 +209,12 @@ resource-groups:GetTags - `arn`: The ARN of the resource group whose tags you want to retrieve. """ -function get_tags(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "GET", - "/resources/$(Arn)/tags"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_tags(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "GET", + "/resources/$(Arn)/tags"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_tags( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -254,17 +242,14 @@ have the following permissions: resource-groups:GroupResources - `resource_arns`: The list of ARNs of the resources to be added to the group. """ -function group_resources( - Group, ResourceArns; aws_config::AbstractAWSConfig=current_aws_config() -) - return resource_groups( +group_resources(Group, ResourceArns; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/group-resources", Dict{String,Any}("Group" => Group, "ResourceArns" => ResourceArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function group_resources( Group, ResourceArns, @@ -329,14 +314,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value provided by a previous call's NextToken response to indicate where the output should continue from. """ -function list_group_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( +list_group_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/list-group-resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_group_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -380,11 +364,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value provided by a previous call's NextToken response to indicate where the output should continue from. """ -function list_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "POST", "/groups-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "POST", "/groups-list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -417,14 +399,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Group"`: The name or ARN of the resource group with the configuration that you want to update. """ -function put_group_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( +put_group_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/put-group-configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_group_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -466,15 +447,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available. Set this parameter to the value provided by a previous call's NextToken response to indicate where the output should continue from. """ -function search_resources(ResourceQuery; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( +search_resources(ResourceQuery; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/resources/search", Dict{String,Any}("ResourceQuery" => ResourceQuery); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_resources( ResourceQuery, params::AbstractDict{String}; @@ -508,15 +488,13 @@ have the following permissions: resource-groups:Tag of key-value pairs. """ -function tag(Arn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "PUT", - "/resources/$(Arn)/tags", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag(Arn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "PUT", + "/resources/$(Arn)/tags", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag( Arn, Tags, @@ -547,17 +525,14 @@ permissions: resource-groups:UngroupResources - `resource_arns`: The ARNs of the resources to be removed from the group. """ -function ungroup_resources( - Group, ResourceArns; aws_config::AbstractAWSConfig=current_aws_config() -) - return resource_groups( +ungroup_resources(Group, ResourceArns; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/ungroup-resources", Dict{String,Any}("Group" => Group, "ResourceArns" => ResourceArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function ungroup_resources( Group, ResourceArns, @@ -592,15 +567,13 @@ you must have the following permissions: resource-groups:Untag - `keys`: The keys of the tags to be removed. """ -function untag(Arn, Keys; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "PATCH", - "/resources/$(Arn)/tags", - Dict{String,Any}("Keys" => Keys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag(Arn, Keys; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "PATCH", + "/resources/$(Arn)/tags", + Dict{String,Any}("Keys" => Keys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag( Arn, Keys, @@ -630,14 +603,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GroupLifecycleEventsDesiredStatus"`: Specifies whether you want to turn group lifecycle events on or off. """ -function update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( +update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/update-account-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -665,11 +637,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Group"`: The name or the ARN of the resource group to modify. - `"GroupName"`: Don't use this parameter. Use Group instead. """ -function update_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups( - "POST", "/update-group"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_group(; aws_config::AbstractAWSConfig=current_aws_config()) = resource_groups( + "POST", "/update-group"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -700,17 +670,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Group"`: The name or the ARN of the resource group to query. - `"GroupName"`: Don't use this parameter. Use Group instead. """ -function update_group_query( - ResourceQuery; aws_config::AbstractAWSConfig=current_aws_config() -) - return resource_groups( +update_group_query(ResourceQuery; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups( "POST", "/update-group-query", Dict{String,Any}("ResourceQuery" => ResourceQuery); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_group_query( ResourceQuery, params::AbstractDict{String}; diff --git a/src/services/resource_groups_tagging_api.jl b/src/services/resource_groups_tagging_api.jl index 5d47ea07f..35751c6a5 100644 --- a/src/services/resource_groups_tagging_api.jl +++ b/src/services/resource_groups_tagging_api.jl @@ -12,11 +12,10 @@ Describes the status of the StartReportCreation operation. You can call this op only from the organization's management account and from the us-east-1 Region. """ -function describe_report_creation(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups_tagging_api( +describe_report_creation(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups_tagging_api( "DescribeReportCreation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_report_creation( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -75,11 +74,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys limit the output by. If you use this parameter, the count of returned noncompliant resources includes only resources with the specified target IDs. """ -function get_compliance_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups_tagging_api( +get_compliance_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups_tagging_api( "GetComplianceSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_compliance_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -175,11 +173,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The third page displays the remaining 2 resources, each with its 10 tags. You can set TagsPerPage to a minimum of 100 items up to a maximum of 500 items. """ -function get_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups_tagging_api( +get_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups_tagging_api( "GetResources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -206,11 +203,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to indicate that you want the next page of results. Leave this parameter empty in your initial request. """ -function get_tag_keys(; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups_tagging_api( +get_tag_keys(; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups_tagging_api( "GetTagKeys"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_tag_keys( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -241,14 +237,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to indicate that you want the next page of results. Leave this parameter empty in your initial request. """ -function get_tag_values(Key; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups_tagging_api( +get_tag_values(Key; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups_tagging_api( "GetTagValues", Dict{String,Any}("Key" => Key); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_tag_values( Key, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -278,14 +273,13 @@ Region. example bucket policy, see the example S3 bucket policy on this page. """ -function start_report_creation(S3Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return resource_groups_tagging_api( +start_report_creation(S3Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups_tagging_api( "StartReportCreation", Dict{String,Any}("S3Bucket" => S3Bucket); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_report_creation( S3Bucket, params::AbstractDict{String}; @@ -333,16 +327,13 @@ TagResources operation, you must have both of the following permissions: tag: consists of a key and a value that you define. """ -function tag_resources( - ResourceARNList, Tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return resource_groups_tagging_api( +tag_resources(ResourceARNList, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + resource_groups_tagging_api( "TagResources", Dict{String,Any}("ResourceARNList" => ResourceARNList, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resources( ResourceARNList, Tags, @@ -389,16 +380,14 @@ permissions: tag:UntagResource ec2:DeleteTags resources. """ -function untag_resources( +untag_resources( ResourceARNList, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = resource_groups_tagging_api( + "UntagResources", + Dict{String,Any}("ResourceARNList" => ResourceARNList, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return resource_groups_tagging_api( - "UntagResources", - Dict{String,Any}("ResourceARNList" => ResourceARNList, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resources( ResourceARNList, TagKeys, diff --git a/src/services/robomaker.jl b/src/services/robomaker.jl index f9301951f..7a2359db4 100644 --- a/src/services/robomaker.jl +++ b/src/services/robomaker.jl @@ -14,15 +14,13 @@ Deletes one or more worlds in a batch operation. - `worlds`: A list of Amazon Resource Names (arns) that correspond to worlds to delete. """ -function batch_delete_worlds(worlds; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/batchDeleteWorlds", - Dict{String,Any}("worlds" => worlds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_delete_worlds(worlds; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/batchDeleteWorlds", + Dict{String,Any}("worlds" => worlds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_delete_worlds( worlds, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -45,17 +43,14 @@ Describes one or more simulation jobs. - `jobs`: A list of Amazon Resource Names (ARNs) of simulation jobs to describe. """ -function batch_describe_simulation_job( - jobs; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +batch_describe_simulation_job(jobs; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/batchDescribeSimulationJob", Dict{String,Any}("jobs" => jobs); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_describe_simulation_job( jobs, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -79,15 +74,13 @@ Cancels the specified deployment job. This API will no longer be supported as o - `job`: The deployment job ARN to cancel. """ -function cancel_deployment_job(job; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/cancelDeploymentJob", - Dict{String,Any}("job" => job); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_deployment_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/cancelDeploymentJob", + Dict{String,Any}("job" => job); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_deployment_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -110,15 +103,13 @@ Cancels the specified simulation job. - `job`: The simulation job ARN to cancel. """ -function cancel_simulation_job(job; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/cancelSimulationJob", - Dict{String,Any}("job" => job); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_simulation_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/cancelSimulationJob", + Dict{String,Any}("job" => job); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_simulation_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -142,17 +133,14 @@ cancelling all of the active simulation jobs created as part of the batch. - `batch`: The id of the batch to cancel. """ -function cancel_simulation_job_batch( - batch; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +cancel_simulation_job_batch(batch; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/cancelSimulationJobBatch", Dict{String,Any}("batch" => batch); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_simulation_job_batch( batch, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -175,15 +163,14 @@ Cancels the specified export job. - `job`: The Amazon Resource Name (arn) of the world export job to cancel. """ -function cancel_world_export_job(job; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +cancel_world_export_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/cancelWorldExportJob", Dict{String,Any}("job" => job); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_world_export_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -206,17 +193,14 @@ Cancels the specified world generator job. - `job`: The Amazon Resource Name (arn) of the world generator job to cancel. """ -function cancel_world_generation_job( - job; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +cancel_world_generation_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/cancelWorldGenerationJob", Dict{String,Any}("job" => job); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_world_generation_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -251,24 +235,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A map that contains tag keys and tag values that are attached to the deployment job. """ -function create_deployment_job( +create_deployment_job( clientRequestToken, deploymentApplicationConfigs, fleet; aws_config::AbstractAWSConfig=current_aws_config(), +) = robomaker( + "POST", + "/createDeploymentJob", + Dict{String,Any}( + "clientRequestToken" => clientRequestToken, + "deploymentApplicationConfigs" => deploymentApplicationConfigs, + "fleet" => fleet, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createDeploymentJob", - Dict{String,Any}( - "clientRequestToken" => clientRequestToken, - "deploymentApplicationConfigs" => deploymentApplicationConfigs, - "fleet" => fleet, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deployment_job( clientRequestToken, deploymentApplicationConfigs, @@ -309,15 +291,13 @@ no longer supported and will throw an error if used. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A map that contains tag keys and tag values that are attached to the fleet. """ -function create_fleet(name; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/createFleet", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_fleet(name; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/createFleet", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_fleet( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -345,24 +325,22 @@ Creates a robot. This API is no longer supported and will throw an error if use Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A map that contains tag keys and tag values that are attached to the robot. """ -function create_robot( +create_robot( architecture, greengrassGroupId, name; aws_config::AbstractAWSConfig=current_aws_config(), +) = robomaker( + "POST", + "/createRobot", + Dict{String,Any}( + "architecture" => architecture, + "greengrassGroupId" => greengrassGroupId, + "name" => name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createRobot", - Dict{String,Any}( - "architecture" => architecture, - "greengrassGroupId" => greengrassGroupId, - "name" => name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_robot( architecture, greengrassGroupId, @@ -408,17 +386,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A map that contains tag keys and tag values that are attached to the robot application. """ -function create_robot_application( +create_robot_application( name, robotSoftwareSuite; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/createRobotApplication", + Dict{String,Any}("name" => name, "robotSoftwareSuite" => robotSoftwareSuite); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createRobotApplication", - Dict{String,Any}("name" => name, "robotSoftwareSuite" => robotSoftwareSuite); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_robot_application( name, robotSoftwareSuite, @@ -460,17 +436,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"s3Etags"`: The Amazon S3 identifier for the zip file bundle that you use for your robot application. """ -function create_robot_application_version( +create_robot_application_version( application; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/createRobotApplicationVersion", + Dict{String,Any}("application" => application); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createRobotApplicationVersion", - Dict{String,Any}("application" => application); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_robot_application_version( application, params::AbstractDict{String}; @@ -509,24 +483,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A map that contains tag keys and tag values that are attached to the simulation application. """ -function create_simulation_application( +create_simulation_application( name, robotSoftwareSuite, simulationSoftwareSuite; aws_config::AbstractAWSConfig=current_aws_config(), +) = robomaker( + "POST", + "/createSimulationApplication", + Dict{String,Any}( + "name" => name, + "robotSoftwareSuite" => robotSoftwareSuite, + "simulationSoftwareSuite" => simulationSoftwareSuite, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createSimulationApplication", - Dict{String,Any}( - "name" => name, - "robotSoftwareSuite" => robotSoftwareSuite, - "simulationSoftwareSuite" => simulationSoftwareSuite, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_simulation_application( name, robotSoftwareSuite, @@ -571,17 +543,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"s3Etags"`: The Amazon S3 eTag identifier for the zip file bundle that you use to create the simulation application. """ -function create_simulation_application_version( +create_simulation_application_version( application; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/createSimulationApplicationVersion", + Dict{String,Any}("application" => application); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createSimulationApplicationVersion", - Dict{String,Any}("application" => application); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_simulation_application_version( application, params::AbstractDict{String}; @@ -635,21 +605,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID. """ -function create_simulation_job( +create_simulation_job( iamRole, maxJobDurationInSeconds; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/createSimulationJob", + Dict{String,Any}( + "iamRole" => iamRole, + "maxJobDurationInSeconds" => maxJobDurationInSeconds, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createSimulationJob", - Dict{String,Any}( - "iamRole" => iamRole, - "maxJobDurationInSeconds" => maxJobDurationInSeconds, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_simulation_job( iamRole, maxJobDurationInSeconds, @@ -694,22 +662,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A map that contains tag keys and tag values that are attached to the world export job. """ -function create_world_export_job( +create_world_export_job( iamRole, outputLocation, worlds; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/createWorldExportJob", + Dict{String,Any}( + "iamRole" => iamRole, + "outputLocation" => outputLocation, + "worlds" => worlds, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createWorldExportJob", - Dict{String,Any}( - "iamRole" => iamRole, - "outputLocation" => outputLocation, - "worlds" => worlds, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_world_export_job( iamRole, outputLocation, @@ -757,21 +723,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"worldTags"`: A map that contains tag keys and tag values that are attached to the generated worlds. """ -function create_world_generation_job( +create_world_generation_job( template, worldCount; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/createWorldGenerationJob", + Dict{String,Any}( + "template" => template, + "worldCount" => worldCount, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/createWorldGenerationJob", - Dict{String,Any}( - "template" => template, - "worldCount" => worldCount, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_world_generation_job( template, worldCount, @@ -813,14 +777,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateBody"`: The world template body. - `"templateLocation"`: The location of the world template. """ -function create_world_template(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/createWorldTemplate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_world_template(; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/createWorldTemplate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_world_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -844,15 +806,13 @@ resources that were created for Deployment Service. - `fleet`: The Amazon Resource Name (ARN) of the fleet. """ -function delete_fleet(fleet; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/deleteFleet", - Dict{String,Any}("fleet" => fleet); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fleet(fleet; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/deleteFleet", + Dict{String,Any}("fleet" => fleet); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fleet( fleet, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -876,15 +836,13 @@ resources that were created for Deployment Service. - `robot`: The Amazon Resource Name (ARN) of the robot. """ -function delete_robot(robot; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/deleteRobot", - Dict{String,Any}("robot" => robot); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_robot(robot; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/deleteRobot", + Dict{String,Any}("robot" => robot); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_robot( robot, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -910,17 +868,14 @@ Deletes a robot application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"applicationVersion"`: The version of the robot application to delete. """ -function delete_robot_application( - application; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +delete_robot_application(application; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/deleteRobotApplication", Dict{String,Any}("application" => application); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_robot_application( application, params::AbstractDict{String}; @@ -950,17 +905,15 @@ Deletes a simulation application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"applicationVersion"`: The version of the simulation application to delete. """ -function delete_simulation_application( +delete_simulation_application( application; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/deleteSimulationApplication", + Dict{String,Any}("application" => application); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/deleteSimulationApplication", - Dict{String,Any}("application" => application); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_simulation_application( application, params::AbstractDict{String}; @@ -987,15 +940,14 @@ Deletes a world template. - `template`: The Amazon Resource Name (arn) of the world template you want to delete. """ -function delete_world_template(template; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +delete_world_template(template; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/deleteWorldTemplate", Dict{String,Any}("template" => template); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_world_template( template, params::AbstractDict{String}; @@ -1024,15 +976,14 @@ remove resources that were created for Deployment Service. - `robot`: The Amazon Resource Name (ARN) of the robot. """ -function deregister_robot(fleet, robot; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +deregister_robot(fleet, robot; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/deregisterRobot", Dict{String,Any}("fleet" => fleet, "robot" => robot); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_robot( fleet, robot, @@ -1061,15 +1012,14 @@ to remove resources that were created for Deployment Service. - `job`: The Amazon Resource Name (ARN) of the deployment job. """ -function describe_deployment_job(job; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +describe_deployment_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/describeDeploymentJob", Dict{String,Any}("job" => job); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_deployment_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1093,15 +1043,13 @@ remove resources that were created for Deployment Service. - `fleet`: The Amazon Resource Name (ARN) of the fleet. """ -function describe_fleet(fleet; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/describeFleet", - Dict{String,Any}("fleet" => fleet); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_fleet(fleet; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/describeFleet", + Dict{String,Any}("fleet" => fleet); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_fleet( fleet, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1125,15 +1073,13 @@ remove resources that were created for Deployment Service. - `robot`: The Amazon Resource Name (ARN) of the robot to be described. """ -function describe_robot(robot; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/describeRobot", - Dict{String,Any}("robot" => robot); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_robot(robot; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/describeRobot", + Dict{String,Any}("robot" => robot); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_robot( robot, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1159,17 +1105,15 @@ Describes a robot application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"applicationVersion"`: The version of the robot application to describe. """ -function describe_robot_application( +describe_robot_application( application; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/describeRobotApplication", + Dict{String,Any}("application" => application); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/describeRobotApplication", - Dict{String,Any}("application" => application); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_robot_application( application, params::AbstractDict{String}; @@ -1199,17 +1143,15 @@ Describes a simulation application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"applicationVersion"`: The version of the simulation application to describe. """ -function describe_simulation_application( +describe_simulation_application( application; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/describeSimulationApplication", + Dict{String,Any}("application" => application); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/describeSimulationApplication", - Dict{String,Any}("application" => application); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_simulation_application( application, params::AbstractDict{String}; @@ -1236,15 +1178,14 @@ Describes a simulation job. - `job`: The Amazon Resource Name (ARN) of the simulation job to be described. """ -function describe_simulation_job(job; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +describe_simulation_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/describeSimulationJob", Dict{String,Any}("job" => job); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_simulation_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1267,17 +1208,14 @@ Describes a simulation job batch. - `batch`: The id of the batch to describe. """ -function describe_simulation_job_batch( - batch; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +describe_simulation_job_batch(batch; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/describeSimulationJobBatch", Dict{String,Any}("batch" => batch); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_simulation_job_batch( batch, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1300,15 +1238,13 @@ Describes a world. - `world`: The Amazon Resource Name (arn) of the world you want to describe. """ -function describe_world(world; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/describeWorld", - Dict{String,Any}("world" => world); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_world(world; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/describeWorld", + Dict{String,Any}("world" => world); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_world( world, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1331,15 +1267,14 @@ Describes a world export job. - `job`: The Amazon Resource Name (arn) of the world export job to describe. """ -function describe_world_export_job(job; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +describe_world_export_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/describeWorldExportJob", Dict{String,Any}("job" => job); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_world_export_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1362,17 +1297,14 @@ Describes a world generation job. - `job`: The Amazon Resource Name (arn) of the world generation job to describe. """ -function describe_world_generation_job( - job; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +describe_world_generation_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/describeWorldGenerationJob", Dict{String,Any}("job" => job); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_world_generation_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1395,17 +1327,14 @@ Describes a world template. - `template`: The Amazon Resource Name (arn) of the world template you want to describe. """ -function describe_world_template( - template; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +describe_world_template(template; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/describeWorldTemplate", Dict{String,Any}("template" => template); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_world_template( template, params::AbstractDict{String}; @@ -1433,14 +1362,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"generationJob"`: The Amazon Resource Name (arn) of the world generator job. - `"template"`: The Amazon Resource Name (arn) of the world template. """ -function get_world_template_body(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/getWorldTemplateBody"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_world_template_body(; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/getWorldTemplateBody"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_world_template_body( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1479,14 +1406,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_deployment_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/listDeploymentJobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_deployment_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/listDeploymentJobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_deployment_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1525,11 +1450,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that is only used to retrieve the next items in a list and not for other programmatic purposes. """ -function list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", "/listFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker("POST", "/listFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1567,14 +1489,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object's NextToken parameter is set to null. - `"versionQualifier"`: The version qualifier of the robot application. """ -function list_robot_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/listRobotApplications"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_robot_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/listRobotApplications"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_robot_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1612,11 +1532,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_robots(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", "/listRobots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_robots(; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker("POST", "/listRobots"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_robots( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1654,14 +1571,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response object's NextToken parameter is set to null. - `"versionQualifier"`: The version qualifier of the simulation application. """ -function list_simulation_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +list_simulation_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/listSimulationApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_simulation_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1694,14 +1610,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_simulation_job_batches(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +list_simulation_job_batches(; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/listSimulationJobBatches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_simulation_job_batches( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1740,14 +1655,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_simulation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/listSimulationJobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_simulation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/listSimulationJobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_simulation_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1770,16 +1683,13 @@ Lists all tags on a AWS RoboMaker resource. - `resource_arn`: The AWS RoboMaker Amazon Resource Name (ARN) with tags to be listed. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1816,14 +1726,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_world_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/listWorldExportJobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_world_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/listWorldExportJobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_world_export_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1857,14 +1765,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_world_generation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +list_world_generation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/listWorldGenerationJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_world_generation_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1897,14 +1804,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_world_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/listWorldTemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_world_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/listWorldTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_world_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1937,11 +1842,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. """ -function list_worlds(; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", "/listWorlds"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_worlds(; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker("POST", "/listWorlds"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_worlds( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1966,15 +1868,14 @@ used. - `robot`: The Amazon Resource Name (ARN) of the robot. """ -function register_robot(fleet, robot; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +register_robot(fleet, robot; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/registerRobot", Dict{String,Any}("fleet" => fleet, "robot" => robot); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function register_robot( fleet, robot, @@ -2002,15 +1903,13 @@ Restarts a running simulation job. - `job`: The Amazon Resource Name (ARN) of the simulation job. """ -function restart_simulation_job(job; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( - "POST", - "/restartSimulationJob", - Dict{String,Any}("job" => job); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +restart_simulation_job(job; aws_config::AbstractAWSConfig=current_aws_config()) = robomaker( + "POST", + "/restartSimulationJob", + Dict{String,Any}("job" => job); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function restart_simulation_job( job, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2042,20 +1941,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: A map that contains tag keys and tag values that are attached to the deployment job batch. """ -function start_simulation_job_batch( +start_simulation_job_batch( createSimulationJobRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/startSimulationJobBatch", + Dict{String,Any}( + "createSimulationJobRequests" => createSimulationJobRequests, + "clientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/startSimulationJobBatch", - Dict{String,Any}( - "createSimulationJobRequests" => createSimulationJobRequests, - "clientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_simulation_job_batch( createSimulationJobRequests, params::AbstractDict{String}; @@ -2093,17 +1990,15 @@ to remove resources that were created for Deployment Service. - `fleet`: The target fleet for the synchronization. """ -function sync_deployment_job( +sync_deployment_job( clientRequestToken, fleet; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/syncDeploymentJob", + Dict{String,Any}("clientRequestToken" => clientRequestToken, "fleet" => fleet); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/syncDeploymentJob", - Dict{String,Any}("clientRequestToken" => clientRequestToken, "fleet" => fleet); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function sync_deployment_job( clientRequestToken, fleet, @@ -2142,15 +2037,14 @@ Restrictions in the AWS Billing and Cost Management User Guide. - `tags`: A map that contains tag keys and tag values that are attached to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -2180,17 +2074,14 @@ specify the tag key. To change the tag value of an existing tag key, use TagRes resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return robomaker( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2223,19 +2114,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"environment"`: The object that contains the Docker image URI for your robot application. - `"sources"`: The sources of the robot application. """ -function update_robot_application( +update_robot_application( application, robotSoftwareSuite; aws_config::AbstractAWSConfig=current_aws_config() +) = robomaker( + "POST", + "/updateRobotApplication", + Dict{String,Any}( + "application" => application, "robotSoftwareSuite" => robotSoftwareSuite + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/updateRobotApplication", - Dict{String,Any}( - "application" => application, "robotSoftwareSuite" => robotSoftwareSuite - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_robot_application( application, robotSoftwareSuite, @@ -2279,24 +2168,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"renderingEngine"`: The rendering engine for the simulation application. - `"sources"`: The sources of the simulation application. """ -function update_simulation_application( +update_simulation_application( application, robotSoftwareSuite, simulationSoftwareSuite; aws_config::AbstractAWSConfig=current_aws_config(), +) = robomaker( + "POST", + "/updateSimulationApplication", + Dict{String,Any}( + "application" => application, + "robotSoftwareSuite" => robotSoftwareSuite, + "simulationSoftwareSuite" => simulationSoftwareSuite, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return robomaker( - "POST", - "/updateSimulationApplication", - Dict{String,Any}( - "application" => application, - "robotSoftwareSuite" => robotSoftwareSuite, - "simulationSoftwareSuite" => simulationSoftwareSuite, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_simulation_application( application, robotSoftwareSuite, @@ -2338,15 +2225,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateBody"`: The world template body. - `"templateLocation"`: The location of the world template. """ -function update_world_template(template; aws_config::AbstractAWSConfig=current_aws_config()) - return robomaker( +update_world_template(template; aws_config::AbstractAWSConfig=current_aws_config()) = + robomaker( "POST", "/updateWorldTemplate", Dict{String,Any}("template" => template); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_world_template( template, params::AbstractDict{String}; diff --git a/src/services/rolesanywhere.jl b/src/services/rolesanywhere.jl index 9a5d2d8c1..1c896a2ef 100644 --- a/src/services/rolesanywhere.jl +++ b/src/services/rolesanywhere.jl @@ -19,6 +19,8 @@ You use profiles to intersect permissions with IAM managed policies. Required p # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"acceptRoleSessionName"`: Used to determine if a custom role session name will be + accepted in a temporary credential request. - `"durationSeconds"`: Used to determine how long sessions vended using this profile are valid for. See the Expiration section of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600. @@ -31,15 +33,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys session credentials. - `"tags"`: The tags to attach to the profile. """ -function create_profile(name, roleArns; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( +create_profile(name, roleArns; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "POST", "/profiles", Dict{String,Any}("name" => name, "roleArns" => roleArns); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_profile( name, roleArns, @@ -81,17 +82,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys anchor. - `"tags"`: The tags to attach to the trust anchor. """ -function create_trust_anchor( - name, source; aws_config::AbstractAWSConfig=current_aws_config() -) - return rolesanywhere( +create_trust_anchor(name, source; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "POST", "/trustanchors", Dict{String,Any}("name" => name, "source" => source); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_trust_anchor( name, source, @@ -125,17 +123,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"specifiers"`: A list of specifiers of a certificate field; for example, CN, OU, UID from a Subject. """ -function delete_attribute_mapping( +delete_attribute_mapping( certificateField, profileId; aws_config::AbstractAWSConfig=current_aws_config() +) = rolesanywhere( + "DELETE", + "/profiles/$(profileId)/mappings", + Dict{String,Any}("certificateField" => certificateField); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rolesanywhere( - "DELETE", - "/profiles/$(profileId)/mappings", - Dict{String,Any}("certificateField" => certificateField); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_attribute_mapping( certificateField, profileId, @@ -166,11 +162,9 @@ rolesanywhere:DeleteCrl. - `crl_id`: The unique identifier of the certificate revocation list (CRL). """ -function delete_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "DELETE", "/crl/$(crlId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "DELETE", "/crl/$(crlId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_crl( crlId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -193,14 +187,13 @@ Deletes a profile. Required permissions: rolesanywhere:DeleteProfile. - `profile_id`: The unique identifier of the profile. """ -function delete_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( +delete_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "DELETE", "/profile/$(profileId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_profile( profileId, params::AbstractDict{String}; @@ -225,16 +218,13 @@ Deletes a trust anchor. Required permissions: rolesanywhere:DeleteTrustAnchor. - `trust_anchor_id`: The unique identifier of the trust anchor. """ -function delete_trust_anchor( - trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rolesanywhere( +delete_trust_anchor(trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "DELETE", "/trustanchor/$(trustAnchorId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_trust_anchor( trustAnchorId, params::AbstractDict{String}; @@ -260,14 +250,12 @@ rolesanywhere:DisableCrl. - `crl_id`: The unique identifier of the certificate revocation list (CRL). """ -function disable_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "POST", - "/crl/$(crlId)/disable"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +disable_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "POST", + "/crl/$(crlId)/disable"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function disable_crl( crlId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -291,14 +279,13 @@ Required permissions: rolesanywhere:DisableProfile. - `profile_id`: The unique identifier of the profile. """ -function disable_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( +disable_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "POST", "/profile/$(profileId)/disable"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_profile( profileId, params::AbstractDict{String}; @@ -324,16 +311,13 @@ anchor are unauthorized. Required permissions: rolesanywhere:DisableTrustAncho - `trust_anchor_id`: The unique identifier of the trust anchor. """ -function disable_trust_anchor( - trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rolesanywhere( +disable_trust_anchor(trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "POST", "/trustanchor/$(trustAnchorId)/disable"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_trust_anchor( trustAnchorId, params::AbstractDict{String}; @@ -360,14 +344,12 @@ rolesanywhere:EnableCrl. - `crl_id`: The unique identifier of the certificate revocation list (CRL). """ -function enable_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "POST", - "/crl/$(crlId)/enable"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +enable_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "POST", + "/crl/$(crlId)/enable"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function enable_crl( crlId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -391,14 +373,13 @@ rolesanywhere:EnableProfile. - `profile_id`: The unique identifier of the profile. """ -function enable_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( +enable_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "POST", "/profile/$(profileId)/enable"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_profile( profileId, params::AbstractDict{String}; @@ -424,16 +405,13 @@ for trust validation. Required permissions: rolesanywhere:EnableTrustAnchor. - `trust_anchor_id`: The unique identifier of the trust anchor. """ -function enable_trust_anchor( - trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rolesanywhere( +enable_trust_anchor(trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "POST", "/trustanchor/$(trustAnchorId)/enable"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_trust_anchor( trustAnchorId, params::AbstractDict{String}; @@ -458,11 +436,9 @@ Gets a certificate revocation list (CRL). Required permissions: rolesanywhere: - `crl_id`: The unique identifier of the certificate revocation list (CRL). """ -function get_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "GET", "/crl/$(crlId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "GET", "/crl/$(crlId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_crl( crlId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -485,14 +461,12 @@ Gets a profile. Required permissions: rolesanywhere:GetProfile. - `profile_id`: The unique identifier of the profile. """ -function get_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "GET", - "/profile/$(profileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "GET", + "/profile/$(profileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_profile( profileId, params::AbstractDict{String}; @@ -520,14 +494,12 @@ attempted authentication. Required permissions: rolesanywhere:GetSubject. - `subject_id`: The unique identifier of the subject. """ -function get_subject(subjectId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "GET", - "/subject/$(subjectId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_subject(subjectId; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "GET", + "/subject/$(subjectId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_subject( subjectId, params::AbstractDict{String}; @@ -552,14 +524,13 @@ Gets a trust anchor. Required permissions: rolesanywhere:GetTrustAnchor. - `trust_anchor_id`: The unique identifier of the trust anchor. """ -function get_trust_anchor(trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( +get_trust_anchor(trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "GET", "/trustanchor/$(trustAnchorId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_trust_anchor( trustAnchorId, params::AbstractDict{String}; @@ -594,19 +565,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"enabled"`: Specifies whether the certificate revocation list (CRL) is enabled. - `"tags"`: A list of tags to attach to the certificate revocation list (CRL). """ -function import_crl( +import_crl( crlData, name, trustAnchorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = rolesanywhere( + "POST", + "/crls", + Dict{String,Any}( + "crlData" => crlData, "name" => name, "trustAnchorArn" => trustAnchorArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rolesanywhere( - "POST", - "/crls", - Dict{String,Any}( - "crlData" => crlData, "name" => name, "trustAnchorArn" => trustAnchorArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_crl( crlData, name, @@ -645,11 +614,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with this value. - `"pageSize"`: The number of resources in the paginated list. """ -function list_crls(; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "GET", "/crls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_crls(; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere("GET", "/crls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_crls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -672,11 +638,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with this value. - `"pageSize"`: The number of resources in the paginated list. """ -function list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "GET", "/profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "GET", "/profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -699,11 +663,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with this value. - `"pageSize"`: The number of resources in the paginated list. """ -function list_subjects(; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "GET", "/subjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_subjects(; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "GET", "/subjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_subjects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -723,17 +685,14 @@ rolesanywhere:ListTagsForResource. - `resource_arn`: The ARN of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return rolesanywhere( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "GET", "/ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -764,11 +723,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with this value. - `"pageSize"`: The number of resources in the paginated list. """ -function list_trust_anchors(; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "GET", "/trustanchors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_trust_anchors(; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "GET", "/trustanchors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_trust_anchors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -796,22 +753,20 @@ meanings. - `profile_id`: The unique identifier of the profile. """ -function put_attribute_mapping( +put_attribute_mapping( certificateField, mappingRules, profileId; aws_config::AbstractAWSConfig=current_aws_config(), +) = rolesanywhere( + "PUT", + "/profiles/$(profileId)/mappings", + Dict{String,Any}( + "certificateField" => certificateField, "mappingRules" => mappingRules + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rolesanywhere( - "PUT", - "/profiles/$(profileId)/mappings", - Dict{String,Any}( - "certificateField" => certificateField, "mappingRules" => mappingRules - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_attribute_mapping( certificateField, mappingRules, @@ -850,19 +805,17 @@ channel to notify. Required permissions: rolesanywhere:PutNotificationSettings - `trust_anchor_id`: The unique identifier of the trust anchor. """ -function put_notification_settings( +put_notification_settings( notificationSettings, trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config() +) = rolesanywhere( + "PATCH", + "/put-notifications-settings", + Dict{String,Any}( + "notificationSettings" => notificationSettings, "trustAnchorId" => trustAnchorId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rolesanywhere( - "PATCH", - "/put-notifications-settings", - Dict{String,Any}( - "notificationSettings" => notificationSettings, "trustAnchorId" => trustAnchorId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_notification_settings( notificationSettings, trustAnchorId, @@ -900,22 +853,20 @@ permissions: rolesanywhere:ResetNotificationSettings. - `trust_anchor_id`: The unique identifier of the trust anchor. """ -function reset_notification_settings( +reset_notification_settings( notificationSettingKeys, trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config(), +) = rolesanywhere( + "PATCH", + "/reset-notifications-settings", + Dict{String,Any}( + "notificationSettingKeys" => notificationSettingKeys, + "trustAnchorId" => trustAnchorId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rolesanywhere( - "PATCH", - "/reset-notifications-settings", - Dict{String,Any}( - "notificationSettingKeys" => notificationSettingKeys, - "trustAnchorId" => trustAnchorId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_notification_settings( notificationSettingKeys, trustAnchorId, @@ -951,15 +902,14 @@ Attaches tags to a resource. Required permissions: rolesanywhere:TagResource. - `tags`: The tags to attach to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "POST", "/TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -992,17 +942,14 @@ Removes tags from the resource. Required permissions: rolesanywhere:UntagResou - `tag_keys`: A list of keys. Tag keys are the unique identifiers of tags. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return rolesanywhere( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "POST", "/UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1041,11 +988,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"crlData"`: The x509 v3 specified certificate revocation list (CRL). - `"name"`: The name of the Crl. """ -function update_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( - "PATCH", "/crl/$(crlId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_crl(crlId; aws_config::AbstractAWSConfig=current_aws_config()) = rolesanywhere( + "PATCH", "/crl/$(crlId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_crl( crlId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1071,6 +1016,8 @@ permissions: rolesanywhere:UpdateProfile. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"acceptRoleSessionName"`: Used to determine if a custom role session name will be + accepted in a temporary credential request. - `"durationSeconds"`: Used to determine how long sessions vended using this profile are valid for. See the Expiration section of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600. @@ -1082,14 +1029,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sessionPolicy"`: A session policy that applies to the trust boundary of the vended session credentials. """ -function update_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) - return rolesanywhere( +update_profile(profileId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "PATCH", "/profile/$(profileId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_profile( profileId, params::AbstractDict{String}; @@ -1123,16 +1069,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"name"`: The name of the trust anchor. - `"source"`: The trust anchor type and its related certificate data. """ -function update_trust_anchor( - trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return rolesanywhere( +update_trust_anchor(trustAnchorId; aws_config::AbstractAWSConfig=current_aws_config()) = + rolesanywhere( "PATCH", "/trustanchor/$(trustAnchorId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_trust_anchor( trustAnchorId, params::AbstractDict{String}; diff --git a/src/services/route53_recovery_cluster.jl b/src/services/route53_recovery_cluster.jl index fde5994e2..4eed9f072 100644 --- a/src/services/route53_recovery_cluster.jl +++ b/src/services/route53_recovery_cluster.jl @@ -28,16 +28,14 @@ control states Working with routing controls in Route 53 ARC want to get the state for. """ -function get_routing_control_state( +get_routing_control_state( RoutingControlArn; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_cluster( + "GetRoutingControlState", + Dict{String,Any}("RoutingControlArn" => RoutingControlArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_cluster( - "GetRoutingControlState", - Dict{String,Any}("RoutingControlArn" => RoutingControlArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_routing_control_state( RoutingControlArn, params::AbstractDict{String}; @@ -85,11 +83,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of results. You receive this token from a previous call. """ -function list_routing_controls(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_cluster( +list_routing_controls(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_cluster( "ListRoutingControls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_routing_controls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -138,21 +135,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide. """ -function update_routing_control_state( +update_routing_control_state( RoutingControlArn, RoutingControlState; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53_recovery_cluster( + "UpdateRoutingControlState", + Dict{String,Any}( + "RoutingControlArn" => RoutingControlArn, + "RoutingControlState" => RoutingControlState, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_cluster( - "UpdateRoutingControlState", - Dict{String,Any}( - "RoutingControlArn" => RoutingControlArn, - "RoutingControlState" => RoutingControlState, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_routing_control_state( RoutingControlArn, RoutingControlState, @@ -211,18 +206,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide. """ -function update_routing_control_states( +update_routing_control_states( UpdateRoutingControlStateEntries; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_cluster( + "UpdateRoutingControlStates", + Dict{String,Any}( + "UpdateRoutingControlStateEntries" => UpdateRoutingControlStateEntries + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_cluster( - "UpdateRoutingControlStates", - Dict{String,Any}( - "UpdateRoutingControlStateEntries" => UpdateRoutingControlStateEntries - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_routing_control_states( UpdateRoutingControlStateEntries, params::AbstractDict{String}; diff --git a/src/services/route53_recovery_control_config.jl b/src/services/route53_recovery_control_config.jl index ec31a6172..1466bf858 100644 --- a/src/services/route53_recovery_control_config.jl +++ b/src/services/route53_recovery_control_config.jl @@ -23,15 +23,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotent API request with an action, specify a client token in the request. - `"Tags"`: The tags associated with the cluster. """ -function create_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_control_config( +create_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "POST", "/cluster", Dict{String,Any}("ClusterName" => ClusterName, "ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_cluster( ClusterName, params::AbstractDict{String}; @@ -74,21 +73,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys idempotent API request with an action, specify a client token in the request. - `"Tags"`: The tags associated with the control panel. """ -function create_control_panel( +create_control_panel( ClusterArn, ControlPanelName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_control_config( + "POST", + "/controlpanel", + Dict{String,Any}( + "ClusterArn" => ClusterArn, + "ControlPanelName" => ControlPanelName, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_control_config( - "POST", - "/controlpanel", - Dict{String,Any}( - "ClusterArn" => ClusterArn, - "ControlPanelName" => ControlPanelName, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_control_panel( ClusterArn, ControlPanelName, @@ -136,21 +133,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ControlPanelArn"`: The Amazon Resource Name (ARN) of the control panel that includes the routing control. """ -function create_routing_control( +create_routing_control( ClusterArn, RoutingControlName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_control_config( + "POST", + "/routingcontrol", + Dict{String,Any}( + "ClusterArn" => ClusterArn, + "RoutingControlName" => RoutingControlName, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_control_config( - "POST", - "/routingcontrol", - Dict{String,Any}( - "ClusterArn" => ClusterArn, - "RoutingControlName" => RoutingControlName, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_routing_control( ClusterArn, RoutingControlName, @@ -201,15 +196,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GatingRule"`: The gating rule requested. - `"Tags"`: The tags associated with the safety rule. """ -function create_safety_rule(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_control_config( +create_safety_rule(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "POST", "/safetyrule", Dict{String,Any}("ClientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_safety_rule( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -234,14 +228,13 @@ Delete a cluster. - `cluster_arn`: The Amazon Resource Name (ARN) of the cluster that you're deleting. """ -function delete_cluster(ClusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_control_config( +delete_cluster(ClusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "DELETE", "/cluster/$(ClusterArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cluster( ClusterArn, params::AbstractDict{String}; @@ -266,16 +259,13 @@ Deletes a control panel. - `control_panel_arn`: The Amazon Resource Name (ARN) of the control panel. """ -function delete_control_panel( - ControlPanelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_control_config( +delete_control_panel(ControlPanelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "DELETE", "/controlpanel/$(ControlPanelArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_control_panel( ControlPanelArn, params::AbstractDict{String}; @@ -301,16 +291,14 @@ Deletes a routing control. deleting. """ -function delete_routing_control( +delete_routing_control( RoutingControlArn; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_control_config( + "DELETE", + "/routingcontrol/$(RoutingControlArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_control_config( - "DELETE", - "/routingcontrol/$(RoutingControlArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_routing_control( RoutingControlArn, params::AbstractDict{String}; @@ -335,16 +323,13 @@ Deletes a safety rule./> - `safety_rule_arn`: The ARN of the safety rule. """ -function delete_safety_rule( - SafetyRuleArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_control_config( +delete_safety_rule(SafetyRuleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "DELETE", "/safetyrule/$(SafetyRuleArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_safety_rule( SafetyRuleArn, params::AbstractDict{String}; @@ -370,14 +355,13 @@ status, and Amazon Resource Name (ARN). - `cluster_arn`: The Amazon Resource Name (ARN) of the cluster. """ -function describe_cluster(ClusterArn; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_control_config( +describe_cluster(ClusterArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "GET", "/cluster/$(ClusterArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cluster( ClusterArn, params::AbstractDict{String}; @@ -402,16 +386,14 @@ Displays details about a control panel. - `control_panel_arn`: The Amazon Resource Name (ARN) of the control panel. """ -function describe_control_panel( +describe_control_panel( ControlPanelArn; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_control_config( + "GET", + "/controlpanel/$(ControlPanelArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_control_config( - "GET", - "/controlpanel/$(ControlPanelArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_control_panel( ControlPanelArn, params::AbstractDict{String}; @@ -440,16 +422,14 @@ Controller. - `routing_control_arn`: The Amazon Resource Name (ARN) of the routing control. """ -function describe_routing_control( +describe_routing_control( RoutingControlArn; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_control_config( + "GET", + "/routingcontrol/$(RoutingControlArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_control_config( - "GET", - "/routingcontrol/$(RoutingControlArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_routing_control( RoutingControlArn, params::AbstractDict{String}; @@ -474,16 +454,13 @@ Returns information about a safety rule. - `safety_rule_arn`: The ARN of the safety rule. """ -function describe_safety_rule( - SafetyRuleArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_control_config( +describe_safety_rule(SafetyRuleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "GET", "/safetyrule/$(SafetyRuleArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_safety_rule( SafetyRuleArn, params::AbstractDict{String}; @@ -508,16 +485,13 @@ Get information about the resource policy for a cluster. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function get_resource_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_control_config( +get_resource_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "GET", "/resourcePolicy/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( ResourceArn, params::AbstractDict{String}; @@ -547,16 +521,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The number of objects that you want to return with this call. - `"NextToken"`: The token that identifies which batch of results you want to see. """ -function list_associated_route53_health_checks( +list_associated_route53_health_checks( RoutingControlArn; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_control_config( + "GET", + "/routingcontrol/$(RoutingControlArn)/associatedRoute53HealthChecks"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_control_config( - "GET", - "/routingcontrol/$(RoutingControlArn)/associatedRoute53HealthChecks"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_associated_route53_health_checks( RoutingControlArn, params::AbstractDict{String}; @@ -582,11 +554,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The number of objects that you want to return with this call. - `"NextToken"`: The token that identifies which batch of results you want to see. """ -function list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_control_config( +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "GET", "/cluster"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -607,11 +578,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The number of objects that you want to return with this call. - `"NextToken"`: The token that identifies which batch of results you want to see. """ -function list_control_panels(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_control_config( +list_control_panels(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "GET", "/controlpanels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_control_panels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -641,16 +611,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The number of objects that you want to return with this call. - `"NextToken"`: The token that identifies which batch of results you want to see. """ -function list_routing_controls( - ControlPanelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_control_config( +list_routing_controls(ControlPanelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "GET", "/controlpanel/$(ControlPanelArn)/routingcontrols"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_routing_controls( ControlPanelArn, params::AbstractDict{String}; @@ -680,16 +647,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The number of objects that you want to return with this call. - `"NextToken"`: The token that identifies which batch of results you want to see. """ -function list_safety_rules( - ControlPanelArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_control_config( +list_safety_rules(ControlPanelArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "GET", "/controlpanel/$(ControlPanelArn)/safetyrules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_safety_rules( ControlPanelArn, params::AbstractDict{String}; @@ -714,16 +678,13 @@ Lists the tags for a resource. - `resource_arn`: The Amazon Resource Name (ARN) for the resource that's tagged. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_control_config( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -749,15 +710,14 @@ Adds a tag to a resource. - `tags`: The tags associated with the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_control_config( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -784,17 +744,14 @@ Removes a tag from a resource. - `tag_keys`: Keys for the tags to be removed. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_control_config( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -822,19 +779,17 @@ name of the control panel. - `control_panel_name`: The name of the control panel. """ -function update_control_panel( +update_control_panel( ControlPanelArn, ControlPanelName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_control_config( + "PUT", + "/controlpanel", + Dict{String,Any}( + "ControlPanelArn" => ControlPanelArn, "ControlPanelName" => ControlPanelName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_control_config( - "PUT", - "/controlpanel", - Dict{String,Any}( - "ControlPanelArn" => ControlPanelArn, "ControlPanelName" => ControlPanelName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_control_panel( ControlPanelArn, ControlPanelName, @@ -872,22 +827,20 @@ Amazon Route 53 Application Recovery Controller. - `routing_control_name`: The name of the routing control. """ -function update_routing_control( +update_routing_control( RoutingControlArn, RoutingControlName; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53_recovery_control_config( + "PUT", + "/routingcontrol", + Dict{String,Any}( + "RoutingControlArn" => RoutingControlArn, + "RoutingControlName" => RoutingControlName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_control_config( - "PUT", - "/routingcontrol", - Dict{String,Any}( - "RoutingControlArn" => RoutingControlArn, - "RoutingControlName" => RoutingControlName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_routing_control( RoutingControlArn, RoutingControlName, @@ -925,11 +878,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AssertionRuleUpdate"`: The assertion rule to update. - `"GatingRuleUpdate"`: The gating rule to update. """ -function update_safety_rule(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_control_config( +update_safety_rule(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_control_config( "PUT", "/safetyrule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_safety_rule( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/route53_recovery_readiness.jl b/src/services/route53_recovery_readiness.jl index 1f38e2602..85d1db13f 100644 --- a/src/services/route53_recovery_readiness.jl +++ b/src/services/route53_recovery_readiness.jl @@ -20,15 +20,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Regions. - `"tags"`: """ -function create_cell(cellName; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +create_cell(cellName; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "POST", "/cells", Dict{String,Any}("cellName" => cellName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_cell( cellName, params::AbstractDict{String}; @@ -57,17 +56,15 @@ status of resources in a separate account. - `cross_account_authorization`: The cross-account authorization. """ -function create_cross_account_authorization( +create_cross_account_authorization( crossAccountAuthorization; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "POST", + "/crossaccountauthorizations", + Dict{String,Any}("crossAccountAuthorization" => crossAccountAuthorization); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "POST", - "/crossaccountauthorizations", - Dict{String,Any}("crossAccountAuthorization" => crossAccountAuthorization); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cross_account_authorization( crossAccountAuthorization, params::AbstractDict{String}; @@ -105,19 +102,17 @@ that's associated with a readiness check. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: """ -function create_readiness_check( +create_readiness_check( readinessCheckName, resourceSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "POST", + "/readinesschecks", + Dict{String,Any}( + "readinessCheckName" => readinessCheckName, "resourceSetName" => resourceSetName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "POST", - "/readinesschecks", - Dict{String,Any}( - "readinessCheckName" => readinessCheckName, "resourceSetName" => resourceSetName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_readiness_check( readinessCheckName, resourceSetName, @@ -157,17 +152,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"cells"`: A list of the cell Amazon Resource Names (ARNs) in the recovery group. - `"tags"`: """ -function create_recovery_group( +create_recovery_group( recoveryGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "POST", + "/recoverygroups", + Dict{String,Any}("recoveryGroupName" => recoveryGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "POST", - "/recoverygroups", - Dict{String,Any}("recoveryGroupName" => recoveryGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_recovery_group( recoveryGroupName, params::AbstractDict{String}; @@ -210,24 +203,22 @@ failover readiness. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A tag to associate with the parameters for a resource set. """ -function create_resource_set( +create_resource_set( resourceSetName, resourceSetType, resources; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53_recovery_readiness( + "POST", + "/resourcesets", + Dict{String,Any}( + "resourceSetName" => resourceSetName, + "resourceSetType" => resourceSetType, + "resources" => resources, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "POST", - "/resourcesets", - Dict{String,Any}( - "resourceSetName" => resourceSetName, - "resourceSetType" => resourceSetType, - "resources" => resources, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource_set( resourceSetName, resourceSetType, @@ -264,14 +255,13 @@ Delete a cell. When successful, the response code is 204, with no response body. - `cell_name`: The name of the cell. """ -function delete_cell(cellName; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +delete_cell(cellName; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "DELETE", "/cells/$(cellName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_cell( cellName, params::AbstractDict{String}; @@ -296,16 +286,14 @@ Deletes cross account readiness authorization. - `cross_account_authorization`: The cross-account authorization. """ -function delete_cross_account_authorization( +delete_cross_account_authorization( crossAccountAuthorization; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "DELETE", + "/crossaccountauthorizations/$(crossAccountAuthorization)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "DELETE", - "/crossaccountauthorizations/$(crossAccountAuthorization)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cross_account_authorization( crossAccountAuthorization, params::AbstractDict{String}; @@ -330,16 +318,14 @@ Deletes a readiness check. - `readiness_check_name`: Name of a readiness check. """ -function delete_readiness_check( +delete_readiness_check( readinessCheckName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "DELETE", + "/readinesschecks/$(readinessCheckName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "DELETE", - "/readinesschecks/$(readinessCheckName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_readiness_check( readinessCheckName, params::AbstractDict{String}; @@ -364,16 +350,14 @@ Deletes a recovery group. - `recovery_group_name`: The name of a recovery group. """ -function delete_recovery_group( +delete_recovery_group( recoveryGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "DELETE", + "/recoverygroups/$(recoveryGroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "DELETE", - "/recoverygroups/$(recoveryGroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_recovery_group( recoveryGroupName, params::AbstractDict{String}; @@ -398,16 +382,13 @@ Deletes a resource set. - `resource_set_name`: Name of a resource set. """ -function delete_resource_set( - resourceSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_readiness( +delete_resource_set(resourceSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "DELETE", "/resourcesets/$(resourceSetName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_set( resourceSetName, params::AbstractDict{String}; @@ -437,16 +418,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function get_architecture_recommendations( +get_architecture_recommendations( recoveryGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "GET", + "/recoverygroups/$(recoveryGroupName)/architectureRecommendations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "GET", - "/recoverygroups/$(recoveryGroupName)/architectureRecommendations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_architecture_recommendations( recoveryGroupName, params::AbstractDict{String}; @@ -473,11 +452,10 @@ group ARNs. - `cell_name`: The name of the cell. """ -function get_cell(cellName; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +get_cell(cellName; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/cells/$(cellName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_cell( cellName, params::AbstractDict{String}; @@ -507,16 +485,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function get_cell_readiness_summary( - cellName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_readiness( +get_cell_readiness_summary(cellName; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/cellreadiness/$(cellName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_cell_readiness_summary( cellName, params::AbstractDict{String}; @@ -541,16 +516,14 @@ Gets details about a readiness check. - `readiness_check_name`: Name of a readiness check. """ -function get_readiness_check( +get_readiness_check( readinessCheckName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "GET", + "/readinesschecks/$(readinessCheckName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "GET", - "/readinesschecks/$(readinessCheckName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_readiness_check( readinessCheckName, params::AbstractDict{String}; @@ -584,18 +557,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function get_readiness_check_resource_status( +get_readiness_check_resource_status( readinessCheckName, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53_recovery_readiness( + "GET", + "/readinesschecks/$(readinessCheckName)/resource/$(resourceIdentifier)/status"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "GET", - "/readinesschecks/$(readinessCheckName)/resource/$(resourceIdentifier)/status"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_readiness_check_resource_status( readinessCheckName, resourceIdentifier, @@ -627,16 +598,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function get_readiness_check_status( +get_readiness_check_status( readinessCheckName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "GET", + "/readinesschecks/$(readinessCheckName)/status"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "GET", - "/readinesschecks/$(readinessCheckName)/status"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_readiness_check_status( readinessCheckName, params::AbstractDict{String}; @@ -661,16 +630,13 @@ Gets details about a recovery group, including a list of the cells that are incl - `recovery_group_name`: The name of a recovery group. """ -function get_recovery_group( - recoveryGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_readiness( +get_recovery_group(recoveryGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/recoverygroups/$(recoveryGroupName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_recovery_group( recoveryGroupName, params::AbstractDict{String}; @@ -700,16 +666,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function get_recovery_group_readiness_summary( +get_recovery_group_readiness_summary( recoveryGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "GET", + "/recoverygroupreadiness/$(recoveryGroupName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "GET", - "/recoverygroupreadiness/$(recoveryGroupName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recovery_group_readiness_summary( recoveryGroupName, params::AbstractDict{String}; @@ -734,16 +698,13 @@ Displays the details about a resource set, including a list of the resources in - `resource_set_name`: Name of a resource set. """ -function get_resource_set( - resourceSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_readiness( +get_resource_set(resourceSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/resourcesets/$(resourceSetName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_set( resourceSetName, params::AbstractDict{String}; @@ -769,11 +730,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function list_cells(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +list_cells(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/cells"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_cells( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -793,16 +753,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function list_cross_account_authorizations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_readiness( +list_cross_account_authorizations(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/crossaccountauthorizations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cross_account_authorizations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -826,11 +783,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function list_readiness_checks(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +list_readiness_checks(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/readinesschecks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_readiness_checks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -854,11 +810,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function list_recovery_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +list_recovery_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/recoverygroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_recovery_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -882,11 +837,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The number of objects that you want to return with this call. - `"nextToken"`: The token that identifies which batch of results you want to see. """ -function list_resource_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +list_resource_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/resourcesets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_resource_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -911,11 +865,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token that identifies which batch of results you want to see. - `"resourceType"`: The resource type that a readiness rule applies to. """ -function list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/rules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -934,16 +887,13 @@ Lists the tags for a resource. - `resource-arn`: The Amazon Resource Name (ARN) for a resource. """ -function list_tags_for_resources( - resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_readiness( +list_tags_for_resources(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "GET", "/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resources( resource_arn, params::AbstractDict{String}; @@ -969,17 +919,14 @@ Adds a tag to a resource. - `tags`: """ -function tag_resource( - resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_readiness( +tag_resource(resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "POST", "/tags/$(resource-arn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resource_arn, tags, @@ -1006,17 +953,14 @@ Removes a tag from a resource. - `tag_keys`: The keys for tags you add to resources. """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53_recovery_readiness( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "DELETE", "/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -1044,15 +988,14 @@ Updates a cell to replace the list of nested cells with a new list of nested cel previous list. """ -function update_cell(cellName, cells; aws_config::AbstractAWSConfig=current_aws_config()) - return route53_recovery_readiness( +update_cell(cellName, cells; aws_config::AbstractAWSConfig=current_aws_config()) = + route53_recovery_readiness( "PUT", "/cells/$(cellName)", Dict{String,Any}("cells" => cells); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_cell( cellName, cells, @@ -1079,17 +1022,15 @@ Updates a readiness check. - `resource_set_name`: The name of the resource set to be checked. """ -function update_readiness_check( +update_readiness_check( readinessCheckName, resourceSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "PUT", + "/readinesschecks/$(readinessCheckName)", + Dict{String,Any}("resourceSetName" => resourceSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "PUT", - "/readinesschecks/$(readinessCheckName)", - Dict{String,Any}("resourceSetName" => resourceSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_readiness_check( readinessCheckName, resourceSetName, @@ -1121,17 +1062,15 @@ Updates a recovery group. - `recovery_group_name`: The name of a recovery group. """ -function update_recovery_group( +update_recovery_group( cells, recoveryGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = route53_recovery_readiness( + "PUT", + "/recoverygroups/$(recoveryGroupName)", + Dict{String,Any}("cells" => cells); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "PUT", - "/recoverygroups/$(recoveryGroupName)", - Dict{String,Any}("cells" => cells); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_recovery_group( cells, recoveryGroupName, @@ -1166,20 +1105,18 @@ Updates a resource set. - `resources`: A list of resource objects. """ -function update_resource_set( +update_resource_set( resourceSetName, resourceSetType, resources; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53_recovery_readiness( + "PUT", + "/resourcesets/$(resourceSetName)", + Dict{String,Any}("resourceSetType" => resourceSetType, "resources" => resources); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53_recovery_readiness( - "PUT", - "/resourcesets/$(resourceSetName)", - Dict{String,Any}("resourceSetType" => resourceSetType, "resources" => resources); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_set( resourceSetName, resourceSetType, diff --git a/src/services/route53profiles.jl b/src/services/route53profiles.jl index 00ff89be4..08115201e 100644 --- a/src/services/route53profiles.jl +++ b/src/services/route53profiles.jl @@ -24,19 +24,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of the tag keys and values that you want to identify the Profile association. """ -function associate_profile( +associate_profile( Name, ProfileId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53profiles( + "POST", + "/profileassociation", + Dict{String,Any}("Name" => Name, "ProfileId" => ProfileId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53profiles( - "POST", - "/profileassociation", - Dict{String,Any}( - "Name" => Name, "ProfileId" => ProfileId, "ResourceId" => ResourceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_profile( Name, ProfileId, @@ -79,19 +75,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the priority assinged the lowest value. The allowed values for priority are between 100 and 9900. """ -function associate_resource_to_profile( +associate_resource_to_profile( Name, ProfileId, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = route53profiles( + "POST", + "/profileresourceassociation", + Dict{String,Any}( + "Name" => Name, "ProfileId" => ProfileId, "ResourceArn" => ResourceArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53profiles( - "POST", - "/profileresourceassociation", - Dict{String,Any}( - "Name" => Name, "ProfileId" => ProfileId, "ResourceArn" => ResourceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_resource_to_profile( Name, ProfileId, @@ -134,17 +128,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of the tag keys and values that you want to associate with the Route 53 Profile. """ -function create_profile( - ClientToken, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53profiles( +create_profile(ClientToken, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + route53profiles( "POST", "/profile", Dict{String,Any}("ClientToken" => ClientToken, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_profile( ClientToken, Name, @@ -177,14 +168,13 @@ disassociate it from all VPCs. - `profile_id`: The ID of the Profile that you want to delete. """ -function delete_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) - return route53profiles( +delete_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = + route53profiles( "DELETE", "/profile/$(ProfileId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_profile( ProfileId, params::AbstractDict{String}; @@ -210,16 +200,14 @@ end - `resource_id`: The ID of the VPC. """ -function disassociate_profile( +disassociate_profile( ProfileId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53profiles( + "DELETE", + "/profileassociation/Profileid/$(ProfileId)/resourceid/$(ResourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53profiles( - "DELETE", - "/profileassociation/Profileid/$(ProfileId)/resourceid/$(ResourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_profile( ProfileId, ResourceId, @@ -246,16 +234,14 @@ end - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function disassociate_resource_from_profile( +disassociate_resource_from_profile( ProfileId, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = route53profiles( + "DELETE", + "/profileresourceassociation/profileid/$(ProfileId)/resourcearn/$(ResourceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53profiles( - "DELETE", - "/profileresourceassociation/profileid/$(ProfileId)/resourcearn/$(ResourceArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_resource_from_profile( ProfileId, ResourceArn, @@ -282,14 +268,13 @@ Profile is shared, and the current status of the Profile. - `profile_id`: ID of the Profile. """ -function get_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) - return route53profiles( +get_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = + route53profiles( "GET", "/profile/$(ProfileId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_profile( ProfileId, params::AbstractDict{String}; @@ -316,16 +301,14 @@ association, but a Profile can be associated with up to 5000 VPCs. about. """ -function get_profile_association( +get_profile_association( ProfileAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53profiles( + "GET", + "/profileassociation/$(ProfileAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53profiles( - "GET", - "/profileassociation/$(ProfileAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_profile_association( ProfileAssociationId, params::AbstractDict{String}; @@ -351,16 +334,14 @@ end want to get information about. """ -function get_profile_resource_association( +get_profile_resource_association( ProfileResourceAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53profiles( + "GET", + "/profileresourceassociation/$(ProfileResourceAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53profiles( - "GET", - "/profileresourceassociation/$(ProfileResourceAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_profile_resource_association( ProfileResourceAssociationId, params::AbstractDict{String}; @@ -395,14 +376,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"profileId"`: ID of the Profile. - `"resourceId"`: ID of the VPC. """ -function list_profile_associations(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53profiles( +list_profile_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53profiles( "GET", "/profileassociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_profile_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -437,16 +417,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys prior request in your next request. - `"resourceType"`: ID of a resource if you want information on only one type. """ -function list_profile_resource_associations( +list_profile_resource_associations( ProfileId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53profiles( + "GET", + "/profileresourceassociations/profileid/$(ProfileId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53profiles( - "GET", - "/profileresourceassociations/profileid/$(ProfileId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_profile_resource_associations( ProfileId, params::AbstractDict{String}; @@ -479,11 +457,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request. """ -function list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53profiles( - "GET", "/profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = route53profiles( + "GET", "/profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -503,16 +479,13 @@ end the tags for. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53profiles( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53profiles( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -539,15 +512,14 @@ end - `tags`: The tags that you want to add to the specified resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return route53profiles( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + route53profiles( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -575,17 +547,14 @@ end - `tag_keys`: The tags that you want to remove to the specified resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53profiles( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + route53profiles( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -618,16 +587,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the priority assinged the lowest value. The allowed values for priority are between 100 and 9900. """ -function update_profile_resource_association( +update_profile_resource_association( ProfileResourceAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53profiles( + "PATCH", + "/profileresourceassociation/$(ProfileResourceAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53profiles( - "PATCH", - "/profileresourceassociation/$(ProfileResourceAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_profile_resource_association( ProfileResourceAssociationId, params::AbstractDict{String}; diff --git a/src/services/route53resolver.jl b/src/services/route53resolver.jl index fe83db563..f2048ef4b 100644 --- a/src/services/route53resolver.jl +++ b/src/services/route53resolver.jl @@ -34,27 +34,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of the tag keys and values that you want to associate with the rule group association. """ -function associate_firewall_rule_group( +associate_firewall_rule_group( CreatorRequestId, FirewallRuleGroupId, Name, Priority, VpcId; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "AssociateFirewallRuleGroup", + Dict{String,Any}( + "CreatorRequestId" => CreatorRequestId, + "FirewallRuleGroupId" => FirewallRuleGroupId, + "Name" => Name, + "Priority" => Priority, + "VpcId" => VpcId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "AssociateFirewallRuleGroup", - Dict{String,Any}( - "CreatorRequestId" => CreatorRequestId, - "FirewallRuleGroupId" => FirewallRuleGroupId, - "Name" => Name, - "Priority" => Priority, - "VpcId" => VpcId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_firewall_rule_group( CreatorRequestId, FirewallRuleGroupId, @@ -101,18 +99,14 @@ DisassociateResolverEndpointIpAddress. addresses with. """ -function associate_resolver_endpoint_ip_address( +associate_resolver_endpoint_ip_address( IpAddress, ResolverEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "AssociateResolverEndpointIpAddress", + Dict{String,Any}("IpAddress" => IpAddress, "ResolverEndpointId" => ResolverEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "AssociateResolverEndpointIpAddress", - Dict{String,Any}( - "IpAddress" => IpAddress, "ResolverEndpointId" => ResolverEndpointId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_resolver_endpoint_ip_address( IpAddress, ResolverEndpointId, @@ -154,19 +148,17 @@ DisassociateResolverQueryLogConfig. log queries for. The VPCs and the query logging configuration must be in the same Region. """ -function associate_resolver_query_log_config( +associate_resolver_query_log_config( ResolverQueryLogConfigId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "AssociateResolverQueryLogConfig", + Dict{String,Any}( + "ResolverQueryLogConfigId" => ResolverQueryLogConfigId, + "ResourceId" => ResourceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "AssociateResolverQueryLogConfig", - Dict{String,Any}( - "ResolverQueryLogConfigId" => ResolverQueryLogConfigId, - "ResourceId" => ResourceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_resolver_query_log_config( ResolverQueryLogConfigId, ResourceId, @@ -209,16 +201,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: A name for the association that you're creating between a Resolver rule and a VPC. """ -function associate_resolver_rule( +associate_resolver_rule( ResolverRuleId, VPCId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "AssociateResolverRule", + Dict{String,Any}("ResolverRuleId" => ResolverRuleId, "VPCId" => VPCId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "AssociateResolverRule", - Dict{String,Any}("ResolverRuleId" => ResolverRuleId, "VPCId" => VPCId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_resolver_rule( ResolverRuleId, VPCId, @@ -258,16 +248,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of the tag keys and values that you want to associate with the domain list. """ -function create_firewall_domain_list( +create_firewall_domain_list( CreatorRequestId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "CreateFirewallDomainList", + Dict{String,Any}("CreatorRequestId" => CreatorRequestId, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "CreateFirewallDomainList", - Dict{String,Any}("CreatorRequestId" => CreatorRequestId, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_firewall_domain_list( CreatorRequestId, Name, @@ -352,7 +340,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see List of DNS record types. """ -function create_firewall_rule( +create_firewall_rule( Action, CreatorRequestId, FirewallDomainListId, @@ -360,21 +348,19 @@ function create_firewall_rule( Name, Priority; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "CreateFirewallRule", + Dict{String,Any}( + "Action" => Action, + "CreatorRequestId" => CreatorRequestId, + "FirewallDomainListId" => FirewallDomainListId, + "FirewallRuleGroupId" => FirewallRuleGroupId, + "Name" => Name, + "Priority" => Priority, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "CreateFirewallRule", - Dict{String,Any}( - "Action" => Action, - "CreatorRequestId" => CreatorRequestId, - "FirewallDomainListId" => FirewallDomainListId, - "FirewallRuleGroupId" => FirewallRuleGroupId, - "Name" => Name, - "Priority" => Priority, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_firewall_rule( Action, CreatorRequestId, @@ -424,16 +410,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of the tag keys and values that you want to associate with the rule group. """ -function create_firewall_rule_group( +create_firewall_rule_group( CreatorRequestId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "CreateFirewallRuleGroup", + Dict{String,Any}("CreatorRequestId" => CreatorRequestId, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "CreateFirewallRuleGroup", - Dict{String,Any}("CreatorRequestId" => CreatorRequestId, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_firewall_rule_group( CreatorRequestId, Name, @@ -477,25 +461,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default and minimal value is 4. - `"Tags"`: A string that helps identify the Route 53 Resolvers on Outpost. """ -function create_outpost_resolver( +create_outpost_resolver( CreatorRequestId, Name, OutpostArn, PreferredInstanceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "CreateOutpostResolver", + Dict{String,Any}( + "CreatorRequestId" => CreatorRequestId, + "Name" => Name, + "OutpostArn" => OutpostArn, + "PreferredInstanceType" => PreferredInstanceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "CreateOutpostResolver", - Dict{String,Any}( - "CreatorRequestId" => CreatorRequestId, - "Name" => Name, - "OutpostArn" => OutpostArn, - "PreferredInstanceType" => PreferredInstanceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_outpost_resolver( CreatorRequestId, Name, @@ -573,25 +555,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys endpoint type is applied to all IP addresses. - `"Tags"`: A list of the tag keys and values that you want to associate with the endpoint. """ -function create_resolver_endpoint( +create_resolver_endpoint( CreatorRequestId, Direction, IpAddresses, SecurityGroupIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "CreateResolverEndpoint", + Dict{String,Any}( + "CreatorRequestId" => CreatorRequestId, + "Direction" => Direction, + "IpAddresses" => IpAddresses, + "SecurityGroupIds" => SecurityGroupIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "CreateResolverEndpoint", - Dict{String,Any}( - "CreatorRequestId" => CreatorRequestId, - "Direction" => Direction, - "IpAddresses" => IpAddresses, - "SecurityGroupIds" => SecurityGroupIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resolver_endpoint( CreatorRequestId, Direction, @@ -652,23 +632,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of the tag keys and values that you want to associate with the query logging configuration. """ -function create_resolver_query_log_config( +create_resolver_query_log_config( CreatorRequestId, DestinationArn, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "CreateResolverQueryLogConfig", + Dict{String,Any}( + "CreatorRequestId" => CreatorRequestId, + "DestinationArn" => DestinationArn, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "CreateResolverQueryLogConfig", - Dict{String,Any}( - "CreatorRequestId" => CreatorRequestId, - "DestinationArn" => DestinationArn, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resolver_query_log_config( CreatorRequestId, DestinationArn, @@ -730,16 +708,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP addresses with a space. TargetIps is available only when the value of Rule type is FORWARD. """ -function create_resolver_rule( +create_resolver_rule( CreatorRequestId, RuleType; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "CreateResolverRule", + Dict{String,Any}("CreatorRequestId" => CreatorRequestId, "RuleType" => RuleType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "CreateResolverRule", - Dict{String,Any}("CreatorRequestId" => CreatorRequestId, "RuleType" => RuleType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resolver_rule( CreatorRequestId, RuleType, @@ -772,16 +748,14 @@ Deletes the specified domain list. - `firewall_domain_list_id`: The ID of the domain list that you want to delete. """ -function delete_firewall_domain_list( +delete_firewall_domain_list( FirewallDomainListId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "DeleteFirewallDomainList", + Dict{String,Any}("FirewallDomainListId" => FirewallDomainListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DeleteFirewallDomainList", - Dict{String,Any}("FirewallDomainListId" => FirewallDomainListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_firewall_domain_list( FirewallDomainListId, params::AbstractDict{String}; @@ -826,21 +800,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see List of DNS record types. """ -function delete_firewall_rule( +delete_firewall_rule( FirewallDomainListId, FirewallRuleGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "DeleteFirewallRule", + Dict{String,Any}( + "FirewallDomainListId" => FirewallDomainListId, + "FirewallRuleGroupId" => FirewallRuleGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DeleteFirewallRule", - Dict{String,Any}( - "FirewallDomainListId" => FirewallDomainListId, - "FirewallRuleGroupId" => FirewallRuleGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_firewall_rule( FirewallDomainListId, FirewallRuleGroupId, @@ -875,16 +847,14 @@ Deletes the specified firewall rule group. to delete. """ -function delete_firewall_rule_group( +delete_firewall_rule_group( FirewallRuleGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "DeleteFirewallRuleGroup", + Dict{String,Any}("FirewallRuleGroupId" => FirewallRuleGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DeleteFirewallRuleGroup", - Dict{String,Any}("FirewallRuleGroupId" => FirewallRuleGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_firewall_rule_group( FirewallRuleGroupId, params::AbstractDict{String}; @@ -914,14 +884,13 @@ Deletes a Resolver on the Outpost. - `id`: A unique string that identifies the Resolver on the Outpost. """ -function delete_outpost_resolver(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +delete_outpost_resolver(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "DeleteOutpostResolver", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_outpost_resolver( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -946,16 +915,14 @@ from a VPC are no longer routed to your network. - `resolver_endpoint_id`: The ID of the Resolver endpoint that you want to delete. """ -function delete_resolver_endpoint( +delete_resolver_endpoint( ResolverEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "DeleteResolverEndpoint", + Dict{String,Any}("ResolverEndpointId" => ResolverEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DeleteResolverEndpoint", - Dict{String,Any}("ResolverEndpointId" => ResolverEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resolver_endpoint( ResolverEndpointId, params::AbstractDict{String}; @@ -994,16 +961,14 @@ configuration, those VPCs are automatically disassociated from the configuration to delete. """ -function delete_resolver_query_log_config( +delete_resolver_query_log_config( ResolverQueryLogConfigId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "DeleteResolverQueryLogConfig", + Dict{String,Any}("ResolverQueryLogConfigId" => ResolverQueryLogConfigId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DeleteResolverQueryLogConfig", - Dict{String,Any}("ResolverQueryLogConfigId" => ResolverQueryLogConfigId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resolver_query_log_config( ResolverQueryLogConfigId, params::AbstractDict{String}; @@ -1035,16 +1000,13 @@ DisassociateResolverRule. - `resolver_rule_id`: The ID of the Resolver rule that you want to delete. """ -function delete_resolver_rule( - ResolverRuleId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53resolver( +delete_resolver_rule(ResolverRuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "DeleteResolverRule", Dict{String,Any}("ResolverRuleId" => ResolverRuleId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resolver_rule( ResolverRuleId, params::AbstractDict{String}; @@ -1070,18 +1032,14 @@ Disassociates a FirewallRuleGroup from a VPC, to remove DNS filtering from the V - `firewall_rule_group_association_id`: The identifier of the FirewallRuleGroupAssociation. """ -function disassociate_firewall_rule_group( +disassociate_firewall_rule_group( FirewallRuleGroupAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "DisassociateFirewallRuleGroup", + Dict{String,Any}("FirewallRuleGroupAssociationId" => FirewallRuleGroupAssociationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DisassociateFirewallRuleGroup", - Dict{String,Any}( - "FirewallRuleGroupAssociationId" => FirewallRuleGroupAssociationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_firewall_rule_group( FirewallRuleGroupAssociationId, params::AbstractDict{String}; @@ -1118,18 +1076,14 @@ AssociateResolverEndpointIpAddress. IP address from. """ -function disassociate_resolver_endpoint_ip_address( +disassociate_resolver_endpoint_ip_address( IpAddress, ResolverEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "DisassociateResolverEndpointIpAddress", + Dict{String,Any}("IpAddress" => IpAddress, "ResolverEndpointId" => ResolverEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DisassociateResolverEndpointIpAddress", - Dict{String,Any}( - "IpAddress" => IpAddress, "ResolverEndpointId" => ResolverEndpointId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_resolver_endpoint_ip_address( IpAddress, ResolverEndpointId, @@ -1170,19 +1124,17 @@ configuration. You can stop sharing the configuration. query logging configuration. """ -function disassociate_resolver_query_log_config( +disassociate_resolver_query_log_config( ResolverQueryLogConfigId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "DisassociateResolverQueryLogConfig", + Dict{String,Any}( + "ResolverQueryLogConfigId" => ResolverQueryLogConfigId, + "ResourceId" => ResourceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DisassociateResolverQueryLogConfig", - Dict{String,Any}( - "ResolverQueryLogConfigId" => ResolverQueryLogConfigId, - "ResourceId" => ResourceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_resolver_query_log_config( ResolverQueryLogConfigId, ResourceId, @@ -1220,16 +1172,14 @@ domain name that you specified in the Resolver rule. - `vpcid`: The ID of the VPC that you want to disassociate the Resolver rule from. """ -function disassociate_resolver_rule( +disassociate_resolver_rule( ResolverRuleId, VPCId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "DisassociateResolverRule", + Dict{String,Any}("ResolverRuleId" => ResolverRuleId, "VPCId" => VPCId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "DisassociateResolverRule", - Dict{String,Any}("ResolverRuleId" => ResolverRuleId, "VPCId" => VPCId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_resolver_rule( ResolverRuleId, VPCId, @@ -1261,14 +1211,13 @@ VPC from Amazon Virtual Private Cloud (Amazon VPC). - `resource_id`: The ID of the VPC from Amazon VPC that the configuration is for. """ -function get_firewall_config(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +get_firewall_config(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "GetFirewallConfig", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_firewall_config( ResourceId, params::AbstractDict{String}; @@ -1294,16 +1243,14 @@ Retrieves the specified firewall domain list. - `firewall_domain_list_id`: The ID of the domain list. """ -function get_firewall_domain_list( +get_firewall_domain_list( FirewallDomainListId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "GetFirewallDomainList", + Dict{String,Any}("FirewallDomainListId" => FirewallDomainListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "GetFirewallDomainList", - Dict{String,Any}("FirewallDomainListId" => FirewallDomainListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_firewall_domain_list( FirewallDomainListId, params::AbstractDict{String}; @@ -1333,16 +1280,14 @@ Retrieves the specified firewall rule group. - `firewall_rule_group_id`: The unique identifier of the firewall rule group. """ -function get_firewall_rule_group( +get_firewall_rule_group( FirewallRuleGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "GetFirewallRuleGroup", + Dict{String,Any}("FirewallRuleGroupId" => FirewallRuleGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "GetFirewallRuleGroup", - Dict{String,Any}("FirewallRuleGroupId" => FirewallRuleGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_firewall_rule_group( FirewallRuleGroupId, params::AbstractDict{String}; @@ -1374,18 +1319,14 @@ can be associated with more than one VPC. - `firewall_rule_group_association_id`: The identifier of the FirewallRuleGroupAssociation. """ -function get_firewall_rule_group_association( +get_firewall_rule_group_association( FirewallRuleGroupAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "GetFirewallRuleGroupAssociation", + Dict{String,Any}("FirewallRuleGroupAssociationId" => FirewallRuleGroupAssociationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "GetFirewallRuleGroupAssociation", - Dict{String,Any}( - "FirewallRuleGroupAssociationId" => FirewallRuleGroupAssociationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_firewall_rule_group_association( FirewallRuleGroupAssociationId, params::AbstractDict{String}; @@ -1419,16 +1360,13 @@ Manager (RAM). - `arn`: The ARN (Amazon Resource Name) for the rule group. """ -function get_firewall_rule_group_policy( - Arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53resolver( +get_firewall_rule_group_policy(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "GetFirewallRuleGroupPolicy", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_firewall_rule_group_policy( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1451,14 +1389,13 @@ type, name, and the current status of the Resolver. - `id`: The ID of the Resolver on the Outpost. """ -function get_outpost_resolver(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +get_outpost_resolver(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "GetOutpostResolver", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_outpost_resolver( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1481,14 +1418,13 @@ Amazon Virtual Private Cloud. - `resource_id`: Resource ID of the Amazon VPC that you want to get information about. """ -function get_resolver_config(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +get_resolver_config(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "GetResolverConfig", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resolver_config( ResourceId, params::AbstractDict{String}; @@ -1514,16 +1450,13 @@ Gets DNSSEC validation information for a specified resource. - `resource_id`: The ID of the virtual private cloud (VPC) for the DNSSEC validation status. """ -function get_resolver_dnssec_config( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53resolver( +get_resolver_dnssec_config(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "GetResolverDnssecConfig", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resolver_dnssec_config( ResourceId, params::AbstractDict{String}; @@ -1551,16 +1484,14 @@ outbound Resolver endpoint, and the current status of the endpoint. about. """ -function get_resolver_endpoint( +get_resolver_endpoint( ResolverEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "GetResolverEndpoint", + Dict{String,Any}("ResolverEndpointId" => ResolverEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "GetResolverEndpoint", - Dict{String,Any}("ResolverEndpointId" => ResolverEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resolver_endpoint( ResolverEndpointId, params::AbstractDict{String}; @@ -1591,16 +1522,14 @@ to. you want to get information about. """ -function get_resolver_query_log_config( +get_resolver_query_log_config( ResolverQueryLogConfigId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "GetResolverQueryLogConfig", + Dict{String,Any}("ResolverQueryLogConfigId" => ResolverQueryLogConfigId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "GetResolverQueryLogConfig", - Dict{String,Any}("ResolverQueryLogConfigId" => ResolverQueryLogConfigId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resolver_query_log_config( ResolverQueryLogConfigId, params::AbstractDict{String}; @@ -1633,18 +1562,16 @@ configuration, Resolver logs DNS queries that originate in that VPC. configuration association that you want to get information about. """ -function get_resolver_query_log_config_association( +get_resolver_query_log_config_association( ResolverQueryLogConfigAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "GetResolverQueryLogConfigAssociation", + Dict{String,Any}( + "ResolverQueryLogConfigAssociationId" => ResolverQueryLogConfigAssociationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "GetResolverQueryLogConfigAssociation", - Dict{String,Any}( - "ResolverQueryLogConfigAssociationId" => ResolverQueryLogConfigAssociationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resolver_query_log_config_association( ResolverQueryLogConfigAssociationId, params::AbstractDict{String}; @@ -1680,16 +1607,14 @@ Services account to be able to use. policy for. """ -function get_resolver_query_log_config_policy( +get_resolver_query_log_config_policy( Arn; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "GetResolverQueryLogConfigPolicy", + Dict{String,Any}("Arn" => Arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "GetResolverQueryLogConfigPolicy", - Dict{String,Any}("Arn" => Arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resolver_query_log_config_policy( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1713,16 +1638,13 @@ associated with. - `resolver_rule_id`: The ID of the Resolver rule that you want to get information about. """ -function get_resolver_rule( - ResolverRuleId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53resolver( +get_resolver_rule(ResolverRuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "GetResolverRule", Dict{String,Any}("ResolverRuleId" => ResolverRuleId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resolver_rule( ResolverRuleId, params::AbstractDict{String}; @@ -1750,16 +1672,14 @@ associate a Resolver rule and a VPC using AssociateResolverRule. get information about. """ -function get_resolver_rule_association( +get_resolver_rule_association( ResolverRuleAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "GetResolverRuleAssociation", + Dict{String,Any}("ResolverRuleAssociationId" => ResolverRuleAssociationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "GetResolverRuleAssociation", - Dict{String,Any}("ResolverRuleAssociationId" => ResolverRuleAssociationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_resolver_rule_association( ResolverRuleAssociationId, params::AbstractDict{String}; @@ -1792,14 +1712,13 @@ to use. - `arn`: The ID of the Resolver rule that you want to get the Resolver rule policy for. """ -function get_resolver_rule_policy(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +get_resolver_rule_policy(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "GetResolverRulePolicy", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resolver_rule_policy( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1833,23 +1752,21 @@ must be from 1-255 characters in length. in the file. """ -function import_firewall_domains( +import_firewall_domains( DomainFileUrl, FirewallDomainListId, Operation; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "ImportFirewallDomains", + Dict{String,Any}( + "DomainFileUrl" => DomainFileUrl, + "FirewallDomainListId" => FirewallDomainListId, + "Operation" => Operation, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "ImportFirewallDomains", - Dict{String,Any}( - "DomainFileUrl" => DomainFileUrl, - "FirewallDomainListId" => FirewallDomainListId, - "Operation" => Operation, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_firewall_domains( DomainFileUrl, FirewallDomainListId, @@ -1895,11 +1812,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request. """ -function list_firewall_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +list_firewall_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListFirewallConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_firewall_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1932,11 +1848,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request. """ -function list_firewall_domain_lists(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +list_firewall_domain_lists(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListFirewallDomainLists"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_firewall_domain_lists( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1971,16 +1886,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request. """ -function list_firewall_domains( +list_firewall_domains( FirewallDomainListId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "ListFirewallDomains", + Dict{String,Any}("FirewallDomainListId" => FirewallDomainListId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "ListFirewallDomains", - Dict{String,Any}("FirewallDomainListId" => FirewallDomainListId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_firewall_domains( FirewallDomainListId, params::AbstractDict{String}; @@ -2031,15 +1944,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VpcId"`: The unique identifier of the VPC that you want to retrieve the associations for. Leave this blank to retrieve associations for any VPC. """ -function list_firewall_rule_group_associations(; +list_firewall_rule_group_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "ListFirewallRuleGroupAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "ListFirewallRuleGroupAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_firewall_rule_group_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2071,11 +1982,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request. """ -function list_firewall_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +list_firewall_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListFirewallRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_firewall_rule_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2119,16 +2029,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys determines the processing order of the rules in a rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting. """ -function list_firewall_rules( +list_firewall_rules( FirewallRuleGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "ListFirewallRules", + Dict{String,Any}("FirewallRuleGroupId" => FirewallRuleGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "ListFirewallRules", - Dict{String,Any}("FirewallRuleGroupId" => FirewallRuleGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_firewall_rules( FirewallRuleGroupId, params::AbstractDict{String}; @@ -2163,11 +2071,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: For the first ListOutpostResolver request, omit this value. - `"OutpostArn"`: The Amazon Resource Name (ARN) of the Outpost. """ -function list_outpost_resolvers(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +list_outpost_resolvers(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListOutpostResolvers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_outpost_resolvers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2197,11 +2104,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request. """ -function list_resolver_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +list_resolver_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListResolverConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_resolver_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2232,11 +2138,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request. """ -function list_resolver_dnssec_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +list_resolver_dnssec_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListResolverDnssecConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_resolver_dnssec_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2268,16 +2173,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response. """ -function list_resolver_endpoint_ip_addresses( +list_resolver_endpoint_ip_addresses( ResolverEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "ListResolverEndpointIpAddresses", + Dict{String,Any}("ResolverEndpointId" => ResolverEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "ListResolverEndpointIpAddresses", - Dict{String,Any}("ResolverEndpointId" => ResolverEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resolver_endpoint_ip_addresses( ResolverEndpointId, params::AbstractDict{String}; @@ -2316,11 +2219,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request to get the next group of Resolver endpoints. In the next request, specify the value of NextToken from the previous response. """ -function list_resolver_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +list_resolver_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListResolverEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_resolver_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2376,15 +2278,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same value for SortOrder, if any, as in the previous request. """ -function list_resolver_query_log_config_associations(; +list_resolver_query_log_config_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "ListResolverQueryLogConfigAssociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "ListResolverQueryLogConfigAssociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resolver_query_log_config_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2443,15 +2343,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same value for SortOrder, if any, as in the previous request. """ -function list_resolver_query_log_configs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return route53resolver( +list_resolver_query_log_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListResolverQueryLogConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resolver_query_log_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2484,15 +2381,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListResolverRuleAssociation request to get the next group of rule associations. In the next request, specify the value of NextToken from the previous response. """ -function list_resolver_rule_associations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return route53resolver( +list_resolver_rule_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListResolverRuleAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resolver_rule_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2524,11 +2418,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next group of Resolver rules. In the next request, specify the value of NextToken from the previous response. """ -function list_resolver_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( - "ListResolverRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_resolver_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = route53resolver( + "ListResolverRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_resolver_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2557,16 +2449,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next group of tags for the resource. In the next request, specify the value of NextToken from the previous response. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53resolver( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2596,18 +2485,14 @@ rule group. You can use the policy to share the rule group using Resource Access IAM) policy to attach to the rule group. """ -function put_firewall_rule_group_policy( +put_firewall_rule_group_policy( Arn, FirewallRuleGroupPolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "PutFirewallRuleGroupPolicy", + Dict{String,Any}("Arn" => Arn, "FirewallRuleGroupPolicy" => FirewallRuleGroupPolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "PutFirewallRuleGroupPolicy", - Dict{String,Any}( - "Arn" => Arn, "FirewallRuleGroupPolicy" => FirewallRuleGroupPolicy - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_firewall_rule_group_policy( Arn, FirewallRuleGroupPolicy, @@ -2651,18 +2536,16 @@ operations that you want the account to be able to perform on the configuration. account that you specified in Arn. """ -function put_resolver_query_log_config_policy( +put_resolver_query_log_config_policy( Arn, ResolverQueryLogConfigPolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "PutResolverQueryLogConfigPolicy", + Dict{String,Any}( + "Arn" => Arn, "ResolverQueryLogConfigPolicy" => ResolverQueryLogConfigPolicy + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "PutResolverQueryLogConfigPolicy", - Dict{String,Any}( - "Arn" => Arn, "ResolverQueryLogConfigPolicy" => ResolverQueryLogConfigPolicy - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resolver_query_log_config_policy( Arn, ResolverQueryLogConfigPolicy, @@ -2707,16 +2590,14 @@ to be able to perform on the rule. with another account. Specify the same ARN that you specified in Arn. """ -function put_resolver_rule_policy( +put_resolver_rule_policy( Arn, ResolverRulePolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "PutResolverRulePolicy", + Dict{String,Any}("Arn" => Arn, "ResolverRulePolicy" => ResolverRulePolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "PutResolverRulePolicy", - Dict{String,Any}("Arn" => Arn, "ResolverRulePolicy" => ResolverRulePolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resolver_rule_policy( Arn, ResolverRulePolicy, @@ -2751,14 +2632,13 @@ Adds one or more tags to a specified resource. - `tags`: The tags that you want to add to the specified resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2793,16 +2673,13 @@ Removes one or more tags from a specified resource. - `tag_keys`: The tags that you want to remove to the specified resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return route53resolver( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2842,18 +2719,14 @@ VPC from Amazon Virtual Private Cloud (Amazon VPC). - `resource_id`: The ID of the VPC that the configuration is for. """ -function update_firewall_config( +update_firewall_config( FirewallFailOpen, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "UpdateFirewallConfig", + Dict{String,Any}("FirewallFailOpen" => FirewallFailOpen, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "UpdateFirewallConfig", - Dict{String,Any}( - "FirewallFailOpen" => FirewallFailOpen, "ResourceId" => ResourceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_firewall_config( FirewallFailOpen, ResourceId, @@ -2895,23 +2768,21 @@ Updates the firewall domain list from an array of domain specifications. domain list to exactly match the list that you are providing. """ -function update_firewall_domains( +update_firewall_domains( Domains, FirewallDomainListId, Operation; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "UpdateFirewallDomains", + Dict{String,Any}( + "Domains" => Domains, + "FirewallDomainListId" => FirewallDomainListId, + "Operation" => Operation, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "UpdateFirewallDomains", - Dict{String,Any}( - "Domains" => Domains, - "FirewallDomainListId" => FirewallDomainListId, - "Operation" => Operation, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_firewall_domains( Domains, FirewallDomainListId, @@ -2992,21 +2863,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see List of DNS record types. """ -function update_firewall_rule( +update_firewall_rule( FirewallDomainListId, FirewallRuleGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = route53resolver( + "UpdateFirewallRule", + Dict{String,Any}( + "FirewallDomainListId" => FirewallDomainListId, + "FirewallRuleGroupId" => FirewallRuleGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "UpdateFirewallRule", - Dict{String,Any}( - "FirewallDomainListId" => FirewallDomainListId, - "FirewallRuleGroupId" => FirewallRuleGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_firewall_rule( FirewallDomainListId, FirewallRuleGroupId, @@ -3053,18 +2922,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and so on. You can change the priority setting for a rule group association after you create it. """ -function update_firewall_rule_group_association( +update_firewall_rule_group_association( FirewallRuleGroupAssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "UpdateFirewallRuleGroupAssociation", + Dict{String,Any}("FirewallRuleGroupAssociationId" => FirewallRuleGroupAssociationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "UpdateFirewallRuleGroupAssociation", - Dict{String,Any}( - "FirewallRuleGroupAssociationId" => FirewallRuleGroupAssociationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_firewall_rule_group_association( FirewallRuleGroupAssociationId, params::AbstractDict{String}; @@ -3102,14 +2967,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: Name of the Resolver on the Outpost. - `"PreferredInstanceType"`: Amazon EC2 instance type. """ -function update_outpost_resolver(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route53resolver( +update_outpost_resolver(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route53resolver( "UpdateOutpostResolver", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_outpost_resolver( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3140,18 +3004,16 @@ Amazon Virtual Private Cloud. configuration for. """ -function update_resolver_config( +update_resolver_config( AutodefinedReverseFlag, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "UpdateResolverConfig", + Dict{String,Any}( + "AutodefinedReverseFlag" => AutodefinedReverseFlag, "ResourceId" => ResourceId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "UpdateResolverConfig", - Dict{String,Any}( - "AutodefinedReverseFlag" => AutodefinedReverseFlag, "ResourceId" => ResourceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resolver_config( AutodefinedReverseFlag, ResourceId, @@ -3190,16 +3052,14 @@ validation configuration, one is created. change to be completed. """ -function update_resolver_dnssec_config( +update_resolver_dnssec_config( ResourceId, Validation; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "UpdateResolverDnssecConfig", + Dict{String,Any}("ResourceId" => ResourceId, "Validation" => Validation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "UpdateResolverDnssecConfig", - Dict{String,Any}("ResourceId" => ResourceId, "Validation" => Validation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resolver_dnssec_config( ResourceId, Validation, @@ -3250,16 +3110,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from IPv4 to dual-stack. If you don't specify an IPv6 address, one will be automatically chosen from your subnet. """ -function update_resolver_endpoint( +update_resolver_endpoint( ResolverEndpointId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "UpdateResolverEndpoint", + Dict{String,Any}("ResolverEndpointId" => ResolverEndpointId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "UpdateResolverEndpoint", - Dict{String,Any}("ResolverEndpointId" => ResolverEndpointId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resolver_endpoint( ResolverEndpointId, params::AbstractDict{String}; @@ -3289,16 +3147,14 @@ parameters are optional. If you don't specify a parameter, it retains its curren - `resolver_rule_id`: The ID of the Resolver rule that you want to update. """ -function update_resolver_rule( +update_resolver_rule( Config, ResolverRuleId; aws_config::AbstractAWSConfig=current_aws_config() +) = route53resolver( + "UpdateResolverRule", + Dict{String,Any}("Config" => Config, "ResolverRuleId" => ResolverRuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route53resolver( - "UpdateResolverRule", - Dict{String,Any}("Config" => Config, "ResolverRuleId" => ResolverRuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resolver_rule( Config, ResolverRuleId, diff --git a/src/services/route_53.jl b/src/services/route_53.jl index 9f81d651b..a37dcbaa9 100644 --- a/src/services/route_53.jl +++ b/src/services/route_53.jl @@ -18,16 +18,14 @@ operation changes the KSK status to ACTIVE. hosted zone. """ -function activate_key_signing_key( +activate_key_signing_key( HostedZoneId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/keysigningkey/$(HostedZoneId)/$(Name)/activate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/keysigningkey/$(HostedZoneId)/$(Name)/activate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function activate_key_signing_key( HostedZoneId, Name, @@ -71,17 +69,14 @@ more information, see Access Management in the Amazon Web Services General Refer Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Comment"`: Optional: A comment about the association request. """ -function associate_vpcwith_hosted_zone( - Id, VPC; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +associate_vpcwith_hosted_zone(Id, VPC; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "POST", "/2013-04-01/hostedzone/$(Id)/associatevpc", Dict{String,Any}("VPC" => VPC); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_vpcwith_hosted_zone( Id, VPC, @@ -126,17 +121,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the request, the collection was changed after you got the version number. Route 53 does not update the collection, and it returns a CidrCollectionVersionMismatch error. """ -function change_cidr_collection( +change_cidr_collection( Changes, CidrCollectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/cidrcollection/$(CidrCollectionId)", + Dict{String,Any}("Changes" => Changes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/cidrcollection/$(CidrCollectionId)", - Dict{String,Any}("Changes" => Changes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function change_cidr_collection( Changes, CidrCollectionId, @@ -207,17 +200,15 @@ ChangeResourceRecordSets request, see Limits in the Amazon Route 53 Developer Gu change. """ -function change_resource_record_sets( +change_resource_record_sets( ChangeBatch, Id; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/hostedzone/$(Id)/rrset/", + Dict{String,Any}("ChangeBatch" => ChangeBatch); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/hostedzone/$(Id)/rrset/", - Dict{String,Any}("ChangeBatch" => ChangeBatch); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function change_resource_record_sets( ChangeBatch, Id, @@ -256,16 +247,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RemoveTagKeys"`: A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys. """ -function change_tags_for_resource( +change_tags_for_resource( ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/tags/$(ResourceType)/$(ResourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/tags/$(ResourceType)/$(ResourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function change_tags_for_resource( ResourceId, ResourceType, @@ -295,17 +284,15 @@ Creates a CIDR collection in the current Amazon Web Services account. from other API calls. """ -function create_cidr_collection( +create_cidr_collection( CallerReference, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/cidrcollection", + Dict{String,Any}("CallerReference" => CallerReference, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/cidrcollection", - Dict{String,Any}("CallerReference" => CallerReference, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cidr_collection( CallerReference, Name, @@ -366,19 +353,17 @@ metrics and alarms by using the CloudWatch console, see the Amazon CloudWatch Us - `health_check_config`: A complex type that contains settings for a new health check. """ -function create_health_check( +create_health_check( CallerReference, HealthCheckConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/healthcheck", + Dict{String,Any}( + "CallerReference" => CallerReference, "HealthCheckConfig" => HealthCheckConfig + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/healthcheck", - Dict{String,Any}( - "CallerReference" => CallerReference, "HealthCheckConfig" => HealthCheckConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_health_check( CallerReference, HealthCheckConfig, @@ -467,17 +452,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys additional Amazon VPCs with the hosted zone, use AssociateVPCWithHostedZone after you create a hosted zone. """ -function create_hosted_zone( +create_hosted_zone( CallerReference, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/hostedzone", + Dict{String,Any}("CallerReference" => CallerReference, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/hostedzone", - Dict{String,Any}("CallerReference" => CallerReference, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hosted_zone( CallerReference, Name, @@ -526,28 +509,26 @@ KSKs per hosted zone. set the value to ACTIVE or INACTIVE. """ -function create_key_signing_key( +create_key_signing_key( CallerReference, HostedZoneId, KeyManagementServiceArn, Name, Status; aws_config::AbstractAWSConfig=current_aws_config(), +) = route_53( + "POST", + "/2013-04-01/keysigningkey", + Dict{String,Any}( + "CallerReference" => CallerReference, + "HostedZoneId" => HostedZoneId, + "KeyManagementServiceArn" => KeyManagementServiceArn, + "Name" => Name, + "Status" => Status, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/keysigningkey", - Dict{String,Any}( - "CallerReference" => CallerReference, - "HostedZoneId" => HostedZoneId, - "KeyManagementServiceArn" => KeyManagementServiceArn, - "Name" => Name, - "Status" => Status, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_key_signing_key( CallerReference, HostedZoneId, @@ -653,22 +634,20 @@ DeleteQueryLoggingConfig. queries only for public hosted zones. """ -function create_query_logging_config( +create_query_logging_config( CloudWatchLogsLogGroupArn, HostedZoneId; aws_config::AbstractAWSConfig=current_aws_config(), +) = route_53( + "POST", + "/2013-04-01/queryloggingconfig", + Dict{String,Any}( + "CloudWatchLogsLogGroupArn" => CloudWatchLogsLogGroupArn, + "HostedZoneId" => HostedZoneId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/queryloggingconfig", - Dict{String,Any}( - "CloudWatchLogsLogGroupArn" => CloudWatchLogsLogGroupArn, - "HostedZoneId" => HostedZoneId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_query_logging_config( CloudWatchLogsLogGroupArn, HostedZoneId, @@ -733,17 +712,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HostedZoneId"`: If you want to mark the delegation set for an existing hosted zone as reusable, the ID for that hosted zone. """ -function create_reusable_delegation_set( +create_reusable_delegation_set( CallerReference; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/delegationset", + Dict{String,Any}("CallerReference" => CallerReference); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/delegationset", - Dict{String,Any}("CallerReference" => CallerReference); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_reusable_delegation_set( CallerReference, params::AbstractDict{String}; @@ -778,17 +755,14 @@ domain name (such as example.com) or one subdomain name (such as www.example.com Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Comment"`: (Optional) Any comments that you want to include about the traffic policy. """ -function create_traffic_policy( - Document, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +create_traffic_policy(Document, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "POST", "/2013-04-01/trafficpolicy", Dict{String,Any}("Document" => Document, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_traffic_policy( Document, Name, @@ -837,28 +811,26 @@ information, see the State response element. create resource record sets in the specified hosted zone. """ -function create_traffic_policy_instance( +create_traffic_policy_instance( HostedZoneId, Name, TTL, TrafficPolicyId, TrafficPolicyVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = route_53( + "POST", + "/2013-04-01/trafficpolicyinstance", + Dict{String,Any}( + "HostedZoneId" => HostedZoneId, + "Name" => Name, + "TTL" => TTL, + "TrafficPolicyId" => TrafficPolicyId, + "TrafficPolicyVersion" => TrafficPolicyVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/trafficpolicyinstance", - Dict{String,Any}( - "HostedZoneId" => HostedZoneId, - "Name" => Name, - "TTL" => TTL, - "TrafficPolicyId" => TrafficPolicyId, - "TrafficPolicyVersion" => TrafficPolicyVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_traffic_policy_instance( HostedZoneId, Name, @@ -912,17 +884,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Comment"`: The comment that you specified in the CreateTrafficPolicyVersion request, if any. """ -function create_traffic_policy_version( +create_traffic_policy_version( Document, Id; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/trafficpolicy/$(Id)", + Dict{String,Any}("Document" => Document); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/trafficpolicy/$(Id)", - Dict{String,Any}("Document" => Document); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_traffic_policy_version( Document, Id, @@ -959,17 +929,15 @@ request for each VPC. authorize associating with your hosted zone. """ -function create_vpcassociation_authorization( +create_vpcassociation_authorization( Id, VPC; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/hostedzone/$(Id)/authorizevpcassociation", + Dict{String,Any}("VPC" => VPC); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/hostedzone/$(Id)/authorizevpcassociation", - Dict{String,Any}("VPC" => VPC); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vpcassociation_authorization( Id, VPC, @@ -997,16 +965,14 @@ operation changes the KSK status to INACTIVE. - `name`: A string used to identify a key-signing key (KSK). """ -function deactivate_key_signing_key( +deactivate_key_signing_key( HostedZoneId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/keysigningkey/$(HostedZoneId)/$(Name)/deactivate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/keysigningkey/$(HostedZoneId)/$(Name)/deactivate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deactivate_key_signing_key( HostedZoneId, Name, @@ -1033,16 +999,14 @@ be empty before it can be deleted. - `cidr_collection_id`: The UUID of the collection to delete. """ -function delete_cidr_collection( +delete_cidr_collection( CidrCollectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "DELETE", + "/2013-04-01/cidrcollection/$(CidrCollectionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "DELETE", - "/2013-04-01/cidrcollection/$(CidrCollectionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_cidr_collection( CidrCollectionId, params::AbstractDict{String}; @@ -1076,16 +1040,13 @@ delay of several hours before the health check is deleted from Route 53. - `health_check_id`: The ID of the health check that you want to delete. """ -function delete_health_check( - HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +delete_health_check(HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "DELETE", "/2013-04-01/healthcheck/$(HealthCheckId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_health_check( HealthCheckId, params::AbstractDict{String}; @@ -1137,14 +1098,12 @@ current Amazon Web Services account. - `id`: The ID of the hosted zone you want to delete. """ -function delete_hosted_zone(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "DELETE", - "/2013-04-01/hostedzone/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_hosted_zone(Id; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "DELETE", + "/2013-04-01/hostedzone/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_hosted_zone( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1171,16 +1130,14 @@ before you delete it. Use GetDNSSEC to verify that the KSK is in an INACTIVE sta - `name`: A string used to identify a key-signing key (KSK). """ -function delete_key_signing_key( +delete_key_signing_key( HostedZoneId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "DELETE", + "/2013-04-01/keysigningkey/$(HostedZoneId)/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "DELETE", - "/2013-04-01/keysigningkey/$(HostedZoneId)/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_key_signing_key( HostedZoneId, Name, @@ -1209,14 +1166,13 @@ CreateQueryLoggingConfig. - `id`: The ID of the configuration that you want to delete. """ -function delete_query_logging_config(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +delete_query_logging_config(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "DELETE", "/2013-04-01/queryloggingconfig/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_query_logging_config( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1242,16 +1198,13 @@ ID of the reusable delegation set that you want to delete. - `id`: The ID of the reusable delegation set that you want to delete. """ -function delete_reusable_delegation_set( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +delete_reusable_delegation_set(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "DELETE", "/2013-04-01/delegationset/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_reusable_delegation_set( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1280,16 +1233,13 @@ policy document, by running GetTrafficPolicy. - `version`: The version number of the traffic policy that you want to delete. """ -function delete_traffic_policy( - Id, Version; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +delete_traffic_policy(Id, Version; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "DELETE", "/2013-04-01/trafficpolicy/$(Id)/$(Version)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_traffic_policy( Id, Version, @@ -1319,16 +1269,13 @@ are known as policy records. were created when you created the traffic policy instance. """ -function delete_traffic_policy_instance( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +delete_traffic_policy_instance(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "DELETE", "/2013-04-01/trafficpolicyinstance/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_traffic_policy_instance( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1363,17 +1310,15 @@ use DisassociateVPCFromHostedZone. account, a complex type that includes the ID and region of the VPC. """ -function delete_vpcassociation_authorization( +delete_vpcassociation_authorization( Id, VPC; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/hostedzone/$(Id)/deauthorizevpcassociation", + Dict{String,Any}("VPC" => VPC); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/hostedzone/$(Id)/deauthorizevpcassociation", - Dict{String,Any}("VPC" => VPC); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vpcassociation_authorization( Id, VPC, @@ -1400,14 +1345,13 @@ key-signing keys (KSKs) that are active in the hosted zone. - `id`: A unique string used to identify a hosted zone. """ -function disable_hosted_zone_dnssec(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +disable_hosted_zone_dnssec(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "POST", "/2013-04-01/hostedzone/$(Id)/disable-dnssec"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_hosted_zone_dnssec( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1451,17 +1395,15 @@ Management in the Amazon Web Services General Reference. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Comment"`: Optional: A comment about the disassociation request. """ -function disassociate_vpcfrom_hosted_zone( +disassociate_vpcfrom_hosted_zone( Id, VPC; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/hostedzone/$(Id)/disassociatevpc", + Dict{String,Any}("VPC" => VPC); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/hostedzone/$(Id)/disassociatevpc", - Dict{String,Any}("VPC" => VPC); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_vpcfrom_hosted_zone( Id, VPC, @@ -1487,14 +1429,13 @@ Enables DNSSEC signing in a specific hosted zone. - `id`: A unique string used to identify a hosted zone. """ -function enable_hosted_zone_dnssec(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +enable_hosted_zone_dnssec(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "POST", "/2013-04-01/hostedzone/$(Id)/enable-dnssec"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_hosted_zone_dnssec( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1531,14 +1472,12 @@ navigation pane. instances are referred to as traffic flow policy records in the Amazon Route 53 console.) """ -function get_account_limit(Type; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/accountlimit/$(Type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_account_limit(Type; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/accountlimit/$(Type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_account_limit( Type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1566,14 +1505,12 @@ DNS servers managing the hosted zone. that ChangeResourceRecordSets returned in the Id element when you submitted the request. """ -function get_change(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/change/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_change(Id; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/change/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_change( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1597,14 +1534,12 @@ services. For more information, see IP Address Ranges of Amazon Route 53 Servers Amazon Route 53 Developer Guide. """ -function get_checker_ip_ranges(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/checkeripranges"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_checker_ip_ranges(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/checkeripranges"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_checker_ip_ranges( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1628,14 +1563,12 @@ Returns information about DNSSEC for a specific hosted zone, including the key-s - `id`: A unique string used to identify a hosted zone. """ -function get_dnssec(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/hostedzone/$(Id)/dnssec"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_dnssec(Id; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/hostedzone/$(Id)/dnssec"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_dnssec( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1676,14 +1609,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Possession Abbreviations on the United States Postal Service website. For a list of all supported subdivision codes, use the ListGeoLocations API. """ -function get_geo_location(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/geolocation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_geo_location(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/geolocation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_geo_location( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1708,14 +1639,13 @@ Gets information about a specified health check. which health check to use. The value can be up to 64 characters long. """ -function get_health_check(HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +get_health_check(HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/healthcheck/$(HealthCheckId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_health_check( HealthCheckId, params::AbstractDict{String}; @@ -1738,14 +1668,12 @@ Retrieves the number of health checks that are associated with the current Amazo Services account. """ -function get_health_check_count(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/healthcheckcount"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_health_check_count(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/healthcheckcount"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_health_check_count( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1772,16 +1700,14 @@ Gets the reason that a specified health check failed most recently. console. You can't use GetHealthCheckLastFailureReason for a calculated health check. """ -function get_health_check_last_failure_reason( +get_health_check_last_failure_reason( HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "GET", + "/2013-04-01/healthcheck/$(HealthCheckId)/lastfailurereason"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "GET", - "/2013-04-01/healthcheck/$(HealthCheckId)/lastfailurereason"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_health_check_last_failure_reason( HealthCheckId, params::AbstractDict{String}; @@ -1812,16 +1738,13 @@ require immediate and actionable responses. GetHealthCheckStatus to get the status of a calculated health check. """ -function get_health_check_status( - HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +get_health_check_status(HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/healthcheck/$(HealthCheckId)/status"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_health_check_status( HealthCheckId, params::AbstractDict{String}; @@ -1847,14 +1770,12 @@ the hosted zone. - `id`: The ID of the hosted zone that you want to get information about. """ -function get_hosted_zone(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/hostedzone/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_hosted_zone(Id; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/hostedzone/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_hosted_zone( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1875,14 +1796,12 @@ Retrieves the number of hosted zones that are associated with the current Amazon Services account. """ -function get_hosted_zone_count(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/hostedzonecount"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_hosted_zone_count(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/hostedzonecount"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_hosted_zone_count( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1911,14 +1830,13 @@ Amazon Route 53 Developer Guide. To request a higher limit, open a case. associate with the specified private hosted zone. """ -function get_hosted_zone_limit(Id, Type; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +get_hosted_zone_limit(Id, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/hostedzonelimit/$(Id)/$(Type)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_hosted_zone_limit( Id, Type, @@ -1946,14 +1864,12 @@ information about DNS query logs, see CreateQueryLoggingConfig and Logging DNS Q about. """ -function get_query_logging_config(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/queryloggingconfig/$(Id)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_query_logging_config(Id; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/queryloggingconfig/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_query_logging_config( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1978,14 +1894,13 @@ servers that are assigned to the delegation set. for. """ -function get_reusable_delegation_set(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +get_reusable_delegation_set(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/delegationset/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_reusable_delegation_set( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2012,16 +1927,14 @@ To request a higher limit, open a case. zones that you can associate with the specified reusable delegation set. """ -function get_reusable_delegation_set_limit( +get_reusable_delegation_set_limit( Id, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "GET", + "/2013-04-01/reusabledelegationsetlimit/$(Id)/$(Type)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "GET", - "/2013-04-01/reusabledelegationsetlimit/$(Id)/$(Type)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_reusable_delegation_set_limit( Id, Type, @@ -2051,14 +1964,13 @@ DeleteTrafficPolicy. about. """ -function get_traffic_policy(Id, Version; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +get_traffic_policy(Id, Version; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/trafficpolicy/$(Id)/$(Version)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_traffic_policy( Id, Version, @@ -2088,14 +2000,13 @@ as policy records. - `id`: The ID of the traffic policy instance that you want to get information about. """ -function get_traffic_policy_instance(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +get_traffic_policy_instance(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/trafficpolicyinstance/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_traffic_policy_instance( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2116,16 +2027,13 @@ Gets the number of traffic policy instances that are associated with the current Services account. """ -function get_traffic_policy_instance_count(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +get_traffic_policy_instance_count(; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/trafficpolicyinstancecount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_traffic_policy_instance_count( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2154,16 +2062,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nexttoken"`: An opaque pagination token to indicate where the service is to begin enumerating results. """ -function list_cidr_blocks( - CidrCollectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +list_cidr_blocks(CidrCollectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/cidrcollection/$(CidrCollectionId)/cidrblocks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cidr_blocks( CidrCollectionId, params::AbstractDict{String}; @@ -2192,14 +2097,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys enumerating results. If no value is provided, the listing of results starts from the beginning. """ -function list_cidr_collections(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/cidrcollection"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_cidr_collections(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/cidrcollection"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_cidr_collections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2229,16 +2132,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys enumerating results. If no value is provided, the listing of results starts from the beginning. """ -function list_cidr_locations( - CidrCollectionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +list_cidr_locations(CidrCollectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/cidrcollection/$(CidrCollectionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cidr_locations( CidrCollectionId, params::AbstractDict{String}; @@ -2287,14 +2187,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys startsubdivisioncode to return the next page of results. To list subdivisions (U.S. states), you must include both startcountrycode and startsubdivisioncode. """ -function list_geo_locations(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/geolocations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_geo_locations(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/geolocations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_geo_locations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2327,14 +2225,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If you set MaxItems to a value greater than 1000, Route 53 returns only the first 1000 health checks. """ -function list_health_checks(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/healthcheck"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_health_checks(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/healthcheck"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_health_checks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2374,14 +2270,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response is true, and the value of NextMarker is the hosted zone ID of the first hosted zone that Route 53 will return if you submit another request. """ -function list_hosted_zones(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/hostedzone"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_hosted_zones(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/hostedzone"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_hosted_zones( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2445,14 +2339,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IsTruncated element in the response is true, and the values of NextDNSName and NextHostedZoneId specify the first hosted zone in the next group of maxitems hosted zones. """ -function list_hosted_zones_by_name(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/hostedzonesbyname"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_hosted_zones_by_name(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/hostedzonesbyname"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_hosted_zones_by_name( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2502,17 +2394,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the previous response. If the previous response didn't include a NextToken element, there are no more hosted zones to get. """ -function list_hosted_zones_by_vpc( +list_hosted_zones_by_vpc( vpcid, vpcregion; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "GET", + "/2013-04-01/hostedzonesbyvpc", + Dict{String,Any}("vpcid" => vpcid, "vpcregion" => vpcregion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "GET", - "/2013-04-01/hostedzonesbyvpc", - Dict{String,Any}("vpcid" => vpcid, "vpcregion" => vpcregion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_hosted_zones_by_vpc( vpcid, vpcregion, @@ -2559,14 +2449,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request. """ -function list_query_logging_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/queryloggingconfig"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_query_logging_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/queryloggingconfig"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_query_logging_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2640,14 +2528,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys record set that the alias references. Constraint: Specifying type without specifying name returns an InvalidInput error. """ -function list_resource_record_sets(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +list_resource_record_sets(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/hostedzone/$(Id)/rrset"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resource_record_sets( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2679,14 +2566,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys return in the response to this request. If you specify a value greater than 100, Route 53 returns only the first 100 reusable delegation sets. """ -function list_reusable_delegation_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +list_reusable_delegation_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/delegationset"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_reusable_delegation_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2712,16 +2598,14 @@ allocation, see Using Cost Allocation Tags in the Billing and Cost Management Us healthcheck. The resource type for hosted zones is hostedzone. """ -function list_tags_for_resource( +list_tags_for_resource( ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "GET", + "/2013-04-01/tags/$(ResourceType)/$(ResourceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "GET", - "/2013-04-01/tags/$(ResourceType)/$(ResourceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_resource( ResourceId, ResourceType, @@ -2756,17 +2640,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceIds"`: A complex type that contains the ResourceId element for each resource for which you want to get a list of tags. """ -function list_tags_for_resources( +list_tags_for_resources( ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/tags/$(ResourceType)", + Dict{String,Any}("ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/tags/$(ResourceType)", - Dict{String,Any}("ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_resources( ResourceId, ResourceType, @@ -2807,14 +2689,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value of TrafficPolicyIdMarker, specify the value of TrafficPolicyIdMarker that was returned in the previous response. """ -function list_traffic_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( - "GET", - "/2013-04-01/trafficpolicies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_traffic_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53( + "GET", + "/2013-04-01/trafficpolicies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_traffic_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2869,14 +2749,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instances. If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get. """ -function list_traffic_policy_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +list_traffic_policy_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/trafficpolicyinstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_traffic_policy_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2927,17 +2806,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instances. If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get. """ -function list_traffic_policy_instances_by_hosted_zone( +list_traffic_policy_instances_by_hosted_zone( id; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "GET", + "/2013-04-01/trafficpolicyinstances/hostedzone", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "GET", - "/2013-04-01/trafficpolicyinstances/hostedzone", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_traffic_policy_instances_by_hosted_zone( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2998,17 +2875,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 53 will return if you submit another request. If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get. """ -function list_traffic_policy_instances_by_policy( +list_traffic_policy_instances_by_policy( id, version; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "GET", + "/2013-04-01/trafficpolicyinstances/trafficpolicy", + Dict{String,Any}("id" => id, "version" => version); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "GET", - "/2013-04-01/trafficpolicyinstances/trafficpolicy", - Dict{String,Any}("id" => id, "version" => version); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_traffic_policy_instances_by_policy( id, version, @@ -3051,16 +2926,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListTrafficPolicyVersions request. For the value of TrafficPolicyVersionMarker, specify the value of TrafficPolicyVersionMarker in the previous response. """ -function list_traffic_policy_versions( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +list_traffic_policy_versions(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/trafficpolicies/$(Id)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_traffic_policy_versions( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3096,16 +2968,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys submit another request, and include the value of NextToken from the response in the nexttoken parameter in another ListVPCAssociationAuthorizations request. """ -function list_vpcassociation_authorizations( - Id; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +list_vpcassociation_authorizations(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "GET", "/2013-04-01/hostedzone/$(Id)/authorizevpcassociation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_vpcassociation_authorizations( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3153,21 +3022,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the IP address for that resolver. If you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the Amazon Web Services US East (N. Virginia) Region (us-east-1). """ -function test_dnsanswer( +test_dnsanswer( hostedzoneid, recordname, recordtype; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "GET", + "/2013-04-01/testdnsanswer", + Dict{String,Any}( + "hostedzoneid" => hostedzoneid, + "recordname" => recordname, + "recordtype" => recordtype, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "GET", - "/2013-04-01/testdnsanswer", - Dict{String,Any}( - "hostedzoneid" => hostedzoneid, - "recordname" => recordname, - "recordtype" => recordtype, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_dnsanswer( hostedzoneid, recordname, @@ -3350,16 +3217,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource. If the string appears in the response body, Route 53 considers the resource healthy. (You can't change the value of Type when you update a health check.) """ -function update_health_check( - HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53( +update_health_check(HealthCheckId; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "POST", "/2013-04-01/healthcheck/$(HealthCheckId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_health_check( HealthCheckId, params::AbstractDict{String}; @@ -3388,14 +3252,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Comment"`: The new comment for the hosted zone. If you don't specify a value for Comment, Amazon Route 53 deletes the existing value of the Comment element, if any. """ -function update_hosted_zone_comment(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53( +update_hosted_zone_comment(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53( "POST", "/2013-04-01/hostedzone/$(Id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_hosted_zone_comment( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3421,17 +3284,15 @@ Updates the comment for a specified traffic policy version. comment for. """ -function update_traffic_policy_comment( +update_traffic_policy_comment( Comment, Id, Version; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53( + "POST", + "/2013-04-01/trafficpolicy/$(Id)/$(Version)", + Dict{String,Any}("Comment" => Comment); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/trafficpolicy/$(Id)/$(Version)", - Dict{String,Any}("Comment" => Comment); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_traffic_policy_comment( Comment, Id, @@ -3479,25 +3340,23 @@ resource record set name. to use to update resource record sets for the specified traffic policy instance. """ -function update_traffic_policy_instance( +update_traffic_policy_instance( Id, TTL, TrafficPolicyId, TrafficPolicyVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = route_53( + "POST", + "/2013-04-01/trafficpolicyinstance/$(Id)", + Dict{String,Any}( + "TTL" => TTL, + "TrafficPolicyId" => TrafficPolicyId, + "TrafficPolicyVersion" => TrafficPolicyVersion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53( - "POST", - "/2013-04-01/trafficpolicyinstance/$(Id)", - Dict{String,Any}( - "TTL" => TTL, - "TrafficPolicyId" => TrafficPolicyId, - "TrafficPolicyVersion" => TrafficPolicyVersion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_traffic_policy_instance( Id, TTL, diff --git a/src/services/route_53_domains.jl b/src/services/route_53_domains.jl index ec7200e3a..aea422eac 100644 --- a/src/services/route_53_domains.jl +++ b/src/services/route_53_domains.jl @@ -24,16 +24,14 @@ from Aws Account 111122223333 has been cancelled. request. """ -function accept_domain_transfer_from_another_aws_account( +accept_domain_transfer_from_another_aws_account( DomainName, Password; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "AcceptDomainTransferFromAnotherAwsAccount", + Dict{String,Any}("DomainName" => DomainName, "Password" => Password); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "AcceptDomainTransferFromAnotherAwsAccount", - Dict{String,Any}("DomainName" => DomainName, "Password" => Password); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_domain_transfer_from_another_aws_account( DomainName, Password, @@ -70,18 +68,14 @@ see Configuring DNSSEC signing in the Route 53 developer guide. key-value, and flags. """ -function associate_delegation_signer_to_domain( +associate_delegation_signer_to_domain( DomainName, SigningAttributes; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "AssociateDelegationSignerToDomain", + Dict{String,Any}("DomainName" => DomainName, "SigningAttributes" => SigningAttributes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "AssociateDelegationSignerToDomain", - Dict{String,Any}( - "DomainName" => DomainName, "SigningAttributes" => SigningAttributes - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_delegation_signer_to_domain( DomainName, SigningAttributes, @@ -121,16 +115,14 @@ information, for example, Domain Transfer from Aws Account 111122223333 has been another Amazon Web Services account. """ -function cancel_domain_transfer_to_another_aws_account( +cancel_domain_transfer_to_another_aws_account( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "CancelDomainTransferToAnotherAwsAccount", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "CancelDomainTransferToAnotherAwsAccount", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_domain_transfer_to_another_aws_account( DomainName, params::AbstractDict{String}; @@ -170,16 +162,13 @@ availability of the domain name. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"IdnLangCode"`: Reserved for future use. """ -function check_domain_availability( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +check_domain_availability(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "CheckDomainAvailability", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function check_domain_availability( DomainName, params::AbstractDict{String}; @@ -216,16 +205,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys code to transfer the domain, the code that you got from the current registrar for the domain. """ -function check_domain_transferability( +check_domain_transferability( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "CheckDomainTransferability", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "CheckDomainTransferability", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function check_domain_transferability( DomainName, params::AbstractDict{String}; @@ -259,14 +246,13 @@ noreply@domainnameverification.net or noreply@registrar.amazon.com. - `domain_name`: Name of the domain to be deleted. """ -function delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53_domains( +delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "DeleteDomain", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_domain( DomainName, params::AbstractDict{String}; @@ -294,16 +280,14 @@ consistent; subsequent operations might not immediately represent all issued ope - `tags_to_delete`: A list of tag keys to delete. """ -function delete_tags_for_domain( +delete_tags_for_domain( DomainName, TagsToDelete; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "DeleteTagsForDomain", + Dict{String,Any}("DomainName" => DomainName, "TagsToDelete" => TagsToDelete); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "DeleteTagsForDomain", - Dict{String,Any}("DomainName" => DomainName, "TagsToDelete" => TagsToDelete); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_tags_for_domain( DomainName, TagsToDelete, @@ -336,16 +320,13 @@ This operation disables automatic renewal of domain registration for the specifi - `domain_name`: The name of the domain that you want to disable automatic renewal for. """ -function disable_domain_auto_renew( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +disable_domain_auto_renew(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "DisableDomainAutoRenew", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_domain_auto_renew( DomainName, params::AbstractDict{String}; @@ -376,16 +357,14 @@ registrant will be notified by email. - `domain_name`: The name of the domain that you want to remove the transfer lock for. """ -function disable_domain_transfer_lock( +disable_domain_transfer_lock( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "DisableDomainTransferLock", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "DisableDomainTransferLock", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_domain_transfer_lock( DomainName, params::AbstractDict{String}; @@ -413,16 +392,14 @@ Deletes a delegation signer (DS) record in the registry zone for this domain nam You can retrieve it as part of DNSSEC information returned by GetDomainDetail. """ -function disassociate_delegation_signer_from_domain( +disassociate_delegation_signer_from_domain( DomainName, Id; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "DisassociateDelegationSignerFromDomain", + Dict{String,Any}("DomainName" => DomainName, "Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "DisassociateDelegationSignerFromDomain", - Dict{String,Any}("DomainName" => DomainName, "Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_delegation_signer_from_domain( DomainName, Id, @@ -457,16 +434,13 @@ the deadline. - `domain_name`: The name of the domain that you want to enable automatic renewal for. """ -function enable_domain_auto_renew( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +enable_domain_auto_renew(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "EnableDomainAutoRenew", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_domain_auto_renew( DomainName, params::AbstractDict{String}; @@ -495,16 +469,14 @@ request is not completed successfully, the domain registrant will be notified by - `domain_name`: The name of the domain that you want to set the transfer lock for. """ -function enable_domain_transfer_lock( +enable_domain_transfer_lock( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "EnableDomainTransferLock", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "EnableDomainTransferLock", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_domain_transfer_lock( DomainName, params::AbstractDict{String}; @@ -534,15 +506,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domainName"`: The name of the domain for which you want to know whether the registrant contact has confirmed that the email address is valid. """ -function get_contact_reachability_status(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +get_contact_reachability_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "GetContactReachabilityStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_contact_reachability_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -566,14 +535,13 @@ returned as part of the output. - `domain_name`: The name of the domain that you want to get detailed information about. """ -function get_domain_detail(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53_domains( +get_domain_detail(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "GetDomainDetail", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_domain_detail( DomainName, params::AbstractDict{String}; @@ -614,23 +582,21 @@ The GetDomainSuggestions operation returns a list of suggested domain names. return. Specify a value between 1 and 50. """ -function get_domain_suggestions( +get_domain_suggestions( DomainName, OnlyAvailable, SuggestionCount; aws_config::AbstractAWSConfig=current_aws_config(), +) = route_53_domains( + "GetDomainSuggestions", + Dict{String,Any}( + "DomainName" => DomainName, + "OnlyAvailable" => OnlyAvailable, + "SuggestionCount" => SuggestionCount, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "GetDomainSuggestions", - Dict{String,Any}( - "DomainName" => DomainName, - "OnlyAvailable" => OnlyAvailable, - "SuggestionCount" => SuggestionCount, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_domain_suggestions( DomainName, OnlyAvailable, @@ -667,16 +633,13 @@ This operation returns the current status of an operation that is not completed. Route 53 returned the identifier in the response to the original request. """ -function get_operation_detail( - OperationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +get_operation_detail(OperationId; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "GetOperationDetail", Dict{String,Any}("OperationId" => OperationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_operation_detail( OperationId, params::AbstractDict{String}; @@ -714,11 +677,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortCondition"`: A complex type that contains information about the requested ordering of domains in the returned list. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53_domains( - "ListDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains("ListDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -751,11 +711,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Unix time format and Coordinated Universal time (UTC). - `"Type"`: An arrays of the domains operation types. """ -function list_operations(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53_domains( - "ListOperations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_operations(; aws_config::AbstractAWSConfig=current_aws_config()) = route_53_domains( + "ListOperations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_operations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -785,11 +743,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys .net. If a Tld value is not provided, a list of prices for all TLDs supported by Route 53 is returned. """ -function list_prices(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53_domains( - "ListPrices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_prices(; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains("ListPrices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_prices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -810,16 +765,13 @@ represent all issued operations. - `domain_name`: The domain for which you want to get a list of tags. """ -function list_tags_for_domain( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +list_tags_for_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "ListTagsForDomain", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_domain( DomainName, params::AbstractDict{String}; @@ -848,14 +800,13 @@ domain is ready to be transferred to another registrar. - `target`: New IPS tag for the domain. """ -function push_domain(DomainName, Target; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53_domains( +push_domain(DomainName, Target; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "PushDomain", Dict{String,Any}("DomainName" => DomainName, "Target" => Target); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function push_domain( DomainName, Target, @@ -951,27 +902,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify the same privacy setting for the administrative, billing, registrant, and technical contacts. Default: true """ -function register_domain( +register_domain( AdminContact, DomainName, DurationInYears, RegistrantContact, TechContact; aws_config::AbstractAWSConfig=current_aws_config(), +) = route_53_domains( + "RegisterDomain", + Dict{String,Any}( + "AdminContact" => AdminContact, + "DomainName" => DomainName, + "DurationInYears" => DurationInYears, + "RegistrantContact" => RegistrantContact, + "TechContact" => TechContact, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "RegisterDomain", - Dict{String,Any}( - "AdminContact" => AdminContact, - "DomainName" => DomainName, - "DurationInYears" => DurationInYears, - "RegistrantContact" => RegistrantContact, - "TechContact" => TechContact, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_domain( AdminContact, DomainName, @@ -1016,16 +965,14 @@ information, for example, Domain Transfer from Aws Account 111122223333 has been account submitted a TransferDomainToAnotherAwsAccount request. """ -function reject_domain_transfer_from_another_aws_account( +reject_domain_transfer_from_another_aws_account( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "RejectDomainTransferFromAnotherAwsAccount", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "RejectDomainTransferFromAnotherAwsAccount", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reject_domain_transfer_from_another_aws_account( DomainName, params::AbstractDict{String}; @@ -1064,18 +1011,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys your domain, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide. Default: 1 """ -function renew_domain( +renew_domain( CurrentExpiryYear, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "RenewDomain", + Dict{String,Any}("CurrentExpiryYear" => CurrentExpiryYear, "DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "RenewDomain", - Dict{String,Any}( - "CurrentExpiryYear" => CurrentExpiryYear, "DomainName" => DomainName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function renew_domain( CurrentExpiryYear, DomainName, @@ -1111,15 +1054,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"domainName"`: The name of the domain for which you want Route 53 to resend a confirmation email to the registrant contact. """ -function resend_contact_reachability_email(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +resend_contact_reachability_email(; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "ResendContactReachabilityEmail"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resend_contact_reachability_email( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1141,16 +1081,14 @@ end - `operation_id`: Operation ID. """ -function resend_operation_authorization( +resend_operation_authorization( OperationId; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "ResendOperationAuthorization", + Dict{String,Any}("OperationId" => OperationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "ResendOperationAuthorization", - Dict{String,Any}("OperationId" => OperationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function resend_operation_authorization( OperationId, params::AbstractDict{String}; @@ -1177,16 +1115,13 @@ another registrar, you provide this value to the new registrar. - `domain_name`: The name of the domain that you want to get an authorization code for. """ -function retrieve_domain_auth_code( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +retrieve_domain_auth_code(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "RetrieveDomainAuthCode", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function retrieve_domain_auth_code( DomainName, params::AbstractDict{String}; @@ -1277,27 +1212,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify the same privacy setting for the administrative, billing, registrant, and technical contacts. Default: true """ -function transfer_domain( +transfer_domain( AdminContact, DomainName, DurationInYears, RegistrantContact, TechContact; aws_config::AbstractAWSConfig=current_aws_config(), +) = route_53_domains( + "TransferDomain", + Dict{String,Any}( + "AdminContact" => AdminContact, + "DomainName" => DomainName, + "DurationInYears" => DurationInYears, + "RegistrantContact" => RegistrantContact, + "TechContact" => TechContact, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "TransferDomain", - Dict{String,Any}( - "AdminContact" => AdminContact, - "DomainName" => DomainName, - "DurationInYears" => DurationInYears, - "RegistrantContact" => RegistrantContact, - "TechContact" => TechContact, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function transfer_domain( AdminContact, DomainName, @@ -1354,16 +1287,14 @@ information, for example, Domain Transfer from Aws Account 111122223333 has been Web Services account to another account. """ -function transfer_domain_to_another_aws_account( +transfer_domain_to_another_aws_account( AccountId, DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "TransferDomainToAnotherAwsAccount", + Dict{String,Any}("AccountId" => AccountId, "DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "TransferDomainToAnotherAwsAccount", - Dict{String,Any}("AccountId" => AccountId, "DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function transfer_domain_to_another_aws_account( AccountId, DomainName, @@ -1406,16 +1337,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RegistrantContact"`: Provides detailed contact information. - `"TechContact"`: Provides detailed contact information. """ -function update_domain_contact( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +update_domain_contact(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "UpdateDomainContact", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_domain_contact( DomainName, params::AbstractDict{String}; @@ -1479,16 +1407,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the information that you entered for the technical contact. You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts. """ -function update_domain_contact_privacy( +update_domain_contact_privacy( DomainName; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "UpdateDomainContactPrivacy", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "UpdateDomainContactPrivacy", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_domain_contact_privacy( DomainName, params::AbstractDict{String}; @@ -1523,16 +1449,14 @@ notified by email. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"FIAuthKey"`: The authorization key for .fi domains """ -function update_domain_nameservers( +update_domain_nameservers( DomainName, Nameservers; aws_config::AbstractAWSConfig=current_aws_config() +) = route_53_domains( + "UpdateDomainNameservers", + Dict{String,Any}("DomainName" => DomainName, "Nameservers" => Nameservers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return route_53_domains( - "UpdateDomainNameservers", - Dict{String,Any}("DomainName" => DomainName, "Nameservers" => Nameservers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_domain_nameservers( DomainName, Nameservers, @@ -1569,16 +1493,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TagsToUpdate"`: A list of the tag keys and values that you want to add or update. If you specify a key that already exists, the corresponding value will be replaced. """ -function update_tags_for_domain( - DomainName; aws_config::AbstractAWSConfig=current_aws_config() -) - return route_53_domains( +update_tags_for_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains( "UpdateTagsForDomain", Dict{String,Any}("DomainName" => DomainName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_tags_for_domain( DomainName, params::AbstractDict{String}; @@ -1617,11 +1538,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys billing records. Specify the date and time in Unix time format and Coordinated Universal time (UTC). """ -function view_billing(; aws_config::AbstractAWSConfig=current_aws_config()) - return route_53_domains( - "ViewBilling"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +view_billing(; aws_config::AbstractAWSConfig=current_aws_config()) = + route_53_domains("ViewBilling"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function view_billing( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/rum.jl b/src/services/rum.jl index ca4ac25d1..7551f1179 100644 --- a/src/services/rum.jl +++ b/src/services/rum.jl @@ -53,22 +53,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination. """ -function batch_create_rum_metric_definitions( +batch_create_rum_metric_definitions( AppMonitorName, Destination, MetricDefinitions; aws_config::AbstractAWSConfig=current_aws_config(), +) = rum( + "POST", + "/rummetrics/$(AppMonitorName)/metrics", + Dict{String,Any}( + "Destination" => Destination, "MetricDefinitions" => MetricDefinitions + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "POST", - "/rummetrics/$(AppMonitorName)/metrics", - Dict{String,Any}( - "Destination" => Destination, "MetricDefinitions" => MetricDefinitions - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_create_rum_metric_definitions( AppMonitorName, Destination, @@ -119,22 +117,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that was receiving the metrics that are being deleted. """ -function batch_delete_rum_metric_definitions( +batch_delete_rum_metric_definitions( AppMonitorName, destination, metricDefinitionIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = rum( + "DELETE", + "/rummetrics/$(AppMonitorName)/metrics", + Dict{String,Any}( + "destination" => destination, "metricDefinitionIds" => metricDefinitionIds + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "DELETE", - "/rummetrics/$(AppMonitorName)/metrics", - Dict{String,Any}( - "destination" => destination, "metricDefinitionIds" => metricDefinitionIds - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_rum_metric_definitions( AppMonitorName, destination, @@ -184,17 +180,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Use the token returned by the previous operation to request the next page of results. """ -function batch_get_rum_metric_definitions( +batch_get_rum_metric_definitions( AppMonitorName, destination; aws_config::AbstractAWSConfig=current_aws_config() +) = rum( + "GET", + "/rummetrics/$(AppMonitorName)/metrics", + Dict{String,Any}("destination" => destination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "GET", - "/rummetrics/$(AppMonitorName)/metrics", - Dict{String,Any}("destination" => destination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_rum_metric_definitions( AppMonitorName, destination, @@ -253,17 +247,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys strings of characters. You can associate as many as 50 tags with an app monitor. For more information, see Tagging Amazon Web Services resources. """ -function create_app_monitor( - Domain, Name; aws_config::AbstractAWSConfig=current_aws_config() +create_app_monitor(Domain, Name; aws_config::AbstractAWSConfig=current_aws_config()) = rum( + "POST", + "/appmonitor", + Dict{String,Any}("Domain" => Domain, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "POST", - "/appmonitor", - Dict{String,Any}("Domain" => Domain, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_monitor( Domain, Name, @@ -291,14 +281,12 @@ Deletes an existing app monitor. This immediately stops the collection of data. - `name`: The name of the app monitor to delete. """ -function delete_app_monitor(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return rum( - "DELETE", - "/appmonitor/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_app_monitor(Name; aws_config::AbstractAWSConfig=current_aws_config()) = rum( + "DELETE", + "/appmonitor/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_app_monitor( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -330,17 +318,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that corresponds to the destination to delete. """ -function delete_rum_metrics_destination( +delete_rum_metrics_destination( AppMonitorName, destination; aws_config::AbstractAWSConfig=current_aws_config() +) = rum( + "DELETE", + "/rummetrics/$(AppMonitorName)/metricsdestination", + Dict{String,Any}("destination" => destination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "DELETE", - "/rummetrics/$(AppMonitorName)/metricsdestination", - Dict{String,Any}("destination" => destination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rum_metrics_destination( AppMonitorName, destination, @@ -368,11 +354,9 @@ Retrieves the complete configuration information for one app monitor. - `name`: The app monitor to retrieve information for. """ -function get_app_monitor(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return rum( - "GET", "/appmonitor/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_app_monitor(Name; aws_config::AbstractAWSConfig=current_aws_config()) = rum( + "GET", "/appmonitor/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_app_monitor( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -405,17 +389,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Use the token returned by the previous operation to request the next page of results. """ -function get_app_monitor_data( - Name, TimeRange; aws_config::AbstractAWSConfig=current_aws_config() -) - return rum( +get_app_monitor_data(Name, TimeRange; aws_config::AbstractAWSConfig=current_aws_config()) = + rum( "POST", "/appmonitor/$(Name)/data", Dict{String,Any}("TimeRange" => TimeRange); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_app_monitor_data( Name, TimeRange, @@ -446,11 +427,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Use the token returned by the previous operation to request the next page of results. """ -function list_app_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) - return rum( - "POST", "/appmonitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_app_monitors(; aws_config::AbstractAWSConfig=current_aws_config()) = + rum("POST", "/appmonitors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_app_monitors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -482,16 +460,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: Use the token returned by the previous operation to request the next page of results. """ -function list_rum_metrics_destinations( +list_rum_metrics_destinations( AppMonitorName; aws_config::AbstractAWSConfig=current_aws_config() +) = rum( + "GET", + "/rummetrics/$(AppMonitorName)/metricsdestination"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "GET", - "/rummetrics/$(AppMonitorName)/metricsdestination"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_rum_metrics_destinations( AppMonitorName, params::AbstractDict{String}; @@ -516,16 +492,13 @@ Displays the tags associated with a CloudWatch RUM resource. - `resource_arn`: The ARN of the resource that you want to see the tags of. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return rum( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + rum( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -559,27 +532,25 @@ batch of events from one user session. batch of events was collected from. """ -function put_rum_events( +put_rum_events( AppMonitorDetails, BatchId, Id, RumEvents, UserDetails; aws_config::AbstractAWSConfig=current_aws_config(), +) = rum( + "POST", + "/appmonitors/$(Id)/", + Dict{String,Any}( + "AppMonitorDetails" => AppMonitorDetails, + "BatchId" => BatchId, + "RumEvents" => RumEvents, + "UserDetails" => UserDetails, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "POST", - "/appmonitors/$(Id)/", - Dict{String,Any}( - "AppMonitorDetails" => AppMonitorDetails, - "BatchId" => BatchId, - "RumEvents" => RumEvents, - "UserDetails" => UserDetails, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_rum_events( AppMonitorDetails, BatchId, @@ -636,17 +607,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to be passed. The CloudWatchAmazonCloudWatchRUMFullAccess policy doesn't include PassRole permissions. """ -function put_rum_metrics_destination( +put_rum_metrics_destination( AppMonitorName, Destination; aws_config::AbstractAWSConfig=current_aws_config() +) = rum( + "POST", + "/rummetrics/$(AppMonitorName)/metricsdestination", + Dict{String,Any}("Destination" => Destination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "POST", - "/rummetrics/$(AppMonitorName)/metricsdestination", - Dict{String,Any}("Destination" => Destination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_rum_metrics_destination( AppMonitorName, Destination, @@ -685,15 +654,13 @@ Web Services resources. - `tags`: The list of key-value pairs to associate with the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return rum( - "POST", - "/tags/$(ResourceArn)", - Dict{String,Any}("Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = rum( + "POST", + "/tags/$(ResourceArn)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceArn, Tags, @@ -720,17 +687,14 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return rum( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + rum( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -780,14 +744,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Domain"`: The top-level internet domain name for which your application has administrative authority. """ -function update_app_monitor(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return rum( - "PATCH", - "/appmonitor/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_app_monitor(Name; aws_config::AbstractAWSConfig=current_aws_config()) = rum( + "PATCH", + "/appmonitor/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_app_monitor( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -824,25 +786,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination. """ -function update_rum_metric_definition( +update_rum_metric_definition( AppMonitorName, Destination, MetricDefinition, MetricDefinitionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = rum( + "PATCH", + "/rummetrics/$(AppMonitorName)/metrics", + Dict{String,Any}( + "Destination" => Destination, + "MetricDefinition" => MetricDefinition, + "MetricDefinitionId" => MetricDefinitionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return rum( - "PATCH", - "/rummetrics/$(AppMonitorName)/metrics", - Dict{String,Any}( - "Destination" => Destination, - "MetricDefinition" => MetricDefinition, - "MetricDefinitionId" => MetricDefinitionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rum_metric_definition( AppMonitorName, Destination, diff --git a/src/services/s3.jl b/src/services/s3.jl index 86377e8e0..74da2ffd9 100644 --- a/src/services/s3.jl +++ b/src/services/s3.jl @@ -15,12 +15,16 @@ progress, those part uploads might or might not succeed. As a result, it might b to abort a given multipart upload multiple times in order to completely free all storage consumed by all parts. To verify that all parts have been removed and prevent getting charged for the part storage, you should call the ListParts API operation and ensure that -the parts list is empty. Directory buckets - For directory buckets, you must make -requests for this API operation to the Zonal endpoint. These endpoints support -virtual-hosted-style requests in the format +the parts list is empty. Directory buckets - If multipart uploads in a directory bucket +are in progress, you can't delete the bucket until all the in-progress multipart uploads +are aborted or completed. To delete these in-progress multipart uploads, use the +ListMultipartUploads operation to list the in-progress multipart uploads in the bucket and +use the AbortMultupartUpload operation to abort all the in-progress multipart uploads. +Directory buckets - For directory buckets, you must make requests for this API operation to +the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style requests are not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User -Guide. Permissions General purpose bucket permissions - For information about +Guide. Permissions General purpose bucket permissions - For information about permissions required to use the multipart upload, see Multipart Upload and Permissions in the Amazon S3 User Guide. Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the CreateSession API @@ -69,17 +73,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). - `"x-amz-request-payer"`: """ -function abort_multipart_upload( +abort_multipart_upload( Bucket, Key, uploadId; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "DELETE", + "/$(Bucket)/$(Key)", + Dict{String,Any}("uploadId" => uploadId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)/$(Key)", - Dict{String,Any}("uploadId" => uploadId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function abort_multipart_upload( Bucket, Key, @@ -135,8 +137,11 @@ the format https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . P requests are not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User Guide. Permissions General purpose bucket permissions - For information about permissions required to use the multipart upload API, see Multipart -Upload and Permissions in the Amazon S3 User Guide. Directory bucket permissions - To -grant access to this API operation on a directory bucket, we recommend that you use the +Upload and Permissions in the Amazon S3 User Guide. If you provide an additional checksum +value in your MultipartUpload requests and the object is encrypted with Key Management +Service, you must have permission to use the kms:Decrypt action for the +CompleteMultipartUpload request to succeed. Directory bucket permissions - To grant +access to this API operation on a directory bucket, we recommend that you use the CreateSession API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a @@ -144,14 +149,16 @@ session token. With the session token in your request header, you can make API r this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session -expires. For more information about authorization, see CreateSession . Special errors - Error Code: EntityTooSmall Description: Your proposed upload is smaller than the -minimum allowed object size. Each part must be at least 5 MB in size, except the last part. - HTTP Status Code: 400 Bad Request Error Code: InvalidPart Description: One or more -of the specified parts could not be found. The part might not have been uploaded, or the -specified ETag might not have matched the uploaded part's ETag. HTTP Status Code: 400 Bad -Request Error Code: InvalidPartOrder Description: The list of parts was not in -ascending order. The parts list must be specified in order by part number. HTTP Status +expires. For more information about authorization, see CreateSession . If the object is +encrypted with SSE-KMS, you must also have the kms:GenerateDataKey and kms:Decrypt +permissions in IAM identity-based policies and KMS key policies for the KMS key. Special +errors Error Code: EntityTooSmall Description: Your proposed upload is smaller than +the minimum allowed object size. Each part must be at least 5 MB in size, except the last +part. HTTP Status Code: 400 Bad Request Error Code: InvalidPart Description: One +or more of the specified parts could not be found. The part might not have been uploaded, +or the specified ETag might not have matched the uploaded part's ETag. HTTP Status Code: +400 Bad Request Error Code: InvalidPartOrder Description: The list of parts was not +in ascending order. The parts list must be specified in order by part number. HTTP Status Code: 400 Bad Request Error Code: NoSuchUpload Description: The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed. HTTP Status Code: 404 Not Found HTTP Host header syntax @@ -189,13 +196,20 @@ CompleteMultipartUpload: CreateMultipartUpload UploadPart AbortMultip # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CompleteMultipartUpload"`: The container for the multipart upload request information. +- `"If-None-Match"`: Uploads the object only if the object key name does not already exist + in the bucket specified. Otherwise, Amazon S3 returns a 412 Precondition Failed error. If a + conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict + response. On a 409 failure you should re-initiate the multipart upload with + CreateMultipartUpload and re-upload each part. Expects the '*' (asterisk) character. For + more information about conditional requests, see RFC 7232, or Conditional requests in the + Amazon S3 User Guide. - `"x-amz-checksum-crc32"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the - base64-encoded, 32-bit CRC32 checksum of the object. For more information, see Checking + base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide. - `"x-amz-checksum-crc32c"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the - base64-encoded, 32-bit CRC32C checksum of the object. For more information, see Checking + base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide. - `"x-amz-checksum-sha1"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the @@ -223,17 +237,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide. This functionality is not supported for directory buckets. """ -function complete_multipart_upload( +complete_multipart_upload( Bucket, Key, uploadId; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "POST", + "/$(Bucket)/$(Key)", + Dict{String,Any}("uploadId" => uploadId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "POST", - "/$(Bucket)/$(Key)", - Dict{String,Any}("uploadId" => uploadId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function complete_multipart_upload( Bucket, Key, @@ -262,69 +274,73 @@ a single atomic action using this API. However, to copy an object greater than 5 must use the multipart upload Upload Part - Copy (UploadPartCopy) API. For more information, see Copy Object Using the REST Multipart Upload API. You can copy individual objects between general purpose buckets, between directory buckets, and between general -purpose buckets and directory buckets. Directory buckets - For directory buckets, you -must make requests for this API operation to the Zonal endpoint. These endpoints support -virtual-hosted-style requests in the format -https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style requests are -not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User -Guide. Both the Region that you want to copy the object from and the Region that you want -to copy the object to must be enabled for your account. For more information about how to -enable a Region for your account, see Enable or disable a Region for standalone accounts in -the Amazon Web Services Account Management Guide. Amazon S3 transfer acceleration does not -support cross-Region copies. If you request a cross-Region copy using a transfer -acceleration endpoint, you get a 400 Bad Request error. For more information, see Transfer -Acceleration. Authentication and authorization All CopyObject requests must be -authenticated and signed by using IAM credentials (access key ID and secret access key for -the IAM identities). All headers with the x-amz- prefix, including x-amz-copy-source, must -be signed. For more information, see REST Authentication. Directory buckets - You must use -the IAM credentials to authenticate and authorize your access to the CopyObject API -operation, instead of using the temporary security credentials through the CreateSession -API operation. Amazon Web Services CLI or SDKs handles authentication and authorization on -your behalf. Permissions You must have read access to the source object and write access -to the destination bucket. General purpose bucket permissions - You must have -permissions in an IAM policy based on the source and destination bucket types in a -CopyObject operation. If the source object is in a general purpose bucket, you must have -s3:GetObject permission to read the source object that is being copied. If the -destination bucket is a general purpose bucket, you must have s3:PutObject permission to -write the object copy to the destination bucket. Directory bucket permissions - You -must have permissions in a bucket policy or an IAM identity-based policy based on the -source and destination bucket types in a CopyObject operation. If the source object that -you want to copy is in a directory bucket, you must have the s3express:CreateSession -permission in the Action element of a policy to read the object. By default, the session is -in the ReadWrite mode. If you want to restrict the access, you can explicitly set the -s3express:SessionMode condition key to ReadOnly on the copy source bucket. If the copy -destination is a directory bucket, you must have the s3express:CreateSession permission -in the Action element of a policy to write the object to the destination. The -s3express:SessionMode condition key can't be set to ReadOnly on the copy destination -bucket. For example policies, see Example bucket policies for S3 Express One Zone and -Amazon Web Services Identity and Access Management (IAM) identity-based policies for S3 -Express One Zone in the Amazon S3 User Guide. Response and special errors When the -request is an HTTP 1.1 request, the response is chunk encoded. When the request is not an -HTTP 1.1 request, the response would not contain the Content-Length. You always need to -read the entire response body to check if the copy succeeds. to keep the connection alive -while we copy the data. If the copy is successful, you receive a response with -information about the copied object. A copy request might return an error when Amazon S3 -receives the copy request or while Amazon S3 is copying the files. A 200 OK response can -contain either a success or an error. If the error occurs before the copy action starts, -you receive a standard Amazon S3 error. If the error occurs during the copy operation, -the error response is embedded in the 200 OK response. For example, in a cross-region copy, -you may encounter throttling and receive a 200 OK response. For more information, see -Resolve the Error 200 response when copying objects to Amazon S3. The 200 OK status code -means the copy was accepted, but it doesn't mean the copy is complete. Another example is -when you disconnect from Amazon S3 before the copy is complete, Amazon S3 might cancel the -copy and you may receive a 200 OK response. You must stay connected to Amazon S3 until the -entire response is successfully received and processed. If you call this API operation -directly, make sure to design your application to parse the content of the response and -handle it appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition. -The SDKs detect the embedded error and apply error handling per your configuration settings -(including automatically retrying the request as appropriate). If the condition persists, -the SDKs throw an exception (or, for the SDKs that don't use exceptions, they return an -error). Charge The copy request charge is based on the storage class and Region that -you specify for the destination object. The request can also result in a data retrieval -charge for the source if the source storage class bills for data retrieval. If the copy -source is in a different region, the data transfer is billed to the copy source account. -For pricing information, see Amazon S3 pricing. HTTP Host header syntax Directory -buckets - The HTTP Host header syntax is +purpose buckets and directory buckets. Amazon S3 supports copy operations using +Multi-Region Access Points only as a destination when using the Multi-Region Access Point +ARN. Directory buckets - For directory buckets, you must make requests for this API +operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in +the format https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style +requests are not supported. For more information, see Regional and Zonal endpoints in the +Amazon S3 User Guide. VPC endpoints don't support cross-Region requests (including +copies). If you're using VPC endpoints, your source and destination buckets should be in +the same Amazon Web Services Region as your VPC endpoint. Both the Region that you want +to copy the object from and the Region that you want to copy the object to must be enabled +for your account. For more information about how to enable a Region for your account, see +Enable or disable a Region for standalone accounts in the Amazon Web Services Account +Management Guide. Amazon S3 transfer acceleration does not support cross-Region copies. If +you request a cross-Region copy using a transfer acceleration endpoint, you get a 400 Bad +Request error. For more information, see Transfer Acceleration. Authentication and +authorization All CopyObject requests must be authenticated and signed by using IAM +credentials (access key ID and secret access key for the IAM identities). All headers with +the x-amz- prefix, including x-amz-copy-source, must be signed. For more information, see +REST Authentication. Directory buckets - You must use the IAM credentials to authenticate +and authorize your access to the CopyObject API operation, instead of using the temporary +security credentials through the CreateSession API operation. Amazon Web Services CLI or +SDKs handles authentication and authorization on your behalf. Permissions You must have +read access to the source object and write access to the destination bucket. General +purpose bucket permissions - You must have permissions in an IAM policy based on the source +and destination bucket types in a CopyObject operation. If the source object is in a +general purpose bucket, you must have s3:GetObject permission to read the source object +that is being copied. If the destination bucket is a general purpose bucket, you must +have s3:PutObject permission to write the object copy to the destination bucket. +Directory bucket permissions - You must have permissions in a bucket policy or an IAM +identity-based policy based on the source and destination bucket types in a CopyObject +operation. If the source object that you want to copy is in a directory bucket, you must +have the s3express:CreateSession permission in the Action element of a policy to read the +object. By default, the session is in the ReadWrite mode. If you want to restrict the +access, you can explicitly set the s3express:SessionMode condition key to ReadOnly on the +copy source bucket. If the copy destination is a directory bucket, you must have the +s3express:CreateSession permission in the Action element of a policy to write the object +to the destination. The s3express:SessionMode condition key can't be set to ReadOnly on the +copy destination bucket. If the object is encrypted with SSE-KMS, you must also have the +kms:GenerateDataKey and kms:Decrypt permissions in IAM identity-based policies and KMS key +policies for the KMS key. For example policies, see Example bucket policies for S3 Express +One Zone and Amazon Web Services Identity and Access Management (IAM) identity-based +policies for S3 Express One Zone in the Amazon S3 User Guide. Response and special +errors When the request is an HTTP 1.1 request, the response is chunk encoded. When the +request is not an HTTP 1.1 request, the response would not contain the Content-Length. You +always need to read the entire response body to check if the copy succeeds. If the copy +is successful, you receive a response with information about the copied object. A copy +request might return an error when Amazon S3 receives the copy request or while Amazon S3 +is copying the files. A 200 OK response can contain either a success or an error. If the +error occurs before the copy action starts, you receive a standard Amazon S3 error. If +the error occurs during the copy operation, the error response is embedded in the 200 OK +response. For example, in a cross-region copy, you may encounter throttling and receive a +200 OK response. For more information, see Resolve the Error 200 response when copying +objects to Amazon S3. The 200 OK status code means the copy was accepted, but it doesn't +mean the copy is complete. Another example is when you disconnect from Amazon S3 before the +copy is complete, Amazon S3 might cancel the copy and you may receive a 200 OK response. +You must stay connected to Amazon S3 until the entire response is successfully received and +processed. If you call this API operation directly, make sure to design your application to +parse the content of the response and handle it appropriately. If you use Amazon Web +Services SDKs, SDKs handle this condition. The SDKs detect the embedded error and apply +error handling per your configuration settings (including automatically retrying the +request as appropriate). If the condition persists, the SDKs throw an exception (or, for +the SDKs that don't use exceptions, they return an error). Charge The copy request +charge is based on the storage class and Region that you specify for the destination +object. The request can also result in a data retrieval charge for the source if the source +storage class bills for data retrieval. If the copy source is in a different region, the +data transfer is billed to the copy source account. For pricing information, see Amazon S3 +pricing. HTTP Host header syntax Directory buckets - The HTTP Host header syntax is Bucket_name.s3express-az_id.region.amazonaws.com. The following operations are related to CopyObject: PutObject GetObject @@ -506,48 +522,84 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of the object copy to expire. This functionality is not supported for directory buckets. - `"x-amz-request-payer"`: - `"x-amz-server-side-encryption"`: The server-side encryption algorithm used when storing - this object in Amazon S3 (for example, AES256, aws:kms, aws:kms:dsse). Unrecognized or - unsupported values won’t write a destination object and will receive a 400 Bad Request - response. Amazon S3 automatically encrypts all new objects that are copied to an S3 - bucket. When copying an object, if you don't specify encryption information in your copy - request, the encryption setting of the target object is set to the default encryption - configuration of the destination bucket. By default, all buckets have a base level of - encryption configuration that uses server-side encryption with Amazon S3 managed keys - (SSE-S3). If the destination bucket has a default encryption configuration that uses - server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer - server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side - encryption with customer-provided encryption keys (SSE-C), Amazon S3 uses the corresponding - KMS key, or a customer-provided key to encrypt the target object copy. When you perform a - CopyObject operation, if you want to use a different type of encryption setting for the - target object, you can specify appropriate encryption-related headers to encrypt the target - object with an Amazon S3 managed key, a KMS key, or a customer-provided key. If the - encryption setting in your request is different from the default encryption configuration - of the destination bucket, the encryption setting in your request takes precedence. With - server-side encryption, Amazon S3 encrypts your data as it writes your data to disks in its - data centers and decrypts the data when you access it. For more information about - server-side encryption, see Using Server-Side Encryption in the Amazon S3 User Guide. For - directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) - (AES256) is supported. -- `"x-amz-server-side-encryption-aws-kms-key-id"`: Specifies the KMS ID (Key ID, Key ARN, - or Key Alias) to use for object encryption. All GET and PUT requests for an object + this object in Amazon S3. Unrecognized or unsupported values won’t write a destination + object and will receive a 400 Bad Request response. Amazon S3 automatically encrypts all + new objects that are copied to an S3 bucket. When copying an object, if you don't specify + encryption information in your copy request, the encryption setting of the target object is + set to the default encryption configuration of the destination bucket. By default, all + buckets have a base level of encryption configuration that uses server-side encryption with + Amazon S3 managed keys (SSE-S3). If the destination bucket has a different default + encryption configuration, Amazon S3 uses the corresponding encryption key to encrypt the + target object copy. With server-side encryption, Amazon S3 encrypts your data as it writes + your data to disks in its data centers and decrypts the data when you access it. For more + information about server-side encryption, see Using Server-Side Encryption in the Amazon S3 + User Guide. General purpose buckets For general purpose buckets, there are the + following supported options for server-side encryption: server-side encryption with Key + Management Service (KMS) keys (SSE-KMS), dual-layer server-side encryption with Amazon Web + Services KMS keys (DSSE-KMS), and server-side encryption with customer-provided encryption + keys (SSE-C). Amazon S3 uses the corresponding KMS key, or a customer-provided key to + encrypt the target object copy. When you perform a CopyObject operation, if you want to + use a different type of encryption setting for the target object, you can specify + appropriate encryption-related headers to encrypt the target object with an Amazon S3 + managed key, a KMS key, or a customer-provided key. If the encryption setting in your + request is different from the default encryption configuration of the destination bucket, + the encryption setting in your request takes precedence. Directory buckets For + directory buckets, there are only two supported options for server-side encryption: + server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side + encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default + encryption uses the desired encryption configuration and you don't override the bucket + default encryption in your CreateSession requests or PUT object requests. Then, new objects + are automatically encrypted with the desired encryption settings. For more information, see + Protecting data with server-side encryption in the Amazon S3 User Guide. For more + information about the encryption overriding behaviors in directory buckets, see Specifying + server-side encryption with KMS for new object uploads. To encrypt new object copies to a + directory bucket with SSE-KMS, we recommend you specify SSE-KMS as the directory bucket's + default encryption configuration with a KMS key (specifically, a customer managed key). The + Amazon Web Services managed key (aws/s3) isn't supported. Your SSE-KMS configuration can + only support 1 customer managed key per directory bucket for the lifetime of the bucket. + After you specify a customer managed key for SSE-KMS, you can't override the customer + managed key for the bucket's SSE-KMS configuration. Then, when you perform a CopyObject + operation and want to specify server-side encryption settings for new object copies with + SSE-KMS in the encryption-related request headers, you must ensure the encryption key is + the same customer managed key that you specified for the directory bucket's default + encryption configuration. +- `"x-amz-server-side-encryption-aws-kms-key-id"`: Specifies the KMS key ID (Key ID, Key + ARN, or Key Alias) to use for object encryption. All GET and PUT requests for an object protected by KMS will fail if they're not made via SSL or using SigV4. For information about configuring any of the officially supported Amazon Web Services SDKs and Amazon Web Services CLI, see Specifying the Signature Version in Request Authentication in the Amazon - S3 User Guide. This functionality is not supported when the destination bucket is a - directory bucket. + S3 User Guide. Directory buckets - If you specify x-amz-server-side-encryption with + aws:kms, the x-amz-server-side-encryption-aws-kms-key-id header is implicitly assigned the + ID of the KMS symmetric encryption customer managed key that's configured for your + directory bucket's default encryption setting. If you want to specify the + x-amz-server-side-encryption-aws-kms-key-id header explicitly, you can only specify it with + the ID (Key ID or Key ARN) of the KMS customer managed key that's configured for your + directory bucket's default encryption setting. Otherwise, you get an HTTP 400 Bad Request + error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. + Your SSE-KMS configuration can only support 1 customer managed key per directory bucket for + the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported. - `"x-amz-server-side-encryption-bucket-key-enabled"`: Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS). If a target object uses SSE-KMS, you can enable an S3 Bucket Key for the object. Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Specifying this header with a COPY action doesn’t affect bucket-level settings for S3 Bucket Key. For more information, see Amazon S3 Bucket - Keys in the Amazon S3 User Guide. This functionality is not supported when the destination - bucket is a directory bucket. + Keys in the Amazon S3 User Guide. Directory buckets - S3 Bucket Keys aren't supported, + when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, + from directory buckets to general purpose buckets, or between directory buckets, through + CopyObject. In this case, Amazon S3 makes a call to KMS every time a copy request is made + for a KMS-encrypted object. - `"x-amz-server-side-encryption-context"`: Specifies the Amazon Web Services KMS - Encryption Context to use for object encryption. The value of this header is a - base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs. This - value must be explicitly added to specify encryption context for CopyObject requests. This - functionality is not supported when the destination bucket is a directory bucket. + Encryption Context as an additional encryption context to use for the destination object + encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the + encryption context key-value pairs. General purpose buckets - This value must be + explicitly added to specify encryption context for CopyObject requests if you want an + additional encryption context for your destination object. The additional encryption + context of the source object won't be copied to the destination object. For more + information, see Encryption context in the Amazon S3 User Guide. Directory buckets - You + can optionally provide an explicit encryption context value. The value must match the + default encryption context - the bucket Amazon Resource Name (ARN). An additional + encryption context value is not supported. - `"x-amz-server-side-encryption-customer-algorithm"`: Specifies the algorithm to use when encrypting the object (for example, AES256). When you perform a CopyObject operation, if you want to use a different type of encryption setting for the target object, you can @@ -637,19 +689,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys x-amz-metadata-directive header. This functionality is not supported for directory buckets. """ -function copy_object( +copy_object( Bucket, Key, x_amz_copy_source; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)/$(Key)", + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-copy-source" => x_amz_copy_source) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)/$(Key)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-copy-source" => x_amz_copy_source) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_object( Bucket, Key, @@ -770,9 +820,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This functionality is not supported for directory buckets. - `"x-amz-object-ownership"`: """ -function create_bucket(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3("PUT", "/$(Bucket)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_bucket(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("PUT", "/$(Bucket)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_bucket( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -809,48 +858,48 @@ regular requests. You initiate a multipart upload, send one or more requests to parts, and then complete the multipart upload process. You sign each request individually. There is nothing special about signing multipart upload requests. For more information about signing, see Authenticating Requests (Amazon Web Services Signature Version 4) in the -Amazon S3 User Guide. Permissions General purpose bucket permissions - For information -about the permissions required to use the multipart upload API, see Multipart upload and -permissions in the Amazon S3 User Guide. To perform a multipart upload with encryption by -using an Amazon Web Services KMS key, the requester must have permission to the kms:Decrypt -and kms:GenerateDataKey* actions on the key. These permissions are required because Amazon -S3 must decrypt and read data from the encrypted file parts before it completes the -multipart upload. For more information, see Multipart upload API and permissions and -Protecting data using server-side encryption with Amazon Web Services KMS in the Amazon S3 -User Guide. Directory bucket permissions - To grant access to this API operation on a -directory bucket, we recommend that you use the CreateSession API operation for -session-based authorization. Specifically, you grant the s3express:CreateSession permission -to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make -the CreateSession API call on the bucket to obtain a session token. With the session token -in your request header, you can make API requests to this operation. After the session -token expires, you make another CreateSession API call to generate a new session token for -use. Amazon Web Services CLI or SDKs create session and refresh the session token -automatically to avoid service interruptions when a session expires. For more information -about authorization, see CreateSession . Encryption General purpose buckets - -Server-side encryption is for data encryption at rest. Amazon S3 encrypts your data as it -writes it to disks in its data centers and decrypts it when you access it. Amazon S3 -automatically encrypts all new objects that are uploaded to an S3 bucket. When doing a -multipart upload, if you don't specify encryption information in your request, the -encryption setting of the uploaded parts is set to the default encryption configuration of -the destination bucket. By default, all buckets have a base level of encryption -configuration that uses server-side encryption with Amazon S3 managed keys (SSE-S3). If the -destination bucket has a default encryption configuration that uses server-side encryption -with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided encryption key -(SSE-C), Amazon S3 uses the corresponding KMS key, or a customer-provided key to encrypt -the uploaded parts. When you perform a CreateMultipartUpload operation, if you want to use -a different type of encryption setting for the uploaded parts, you can request that Amazon -S3 encrypts the object with a different encryption key (such as an Amazon S3 managed key, a -KMS key, or a customer-provided key). When the encryption setting in your request is -different from the default encryption configuration of the destination bucket, the -encryption setting in your request takes precedence. If you choose to provide your own -encryption key, the request headers you provide in UploadPart and UploadPartCopy requests -must match the headers you used in the CreateMultipartUpload request. Use KMS keys -(SSE-KMS) that include the Amazon Web Services managed key (aws/s3) and KMS customer -managed keys stored in Key Management Service (KMS) – If you want Amazon Web Services to -manage the keys used to encrypt data, specify the following headers in the request. -x-amz-server-side-encryption x-amz-server-side-encryption-aws-kms-key-id -x-amz-server-side-encryption-context If you specify -x-amz-server-side-encryption:aws:kms, but don't provide +Amazon S3 User Guide. Permissions General purpose bucket permissions - To perform a +multipart upload with encryption using an Key Management Service (KMS) KMS key, the +requester must have permission to the kms:Decrypt and kms:GenerateDataKey actions on the +key. The requester must also have permissions for the kms:GenerateDataKey action for the +CreateMultipartUpload API. Then, the requester needs permissions for the kms:Decrypt action +on the UploadPart and UploadPartCopy APIs. These permissions are required because Amazon S3 +must decrypt and read data from the encrypted file parts before it completes the multipart +upload. For more information, see Multipart upload API and permissions and Protecting data +using server-side encryption with Amazon Web Services KMS in the Amazon S3 User Guide. +Directory bucket permissions - To grant access to this API operation on a directory bucket, +we recommend that you use the CreateSession API operation for session-based +authorization. Specifically, you grant the s3express:CreateSession permission to the +directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the +CreateSession API call on the bucket to obtain a session token. With the session token in +your request header, you can make API requests to this operation. After the session token +expires, you make another CreateSession API call to generate a new session token for use. +Amazon Web Services CLI or SDKs create session and refresh the session token automatically +to avoid service interruptions when a session expires. For more information about +authorization, see CreateSession . Encryption General purpose buckets - Server-side +encryption is for data encryption at rest. Amazon S3 encrypts your data as it writes it to +disks in its data centers and decrypts it when you access it. Amazon S3 automatically +encrypts all new objects that are uploaded to an S3 bucket. When doing a multipart upload, +if you don't specify encryption information in your request, the encryption setting of the +uploaded parts is set to the default encryption configuration of the destination bucket. By +default, all buckets have a base level of encryption configuration that uses server-side +encryption with Amazon S3 managed keys (SSE-S3). If the destination bucket has a default +encryption configuration that uses server-side encryption with an Key Management Service +(KMS) key (SSE-KMS), or a customer-provided encryption key (SSE-C), Amazon S3 uses the +corresponding KMS key, or a customer-provided key to encrypt the uploaded parts. When you +perform a CreateMultipartUpload operation, if you want to use a different type of +encryption setting for the uploaded parts, you can request that Amazon S3 encrypts the +object with a different encryption key (such as an Amazon S3 managed key, a KMS key, or a +customer-provided key). When the encryption setting in your request is different from the +default encryption configuration of the destination bucket, the encryption setting in your +request takes precedence. If you choose to provide your own encryption key, the request +headers you provide in UploadPart and UploadPartCopy requests must match the headers you +used in the CreateMultipartUpload request. Use KMS keys (SSE-KMS) that include the Amazon +Web Services managed key (aws/s3) and KMS customer managed keys stored in Key Management +Service (KMS) – If you want Amazon Web Services to manage the keys used to encrypt data, +specify the following headers in the request. x-amz-server-side-encryption +x-amz-server-side-encryption-aws-kms-key-id x-amz-server-side-encryption-context +If you specify x-amz-server-side-encryption:aws:kms, but don't provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon Web Services managed key (aws/s3 key) in KMS to protect the data. To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the requester must have permission to @@ -874,12 +923,37 @@ x-amz-server-side-encryption-customer-algorithm x-amz-server-side-encryption-customer-key x-amz-server-side-encryption-customer-key-MD5 For more information about server-side encryption with customer-provided encryption keys (SSE-C), see Protecting data using server-side encryption with customer-provided -encryption keys (SSE-C) in the Amazon S3 User Guide. Directory buckets -For directory -buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) is -supported. HTTP Host header syntax Directory buckets - The HTTP Host header syntax is - Bucket_name.s3express-az_id.region.amazonaws.com. The following operations are related -to CreateMultipartUpload: UploadPart CompleteMultipartUpload -AbortMultipartUpload ListParts ListMultipartUploads +encryption keys (SSE-C) in the Amazon S3 User Guide. Directory buckets - For directory +buckets, there are only two supported options for server-side encryption: server-side +encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with +KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default encryption uses the +desired encryption configuration and you don't override the bucket default encryption in +your CreateSession requests or PUT object requests. Then, new objects are automatically +encrypted with the desired encryption settings. For more information, see Protecting data +with server-side encryption in the Amazon S3 User Guide. For more information about the +encryption overriding behaviors in directory buckets, see Specifying server-side encryption +with KMS for new object uploads. In the Zonal endpoint API calls (except CopyObject and +UploadPartCopy) using the REST API, the encryption request headers must match the +encryption settings that are specified in the CreateSession request. You can't override the +values of the encryption settings (x-amz-server-side-encryption, +x-amz-server-side-encryption-aws-kms-key-id, x-amz-server-side-encryption-context, and +x-amz-server-side-encryption-bucket-key-enabled) that are specified in the CreateSession +request. You don't need to explicitly specify these encryption settings values in Zonal +endpoint API calls, and Amazon S3 will use the encryption settings values from the +CreateSession request to protect new objects in the directory bucket. When you use the +CLI or the Amazon Web Services SDKs, for CreateSession, the session token refreshes +automatically to avoid service interruptions when a session expires. The CLI or the Amazon +Web Services SDKs use the bucket's default encryption configuration for the CreateSession +request. It's not supported to override the encryption settings values in the CreateSession +request. So in the Zonal endpoint API calls (except CopyObject and UploadPartCopy), the +encryption request headers must match the default encryption configuration of the directory +bucket. For directory buckets, when you perform a CreateMultipartUpload operation and an +UploadPartCopy operation, the request headers you provide in the CreateMultipartUpload +request must match the default encryption configuration of the destination bucket. +HTTP Host header syntax Directory buckets - The HTTP Host header syntax is +Bucket_name.s3express-az_id.region.amazonaws.com. The following operations are related to +CreateMultipartUpload: UploadPart CompleteMultipartUpload AbortMultipartUpload + ListParts ListMultipartUploads # Arguments - `bucket`: The name of the bucket where the multipart upload is initiated and where the @@ -1020,21 +1094,66 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Object Lock to expire. This functionality is not supported for directory buckets. - `"x-amz-request-payer"`: - `"x-amz-server-side-encryption"`: The server-side encryption algorithm used when you - store this object in Amazon S3 (for example, AES256, aws:kms). For directory buckets, only - server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) is supported. -- `"x-amz-server-side-encryption-aws-kms-key-id"`: Specifies the ID (Key ID, Key ARN, or - Key Alias) of the symmetric encryption customer managed key to use for object encryption. - This functionality is not supported for directory buckets. + store this object in Amazon S3 (for example, AES256, aws:kms). Directory buckets - For + directory buckets, there are only two supported options for server-side encryption: + server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side + encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default + encryption uses the desired encryption configuration and you don't override the bucket + default encryption in your CreateSession requests or PUT object requests. Then, new objects + are automatically encrypted with the desired encryption settings. For more information, see + Protecting data with server-side encryption in the Amazon S3 User Guide. For more + information about the encryption overriding behaviors in directory buckets, see Specifying + server-side encryption with KMS for new object uploads. In the Zonal endpoint API calls + (except CopyObject and UploadPartCopy) using the REST API, the encryption request headers + must match the encryption settings that are specified in the CreateSession request. You + can't override the values of the encryption settings (x-amz-server-side-encryption, + x-amz-server-side-encryption-aws-kms-key-id, x-amz-server-side-encryption-context, and + x-amz-server-side-encryption-bucket-key-enabled) that are specified in the CreateSession + request. You don't need to explicitly specify these encryption settings values in Zonal + endpoint API calls, and Amazon S3 will use the encryption settings values from the + CreateSession request to protect new objects in the directory bucket. When you use the + CLI or the Amazon Web Services SDKs, for CreateSession, the session token refreshes + automatically to avoid service interruptions when a session expires. The CLI or the Amazon + Web Services SDKs use the bucket's default encryption configuration for the CreateSession + request. It's not supported to override the encryption settings values in the CreateSession + request. So in the Zonal endpoint API calls (except CopyObject and UploadPartCopy), the + encryption request headers must match the default encryption configuration of the directory + bucket. +- `"x-amz-server-side-encryption-aws-kms-key-id"`: Specifies the KMS key ID (Key ID, Key + ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same + account that's issuing the command, you must use the full Key ARN not the Key ID. General + purpose buckets - If you specify x-amz-server-side-encryption with aws:kms or aws:kms:dsse, + this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you + specify x-amz-server-side-encryption:aws:kms or x-amz-server-side-encryption:aws:kms:dsse, + but do not provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon + Web Services managed key (aws/s3) to protect the data. Directory buckets - If you specify + x-amz-server-side-encryption with aws:kms, the x-amz-server-side-encryption-aws-kms-key-id + header is implicitly assigned the ID of the KMS symmetric encryption customer managed key + that's configured for your directory bucket's default encryption setting. If you want to + specify the x-amz-server-side-encryption-aws-kms-key-id header explicitly, you can only + specify it with the ID (Key ID or Key ARN) of the KMS customer managed key that's + configured for your directory bucket's default encryption setting. Otherwise, you get an + HTTP 400 Bad Request error. Only use the key ID or key ARN. The key alias format of the KMS + key isn't supported. Your SSE-KMS configuration can only support 1 customer managed key per + directory bucket for the lifetime of the bucket. The Amazon Web Services managed key + (aws/s3) isn't supported. - `"x-amz-server-side-encryption-bucket-key-enabled"`: Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management - Service (KMS) keys (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 - Bucket Key for object encryption with SSE-KMS. Specifying this header with an object action - doesn’t affect bucket-level settings for S3 Bucket Key. This functionality is not - supported for directory buckets. + Service (KMS) keys (SSE-KMS). General purpose buckets - Setting this header to true causes + Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Also, specifying this + header with a PUT action doesn't affect bucket-level settings for S3 Bucket Key. Directory + buckets - S3 Bucket Keys are always enabled for GET and PUT operations in a directory + bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS + encrypted objects from general purpose buckets to directory buckets, from directory buckets + to general purpose buckets, or between directory buckets, through CopyObject, + UploadPartCopy, the Copy operation in Batch Operations, or the import jobs. In this case, + Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object. - `"x-amz-server-side-encryption-context"`: Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a - base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs. This - functionality is not supported for directory buckets. + Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as + key-value pairs. Directory buckets - You can optionally provide an explicit encryption + context value. The value must match the default encryption context - the bucket Amazon + Resource Name (ARN). An additional encryption context value is not supported. - `"x-amz-server-side-encryption-customer-algorithm"`: Specifies the algorithm to use when encrypting the object (for example, AES256). This functionality is not supported for directory buckets. @@ -1061,16 +1180,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys S3 stores the value of this header in the object metadata. This functionality is not supported for directory buckets. """ -function create_multipart_upload( - Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3( +create_multipart_upload(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = + s3( "POST", "/$(Bucket)/$(Key)?uploads"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_multipart_upload( Bucket, Key, @@ -1091,50 +1207,84 @@ end create_session(bucket, params::Dict{String,<:Any}) Creates a session that establishes temporary security credentials to support fast -authentication and authorization for the Zonal endpoint APIs on directory buckets. For more -information about Zonal endpoint APIs that include the Availability Zone in the request -endpoint, see S3 Express One Zone APIs in the Amazon S3 User Guide. To make Zonal endpoint -API requests on a directory bucket, use the CreateSession API operation. Specifically, you -grant s3express:CreateSession permission to a bucket in a bucket policy or an IAM -identity-based policy. Then, you use IAM credentials to make the CreateSession API request -on the bucket, which returns temporary security credentials that include the access key ID, -secret access key, session token, and expiration. These credentials have associated -permissions to access the Zonal endpoint APIs. After the session is created, you don’t -need to use other policies to grant permissions to each Zonal endpoint API individually. -Instead, in your Zonal endpoint API requests, you sign your requests by applying the -temporary security credentials of the session to the request headers and following the -SigV4 protocol for authentication. You also apply the session token to the -x-amz-s3session-token request header for authorization. Temporary security credentials are -scoped to the bucket and expire after 5 minutes. After the expiration time, any calls that -you make with those credentials will fail. You must use IAM credentials again to make a -CreateSession API request that generates a new set of temporary credentials for use. -Temporary credentials cannot be extended or refreshed beyond the original specified -interval. If you use Amazon Web Services SDKs, SDKs handle the session token refreshes -automatically to avoid service interruptions when a session expires. We recommend that you -use the Amazon Web Services SDKs to initiate and manage requests to the CreateSession API. -For more information, see Performance guidelines and design patterns in the Amazon S3 User -Guide. You must make requests for this API operation to the Zonal endpoint. These -endpoints support virtual-hosted-style requests in the format -https://bucket_name.s3express-az_id.region.amazonaws.com. Path-style requests are not -supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User -Guide. CopyObject API operation - Unlike other Zonal endpoint APIs, the CopyObject API -operation doesn't use the temporary security credentials returned from the CreateSession -API operation for authentication and authorization. For information about authentication -and authorization of the CopyObject API operation on directory buckets, see CopyObject. -HeadBucket API operation - Unlike other Zonal endpoint APIs, the HeadBucket API operation -doesn't use the temporary security credentials returned from the CreateSession API -operation for authentication and authorization. For information about authentication and -authorization of the HeadBucket API operation on directory buckets, see HeadBucket. -Permissions To obtain temporary security credentials, you must create a bucket policy or -an IAM identity-based policy that grants s3express:CreateSession permission to the bucket. -In a policy, you can have the s3express:SessionMode condition key to control who can create -a ReadWrite or ReadOnly session. For more information about ReadWrite or ReadOnly sessions, -see x-amz-create-session-mode . For example policies, see Example bucket policies for S3 -Express One Zone and Amazon Web Services Identity and Access Management (IAM) -identity-based policies for S3 Express One Zone in the Amazon S3 User Guide. To grant -cross-account access to Zonal endpoint APIs, the bucket policy should also grant both -accounts the s3express:CreateSession permission. HTTP Host header syntax Directory -buckets - The HTTP Host header syntax is +authentication and authorization for the Zonal endpoint API operations on directory +buckets. For more information about Zonal endpoint API operations that include the +Availability Zone in the request endpoint, see S3 Express One Zone APIs in the Amazon S3 +User Guide. To make Zonal endpoint API requests on a directory bucket, use the +CreateSession API operation. Specifically, you grant s3express:CreateSession permission to +a bucket in a bucket policy or an IAM identity-based policy. Then, you use IAM credentials +to make the CreateSession API request on the bucket, which returns temporary security +credentials that include the access key ID, secret access key, session token, and +expiration. These credentials have associated permissions to access the Zonal endpoint API +operations. After the session is created, you don’t need to use other policies to grant +permissions to each Zonal endpoint API individually. Instead, in your Zonal endpoint API +requests, you sign your requests by applying the temporary security credentials of the +session to the request headers and following the SigV4 protocol for authentication. You +also apply the session token to the x-amz-s3session-token request header for authorization. +Temporary security credentials are scoped to the bucket and expire after 5 minutes. After +the expiration time, any calls that you make with those credentials will fail. You must use +IAM credentials again to make a CreateSession API request that generates a new set of +temporary credentials for use. Temporary credentials cannot be extended or refreshed beyond +the original specified interval. If you use Amazon Web Services SDKs, SDKs handle the +session token refreshes automatically to avoid service interruptions when a session +expires. We recommend that you use the Amazon Web Services SDKs to initiate and manage +requests to the CreateSession API. For more information, see Performance guidelines and +design patterns in the Amazon S3 User Guide. You must make requests for this API +operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in +the format https://bucket_name.s3express-az_id.region.amazonaws.com. Path-style requests +are not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 +User Guide. CopyObject API operation - Unlike other Zonal endpoint API operations, the +CopyObject API operation doesn't use the temporary security credentials returned from the +CreateSession API operation for authentication and authorization. For information about +authentication and authorization of the CopyObject API operation on directory buckets, see +CopyObject. HeadBucket API operation - Unlike other Zonal endpoint API operations, the +HeadBucket API operation doesn't use the temporary security credentials returned from the +CreateSession API operation for authentication and authorization. For information about +authentication and authorization of the HeadBucket API operation on directory buckets, see +HeadBucket. Permissions To obtain temporary security credentials, you must create a +bucket policy or an IAM identity-based policy that grants s3express:CreateSession +permission to the bucket. In a policy, you can have the s3express:SessionMode condition key +to control who can create a ReadWrite or ReadOnly session. For more information about +ReadWrite or ReadOnly sessions, see x-amz-create-session-mode . For example policies, see +Example bucket policies for S3 Express One Zone and Amazon Web Services Identity and Access +Management (IAM) identity-based policies for S3 Express One Zone in the Amazon S3 User +Guide. To grant cross-account access to Zonal endpoint API operations, the bucket policy +should also grant both accounts the s3express:CreateSession permission. If you want to +encrypt objects with SSE-KMS, you must also have the kms:GenerateDataKey and the +kms:Decrypt permissions in IAM identity-based policies and KMS key policies for the target +KMS key. Encryption For directory buckets, there are only two supported options for +server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) +(AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that +the bucket's default encryption uses the desired encryption configuration and you don't +override the bucket default encryption in your CreateSession requests or PUT object +requests. Then, new objects are automatically encrypted with the desired encryption +settings. For more information, see Protecting data with server-side encryption in the +Amazon S3 User Guide. For more information about the encryption overriding behaviors in +directory buckets, see Specifying server-side encryption with KMS for new object uploads. +For Zonal endpoint (object-level) API operations except CopyObject and UploadPartCopy, you +authenticate and authorize requests through CreateSession for low latency. To encrypt new +objects in a directory bucket with SSE-KMS, you must specify SSE-KMS as the directory +bucket's default encryption configuration with a KMS key (specifically, a customer managed +key). Then, when a session is created for Zonal endpoint API operations, new objects are +automatically encrypted and decrypted with SSE-KMS and S3 Bucket Keys during the session. +Only 1 customer managed key is supported per directory bucket for the lifetime of the +bucket. The Amazon Web Services managed key (aws/s3) isn't supported. After you specify +SSE-KMS as your bucket's default encryption configuration with a customer managed key, you +can't change the customer managed key for the bucket's SSE-KMS configuration. In the +Zonal endpoint API calls (except CopyObject and UploadPartCopy) using the REST API, you +can't override the values of the encryption settings (x-amz-server-side-encryption, +x-amz-server-side-encryption-aws-kms-key-id, x-amz-server-side-encryption-context, and +x-amz-server-side-encryption-bucket-key-enabled) from the CreateSession request. You don't +need to explicitly specify these encryption settings values in Zonal endpoint API calls, +and Amazon S3 will use the encryption settings values from the CreateSession request to +protect new objects in the directory bucket. When you use the CLI or the Amazon Web +Services SDKs, for CreateSession, the session token refreshes automatically to avoid +service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use +the bucket's default encryption configuration for the CreateSession request. It's not +supported to override the encryption settings values in the CreateSession request. Also, in +the Zonal endpoint API calls (except CopyObject and UploadPartCopy), it's not supported to +override the values of the encryption settings from the CreateSession request. HTTP Host +header syntax Directory buckets - The HTTP Host header syntax is Bucket_name.s3express-az_id.region.amazonaws.com. # Arguments @@ -1144,15 +1294,47 @@ Bucket_name.s3express-az_id.region.amazonaws.com. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-create-session-mode"`: Specifies the mode of the session that will be created, either ReadWrite or ReadOnly. By default, a ReadWrite session is created. A ReadWrite - session is capable of executing all the Zonal endpoint APIs on a directory bucket. A - ReadOnly session is constrained to execute the following Zonal endpoint APIs: GetObject, - HeadObject, ListObjectsV2, GetObjectAttributes, ListParts, and ListMultipartUploads. -""" -function create_session(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end + session is capable of executing all the Zonal endpoint API operations on a directory + bucket. A ReadOnly session is constrained to execute the following Zonal endpoint API + operations: GetObject, HeadObject, ListObjectsV2, GetObjectAttributes, ListParts, and + ListMultipartUploads. +- `"x-amz-server-side-encryption"`: The server-side encryption algorithm to use when you + store objects in the directory bucket. For directory buckets, there are only two supported + options for server-side encryption: server-side encryption with Amazon S3 managed keys + (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). By default, + Amazon S3 encrypts data with SSE-S3. For more information, see Protecting data with + server-side encryption in the Amazon S3 User Guide. +- `"x-amz-server-side-encryption-aws-kms-key-id"`: If you specify + x-amz-server-side-encryption with aws:kms, you must specify the + x-amz-server-side-encryption-aws-kms-key-id header with the ID (Key ID or Key ARN) of the + KMS symmetric encryption customer managed key to use. Otherwise, you get an HTTP 400 Bad + Request error. Only use the key ID or key ARN. The key alias format of the KMS key isn't + supported. Also, if the KMS key doesn't exist in the same account that't issuing the + command, you must use the full Key ARN not the Key ID. Your SSE-KMS configuration can only + support 1 customer managed key per directory bucket for the lifetime of the bucket. The + Amazon Web Services managed key (aws/s3) isn't supported. +- `"x-amz-server-side-encryption-bucket-key-enabled"`: Specifies whether Amazon S3 should + use an S3 Bucket Key for object encryption with server-side encryption using KMS keys + (SSE-KMS). S3 Bucket Keys are always enabled for GET and PUT operations in a directory + bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS + encrypted objects from general purpose buckets to directory buckets, from directory buckets + to general purpose buckets, or between directory buckets, through CopyObject, + UploadPartCopy, the Copy operation in Batch Operations, or the import jobs. In this case, + Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object. +- `"x-amz-server-side-encryption-context"`: Specifies the Amazon Web Services KMS + Encryption Context as an additional encryption context to use for object encryption. The + value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the + encryption context as key-value pairs. This value is stored as object metadata and + automatically gets passed on to Amazon Web Services KMS for future GetObject operations on + this object. General purpose buckets - This value must be explicitly added during + CopyObject operations if you want an additional encryption context for your object. For + more information, see Encryption context in the Amazon S3 User Guide. Directory buckets - + You can optionally provide an explicit encryption context value. The value must match the + default encryption context - the bucket Amazon Resource Name (ARN). An additional + encryption context value is not supported. +""" +create_session(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?session"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_session( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1205,11 +1387,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code 501 Not Implemented. """ -function delete_bucket(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "DELETE", "/$(Bucket)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_bucket(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("DELETE", "/$(Bucket)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_bucket( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1247,17 +1426,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_analytics_configuration( +delete_bucket_analytics_configuration( Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "DELETE", + "/$(Bucket)?analytics", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)?analytics", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_analytics_configuration( Bucket, id, @@ -1293,11 +1470,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_cors(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "DELETE", "/$(Bucket)?cors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_bucket_cors(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("DELETE", "/$(Bucket)?cors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_bucket_cors( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1314,37 +1488,51 @@ end delete_bucket_encryption(bucket) delete_bucket_encryption(bucket, params::Dict{String,<:Any}) - This operation is not supported by directory buckets. This implementation of the DELETE -action resets the default encryption for the bucket as server-side encryption with Amazon -S3 managed keys (SSE-S3). For information about the bucket default encryption feature, see -Amazon S3 Bucket Default Encryption in the Amazon S3 User Guide. To use this operation, you -must have permissions to perform the s3:PutEncryptionConfiguration action. The bucket owner -has this permission by default. The bucket owner can grant this permission to others. For -more information about permissions, see Permissions Related to Bucket Subresource -Operations and Managing Access Permissions to your Amazon S3 Resources in the Amazon S3 -User Guide. The following operations are related to DeleteBucketEncryption: -PutBucketEncryption GetBucketEncryption +This implementation of the DELETE action resets the default encryption for the bucket as +server-side encryption with Amazon S3 managed keys (SSE-S3). General purpose buckets - +For information about the bucket default encryption feature, see Amazon S3 Bucket Default +Encryption in the Amazon S3 User Guide. Directory buckets - For directory buckets, there +are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. For +information about the default encryption configuration in directory buckets, see Setting +default server-side encryption behavior for directory buckets. Permissions General +purpose bucket permissions - The s3:PutEncryptionConfiguration permission is required in a +policy. The bucket owner has this permission by default. The bucket owner can grant this +permission to others. For more information about permissions, see Permissions Related to +Bucket Operations and Managing Access Permissions to Your Amazon S3 Resources. Directory +bucket permissions - To grant access to this API operation, you must have the +s3express:PutEncryptionConfiguration permission in an IAM identity-based policy instead of +a bucket policy. Cross-account access to this API operation isn't supported. This operation +can only be performed by the Amazon Web Services account that owns the resource. For more +information about directory bucket policies and permissions, see Amazon Web Services +Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide. + HTTP Host header syntax Directory buckets - The HTTP Host header syntax is +s3express-control.region.amazonaws.com. The following operations are related to +DeleteBucketEncryption: PutBucketEncryption GetBucketEncryption # Arguments - `bucket`: The name of the bucket containing the server-side encryption configuration to - delete. + delete. Directory buckets - When you use this operation with a directory bucket, you must + use path-style requests in the format + https://s3express-control.region_code.amazonaws.com/bucket-name . Virtual-hosted-style + requests aren't supported. Directory bucket names must be unique in the chosen Availability + Zone. Bucket names must also follow the format bucket_base_name--az_id--x-s3 (for example, + DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see + Directory bucket naming rules in the Amazon S3 User Guide # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-expected-bucket-owner"`: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request - fails with the HTTP status code 403 Forbidden (access denied). + fails with the HTTP status code 403 Forbidden (access denied). For directory buckets, this + header is not supported in this API operation. If you specify this header, the request + fails with the HTTP status code 501 Not Implemented. """ -function delete_bucket_encryption( - Bucket; aws_config::AbstractAWSConfig=current_aws_config() +delete_bucket_encryption(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)?encryption"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)?encryption"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_encryption( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1384,17 +1572,15 @@ ListBucketIntelligentTieringConfigurations - `id`: The ID used to identify the S3 Intelligent-Tiering configuration. """ -function delete_bucket_intelligent_tiering_configuration( +delete_bucket_intelligent_tiering_configuration( Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "DELETE", + "/$(Bucket)?intelligent-tiering", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)?intelligent-tiering", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_intelligent_tiering_configuration( Bucket, id, @@ -1434,17 +1620,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_inventory_configuration( +delete_bucket_inventory_configuration( Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "DELETE", + "/$(Bucket)?inventory", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)?inventory", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_inventory_configuration( Bucket, id, @@ -1485,14 +1669,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_lifecycle(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "DELETE", - "/$(Bucket)?lifecycle"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_bucket_lifecycle(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)?lifecycle"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_bucket_lifecycle( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1532,17 +1714,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_metrics_configuration( +delete_bucket_metrics_configuration( Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "DELETE", + "/$(Bucket)?metrics", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)?metrics", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_metrics_configuration( Bucket, id, @@ -1578,16 +1758,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_ownership_controls( +delete_bucket_ownership_controls( Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "DELETE", + "/$(Bucket)?ownershipControls"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)?ownershipControls"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_ownership_controls( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1651,14 +1829,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code 501 Not Implemented. """ -function delete_bucket_policy(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "DELETE", - "/$(Bucket)?policy"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_bucket_policy(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)?policy"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_bucket_policy( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1694,16 +1870,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_replication( - Bucket; aws_config::AbstractAWSConfig=current_aws_config() +delete_bucket_replication(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)?replication"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)?replication"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_replication( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1735,14 +1907,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_tagging(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "DELETE", - "/$(Bucket)?tagging"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_bucket_tagging(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)?tagging"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_bucket_tagging( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1780,14 +1950,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_bucket_website(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "DELETE", - "/$(Bucket)?website"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_bucket_website(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)?website"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_bucket_website( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1804,56 +1972,36 @@ end delete_object(bucket, key) delete_object(bucket, key, params::Dict{String,<:Any}) -Removes an object from a bucket. The behavior depends on the bucket's versioning state: -If bucket versioning is not enabled, the operation permanently deletes the object. If -bucket versioning is enabled, the operation inserts a delete marker, which becomes the -current version of the object. To permanently delete an object in a versioned bucket, you -must include the object’s versionId in the request. For more information about -versioning-enabled buckets, see Deleting object versions from a versioning-enabled bucket. - If bucket versioning is suspended, the operation removes the object that has a null -versionId, if there is one, and inserts a delete marker that becomes the current version of -the object. If there isn't an object with a null versionId, and all versions of the object -have a versionId, Amazon S3 does not remove the object and only inserts a delete marker. To -permanently delete an object that has a versionId, you must include the object’s -versionId in the request. For more information about versioning-suspended buckets, see -Deleting objects from versioning-suspended buckets. Directory buckets - S3 Versioning -isn't enabled and supported for directory buckets. For this API operation, only the null -value of the version ID is supported by directory buckets. You can only specify null to the -versionId query parameter in the request. Directory buckets - For directory buckets, you -must make requests for this API operation to the Zonal endpoint. These endpoints support +Removes an object from a bucket. The behavior depends on the bucket's versioning state. For +more information, see Best practices to consider before deleting an object. To remove a +specific version, you must use the versionId query parameter. Using this query parameter +permanently deletes the version. If the object deleted is a delete marker, Amazon S3 sets +the response header x-amz-delete-marker to true. If the object you want to delete is in a +bucket where the bucket versioning configuration is MFA delete enabled, you must include +the x-amz-mfa request header in the DELETE versionId request. Requests that include +x-amz-mfa must use HTTPS. For more information about MFA delete and to see example +requests, see Using MFA delete and Sample request in the Amazon S3 User Guide. S3 +Versioning isn't enabled and supported for directory buckets. For this API operation, only +the null value of the version ID is supported by directory buckets. You can only specify +null to the versionId query parameter in the request. For directory buckets, you must +make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style requests are not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User -Guide. To remove a specific version, you must use the versionId query parameter. Using -this query parameter permanently deletes the version. If the object deleted is a delete -marker, Amazon S3 sets the response header x-amz-delete-marker to true. If the object you -want to delete is in a bucket where the bucket versioning configuration is MFA Delete -enabled, you must include the x-amz-mfa request header in the DELETE versionId request. -Requests that include x-amz-mfa must use HTTPS. For more information about MFA Delete, see -Using MFA Delete in the Amazon S3 User Guide. To see sample requests that use versioning, -see Sample Request. Directory buckets - MFA delete is not supported by directory -buckets. You can delete objects by explicitly calling DELETE Object or calling -(PutBucketLifecycle) to enable Amazon S3 to remove them for you. If you want to block users -or accounts from removing or deleting objects from your bucket, you must deny them the -s3:DeleteObject, s3:DeleteObjectVersion, and s3:PutLifeCycleConfiguration actions. -Directory buckets - S3 Lifecycle is not supported by directory buckets. Permissions -General purpose bucket permissions - The following permissions are required in your -policies when your DeleteObjects request includes specific headers. s3:DeleteObject - -To delete an object from a bucket, you must always have the s3:DeleteObject permission. -s3:DeleteObjectVersion - To delete a specific version of an object from a -versioning-enabled bucket, you must have the s3:DeleteObjectVersion permission. -Directory bucket permissions - To grant access to this API operation on a directory bucket, -we recommend that you use the CreateSession API operation for session-based -authorization. Specifically, you grant the s3express:CreateSession permission to the -directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the -CreateSession API call on the bucket to obtain a session token. With the session token in -your request header, you can make API requests to this operation. After the session token -expires, you make another CreateSession API call to generate a new session token for use. -Amazon Web Services CLI or SDKs create session and refresh the session token automatically -to avoid service interruptions when a session expires. For more information about -authorization, see CreateSession . HTTP Host header syntax Directory buckets - The -HTTP Host header syntax is Bucket_name.s3express-az_id.region.amazonaws.com. The -following action is related to DeleteObject: PutObject +Guide. MFA delete is not supported by directory buckets. Permissions General +purpose bucket permissions - The following permissions are required in your policies when +your DeleteObjects request includes specific headers. s3:DeleteObject - To delete an +object from a bucket, you must always have the s3:DeleteObject permission. You can also +use PutBucketLifecycle to delete objects in Amazon S3. s3:DeleteObjectVersion - To +delete a specific version of an object from a versioning-enabled bucket, you must have the +s3:DeleteObjectVersion permission. If you want to block users or accounts from removing +or deleting objects from your bucket, you must deny them the s3:DeleteObject, +s3:DeleteObjectVersion, and s3:PutLifeCycleConfiguration permissions. Directory +buckets permissions - To grant access to this API operation on a directory bucket, we +recommend that you use the CreateSession API operation for session-based authorization. +HTTP Host header syntax Directory buckets - The HTTP Host header syntax is +Bucket_name.s3express-az_id.region.amazonaws.com. The following action is related to +DeleteObject: PutObject # Arguments - `bucket`: The bucket name of the bucket containing the object. Directory buckets - When @@ -1897,14 +2045,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys functionality is not supported for directory buckets. - `"x-amz-request-payer"`: """ -function delete_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "DELETE", - "/$(Bucket)/$(Key)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)/$(Key)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_object( Bucket, Key, @@ -1956,16 +2102,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_object_tagging( - Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config() +delete_object_tagging(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)/$(Key)?tagging"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)/$(Key)?tagging"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_object_tagging( Bucket, Key, @@ -2014,7 +2156,7 @@ Permissions General purpose bucket permissions - The following permissions a in your policies when your DeleteObjects request includes specific headers. s3:DeleteObject - To delete an object from a bucket, you must always specify the s3:DeleteObject permission. s3:DeleteObjectVersion - To delete a specific version of -an object from a versiong-enabled bucket, you must specify the s3:DeleteObjectVersion +an object from a versioning-enabled bucket, you must specify the s3:DeleteObjectVersion permission. Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the CreateSession API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission @@ -2084,24 +2226,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For the x-amz-checksum-algorithm - header, replace algorithm with the supported algorithm from the following list: CRC32 - CRC32C SHA1 SHA256 For more information, see Checking object integrity in the Amazon - S3 User Guide. If the individual checksum value you provide through + header, replace algorithm with the supported algorithm from the following list: CRC32 + CRC32C SHA1 SHA256 For more information, see Checking object integrity in + the Amazon S3 User Guide. If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm . If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function delete_objects(Bucket, Delete; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "POST", - "/$(Bucket)?delete", - Dict{String,Any}("Delete" => Delete); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_objects(Bucket, Delete; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "POST", + "/$(Bucket)?delete", + Dict{String,Any}("Delete" => Delete); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_objects( Bucket, Delete, @@ -2138,16 +2278,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function delete_public_access_block( - Bucket; aws_config::AbstractAWSConfig=current_aws_config() +delete_public_access_block(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "DELETE", + "/$(Bucket)?publicAccessBlock"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "DELETE", - "/$(Bucket)?publicAccessBlock"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_public_access_block( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2191,16 +2327,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). - `"x-amz-request-payer"`: """ -function get_bucket_accelerate_configuration( +get_bucket_accelerate_configuration( Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?accelerate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?accelerate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_accelerate_configuration( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2248,11 +2382,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_acl(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?acl"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_bucket_acl(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?acl"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bucket_acl( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2291,17 +2422,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_analytics_configuration( +get_bucket_analytics_configuration( Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?analytics", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?analytics", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_analytics_configuration( Bucket, id, @@ -2348,11 +2477,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_cors(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?cors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_bucket_cors(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?cors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bucket_cors( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2369,35 +2495,52 @@ end get_bucket_encryption(bucket) get_bucket_encryption(bucket, params::Dict{String,<:Any}) - This operation is not supported by directory buckets. Returns the default encryption -configuration for an Amazon S3 bucket. By default, all buckets have a default encryption -configuration that uses server-side encryption with Amazon S3 managed keys (SSE-S3). For -information about the bucket default encryption feature, see Amazon S3 Bucket Default -Encryption in the Amazon S3 User Guide. To use this operation, you must have permission to -perform the s3:GetEncryptionConfiguration action. The bucket owner has this permission by -default. The bucket owner can grant this permission to others. For more information about -permissions, see Permissions Related to Bucket Subresource Operations and Managing Access -Permissions to Your Amazon S3 Resources. The following operations are related to -GetBucketEncryption: PutBucketEncryption DeleteBucketEncryption +Returns the default encryption configuration for an Amazon S3 bucket. By default, all +buckets have a default encryption configuration that uses server-side encryption with +Amazon S3 managed keys (SSE-S3). General purpose buckets - For information about the +bucket default encryption feature, see Amazon S3 Bucket Default Encryption in the Amazon S3 +User Guide. Directory buckets - For directory buckets, there are only two supported +options for server-side encryption: SSE-S3 and SSE-KMS. For information about the default +encryption configuration in directory buckets, see Setting default server-side encryption +behavior for directory buckets. Permissions General purpose bucket permissions - +The s3:GetEncryptionConfiguration permission is required in a policy. The bucket owner has +this permission by default. The bucket owner can grant this permission to others. For more +information about permissions, see Permissions Related to Bucket Operations and Managing +Access Permissions to Your Amazon S3 Resources. Directory bucket permissions - To grant +access to this API operation, you must have the s3express:GetEncryptionConfiguration +permission in an IAM identity-based policy instead of a bucket policy. Cross-account access +to this API operation isn't supported. This operation can only be performed by the Amazon +Web Services account that owns the resource. For more information about directory bucket +policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for +S3 Express One Zone in the Amazon S3 User Guide. HTTP Host header syntax Directory +buckets - The HTTP Host header syntax is s3express-control.region.amazonaws.com. The +following operations are related to GetBucketEncryption: PutBucketEncryption +DeleteBucketEncryption # Arguments - `bucket`: The name of the bucket from which the server-side encryption configuration is - retrieved. + retrieved. Directory buckets - When you use this operation with a directory bucket, you + must use path-style requests in the format + https://s3express-control.region_code.amazonaws.com/bucket-name . Virtual-hosted-style + requests aren't supported. Directory bucket names must be unique in the chosen Availability + Zone. Bucket names must also follow the format bucket_base_name--az_id--x-s3 (for example, + DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see + Directory bucket naming rules in the Amazon S3 User Guide # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"x-amz-expected-bucket-owner"`: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request - fails with the HTTP status code 403 Forbidden (access denied). + fails with the HTTP status code 403 Forbidden (access denied). For directory buckets, this + header is not supported in this API operation. If you specify this header, the request + fails with the HTTP status code 501 Not Implemented. """ -function get_bucket_encryption(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)?encryption"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_bucket_encryption(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?encryption"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_bucket_encryption( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2437,17 +2580,15 @@ DeleteBucketIntelligentTieringConfiguration PutBucketIntelligentTieringConfi - `id`: The ID used to identify the S3 Intelligent-Tiering configuration. """ -function get_bucket_intelligent_tiering_configuration( +get_bucket_intelligent_tiering_configuration( Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?intelligent-tiering", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?intelligent-tiering", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_intelligent_tiering_configuration( Bucket, id, @@ -2487,17 +2628,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_inventory_configuration( +get_bucket_inventory_configuration( Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?inventory", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?inventory", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_inventory_configuration( Bucket, id, @@ -2541,14 +2680,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_lifecycle(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)?lifecycle"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_bucket_lifecycle(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?lifecycle"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_bucket_lifecycle( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2595,16 +2732,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_lifecycle_configuration( +get_bucket_lifecycle_configuration( Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?lifecycle"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?lifecycle"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_lifecycle_configuration( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2649,11 +2784,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_location(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?location"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_bucket_location(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?location"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bucket_location( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2683,11 +2815,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_logging(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?logging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_bucket_logging(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?logging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bucket_logging( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2727,17 +2856,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_metrics_configuration( +get_bucket_metrics_configuration( Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?metrics", + Dict{String,Any}("id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?metrics", - Dict{String,Any}("id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_metrics_configuration( Bucket, id, @@ -2775,14 +2902,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_notification(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)?notification"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_bucket_notification(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?notification"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_bucket_notification( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2829,16 +2954,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_notification_configuration( +get_bucket_notification_configuration( Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?notification"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?notification"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_notification_configuration( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2871,16 +2994,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_ownership_controls( - Bucket; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3( +get_bucket_ownership_controls(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3( "GET", "/$(Bucket)?ownershipControls"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_bucket_ownership_controls( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2953,12 +3073,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code 501 Not Implemented. -""" -function get_bucket_policy(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +""" +get_bucket_policy(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bucket_policy( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2992,16 +3109,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_policy_status( - Bucket; aws_config::AbstractAWSConfig=current_aws_config() +get_bucket_policy_status(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?policyStatus"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?policyStatus"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_policy_status( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3039,14 +3152,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_replication(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)?replication"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_bucket_replication(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?replication"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_bucket_replication( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3077,16 +3188,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_request_payment( - Bucket; aws_config::AbstractAWSConfig=current_aws_config() +get_bucket_request_payment(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?requestPayment"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?requestPayment"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_request_payment( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3120,11 +3227,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_tagging(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?tagging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_bucket_tagging(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?tagging"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bucket_tagging( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3157,14 +3261,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_versioning(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)?versioning"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_bucket_versioning(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?versioning"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_bucket_versioning( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3199,11 +3301,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_bucket_website(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?website"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_bucket_website(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?website"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_bucket_website( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3258,7 +3357,9 @@ your request header, you can make API requests to this operation. After the sess expires, you make another CreateSession API call to generate a new session token for use. Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about -authorization, see CreateSession . Storage classes If the object you are retrieving is +authorization, see CreateSession . If the object is encrypted using SSE-KMS, you must also +have the kms:GenerateDataKey and kms:Decrypt permissions in IAM identity-based policies and +KMS key policies for the KMS key. Storage classes If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class, the S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must @@ -3273,17 +3374,20 @@ uses server-side encryption with Amazon S3 managed encryption keys (SSE-S3), ser encryption with Key Management Service (KMS) keys (SSE-KMS), or dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS). If you include the header in your GetObject requests for the object that uses these types of keys, you’ll get an HTTP 400 -Bad Request error. Overriding response header values through the request There are times -when you want to override certain response header values of a GetObject response. For -example, you might override the Content-Disposition response header value through your -GetObject request. You can override values for a set of response headers. These modified -response header values are included only in a successful response, that is, when the HTTP -status code 200 OK is returned. The headers you can override using the following query -parameters in the request are a subset of the headers that Amazon S3 accepts when you -create an object. The response headers that you can override for the GetObject response -are Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type, -and Expires. To override values for a set of response headers in the GetObject response, -you can use the following query parameters in the request. response-cache-control +Bad Request error. Directory buckets - For directory buckets, there are only two supported +options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more +information, see Protecting data with server-side encryption in the Amazon S3 User Guide. +Overriding response header values through the request There are times when you want to +override certain response header values of a GetObject response. For example, you might +override the Content-Disposition response header value through your GetObject request. You +can override values for a set of response headers. These modified response header values +are included only in a successful response, that is, when the HTTP status code 200 OK is +returned. The headers you can override using the following query parameters in the request +are a subset of the headers that Amazon S3 accepts when you create an object. The response +headers that you can override for the GetObject response are Cache-Control, +Content-Disposition, Content-Encoding, Content-Language, Content-Type, and Expires. To +override values for a set of response headers in the GetObject response, you can use the +following query parameters in the request. response-cache-control response-content-disposition response-content-encoding response-content-language response-content-type response-expires When you use these parameters, you must sign the request by using either an Authorization header or a presigned URL. These @@ -3367,7 +3471,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys directory buckets. For this API operation, only the null value of the version ID is supported by directory buckets. You can only specify null to the versionId query parameter in the request. For more information about versioning, see PutBucketVersioning. -- `"x-amz-checksum-mode"`: To retrieve the checksum, this mode must be enabled. +- `"x-amz-checksum-mode"`: To retrieve the checksum, this mode must be enabled. General + purpose buckets - In addition, if you enable checksum mode and the object is uploaded with + a checksum and encrypted with an Key Management Service (KMS) key, you must have permission + to use the kms:Decrypt action to retrieve the checksum. - `"x-amz-expected-bucket-owner"`: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). @@ -3404,11 +3511,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Encryption Keys) in the Amazon S3 User Guide. This functionality is not supported for directory buckets. """ -function get_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)/$(Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)/$(Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_object( Bucket, Key, @@ -3462,14 +3566,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). - `"x-amz-request-payer"`: """ -function get_object_acl(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)/$(Key)?acl"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_object_acl(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)/$(Key)?acl"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_object_acl( Bucket, Key, @@ -3499,29 +3601,31 @@ requests in the format https://bucket_name.s3express-az_id.region.amazonaws.com/ Path-style requests are not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User Guide. Permissions General purpose bucket permissions - To use GetObjectAttributes, you must have READ access to the object. The permissions that -you need to use this operation with depend on whether the bucket is versioned. If the -bucket is versioned, you need both the s3:GetObjectVersion and -s3:GetObjectVersionAttributes permissions for this operation. If the bucket is not -versioned, you need the s3:GetObject and s3:GetObjectAttributes permissions. For more -information, see Specifying Permissions in a Policy in the Amazon S3 User Guide. If the -object that you request does not exist, the error Amazon S3 returns depends on whether you -also have the s3:ListBucket permission. If you have the s3:ListBucket permission on the -bucket, Amazon S3 returns an HTTP status code 404 Not Found (\"no such key\") error. If -you don't have the s3:ListBucket permission, Amazon S3 returns an HTTP status code 403 -Forbidden (\"access denied\") error. Directory bucket permissions - To grant access to -this API operation on a directory bucket, we recommend that you use the CreateSession API -operation for session-based authorization. Specifically, you grant the -s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM -identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a -session token. With the session token in your request header, you can make API requests to -this operation. After the session token expires, you make another CreateSession API call to -generate a new session token for use. Amazon Web Services CLI or SDKs create session and -refresh the session token automatically to avoid service interruptions when a session -expires. For more information about authorization, see CreateSession . Encryption -Encryption request headers, like x-amz-server-side-encryption, should not be sent for HEAD -requests if your object uses server-side encryption with Key Management Service (KMS) keys -(SSE-KMS), dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), -or server-side encryption with Amazon S3 managed encryption keys (SSE-S3). The +you need to use this operation depend on whether the bucket is versioned. If the bucket is +versioned, you need both the s3:GetObjectVersion and s3:GetObjectVersionAttributes +permissions for this operation. If the bucket is not versioned, you need the s3:GetObject +and s3:GetObjectAttributes permissions. For more information, see Specifying Permissions in +a Policy in the Amazon S3 User Guide. If the object that you request does not exist, the +error Amazon S3 returns depends on whether you also have the s3:ListBucket permission. If +you have the s3:ListBucket permission on the bucket, Amazon S3 returns an HTTP status code +404 Not Found (\"no such key\") error. If you don't have the s3:ListBucket permission, +Amazon S3 returns an HTTP status code 403 Forbidden (\"access denied\") error. +Directory bucket permissions - To grant access to this API operation on a directory bucket, +we recommend that you use the CreateSession API operation for session-based +authorization. Specifically, you grant the s3express:CreateSession permission to the +directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the +CreateSession API call on the bucket to obtain a session token. With the session token in +your request header, you can make API requests to this operation. After the session token +expires, you make another CreateSession API call to generate a new session token for use. +Amazon Web Services CLI or SDKs create session and refresh the session token automatically +to avoid service interruptions when a session expires. For more information about +authorization, see CreateSession . If the object is encrypted with SSE-KMS, you must also +have the kms:GenerateDataKey and kms:Decrypt permissions in IAM identity-based policies and +KMS key policies for the KMS key. Encryption Encryption request headers, like +x-amz-server-side-encryption, should not be sent for HEAD requests if your object uses +server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer +server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side +encryption with Amazon S3 managed encryption keys (SSE-S3). The x-amz-server-side-encryption header is used when you PUT an object to S3 and want to specify the encryption method. If you include this header in a GET request for an object that uses these types of keys, you’ll get an HTTP 400 Bad Request error. It's because the @@ -3534,20 +3638,27 @@ x-amz-server-side-encryption-customer-algorithm x-amz-server-side-encryption-customer-key x-amz-server-side-encryption-customer-key-MD5 For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided Encryption Keys) in the Amazon S3 User Guide. Directory bucket permissions - For -directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) -(AES256) is supported. Versioning Directory buckets - S3 Versioning isn't enabled and -supported for directory buckets. For this API operation, only the null value of the version -ID is supported by directory buckets. You can only specify null to the versionId query -parameter in the request. Conditional request headers Consider the following when using -request headers: If both of the If-Match and If-Unmodified-Since headers are present in -the request as follows, then Amazon S3 returns the HTTP status code 200 OK and the data -requested: If-Match condition evaluates to true. If-Unmodified-Since condition -evaluates to false. For more information about conditional requests, see RFC 7232. If -both of the If-None-Match and If-Modified-Since headers are present in the request as -follows, then Amazon S3 returns the HTTP status code 304 Not Modified: If-None-Match -condition evaluates to false. If-Modified-Since condition evaluates to true. For more -information about conditional requests, see RFC 7232. HTTP Host header syntax -Directory buckets - The HTTP Host header syntax is +directory buckets, there are only two supported options for server-side encryption: +server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side +encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default +encryption uses the desired encryption configuration and you don't override the bucket +default encryption in your CreateSession requests or PUT object requests. Then, new objects +are automatically encrypted with the desired encryption settings. For more information, see +Protecting data with server-side encryption in the Amazon S3 User Guide. For more +information about the encryption overriding behaviors in directory buckets, see Specifying +server-side encryption with KMS for new object uploads. Versioning Directory buckets - +S3 Versioning isn't enabled and supported for directory buckets. For this API operation, +only the null value of the version ID is supported by directory buckets. You can only +specify null to the versionId query parameter in the request. Conditional request headers +Consider the following when using request headers: If both of the If-Match and +If-Unmodified-Since headers are present in the request as follows, then Amazon S3 returns +the HTTP status code 200 OK and the data requested: If-Match condition evaluates to +true. If-Unmodified-Since condition evaluates to false. For more information about +conditional requests, see RFC 7232. If both of the If-None-Match and If-Modified-Since +headers are present in the request as follows, then Amazon S3 returns the HTTP status code +304 Not Modified: If-None-Match condition evaluates to false. If-Modified-Since +condition evaluates to true. For more information about conditional requests, see RFC +7232. HTTP Host header syntax Directory buckets - The HTTP Host header syntax is Bucket_name.s3express-az_id.region.amazonaws.com. The following actions are related to GetObjectAttributes: GetObject GetObjectAcl GetObjectLegalHold GetObjectLockConfiguration GetObjectRetention GetObjectTagging HeadObject @@ -3606,20 +3717,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys integrity check to ensure that the encryption key was transmitted without error. This functionality is not supported for directory buckets. """ -function get_object_attributes( +get_object_attributes( Bucket, Key, x_amz_object_attributes; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)/$(Key)?attributes", + Dict{String,Any}( + "headers" => + Dict{String,Any}("x-amz-object-attributes" => x_amz_object_attributes), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)/$(Key)?attributes", - Dict{String,Any}( - "headers" => - Dict{String,Any}("x-amz-object-attributes" => x_amz_object_attributes), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_object_attributes( Bucket, Key, @@ -3675,16 +3784,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). - `"x-amz-request-payer"`: """ -function get_object_legal_hold( - Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config() +get_object_legal_hold(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)/$(Key)?legal-hold"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)/$(Key)?legal-hold"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_object_legal_hold( Bucket, Key, @@ -3726,16 +3831,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_object_lock_configuration( - Bucket; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3( +get_object_lock_configuration(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3( "GET", "/$(Bucket)?object-lock"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_object_lock_configuration( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3778,16 +3880,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). - `"x-amz-request-payer"`: """ -function get_object_retention( - Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config() +get_object_retention(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)/$(Key)?retention"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)/$(Key)?retention"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_object_retention( Bucket, Key, @@ -3844,14 +3942,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). - `"x-amz-request-payer"`: """ -function get_object_tagging(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)/$(Key)?tagging"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_object_tagging(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)/$(Key)?tagging"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_object_tagging( Bucket, Key, @@ -3889,14 +3985,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). - `"x-amz-request-payer"`: """ -function get_object_torrent(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)/$(Key)?torrent"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_object_torrent(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)/$(Key)?torrent"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_object_torrent( Bucket, Key, @@ -3939,14 +4033,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function get_public_access_block(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)?publicAccessBlock"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_public_access_block(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?publicAccessBlock"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_public_access_block( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3965,32 +4057,34 @@ end You can use this operation to determine if a bucket exists and if you have permission to access it. The action returns a 200 OK if the bucket exists and you have permission to -access it. If the bucket does not exist or you do not have permission to access it, the +access it. If the bucket does not exist or you do not have permission to access it, the HEAD request returns a generic 400 Bad Request, 403 Forbidden or 404 Not Found code. A message body is not included, so you cannot determine the exception beyond these HTTP -response codes. Directory buckets - You must make requests for this API operation to the -Zonal endpoint. These endpoints support virtual-hosted-style requests in the format -https://bucket_name.s3express-az_id.region.amazonaws.com. Path-style requests are not -supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User -Guide. Authentication and authorization All HeadBucket requests must be authenticated -and signed by using IAM credentials (access key ID and secret access key for the IAM -identities). All headers with the x-amz- prefix, including x-amz-copy-source, must be -signed. For more information, see REST Authentication. Directory bucket - You must use IAM -credentials to authenticate and authorize your access to the HeadBucket API operation, -instead of using the temporary security credentials through the CreateSession API -operation. Amazon Web Services CLI or SDKs handles authentication and authorization on your -behalf. Permissions General purpose bucket permissions - To use this operation, you -must have permissions to perform the s3:ListBucket action. The bucket owner has this -permission by default and can grant this permission to others. For more information about -permissions, see Managing access permissions to your Amazon S3 resources in the Amazon S3 -User Guide. Directory bucket permissions - You must have the s3express:CreateSession -permission in the Action element of a policy. By default, the session is in the ReadWrite -mode. If you want to restrict the access, you can explicitly set the s3express:SessionMode -condition key to ReadOnly on the bucket. For more information about example bucket -policies, see Example bucket policies for S3 Express One Zone and Amazon Web Services -Identity and Access Management (IAM) identity-based policies for S3 Express One Zone in the -Amazon S3 User Guide. HTTP Host header syntax Directory buckets - The HTTP Host -header syntax is Bucket_name.s3express-az_id.region.amazonaws.com. +response codes. Authentication and authorization General purpose buckets - Request to +public buckets that grant the s3:ListBucket permission publicly do not need to be signed. +All other HeadBucket requests must be authenticated and signed by using IAM credentials +(access key ID and secret access key for the IAM identities). All headers with the x-amz- +prefix, including x-amz-copy-source, must be signed. For more information, see REST +Authentication. Directory buckets - You must use IAM credentials to authenticate and +authorize your access to the HeadBucket API operation, instead of using the temporary +security credentials through the CreateSession API operation. Amazon Web Services CLI or +SDKs handles authentication and authorization on your behalf. Permissions General +purpose bucket permissions - To use this operation, you must have permissions to perform +the s3:ListBucket action. The bucket owner has this permission by default and can grant +this permission to others. For more information about permissions, see Managing access +permissions to your Amazon S3 resources in the Amazon S3 User Guide. Directory bucket +permissions - You must have the s3express:CreateSession permission in the Action element +of a policy. By default, the session is in the ReadWrite mode. If you want to restrict the +access, you can explicitly set the s3express:SessionMode condition key to ReadOnly on the +bucket. For more information about example bucket policies, see Example bucket policies for +S3 Express One Zone and Amazon Web Services Identity and Access Management (IAM) +identity-based policies for S3 Express One Zone in the Amazon S3 User Guide. HTTP Host +header syntax Directory buckets - The HTTP Host header syntax is +Bucket_name.s3express-az_id.region.amazonaws.com. You must make requests for this API +operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in +the format https://bucket_name.s3express-az_id.region.amazonaws.com. Path-style requests +are not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 +User Guide. # Arguments - `bucket`: The bucket name. Directory buckets - When you use this operation with a @@ -4025,9 +4119,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function head_bucket(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3("HEAD", "/$(Bucket)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +head_bucket(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("HEAD", "/$(Bucket)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function head_bucket( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4041,38 +4134,40 @@ end head_object(bucket, key, params::Dict{String,<:Any}) The HEAD operation retrieves metadata from an object without returning the object itself. -This operation is useful if you're interested only in an object's metadata. A HEAD request +This operation is useful if you're interested only in an object's metadata. A HEAD request has the same options as a GET operation on an object. The response is identical to the GET response except that there is no response body. Because of this, if the HEAD request generates an error, it returns a generic code, such as 400 Bad Request, 403 Forbidden, 404 Not Found, 405 Method Not Allowed, 412 Precondition Failed, or 304 Not Modified. It's not -possible to retrieve the exact exception of these error codes. Request headers are limited -to 8 KB in size. For more information, see Common Request Headers. Directory buckets - -For directory buckets, you must make requests for this API operation to the Zonal endpoint. -These endpoints support virtual-hosted-style requests in the format -https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style requests are -not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User -Guide. Permissions General purpose bucket permissions - To use HEAD, you must have -the s3:GetObject permission. You need the relevant read object (or version) permission for -this operation. For more information, see Actions, resources, and condition keys for Amazon -S3 in the Amazon S3 User Guide. If the object you request doesn't exist, the error that -Amazon S3 returns depends on whether you also have the s3:ListBucket permission. If you -have the s3:ListBucket permission on the bucket, Amazon S3 returns an HTTP status code 404 -Not Found error. If you don’t have the s3:ListBucket permission, Amazon S3 returns an -HTTP status code 403 Forbidden error. Directory bucket permissions - To grant access -to this API operation on a directory bucket, we recommend that you use the CreateSession -API operation for session-based authorization. Specifically, you grant the -s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM -identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a -session token. With the session token in your request header, you can make API requests to -this operation. After the session token expires, you make another CreateSession API call to -generate a new session token for use. Amazon Web Services CLI or SDKs create session and -refresh the session token automatically to avoid service interruptions when a session -expires. For more information about authorization, see CreateSession . Encryption -Encryption request headers, like x-amz-server-side-encryption, should not be sent for HEAD -requests if your object uses server-side encryption with Key Management Service (KMS) keys -(SSE-KMS), dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), -or server-side encryption with Amazon S3 managed encryption keys (SSE-S3). The +possible to retrieve the exact exception of these error codes. Request headers are limited +to 8 KB in size. For more information, see Common Request Headers. Permissions +General purpose bucket permissions - To use HEAD, you must have the s3:GetObject +permission. You need the relevant read object (or version) permission for this operation. +For more information, see Actions, resources, and condition keys for Amazon S3 in the +Amazon S3 User Guide. For more information about the permissions to S3 API operations by S3 +resource types, see Required permissions for Amazon S3 API operations in the Amazon S3 User +Guide. If the object you request doesn't exist, the error that Amazon S3 returns depends on +whether you also have the s3:ListBucket permission. If you have the s3:ListBucket +permission on the bucket, Amazon S3 returns an HTTP status code 404 Not Found error. If +you don’t have the s3:ListBucket permission, Amazon S3 returns an HTTP status code 403 +Forbidden error. Directory bucket permissions - To grant access to this API operation +on a directory bucket, we recommend that you use the CreateSession API operation for +session-based authorization. Specifically, you grant the s3express:CreateSession permission +to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make +the CreateSession API call on the bucket to obtain a session token. With the session token +in your request header, you can make API requests to this operation. After the session +token expires, you make another CreateSession API call to generate a new session token for +use. Amazon Web Services CLI or SDKs create session and refresh the session token +automatically to avoid service interruptions when a session expires. For more information +about authorization, see CreateSession . If you enable x-amz-checksum-mode in the request +and the object is encrypted with Amazon Web Services Key Management Service (Amazon Web +Services KMS), you must also have the kms:GenerateDataKey and kms:Decrypt permissions in +IAM identity-based policies and KMS key policies for the KMS key to retrieve the checksum +of the object. Encryption Encryption request headers, like +x-amz-server-side-encryption, should not be sent for HEAD requests if your object uses +server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer +server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side +encryption with Amazon S3 managed encryption keys (SSE-S3). The x-amz-server-side-encryption header is used when you PUT an object to S3 and want to specify the encryption method. If you include this header in a HEAD request for an object that uses these types of keys, you’ll get an HTTP 400 Bad Request error. It's because the @@ -4084,9 +4179,10 @@ retrieve the object's metadata. The headers are: x-amz-server-side-encryption-customer-algorithm x-amz-server-side-encryption-customer-key x-amz-server-side-encryption-customer-key-MD5 For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided -Encryption Keys) in the Amazon S3 User Guide. Directory bucket permissions - For -directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) -(AES256) is supported. Versioning If the current version of the object is a delete +Encryption Keys) in the Amazon S3 User Guide. Directory bucket - For directory buckets, +there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C +isn't supported. For more information, see Protecting data with server-side encryption in +the Amazon S3 User Guide. Versioning If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes x-amz-delete-marker: true in the response. If the specified version is a delete marker, the response returns a 405 Method Not Allowed error and the Last-Modified: timestamp response header. @@ -4095,8 +4191,13 @@ buckets - S3 Versioning isn't enabled and supported for directory buckets. For t operation, only the null value of the version ID is supported by directory buckets. You can only specify null to the versionId query parameter in the request. HTTP Host header syntax Directory buckets - The HTTP Host header syntax is -Bucket_name.s3express-az_id.region.amazonaws.com. The following actions are related to -HeadObject: GetObject GetObjectAttributes +Bucket_name.s3express-az_id.region.amazonaws.com. For directory buckets, you must make +requests for this API operation to the Zonal endpoint. These endpoints support +virtual-hosted-style requests in the format +https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style requests are +not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User +Guide. The following actions are related to HeadObject: GetObject +GetObjectAttributes # Arguments - `bucket`: The name of the bucket that contains the object. Directory buckets - When you @@ -4154,13 +4255,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"partNumber"`: Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object. +- `"response-cache-control"`: Sets the Cache-Control header of the response. +- `"response-content-disposition"`: Sets the Content-Disposition header of the response. +- `"response-content-encoding"`: Sets the Content-Encoding header of the response. +- `"response-content-language"`: Sets the Content-Language header of the response. +- `"response-content-type"`: Sets the Content-Type header of the response. +- `"response-expires"`: Sets the Expires header of the response. - `"versionId"`: Version ID used to reference a specific version of the object. For directory buckets in this API operation, only the null value of the version ID is supported. -- `"x-amz-checksum-mode"`: To retrieve the checksum, this parameter must be enabled. In - addition, if you enable ChecksumMode and the object is encrypted with Amazon Web Services - Key Management Service (Amazon Web Services KMS), you must have permission to use the - kms:Decrypt action for the request to succeed. +- `"x-amz-checksum-mode"`: To retrieve the checksum, this parameter must be enabled. + General purpose buckets - If you enable checksum mode and the object is uploaded with a + checksum and encrypted with an Key Management Service (KMS) key, you must have permission + to use the kms:Decrypt action to retrieve the checksum. Directory buckets - If you enable + ChecksumMode and the object is encrypted with Amazon Web Services Key Management Service + (Amazon Web Services KMS), you must also have the kms:GenerateDataKey and kms:Decrypt + permissions in IAM identity-based policies and KMS key policies for the KMS key to retrieve + the checksum of the object. - `"x-amz-expected-bucket-owner"`: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). @@ -4179,11 +4290,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys integrity check to ensure that the encryption key was transmitted without error. This functionality is not supported for directory buckets. """ -function head_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "HEAD", "/$(Bucket)/$(Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +head_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("HEAD", "/$(Bucket)/$(Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function head_object( Bucket, Key, @@ -4231,16 +4339,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function list_bucket_analytics_configurations( +list_bucket_analytics_configurations( Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?analytics"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?analytics"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bucket_analytics_configurations( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4283,16 +4389,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"continuation-token"`: The ContinuationToken that represents a placeholder from where this request should begin. """ -function list_bucket_intelligent_tiering_configurations( +list_bucket_intelligent_tiering_configurations( Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?intelligent-tiering"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?intelligent-tiering"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bucket_intelligent_tiering_configurations( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4339,16 +4443,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function list_bucket_inventory_configurations( +list_bucket_inventory_configurations( Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "GET", + "/$(Bucket)?inventory"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)?inventory"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_bucket_inventory_configurations( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4396,13 +4498,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function list_bucket_metrics_configurations( +list_bucket_metrics_configurations( Bucket; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3( - "GET", "/$(Bucket)?metrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +) = s3("GET", "/$(Bucket)?metrics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_bucket_metrics_configurations( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4424,10 +4522,27 @@ by the authenticated sender of the request. To use this operation, you must have s3:ListAllMyBuckets permission. For information about Amazon S3 buckets, see Creating, configuring, and working with Amazon S3 buckets. -""" -function list_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) - return s3("GET", "/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"bucket-region"`: Limits the response to buckets that are located in the specified + Amazon Web Services Region. The Amazon Web Services Region must be expressed according to + the Amazon Web Services Region code, such as us-west-2 for the US West (Oregon) Region. For + a list of the valid values for all of the Amazon Web Services Regions, see Regions and + Endpoints. Requests made to a Regional endpoint that is different from the bucket-region + parameter are not supported. For example, if you want to limit the response to your buckets + in Region us-west-2, the request must be made to an endpoint in Region us-west-2. +- `"continuation-token"`: ContinuationToken indicates to Amazon S3 that the list is being + continued on this bucket with a token. ContinuationToken is obfuscated and is not a real + key. You can use this ContinuationToken for pagination of the list results. Length + Constraints: Minimum length of 0. Maximum length of 1024. Required: No. +- `"max-buckets"`: Maximum number of buckets to be returned in response. When the number is + more than the count of buckets that are owned by an Amazon Web Services account, return all + the buckets in response. +- `"prefix"`: Limits the response to bucket names that begin with the specified bucket name + prefix. +""" +list_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_buckets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4456,15 +4571,15 @@ s3express-control.region.amazonaws.com. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"continuation-token"`: ContinuationToken indicates to Amazon S3 that the list is being - continued on this bucket with a token. ContinuationToken is obfuscated and is not a real - key. You can use this ContinuationToken for pagination of the list results. + continued on buckets in this account with a token. ContinuationToken is obfuscated and is + not a real bucket name. You can use this ContinuationToken for the pagination of the list + results. - `"max-directory-buckets"`: Maximum number of buckets to be returned in response. When the number is more than the count of buckets that are owned by an Amazon Web Services account, return all the buckets in response. """ -function list_directory_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) - return s3("GET", "/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_directory_buckets(; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_directory_buckets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4479,30 +4594,32 @@ This operation lists in-progress multipart uploads in a bucket. An in-progress m upload is a multipart upload that has been initiated by the CreateMultipartUpload request, but has not yet been completed or aborted. Directory buckets - If multipart uploads in a directory bucket are in progress, you can't delete the bucket until all the in-progress -multipart uploads are aborted or completed. The ListMultipartUploads operation returns a -maximum of 1,000 multipart uploads in the response. The limit of 1,000 multipart uploads is -also the default value. You can further limit the number of uploads in a response by -specifying the max-uploads request parameter. If there are more than 1,000 multipart -uploads that satisfy your ListMultipartUploads request, the response returns an IsTruncated -element with the value of true, a NextKeyMarker element, and a NextUploadIdMarker element. -To list the remaining multipart uploads, you need to make subsequent ListMultipartUploads -requests. In these requests, include two query parameters: key-marker and upload-id-marker. -Set the value of key-marker to the NextKeyMarker value from the previous response. -Similarly, set the value of upload-id-marker to the NextUploadIdMarker value from the -previous response. Directory buckets - The upload-id-marker element and the -NextUploadIdMarker element aren't supported by directory buckets. To list the additional -multipart uploads, you only need to set the value of key-marker to the NextKeyMarker value -from the previous response. For more information about multipart uploads, see Uploading -Objects Using Multipart Upload in the Amazon S3 User Guide. Directory buckets - For -directory buckets, you must make requests for this API operation to the Zonal endpoint. -These endpoints support virtual-hosted-style requests in the format -https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style requests are -not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User -Guide. Permissions General purpose bucket permissions - For information about -permissions required to use the multipart upload API, see Multipart Upload and Permissions -in the Amazon S3 User Guide. Directory bucket permissions - To grant access to this API -operation on a directory bucket, we recommend that you use the CreateSession API -operation for session-based authorization. Specifically, you grant the +multipart uploads are aborted or completed. To delete these in-progress multipart uploads, +use the ListMultipartUploads operation to list the in-progress multipart uploads in the +bucket and use the AbortMultupartUpload operation to abort all the in-progress multipart +uploads. The ListMultipartUploads operation returns a maximum of 1,000 multipart uploads +in the response. The limit of 1,000 multipart uploads is also the default value. You can +further limit the number of uploads in a response by specifying the max-uploads request +parameter. If there are more than 1,000 multipart uploads that satisfy your +ListMultipartUploads request, the response returns an IsTruncated element with the value of +true, a NextKeyMarker element, and a NextUploadIdMarker element. To list the remaining +multipart uploads, you need to make subsequent ListMultipartUploads requests. In these +requests, include two query parameters: key-marker and upload-id-marker. Set the value of +key-marker to the NextKeyMarker value from the previous response. Similarly, set the value +of upload-id-marker to the NextUploadIdMarker value from the previous response. Directory +buckets - The upload-id-marker element and the NextUploadIdMarker element aren't supported +by directory buckets. To list the additional multipart uploads, you only need to set the +value of key-marker to the NextKeyMarker value from the previous response. For more +information about multipart uploads, see Uploading Objects Using Multipart Upload in the +Amazon S3 User Guide. Directory buckets - For directory buckets, you must make requests +for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style +requests in the format https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . +Path-style requests are not supported. For more information, see Regional and Zonal +endpoints in the Amazon S3 User Guide. Permissions General purpose bucket permissions +- For information about permissions required to use the multipart upload API, see Multipart +Upload and Permissions in the Amazon S3 User Guide. Directory bucket permissions - To +grant access to this API operation on a directory bucket, we recommend that you use the +CreateSession API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to @@ -4587,11 +4704,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fails with the HTTP status code 403 Forbidden (access denied). - `"x-amz-request-payer"`: """ -function list_multipart_uploads(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?uploads"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_multipart_uploads(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?uploads"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_multipart_uploads( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4648,11 +4762,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned in the response. Fields that you do not specify are not returned. - `"x-amz-request-payer"`: """ -function list_object_versions(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", "/$(Bucket)?versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_object_versions(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)?versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_object_versions( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4720,9 +4831,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for the list objects request. Bucket owners need not specify this parameter in their requests. """ -function list_objects(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3("GET", "/$(Bucket)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_objects(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("GET", "/$(Bucket)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_objects( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4740,12 +4850,15 @@ the request parameters as selection criteria to return a subset of the objects i A 200 OK response can contain valid or invalid XML. Make sure to design your application to parse the contents of the response and handle it appropriately. For more information about listing objects, see Listing object keys programmatically in the Amazon S3 User Guide. To -get a list of your buckets, see ListBuckets. Directory buckets - For directory buckets, -you must make requests for this API operation to the Zonal endpoint. These endpoints -support virtual-hosted-style requests in the format +get a list of your buckets, see ListBuckets. General purpose bucket - For general +purpose buckets, ListObjectsV2 doesn't return prefixes that are related only to in-progress +multipart uploads. Directory buckets - For directory buckets, ListObjectsV2 response +includes the prefixes that are related only to in-progress multipart uploads. Directory +buckets - For directory buckets, you must make requests for this API operation to the Zonal +endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style requests are not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User -Guide. Permissions General purpose bucket permissions - To use this operation, you +Guide. Permissions General purpose bucket permissions - To use this operation, you must have READ access to the bucket. You must have permission to perform the s3:ListBucket action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket @@ -4804,9 +4917,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys CommonPrefixes response parameter contains the prefixes that are associated with the in-progress multipart uploads. For more information about multipart uploads, see Multipart Upload Overview in the Amazon S3 User Guide. -- `"encoding-type"`: Encoding type used by Amazon S3 to encode object keys in the response. - If using url, non-ASCII characters used in an object's key name will be URL encoded. For - example, the object test_file(3).png will appear as test_file%283%29.png. +- `"encoding-type"`: Encoding type used by Amazon S3 to encode the object keys in the + response. Responses are encoded only in UTF-8. An object key can contain any Unicode + character. However, the XML 1.0 parser can't parse certain characters, such as characters + with an ASCII value from 0 to 10. For characters that aren't supported in XML 1.0, you can + add this parameter to request that Amazon S3 encode the keys in the response. For more + information about characters to avoid in object key names, see Object key naming + guidelines. When using the URL encoding type, non-ASCII characters that are used in an + object's key name will be percent-encoded according to UTF-8 code values. For example, the + object test_file(3).png will appear as test_file%283%29.png. - `"fetch-owner"`: The owner field is not present in ListObjectsV2 by default. If you want to return the owner field with each key in the result, then set the FetchOwner field to true. Directory buckets - For directory buckets, the bucket owner is returned as the @@ -4829,14 +4948,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for the list objects request in V2 style. Bucket owners need not specify this parameter in their requests. This functionality is not supported for directory buckets. """ -function list_objects_v2(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "GET", - "/$(Bucket)?list-type=2"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_objects_v2(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)?list-type=2"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_objects_v2( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4937,17 +5054,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide. This functionality is not supported for directory buckets. """ -function list_parts( - Bucket, Key, uploadId; aws_config::AbstractAWSConfig=current_aws_config() +list_parts(Bucket, Key, uploadId; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "GET", + "/$(Bucket)/$(Key)", + Dict{String,Any}("uploadId" => uploadId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "GET", - "/$(Bucket)/$(Key)", - Dict{String,Any}("uploadId" => uploadId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_parts( Bucket, Key, @@ -5004,17 +5117,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_accelerate_configuration( +put_bucket_accelerate_configuration( AccelerateConfiguration, Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?accelerate", + Dict{String,Any}("AccelerateConfiguration" => AccelerateConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?accelerate", - Dict{String,Any}("AccelerateConfiguration" => AccelerateConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_accelerate_configuration( AccelerateConfiguration, Bucket, @@ -5132,11 +5243,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_acl(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "PUT", "/$(Bucket)?acl"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +put_bucket_acl(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("PUT", "/$(Bucket)?acl"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function put_bucket_acl( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5191,17 +5299,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function put_bucket_analytics_configuration( +put_bucket_analytics_configuration( AnalyticsConfiguration, Bucket, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?analytics", + Dict{String,Any}("AnalyticsConfiguration" => AnalyticsConfiguration, "id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?analytics", - Dict{String,Any}("AnalyticsConfiguration" => AnalyticsConfiguration, "id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_analytics_configuration( AnalyticsConfiguration, Bucket, @@ -5276,17 +5382,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_cors( +put_bucket_cors( Bucket, CORSConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?cors", + Dict{String,Any}("CORSConfiguration" => CORSConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?cors", - Dict{String,Any}("CORSConfiguration" => CORSConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_cors( Bucket, CORSConfiguration, @@ -5310,66 +5414,107 @@ end put_bucket_encryption(bucket, server_side_encryption_configuration) put_bucket_encryption(bucket, server_side_encryption_configuration, params::Dict{String,<:Any}) - This operation is not supported by directory buckets. This action uses the encryption -subresource to configure default encryption and Amazon S3 Bucket Keys for an existing -bucket. By default, all buckets have a default encryption configuration that uses -server-side encryption with Amazon S3 managed keys (SSE-S3). You can optionally configure -default encryption for a bucket by using server-side encryption with Key Management Service -(KMS) keys (SSE-KMS) or dual-layer server-side encryption with Amazon Web Services KMS keys +This operation configures default encryption and Amazon S3 Bucket Keys for an existing +bucket. Directory buckets - For directory buckets, you must make requests for this API +operation to the Regional endpoint. These endpoints support path-style requests in the +format https://s3express-control.region_code.amazonaws.com/bucket-name . +Virtual-hosted-style requests aren't supported. For more information, see Regional and +Zonal endpoints in the Amazon S3 User Guide. By default, all buckets have a default +encryption configuration that uses server-side encryption with Amazon S3 managed keys +(SSE-S3). General purpose buckets You can optionally configure default encryption +for a bucket by using server-side encryption with Key Management Service (KMS) keys +(SSE-KMS) or dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS). If you specify default encryption by using SSE-KMS, you can also configure -Amazon S3 Bucket Keys. If you use PutBucketEncryption to set your default bucket encryption -to SSE-KMS, you should verify that your KMS key ID is correct. Amazon S3 does not validate -the KMS key ID provided in PutBucketEncryption requests. This action requires Amazon Web -Services Signature Version 4. For more information, see Authenticating Requests (Amazon -Web Services Signature Version 4). To use this operation, you must have permission to -perform the s3:PutEncryptionConfiguration action. The bucket owner has this permission by -default. The bucket owner can grant this permission to others. For more information about -permissions, see Permissions Related to Bucket Subresource Operations and Managing Access -Permissions to Your Amazon S3 Resources in the Amazon S3 User Guide. The following -operations are related to PutBucketEncryption: GetBucketEncryption -DeleteBucketEncryption +Amazon S3 Bucket Keys. For information about the bucket default encryption feature, see +Amazon S3 Bucket Default Encryption in the Amazon S3 User Guide. If you use +PutBucketEncryption to set your default bucket encryption to SSE-KMS, you should verify +that your KMS key ID is correct. Amazon S3 doesn't validate the KMS key ID provided in +PutBucketEncryption requests. Directory buckets - You can optionally configure +default encryption for a bucket by using server-side encryption with Key Management Service +(KMS) keys (SSE-KMS). We recommend that the bucket's default encryption uses the desired +encryption configuration and you don't override the bucket default encryption in your +CreateSession requests or PUT object requests. Then, new objects are automatically +encrypted with the desired encryption settings. For more information about the encryption +overriding behaviors in directory buckets, see Specifying server-side encryption with KMS +for new object uploads. Your SSE-KMS configuration can only support 1 customer managed +key per directory bucket for the lifetime of the bucket. The Amazon Web Services managed +key (aws/s3) isn't supported. S3 Bucket Keys are always enabled for GET and PUT +operations in a directory bucket and can’t be disabled. S3 Bucket Keys aren't supported, +when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, +from directory buckets to general purpose buckets, or between directory buckets, through +CopyObject, UploadPartCopy, the Copy operation in Batch Operations, or the import jobs. In +this case, Amazon S3 makes a call to KMS every time a copy request is made for a +KMS-encrypted object. When you specify an KMS customer managed key for encryption in your +directory bucket, only use the key ID or key ARN. The key alias format of the KMS key isn't +supported. For directory buckets, if you use PutBucketEncryption to set your default +bucket encryption to SSE-KMS, Amazon S3 validates the KMS key ID provided in +PutBucketEncryption requests. If you're specifying a customer managed KMS key, we +recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS +resolves the key within the requester’s account. This behavior can result in data that's +encrypted with a KMS key that belongs to the requester, and not the bucket owner. Also, +this action requires Amazon Web Services Signature Version 4. For more information, see +Authenticating Requests (Amazon Web Services Signature Version 4). Permissions +General purpose bucket permissions - The s3:PutEncryptionConfiguration permission is +required in a policy. The bucket owner has this permission by default. The bucket owner can +grant this permission to others. For more information about permissions, see Permissions +Related to Bucket Operations and Managing Access Permissions to Your Amazon S3 Resources in +the Amazon S3 User Guide. Directory bucket permissions - To grant access to this API +operation, you must have the s3express:PutEncryptionConfiguration permission in an IAM +identity-based policy instead of a bucket policy. Cross-account access to this API +operation isn't supported. This operation can only be performed by the Amazon Web Services +account that owns the resource. For more information about directory bucket policies and +permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express +One Zone in the Amazon S3 User Guide. To set a directory bucket default encryption with +SSE-KMS, you must also have the kms:GenerateDataKey and the kms:Decrypt permissions in IAM +identity-based policies and KMS key policies for the target KMS key. HTTP Host header +syntax Directory buckets - The HTTP Host header syntax is +s3express-control.region.amazonaws.com. The following operations are related to +PutBucketEncryption: GetBucketEncryption DeleteBucketEncryption # Arguments - `bucket`: Specifies default encryption for a bucket using server-side encryption with - different key options. By default, all buckets have a default encryption configuration that - uses server-side encryption with Amazon S3 managed keys (SSE-S3). You can optionally - configure default encryption for a bucket by using server-side encryption with an Amazon - Web Services KMS key (SSE-KMS) or a customer-provided key (SSE-C). For information about - the bucket default encryption feature, see Amazon S3 Bucket Default Encryption in the - Amazon S3 User Guide. + different key options. Directory buckets - When you use this operation with a directory + bucket, you must use path-style requests in the format + https://s3express-control.region_code.amazonaws.com/bucket-name . Virtual-hosted-style + requests aren't supported. Directory bucket names must be unique in the chosen Availability + Zone. Bucket names must also follow the format bucket_base_name--az_id--x-s3 (for example, + DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see + Directory bucket naming rules in the Amazon S3 User Guide - `server_side_encryption_configuration`: # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Content-MD5"`: The base64-encoded 128-bit MD5 digest of the server-side encryption configuration. For requests made using the Amazon Web Services Command Line Interface (CLI) - or Amazon Web Services SDKs, this field is calculated automatically. + or Amazon Web Services SDKs, this field is calculated automatically. This functionality is + not supported for directory buckets. - `"x-amz-expected-bucket-owner"`: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request - fails with the HTTP status code 403 Forbidden (access denied). + fails with the HTTP status code 403 Forbidden (access denied). For directory buckets, this + header is not supported in this API operation. If you specify this header, the request + fails with the HTTP status code 501 Not Implemented. - `"x-amz-sdk-checksum-algorithm"`: Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any - provided ChecksumAlgorithm parameter. + provided ChecksumAlgorithm parameter. For directory buckets, when you use Amazon Web + Services SDKs, CRC32 is the default checksum algorithm that's used for performance. """ -function put_bucket_encryption( +put_bucket_encryption( Bucket, ServerSideEncryptionConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3( + "PUT", + "/$(Bucket)?encryption", + Dict{String,Any}( + "ServerSideEncryptionConfiguration" => ServerSideEncryptionConfiguration + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?encryption", - Dict{String,Any}( - "ServerSideEncryptionConfiguration" => ServerSideEncryptionConfiguration - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_encryption( Bucket, ServerSideEncryptionConfiguration, @@ -5431,22 +5576,20 @@ bucket. - `id`: The ID used to identify the S3 Intelligent-Tiering configuration. """ -function put_bucket_intelligent_tiering_configuration( +put_bucket_intelligent_tiering_configuration( Bucket, IntelligentTieringConfiguration, id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3( + "PUT", + "/$(Bucket)?intelligent-tiering", + Dict{String,Any}( + "IntelligentTieringConfiguration" => IntelligentTieringConfiguration, "id" => id + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?intelligent-tiering", - Dict{String,Any}( - "IntelligentTieringConfiguration" => IntelligentTieringConfiguration, "id" => id - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_intelligent_tiering_configuration( Bucket, IntelligentTieringConfiguration, @@ -5522,17 +5665,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function put_bucket_inventory_configuration( +put_bucket_inventory_configuration( Bucket, InventoryConfiguration, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?inventory", + Dict{String,Any}("InventoryConfiguration" => InventoryConfiguration, "id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?inventory", - Dict{String,Any}("InventoryConfiguration" => InventoryConfiguration, "id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_inventory_configuration( Bucket, InventoryConfiguration, @@ -5605,14 +5746,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_lifecycle(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "PUT", - "/$(Bucket)?lifecycle"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_bucket_lifecycle(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "PUT", + "/$(Bucket)?lifecycle"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_bucket_lifecycle( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5633,15 +5772,15 @@ end configuration for the bucket or replaces an existing lifecycle configuration. Keep in mind that this will overwrite an existing lifecycle configuration, so if you want to retain any configuration details, they must be included in the new lifecycle configuration. For -information about lifecycle configuration, see Managing your storage lifecycle. Bucket -lifecycle configuration now supports specifying a lifecycle rule using an object key name -prefix, one or more object tags, object size, or any combination of these. Accordingly, -this section describes the latest API. The previous version of the API supported filtering -based only on an object key name prefix, which is supported for backward compatibility. For -the related API description, see PutBucketLifecycle. Rules You specify the lifecycle -configuration in your request body. The lifecycle configuration is specified as XML -consisting of one or more rules. An Amazon S3 Lifecycle configuration can have up to 1,000 -rules. This limit is not adjustable. Each rule consists of the following: A filter +information about lifecycle configuration, see Managing your storage lifecycle. Rules You +specify the lifecycle configuration in your request body. The lifecycle configuration is +specified as XML consisting of one or more rules. An Amazon S3 Lifecycle configuration can +have up to 1,000 rules. This limit is not adjustable. Bucket lifecycle configuration +supports specifying a lifecycle rule using an object key name prefix, one or more object +tags, object size, or any combination of these. Accordingly, this section describes the +latest API. The previous version of the API supported filtering based only on an object key +name prefix, which is supported for backward compatibility. For the related API +description, see PutBucketLifecycle. A lifecycle rule consists of the following: A filter identifying a subset of objects to which the rule applies. The filter can be based on a key name prefix, object tags, object size, or any combination of these. A status indicating whether the rule is in effect. One or more lifecycle transition and expiration actions @@ -5681,17 +5820,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. -""" -function put_bucket_lifecycle_configuration( +- `"x-amz-transition-default-minimum-object-size"`: Indicates which default minimum object + size behavior is applied to the lifecycle configuration. all_storage_classes_128K - + Objects smaller than 128 KB will not transition to any storage class by default. + varies_by_storage_class - Objects smaller than 128 KB will transition to Glacier Flexible + Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes + will prevent transitions smaller than 128 KB. To customize the minimum object size for + any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or + ObjectSizeLessThan in the body of your transition rule. Custom filters always take + precedence over the default transition behavior. +""" +put_bucket_lifecycle_configuration( Bucket; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?lifecycle"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?lifecycle"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_lifecycle_configuration( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5759,17 +5905,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_logging( +put_bucket_logging( Bucket, BucketLoggingStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?logging", + Dict{String,Any}("BucketLoggingStatus" => BucketLoggingStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?logging", - Dict{String,Any}("BucketLoggingStatus" => BucketLoggingStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_logging( Bucket, BucketLoggingStatus, @@ -5824,17 +5968,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function put_bucket_metrics_configuration( +put_bucket_metrics_configuration( Bucket, MetricsConfiguration, id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?metrics", + Dict{String,Any}("MetricsConfiguration" => MetricsConfiguration, "id" => id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?metrics", - Dict{String,Any}("MetricsConfiguration" => MetricsConfiguration, "id" => id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_metrics_configuration( Bucket, MetricsConfiguration, @@ -5886,17 +6028,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_notification( +put_bucket_notification( Bucket, NotificationConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?notification", + Dict{String,Any}("NotificationConfiguration" => NotificationConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?notification", - Dict{String,Any}("NotificationConfiguration" => NotificationConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_notification( Bucket, NotificationConfiguration, @@ -5966,17 +6106,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-skip-destination-validation"`: Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. True or false value. """ -function put_bucket_notification_configuration( +put_bucket_notification_configuration( Bucket, NotificationConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?notification", + Dict{String,Any}("NotificationConfiguration" => NotificationConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?notification", - Dict{String,Any}("NotificationConfiguration" => NotificationConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_notification_configuration( Bucket, NotificationConfiguration, @@ -6024,17 +6162,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function put_bucket_ownership_controls( +put_bucket_ownership_controls( Bucket, OwnershipControls; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?ownershipControls", + Dict{String,Any}("OwnershipControls" => OwnershipControls); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?ownershipControls", - Dict{String,Any}("OwnershipControls" => OwnershipControls); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_ownership_controls( Bucket, OwnershipControls, @@ -6120,26 +6256,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For the x-amz-checksum-algorithm - header, replace algorithm with the supported algorithm from the following list: CRC32 - CRC32C SHA1 SHA256 For more information, see Checking object integrity in the Amazon - S3 User Guide. If the individual checksum value you provide through + header, replace algorithm with the supported algorithm from the following list: CRC32 + CRC32C SHA1 SHA256 For more information, see Checking object integrity in + the Amazon S3 User Guide. If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm . For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance. """ -function put_bucket_policy( - Bucket, Policy; aws_config::AbstractAWSConfig=current_aws_config() +put_bucket_policy(Bucket, Policy; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "PUT", + "/$(Bucket)?policy", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?policy", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_policy( Bucket, Policy, @@ -6216,17 +6348,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_replication( +put_bucket_replication( Bucket, ReplicationConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?replication", + Dict{String,Any}("ReplicationConfiguration" => ReplicationConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?replication", - Dict{String,Any}("ReplicationConfiguration" => ReplicationConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_replication( Bucket, ReplicationConfiguration, @@ -6281,17 +6411,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_request_payment( +put_bucket_request_payment( Bucket, RequestPaymentConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?requestPayment", + Dict{String,Any}("RequestPaymentConfiguration" => RequestPaymentConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?requestPayment", - Dict{String,Any}("RequestPaymentConfiguration" => RequestPaymentConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_request_payment( Bucket, RequestPaymentConfiguration, @@ -6363,17 +6491,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_tagging( - Bucket, Tagging; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3( +put_bucket_tagging(Bucket, Tagging; aws_config::AbstractAWSConfig=current_aws_config()) = + s3( "PUT", "/$(Bucket)?tagging", Dict{String,Any}("Tagging" => Tagging); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_bucket_tagging( Bucket, Tagging, @@ -6393,11 +6518,14 @@ end put_bucket_versioning(bucket, versioning_configuration) put_bucket_versioning(bucket, versioning_configuration, params::Dict{String,<:Any}) - This operation is not supported by directory buckets. Sets the versioning state of an -existing bucket. You can set the versioning state with one of the following values: -Enabled—Enables versioning for the objects in the bucket. All objects added to the bucket -receive a unique version ID. Suspended—Disables versioning for the objects in the -bucket. All objects added to the bucket receive the version ID null. If the versioning + This operation is not supported by directory buckets. When you enable versioning on a +bucket for the first time, it might take a short amount of time for the change to be fully +propagated. We recommend that you wait for 15 minutes after enabling versioning before +issuing write operations (PUT or DELETE) on objects in the bucket. Sets the versioning +state of an existing bucket. You can set the versioning state with one of the following +values: Enabled—Enables versioning for the objects in the bucket. All objects added to +the bucket receive a unique version ID. Suspended—Disables versioning for the objects in +the bucket. All objects added to the bucket receive the version ID null. If the versioning state has never been set on a bucket, it has no versioning state; a GetBucketVersioning request does not return a versioning state value. In order to enable MFA Delete, you must be the bucket owner. If you are the bucket owner and want to enable MFA Delete in the @@ -6436,17 +6564,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_versioning( +put_bucket_versioning( Bucket, VersioningConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?versioning", + Dict{String,Any}("VersioningConfiguration" => VersioningConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?versioning", - Dict{String,Any}("VersioningConfiguration" => VersioningConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_versioning( Bucket, VersioningConfiguration, @@ -6517,17 +6643,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_bucket_website( +put_bucket_website( Bucket, WebsiteConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)?website", + Dict{String,Any}("WebsiteConfiguration" => WebsiteConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?website", - Dict{String,Any}("WebsiteConfiguration" => WebsiteConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_website( Bucket, WebsiteConfiguration, @@ -6591,7 +6715,9 @@ your request header, you can make API requests to this operation. After the sess expires, you make another CreateSession API call to generate a new session token for use. Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about -authorization, see CreateSession . Data integrity with Content-MD5 General purpose +authorization, see CreateSession . If the object is encrypted with SSE-KMS, you must also +have the kms:GenerateDataKey and kms:Decrypt permissions in IAM identity-based policies and +KMS key policies for the KMS key. Data integrity with Content-MD5 General purpose bucket - To ensure that data is not corrupted traversing the network, use the Content-MD5 header. When you use this header, Amazon S3 checks the object against the provided MD5 value and, if they do not match, Amazon S3 returns an error. Alternatively, when the @@ -6645,15 +6771,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more - information about REST request authentication, see REST Authentication. The Content-MD5 - header is required for any request to upload an object with a retention period configured - using Amazon S3 Object Lock. For more information about Amazon S3 Object Lock, see Amazon - S3 Object Lock Overview in the Amazon S3 User Guide. This functionality is not supported - for directory buckets. + information about REST request authentication, see REST Authentication. The Content-MD5 or + x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a + retention period configured using Amazon S3 Object Lock. For more information, see + Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide. This + functionality is not supported for directory buckets. - `"Content-Type"`: A standard MIME type describing the format of the contents. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type. - `"Expires"`: The date and time at which the object is no longer cacheable. For more information, see https://www.rfc-editor.org/rfc/rfc7234#section-5.3. +- `"If-None-Match"`: Uploads the object only if the object key name does not already exist + in the bucket specified. Otherwise, Amazon S3 returns a 412 Precondition Failed error. If a + conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict + response. On a 409 failure you should retry the upload. Expects the '*' (asterisk) + character. For more information about conditional requests, see RFC 7232, or Conditional + requests in the Amazon S3 User Guide. - `"x-amz-acl"`: The canned ACL to apply to the object. For more information, see Canned ACL in the Amazon S3 User Guide. When adding a new object, you can use headers to grant ACL-based permissions to individual Amazon Web Services accounts or to predefined groups @@ -6672,11 +6804,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys directory buckets. This functionality is not supported for Amazon S3 on Outposts. - `"x-amz-checksum-crc32"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the - base64-encoded, 32-bit CRC32 checksum of the object. For more information, see Checking + base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide. - `"x-amz-checksum-crc32c"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the - base64-encoded, 32-bit CRC32C checksum of the object. For more information, see Checking + base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide. - `"x-amz-checksum-sha1"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the @@ -6716,16 +6848,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For the x-amz-checksum-algorithm - header, replace algorithm with the supported algorithm from the following list: CRC32 - CRC32C SHA1 SHA256 For more information, see Checking object integrity in the Amazon - S3 User Guide. If the individual checksum value you provide through + header, replace algorithm with the supported algorithm from the following list: CRC32 + CRC32C SHA1 SHA256 For more information, see Checking object integrity in + the Amazon S3 User Guide. If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm - . For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default + . The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to + upload an object with a retention period configured using Amazon S3 Object Lock. For more + information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User + Guide. For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance. - `"x-amz-server-side-encryption"`: The server-side encryption algorithm that was used when - you store this object in Amazon S3 (for example, AES256, aws:kms, aws:kms:dsse). General + you store this object in Amazon S3 (for example, AES256, aws:kms, aws:kms:dsse). General purpose buckets - You have four mutually exclusive options to protect data using server-side encryption in Amazon S3, depending on how you choose to manage the encryption keys. Specifically, the encryption key options are Amazon S3 managed keys (SSE-S3), Amazon @@ -6733,30 +6868,71 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys encrypts data with server-side encryption by using Amazon S3 managed keys (SSE-S3) by default. You can optionally tell Amazon S3 to encrypt data at rest by using server-side encryption with other key options. For more information, see Using Server-Side Encryption - in the Amazon S3 User Guide. Directory buckets - For directory buckets, only the - server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) value is supported. -- `"x-amz-server-side-encryption-aws-kms-key-id"`: If x-amz-server-side-encryption has a - valid value of aws:kms or aws:kms:dsse, this header specifies the ID (Key ID, Key ARN, or - Key Alias) of the Key Management Service (KMS) symmetric encryption customer managed key - that was used for the object. If you specify x-amz-server-side-encryption:aws:kms or - x-amz-server-side-encryption:aws:kms:dsse, but do not provide - x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon Web Services managed - key (aws/s3) to protect the data. If the KMS key does not exist in the same account that's - issuing the command, you must use the full ARN and not just the ID. This functionality is - not supported for directory buckets. + in the Amazon S3 User Guide. Directory buckets - For directory buckets, there are only + two supported options for server-side encryption: server-side encryption with Amazon S3 + managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) + (aws:kms). We recommend that the bucket's default encryption uses the desired encryption + configuration and you don't override the bucket default encryption in your CreateSession + requests or PUT object requests. Then, new objects are automatically encrypted with the + desired encryption settings. For more information, see Protecting data with server-side + encryption in the Amazon S3 User Guide. For more information about the encryption + overriding behaviors in directory buckets, see Specifying server-side encryption with KMS + for new object uploads. In the Zonal endpoint API calls (except CopyObject and + UploadPartCopy) using the REST API, the encryption request headers must match the + encryption settings that are specified in the CreateSession request. You can't override the + values of the encryption settings (x-amz-server-side-encryption, + x-amz-server-side-encryption-aws-kms-key-id, x-amz-server-side-encryption-context, and + x-amz-server-side-encryption-bucket-key-enabled) that are specified in the CreateSession + request. You don't need to explicitly specify these encryption settings values in Zonal + endpoint API calls, and Amazon S3 will use the encryption settings values from the + CreateSession request to protect new objects in the directory bucket. When you use the + CLI or the Amazon Web Services SDKs, for CreateSession, the session token refreshes + automatically to avoid service interruptions when a session expires. The CLI or the Amazon + Web Services SDKs use the bucket's default encryption configuration for the CreateSession + request. It's not supported to override the encryption settings values in the CreateSession + request. So in the Zonal endpoint API calls (except CopyObject and UploadPartCopy), the + encryption request headers must match the default encryption configuration of the directory + bucket. +- `"x-amz-server-side-encryption-aws-kms-key-id"`: Specifies the KMS key ID (Key ID, Key + ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same + account that's issuing the command, you must use the full Key ARN not the Key ID. General + purpose buckets - If you specify x-amz-server-side-encryption with aws:kms or aws:kms:dsse, + this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you + specify x-amz-server-side-encryption:aws:kms or x-amz-server-side-encryption:aws:kms:dsse, + but do not provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon + Web Services managed key (aws/s3) to protect the data. Directory buckets - If you specify + x-amz-server-side-encryption with aws:kms, the x-amz-server-side-encryption-aws-kms-key-id + header is implicitly assigned the ID of the KMS symmetric encryption customer managed key + that's configured for your directory bucket's default encryption setting. If you want to + specify the x-amz-server-side-encryption-aws-kms-key-id header explicitly, you can only + specify it with the ID (Key ID or Key ARN) of the KMS customer managed key that's + configured for your directory bucket's default encryption setting. Otherwise, you get an + HTTP 400 Bad Request error. Only use the key ID or key ARN. The key alias format of the KMS + key isn't supported. Your SSE-KMS configuration can only support 1 customer managed key per + directory bucket for the lifetime of the bucket. The Amazon Web Services managed key + (aws/s3) isn't supported. - `"x-amz-server-side-encryption-bucket-key-enabled"`: Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management - Service (KMS) keys (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 - Bucket Key for object encryption with SSE-KMS. Specifying this header with a PUT action - doesn’t affect bucket-level settings for S3 Bucket Key. This functionality is not - supported for directory buckets. + Service (KMS) keys (SSE-KMS). General purpose buckets - Setting this header to true causes + Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Also, specifying this + header with a PUT action doesn't affect bucket-level settings for S3 Bucket Key. Directory + buckets - S3 Bucket Keys are always enabled for GET and PUT operations in a directory + bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS + encrypted objects from general purpose buckets to directory buckets, from directory buckets + to general purpose buckets, or between directory buckets, through CopyObject, + UploadPartCopy, the Copy operation in Batch Operations, or the import jobs. In this case, + Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object. - `"x-amz-server-side-encryption-context"`: Specifies the Amazon Web Services KMS - Encryption Context to use for object encryption. The value of this header is a - base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs. This - value is stored as object metadata and automatically gets passed on to Amazon Web Services - KMS for future GetObject or CopyObject operations on this object. This value must be - explicitly added during CopyObject operations. This functionality is not supported for - directory buckets. + Encryption Context as an additional encryption context to use for object encryption. The + value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the + encryption context as key-value pairs. This value is stored as object metadata and + automatically gets passed on to Amazon Web Services KMS for future GetObject operations on + this object. General purpose buckets - This value must be explicitly added during + CopyObject operations if you want an additional encryption context for your object. For + more information, see Encryption context in the Amazon S3 User Guide. Directory buckets - + You can optionally provide an explicit encryption context value. The value must match the + default encryption context - the bucket Amazon Resource Name (ARN). An additional + encryption context value is not supported. - `"x-amz-server-side-encryption-customer-algorithm"`: Specifies the algorithm to use when encrypting the object (for example, AES256). This functionality is not supported for directory buckets. @@ -6791,11 +6967,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Website Page Redirects in the Amazon S3 User Guide. This functionality is not supported for directory buckets. """ -function put_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "PUT", "/$(Bucket)/$(Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +put_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = + s3("PUT", "/$(Bucket)/$(Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function put_object( Bucket, Key, @@ -6930,14 +7103,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_object_acl(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "PUT", - "/$(Bucket)/$(Key)?acl"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_object_acl(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "PUT", + "/$(Bucket)/$(Key)?acl"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_object_acl( Bucket, Key, @@ -6993,16 +7164,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_object_legal_hold( - Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config() +put_object_legal_hold(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "PUT", + "/$(Bucket)/$(Key)?legal-hold"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)/$(Key)?legal-hold"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_object_legal_hold( Bucket, Key, @@ -7054,16 +7221,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_object_lock_configuration( - Bucket; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3( +put_object_lock_configuration(Bucket; aws_config::AbstractAWSConfig=current_aws_config()) = + s3( "PUT", "/$(Bucket)?object-lock"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_object_lock_configuration( Bucket, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7122,16 +7286,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_object_retention( - Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config() +put_object_retention(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "PUT", + "/$(Bucket)/$(Key)?retention"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)/$(Key)?retention"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_object_retention( Bucket, Key, @@ -7206,17 +7366,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_object_tagging( +put_object_tagging( Bucket, Key, Tagging; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)/$(Key)?tagging", + Dict{String,Any}("Tagging" => Tagging); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)/$(Key)?tagging", - Dict{String,Any}("Tagging" => Tagging); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_object_tagging( Bucket, Key, @@ -7274,21 +7432,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function put_public_access_block( +put_public_access_block( Bucket, PublicAccessBlockConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3( + "PUT", + "/$(Bucket)?publicAccessBlock", + Dict{String,Any}("PublicAccessBlockConfiguration" => PublicAccessBlockConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)?publicAccessBlock", - Dict{String,Any}( - "PublicAccessBlockConfiguration" => PublicAccessBlockConfiguration - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_public_access_block( Bucket, PublicAccessBlockConfiguration, @@ -7425,14 +7579,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys in the Amazon S3 User Guide. If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter. """ -function restore_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) - return s3( - "POST", - "/$(Bucket)/$(Key)?restore"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +restore_object(Bucket, Key; aws_config::AbstractAWSConfig=current_aws_config()) = s3( + "POST", + "/$(Bucket)/$(Key)?restore"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function restore_object( Bucket, Key, @@ -7535,7 +7687,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide. """ -function select_object_content( +select_object_content( Bucket, Expression, ExpressionType, @@ -7543,20 +7695,18 @@ function select_object_content( Key, OutputSerialization; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3( + "POST", + "/$(Bucket)/$(Key)?select&select-type=2", + Dict{String,Any}( + "Expression" => Expression, + "ExpressionType" => ExpressionType, + "InputSerialization" => InputSerialization, + "OutputSerialization" => OutputSerialization, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "POST", - "/$(Bucket)/$(Key)?select&select-type=2", - Dict{String,Any}( - "Expression" => Expression, - "ExpressionType" => ExpressionType, - "InputSerialization" => InputSerialization, - "OutputSerialization" => OutputSerialization, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function select_object_content( Bucket, Expression, @@ -7612,8 +7762,16 @@ API operation to the Zonal endpoint. These endpoints support virtual-hosted-styl in the format https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style requests are not supported. For more information, see Regional and Zonal endpoints in the Amazon S3 User Guide. Permissions General purpose bucket permissions -- For information on the permissions required to use the multipart upload API, see -Multipart Upload and Permissions in the Amazon S3 User Guide. Directory bucket +- To perform a multipart upload with encryption using an Key Management Service key, the +requester must have permission to the kms:Decrypt and kms:GenerateDataKey actions on the +key. The requester must also have permissions for the kms:GenerateDataKey action for the +CreateMultipartUpload API. Then, the requester needs permissions for the kms:Decrypt action +on the UploadPart and UploadPartCopy APIs. These permissions are required because Amazon S3 +must decrypt and read data from the encrypted file parts before it completes the multipart +upload. For more information about KMS permissions, see Protecting data using server-side +encryption with KMS in the Amazon S3 User Guide. For information about the permissions +required to use the multipart upload API, see Multipart upload and permissions and +Multipart upload API and permissions in the Amazon S3 User Guide. Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the CreateSession API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a @@ -7623,8 +7781,10 @@ can make API requests to this operation. After the session token expires, you ma CreateSession API call to generate a new session token for use. Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see -CreateSession . Data integrity General purpose bucket - To ensure that data is not -corrupted traversing the network, specify the Content-MD5 header in the upload part +CreateSession . If the object is encrypted with SSE-KMS, you must also have the +kms:GenerateDataKey and kms:Decrypt permissions in IAM identity-based policies and KMS key +policies for the KMS key. Data integrity General purpose bucket - To ensure that data +is not corrupted traversing the network, specify the Content-MD5 header in the upload part request. Amazon S3 checks the part data against the provided MD5 value. If they do not match, Amazon S3 returns an error. If the upload request is signed with Signature Version 4, then Amazon Web Services S3 uses the x-amz-content-sha256 header as a checksum instead @@ -7649,16 +7809,17 @@ server-side encryption using a customer-provided encryption key (SSE-C) in your multipart upload request, you must provide identical encryption information in each part upload using the following request headers. x-amz-server-side-encryption-customer-algorithm x-amz-server-side-encryption-customer-key - x-amz-server-side-encryption-customer-key-MD5 Directory bucket - For directory -buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) is -supported. For more information, see Using Server-Side Encryption in the Amazon S3 User -Guide. Special errors Error Code: NoSuchUpload Description: The specified multipart -upload does not exist. The upload ID might be invalid, or the multipart upload might have -been aborted or completed. HTTP Status Code: 404 Not Found SOAP Fault Code Prefix: -Client HTTP Host header syntax Directory buckets - The HTTP Host header syntax is -Bucket_name.s3express-az_id.region.amazonaws.com. The following operations are related to -UploadPart: CreateMultipartUpload CompleteMultipartUpload AbortMultipartUpload - ListParts ListMultipartUploads + x-amz-server-side-encryption-customer-key-MD5 For more information, see Using +Server-Side Encryption in the Amazon S3 User Guide. Directory buckets - For directory +buckets, there are only two supported options for server-side encryption: server-side +encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with +KMS keys (SSE-KMS) (aws:kms). Special errors Error Code: NoSuchUpload Description: +The specified multipart upload does not exist. The upload ID might be invalid, or the +multipart upload might have been aborted or completed. HTTP Status Code: 404 Not Found +SOAP Fault Code Prefix: Client HTTP Host header syntax Directory buckets - The HTTP +Host header syntax is Bucket_name.s3express-az_id.region.amazonaws.com. The following +operations are related to UploadPart: CreateMultipartUpload CompleteMultipartUpload + AbortMultipartUpload ListParts ListMultipartUploads # Arguments - `bucket`: The name of the bucket to which the multipart upload was initiated. Directory @@ -7698,11 +7859,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys lock parameters are specified. This functionality is not supported for directory buckets. - `"x-amz-checksum-crc32"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the - base64-encoded, 32-bit CRC32 checksum of the object. For more information, see Checking + base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide. - `"x-amz-checksum-crc32c"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the - base64-encoded, 32-bit CRC32C checksum of the object. For more information, see Checking + base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide. - `"x-amz-checksum-sha1"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the @@ -7739,17 +7900,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys integrity check to ensure that the encryption key was transmitted without error. This functionality is not supported for directory buckets. """ -function upload_part( +upload_part( Bucket, Key, partNumber, uploadId; aws_config::AbstractAWSConfig=current_aws_config() +) = s3( + "PUT", + "/$(Bucket)/$(Key)", + Dict{String,Any}("partNumber" => partNumber, "uploadId" => uploadId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)/$(Key)", - Dict{String,Any}("partNumber" => partNumber, "uploadId" => uploadId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_part( Bucket, Key, @@ -7806,33 +7965,52 @@ permissions in a policy based on the bucket types of your source bucket and dest bucket in an UploadPartCopy operation. If the source object is in a general purpose bucket, you must have the s3:GetObject permission to read the source object that is being copied. If the destination bucket is a general purpose bucket, you must have the -s3:PutObject permission to write the object copy to the destination bucket. For -information about permissions required to use the multipart upload API, see Multipart -Upload and Permissions in the Amazon S3 User Guide. Directory bucket permissions - You -must have permissions in a bucket policy or an IAM identity-based policy based on the -source and destination bucket types in an UploadPartCopy operation. If the source object -that you want to copy is in a directory bucket, you must have the s3express:CreateSession -permission in the Action element of a policy to read the object . By default, the session -is in the ReadWrite mode. If you want to restrict the access, you can explicitly set the -s3express:SessionMode condition key to ReadOnly on the copy source bucket. If the copy -destination is a directory bucket, you must have the s3express:CreateSession permission -in the Action element of a policy to write the object to the destination. The -s3express:SessionMode condition key cannot be set to ReadOnly on the copy destination. -For example policies, see Example bucket policies for S3 Express One Zone and Amazon Web -Services Identity and Access Management (IAM) identity-based policies for S3 Express One -Zone in the Amazon S3 User Guide. Encryption General purpose buckets - For -information about using server-side encryption with customer-provided encryption keys with -the UploadPartCopy operation, see CopyObject and UploadPart. Directory buckets - For -directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) -(AES256) is supported. Special errors Error Code: NoSuchUpload Description: The -specified multipart upload does not exist. The upload ID might be invalid, or the multipart -upload might have been aborted or completed. HTTP Status Code: 404 Not Found Error -Code: InvalidRequest Description: The specified copy source is not supported as a -byte-range copy source. HTTP Status Code: 400 Bad Request HTTP Host header syntax -Directory buckets - The HTTP Host header syntax is -Bucket_name.s3express-az_id.region.amazonaws.com. The following operations are related to -UploadPartCopy: CreateMultipartUpload UploadPart CompleteMultipartUpload -AbortMultipartUpload ListParts ListMultipartUploads +s3:PutObject permission to write the object copy to the destination bucket. To perform +a multipart upload with encryption using an Key Management Service key, the requester must +have permission to the kms:Decrypt and kms:GenerateDataKey actions on the key. The +requester must also have permissions for the kms:GenerateDataKey action for the +CreateMultipartUpload API. Then, the requester needs permissions for the kms:Decrypt action +on the UploadPart and UploadPartCopy APIs. These permissions are required because Amazon S3 +must decrypt and read data from the encrypted file parts before it completes the multipart +upload. For more information about KMS permissions, see Protecting data using server-side +encryption with KMS in the Amazon S3 User Guide. For information about the permissions +required to use the multipart upload API, see Multipart upload and permissions and +Multipart upload API and permissions in the Amazon S3 User Guide. Directory bucket +permissions - You must have permissions in a bucket policy or an IAM identity-based policy +based on the source and destination bucket types in an UploadPartCopy operation. If the +source object that you want to copy is in a directory bucket, you must have the +s3express:CreateSession permission in the Action element of a policy to read the object. +By default, the session is in the ReadWrite mode. If you want to restrict the access, you +can explicitly set the s3express:SessionMode condition key to ReadOnly on the copy source +bucket. If the copy destination is a directory bucket, you must have the +s3express:CreateSession permission in the Action element of a policy to write the object +to the destination. The s3express:SessionMode condition key cannot be set to ReadOnly on +the copy destination. If the object is encrypted with SSE-KMS, you must also have the +kms:GenerateDataKey and kms:Decrypt permissions in IAM identity-based policies and KMS key +policies for the KMS key. For example policies, see Example bucket policies for S3 Express +One Zone and Amazon Web Services Identity and Access Management (IAM) identity-based +policies for S3 Express One Zone in the Amazon S3 User Guide. Encryption General +purpose buckets - For information about using server-side encryption with +customer-provided encryption keys with the UploadPartCopy operation, see CopyObject and +UploadPart. Directory buckets - For directory buckets, there are only two supported +options for server-side encryption: server-side encryption with Amazon S3 managed keys +(SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). For more +information, see Protecting data with server-side encryption in the Amazon S3 User Guide. +For directory buckets, when you perform a CreateMultipartUpload operation and an +UploadPartCopy operation, the request headers you provide in the CreateMultipartUpload +request must match the default encryption configuration of the destination bucket. S3 +Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose +buckets to directory buckets, from directory buckets to general purpose buckets, or between +directory buckets, through UploadPartCopy. In this case, Amazon S3 makes a call to KMS +every time a copy request is made for a KMS-encrypted object. Special errors Error +Code: NoSuchUpload Description: The specified multipart upload does not exist. The +upload ID might be invalid, or the multipart upload might have been aborted or completed. +HTTP Status Code: 404 Not Found Error Code: InvalidRequest Description: The +specified copy source is not supported as a byte-range copy source. HTTP Status Code: 400 +Bad Request HTTP Host header syntax Directory buckets - The HTTP Host header syntax +is Bucket_name.s3express-az_id.region.amazonaws.com. The following operations are +related to UploadPartCopy: CreateMultipartUpload UploadPart +CompleteMultipartUpload AbortMultipartUpload ListParts ListMultipartUploads # Arguments - `bucket`: The bucket name. Directory buckets - When you use this operation with a @@ -7958,26 +8136,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys owner. If the account ID that you provide does not match the actual owner of the source bucket, the request fails with the HTTP status code 403 Forbidden (access denied). """ -function upload_part_copy( +upload_part_copy( Bucket, Key, partNumber, uploadId, x_amz_copy_source; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3( + "PUT", + "/$(Bucket)/$(Key)", + Dict{String,Any}( + "partNumber" => partNumber, + "uploadId" => uploadId, + "headers" => Dict{String,Any}("x-amz-copy-source" => x_amz_copy_source), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "PUT", - "/$(Bucket)/$(Key)", - Dict{String,Any}( - "partNumber" => partNumber, - "uploadId" => uploadId, - "headers" => Dict{String,Any}("x-amz-copy-source" => x_amz_copy_source), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upload_part_copy( Bucket, Key, @@ -8077,7 +8253,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-fwd-header-accept-ranges"`: Indicates that a range of bytes was specified. - `"x-amz-fwd-header-x-amz-checksum-crc32"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This - specifies the base64-encoded, 32-bit CRC32 checksum of the object returned by the Object + specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object @@ -8085,7 +8261,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If you supply multiple checksum headers, this request will fail. - `"x-amz-fwd-header-x-amz-checksum-crc32c"`: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This - specifies the base64-encoded, 32-bit CRC32C checksum of the object returned by the Object + specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object @@ -8160,24 +8336,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Internal Server Error 503 - Service Unavailable - `"x-amz-meta-"`: A map of metadata to store with the object in S3. """ -function write_get_object_response( +write_get_object_response( x_amz_request_route, x_amz_request_token; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3( + "POST", + "/WriteGetObjectResponse", + Dict{String,Any}( + "headers" => Dict{String,Any}( + "x-amz-request-route" => x_amz_request_route, + "x-amz-request-token" => x_amz_request_token, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3( - "POST", - "/WriteGetObjectResponse", - Dict{String,Any}( - "headers" => Dict{String,Any}( - "x-amz-request-route" => x_amz_request_route, - "x-amz-request-token" => x_amz_request_token, - ), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function write_get_object_response( x_amz_request_route, x_amz_request_token, diff --git a/src/services/s3_control.jl b/src/services/s3_control.jl index 16b4f0db7..af9124774 100644 --- a/src/services/s3_control.jl +++ b/src/services/s3_control.jl @@ -23,23 +23,21 @@ sso:PutApplicationGrant, and sso:PutApplicationAuthenticationMethod. IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the ListInstances API operation to retrieve a list of your Identity Center instances and their ARNs. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function associate_access_grants_identity_center( +associate_access_grants_identity_center( IdentityCenterArn, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "POST", + "/v20180820/accessgrantsinstance/identitycenter", + Dict{String,Any}( + "IdentityCenterArn" => IdentityCenterArn, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/accessgrantsinstance/identitycenter", - Dict{String,Any}( - "IdentityCenterArn" => IdentityCenterArn, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_access_grants_identity_center( IdentityCenterArn, x_amz_account_id, @@ -93,7 +91,7 @@ identitystore:DescribeUser For directory groups - identitystore:DescribeGroup to one of the following values: READ – Grant read-only access to the S3 data. WRITE – Grant write-only access to the S3 data. READWRITE – Grant both read and write access to the S3 data. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -112,26 +110,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. """ -function create_access_grant( +create_access_grant( AccessGrantsLocationId, Grantee, Permission, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "POST", + "/v20180820/accessgrantsinstance/grant", + Dict{String,Any}( + "AccessGrantsLocationId" => AccessGrantsLocationId, + "Grantee" => Grantee, + "Permission" => Permission, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/accessgrantsinstance/grant", - Dict{String,Any}( - "AccessGrantsLocationId" => AccessGrantsLocationId, - "Grantee" => Grantee, - "Permission" => Permission, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_grant( AccessGrantsLocationId, Grantee, @@ -172,7 +168,7 @@ instance, you must also have the sso:DescribeInstance, sso:CreateApplication, sso:PutApplicationGrant, and sso:PutApplicationAuthenticationMethod permissions. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -187,19 +183,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Grants instance. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. """ -function create_access_grants_instance( +create_access_grants_instance( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "POST", + "/v20180820/accessgrantsinstance", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/accessgrantsinstance", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_grants_instance( x_amz_account_id, params::AbstractDict{String}; @@ -247,7 +239,7 @@ iam:PassRole string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with the engineering/ prefix or object key names that start with the marketing/campaigns/ prefix. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -255,24 +247,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Grants location. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources. """ -function create_access_grants_location( +create_access_grants_location( IAMRoleArn, LocationScope, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "POST", + "/v20180820/accessgrantsinstance/location", + Dict{String,Any}( + "IAMRoleArn" => IAMRoleArn, + "LocationScope" => LocationScope, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/accessgrantsinstance/location", - Dict{String,Any}( - "IAMRoleArn" => IAMRoleArn, - "LocationScope" => LocationScope, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_grants_location( IAMRoleArn, LocationScope, @@ -344,20 +334,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys access point to requests from the specified virtual private cloud (VPC). This is required for creating an access point for Amazon S3 on Outposts buckets. """ -function create_access_point( +create_access_point( Bucket, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/accesspoint/$(name)", + Dict{String,Any}( + "Bucket" => Bucket, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/accesspoint/$(name)", - Dict{String,Any}( - "Bucket" => Bucket, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_point( Bucket, name, @@ -400,23 +388,21 @@ GetAccessPointForObjectLambda ListAccessPointsForObjectLambda Lambda Access Point. """ -function create_access_point_for_object_lambda( +create_access_point_for_object_lambda( Configuration, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "PUT", + "/v20180820/accesspointforobjectlambda/$(name)", + Dict{String,Any}( + "Configuration" => Configuration, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/accesspointforobjectlambda/$(name)", - Dict{String,Any}( - "Configuration" => Configuration, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_point_for_object_lambda( Configuration, name, @@ -484,14 +470,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-outpost-id"`: The ID of the Outposts where the bucket is being created. This ID is required by Amazon S3 on Outposts buckets. """ -function create_bucket(name; aws_config::AbstractAWSConfig=current_aws_config()) - return s3_control( - "PUT", - "/v20180820/bucket/$(name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_bucket(name; aws_config::AbstractAWSConfig=current_aws_config()) = s3_control( + "PUT", + "/v20180820/bucket/$(name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_bucket( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -541,7 +525,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A set of tags to associate with the S3 Batch Operations job. This is an optional parameter. """ -function create_job( +create_job( ClientRequestToken, Operation, Priority, @@ -549,22 +533,20 @@ function create_job( RoleArn, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "POST", + "/v20180820/jobs", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "Operation" => Operation, + "Priority" => Priority, + "Report" => Report, + "RoleArn" => RoleArn, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/jobs", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "Operation" => Operation, - "Priority" => Priority, - "Report" => Report, - "RoleArn" => RoleArn, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_job( ClientRequestToken, Operation, @@ -623,24 +605,22 @@ GetMultiRegionAccessPoint ListMultiRegionAccessPoints buckets. """ -function create_multi_region_access_point( +create_multi_region_access_point( ClientToken, Details, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "POST", + "/v20180820/async-requests/mrap/create", + Dict{String,Any}( + "ClientToken" => ClientToken, + "Details" => Details, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/async-requests/mrap/create", - Dict{String,Any}( - "ClientToken" => ClientToken, - "Details" => Details, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_multi_region_access_point( ClientToken, Details, @@ -693,20 +673,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional. """ -function create_storage_lens_group( +create_storage_lens_group( StorageLensGroup, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "POST", + "/v20180820/storagelensgroup", + Dict{String,Any}( + "StorageLensGroup" => StorageLensGroup, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/storagelensgroup", - Dict{String,Any}( - "StorageLensGroup" => StorageLensGroup, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_storage_lens_group( StorageLensGroup, x_amz_account_id, @@ -742,22 +720,18 @@ must have the s3:DeleteAccessGrant permission to use this operation. # Arguments - `id`: The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function delete_access_grant( +delete_access_grant( id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accessgrantsinstance/grant/$(id)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accessgrantsinstance/grant/$(id)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_grant( id, x_amz_account_id, @@ -794,22 +768,18 @@ AssociateAccessGrantsIdentityCenter and DissociateAccessGrantsIdentityCenter. P You must have the s3:DeleteAccessGrantsInstance permission to use this operation. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function delete_access_grants_instance( +delete_access_grants_instance( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accessgrantsinstance", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accessgrantsinstance", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_grants_instance( x_amz_account_id, params::AbstractDict{String}; @@ -843,22 +813,18 @@ Permissions You must have the s3:DeleteAccessGrantsInstanceResourcePolicy permi use this operation. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function delete_access_grants_instance_resource_policy( +delete_access_grants_instance_resource_policy( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accessgrantsinstance/resourcepolicy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accessgrantsinstance/resourcepolicy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_grants_instance_resource_policy( x_amz_account_id, params::AbstractDict{String}; @@ -897,22 +863,18 @@ this operation. Grants instance. S3 Access Grants assigned this ID when you registered the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function delete_access_grants_location( +delete_access_grants_location( id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accessgrantsinstance/location/$(id)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accessgrantsinstance/location/$(id)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_grants_location( id, x_amz_account_id, @@ -963,19 +925,15 @@ following actions are related to DeleteAccessPoint: CreateAccessPoint Get specified access point. """ -function delete_access_point( +delete_access_point( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accesspoint/$(name)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accesspoint/$(name)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_point( name, x_amz_account_id, @@ -1014,19 +972,15 @@ ListAccessPointsForObjectLambda Access Point. """ -function delete_access_point_for_object_lambda( +delete_access_point_for_object_lambda( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accesspointforobjectlambda/$(name)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accesspointforobjectlambda/$(name)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_point_for_object_lambda( name, x_amz_account_id, @@ -1076,19 +1030,15 @@ PutAccessPointPolicy GetAccessPointPolicy - `x-amz-account-id`: The account ID for the account that owns the specified access point. """ -function delete_access_point_policy( +delete_access_point_policy( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accesspoint/$(name)/policy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accesspoint/$(name)/policy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_point_policy( name, x_amz_account_id, @@ -1127,19 +1077,15 @@ PutAccessPointPolicyForObjectLambda Access Point. """ -function delete_access_point_policy_for_object_lambda( +delete_access_point_policy_for_object_lambda( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accesspointforobjectlambda/$(name)/policy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accesspointforobjectlambda/$(name)/policy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_point_policy_for_object_lambda( name, x_amz_account_id, @@ -1192,10 +1138,8 @@ DeleteObject - `x-amz-account-id`: The account ID that owns the Outposts bucket. """ -function delete_bucket( - name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3_control( +delete_bucket(name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) = + s3_control( "DELETE", "/v20180820/bucket/$(name)", Dict{String,Any}( @@ -1204,7 +1148,6 @@ function delete_bucket( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_bucket( name, x_amz_account_id, @@ -1263,19 +1206,15 @@ actions include: PutBucketLifecycleConfiguration GetBucketLifecycleConfig - `x-amz-account-id`: The account ID of the lifecycle configuration to delete. """ -function delete_bucket_lifecycle_configuration( +delete_bucket_lifecycle_configuration( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/bucket/$(name)/lifecycleconfiguration", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/bucket/$(name)/lifecycleconfiguration", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_lifecycle_configuration( name, x_amz_account_id, @@ -1338,19 +1277,15 @@ following actions are related to DeleteBucketPolicy: GetBucketPolicy PutB - `x-amz-account-id`: The account ID of the Outposts bucket. """ -function delete_bucket_policy( +delete_bucket_policy( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/bucket/$(name)/policy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/bucket/$(name)/policy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_policy( name, x_amz_account_id, @@ -1414,19 +1349,15 @@ DeleteBucketReplication: PutBucketReplication GetBucketReplication the replication configuration for. """ -function delete_bucket_replication( +delete_bucket_replication( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/bucket/$(name)/replication", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/bucket/$(name)/replication", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_replication( name, x_amz_account_id, @@ -1481,19 +1412,15 @@ PutBucketTagging be removed. """ -function delete_bucket_tagging( +delete_bucket_tagging( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/bucket/$(name)/tagging", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/bucket/$(name)/tagging", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bucket_tagging( name, x_amz_account_id, @@ -1533,19 +1460,15 @@ PutJobTagging Operations job. """ -function delete_job_tagging( +delete_job_tagging( id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/jobs/$(id)/tagging", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/jobs/$(id)/tagging", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_job_tagging( id, x_amz_account_id, @@ -1594,24 +1517,22 @@ ListMultiRegionAccessPoints Access Point. """ -function delete_multi_region_access_point( +delete_multi_region_access_point( ClientToken, Details, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "POST", + "/v20180820/async-requests/mrap/delete", + Dict{String,Any}( + "ClientToken" => ClientToken, + "Details" => Details, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/async-requests/mrap/delete", - Dict{String,Any}( - "ClientToken" => ClientToken, - "Details" => Details, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_multi_region_access_point( ClientToken, Details, @@ -1652,19 +1573,15 @@ PutPublicAccessBlock PublicAccessBlock configuration you want to remove. """ -function delete_public_access_block( +delete_public_access_block( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/configuration/publicAccessBlock", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/configuration/publicAccessBlock", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_public_access_block( x_amz_account_id, params::AbstractDict{String}; @@ -1703,19 +1620,15 @@ S3 User Guide. - `x-amz-account-id`: The account ID of the requester. """ -function delete_storage_lens_configuration( +delete_storage_lens_configuration( storagelensid, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/storagelens/$(storagelensid)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/storagelens/$(storagelensid)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_storage_lens_configuration( storagelensid, x_amz_account_id, @@ -1755,19 +1668,15 @@ Amazon S3 User Guide. - `x-amz-account-id`: The account ID of the requester. """ -function delete_storage_lens_configuration_tagging( +delete_storage_lens_configuration_tagging( storagelensid, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/storagelens/$(storagelensid)/tagging", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/storagelens/$(storagelensid)/tagging", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_storage_lens_configuration_tagging( storagelensid, x_amz_account_id, @@ -1807,19 +1716,15 @@ Storage Lens error codes. group that you're trying to delete. """ -function delete_storage_lens_group( +delete_storage_lens_group( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/storagelensgroup/$(name)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/storagelensgroup/$(name)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_storage_lens_group( name, x_amz_account_id, @@ -1859,10 +1764,8 @@ UpdateJobStatus Operations job. """ -function describe_job( - id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3_control( +describe_job(id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) = + s3_control( "GET", "/v20180820/jobs/$(id)", Dict{String,Any}( @@ -1871,7 +1774,6 @@ function describe_job( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_job( id, x_amz_account_id, @@ -1915,19 +1817,15 @@ DeleteMultiRegionAccessPoint GetMultiRegionAccessPoint ListMultiRegionAc Access Point. """ -function describe_multi_region_access_point_operation( +describe_multi_region_access_point_operation( request_token, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/async-requests/mrap/$(request_token)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/async-requests/mrap/$(request_token)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_multi_region_access_point_operation( request_token, x_amz_account_id, @@ -1961,22 +1859,18 @@ permission to use this operation. Additional Permissions You must have the sso:DeleteApplication permission to use this operation. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function dissociate_access_grants_identity_center( +dissociate_access_grants_identity_center( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "DELETE", + "/v20180820/accessgrantsinstance/identitycenter", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/accessgrantsinstance/identitycenter", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function dissociate_access_grants_identity_center( x_amz_account_id, params::AbstractDict{String}; @@ -2009,13 +1903,11 @@ must have the s3:GetAccessGrant permission to use this operation. # Arguments - `id`: The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function get_access_grant( - id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3_control( +get_access_grant(id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) = + s3_control( "GET", "/v20180820/accessgrantsinstance/grant/$(id)", Dict{String,Any}( @@ -2024,7 +1916,6 @@ function get_access_grant( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_access_grant( id, x_amz_account_id, @@ -2054,24 +1945,22 @@ end Retrieves the S3 Access Grants instance for a Region in your account. Permissions You must have the s3:GetAccessGrantsInstance permission to use this operation. +GetAccessGrantsInstance is not supported for cross-account access. You can only call the +API from the account that owns the S3 Access Grants instance. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function get_access_grants_instance( +get_access_grants_instance( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accessgrantsinstance", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accessgrantsinstance", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_grants_instance( x_amz_account_id, params::AbstractDict{String}; @@ -2109,20 +1998,18 @@ s3:GetAccessGrantsInstanceForPrefix. - `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. """ -function get_access_grants_instance_for_prefix( +get_access_grants_instance_for_prefix( s3prefix, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accessgrantsinstance/prefix", + Dict{String,Any}( + "s3prefix" => s3prefix, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accessgrantsinstance/prefix", - Dict{String,Any}( - "s3prefix" => s3prefix, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_grants_instance_for_prefix( s3prefix, x_amz_account_id, @@ -2155,22 +2042,18 @@ Returns the resource policy of the S3 Access Grants instance. Permissions You the s3:GetAccessGrantsInstanceResourcePolicy permission to use this operation. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function get_access_grants_instance_resource_policy( +get_access_grants_instance_resource_policy( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accessgrantsinstance/resourcepolicy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accessgrantsinstance/resourcepolicy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_grants_instance_resource_policy( x_amz_account_id, params::AbstractDict{String}; @@ -2206,22 +2089,18 @@ this operation. this ID when you register the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function get_access_grants_location( +get_access_grants_location( id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accessgrantsinstance/location/$(id)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accessgrantsinstance/location/$(id)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_grants_location( id, x_amz_account_id, @@ -2273,19 +2152,15 @@ CreateAccessPoint DeleteAccessPoint ListAccessPoints specified access point. """ -function get_access_point( +get_access_point( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accesspoint/$(name)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accesspoint/$(name)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_point( name, x_amz_account_id, @@ -2324,19 +2199,15 @@ GetAccessPointConfigurationForObjectLambda: PutAccessPointConfigurationForObj Access Point. """ -function get_access_point_configuration_for_object_lambda( +get_access_point_configuration_for_object_lambda( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accesspointforobjectlambda/$(name)/configuration", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accesspointforobjectlambda/$(name)/configuration", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_point_configuration_for_object_lambda( name, x_amz_account_id, @@ -2375,19 +2246,15 @@ DeleteAccessPointForObjectLambda ListAccessPointsForObjectLambda Access Point. """ -function get_access_point_for_object_lambda( +get_access_point_for_object_lambda( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accesspointforobjectlambda/$(name)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accesspointforobjectlambda/$(name)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_point_for_object_lambda( name, x_amz_account_id, @@ -2432,19 +2299,15 @@ GetAccessPointPolicy: PutAccessPointPolicy DeleteAccessPointPolicy - `x-amz-account-id`: The account ID for the account that owns the specified access point. """ -function get_access_point_policy( +get_access_point_policy( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accesspoint/$(name)/policy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accesspoint/$(name)/policy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_point_policy( name, x_amz_account_id, @@ -2483,19 +2346,15 @@ PutAccessPointPolicyForObjectLambda Access Point. """ -function get_access_point_policy_for_object_lambda( +get_access_point_policy_for_object_lambda( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accesspointforobjectlambda/$(name)/policy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accesspointforobjectlambda/$(name)/policy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_point_policy_for_object_lambda( name, x_amz_account_id, @@ -2533,19 +2392,15 @@ in the Amazon S3 User Guide. - `x-amz-account-id`: The account ID for the account that owns the specified access point. """ -function get_access_point_policy_status( +get_access_point_policy_status( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accesspoint/$(name)/policyStatus", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accesspoint/$(name)/policyStatus", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_point_policy_status( name, x_amz_account_id, @@ -2582,19 +2437,15 @@ policy associated with an Object Lambda Access Point. Access Point. """ -function get_access_point_policy_status_for_object_lambda( +get_access_point_policy_status_for_object_lambda( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accesspointforobjectlambda/$(name)/policyStatus", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accesspointforobjectlambda/$(name)/policyStatus", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_point_policy_status_for_object_lambda( name, x_amz_account_id, @@ -2651,10 +2502,8 @@ PutObject CreateBucket DeleteBucket - `x-amz-account-id`: The Amazon Web Services account ID of the Outposts bucket. """ -function get_bucket( - name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3_control( +get_bucket(name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) = + s3_control( "GET", "/v20180820/bucket/$(name)", Dict{String,Any}( @@ -2663,7 +2512,6 @@ function get_bucket( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_bucket( name, x_amz_account_id, @@ -2724,19 +2572,15 @@ actions are related to GetBucketLifecycleConfiguration: PutBucketLifecycleCon - `x-amz-account-id`: The Amazon Web Services account ID of the Outposts bucket. """ -function get_bucket_lifecycle_configuration( +get_bucket_lifecycle_configuration( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/bucket/$(name)/lifecycleconfiguration", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/bucket/$(name)/lifecycleconfiguration", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_lifecycle_configuration( name, x_amz_account_id, @@ -2798,19 +2642,15 @@ PutBucketPolicy DeleteBucketPolicy - `x-amz-account-id`: The Amazon Web Services account ID of the Outposts bucket. """ -function get_bucket_policy( +get_bucket_policy( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/bucket/$(name)/policy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/bucket/$(name)/policy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_policy( name, x_amz_account_id, @@ -2877,19 +2717,15 @@ DeleteBucketReplication - `x-amz-account-id`: The Amazon Web Services account ID of the Outposts bucket. """ -function get_bucket_replication( +get_bucket_replication( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/bucket/$(name)/replication", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/bucket/$(name)/replication", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_replication( name, x_amz_account_id, @@ -2945,19 +2781,15 @@ DeleteBucketTagging - `x-amz-account-id`: The Amazon Web Services account ID of the Outposts bucket. """ -function get_bucket_tagging( +get_bucket_tagging( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/bucket/$(name)/tagging", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/bucket/$(name)/tagging", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_tagging( name, x_amz_account_id, @@ -3006,19 +2838,15 @@ PutBucketVersioning PutBucketLifecycleConfiguration GetBucketLifecycleCo - `x-amz-account-id`: The Amazon Web Services account ID of the S3 on Outposts bucket. """ -function get_bucket_versioning( +get_bucket_versioning( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/bucket/$(name)/versioning", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/bucket/$(name)/versioning", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bucket_versioning( name, x_amz_account_id, @@ -3062,7 +2890,7 @@ sts:SetSourceIdentity. - `target`: The S3 URI path of the data to which you are requesting temporary access credentials. If the requesting account has an access grant for this data, S3 Access Grants vends temporary access credentials in the response. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -3079,21 +2907,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the target data that you would like to access is a path to an object. Do not pass this value if the target data is a bucket or a bucket and a prefix. """ -function get_data_access( +get_data_access( permission, target, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accessgrantsinstance/dataaccess", + Dict{String,Any}( + "permission" => permission, + "target" => target, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accessgrantsinstance/dataaccess", - Dict{String,Any}( - "permission" => permission, - "target" => target, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_access( permission, target, @@ -3135,10 +2961,8 @@ Guide. Related actions include: CreateJob PutJobTagging DeleteJobTa Operations job. """ -function get_job_tagging( - id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3_control( +get_job_tagging(id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) = + s3_control( "GET", "/v20180820/jobs/$(id)/tagging", Dict{String,Any}( @@ -3147,7 +2971,6 @@ function get_job_tagging( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_job_tagging( id, x_amz_account_id, @@ -3193,19 +3016,15 @@ DescribeMultiRegionAccessPointOperation ListMultiRegionAccessPoints Access Point. """ -function get_multi_region_access_point( +get_multi_region_access_point( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/mrap/instances/$(name)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/mrap/instances/$(name)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_multi_region_access_point( name, x_amz_account_id, @@ -3250,19 +3069,15 @@ PutMultiRegionAccessPointPolicy Access Point. """ -function get_multi_region_access_point_policy( +get_multi_region_access_point_policy( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/mrap/instances/$(name)/policy", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/mrap/instances/$(name)/policy", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_multi_region_access_point_policy( name, x_amz_account_id, @@ -3307,19 +3122,15 @@ PutMultiRegionAccessPointPolicy Access Point. """ -function get_multi_region_access_point_policy_status( +get_multi_region_access_point_policy_status( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/mrap/instances/$(name)/policystatus", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/mrap/instances/$(name)/policystatus", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_multi_region_access_point_policy_status( name, x_amz_account_id, @@ -3359,19 +3170,15 @@ us-west-2 ap-southeast-2 ap-northeast-1 eu-west-1 Access Point. """ -function get_multi_region_access_point_routes( +get_multi_region_access_point_routes( mrap, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/mrap/instances/$(mrap)/routes", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/mrap/instances/$(mrap)/routes", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_multi_region_access_point_routes( mrap, x_amz_account_id, @@ -3409,19 +3216,15 @@ PutPublicAccessBlock PublicAccessBlock configuration you want to retrieve. """ -function get_public_access_block( +get_public_access_block( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/configuration/publicAccessBlock", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/configuration/publicAccessBlock", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_public_access_block( x_amz_account_id, params::AbstractDict{String}; @@ -3461,19 +3264,15 @@ User Guide. - `x-amz-account-id`: The account ID of the requester. """ -function get_storage_lens_configuration( +get_storage_lens_configuration( storagelensid, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/storagelens/$(storagelensid)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/storagelens/$(storagelensid)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_storage_lens_configuration( storagelensid, x_amz_account_id, @@ -3513,19 +3312,15 @@ Amazon S3 User Guide. - `x-amz-account-id`: The account ID of the requester. """ -function get_storage_lens_configuration_tagging( +get_storage_lens_configuration_tagging( storagelensid, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/storagelens/$(storagelensid)/tagging", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/storagelens/$(storagelensid)/tagging", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_storage_lens_configuration_tagging( storagelensid, x_amz_account_id, @@ -3566,19 +3361,15 @@ Amazon S3 Storage Lens error codes. group that you're trying to retrieve the details for. """ -function get_storage_lens_group( +get_storage_lens_group( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/storagelensgroup/$(name)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/storagelensgroup/$(name)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_storage_lens_group( name, x_amz_account_id, @@ -3610,7 +3401,7 @@ Returns the list of access grants in your S3 Access Grants instance. Permission have the s3:ListAccessGrants permission to use this operation. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -3642,10 +3433,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Grant write-only access to the S3 data. READWRITE – Grant both read and write access to the S3 data. """ -function list_access_grants( - x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3_control( +list_access_grants(x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) = + s3_control( "GET", "/v20180820/accessgrantsinstance/grants", Dict{String,Any}( @@ -3654,7 +3443,6 @@ function list_access_grants( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_access_grants( x_amz_account_id, params::AbstractDict{String}; @@ -3687,7 +3475,7 @@ instance per Region per account. Permissions You must have the s3:ListAccessGrantsInstances permission to use this operation. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -3698,19 +3486,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys into a subsequent List Access Grants Instances request in order to retrieve the next page of results. """ -function list_access_grants_instances( +list_access_grants_instances( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accessgrantsinstances", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accessgrantsinstances", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_access_grants_instances( x_amz_account_id, params::AbstractDict{String}; @@ -3741,7 +3525,7 @@ Returns a list of the locations registered in your S3 Access Grants instance. P You must have the s3:ListAccessGrantsLocations permission to use this operation. # Arguments -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -3758,19 +3542,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys into a subsequent List Access Grants Locations request in order to retrieve the next page of results. """ -function list_access_grants_locations( +list_access_grants_locations( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accessgrantsinstance/locations", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/accessgrantsinstance/locations", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_access_grants_locations( x_amz_account_id, params::AbstractDict{String}; @@ -3834,10 +3614,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys continuation token in the NextToken field, then providing that value here causes Amazon S3 to retrieve the next page of results. """ -function list_access_points( - x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3_control( +list_access_points(x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) = + s3_control( "GET", "/v20180820/accesspoint", Dict{String,Any}( @@ -3846,7 +3624,6 @@ function list_access_points( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_access_points( x_amz_account_id, params::AbstractDict{String}; @@ -3894,27 +3671,81 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this API, this field contains a continuation token that you can provide in subsequent calls to this API to retrieve additional access points. """ -function list_access_points_for_object_lambda( +list_access_points_for_object_lambda( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accesspointforobjectlambda", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_access_points_for_object_lambda( + x_amz_account_id, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return s3_control( "GET", "/v20180820/accesspointforobjectlambda", Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) + mergewith( + _merge, + Dict{String,Any}( + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function list_access_points_for_object_lambda( + +""" + list_caller_access_grants(x-amz-account-id) + list_caller_access_grants(x-amz-account-id, params::Dict{String,<:Any}) + +Returns a list of the access grants that were given to the caller using S3 Access Grants +and that allow the caller to access the S3 data of the Amazon Web Services account +specified in the request. Permissions You must have the s3:ListCallerAccessGrants +permission to use this operation. + +# Arguments +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"allowedByApplication"`: If this optional parameter is passed in the request, a filter + is applied to the results. The results will include only the access grants for the caller's + Identity Center application or for any other applications (ALL). +- `"grantscope"`: The S3 path of the data that you would like to access. Must start with + s3://. You can optionally pass only the beginning characters of a path, and S3 Access + Grants will search for all applicable grants for the path fragment. +- `"maxResults"`: The maximum number of access grants that you would like returned in the + List Caller Access Grants response. If the results include the pagination token NextToken, + make another call using the NextToken to determine if there are more results. +- `"nextToken"`: A pagination token to request the next page of results. Pass this value + into a subsequent List Caller Access Grants request in order to retrieve the next page of + results. +""" +list_caller_access_grants( + x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/accessgrantsinstance/caller/grants", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function list_caller_access_grants( x_amz_account_id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return s3_control( "GET", - "/v20180820/accesspointforobjectlambda", + "/v20180820/accessgrantsinstance/caller/grants", Dict{String,Any}( mergewith( _merge, @@ -3954,8 +3785,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon S3 returned in the NextToken element of the ListJobsResult from the previous List Jobs request. """ -function list_jobs(x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) - return s3_control( +list_jobs(x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config()) = + s3_control( "GET", "/v20180820/jobs", Dict{String,Any}( @@ -3964,7 +3795,6 @@ function list_jobs(x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_c aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_jobs( x_amz_account_id, params::AbstractDict{String}; @@ -4011,19 +3841,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Not currently used. Do not use this parameter. - `"nextToken"`: Not currently used. Do not use this parameter. """ -function list_multi_region_access_points( +list_multi_region_access_points( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/mrap/instances", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/mrap/instances", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_multi_region_access_points( x_amz_account_id, params::AbstractDict{String}; @@ -4066,19 +3892,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-outpost-id"`: The ID of the Outposts resource. This ID is required by Amazon S3 on Outposts buckets. """ -function list_regional_buckets( +list_regional_buckets( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/bucket", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/bucket", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_regional_buckets( x_amz_account_id, params::AbstractDict{String}; @@ -4119,19 +3941,15 @@ S3 User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: A pagination token to request the next page of results. """ -function list_storage_lens_configurations( +list_storage_lens_configurations( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/storagelens", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/storagelens", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_storage_lens_configurations( x_amz_account_id, params::AbstractDict{String}; @@ -4173,19 +3991,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results, or null if there are no more results. """ -function list_storage_lens_groups( +list_storage_lens_groups( x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/storagelensgroup", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/storagelensgroup", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_storage_lens_groups( x_amz_account_id, params::AbstractDict{String}; @@ -4229,19 +4043,15 @@ List of Amazon S3 Tagging error codes. - `x-amz-account-id`: The Amazon Web Services account ID of the resource owner. """ -function list_tags_for_resource( +list_tags_for_resource( resourceArn, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "GET", + "/v20180820/tags/$(resourceArn)", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "GET", - "/v20180820/tags/$(resourceArn)", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_resource( resourceArn, x_amz_account_id, @@ -4274,27 +4084,25 @@ the s3:PutAccessGrantsInstanceResourcePolicy permission to use this operation. # Arguments - `policy`: The resource policy of the S3 Access Grants instance that you are updating. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Organization"`: The Organization of the resource policy of the S3 Access Grants instance. """ -function put_access_grants_instance_resource_policy( +put_access_grants_instance_resource_policy( Policy, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/accessgrantsinstance/resourcepolicy", + Dict{String,Any}( + "Policy" => Policy, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/accessgrantsinstance/resourcepolicy", - Dict{String,Any}( - "Policy" => Policy, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_access_grants_instance_resource_policy( Policy, x_amz_account_id, @@ -4334,23 +4142,21 @@ PutAccessPointConfigurationForObjectLambda: GetAccessPointConfigurationForObj Access Point. """ -function put_access_point_configuration_for_object_lambda( +put_access_point_configuration_for_object_lambda( Configuration, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "PUT", + "/v20180820/accesspointforobjectlambda/$(name)/configuration", + Dict{String,Any}( + "Configuration" => Configuration, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/accesspointforobjectlambda/$(name)/configuration", - Dict{String,Any}( - "Configuration" => Configuration, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_access_point_configuration_for_object_lambda( Configuration, name, @@ -4409,20 +4215,18 @@ DeleteAccessPointPolicy with the specified access point. """ -function put_access_point_policy( +put_access_point_policy( Policy, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/accesspoint/$(name)/policy", + Dict{String,Any}( + "Policy" => Policy, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/accesspoint/$(name)/policy", - Dict{String,Any}( - "Policy" => Policy, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_access_point_policy( Policy, name, @@ -4465,20 +4269,18 @@ GetAccessPointPolicyForObjectLambda Access Point. """ -function put_access_point_policy_for_object_lambda( +put_access_point_policy_for_object_lambda( Policy, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/accesspointforobjectlambda/$(name)/policy", + Dict{String,Any}( + "Policy" => Policy, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/accesspointforobjectlambda/$(name)/policy", - Dict{String,Any}( - "Policy" => Policy, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_access_point_policy_for_object_lambda( Policy, name, @@ -4531,19 +4333,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LifecycleConfiguration"`: Container for lifecycle rules. You can add as many as 1,000 rules. """ -function put_bucket_lifecycle_configuration( +put_bucket_lifecycle_configuration( name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/bucket/$(name)/lifecycleconfiguration", + Dict{String,Any}("headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/bucket/$(name)/lifecycleconfiguration", - Dict{String,Any}( - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_lifecycle_configuration( name, x_amz_account_id, @@ -4611,20 +4409,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you want to remove your permissions to change this bucket policy in the future. This is not supported by Amazon S3 on Outposts buckets. """ -function put_bucket_policy( +put_bucket_policy( Policy, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/bucket/$(name)/policy", + Dict{String,Any}( + "Policy" => Policy, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/bucket/$(name)/policy", - Dict{String,Any}( - "Policy" => Policy, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_policy( Policy, name, @@ -4711,23 +4507,21 @@ PutBucketReplication: GetBucketReplication DeleteBucketReplication - `x-amz-account-id`: The Amazon Web Services account ID of the Outposts bucket. """ -function put_bucket_replication( +put_bucket_replication( ReplicationConfiguration, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "PUT", + "/v20180820/bucket/$(name)/replication", + Dict{String,Any}( + "ReplicationConfiguration" => ReplicationConfiguration, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/bucket/$(name)/replication", - Dict{String,Any}( - "ReplicationConfiguration" => ReplicationConfiguration, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_replication( ReplicationConfiguration, name, @@ -4802,20 +4596,18 @@ GetBucketTagging DeleteBucketTagging - `x-amz-account-id`: The Amazon Web Services account ID of the Outposts bucket. """ -function put_bucket_tagging( +put_bucket_tagging( Tagging, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/bucket/$(name)/tagging", + Dict{String,Any}( + "Tagging" => Tagging, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/bucket/$(name)/tagging", - Dict{String,Any}( - "Tagging" => Tagging, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_tagging( Tagging, name, @@ -4882,23 +4674,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"x-amz-mfa"`: The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. """ -function put_bucket_versioning( +put_bucket_versioning( VersioningConfiguration, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "PUT", + "/v20180820/bucket/$(name)/versioning", + Dict{String,Any}( + "VersioningConfiguration" => VersioningConfiguration, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/bucket/$(name)/versioning", - Dict{String,Any}( - "VersioningConfiguration" => VersioningConfiguration, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_bucket_versioning( VersioningConfiguration, name, @@ -4956,20 +4746,18 @@ DeleteJobTagging Operations job. """ -function put_job_tagging( +put_job_tagging( Tags, id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/jobs/$(id)/tagging", + Dict{String,Any}( + "Tags" => Tags, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/jobs/$(id)/tagging", - Dict{String,Any}( - "Tags" => Tags, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_job_tagging( Tags, id, @@ -5018,24 +4806,22 @@ GetMultiRegionAccessPointPolicyStatus Access Point. """ -function put_multi_region_access_point_policy( +put_multi_region_access_point_policy( ClientToken, Details, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "POST", + "/v20180820/async-requests/mrap/put-policy", + Dict{String,Any}( + "ClientToken" => ClientToken, + "Details" => Details, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/async-requests/mrap/put-policy", - Dict{String,Any}( - "ClientToken" => ClientToken, - "Details" => Details, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_multi_region_access_point_policy( ClientToken, Details, @@ -5079,22 +4865,20 @@ DeletePublicAccessBlock PublicAccessBlock configuration you want to set. """ -function put_public_access_block( +put_public_access_block( PublicAccessBlockConfiguration, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "PUT", + "/v20180820/configuration/publicAccessBlock", + Dict{String,Any}( + "PublicAccessBlockConfiguration" => PublicAccessBlockConfiguration, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/configuration/publicAccessBlock", - Dict{String,Any}( - "PublicAccessBlockConfiguration" => PublicAccessBlockConfiguration, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_public_access_block( PublicAccessBlockConfiguration, x_amz_account_id, @@ -5141,23 +4925,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tag set of the S3 Storage Lens configuration. You can set up to a maximum of 50 tags. """ -function put_storage_lens_configuration( +put_storage_lens_configuration( StorageLensConfiguration, storagelensid, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "PUT", + "/v20180820/storagelens/$(storagelensid)", + Dict{String,Any}( + "StorageLensConfiguration" => StorageLensConfiguration, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/storagelens/$(storagelensid)", - Dict{String,Any}( - "StorageLensConfiguration" => StorageLensConfiguration, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_storage_lens_configuration( StorageLensConfiguration, storagelensid, @@ -5205,20 +4987,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tag set of the S3 Storage Lens configuration. You can set up to a maximum of 50 tags. """ -function put_storage_lens_configuration_tagging( +put_storage_lens_configuration_tagging( Tag, storagelensid, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/storagelens/$(storagelensid)/tagging", + Dict{String,Any}( + "Tag" => Tag, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/storagelens/$(storagelensid)/tagging", - Dict{String,Any}( - "Tag" => Tag, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_storage_lens_configuration_tagging( Tag, storagelensid, @@ -5275,20 +5055,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RouteUpdates"`: The different routes that make up the new route configuration. Active routes return a value of 100, and passive routes return a value of 0. """ -function submit_multi_region_access_point_routes( +submit_multi_region_access_point_routes( Route, mrap, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PATCH", + "/v20180820/mrap/instances/$(mrap)/routes", + Dict{String,Any}( + "Route" => Route, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PATCH", - "/v20180820/mrap/instances/$(mrap)/routes", - Dict{String,Any}( - "Route" => Route, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function submit_multi_region_access_point_routes( Route, mrap, @@ -5343,20 +5121,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The Amazon Web Services resource tags that you want to add to the specified S3 resource. """ -function tag_resource( +tag_resource( Tag, resourceArn, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "POST", + "/v20180820/tags/$(resourceArn)", + Dict{String,Any}( + "Tag" => Tag, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/tags/$(resourceArn)", - Dict{String,Any}( - "Tag" => Tag, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function tag_resource( Tag, resourceArn, @@ -5405,23 +5181,21 @@ List of Amazon S3 Tagging error codes. you're trying to remove the tags from. """ -function untag_resource( +untag_resource( resourceArn, tagKeys, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "DELETE", + "/v20180820/tags/$(resourceArn)", + Dict{String,Any}( + "tagKeys" => tagKeys, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "DELETE", - "/v20180820/tags/$(resourceArn)", - Dict{String,Any}( - "tagKeys" => tagKeys, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function untag_resource( resourceArn, tagKeys, @@ -5468,23 +5242,21 @@ iam:PassRole that you register. If you are passing the default location, you cannot create an access grant for the entire default location. You must also specify a bucket or a bucket and prefix in the Subprefix field. -- `x-amz-account-id`: The ID of the Amazon Web Services account that is making this request. +- `x-amz-account-id`: The Amazon Web Services account ID of the S3 Access Grants instance. """ -function update_access_grants_location( +update_access_grants_location( IAMRoleArn, id, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "PUT", + "/v20180820/accessgrantsinstance/location/$(id)", + Dict{String,Any}( + "IAMRoleArn" => IAMRoleArn, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/accessgrantsinstance/location/$(id)", - Dict{String,Any}( - "IAMRoleArn" => IAMRoleArn, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_access_grants_location( IAMRoleArn, id, @@ -5526,20 +5298,18 @@ actions include: CreateJob ListJobs DescribeJob UpdateJobStatus Operations job. """ -function update_job_priority( +update_job_priority( id, priority, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config() +) = s3_control( + "POST", + "/v20180820/jobs/$(id)/priority", + Dict{String,Any}( + "priority" => priority, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/jobs/$(id)/priority", - Dict{String,Any}( - "priority" => priority, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_job_priority( id, priority, @@ -5586,23 +5356,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"statusUpdateReason"`: A description of the reason why you want to change the specified job's status. This field can be any string up to the maximum length. """ -function update_job_status( +update_job_status( id, requestedJobStatus, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "POST", + "/v20180820/jobs/$(id)/status", + Dict{String,Any}( + "requestedJobStatus" => requestedJobStatus, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "POST", - "/v20180820/jobs/$(id)/status", - Dict{String,Any}( - "requestedJobStatus" => requestedJobStatus, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_job_status( id, requestedJobStatus, @@ -5644,23 +5412,21 @@ Storage Lens error codes. - `x-amz-account-id`: The Amazon Web Services account ID of the Storage Lens group owner. """ -function update_storage_lens_group( +update_storage_lens_group( StorageLensGroup, name, x_amz_account_id; aws_config::AbstractAWSConfig=current_aws_config(), +) = s3_control( + "PUT", + "/v20180820/storagelensgroup/$(name)", + Dict{String,Any}( + "StorageLensGroup" => StorageLensGroup, + "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3_control( - "PUT", - "/v20180820/storagelensgroup/$(name)", - Dict{String,Any}( - "StorageLensGroup" => StorageLensGroup, - "headers" => Dict{String,Any}("x-amz-account-id" => x_amz_account_id), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_storage_lens_group( StorageLensGroup, name, diff --git a/src/services/s3outposts.jl b/src/services/s3outposts.jl index dbf4cc13a..371074105 100644 --- a/src/services/s3outposts.jl +++ b/src/services/s3outposts.jl @@ -28,21 +28,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CustomerOwnedIpv4Pool"`: The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated from this pool for the endpoint. """ -function create_endpoint( +create_endpoint( OutpostId, SecurityGroupId, SubnetId; aws_config::AbstractAWSConfig=current_aws_config() +) = s3outposts( + "POST", + "/S3Outposts/CreateEndpoint", + Dict{String,Any}( + "OutpostId" => OutpostId, + "SecurityGroupId" => SecurityGroupId, + "SubnetId" => SubnetId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return s3outposts( - "POST", - "/S3Outposts/CreateEndpoint", - Dict{String,Any}( - "OutpostId" => OutpostId, - "SecurityGroupId" => SecurityGroupId, - "SubnetId" => SubnetId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint( OutpostId, SecurityGroupId, @@ -81,17 +79,14 @@ actions include: CreateEndpoint ListEndpoints - `outpost_id`: The ID of the Outposts. """ -function delete_endpoint( - endpointId, outpostId; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3outposts( +delete_endpoint(endpointId, outpostId; aws_config::AbstractAWSConfig=current_aws_config()) = + s3outposts( "DELETE", "/S3Outposts/DeleteEndpoint", Dict{String,Any}("endpointId" => endpointId, "outpostId" => outpostId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_endpoint( endpointId, outpostId, @@ -126,14 +121,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: If a previous response from this operation included a NextToken value, provide that value here to retrieve the next page of results. """ -function list_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return s3outposts( - "GET", - "/S3Outposts/ListEndpoints"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = s3outposts( + "GET", + "/S3Outposts/ListEndpoints"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -161,14 +154,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional Outposts. """ -function list_outposts_with_s3(; aws_config::AbstractAWSConfig=current_aws_config()) - return s3outposts( - "GET", - "/S3Outposts/ListOutpostsWithS3"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_outposts_with_s3(; aws_config::AbstractAWSConfig=current_aws_config()) = s3outposts( + "GET", + "/S3Outposts/ListOutpostsWithS3"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_outposts_with_s3( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -198,17 +189,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: If a previous response from this operation included a NextToken value, you can provide that value here to retrieve the next page of results. """ -function list_shared_endpoints( - outpostId; aws_config::AbstractAWSConfig=current_aws_config() -) - return s3outposts( +list_shared_endpoints(outpostId; aws_config::AbstractAWSConfig=current_aws_config()) = + s3outposts( "GET", "/S3Outposts/ListSharedEndpoints", Dict{String,Any}("outpostId" => outpostId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_shared_endpoints( outpostId, params::AbstractDict{String}; diff --git a/src/services/sagemaker.jl b/src/services/sagemaker.jl index e77fc63af..05cabfc82 100644 --- a/src/services/sagemaker.jl +++ b/src/services/sagemaker.jl @@ -29,16 +29,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Produced - The source generated the destination. For example, a training job produced a model artifact. """ -function add_association( +add_association( DestinationArn, SourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "AddAssociation", + Dict{String,Any}("DestinationArn" => DestinationArn, "SourceArn" => SourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "AddAssociation", - Dict{String,Any}("DestinationArn" => DestinationArn, "SourceArn" => SourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_association( DestinationArn, SourceArn, @@ -91,14 +89,12 @@ CreateDomain or CreateUserProfile. more information, see Tagging Amazon Web Services Resources. """ -function add_tags(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "AddTags", - Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +add_tags(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "AddTags", + Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function add_tags( ResourceArn, Tags, @@ -132,18 +128,14 @@ DisassociateTrialComponent API. - `trial_name`: The name of the trial to associate with. """ -function associate_trial_component( +associate_trial_component( TrialComponentName, TrialName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "AssociateTrialComponent", + Dict{String,Any}("TrialComponentName" => TrialComponentName, "TrialName" => TrialName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "AssociateTrialComponent", - Dict{String,Any}( - "TrialComponentName" => TrialComponentName, "TrialName" => TrialName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_trial_component( TrialComponentName, TrialName, @@ -177,16 +169,14 @@ This action batch describes a list of versioned model packages groups. """ -function batch_describe_model_package( +batch_describe_model_package( ModelPackageArnList; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "BatchDescribeModelPackage", + Dict{String,Any}("ModelPackageArnList" => ModelPackageArnList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "BatchDescribeModelPackage", - Dict{String,Any}("ModelPackageArnList" => ModelPackageArnList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_describe_model_package( ModelPackageArnList, params::AbstractDict{String}; @@ -229,18 +219,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: The status of the action. - `"Tags"`: A list of tags to apply to the action. """ -function create_action( +create_action( ActionName, ActionType, Source; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateAction", + Dict{String,Any}( + "ActionName" => ActionName, "ActionType" => ActionType, "Source" => Source + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateAction", - Dict{String,Any}( - "ActionName" => ActionName, "ActionType" => ActionType, "Source" => Source - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_action( ActionName, ActionType, @@ -301,19 +289,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that SageMaker runs to test the algorithm's training code and, optionally, one or more batch transform jobs that SageMaker runs to test the algorithm's inference code. """ -function create_algorithm( +create_algorithm( AlgorithmName, TrainingSpecification; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateAlgorithm", + Dict{String,Any}( + "AlgorithmName" => AlgorithmName, + "TrainingSpecification" => TrainingSpecification, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateAlgorithm", - Dict{String,Any}( - "AlgorithmName" => AlgorithmName, - "TrainingSpecification" => TrainingSpecification, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_algorithm( AlgorithmName, TrainingSpecification, @@ -366,10 +352,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserProfileName"`: The user profile name. If this value is not set, then SpaceName must be set. """ -function create_app( - AppName, AppType, DomainId; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +create_app(AppName, AppType, DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "CreateApp", Dict{String,Any}( "AppName" => AppName, "AppType" => AppType, "DomainId" => DomainId @@ -377,7 +361,6 @@ function create_app( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_app( AppName, AppType, @@ -425,16 +408,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys starts. Once the image runs, all kernels are visible in JupyterLab. - `"Tags"`: A list of tags to apply to the AppImageConfig. """ -function create_app_image_config( +create_app_image_config( AppImageConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateAppImageConfig", + Dict{String,Any}("AppImageConfigName" => AppImageConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateAppImageConfig", - Dict{String,Any}("AppImageConfigName" => AppImageConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_app_image_config( AppImageConfigName, params::AbstractDict{String}; @@ -472,16 +453,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Properties"`: A list of properties to add to the artifact. - `"Tags"`: A list of tags to apply to the artifact. """ -function create_artifact( - ArtifactType, Source; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +create_artifact(ArtifactType, Source; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "CreateArtifact", Dict{String,Any}("ArtifactType" => ArtifactType, "Source" => Source); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_artifact( ArtifactType, Source, @@ -506,15 +484,27 @@ end create_auto_mljob(auto_mljob_name, input_data_config, output_data_config, role_arn) create_auto_mljob(auto_mljob_name, input_data_config, output_data_config, role_arn, params::Dict{String,<:Any}) -Creates an Autopilot job also referred to as Autopilot experiment or AutoML job. We -recommend using the new versions CreateAutoMLJobV2 and DescribeAutoMLJobV2, which offer -backward compatibility. CreateAutoMLJobV2 can manage tabular problem types identical to -those of its previous version CreateAutoMLJob, as well as time-series forecasting, -non-tabular problem types such as image or text classification, and text generation (LLMs -fine-tuning). Find guidelines about how to migrate a CreateAutoMLJob to CreateAutoMLJobV2 -in Migrate a CreateAutoMLJob to CreateAutoMLJobV2. You can find the best-performing model -after you run an AutoML job by calling DescribeAutoMLJobV2 (recommended) or -DescribeAutoMLJob. +Creates an Autopilot job also referred to as Autopilot experiment or AutoML job. An AutoML +job in SageMaker is a fully automated process that allows you to build machine learning +models with minimal effort and machine learning expertise. When initiating an AutoML job, +you provide your data and optionally specify parameters tailored to your use case. +SageMaker then automates the entire model development lifecycle, including data +preprocessing, model training, tuning, and evaluation. AutoML jobs are designed to simplify +and accelerate the model building process by automating various tasks and exploring +different combinations of machine learning algorithms, data preprocessing techniques, and +hyperparameter values. The output of an AutoML job comprises one or more trained models +ready for deployment and inference. Additionally, SageMaker AutoML jobs generate a +candidate model leaderboard, allowing you to select the best-performing model for +deployment. For more information about AutoML jobs, see +https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html +in the SageMaker developer guide. We recommend using the new versions CreateAutoMLJobV2 +and DescribeAutoMLJobV2, which offer backward compatibility. CreateAutoMLJobV2 can manage +tabular problem types identical to those of its previous version CreateAutoMLJob, as well +as time-series forecasting, non-tabular problem types such as image or text classification, +and text generation (LLMs fine-tuning). Find guidelines about how to migrate a +CreateAutoMLJob to CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to CreateAutoMLJobV2. +You can find the best-performing model after you run an AutoML job by calling +DescribeAutoMLJobV2 (recommended) or DescribeAutoMLJob. # Arguments - `auto_mljob_name`: Identifies an Autopilot job. The name must be unique to your account @@ -546,25 +536,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Tagging Amazon Web ServicesResources. Tag keys must be unique per resource. """ -function create_auto_mljob( +create_auto_mljob( AutoMLJobName, InputDataConfig, OutputDataConfig, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateAutoMLJob", + Dict{String,Any}( + "AutoMLJobName" => AutoMLJobName, + "InputDataConfig" => InputDataConfig, + "OutputDataConfig" => OutputDataConfig, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateAutoMLJob", - Dict{String,Any}( - "AutoMLJobName" => AutoMLJobName, - "InputDataConfig" => InputDataConfig, - "OutputDataConfig" => OutputDataConfig, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_auto_mljob( AutoMLJobName, InputDataConfig, @@ -596,16 +584,31 @@ end create_auto_mljob_v2(auto_mljob_input_data_config, auto_mljob_name, auto_mlproblem_type_config, output_data_config, role_arn) create_auto_mljob_v2(auto_mljob_input_data_config, auto_mljob_name, auto_mlproblem_type_config, output_data_config, role_arn, params::Dict{String,<:Any}) -Creates an Autopilot job also referred to as Autopilot experiment or AutoML job V2. -CreateAutoMLJobV2 and DescribeAutoMLJobV2 are new versions of CreateAutoMLJob and -DescribeAutoMLJob which offer backward compatibility. CreateAutoMLJobV2 can manage tabular -problem types identical to those of its previous version CreateAutoMLJob, as well as -time-series forecasting, non-tabular problem types such as image or text classification, -and text generation (LLMs fine-tuning). Find guidelines about how to migrate a -CreateAutoMLJob to CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to CreateAutoMLJobV2. -For the list of available problem types supported by CreateAutoMLJobV2, see -AutoMLProblemTypeConfig. You can find the best-performing model after you run an AutoML job -V2 by calling DescribeAutoMLJobV2. +Creates an Autopilot job also referred to as Autopilot experiment or AutoML job V2. An +AutoML job in SageMaker is a fully automated process that allows you to build machine +learning models with minimal effort and machine learning expertise. When initiating an +AutoML job, you provide your data and optionally specify parameters tailored to your use +case. SageMaker then automates the entire model development lifecycle, including data +preprocessing, model training, tuning, and evaluation. AutoML jobs are designed to simplify +and accelerate the model building process by automating various tasks and exploring +different combinations of machine learning algorithms, data preprocessing techniques, and +hyperparameter values. The output of an AutoML job comprises one or more trained models +ready for deployment and inference. Additionally, SageMaker AutoML jobs generate a +candidate model leaderboard, allowing you to select the best-performing model for +deployment. For more information about AutoML jobs, see +https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html +in the SageMaker developer guide. AutoML jobs V2 support various problem types such as +regression, binary, and multiclass classification with tabular data, text and image +classification, time-series forecasting, and fine-tuning of large language models (LLMs) +for text generation. CreateAutoMLJobV2 and DescribeAutoMLJobV2 are new versions of +CreateAutoMLJob and DescribeAutoMLJob which offer backward compatibility. +CreateAutoMLJobV2 can manage tabular problem types identical to those of its previous +version CreateAutoMLJob, as well as time-series forecasting, non-tabular problem types such +as image or text classification, and text generation (LLMs fine-tuning). Find guidelines +about how to migrate a CreateAutoMLJob to CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to +CreateAutoMLJobV2. For the list of available problem types supported by CreateAutoMLJobV2, +see AutoMLProblemTypeConfig. You can find the best-performing model after you run an AutoML +job V2 by calling DescribeAutoMLJobV2. # Arguments - `auto_mljob_input_data_config`: An array of channel objects describing the input data and @@ -625,6 +628,7 @@ V2 by calling DescribeAutoMLJobV2. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"AutoMLComputeConfig"`: Specifies the compute configuration for the AutoML job V2. - `"AutoMLJobObjective"`: Specifies a metric to minimize or maximize as the objective of a job. If not specified, the default objective metric depends on the problem type. For the list of default values per problem type, see AutoMLJobObjective. For tabular problem @@ -650,27 +654,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services resources in different ways, such as by purpose, owner, or environment. For more information, see Tagging Amazon Web ServicesResources. Tag keys must be unique per resource. """ -function create_auto_mljob_v2( +create_auto_mljob_v2( AutoMLJobInputDataConfig, AutoMLJobName, AutoMLProblemTypeConfig, OutputDataConfig, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateAutoMLJobV2", + Dict{String,Any}( + "AutoMLJobInputDataConfig" => AutoMLJobInputDataConfig, + "AutoMLJobName" => AutoMLJobName, + "AutoMLProblemTypeConfig" => AutoMLProblemTypeConfig, + "OutputDataConfig" => OutputDataConfig, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateAutoMLJobV2", - Dict{String,Any}( - "AutoMLJobInputDataConfig" => AutoMLJobInputDataConfig, - "AutoMLJobName" => AutoMLJobName, - "AutoMLProblemTypeConfig" => AutoMLProblemTypeConfig, - "OutputDataConfig" => OutputDataConfig, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_auto_mljob_v2( AutoMLJobInputDataConfig, AutoMLJobName, @@ -721,16 +723,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services resources in general, see Tagging Amazon Web Services Resources User Guide. - `"VpcConfig"`: """ -function create_cluster( +create_cluster( ClusterName, InstanceGroups; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateCluster", + Dict{String,Any}("ClusterName" => ClusterName, "InstanceGroups" => InstanceGroups); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateCluster", - Dict{String,Any}("ClusterName" => ClusterName, "InstanceGroups" => InstanceGroups); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster( ClusterName, InstanceGroups, @@ -776,18 +776,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources. """ -function create_code_repository( +create_code_repository( CodeRepositoryName, GitConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateCodeRepository", + Dict{String,Any}("CodeRepositoryName" => CodeRepositoryName, "GitConfig" => GitConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateCodeRepository", - Dict{String,Any}( - "CodeRepositoryName" => CodeRepositoryName, "GitConfig" => GitConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_code_repository( CodeRepositoryName, GitConfig, @@ -860,25 +856,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys job to connect to. Control access to your models by configuring the VPC. For more information, see Protect Compilation Jobs by Using an Amazon Virtual Private Cloud. """ -function create_compilation_job( +create_compilation_job( CompilationJobName, OutputConfig, RoleArn, StoppingCondition; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateCompilationJob", + Dict{String,Any}( + "CompilationJobName" => CompilationJobName, + "OutputConfig" => OutputConfig, + "RoleArn" => RoleArn, + "StoppingCondition" => StoppingCondition, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateCompilationJob", - Dict{String,Any}( - "CompilationJobName" => CompilationJobName, - "OutputConfig" => OutputConfig, - "RoleArn" => RoleArn, - "StoppingCondition" => StoppingCondition, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_compilation_job( CompilationJobName, OutputConfig, @@ -926,18 +920,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Properties"`: A list of properties to add to the context. - `"Tags"`: A list of tags to apply to the context. """ -function create_context( +create_context( ContextName, ContextType, Source; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateContext", + Dict{String,Any}( + "ContextName" => ContextName, "ContextType" => ContextType, "Source" => Source + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateContext", - Dict{String,Any}( - "ContextName" => ContextName, "ContextType" => ContextType, "Source" => Source - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_context( ContextName, ContextType, @@ -989,7 +981,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. """ -function create_data_quality_job_definition( +create_data_quality_job_definition( DataQualityAppSpecification, DataQualityJobInput, DataQualityJobOutputConfig, @@ -997,21 +989,19 @@ function create_data_quality_job_definition( JobResources, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateDataQualityJobDefinition", + Dict{String,Any}( + "DataQualityAppSpecification" => DataQualityAppSpecification, + "DataQualityJobInput" => DataQualityJobInput, + "DataQualityJobOutputConfig" => DataQualityJobOutputConfig, + "JobDefinitionName" => JobDefinitionName, + "JobResources" => JobResources, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateDataQualityJobDefinition", - Dict{String,Any}( - "DataQualityAppSpecification" => DataQualityAppSpecification, - "DataQualityJobInput" => DataQualityJobInput, - "DataQualityJobOutputConfig" => DataQualityJobOutputConfig, - "JobDefinitionName" => JobDefinitionName, - "JobResources" => JobResources, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_quality_job_definition( DataQualityAppSpecification, DataQualityJobInput, @@ -1064,18 +1054,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Internet of Things (IoT). - `"Tags"`: Creates tags for the specified fleet. """ -function create_device_fleet( +create_device_fleet( DeviceFleetName, OutputConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateDeviceFleet", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "OutputConfig" => OutputConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateDeviceFleet", - Dict{String,Any}( - "DeviceFleetName" => DeviceFleetName, "OutputConfig" => OutputConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_device_fleet( DeviceFleetName, OutputConfig, @@ -1158,27 +1144,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value. Tag keys must be unique per resource. Tags are searchable using the Search API. Tags that you specify for the Domain are also added to all Apps that the Domain launches. """ -function create_domain( +create_domain( AuthMode, DefaultUserSettings, DomainName, SubnetIds, VpcId; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateDomain", + Dict{String,Any}( + "AuthMode" => AuthMode, + "DefaultUserSettings" => DefaultUserSettings, + "DomainName" => DomainName, + "SubnetIds" => SubnetIds, + "VpcId" => VpcId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateDomain", - Dict{String,Any}( - "AuthMode" => AuthMode, - "DefaultUserSettings" => DefaultUserSettings, - "DomainName" => DomainName, - "SubnetIds" => SubnetIds, - "VpcId" => VpcId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_domain( AuthMode, DefaultUserSettings, @@ -1226,23 +1210,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to 10 per deployment. - `"Tags"`: List of tags with which to tag the edge deployment plan. """ -function create_edge_deployment_plan( +create_edge_deployment_plan( DeviceFleetName, EdgeDeploymentPlanName, ModelConfigs; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateEdgeDeploymentPlan", + Dict{String,Any}( + "DeviceFleetName" => DeviceFleetName, + "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, + "ModelConfigs" => ModelConfigs, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateEdgeDeploymentPlan", - Dict{String,Any}( - "DeviceFleetName" => DeviceFleetName, - "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, - "ModelConfigs" => ModelConfigs, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_edge_deployment_plan( DeviceFleetName, EdgeDeploymentPlanName, @@ -1279,18 +1261,16 @@ Creates a new stage in an existing edge deployment plan. - `stages`: List of stages to be added to the edge deployment plan. """ -function create_edge_deployment_stage( +create_edge_deployment_stage( EdgeDeploymentPlanName, Stages; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateEdgeDeploymentStage", + Dict{String,Any}( + "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "Stages" => Stages + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateEdgeDeploymentStage", - Dict{String,Any}( - "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "Stages" => Stages - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_edge_deployment_stage( EdgeDeploymentPlanName, Stages, @@ -1338,7 +1318,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the edge packaging job runs on. - `"Tags"`: Creates tags for the packaging job. """ -function create_edge_packaging_job( +create_edge_packaging_job( CompilationJobName, EdgePackagingJobName, ModelName, @@ -1346,21 +1326,19 @@ function create_edge_packaging_job( OutputConfig, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateEdgePackagingJob", + Dict{String,Any}( + "CompilationJobName" => CompilationJobName, + "EdgePackagingJobName" => EdgePackagingJobName, + "ModelName" => ModelName, + "ModelVersion" => ModelVersion, + "OutputConfig" => OutputConfig, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateEdgePackagingJob", - Dict{String,Any}( - "CompilationJobName" => CompilationJobName, - "EdgePackagingJobName" => EdgePackagingJobName, - "ModelName" => ModelName, - "ModelVersion" => ModelVersion, - "OutputConfig" => OutputConfig, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_edge_packaging_job( CompilationJobName, EdgePackagingJobName, @@ -1449,18 +1427,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources. """ -function create_endpoint( +create_endpoint( EndpointConfigName, EndpointName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateEndpoint", + Dict{String,Any}( + "EndpointConfigName" => EndpointConfigName, "EndpointName" => EndpointName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateEndpoint", - Dict{String,Any}( - "EndpointConfigName" => EndpointConfigName, "EndpointName" => EndpointName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint( EndpointConfigName, EndpointName, @@ -1556,21 +1532,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more information, see Tagging Amazon Web Services Resources. - `"VpcConfig"`: """ -function create_endpoint_config( +create_endpoint_config( EndpointConfigName, ProductionVariants; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateEndpointConfig", + Dict{String,Any}( + "EndpointConfigName" => EndpointConfigName, + "ProductionVariants" => ProductionVariants, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateEndpointConfig", - Dict{String,Any}( - "EndpointConfigName" => EndpointConfigName, - "ProductionVariants" => ProductionVariants, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_endpoint_config( EndpointConfigName, ProductionVariants, @@ -1627,16 +1601,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to associate with the experiment. You can use Search API to search on the tags. """ -function create_experiment( - ExperimentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +create_experiment(ExperimentName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "CreateExperiment", Dict{String,Any}("ExperimentName" => ExperimentName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_experiment( ExperimentName, params::AbstractDict{String}; @@ -1711,25 +1682,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Tags used to identify Features in each FeatureGroup. - `"ThroughputConfig"`: """ -function create_feature_group( +create_feature_group( EventTimeFeatureName, FeatureDefinitions, FeatureGroupName, RecordIdentifierFeatureName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateFeatureGroup", + Dict{String,Any}( + "EventTimeFeatureName" => EventTimeFeatureName, + "FeatureDefinitions" => FeatureDefinitions, + "FeatureGroupName" => FeatureGroupName, + "RecordIdentifierFeatureName" => RecordIdentifierFeatureName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateFeatureGroup", - Dict{String,Any}( - "EventTimeFeatureName" => EventTimeFeatureName, - "FeatureDefinitions" => FeatureDefinitions, - "FeatureGroupName" => FeatureGroupName, - "RecordIdentifierFeatureName" => RecordIdentifierFeatureName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_feature_group( EventTimeFeatureName, FeatureDefinitions, @@ -1783,23 +1752,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organize a flow definition. Each tag consists of a key and a value, both of which you define. """ -function create_flow_definition( +create_flow_definition( FlowDefinitionName, OutputConfig, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateFlowDefinition", + Dict{String,Any}( + "FlowDefinitionName" => FlowDefinitionName, + "OutputConfig" => OutputConfig, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateFlowDefinition", - Dict{String,Any}( - "FlowDefinitionName" => FlowDefinitionName, - "OutputConfig" => OutputConfig, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_flow_definition( FlowDefinitionName, OutputConfig, @@ -1842,16 +1809,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"S3StorageConfig"`: The Amazon S3 storage configuration for the hub. - `"Tags"`: Any tags to associate with the hub. """ -function create_hub( - HubDescription, HubName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +create_hub(HubDescription, HubName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "CreateHub", Dict{String,Any}("HubDescription" => HubDescription, "HubName" => HubName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_hub( HubDescription, HubName, @@ -1889,21 +1853,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MinVersion"`: The minimum version of the hub content to reference. - `"Tags"`: Any tags associated with the hub content to reference. """ -function create_hub_content_reference( +create_hub_content_reference( HubName, SageMakerPublicHubContentArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateHubContentReference", + Dict{String,Any}( + "HubName" => HubName, + "SageMakerPublicHubContentArn" => SageMakerPublicHubContentArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateHubContentReference", - Dict{String,Any}( - "HubName" => HubName, - "SageMakerPublicHubContentArn" => SageMakerPublicHubContentArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hub_content_reference( HubName, SageMakerPublicHubContentArn, @@ -1945,16 +1907,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organize a human review workflow user interface. Each tag consists of a key and a value, both of which you define. """ -function create_human_task_ui( +create_human_task_ui( HumanTaskUiName, UiTemplate; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateHumanTaskUi", + Dict{String,Any}("HumanTaskUiName" => HumanTaskUiName, "UiTemplate" => UiTemplate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateHumanTaskUi", - Dict{String,Any}("HumanTaskUiName" => HumanTaskUiName, "UiTemplate" => UiTemplate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_human_task_ui( HumanTaskUiName, UiTemplate, @@ -2039,21 +1999,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hyperparameter tuning jobs and the new hyperparameter tuning jobs count against the limit of training jobs for the tuning job. """ -function create_hyper_parameter_tuning_job( +create_hyper_parameter_tuning_job( HyperParameterTuningJobConfig, HyperParameterTuningJobName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateHyperParameterTuningJob", + Dict{String,Any}( + "HyperParameterTuningJobConfig" => HyperParameterTuningJobConfig, + "HyperParameterTuningJobName" => HyperParameterTuningJobName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateHyperParameterTuningJob", - Dict{String,Any}( - "HyperParameterTuningJobConfig" => HyperParameterTuningJobConfig, - "HyperParameterTuningJobName" => HyperParameterTuningJobName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_hyper_parameter_tuning_job( HyperParameterTuningJobConfig, HyperParameterTuningJobName, @@ -2096,16 +2054,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DisplayName"`: The display name of the image. If not provided, ImageName is displayed. - `"Tags"`: A list of tags to apply to the image. """ -function create_image( - ImageName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +create_image(ImageName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "CreateImage", Dict{String,Any}("ImageName" => ImageName, "RoleArn" => RoleArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_image( ImageName, RoleArn, @@ -2161,18 +2116,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys after three months. ARCHIVED: The image version is archived. Archived image versions are not searchable and are no longer actively supported. """ -function create_image_version( +create_image_version( BaseImage, ClientToken, ImageName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateImageVersion", + Dict{String,Any}( + "BaseImage" => BaseImage, "ClientToken" => ClientToken, "ImageName" => ImageName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateImageVersion", - Dict{String,Any}( - "BaseImage" => BaseImage, "ClientToken" => ClientToken, "ImageName" => ImageName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_image_version( BaseImage, ClientToken, @@ -2226,27 +2179,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of key-value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. """ -function create_inference_component( +create_inference_component( EndpointName, InferenceComponentName, RuntimeConfig, Specification, VariantName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateInferenceComponent", + Dict{String,Any}( + "EndpointName" => EndpointName, + "InferenceComponentName" => InferenceComponentName, + "RuntimeConfig" => RuntimeConfig, + "Specification" => Specification, + "VariantName" => VariantName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateInferenceComponent", - Dict{String,Any}( - "EndpointName" => EndpointName, - "InferenceComponentName" => InferenceComponentName, - "RuntimeConfig" => RuntimeConfig, - "Specification" => Specification, - "VariantName" => VariantName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_inference_component( EndpointName, InferenceComponentName, @@ -2337,7 +2288,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging your Amazon Web Services Resources. """ -function create_inference_experiment( +create_inference_experiment( EndpointName, ModelVariants, Name, @@ -2345,21 +2296,19 @@ function create_inference_experiment( ShadowModeConfig, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateInferenceExperiment", + Dict{String,Any}( + "EndpointName" => EndpointName, + "ModelVariants" => ModelVariants, + "Name" => Name, + "RoleArn" => RoleArn, + "ShadowModeConfig" => ShadowModeConfig, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateInferenceExperiment", - Dict{String,Any}( - "EndpointName" => EndpointName, - "ModelVariants" => ModelVariants, - "Name" => Name, - "RoleArn" => RoleArn, - "ShadowModeConfig" => ShadowModeConfig, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_inference_experiment( EndpointName, ModelVariants, @@ -2424,25 +2373,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys define. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference. """ -function create_inference_recommendations_job( +create_inference_recommendations_job( InputConfig, JobName, JobType, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateInferenceRecommendationsJob", + Dict{String,Any}( + "InputConfig" => InputConfig, + "JobName" => JobName, + "JobType" => JobType, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateInferenceRecommendationsJob", - Dict{String,Any}( - "InputConfig" => InputConfig, - "JobName" => JobName, - "JobType" => JobType, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_inference_recommendations_job( InputConfig, JobName, @@ -2576,7 +2523,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An array of key/value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. """ -function create_labeling_job( +create_labeling_job( HumanTaskConfig, InputConfig, LabelAttributeName, @@ -2584,21 +2531,19 @@ function create_labeling_job( OutputConfig, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateLabelingJob", + Dict{String,Any}( + "HumanTaskConfig" => HumanTaskConfig, + "InputConfig" => InputConfig, + "LabelAttributeName" => LabelAttributeName, + "LabelingJobName" => LabelingJobName, + "OutputConfig" => OutputConfig, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateLabelingJob", - Dict{String,Any}( - "HumanTaskConfig" => HumanTaskConfig, - "InputConfig" => InputConfig, - "LabelAttributeName" => LabelAttributeName, - "LabelingJobName" => LabelingJobName, - "OutputConfig" => OutputConfig, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_labeling_job( HumanTaskConfig, InputConfig, @@ -2668,23 +2613,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Time (UTC) 24-hour standard time that weekly maintenance updates are scheduled. For example: TUE:03:30. """ -function create_mlflow_tracking_server( +create_mlflow_tracking_server( ArtifactStoreUri, RoleArn, TrackingServerName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateMlflowTrackingServer", + Dict{String,Any}( + "ArtifactStoreUri" => ArtifactStoreUri, + "RoleArn" => RoleArn, + "TrackingServerName" => TrackingServerName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateMlflowTrackingServer", - Dict{String,Any}( - "ArtifactStoreUri" => ArtifactStoreUri, - "RoleArn" => RoleArn, - "TrackingServerName" => TrackingServerName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_mlflow_tracking_server( ArtifactStoreUri, RoleArn, @@ -2757,14 +2700,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private Cloud. """ -function create_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "CreateModel", - Dict{String,Any}("ModelName" => ModelName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "CreateModel", + Dict{String,Any}("ModelName" => ModelName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_model( ModelName, params::AbstractDict{String}; @@ -2805,7 +2746,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. """ -function create_model_bias_job_definition( +create_model_bias_job_definition( JobDefinitionName, JobResources, ModelBiasAppSpecification, @@ -2813,21 +2754,19 @@ function create_model_bias_job_definition( ModelBiasJobOutputConfig, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateModelBiasJobDefinition", + Dict{String,Any}( + "JobDefinitionName" => JobDefinitionName, + "JobResources" => JobResources, + "ModelBiasAppSpecification" => ModelBiasAppSpecification, + "ModelBiasJobInput" => ModelBiasJobInput, + "ModelBiasJobOutputConfig" => ModelBiasJobOutputConfig, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateModelBiasJobDefinition", - Dict{String,Any}( - "JobDefinitionName" => JobDefinitionName, - "JobResources" => JobResources, - "ModelBiasAppSpecification" => ModelBiasAppSpecification, - "ModelBiasJobInput" => ModelBiasJobInput, - "ModelBiasJobOutputConfig" => ModelBiasJobOutputConfig, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_bias_job_definition( JobDefinitionName, JobResources, @@ -2882,23 +2821,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys re-encrypt model card content for regulated workloads with highly sensitive data. - `"Tags"`: Key-value pairs used to manage metadata for model cards. """ -function create_model_card( +create_model_card( Content, ModelCardName, ModelCardStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateModelCard", + Dict{String,Any}( + "Content" => Content, + "ModelCardName" => ModelCardName, + "ModelCardStatus" => ModelCardStatus, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateModelCard", - Dict{String,Any}( - "Content" => Content, - "ModelCardName" => ModelCardName, - "ModelCardStatus" => ModelCardStatus, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_card( Content, ModelCardName, @@ -2941,23 +2878,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ModelCardVersion"`: The version of the model card to export. If a version is not provided, then the latest version of the model card is exported. """ -function create_model_card_export_job( +create_model_card_export_job( ModelCardExportJobName, ModelCardName, OutputConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateModelCardExportJob", + Dict{String,Any}( + "ModelCardExportJobName" => ModelCardExportJobName, + "ModelCardName" => ModelCardName, + "OutputConfig" => OutputConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateModelCardExportJob", - Dict{String,Any}( - "ModelCardExportJobName" => ModelCardExportJobName, - "ModelCardName" => ModelCardName, - "OutputConfig" => OutputConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_card_export_job( ModelCardExportJobName, ModelCardName, @@ -3009,7 +2944,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. """ -function create_model_explainability_job_definition( +create_model_explainability_job_definition( JobDefinitionName, JobResources, ModelExplainabilityAppSpecification, @@ -3017,21 +2952,19 @@ function create_model_explainability_job_definition( ModelExplainabilityJobOutputConfig, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateModelExplainabilityJobDefinition", + Dict{String,Any}( + "JobDefinitionName" => JobDefinitionName, + "JobResources" => JobResources, + "ModelExplainabilityAppSpecification" => ModelExplainabilityAppSpecification, + "ModelExplainabilityJobInput" => ModelExplainabilityJobInput, + "ModelExplainabilityJobOutputConfig" => ModelExplainabilityJobOutputConfig, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateModelExplainabilityJobDefinition", - Dict{String,Any}( - "JobDefinitionName" => JobDefinitionName, - "JobResources" => JobResources, - "ModelExplainabilityAppSpecification" => ModelExplainabilityAppSpecification, - "ModelExplainabilityJobInput" => ModelExplainabilityJobInput, - "ModelExplainabilityJobOutputConfig" => ModelExplainabilityJobOutputConfig, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_explainability_job_definition( JobDefinitionName, JobResources, @@ -3148,14 +3081,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ValidationSpecification"`: Specifies configurations for one or more transform jobs that SageMaker runs to test the model package. """ -function create_model_package(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "CreateModelPackage", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_model_package(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "CreateModelPackage", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_model_package( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3185,16 +3116,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide. """ -function create_model_package_group( +create_model_package_group( ModelPackageGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateModelPackageGroup", + Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateModelPackageGroup", - Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_package_group( ModelPackageGroupName, params::AbstractDict{String}; @@ -3240,7 +3169,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. """ -function create_model_quality_job_definition( +create_model_quality_job_definition( JobDefinitionName, JobResources, ModelQualityAppSpecification, @@ -3248,21 +3177,19 @@ function create_model_quality_job_definition( ModelQualityJobOutputConfig, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateModelQualityJobDefinition", + Dict{String,Any}( + "JobDefinitionName" => JobDefinitionName, + "JobResources" => JobResources, + "ModelQualityAppSpecification" => ModelQualityAppSpecification, + "ModelQualityJobInput" => ModelQualityJobInput, + "ModelQualityJobOutputConfig" => ModelQualityJobOutputConfig, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateModelQualityJobDefinition", - Dict{String,Any}( - "JobDefinitionName" => JobDefinitionName, - "JobResources" => JobResources, - "ModelQualityAppSpecification" => ModelQualityAppSpecification, - "ModelQualityJobInput" => ModelQualityJobInput, - "ModelQualityJobOutputConfig" => ModelQualityJobOutputConfig, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_model_quality_job_definition( JobDefinitionName, JobResources, @@ -3312,21 +3239,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. """ -function create_monitoring_schedule( +create_monitoring_schedule( MonitoringScheduleConfig, MonitoringScheduleName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateMonitoringSchedule", + Dict{String,Any}( + "MonitoringScheduleConfig" => MonitoringScheduleConfig, + "MonitoringScheduleName" => MonitoringScheduleName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateMonitoringSchedule", - Dict{String,Any}( - "MonitoringScheduleConfig" => MonitoringScheduleConfig, - "MonitoringScheduleName" => MonitoringScheduleName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_monitoring_schedule( MonitoringScheduleConfig, MonitoringScheduleName, @@ -3435,23 +3360,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VolumeSizeInGB"`: The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB. """ -function create_notebook_instance( +create_notebook_instance( InstanceType, NotebookInstanceName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateNotebookInstance", + Dict{String,Any}( + "InstanceType" => InstanceType, + "NotebookInstanceName" => NotebookInstanceName, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateNotebookInstance", - Dict{String,Any}( - "InstanceType" => InstanceType, - "NotebookInstanceName" => NotebookInstanceName, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_notebook_instance( InstanceType, NotebookInstanceName, @@ -3502,31 +3425,122 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OnStart"`: A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string. """ -function create_notebook_instance_lifecycle_config( +create_notebook_instance_lifecycle_config( NotebookInstanceLifecycleConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateNotebookInstanceLifecycleConfig", + Dict{String,Any}( + "NotebookInstanceLifecycleConfigName" => NotebookInstanceLifecycleConfigName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_notebook_instance_lifecycle_config( + NotebookInstanceLifecycleConfigName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return sagemaker( "CreateNotebookInstanceLifecycleConfig", Dict{String,Any}( - "NotebookInstanceLifecycleConfigName" => NotebookInstanceLifecycleConfigName + mergewith( + _merge, + Dict{String,Any}( + "NotebookInstanceLifecycleConfigName" => + NotebookInstanceLifecycleConfigName, + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function create_notebook_instance_lifecycle_config( - NotebookInstanceLifecycleConfigName, + +""" + create_optimization_job(deployment_instance_type, model_source, optimization_configs, optimization_job_name, output_config, role_arn, stopping_condition) + create_optimization_job(deployment_instance_type, model_source, optimization_configs, optimization_job_name, output_config, role_arn, stopping_condition, params::Dict{String,<:Any}) + +Creates a job that optimizes a model for inference performance. To create the job, you +provide the location of a source model, and you provide the settings for the optimization +techniques that you want the job to apply. When the job completes successfully, SageMaker +uploads the new optimized model to the output destination that you specify. For more +information about how to use this action, and about the supported optimization techniques, +see Optimize model inference with Amazon SageMaker. + +# Arguments +- `deployment_instance_type`: The type of instance that hosts the optimized model that you + create with the optimization job. +- `model_source`: The location of the source model to optimize with an optimization job. +- `optimization_configs`: Settings for each of the optimization techniques that the job + applies. +- `optimization_job_name`: A custom name for the new optimization job. +- `output_config`: Details for where to store the optimized model that you create with the + optimization job. +- `role_arn`: The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker + to perform tasks on your behalf. During model optimization, Amazon SageMaker needs your + permission to: Read input data from an S3 bucket Write model artifacts to an S3 bucket + Write logs to Amazon CloudWatch Logs Publish metrics to Amazon CloudWatch You grant + permissions for all of these tasks to an IAM role. To pass this role to Amazon SageMaker, + the caller of this API must have the iam:PassRole permission. For more information, see + Amazon SageMaker Roles. +- `stopping_condition`: + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"OptimizationEnvironment"`: The environment variables to set in the model container. +- `"Tags"`: A list of key-value pairs associated with the optimization job. For more + information, see Tagging Amazon Web Services resources in the Amazon Web Services General + Reference Guide. +- `"VpcConfig"`: A VPC in Amazon VPC that your optimized model has access to. +""" +create_optimization_job( + DeploymentInstanceType, + ModelSource, + OptimizationConfigs, + OptimizationJobName, + OutputConfig, + RoleArn, + StoppingCondition; + aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateOptimizationJob", + Dict{String,Any}( + "DeploymentInstanceType" => DeploymentInstanceType, + "ModelSource" => ModelSource, + "OptimizationConfigs" => OptimizationConfigs, + "OptimizationJobName" => OptimizationJobName, + "OutputConfig" => OutputConfig, + "RoleArn" => RoleArn, + "StoppingCondition" => StoppingCondition, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_optimization_job( + DeploymentInstanceType, + ModelSource, + OptimizationConfigs, + OptimizationJobName, + OutputConfig, + RoleArn, + StoppingCondition, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return sagemaker( - "CreateNotebookInstanceLifecycleConfig", + "CreateOptimizationJob", Dict{String,Any}( mergewith( _merge, Dict{String,Any}( - "NotebookInstanceLifecycleConfigName" => - NotebookInstanceLifecycleConfigName, + "DeploymentInstanceType" => DeploymentInstanceType, + "ModelSource" => ModelSource, + "OptimizationConfigs" => OptimizationConfigs, + "OptimizationJobName" => OptimizationJobName, + "OutputConfig" => OutputConfig, + "RoleArn" => RoleArn, + "StoppingCondition" => StoppingCondition, ), params, ), @@ -3560,23 +3574,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PipelineDisplayName"`: The display name of the pipeline. - `"Tags"`: A list of tags to apply to the created pipeline. """ -function create_pipeline( +create_pipeline( ClientRequestToken, PipelineName, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreatePipeline", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "PipelineName" => PipelineName, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreatePipeline", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "PipelineName" => PipelineName, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_pipeline( ClientRequestToken, PipelineName, @@ -3643,16 +3655,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value defaults to 43200. - `"SpaceName"`: The name of the space. """ -function create_presigned_domain_url( +create_presigned_domain_url( DomainId, UserProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreatePresignedDomainUrl", + Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreatePresignedDomainUrl", - Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_presigned_domain_url( DomainId, UserProfileName, @@ -3692,16 +3702,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SessionExpirationDurationInSeconds"`: The duration in seconds that your MLflow UI session is valid. """ -function create_presigned_mlflow_tracking_server_url( +create_presigned_mlflow_tracking_server_url( TrackingServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreatePresignedMlflowTrackingServerUrl", + Dict{String,Any}("TrackingServerName" => TrackingServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreatePresignedMlflowTrackingServerUrl", - Dict{String,Any}("TrackingServerName" => TrackingServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_presigned_mlflow_tracking_server_url( TrackingServerName, params::AbstractDict{String}; @@ -3747,16 +3755,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SessionExpirationDurationInSeconds"`: The duration of the session, in seconds. The default is 12 hours. """ -function create_presigned_notebook_instance_url( +create_presigned_notebook_instance_url( NotebookInstanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreatePresignedNotebookInstanceUrl", + Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreatePresignedNotebookInstanceUrl", - Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_presigned_notebook_instance_url( NotebookInstanceName, params::AbstractDict{String}; @@ -3808,25 +3814,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. """ -function create_processing_job( +create_processing_job( AppSpecification, ProcessingJobName, ProcessingResources, RoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateProcessingJob", + Dict{String,Any}( + "AppSpecification" => AppSpecification, + "ProcessingJobName" => ProcessingJobName, + "ProcessingResources" => ProcessingResources, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateProcessingJob", - Dict{String,Any}( - "AppSpecification" => AppSpecification, - "ProcessingJobName" => ProcessingJobName, - "ProcessingResources" => ProcessingResources, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_processing_job( AppSpecification, ProcessingJobName, @@ -3875,21 +3879,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Web Services resource costs. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide. """ -function create_project( +create_project( ProjectName, ServiceCatalogProvisioningDetails; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateProject", + Dict{String,Any}( + "ProjectName" => ProjectName, + "ServiceCatalogProvisioningDetails" => ServiceCatalogProvisioningDetails, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateProject", - Dict{String,Any}( - "ProjectName" => ProjectName, - "ServiceCatalogProvisioningDetails" => ServiceCatalogProvisioningDetails, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_project( ProjectName, ServiceCatalogProvisioningDetails, @@ -3933,16 +3935,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Tags to associated with the space. Each tag consists of a key and an optional value. Tag keys must be unique for each resource. Tags are searchable using the Search API. """ -function create_space( - DomainId, SpaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +create_space(DomainId, SpaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "CreateSpace", Dict{String,Any}("DomainId" => DomainId, "SpaceName" => SpaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_space( DomainId, SpaceName, @@ -3983,23 +3982,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys key and an optional value. Tag keys must be unique per resource. Tags are searchable using the Search API. """ -function create_studio_lifecycle_config( +create_studio_lifecycle_config( StudioLifecycleConfigAppType, StudioLifecycleConfigContent, StudioLifecycleConfigName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateStudioLifecycleConfig", + Dict{String,Any}( + "StudioLifecycleConfigAppType" => StudioLifecycleConfigAppType, + "StudioLifecycleConfigContent" => StudioLifecycleConfigContent, + "StudioLifecycleConfigName" => StudioLifecycleConfigName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateStudioLifecycleConfig", - Dict{String,Any}( - "StudioLifecycleConfigAppType" => StudioLifecycleConfigAppType, - "StudioLifecycleConfigContent" => StudioLifecycleConfigContent, - "StudioLifecycleConfigName" => StudioLifecycleConfigName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_studio_lifecycle_config( StudioLifecycleConfigAppType, StudioLifecycleConfigContent, @@ -4153,7 +4150,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud. """ -function create_training_job( +create_training_job( AlgorithmSpecification, OutputDataConfig, ResourceConfig, @@ -4161,21 +4158,19 @@ function create_training_job( StoppingCondition, TrainingJobName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateTrainingJob", + Dict{String,Any}( + "AlgorithmSpecification" => AlgorithmSpecification, + "OutputDataConfig" => OutputDataConfig, + "ResourceConfig" => ResourceConfig, + "RoleArn" => RoleArn, + "StoppingCondition" => StoppingCondition, + "TrainingJobName" => TrainingJobName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateTrainingJob", - Dict{String,Any}( - "AlgorithmSpecification" => AlgorithmSpecification, - "OutputDataConfig" => OutputDataConfig, - "ResourceConfig" => ResourceConfig, - "RoleArn" => RoleArn, - "StoppingCondition" => StoppingCondition, - "TrainingJobName" => TrainingJobName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_training_job( AlgorithmSpecification, OutputDataConfig, @@ -4252,8 +4247,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not needed for inference in a batch transform job. The output filter provided allows you to include input data relevant to interpreting the predictions in the output from the job. For more information, see Associate Prediction Results with their Corresponding Input Records. -- `"Environment"`: The environment variables to set in the Docker container. We support up - to 16 key and values entries in the map. +- `"Environment"`: The environment variables to set in the Docker container. Don't include + any sensitive data in your environment variables. We support up to 16 key and values + entries in the map. - `"ExperimentConfig"`: - `"MaxConcurrentTransforms"`: The maximum number of parallel requests that can be sent to each instance in a transform job. If MaxConcurrentTransforms is set to 0 or left unset, @@ -4278,27 +4274,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: (Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. """ -function create_transform_job( +create_transform_job( ModelName, TransformInput, TransformJobName, TransformOutput, TransformResources; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateTransformJob", + Dict{String,Any}( + "ModelName" => ModelName, + "TransformInput" => TransformInput, + "TransformJobName" => TransformJobName, + "TransformOutput" => TransformOutput, + "TransformResources" => TransformResources, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateTransformJob", - Dict{String,Any}( - "ModelName" => ModelName, - "TransformInput" => TransformInput, - "TransformJobName" => TransformJobName, - "TransformOutput" => TransformOutput, - "TransformResources" => TransformResources, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_transform_job( ModelName, TransformInput, @@ -4354,16 +4348,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to associate with the trial. You can use Search API to search on the tags. """ -function create_trial( +create_trial( ExperimentName, TrialName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateTrial", + Dict{String,Any}("ExperimentName" => ExperimentName, "TrialName" => TrialName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateTrial", - Dict{String,Any}("ExperimentName" => ExperimentName, "TrialName" => TrialName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_trial( ExperimentName, TrialName, @@ -4419,16 +4411,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags to associate with the component. You can use Search API to search on the tags. """ -function create_trial_component( +create_trial_component( TrialComponentName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateTrialComponent", + Dict{String,Any}("TrialComponentName" => TrialComponentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateTrialComponent", - Dict{String,Any}("TrialComponentName" => TrialComponentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_trial_component( TrialComponentName, params::AbstractDict{String}; @@ -4477,16 +4467,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys User Profile launches. - `"UserSettings"`: A collection of settings. """ -function create_user_profile( +create_user_profile( DomainId, UserProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "CreateUserProfile", + Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateUserProfile", - Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_profile( DomainId, UserProfileName, @@ -4541,14 +4529,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organize our workforce. Each tag consists of a key and a value, both of which you define. - `"WorkforceVpcConfig"`: Use this parameter to configure a workforce using VPC. """ -function create_workforce(WorkforceName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +create_workforce(WorkforceName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "CreateWorkforce", Dict{String,Any}("WorkforceName" => WorkforceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_workforce( WorkforceName, params::AbstractDict{String}; @@ -4600,23 +4587,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon S3 resource is accessed in the worker portal using a Amazon S3 presigned URL. - `"WorkforceName"`: The name of the workforce. """ -function create_workteam( +create_workteam( Description, MemberDefinitions, WorkteamName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "CreateWorkteam", + Dict{String,Any}( + "Description" => Description, + "MemberDefinitions" => MemberDefinitions, + "WorkteamName" => WorkteamName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "CreateWorkteam", - Dict{String,Any}( - "Description" => Description, - "MemberDefinitions" => MemberDefinitions, - "WorkteamName" => WorkteamName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workteam( Description, MemberDefinitions, @@ -4652,14 +4637,12 @@ Deletes an action. - `action_name`: The name of the action to delete. """ -function delete_action(ActionName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteAction", - Dict{String,Any}("ActionName" => ActionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_action(ActionName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteAction", + Dict{String,Any}("ActionName" => ActionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_action( ActionName, params::AbstractDict{String}; @@ -4685,14 +4668,13 @@ Removes the specified algorithm from your account. - `algorithm_name`: The name of the algorithm to delete. """ -function delete_algorithm(AlgorithmName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +delete_algorithm(AlgorithmName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteAlgorithm", Dict{String,Any}("AlgorithmName" => AlgorithmName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_algorithm( AlgorithmName, params::AbstractDict{String}; @@ -4726,10 +4708,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserProfileName"`: The user profile name. If this value is not set, then SpaceName must be set. """ -function delete_app( - AppName, AppType, DomainId; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_app(AppName, AppType, DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteApp", Dict{String,Any}( "AppName" => AppName, "AppType" => AppType, "DomainId" => DomainId @@ -4737,7 +4717,6 @@ function delete_app( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app( AppName, AppType, @@ -4771,16 +4750,14 @@ Deletes an AppImageConfig. - `app_image_config_name`: The name of the AppImageConfig to delete. """ -function delete_app_image_config( +delete_app_image_config( AppImageConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteAppImageConfig", + Dict{String,Any}("AppImageConfigName" => AppImageConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteAppImageConfig", - Dict{String,Any}("AppImageConfigName" => AppImageConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_image_config( AppImageConfigName, params::AbstractDict{String}; @@ -4809,11 +4786,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ArtifactArn"`: The Amazon Resource Name (ARN) of the artifact to delete. - `"Source"`: The URI of the source. """ -function delete_artifact(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteArtifact"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_artifact(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("DeleteArtifact"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_artifact( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4833,16 +4807,14 @@ Deletes an association. - `source_arn`: The ARN of the source. """ -function delete_association( +delete_association( DestinationArn, SourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteAssociation", + Dict{String,Any}("DestinationArn" => DestinationArn, "SourceArn" => SourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteAssociation", - Dict{String,Any}("DestinationArn" => DestinationArn, "SourceArn" => SourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_association( DestinationArn, SourceArn, @@ -4876,14 +4848,12 @@ Delete a SageMaker HyperPod cluster. HyperPod cluster to delete. """ -function delete_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteCluster", - Dict{String,Any}("ClusterName" => ClusterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteCluster", + Dict{String,Any}("ClusterName" => ClusterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_cluster( ClusterName, params::AbstractDict{String}; @@ -4909,16 +4879,14 @@ Deletes the specified Git repository from your account. - `code_repository_name`: The name of the Git repository to delete. """ -function delete_code_repository( +delete_code_repository( CodeRepositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteCodeRepository", + Dict{String,Any}("CodeRepositoryName" => CodeRepositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteCodeRepository", - Dict{String,Any}("CodeRepositoryName" => CodeRepositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_code_repository( CodeRepositoryName, params::AbstractDict{String}; @@ -4951,16 +4919,14 @@ the job, and then delete it after its status becomes STOPPED. - `compilation_job_name`: The name of the compilation job to delete. """ -function delete_compilation_job( +delete_compilation_job( CompilationJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteCompilationJob", + Dict{String,Any}("CompilationJobName" => CompilationJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteCompilationJob", - Dict{String,Any}("CompilationJobName" => CompilationJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_compilation_job( CompilationJobName, params::AbstractDict{String}; @@ -4988,14 +4954,12 @@ Deletes an context. - `context_name`: The name of the context to delete. """ -function delete_context(ContextName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteContext", - Dict{String,Any}("ContextName" => ContextName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_context(ContextName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteContext", + Dict{String,Any}("ContextName" => ContextName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_context( ContextName, params::AbstractDict{String}; @@ -5021,16 +4985,14 @@ Deletes a data quality monitoring job definition. - `job_definition_name`: The name of the data quality monitoring job definition to delete. """ -function delete_data_quality_job_definition( +delete_data_quality_job_definition( JobDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteDataQualityJobDefinition", + Dict{String,Any}("JobDefinitionName" => JobDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteDataQualityJobDefinition", - Dict{String,Any}("JobDefinitionName" => JobDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_quality_job_definition( JobDefinitionName, params::AbstractDict{String}; @@ -5058,16 +5020,13 @@ Deletes a fleet. - `device_fleet_name`: The name of the fleet to delete. """ -function delete_device_fleet( - DeviceFleetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_device_fleet(DeviceFleetName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteDeviceFleet", Dict{String,Any}("DeviceFleetName" => DeviceFleetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_device_fleet( DeviceFleetName, params::AbstractDict{String}; @@ -5103,14 +5062,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resources will be retained after the Domain is deleted. By default, all resources are retained (not automatically deleted). """ -function delete_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteDomain", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteDomain", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_domain( DomainId, params::AbstractDict{String}; @@ -5137,16 +5094,14 @@ there are no stages in the plan. - `edge_deployment_plan_name`: The name of the edge deployment plan to delete. """ -function delete_edge_deployment_plan( +delete_edge_deployment_plan( EdgeDeploymentPlanName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteEdgeDeploymentPlan", + Dict{String,Any}("EdgeDeploymentPlanName" => EdgeDeploymentPlanName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteEdgeDeploymentPlan", - Dict{String,Any}("EdgeDeploymentPlanName" => EdgeDeploymentPlanName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_edge_deployment_plan( EdgeDeploymentPlanName, params::AbstractDict{String}; @@ -5178,18 +5133,16 @@ Delete a stage in an edge deployment plan if (and only if) the stage is inactive - `stage_name`: The name of the stage. """ -function delete_edge_deployment_stage( +delete_edge_deployment_stage( EdgeDeploymentPlanName, StageName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteEdgeDeploymentStage", + Dict{String,Any}( + "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "StageName" => StageName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteEdgeDeploymentStage", - Dict{String,Any}( - "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "StageName" => StageName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_edge_deployment_stage( EdgeDeploymentPlanName, StageName, @@ -5229,14 +5182,13 @@ deleting your endpoint. Do not delete or revoke the permissions for your Execut - `endpoint_name`: The name of the endpoint that you want to delete. """ -function delete_endpoint(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +delete_endpoint(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteEndpoint", Dict{String,Any}("EndpointName" => EndpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_endpoint( EndpointName, params::AbstractDict{String}; @@ -5268,16 +5220,14 @@ order to stop incurring charges. - `endpoint_config_name`: The name of the endpoint configuration that you want to delete. """ -function delete_endpoint_config( +delete_endpoint_config( EndpointConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteEndpointConfig", + Dict{String,Any}("EndpointConfigName" => EndpointConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteEndpointConfig", - Dict{String,Any}("EndpointConfigName" => EndpointConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_endpoint_config( EndpointConfigName, params::AbstractDict{String}; @@ -5306,16 +5256,13 @@ first. Use the ListTrials API to get a list of the trials associated with the ex - `experiment_name`: The name of the experiment to delete. """ -function delete_experiment( - ExperimentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_experiment(ExperimentName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteExperiment", Dict{String,Any}("ExperimentName" => ExperimentName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_experiment( ExperimentName, params::AbstractDict{String}; @@ -5347,16 +5294,13 @@ an OnlineStore FeatureGroup with the InMemory StorageType. unique within an Amazon Web Services Region in an Amazon Web Services account. """ -function delete_feature_group( - FeatureGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_feature_group(FeatureGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteFeatureGroup", Dict{String,Any}("FeatureGroupName" => FeatureGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_feature_group( FeatureGroupName, params::AbstractDict{String}; @@ -5384,16 +5328,14 @@ Deletes the specified flow definition. - `flow_definition_name`: The name of the flow definition you are deleting. """ -function delete_flow_definition( +delete_flow_definition( FlowDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteFlowDefinition", + Dict{String,Any}("FlowDefinitionName" => FlowDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteFlowDefinition", - Dict{String,Any}("FlowDefinitionName" => FlowDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_flow_definition( FlowDefinitionName, params::AbstractDict{String}; @@ -5421,14 +5363,12 @@ Delete a hub. - `hub_name`: The name of the hub to delete. """ -function delete_hub(HubName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteHub", - Dict{String,Any}("HubName" => HubName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_hub(HubName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteHub", + Dict{String,Any}("HubName" => HubName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_hub( HubName, params::AbstractDict{String}; @@ -5455,25 +5395,23 @@ Delete the contents of a hub. - `hub_name`: The name of the hub that you want to delete content in. """ -function delete_hub_content( +delete_hub_content( HubContentName, HubContentType, HubContentVersion, HubName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "DeleteHubContent", + Dict{String,Any}( + "HubContentName" => HubContentName, + "HubContentType" => HubContentType, + "HubContentVersion" => HubContentVersion, + "HubName" => HubName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteHubContent", - Dict{String,Any}( - "HubContentName" => HubContentName, - "HubContentType" => HubContentType, - "HubContentVersion" => HubContentVersion, - "HubName" => HubName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_hub_content( HubContentName, HubContentType, @@ -5509,27 +5447,26 @@ Delete a hub content reference in order to remove a model from a private hub. # Arguments - `hub_content_name`: The name of the hub content to delete. -- `hub_content_type`: The type of hub content to delete. +- `hub_content_type`: The type of hub content reference to delete. The only supported type + of hub content reference to delete is ModelReference. - `hub_name`: The name of the hub to delete the hub content reference from. """ -function delete_hub_content_reference( +delete_hub_content_reference( HubContentName, HubContentType, HubName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "DeleteHubContentReference", + Dict{String,Any}( + "HubContentName" => HubContentName, + "HubContentType" => HubContentType, + "HubName" => HubName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteHubContentReference", - Dict{String,Any}( - "HubContentName" => HubContentName, - "HubContentType" => HubContentType, - "HubName" => HubName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_hub_content_reference( HubContentName, HubContentType, @@ -5569,16 +5506,13 @@ call ListHumanTaskUis. want to delete. """ -function delete_human_task_ui( - HumanTaskUiName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_human_task_ui(HumanTaskUiName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteHumanTaskUi", Dict{String,Any}("HumanTaskUiName" => HumanTaskUiName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_human_task_ui( HumanTaskUiName, params::AbstractDict{String}; @@ -5610,16 +5544,14 @@ role that you specified when creating the model. want to delete. """ -function delete_hyper_parameter_tuning_job( +delete_hyper_parameter_tuning_job( HyperParameterTuningJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteHyperParameterTuningJob", + Dict{String,Any}("HyperParameterTuningJobName" => HyperParameterTuningJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteHyperParameterTuningJob", - Dict{String,Any}("HyperParameterTuningJobName" => HyperParameterTuningJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_hyper_parameter_tuning_job( HyperParameterTuningJobName, params::AbstractDict{String}; @@ -5652,14 +5584,12 @@ deleted. - `image_name`: The name of the image to delete. """ -function delete_image(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteImage", - Dict{String,Any}("ImageName" => ImageName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_image(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteImage", + Dict{String,Any}("ImageName" => ImageName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_image( ImageName, params::AbstractDict{String}; @@ -5690,14 +5620,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Alias"`: The alias of the image to delete. - `"Version"`: The version to delete. """ -function delete_image_version(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +delete_image_version(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteImageVersion", Dict{String,Any}("ImageName" => ImageName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_image_version( ImageName, params::AbstractDict{String}; @@ -5723,16 +5652,14 @@ Deletes an inference component. - `inference_component_name`: The name of the inference component to delete. """ -function delete_inference_component( +delete_inference_component( InferenceComponentName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteInferenceComponent", + Dict{String,Any}("InferenceComponentName" => InferenceComponentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteInferenceComponent", - Dict{String,Any}("InferenceComponentName" => InferenceComponentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_inference_component( InferenceComponentName, params::AbstractDict{String}; @@ -5763,16 +5690,13 @@ or any underlying resources. This operation only deletes the metadata of your ex - `name`: The name of the inference experiment you want to delete. """ -function delete_inference_experiment( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_inference_experiment(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteInferenceExperiment", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_inference_experiment( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5794,16 +5718,14 @@ Deletes an MLflow Tracking Server. For more information, see Clean up MLflow res - `tracking_server_name`: The name of the the tracking server to delete. """ -function delete_mlflow_tracking_server( +delete_mlflow_tracking_server( TrackingServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteMlflowTrackingServer", + Dict{String,Any}("TrackingServerName" => TrackingServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteMlflowTrackingServer", - Dict{String,Any}("TrackingServerName" => TrackingServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_mlflow_tracking_server( TrackingServerName, params::AbstractDict{String}; @@ -5833,14 +5755,12 @@ inference code, or the IAM role that you specified when creating the model. - `model_name`: The name of the model to delete. """ -function delete_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteModel", - Dict{String,Any}("ModelName" => ModelName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteModel", + Dict{String,Any}("ModelName" => ModelName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_model( ModelName, params::AbstractDict{String}; @@ -5866,16 +5786,14 @@ Deletes an Amazon SageMaker model bias job definition. - `job_definition_name`: The name of the model bias job definition to delete. """ -function delete_model_bias_job_definition( +delete_model_bias_job_definition( JobDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteModelBiasJobDefinition", + Dict{String,Any}("JobDefinitionName" => JobDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteModelBiasJobDefinition", - Dict{String,Any}("JobDefinitionName" => JobDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_model_bias_job_definition( JobDefinitionName, params::AbstractDict{String}; @@ -5903,16 +5821,13 @@ Deletes an Amazon SageMaker Model Card. - `model_card_name`: The name of the model card to delete. """ -function delete_model_card( - ModelCardName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_model_card(ModelCardName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteModelCard", Dict{String,Any}("ModelCardName" => ModelCardName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_model_card( ModelCardName, params::AbstractDict{String}; @@ -5938,16 +5853,14 @@ Deletes an Amazon SageMaker model explainability job definition. - `job_definition_name`: The name of the model explainability job definition to delete. """ -function delete_model_explainability_job_definition( +delete_model_explainability_job_definition( JobDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteModelExplainabilityJobDefinition", + Dict{String,Any}("JobDefinitionName" => JobDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteModelExplainabilityJobDefinition", - Dict{String,Any}("JobDefinitionName" => JobDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_model_explainability_job_definition( JobDefinitionName, params::AbstractDict{String}; @@ -5979,16 +5892,13 @@ Web Services Marketplace to create models in SageMaker. are a-z, A-Z, 0-9, and - (hyphen). """ -function delete_model_package( - ModelPackageName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_model_package(ModelPackageName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteModelPackage", Dict{String,Any}("ModelPackageName" => ModelPackageName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_model_package( ModelPackageName, params::AbstractDict{String}; @@ -6016,16 +5926,14 @@ Deletes the specified model group. - `model_package_group_name`: The name of the model group to delete. """ -function delete_model_package_group( +delete_model_package_group( ModelPackageGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteModelPackageGroup", + Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteModelPackageGroup", - Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_model_package_group( ModelPackageGroupName, params::AbstractDict{String}; @@ -6055,16 +5963,14 @@ Deletes a model group resource policy. - `model_package_group_name`: The name of the model group for which to delete the policy. """ -function delete_model_package_group_policy( +delete_model_package_group_policy( ModelPackageGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteModelPackageGroupPolicy", + Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteModelPackageGroupPolicy", - Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_model_package_group_policy( ModelPackageGroupName, params::AbstractDict{String}; @@ -6094,16 +6000,14 @@ Deletes the secified model quality monitoring job definition. - `job_definition_name`: The name of the model quality monitoring job definition to delete. """ -function delete_model_quality_job_definition( +delete_model_quality_job_definition( JobDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteModelQualityJobDefinition", + Dict{String,Any}("JobDefinitionName" => JobDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteModelQualityJobDefinition", - Dict{String,Any}("JobDefinitionName" => JobDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_model_quality_job_definition( JobDefinitionName, params::AbstractDict{String}; @@ -6132,16 +6036,14 @@ does not delete the job execution history of the monitoring schedule. - `monitoring_schedule_name`: The name of the monitoring schedule to delete. """ -function delete_monitoring_schedule( +delete_monitoring_schedule( MonitoringScheduleName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteMonitoringSchedule", + Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteMonitoringSchedule", - Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_monitoring_schedule( MonitoringScheduleName, params::AbstractDict{String}; @@ -6174,16 +6076,14 @@ and the network interface associated with the notebook instance. - `notebook_instance_name`: The name of the SageMaker notebook instance to delete. """ -function delete_notebook_instance( +delete_notebook_instance( NotebookInstanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteNotebookInstance", + Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteNotebookInstance", - Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_notebook_instance( NotebookInstanceName, params::AbstractDict{String}; @@ -6214,32 +6114,67 @@ Deletes a notebook instance lifecycle configuration. delete. """ -function delete_notebook_instance_lifecycle_config( +delete_notebook_instance_lifecycle_config( NotebookInstanceLifecycleConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteNotebookInstanceLifecycleConfig", + Dict{String,Any}( + "NotebookInstanceLifecycleConfigName" => NotebookInstanceLifecycleConfigName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_notebook_instance_lifecycle_config( + NotebookInstanceLifecycleConfigName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return sagemaker( "DeleteNotebookInstanceLifecycleConfig", Dict{String,Any}( - "NotebookInstanceLifecycleConfigName" => NotebookInstanceLifecycleConfigName + mergewith( + _merge, + Dict{String,Any}( + "NotebookInstanceLifecycleConfigName" => + NotebookInstanceLifecycleConfigName, + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function delete_notebook_instance_lifecycle_config( - NotebookInstanceLifecycleConfigName, + +""" + delete_optimization_job(optimization_job_name) + delete_optimization_job(optimization_job_name, params::Dict{String,<:Any}) + +Deletes an optimization job. + +# Arguments +- `optimization_job_name`: The name that you assigned to the optimization job. + +""" +delete_optimization_job( + OptimizationJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteOptimizationJob", + Dict{String,Any}("OptimizationJobName" => OptimizationJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_optimization_job( + OptimizationJobName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return sagemaker( - "DeleteNotebookInstanceLifecycleConfig", + "DeleteOptimizationJob", Dict{String,Any}( mergewith( _merge, - Dict{String,Any}( - "NotebookInstanceLifecycleConfigName" => - NotebookInstanceLifecycleConfigName, - ), + Dict{String,Any}("OptimizationJobName" => OptimizationJobName), params, ), ); @@ -6262,18 +6197,16 @@ When you delete a pipeline, all instances of the pipeline are deleted. - `pipeline_name`: The name of the pipeline to delete. """ -function delete_pipeline( +delete_pipeline( ClientRequestToken, PipelineName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeletePipeline", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "PipelineName" => PipelineName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeletePipeline", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "PipelineName" => PipelineName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_pipeline( ClientRequestToken, PipelineName, @@ -6307,14 +6240,12 @@ Delete the specified project. - `project_name`: The name of the project to delete. """ -function delete_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteProject", - Dict{String,Any}("ProjectName" => ProjectName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteProject", + Dict{String,Any}("ProjectName" => ProjectName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_project( ProjectName, params::AbstractDict{String}; @@ -6341,16 +6272,13 @@ Used to delete a space. - `space_name`: The name of the space. """ -function delete_space( - DomainId, SpaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_space(DomainId, SpaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteSpace", Dict{String,Any}("DomainId" => DomainId, "SpaceName" => SpaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_space( DomainId, SpaceName, @@ -6385,16 +6313,14 @@ UserProfiles. Configuration to delete. """ -function delete_studio_lifecycle_config( +delete_studio_lifecycle_config( StudioLifecycleConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteStudioLifecycleConfig", + Dict{String,Any}("StudioLifecycleConfigName" => StudioLifecycleConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteStudioLifecycleConfig", - Dict{String,Any}("StudioLifecycleConfigName" => StudioLifecycleConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_studio_lifecycle_config( StudioLifecycleConfigName, params::AbstractDict{String}; @@ -6431,16 +6357,13 @@ User Profile launched before you called this API. - `tag_keys`: An array or one or more tag keys to delete. """ -function delete_tags( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +delete_tags(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteTags", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tags( ResourceArn, TagKeys, @@ -6472,14 +6395,12 @@ first. Use the DescribeTrialComponent API to get the list of trial components. - `trial_name`: The name of the trial to delete. """ -function delete_trial(TrialName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DeleteTrial", - Dict{String,Any}("TrialName" => TrialName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_trial(TrialName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DeleteTrial", + Dict{String,Any}("TrialName" => TrialName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_trial( TrialName, params::AbstractDict{String}; @@ -6507,16 +6428,14 @@ trial, call the DisassociateTrialComponent API. - `trial_component_name`: The name of the component to delete. """ -function delete_trial_component( +delete_trial_component( TrialComponentName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteTrialComponent", + Dict{String,Any}("TrialComponentName" => TrialComponentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteTrialComponent", - Dict{String,Any}("TrialComponentName" => TrialComponentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_trial_component( TrialComponentName, params::AbstractDict{String}; @@ -6546,16 +6465,14 @@ volume, including data, notebooks, and other artifacts. - `user_profile_name`: The user profile name. """ -function delete_user_profile( +delete_user_profile( DomainId, UserProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeleteUserProfile", + Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeleteUserProfile", - Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_profile( DomainId, UserProfileName, @@ -6593,14 +6510,13 @@ workforce that contains one or more work teams, you will receive a ResourceInUse - `workforce_name`: The name of the workforce. """ -function delete_workforce(WorkforceName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +delete_workforce(WorkforceName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteWorkforce", Dict{String,Any}("WorkforceName" => WorkforceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_workforce( WorkforceName, params::AbstractDict{String}; @@ -6626,14 +6542,13 @@ Deletes an existing work team. This operation can't be undone. - `workteam_name`: The name of the work team to delete. """ -function delete_workteam(WorkteamName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +delete_workteam(WorkteamName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DeleteWorkteam", Dict{String,Any}("WorkteamName" => WorkteamName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_workteam( WorkteamName, params::AbstractDict{String}; @@ -6661,18 +6576,14 @@ re-register the devices. - `device_names`: The unique IDs of the devices. """ -function deregister_devices( +deregister_devices( DeviceFleetName, DeviceNames; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DeregisterDevices", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "DeviceNames" => DeviceNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DeregisterDevices", - Dict{String,Any}( - "DeviceFleetName" => DeviceFleetName, "DeviceNames" => DeviceNames - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_devices( DeviceFleetName, DeviceNames, @@ -6705,14 +6616,12 @@ Describes an action. - `action_name`: The name of the action to describe. """ -function describe_action(ActionName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DescribeAction", - Dict{String,Any}("ActionName" => ActionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_action(ActionName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DescribeAction", + Dict{String,Any}("ActionName" => ActionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_action( ActionName, params::AbstractDict{String}; @@ -6738,16 +6647,13 @@ Returns a description of the specified algorithm that is in your account. - `algorithm_name`: The name of the algorithm to describe. """ -function describe_algorithm( - AlgorithmName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_algorithm(AlgorithmName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeAlgorithm", Dict{String,Any}("AlgorithmName" => AlgorithmName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_algorithm( AlgorithmName, params::AbstractDict{String}; @@ -6780,18 +6686,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserProfileName"`: The user profile name. If this value is not set, then SpaceName must be set. """ -function describe_app( +describe_app( AppName, AppType, DomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeApp", + Dict{String,Any}("AppName" => AppName, "AppType" => AppType, "DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeApp", - Dict{String,Any}( - "AppName" => AppName, "AppType" => AppType, "DomainId" => DomainId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app( AppName, AppType, @@ -6825,16 +6727,14 @@ Describes an AppImageConfig. - `app_image_config_name`: The name of the AppImageConfig to describe. """ -function describe_app_image_config( +describe_app_image_config( AppImageConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeAppImageConfig", + Dict{String,Any}("AppImageConfigName" => AppImageConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeAppImageConfig", - Dict{String,Any}("AppImageConfigName" => AppImageConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_app_image_config( AppImageConfigName, params::AbstractDict{String}; @@ -6862,14 +6762,13 @@ Describes an artifact. - `artifact_arn`: The Amazon Resource Name (ARN) of the artifact to describe. """ -function describe_artifact(ArtifactArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +describe_artifact(ArtifactArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeArtifact", Dict{String,Any}("ArtifactArn" => ArtifactArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_artifact( ArtifactArn, params::AbstractDict{String}; @@ -6896,16 +6795,13 @@ created by calling CreateAutoMLJobV2 cannot be described by DescribeAutoMLJob. - `auto_mljob_name`: Requests information about an AutoML job using its unique name. """ -function describe_auto_mljob( - AutoMLJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_auto_mljob(AutoMLJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeAutoMLJob", Dict{String,Any}("AutoMLJobName" => AutoMLJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_auto_mljob( AutoMLJobName, params::AbstractDict{String}; @@ -6932,16 +6828,13 @@ CreateAutoMLJob. - `auto_mljob_name`: Requests information about an AutoML job V2 using its unique name. """ -function describe_auto_mljob_v2( - AutoMLJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_auto_mljob_v2(AutoMLJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeAutoMLJobV2", Dict{String,Any}("AutoMLJobName" => AutoMLJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_auto_mljob_v2( AutoMLJobName, params::AbstractDict{String}; @@ -6968,14 +6861,13 @@ Retrieves information of a SageMaker HyperPod cluster. HyperPod cluster. """ -function describe_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +describe_cluster(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeCluster", Dict{String,Any}("ClusterName" => ClusterName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cluster( ClusterName, params::AbstractDict{String}; @@ -7004,16 +6896,14 @@ HyperPod cluster. - `node_id`: The ID of the SageMaker HyperPod cluster node. """ -function describe_cluster_node( +describe_cluster_node( ClusterName, NodeId; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeClusterNode", + Dict{String,Any}("ClusterName" => ClusterName, "NodeId" => NodeId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeClusterNode", - Dict{String,Any}("ClusterName" => ClusterName, "NodeId" => NodeId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cluster_node( ClusterName, NodeId, @@ -7044,16 +6934,14 @@ Gets details about the specified Git repository. - `code_repository_name`: The name of the Git repository to describe. """ -function describe_code_repository( +describe_code_repository( CodeRepositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeCodeRepository", + Dict{String,Any}("CodeRepositoryName" => CodeRepositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeCodeRepository", - Dict{String,Any}("CodeRepositoryName" => CodeRepositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_code_repository( CodeRepositoryName, params::AbstractDict{String}; @@ -7084,16 +6972,14 @@ ListCompilationJobs. about. """ -function describe_compilation_job( +describe_compilation_job( CompilationJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeCompilationJob", + Dict{String,Any}("CompilationJobName" => CompilationJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeCompilationJob", - Dict{String,Any}("CompilationJobName" => CompilationJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_compilation_job( CompilationJobName, params::AbstractDict{String}; @@ -7121,14 +7007,13 @@ Describes a context. - `context_name`: The name of the context to describe. """ -function describe_context(ContextName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +describe_context(ContextName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeContext", Dict{String,Any}("ContextName" => ContextName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_context( ContextName, params::AbstractDict{String}; @@ -7154,16 +7039,14 @@ Gets the details of a data quality monitoring job definition. - `job_definition_name`: The name of the data quality monitoring job definition to describe. """ -function describe_data_quality_job_definition( +describe_data_quality_job_definition( JobDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeDataQualityJobDefinition", + Dict{String,Any}("JobDefinitionName" => JobDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeDataQualityJobDefinition", - Dict{String,Any}("JobDefinitionName" => JobDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_data_quality_job_definition( JobDefinitionName, params::AbstractDict{String}; @@ -7195,16 +7078,14 @@ Describes the device. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Next token of device description. """ -function describe_device( +describe_device( DeviceFleetName, DeviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeDevice", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "DeviceName" => DeviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeDevice", - Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "DeviceName" => DeviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_device( DeviceFleetName, DeviceName, @@ -7237,16 +7118,13 @@ A description of the fleet the device belongs to. - `device_fleet_name`: The name of the fleet. """ -function describe_device_fleet( - DeviceFleetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_device_fleet(DeviceFleetName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeDeviceFleet", Dict{String,Any}("DeviceFleetName" => DeviceFleetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_device_fleet( DeviceFleetName, params::AbstractDict{String}; @@ -7274,14 +7152,12 @@ The description of the domain. - `domain_id`: The domain ID. """ -function describe_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DescribeDomain", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DescribeDomain", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_domain( DomainId, params::AbstractDict{String}; @@ -7312,16 +7188,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If the edge deployment plan has enough stages to require tokening, then this is the response from the last list of stages returned. """ -function describe_edge_deployment_plan( +describe_edge_deployment_plan( EdgeDeploymentPlanName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeEdgeDeploymentPlan", + Dict{String,Any}("EdgeDeploymentPlanName" => EdgeDeploymentPlanName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeEdgeDeploymentPlan", - Dict{String,Any}("EdgeDeploymentPlanName" => EdgeDeploymentPlanName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_edge_deployment_plan( EdgeDeploymentPlanName, params::AbstractDict{String}; @@ -7351,16 +7225,14 @@ A description of edge packaging jobs. - `edge_packaging_job_name`: The name of the edge packaging job. """ -function describe_edge_packaging_job( +describe_edge_packaging_job( EdgePackagingJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeEdgePackagingJob", + Dict{String,Any}("EdgePackagingJobName" => EdgePackagingJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeEdgePackagingJob", - Dict{String,Any}("EdgePackagingJobName" => EdgePackagingJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_edge_packaging_job( EdgePackagingJobName, params::AbstractDict{String}; @@ -7390,14 +7262,13 @@ Returns the description of an endpoint. - `endpoint_name`: The name of the endpoint. """ -function describe_endpoint(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +describe_endpoint(EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeEndpoint", Dict{String,Any}("EndpointName" => EndpointName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_endpoint( EndpointName, params::AbstractDict{String}; @@ -7424,16 +7295,14 @@ API. - `endpoint_config_name`: The name of the endpoint configuration. """ -function describe_endpoint_config( +describe_endpoint_config( EndpointConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeEndpointConfig", + Dict{String,Any}("EndpointConfigName" => EndpointConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeEndpointConfig", - Dict{String,Any}("EndpointConfigName" => EndpointConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_endpoint_config( EndpointConfigName, params::AbstractDict{String}; @@ -7461,16 +7330,13 @@ Provides a list of an experiment's properties. - `experiment_name`: The name of the experiment to describe. """ -function describe_experiment( - ExperimentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_experiment(ExperimentName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeExperiment", Dict{String,Any}("ExperimentName" => ExperimentName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_experiment( ExperimentName, params::AbstractDict{String}; @@ -7502,16 +7368,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token to resume pagination of the list of Features (FeatureDefinitions). 2,500 Features are returned by default. """ -function describe_feature_group( +describe_feature_group( FeatureGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeFeatureGroup", + Dict{String,Any}("FeatureGroupName" => FeatureGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeFeatureGroup", - Dict{String,Any}("FeatureGroupName" => FeatureGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_feature_group( FeatureGroupName, params::AbstractDict{String}; @@ -7541,18 +7405,14 @@ Shows the metadata for a feature within a feature group. - `feature_name`: The name of the feature. """ -function describe_feature_metadata( +describe_feature_metadata( FeatureGroupName, FeatureName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeFeatureMetadata", + Dict{String,Any}("FeatureGroupName" => FeatureGroupName, "FeatureName" => FeatureName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeFeatureMetadata", - Dict{String,Any}( - "FeatureGroupName" => FeatureGroupName, "FeatureName" => FeatureName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_feature_metadata( FeatureGroupName, FeatureName, @@ -7585,16 +7445,14 @@ Returns information about the specified flow definition. - `flow_definition_name`: The name of the flow definition. """ -function describe_flow_definition( +describe_flow_definition( FlowDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeFlowDefinition", + Dict{String,Any}("FlowDefinitionName" => FlowDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeFlowDefinition", - Dict{String,Any}("FlowDefinitionName" => FlowDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_flow_definition( FlowDefinitionName, params::AbstractDict{String}; @@ -7622,14 +7480,12 @@ Describes a hub. - `hub_name`: The name of the hub to describe. """ -function describe_hub(HubName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DescribeHub", - Dict{String,Any}("HubName" => HubName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_hub(HubName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DescribeHub", + Dict{String,Any}("HubName" => HubName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_hub( HubName, params::AbstractDict{String}; @@ -7658,23 +7514,21 @@ Describe the content of a hub. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"HubContentVersion"`: The version of the content to describe. """ -function describe_hub_content( +describe_hub_content( HubContentName, HubContentType, HubName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "DescribeHubContent", + Dict{String,Any}( + "HubContentName" => HubContentName, + "HubContentType" => HubContentType, + "HubName" => HubName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeHubContent", - Dict{String,Any}( - "HubContentName" => HubContentName, - "HubContentType" => HubContentType, - "HubName" => HubName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_hub_content( HubContentName, HubContentType, @@ -7711,16 +7565,14 @@ Returns information about the requested human task user interface (worker task t you want information about. """ -function describe_human_task_ui( +describe_human_task_ui( HumanTaskUiName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeHumanTaskUi", + Dict{String,Any}("HumanTaskUiName" => HumanTaskUiName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeHumanTaskUi", - Dict{String,Any}("HumanTaskUiName" => HumanTaskUiName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_human_task_ui( HumanTaskUiName, params::AbstractDict{String}; @@ -7750,16 +7602,14 @@ job and more. - `hyper_parameter_tuning_job_name`: The name of the tuning job. """ -function describe_hyper_parameter_tuning_job( +describe_hyper_parameter_tuning_job( HyperParameterTuningJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeHyperParameterTuningJob", + Dict{String,Any}("HyperParameterTuningJobName" => HyperParameterTuningJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeHyperParameterTuningJob", - Dict{String,Any}("HyperParameterTuningJobName" => HyperParameterTuningJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_hyper_parameter_tuning_job( HyperParameterTuningJobName, params::AbstractDict{String}; @@ -7791,14 +7641,12 @@ Describes a SageMaker image. - `image_name`: The name of the image to describe. """ -function describe_image(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DescribeImage", - Dict{String,Any}("ImageName" => ImageName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_image(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DescribeImage", + Dict{String,Any}("ImageName" => ImageName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_image( ImageName, params::AbstractDict{String}; @@ -7828,16 +7676,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Alias"`: The alias of the image version. - `"Version"`: The version of the image. If not specified, the latest version is described. """ -function describe_image_version( - ImageName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_image_version(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeImageVersion", Dict{String,Any}("ImageName" => ImageName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_image_version( ImageName, params::AbstractDict{String}; @@ -7863,16 +7708,14 @@ Returns information about an inference component. - `inference_component_name`: The name of the inference component. """ -function describe_inference_component( +describe_inference_component( InferenceComponentName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeInferenceComponent", + Dict{String,Any}("InferenceComponentName" => InferenceComponentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeInferenceComponent", - Dict{String,Any}("InferenceComponentName" => InferenceComponentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_inference_component( InferenceComponentName, params::AbstractDict{String}; @@ -7902,16 +7745,13 @@ Returns details about an inference experiment. - `name`: The name of the inference experiment to describe. """ -function describe_inference_experiment( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_inference_experiment(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeInferenceExperiment", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_inference_experiment( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -7935,16 +7775,14 @@ returned. Region in the Amazon Web Services account. """ -function describe_inference_recommendations_job( +describe_inference_recommendations_job( JobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeInferenceRecommendationsJob", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeInferenceRecommendationsJob", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_inference_recommendations_job( JobName, params::AbstractDict{String}; @@ -7968,16 +7806,13 @@ Gets information about a labeling job. - `labeling_job_name`: The name of the labeling job to return information for. """ -function describe_labeling_job( - LabelingJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_labeling_job(LabelingJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeLabelingJob", Dict{String,Any}("LabelingJobName" => LabelingJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_labeling_job( LabelingJobName, params::AbstractDict{String}; @@ -8006,16 +7841,14 @@ Cross-Account Lineage Tracking in the Amazon SageMaker Developer Guide. - `lineage_group_name`: The name of the lineage group. """ -function describe_lineage_group( +describe_lineage_group( LineageGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeLineageGroup", + Dict{String,Any}("LineageGroupName" => LineageGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeLineageGroup", - Dict{String,Any}("LineageGroupName" => LineageGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_lineage_group( LineageGroupName, params::AbstractDict{String}; @@ -8043,16 +7876,14 @@ Returns information about an MLflow Tracking Server. - `tracking_server_name`: The name of the MLflow Tracking Server to describe. """ -function describe_mlflow_tracking_server( +describe_mlflow_tracking_server( TrackingServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeMlflowTrackingServer", + Dict{String,Any}("TrackingServerName" => TrackingServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeMlflowTrackingServer", - Dict{String,Any}("TrackingServerName" => TrackingServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_mlflow_tracking_server( TrackingServerName, params::AbstractDict{String}; @@ -8080,14 +7911,12 @@ Describes a model that you created using the CreateModel API. - `model_name`: The name of the model. """ -function describe_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DescribeModel", - Dict{String,Any}("ModelName" => ModelName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DescribeModel", + Dict{String,Any}("ModelName" => ModelName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_model( ModelName, params::AbstractDict{String}; @@ -8114,16 +7943,14 @@ Returns a description of a model bias job definition. within an Amazon Web Services Region in the Amazon Web Services account. """ -function describe_model_bias_job_definition( +describe_model_bias_job_definition( JobDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeModelBiasJobDefinition", + Dict{String,Any}("JobDefinitionName" => JobDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeModelBiasJobDefinition", - Dict{String,Any}("JobDefinitionName" => JobDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model_bias_job_definition( JobDefinitionName, params::AbstractDict{String}; @@ -8156,16 +7983,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ModelCardVersion"`: The version of the model card to describe. If a version is not provided, then the latest version of the model card is described. """ -function describe_model_card( - ModelCardName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_model_card(ModelCardName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeModelCard", Dict{String,Any}("ModelCardName" => ModelCardName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_model_card( ModelCardName, params::AbstractDict{String}; @@ -8192,16 +8016,14 @@ Describes an Amazon SageMaker Model Card export job. to describe. """ -function describe_model_card_export_job( +describe_model_card_export_job( ModelCardExportJobArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeModelCardExportJob", + Dict{String,Any}("ModelCardExportJobArn" => ModelCardExportJobArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeModelCardExportJob", - Dict{String,Any}("ModelCardExportJobArn" => ModelCardExportJobArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model_card_export_job( ModelCardExportJobArn, params::AbstractDict{String}; @@ -8232,16 +8054,14 @@ Returns a description of a model explainability job definition. be unique within an Amazon Web Services Region in the Amazon Web Services account. """ -function describe_model_explainability_job_definition( +describe_model_explainability_job_definition( JobDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeModelExplainabilityJobDefinition", + Dict{String,Any}("JobDefinitionName" => JobDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeModelExplainabilityJobDefinition", - Dict{String,Any}("JobDefinitionName" => JobDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model_explainability_job_definition( JobDefinitionName, params::AbstractDict{String}; @@ -8275,16 +8095,14 @@ packages listed on Amazon Web Services Marketplace. are a-z, A-Z, 0-9, and - (hyphen). """ -function describe_model_package( +describe_model_package( ModelPackageName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeModelPackage", + Dict{String,Any}("ModelPackageName" => ModelPackageName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeModelPackage", - Dict{String,Any}("ModelPackageName" => ModelPackageName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model_package( ModelPackageName, params::AbstractDict{String}; @@ -8312,16 +8130,14 @@ Gets a description for the specified model group. - `model_package_group_name`: The name of the model group to describe. """ -function describe_model_package_group( +describe_model_package_group( ModelPackageGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeModelPackageGroup", + Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeModelPackageGroup", - Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model_package_group( ModelPackageGroupName, params::AbstractDict{String}; @@ -8352,16 +8168,14 @@ Returns a description of a model quality job definition. an Amazon Web Services Region in the Amazon Web Services account. """ -function describe_model_quality_job_definition( +describe_model_quality_job_definition( JobDefinitionName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeModelQualityJobDefinition", + Dict{String,Any}("JobDefinitionName" => JobDefinitionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeModelQualityJobDefinition", - Dict{String,Any}("JobDefinitionName" => JobDefinitionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_model_quality_job_definition( JobDefinitionName, params::AbstractDict{String}; @@ -8389,16 +8203,14 @@ Describes the schedule for a monitoring job. - `monitoring_schedule_name`: Name of a previously created monitoring schedule. """ -function describe_monitoring_schedule( +describe_monitoring_schedule( MonitoringScheduleName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeMonitoringSchedule", + Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeMonitoringSchedule", - Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_monitoring_schedule( MonitoringScheduleName, params::AbstractDict{String}; @@ -8429,16 +8241,14 @@ Returns information about a notebook instance. about. """ -function describe_notebook_instance( +describe_notebook_instance( NotebookInstanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeNotebookInstance", + Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeNotebookInstance", - Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_notebook_instance( NotebookInstanceName, params::AbstractDict{String}; @@ -8471,32 +8281,67 @@ Instance. describe. """ -function describe_notebook_instance_lifecycle_config( +describe_notebook_instance_lifecycle_config( NotebookInstanceLifecycleConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeNotebookInstanceLifecycleConfig", + Dict{String,Any}( + "NotebookInstanceLifecycleConfigName" => NotebookInstanceLifecycleConfigName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_notebook_instance_lifecycle_config( + NotebookInstanceLifecycleConfigName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return sagemaker( "DescribeNotebookInstanceLifecycleConfig", Dict{String,Any}( - "NotebookInstanceLifecycleConfigName" => NotebookInstanceLifecycleConfigName + mergewith( + _merge, + Dict{String,Any}( + "NotebookInstanceLifecycleConfigName" => + NotebookInstanceLifecycleConfigName, + ), + params, + ), ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function describe_notebook_instance_lifecycle_config( - NotebookInstanceLifecycleConfigName, + +""" + describe_optimization_job(optimization_job_name) + describe_optimization_job(optimization_job_name, params::Dict{String,<:Any}) + +Provides the properties of the specified optimization job. + +# Arguments +- `optimization_job_name`: The name that you assigned to the optimization job. + +""" +describe_optimization_job( + OptimizationJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeOptimizationJob", + Dict{String,Any}("OptimizationJobName" => OptimizationJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_optimization_job( + OptimizationJobName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return sagemaker( - "DescribeNotebookInstanceLifecycleConfig", + "DescribeOptimizationJob", Dict{String,Any}( mergewith( _merge, - Dict{String,Any}( - "NotebookInstanceLifecycleConfigName" => - NotebookInstanceLifecycleConfigName, - ), + Dict{String,Any}("OptimizationJobName" => OptimizationJobName), params, ), ); @@ -8515,14 +8360,13 @@ Describes the details of a pipeline. - `pipeline_name`: The name or Amazon Resource Name (ARN) of the pipeline to describe. """ -function describe_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +describe_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribePipeline", Dict{String,Any}("PipelineName" => PipelineName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_pipeline( PipelineName, params::AbstractDict{String}; @@ -8548,16 +8392,14 @@ Describes the details of an execution's pipeline definition. - `pipeline_execution_arn`: The Amazon Resource Name (ARN) of the pipeline execution. """ -function describe_pipeline_definition_for_execution( +describe_pipeline_definition_for_execution( PipelineExecutionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribePipelineDefinitionForExecution", + Dict{String,Any}("PipelineExecutionArn" => PipelineExecutionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribePipelineDefinitionForExecution", - Dict{String,Any}("PipelineExecutionArn" => PipelineExecutionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_pipeline_definition_for_execution( PipelineExecutionArn, params::AbstractDict{String}; @@ -8587,16 +8429,14 @@ Describes the details of a pipeline execution. - `pipeline_execution_arn`: The Amazon Resource Name (ARN) of the pipeline execution. """ -function describe_pipeline_execution( +describe_pipeline_execution( PipelineExecutionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribePipelineExecution", + Dict{String,Any}("PipelineExecutionArn" => PipelineExecutionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribePipelineExecution", - Dict{String,Any}("PipelineExecutionArn" => PipelineExecutionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_pipeline_execution( PipelineExecutionArn, params::AbstractDict{String}; @@ -8627,16 +8467,14 @@ Returns a description of a processing job. Amazon Web Services Region in the Amazon Web Services account. """ -function describe_processing_job( +describe_processing_job( ProcessingJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeProcessingJob", + Dict{String,Any}("ProcessingJobName" => ProcessingJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeProcessingJob", - Dict{String,Any}("ProcessingJobName" => ProcessingJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_processing_job( ProcessingJobName, params::AbstractDict{String}; @@ -8664,14 +8502,13 @@ Describes the details of a project. - `project_name`: The name of the project to describe. """ -function describe_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +describe_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeProject", Dict{String,Any}("ProjectName" => ProjectName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_project( ProjectName, params::AbstractDict{String}; @@ -8698,16 +8535,13 @@ Describes the space. - `space_name`: The name of the space. """ -function describe_space( - DomainId, SpaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_space(DomainId, SpaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeSpace", Dict{String,Any}("DomainId" => DomainId, "SpaceName" => SpaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_space( DomainId, SpaceName, @@ -8739,16 +8573,14 @@ Describes the Amazon SageMaker Studio Lifecycle Configuration. Configuration to describe. """ -function describe_studio_lifecycle_config( +describe_studio_lifecycle_config( StudioLifecycleConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeStudioLifecycleConfig", + Dict{String,Any}("StudioLifecycleConfigName" => StudioLifecycleConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeStudioLifecycleConfig", - Dict{String,Any}("StudioLifecycleConfigName" => StudioLifecycleConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_studio_lifecycle_config( StudioLifecycleConfigName, params::AbstractDict{String}; @@ -8779,16 +8611,14 @@ subscription with a vendor in the Amazon Web Services Marketplace. - `workteam_arn`: The Amazon Resource Name (ARN) of the subscribed work team to describe. """ -function describe_subscribed_workteam( +describe_subscribed_workteam( WorkteamArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeSubscribedWorkteam", + Dict{String,Any}("WorkteamArn" => WorkteamArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeSubscribedWorkteam", - Dict{String,Any}("WorkteamArn" => WorkteamArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_subscribed_workteam( WorkteamArn, params::AbstractDict{String}; @@ -8818,16 +8648,13 @@ response. - `training_job_name`: The name of the training job. """ -function describe_training_job( - TrainingJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_training_job(TrainingJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeTrainingJob", Dict{String,Any}("TrainingJobName" => TrainingJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_training_job( TrainingJobName, params::AbstractDict{String}; @@ -8855,16 +8682,14 @@ Returns information about a transform job. - `transform_job_name`: The name of the transform job that you want to view details of. """ -function describe_transform_job( +describe_transform_job( TransformJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeTransformJob", + Dict{String,Any}("TransformJobName" => TransformJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeTransformJob", - Dict{String,Any}("TransformJobName" => TransformJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_transform_job( TransformJobName, params::AbstractDict{String}; @@ -8892,14 +8717,12 @@ Provides a list of a trial's properties. - `trial_name`: The name of the trial to describe. """ -function describe_trial(TrialName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "DescribeTrial", - Dict{String,Any}("TrialName" => TrialName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_trial(TrialName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "DescribeTrial", + Dict{String,Any}("TrialName" => TrialName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_trial( TrialName, params::AbstractDict{String}; @@ -8925,16 +8748,14 @@ Provides a list of a trials component's properties. - `trial_component_name`: The name of the trial component to describe. """ -function describe_trial_component( +describe_trial_component( TrialComponentName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeTrialComponent", + Dict{String,Any}("TrialComponentName" => TrialComponentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeTrialComponent", - Dict{String,Any}("TrialComponentName" => TrialComponentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trial_component( TrialComponentName, params::AbstractDict{String}; @@ -8963,16 +8784,14 @@ Describes a user profile. For more information, see CreateUserProfile. - `user_profile_name`: The user profile name. This value is not case sensitive. """ -function describe_user_profile( +describe_user_profile( DomainId, UserProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DescribeUserProfile", + Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DescribeUserProfile", - Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_user_profile( DomainId, UserProfileName, @@ -9010,16 +8829,13 @@ workforces. modified. """ -function describe_workforce( - WorkforceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +describe_workforce(WorkforceName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeWorkforce", Dict{String,Any}("WorkforceName" => WorkforceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_workforce( WorkforceName, params::AbstractDict{String}; @@ -9047,14 +8863,13 @@ Name (ARN). - `workteam_name`: The name of the work team to return a description of. """ -function describe_workteam(WorkteamName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +describe_workteam(WorkteamName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "DescribeWorkteam", Dict{String,Any}("WorkteamName" => WorkteamName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_workteam( WorkteamName, params::AbstractDict{String}; @@ -9078,15 +8893,13 @@ Disables using Service Catalog in SageMaker. Service Catalog is used to create S projects. """ -function disable_sagemaker_servicecatalog_portfolio(; +disable_sagemaker_servicecatalog_portfolio(; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DisableSagemakerServicecatalogPortfolio"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DisableSagemakerServicecatalogPortfolio"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_sagemaker_servicecatalog_portfolio( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9114,18 +8927,14 @@ parameter. The list appears in the response under Results.TrialComponent.Parents - `trial_name`: The name of the trial to disassociate from. """ -function disassociate_trial_component( +disassociate_trial_component( TrialComponentName, TrialName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "DisassociateTrialComponent", + Dict{String,Any}("TrialComponentName" => TrialComponentName, "TrialName" => TrialName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "DisassociateTrialComponent", - Dict{String,Any}( - "TrialComponentName" => TrialComponentName, "TrialName" => TrialName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_trial_component( TrialComponentName, TrialName, @@ -9156,15 +8965,13 @@ Enables using Service Catalog in SageMaker. Service Catalog is used to create Sa projects. """ -function enable_sagemaker_servicecatalog_portfolio(; +enable_sagemaker_servicecatalog_portfolio(; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "EnableSagemakerServicecatalogPortfolio"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "EnableSagemakerServicecatalogPortfolio"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_sagemaker_servicecatalog_portfolio( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9186,16 +8993,14 @@ Describes a fleet. - `device_fleet_name`: The name of the fleet. """ -function get_device_fleet_report( +get_device_fleet_report( DeviceFleetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "GetDeviceFleetReport", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "GetDeviceFleetReport", - Dict{String,Any}("DeviceFleetName" => DeviceFleetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_device_fleet_report( DeviceFleetName, params::AbstractDict{String}; @@ -9223,16 +9028,14 @@ The resource policy for the lineage group. - `lineage_group_name`: The name or Amazon Resource Name (ARN) of the lineage group. """ -function get_lineage_group_policy( +get_lineage_group_policy( LineageGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "GetLineageGroupPolicy", + Dict{String,Any}("LineageGroupName" => LineageGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "GetLineageGroupPolicy", - Dict{String,Any}("LineageGroupName" => LineageGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_lineage_group_policy( LineageGroupName, params::AbstractDict{String}; @@ -9263,16 +9066,14 @@ Web Services Identity and Access Management User Guide.. policy. """ -function get_model_package_group_policy( +get_model_package_group_policy( ModelPackageGroupName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "GetModelPackageGroupPolicy", + Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "GetModelPackageGroupPolicy", - Dict{String,Any}("ModelPackageGroupName" => ModelPackageGroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_model_package_group_policy( ModelPackageGroupName, params::AbstractDict{String}; @@ -9300,15 +9101,13 @@ Gets the status of Service Catalog in SageMaker. Service Catalog is used to crea SageMaker projects. """ -function get_sagemaker_servicecatalog_portfolio_status(; +get_sagemaker_servicecatalog_portfolio_status(; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "GetSagemakerServicecatalogPortfolioStatus"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "GetSagemakerServicecatalogPortfolioStatus"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sagemaker_servicecatalog_portfolio_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9346,18 +9145,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetCpuUtilizationPerCore"`: The percentage of how much utilization you want an instance to use before autoscaling. The default value is 50%. """ -function get_scaling_configuration_recommendation( - InferenceRecommendationsJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( - "GetScalingConfigurationRecommendation", - Dict{String,Any}( - "InferenceRecommendationsJobName" => InferenceRecommendationsJobName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_scaling_configuration_recommendation( + InferenceRecommendationsJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "GetScalingConfigurationRecommendation", + Dict{String,Any}("InferenceRecommendationsJobName" => InferenceRecommendationsJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_scaling_configuration_recommendation( InferenceRecommendationsJobName, params::AbstractDict{String}; @@ -9394,16 +9189,13 @@ suggestions for HyperParameters, Tags, and Metrics. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SuggestionQuery"`: Limits the property names that are included in the response. """ -function get_search_suggestions( - Resource; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +get_search_suggestions(Resource; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "GetSearchSuggestions", Dict{String,Any}("Resource" => Resource); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_search_suggestions( Resource, params::AbstractDict{String}; @@ -9443,27 +9235,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HubContentVersion"`: The version of the hub content to import. - `"Tags"`: Any tags associated with the hub content. """ -function import_hub_content( +import_hub_content( DocumentSchemaVersion, HubContentDocument, HubContentName, HubContentType, HubName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "ImportHubContent", + Dict{String,Any}( + "DocumentSchemaVersion" => DocumentSchemaVersion, + "HubContentDocument" => HubContentDocument, + "HubContentName" => HubContentName, + "HubContentType" => HubContentType, + "HubName" => HubName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ImportHubContent", - Dict{String,Any}( - "DocumentSchemaVersion" => DocumentSchemaVersion, - "HubContentDocument" => HubContentDocument, - "HubContentName" => HubContentName, - "HubContentType" => HubContentType, - "HubName" => HubName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_hub_content( DocumentSchemaVersion, HubContentDocument, @@ -9514,9 +9304,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order. The default value is Descending. - `"SourceUri"`: A filter that returns only actions with the specified source URI. """ -function list_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9546,11 +9335,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The parameter by which to sort the results. The default is CreationTime. - `"SortOrder"`: The sort order for the results. The default is Ascending. """ -function list_algorithms(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListAlgorithms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_algorithms(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListAlgorithms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_algorithms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9577,14 +9363,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Version"`: The version of the image. If image version is not specified, the aliases of all versions of the image are listed. """ -function list_aliases(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListAliases", - Dict{String,Any}("ImageName" => ImageName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_aliases(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListAliases", + Dict{String,Any}("ImageName" => ImageName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_aliases( ImageName, params::AbstractDict{String}; @@ -9629,11 +9413,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The property used to sort results. The default value is CreationTime. - `"SortOrder"`: The sort order. The default value is Descending. """ -function list_app_image_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListAppImageConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_app_image_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListAppImageConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_app_image_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9668,9 +9449,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UserProfileNameEquals"`: A parameter to search by user profile name. If SpaceNameEquals is set, then this value cannot be set. """ -function list_apps(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListApps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_apps(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListApps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_apps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9700,11 +9480,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order. The default value is Descending. - `"SourceUri"`: A filter that returns only artifacts with the specified source URI. """ -function list_artifacts(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListArtifacts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_artifacts(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListArtifacts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_artifacts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9739,11 +9516,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceArn"`: A filter that returns only associations with the specified source ARN. - `"SourceType"`: A filter that returns only associations with the specified source type. """ -function list_associations(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9772,11 +9546,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for the results. The default is Descending. - `"StatusEquals"`: Request a list of jobs, using a filter for status. """ -function list_auto_mljobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListAutoMLJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_auto_mljobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListAutoMLJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_auto_mljobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9804,16 +9575,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for the results. The default is Ascending. - `"StatusEquals"`: List the candidates for the job and filter by status. """ -function list_candidates_for_auto_mljob( +list_candidates_for_auto_mljob( AutoMLJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListCandidatesForAutoMLJob", + Dict{String,Any}("AutoMLJobName" => AutoMLJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListCandidatesForAutoMLJob", - Dict{String,Any}("AutoMLJobName" => AutoMLJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_candidates_for_auto_mljob( AutoMLJobName, params::AbstractDict{String}; @@ -9864,14 +9633,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field by which to sort results. The default value is CREATION_TIME. - `"SortOrder"`: The sort order for results. The default value is Ascending. """ -function list_cluster_nodes(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_cluster_nodes(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListClusterNodes", Dict{String,Any}("ClusterName" => ClusterName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_cluster_nodes( ClusterName, params::AbstractDict{String}; @@ -9915,9 +9683,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field by which to sort results. The default value is CREATION_TIME. - `"SortOrder"`: The sort order for results. The default value is Ascending. """ -function list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9951,11 +9718,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field to sort results by. The default is Name. - `"SortOrder"`: The sort order for results. The default is Ascending. """ -function list_code_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListCodeRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_code_repositories(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListCodeRepositories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_code_repositories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -9996,11 +9761,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StatusEquals"`: A filter that retrieves model compilation jobs with a specific CompilationJobStatus status. """ -function list_compilation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListCompilationJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_compilation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListCompilationJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_compilation_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10033,9 +9795,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order. The default value is Descending. - `"SourceUri"`: A filter that returns only contexts with the specified source URI. """ -function list_contexts(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListContexts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_contexts(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListContexts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_contexts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10070,15 +9831,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: Whether to sort the results in Ascending or Descending order. The default is Descending. """ -function list_data_quality_job_definitions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +list_data_quality_job_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListDataQualityJobDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_data_quality_job_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10110,11 +9868,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The column to sort by. - `"SortOrder"`: What direction to sort in. """ -function list_device_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListDeviceFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_device_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListDeviceFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_device_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10139,9 +9894,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The response from the last list when returning a list large enough to need tokening. """ -function list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListDevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListDevices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10166,9 +9920,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10201,11 +9954,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DEVICEFLEETNAME, CREATIONTIME, LASTMODIFIEDTIME. - `"SortOrder"`: The direction of the sorting (ascending or descending). """ -function list_edge_deployment_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_edge_deployment_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListEdgeDeploymentPlans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_edge_deployment_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10238,11 +9990,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: What direction to sort by. - `"StatusEquals"`: The job status to filter for. """ -function list_edge_packaging_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListEdgePackagingJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_edge_packaging_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListEdgePackagingJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_edge_packaging_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10275,11 +10025,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field to sort results by. The default is CreationTime. - `"SortOrder"`: The sort order for results. The default is Descending. """ -function list_endpoint_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListEndpointConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_endpoint_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListEndpointConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_endpoint_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10318,11 +10065,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for results. The default is Descending. - `"StatusEquals"`: A filter that returns only endpoints with the specified status. """ -function list_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10351,11 +10095,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The property used to sort results. The default value is CreationTime. - `"SortOrder"`: The sort order. The default value is Descending. """ -function list_experiments(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListExperiments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_experiments(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListExperiments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_experiments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10385,11 +10126,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The value on which the feature group list is sorted. - `"SortOrder"`: The order in which feature groups are listed. """ -function list_feature_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListFeatureGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_feature_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListFeatureGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_feature_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10417,11 +10155,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: An optional value that specifies whether you want the results sorted in Ascending or Descending order. """ -function list_flow_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListFlowDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_flow_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListFlowDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_flow_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10459,23 +10194,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: Sort hub content versions by either name or creation time. - `"SortOrder"`: Sort hub content versions by ascending or descending order. """ -function list_hub_content_versions( +list_hub_content_versions( HubContentName, HubContentType, HubName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "ListHubContentVersions", + Dict{String,Any}( + "HubContentName" => HubContentName, + "HubContentType" => HubContentType, + "HubName" => HubName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListHubContentVersions", - Dict{String,Any}( - "HubContentName" => HubContentName, - "HubContentType" => HubContentType, - "HubName" => HubName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_hub_content_versions( HubContentName, HubContentType, @@ -10524,16 +10257,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: Sort hub content versions by either name or creation time. - `"SortOrder"`: Sort hubs by ascending or descending order. """ -function list_hub_contents( +list_hub_contents( HubContentType, HubName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListHubContents", + Dict{String,Any}("HubContentType" => HubContentType, "HubName" => HubName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListHubContents", - Dict{String,Any}("HubContentType" => HubContentType, "HubName" => HubName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_hub_contents( HubContentType, HubName, @@ -10575,9 +10306,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: Sort hubs by either name or creation time. - `"SortOrder"`: Sort hubs by ascending or descending order. """ -function list_hubs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListHubs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_hubs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListHubs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_hubs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10605,11 +10335,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: An optional value that specifies whether you want the results sorted in Ascending or Descending order. """ -function list_human_task_uis(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListHumanTaskUis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_human_task_uis(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListHumanTaskUis"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_human_task_uis( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10645,15 +10372,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for results. The default is Ascending. - `"StatusEquals"`: A filter that returns only tuning jobs with the specified status. """ -function list_hyper_parameter_tuning_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +list_hyper_parameter_tuning_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListHyperParameterTuningJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_hyper_parameter_tuning_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10692,14 +10416,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The property used to sort results. The default value is CREATION_TIME. - `"SortOrder"`: The sort order. The default value is DESCENDING. """ -function list_image_versions(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_image_versions(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListImageVersions", Dict{String,Any}("ImageName" => ImageName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_image_versions( ImageName, params::AbstractDict{String}; @@ -10741,9 +10464,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The property used to sort results. The default value is CREATION_TIME. - `"SortOrder"`: The sort order. The default value is DESCENDING. """ -function list_images(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_images(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10786,11 +10508,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys components. The response includes only those inference components that are hosted at the specified variant. """ -function list_inference_components(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListInferenceComponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_inference_components(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListInferenceComponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_inference_components( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10829,11 +10549,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: Selects inference experiments of this type. For the possible types of inference experiments, see CreateInferenceExperiment. """ -function list_inference_experiments(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_inference_experiments(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListInferenceExperiments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_inference_experiments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10865,16 +10584,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StepType"`: A filter to return details about the specified type of subtask. BENCHMARK: Evaluate the performance of your model on different instance types. """ -function list_inference_recommendations_job_steps( +list_inference_recommendations_job_steps( JobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListInferenceRecommendationsJobSteps", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListInferenceRecommendationsJobSteps", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_inference_recommendations_job_steps( JobName, params::AbstractDict{String}; @@ -10918,15 +10635,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StatusEquals"`: A filter that retrieves only inference recommendations jobs with a specific status. """ -function list_inference_recommendations_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +list_inference_recommendations_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListInferenceRecommendationsJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_inference_recommendations_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -10965,11 +10679,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for results. The default is Ascending. - `"StatusEquals"`: A filter that retrieves only labeling jobs with a specific status. """ -function list_labeling_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListLabelingJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_labeling_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListLabelingJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_labeling_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11004,16 +10715,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field to sort results by. The default is CreationTime. - `"SortOrder"`: The sort order for results. The default is Ascending. """ -function list_labeling_jobs_for_workteam( +list_labeling_jobs_for_workteam( WorkteamArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListLabelingJobsForWorkteam", + Dict{String,Any}("WorkteamArn" => WorkteamArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListLabelingJobsForWorkteam", - Dict{String,Any}("WorkteamArn" => WorkteamArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_labeling_jobs_for_workteam( WorkteamArn, params::AbstractDict{String}; @@ -11049,11 +10758,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The parameter by which to sort the results. The default is CreationTime. - `"SortOrder"`: The sort order for the results. The default is Ascending. """ -function list_lineage_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListLineageGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_lineage_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListLineageGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_lineage_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11089,11 +10795,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify SortOrder to be Ascending. - `"TrackingServerStatus"`: Filter for tracking servers with a specified creation status. """ -function list_mlflow_tracking_servers(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_mlflow_tracking_servers(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListMlflowTrackingServers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_mlflow_tracking_servers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11128,15 +10833,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: Whether to sort the results in Ascending or Descending order. The default is Descending. """ -function list_model_bias_job_definitions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +list_model_bias_job_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListModelBiasJobDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_model_bias_job_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11175,16 +10877,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: Sort model card export jobs by ascending or descending order. - `"StatusEquals"`: Only list model card export jobs with the specified status. """ -function list_model_card_export_jobs( +list_model_card_export_jobs( ModelCardName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListModelCardExportJobs", + Dict{String,Any}("ModelCardName" => ModelCardName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListModelCardExportJobs", - Dict{String,Any}("ModelCardName" => ModelCardName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_model_card_export_jobs( ModelCardName, params::AbstractDict{String}; @@ -11224,16 +10924,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: Sort listed model card versions by version. Sorts by version by default. - `"SortOrder"`: Sort model card versions by ascending or descending order. """ -function list_model_card_versions( +list_model_card_versions( ModelCardName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListModelCardVersions", + Dict{String,Any}("ModelCardName" => ModelCardName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListModelCardVersions", - Dict{String,Any}("ModelCardName" => ModelCardName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_model_card_versions( ModelCardName, params::AbstractDict{String}; @@ -11269,11 +10967,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default. - `"SortOrder"`: Sort model cards by ascending or descending order. """ -function list_model_cards(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListModelCards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_model_cards(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListModelCards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_model_cards( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11306,15 +11001,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: Whether to sort the results in Ascending or Descending order. The default is Descending. """ -function list_model_explainability_job_definitions(; +list_model_explainability_job_definitions(; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListModelExplainabilityJobDefinitions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListModelExplainabilityJobDefinitions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_model_explainability_job_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11344,11 +11037,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys included in the search results. Specify the Framework, FrameworkVersion, Domain or Task to filter supported. Filter names and values are case-sensitive. """ -function list_model_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListModelMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_model_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListModelMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_model_metadata( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11382,11 +11072,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field to sort results by. The default is CreationTime. - `"SortOrder"`: The sort order for results. The default is Ascending. """ -function list_model_package_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListModelPackageGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_model_package_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListModelPackageGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_model_package_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11427,11 +11115,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The parameter by which to sort the results. The default is CreationTime. - `"SortOrder"`: The sort order for the results. The default is Ascending. """ -function list_model_packages(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListModelPackages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_model_packages(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListModelPackages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_model_packages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11465,15 +11150,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: Whether to sort the results in Ascending or Descending order. The default is Descending. """ -function list_model_quality_job_definitions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +list_model_quality_job_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListModelQualityJobDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_model_quality_job_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11506,9 +11188,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: Sorts the list of results. The default is CreationTime. - `"SortOrder"`: The sort order for results. The default is Descending. """ -function list_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_models(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11540,11 +11221,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default is Descending. - `"StatusEquals"`: A filter that retrieves only alerts with a specific status. """ -function list_monitoring_alert_history(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_monitoring_alert_history(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListMonitoringAlertHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_monitoring_alert_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11572,16 +11252,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response includes a NextToken. To retrieve the next set of alerts in the history, use the token in the next request. """ -function list_monitoring_alerts( +list_monitoring_alerts( MonitoringScheduleName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListMonitoringAlerts", + Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListMonitoringAlerts", - Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_monitoring_alerts( MonitoringScheduleName, params::AbstractDict{String}; @@ -11633,11 +11311,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is Descending. - `"StatusEquals"`: A filter that retrieves only jobs with a specific status. """ -function list_monitoring_executions(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_monitoring_executions(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListMonitoringExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_monitoring_executions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11682,11 +11359,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StatusEquals"`: A filter that returns only monitoring schedules modified before a specified time. """ -function list_monitoring_schedules(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListMonitoringSchedules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_monitoring_schedules(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListMonitoringSchedules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_monitoring_schedules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11724,15 +11399,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: Sorts the list of results. The default is CreationTime. - `"SortOrder"`: The sort order for results. """ -function list_notebook_instance_lifecycle_configs(; +list_notebook_instance_lifecycle_configs(; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListNotebookInstanceLifecycleConfigs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListNotebookInstanceLifecycleConfigs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_notebook_instance_lifecycle_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11782,16 +11455,59 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for results. - `"StatusEquals"`: A filter that returns only notebook instances with the specified status. """ -function list_notebook_instances(; aws_config::AbstractAWSConfig=current_aws_config()) +list_notebook_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListNotebookInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_notebook_instances( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) return sagemaker( - "ListNotebookInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + "ListNotebookInstances", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) end -function list_notebook_instances( + +""" + list_optimization_jobs() + list_optimization_jobs(params::Dict{String,<:Any}) + +Lists the optimization jobs in your account and their properties. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"CreationTimeAfter"`: Filters the results to only those optimization jobs that were + created after the specified time. +- `"CreationTimeBefore"`: Filters the results to only those optimization jobs that were + created before the specified time. +- `"LastModifiedTimeAfter"`: Filters the results to only those optimization jobs that were + updated after the specified time. +- `"LastModifiedTimeBefore"`: Filters the results to only those optimization jobs that were + updated before the specified time. +- `"MaxResults"`: The maximum number of optimization jobs to return in the response. The + default is 50. +- `"NameContains"`: Filters the results to only those optimization jobs with a name that + contains the specified string. +- `"NextToken"`: A token that you use to get the next set of results following a truncated + response. If the response to the previous request was truncated, that response provides the + value for this token. +- `"OptimizationContains"`: Filters the results to only those optimization jobs that apply + the specified optimization techniques. You can specify either Quantization or Compilation. +- `"SortBy"`: The field by which to sort the optimization jobs in the response. The default + is CreationTime +- `"SortOrder"`: The sort order for results. The default is Ascending +- `"StatusEquals"`: Filters the results to only those optimization jobs with the specified + status. +""" +list_optimization_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListOptimizationJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function list_optimization_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return sagemaker( - "ListNotebookInstances", + "ListOptimizationJobs", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -11813,11 +11529,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PipelineExecutionArn"`: The Amazon Resource Name (ARN) of the pipeline execution. - `"SortOrder"`: The field by which to sort results. The default is CreatedTime. """ -function list_pipeline_execution_steps(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_pipeline_execution_steps(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListPipelineExecutionSteps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_pipeline_execution_steps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11851,16 +11566,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field by which to sort results. The default is CreatedTime. - `"SortOrder"`: The sort order for results. """ -function list_pipeline_executions( - PipelineName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +list_pipeline_executions(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListPipelineExecutions", Dict{String,Any}("PipelineName" => PipelineName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_pipeline_executions( PipelineName, params::AbstractDict{String}; @@ -11892,16 +11604,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys was truncated, the response includes a NextToken. To retrieve the next set of parameters, use the token in the next request. """ -function list_pipeline_parameters_for_execution( +list_pipeline_parameters_for_execution( PipelineExecutionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListPipelineParametersForExecution", + Dict{String,Any}("PipelineExecutionArn" => PipelineExecutionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListPipelineParametersForExecution", - Dict{String,Any}("PipelineExecutionArn" => PipelineExecutionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_pipeline_parameters_for_execution( PipelineExecutionArn, params::AbstractDict{String}; @@ -11941,11 +11651,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field by which to sort results. The default is CreatedTime. - `"SortOrder"`: The sort order for results. """ -function list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListPipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_pipelines(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListPipelines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_pipelines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -11979,12 +11686,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field to sort results by. The default is CreationTime. - `"SortOrder"`: The sort order for results. The default is Ascending. - `"StatusEquals"`: A filter that retrieves only processing jobs with a specific status. -""" -function list_processing_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListProcessingJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +""" +list_processing_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListProcessingJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_processing_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12014,9 +11718,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field by which to sort results. The default is CreationTime. - `"SortOrder"`: The sort order for results. The default is Ascending. """ -function list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_projects(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListProjects"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_projects( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12045,11 +11748,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The value on which the resource catalog list is sorted. - `"SortOrder"`: The order in which the resource catalogs are listed. """ -function list_resource_catalogs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListResourceCatalogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_resource_catalogs(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListResourceCatalogs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_resource_catalogs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12081,9 +11782,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for the results. The default is Ascending. - `"SpaceNameContains"`: A parameter by which to filter the results. """ -function list_spaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListSpaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_spaces(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListSpaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_spaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12111,18 +11811,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The response from the last list when returning a list large enough to neeed tokening. """ -function list_stage_devices( +list_stage_devices( EdgeDeploymentPlanName, StageName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListStageDevices", + Dict{String,Any}( + "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "StageName" => StageName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListStageDevices", - Dict{String,Any}( - "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "StageName" => StageName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_stage_devices( EdgeDeploymentPlanName, StageName, @@ -12177,11 +11875,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The property used to sort results. The default value is CreationTime. - `"SortOrder"`: The sort order. The default value is Descending. """ -function list_studio_lifecycle_configs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +list_studio_lifecycle_configs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "ListStudioLifecycleConfigs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_studio_lifecycle_configs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12210,11 +11907,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys truncated, the response includes a NextToken. To retrieve the next set of labeling jobs, use the token in the next request. """ -function list_subscribed_workteams(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListSubscribedWorkteams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_subscribed_workteams(; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListSubscribedWorkteams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_subscribed_workteams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12242,14 +11937,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If the response to the previous ListTags request is truncated, SageMaker returns this token. To retrieve the next set of tags, use it in the subsequent request. """ -function list_tags(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListTags", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "ListTags", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags( ResourceArn, params::AbstractDict{String}; @@ -12301,11 +11994,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WarmPoolStatusEquals"`: A filter that retrieves only training jobs with a specific warm pool status. """ -function list_training_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListTrainingJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_training_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListTrainingJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_training_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12337,16 +12027,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for results. The default is Ascending. - `"StatusEquals"`: A filter that returns only training jobs with the specified status. """ -function list_training_jobs_for_hyper_parameter_tuning_job( +list_training_jobs_for_hyper_parameter_tuning_job( HyperParameterTuningJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "ListTrainingJobsForHyperParameterTuningJob", + Dict{String,Any}("HyperParameterTuningJobName" => HyperParameterTuningJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "ListTrainingJobsForHyperParameterTuningJob", - Dict{String,Any}("HyperParameterTuningJobName" => HyperParameterTuningJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_training_jobs_for_hyper_parameter_tuning_job( HyperParameterTuningJobName, params::AbstractDict{String}; @@ -12395,11 +12083,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for results. The default is Descending. - `"StatusEquals"`: A filter that retrieves only transform jobs with a specific status. """ -function list_transform_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListTransformJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_transform_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListTransformJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_transform_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12436,11 +12121,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TrialName"`: A filter that returns only components that are part of the specified trial. If you specify TrialName, you can't filter by ExperimentName or SourceArn. """ -function list_trial_components(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListTrialComponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_trial_components(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListTrialComponents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_trial_components( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12477,9 +12159,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TrialComponentName"`: A filter that returns only trials that are associated with the specified trial component. """ -function list_trials(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("ListTrials"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_trials(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListTrials"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_trials( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12508,11 +12189,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: The sort order for the results. The default is Ascending. - `"UserProfileNameContains"`: A parameter by which to filter the results. """ -function list_user_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListUserProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_user_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListUserProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_user_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12537,11 +12215,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: Sort workforces using the workforce name or creation date. - `"SortOrder"`: Sort workforces in ascending or descending order. """ -function list_workforces(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListWorkforces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_workforces(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListWorkforces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_workforces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12568,11 +12243,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The field to sort results by. The default is CreationTime. - `"SortOrder"`: The sort order for results. The default is Ascending. """ -function list_workteams(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "ListWorkteams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_workteams(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("ListWorkteams"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_workteams( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12594,21 +12266,19 @@ Services Identity and Access Management User Guide.. - `resource_policy`: The resource policy for the model group. """ -function put_model_package_group_policy( +put_model_package_group_policy( ModelPackageGroupName, ResourcePolicy; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "PutModelPackageGroupPolicy", + Dict{String,Any}( + "ModelPackageGroupName" => ModelPackageGroupName, + "ResourcePolicy" => ResourcePolicy, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "PutModelPackageGroupPolicy", - Dict{String,Any}( - "ModelPackageGroupName" => ModelPackageGroupName, - "ResourcePolicy" => ResourcePolicy, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_model_package_group_policy( ModelPackageGroupName, ResourcePolicy, @@ -12662,9 +12332,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartArns"`: A list of resource Amazon Resource Name (ARN) that represent the starting point for your lineage query. """ -function query_lineage(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker("QueryLineage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +query_lineage(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker("QueryLineage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function query_lineage( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -12687,16 +12356,14 @@ Register devices. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags associated with devices. """ -function register_devices( +register_devices( DeviceFleetName, Devices; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "RegisterDevices", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "Devices" => Devices); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "RegisterDevices", - Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "Devices" => Devices); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_devices( DeviceFleetName, Devices, @@ -12737,16 +12404,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Ui Amazon Resource Names (ARNs) in UiConfig. - `"UiTemplate"`: A Template object containing the worker UI template to render. """ -function render_ui_template( - RoleArn, Task; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +render_ui_template(RoleArn, Task; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "RenderUiTemplate", Dict{String,Any}("RoleArn" => RoleArn, "Task" => Task); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function render_ui_template( RoleArn, Task, @@ -12781,21 +12445,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ParallelismConfiguration"`: This configuration, if specified, overrides the parallelism configuration of the parent pipeline. """ -function retry_pipeline_execution( +retry_pipeline_execution( ClientRequestToken, PipelineExecutionArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "RetryPipelineExecution", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "PipelineExecutionArn" => PipelineExecutionArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "RetryPipelineExecution", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "PipelineExecutionArn" => PipelineExecutionArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function retry_pipeline_execution( ClientRequestToken, PipelineExecutionArn, @@ -12856,14 +12518,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VisibilityConditions"`: Limits the results of your search request to the resources that you can access. """ -function search(Resource; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "Search", - Dict{String,Any}("Resource" => Resource); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +search(Resource; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "Search", + Dict{String,Any}("Resource" => Resource); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function search( Resource, params::AbstractDict{String}; @@ -12896,18 +12556,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the idempotency of the operation. An idempotent operation completes no more than one time. - `"FailureReason"`: A message describing why the step failed. """ -function send_pipeline_execution_step_failure( +send_pipeline_execution_step_failure( CallbackToken; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "SendPipelineExecutionStepFailure", + Dict{String,Any}( + "CallbackToken" => CallbackToken, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "SendPipelineExecutionStepFailure", - Dict{String,Any}( - "CallbackToken" => CallbackToken, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_pipeline_execution_step_failure( CallbackToken, params::AbstractDict{String}; @@ -12948,18 +12606,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the idempotency of the operation. An idempotent operation completes no more than one time. - `"OutputParameters"`: A list of the output parameters of the callback step. """ -function send_pipeline_execution_step_success( +send_pipeline_execution_step_success( CallbackToken; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "SendPipelineExecutionStepSuccess", + Dict{String,Any}( + "CallbackToken" => CallbackToken, "ClientRequestToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "SendPipelineExecutionStepSuccess", - Dict{String,Any}( - "CallbackToken" => CallbackToken, "ClientRequestToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_pipeline_execution_step_success( CallbackToken, params::AbstractDict{String}; @@ -12993,18 +12649,16 @@ Starts a stage in an edge deployment plan. - `stage_name`: The name of the stage to start. """ -function start_edge_deployment_stage( +start_edge_deployment_stage( EdgeDeploymentPlanName, StageName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StartEdgeDeploymentStage", + Dict{String,Any}( + "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "StageName" => StageName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StartEdgeDeploymentStage", - Dict{String,Any}( - "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "StageName" => StageName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_edge_deployment_stage( EdgeDeploymentPlanName, StageName, @@ -13038,16 +12692,13 @@ Starts an inference experiment. - `name`: The name of the inference experiment to start. """ -function start_inference_experiment( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +start_inference_experiment(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "StartInferenceExperiment", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_inference_experiment( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -13069,16 +12720,14 @@ Programmatically start an MLflow Tracking Server. - `tracking_server_name`: The name of the tracking server to start. """ -function start_mlflow_tracking_server( +start_mlflow_tracking_server( TrackingServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StartMlflowTrackingServer", + Dict{String,Any}("TrackingServerName" => TrackingServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StartMlflowTrackingServer", - Dict{String,Any}("TrackingServerName" => TrackingServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_mlflow_tracking_server( TrackingServerName, params::AbstractDict{String}; @@ -13107,16 +12756,14 @@ a new schedule, the status of a monitoring schedule is scheduled. - `monitoring_schedule_name`: The name of the schedule to start. """ -function start_monitoring_schedule( +start_monitoring_schedule( MonitoringScheduleName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StartMonitoringSchedule", + Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StartMonitoringSchedule", - Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_monitoring_schedule( MonitoringScheduleName, params::AbstractDict{String}; @@ -13149,16 +12796,14 @@ connect to your Jupyter notebook. - `notebook_instance_name`: The name of the notebook instance to start. """ -function start_notebook_instance( +start_notebook_instance( NotebookInstanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StartNotebookInstance", + Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StartNotebookInstance", - Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_notebook_instance( NotebookInstanceName, params::AbstractDict{String}; @@ -13199,18 +12844,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SelectiveExecutionConfig"`: The selective execution configuration applied to the pipeline run. """ -function start_pipeline_execution( +start_pipeline_execution( ClientRequestToken, PipelineName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StartPipelineExecution", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "PipelineName" => PipelineName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StartPipelineExecution", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "PipelineName" => PipelineName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_pipeline_execution( ClientRequestToken, PipelineName, @@ -13244,14 +12887,13 @@ A method for forcing a running job to shut down. - `auto_mljob_name`: The name of the object you are requesting. """ -function stop_auto_mljob(AutoMLJobName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +stop_auto_mljob(AutoMLJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "StopAutoMLJob", Dict{String,Any}("AutoMLJobName" => AutoMLJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_auto_mljob( AutoMLJobName, params::AbstractDict{String}; @@ -13281,16 +12923,14 @@ the CompilationJobStatus to Stopped. - `compilation_job_name`: The name of the model compilation job to stop. """ -function stop_compilation_job( +stop_compilation_job( CompilationJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopCompilationJob", + Dict{String,Any}("CompilationJobName" => CompilationJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StopCompilationJob", - Dict{String,Any}("CompilationJobName" => CompilationJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_compilation_job( CompilationJobName, params::AbstractDict{String}; @@ -13319,18 +12959,16 @@ Stops a stage in an edge deployment plan. - `stage_name`: The name of the stage to stop. """ -function stop_edge_deployment_stage( +stop_edge_deployment_stage( EdgeDeploymentPlanName, StageName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopEdgeDeploymentStage", + Dict{String,Any}( + "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "StageName" => StageName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StopEdgeDeploymentStage", - Dict{String,Any}( - "EdgeDeploymentPlanName" => EdgeDeploymentPlanName, "StageName" => StageName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_edge_deployment_stage( EdgeDeploymentPlanName, StageName, @@ -13364,16 +13002,14 @@ Request to stop an edge packaging job. - `edge_packaging_job_name`: The name of the edge packaging job. """ -function stop_edge_packaging_job( +stop_edge_packaging_job( EdgePackagingJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopEdgePackagingJob", + Dict{String,Any}("EdgePackagingJobName" => EdgePackagingJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StopEdgePackagingJob", - Dict{String,Any}("EdgePackagingJobName" => EdgePackagingJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_edge_packaging_job( EdgePackagingJobName, params::AbstractDict{String}; @@ -13407,16 +13043,14 @@ releases all reserved resources for the tuning job. - `hyper_parameter_tuning_job_name`: The name of the tuning job to stop. """ -function stop_hyper_parameter_tuning_job( +stop_hyper_parameter_tuning_job( HyperParameterTuningJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopHyperParameterTuningJob", + Dict{String,Any}("HyperParameterTuningJobName" => HyperParameterTuningJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StopHyperParameterTuningJob", - Dict{String,Any}("HyperParameterTuningJobName" => HyperParameterTuningJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_hyper_parameter_tuning_job( HyperParameterTuningJobName, params::AbstractDict{String}; @@ -13462,16 +13096,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Cancelled: The experiment was canceled - `"Reason"`: The reason for stopping the experiment. """ -function stop_inference_experiment( +stop_inference_experiment( ModelVariantActions, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopInferenceExperiment", + Dict{String,Any}("ModelVariantActions" => ModelVariantActions, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StopInferenceExperiment", - Dict{String,Any}("ModelVariantActions" => ModelVariantActions, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_inference_experiment( ModelVariantActions, Name, @@ -13504,16 +13136,14 @@ Stops an Inference Recommender job. - `job_name`: The name of the job you want to stop. """ -function stop_inference_recommendations_job( +stop_inference_recommendations_job( JobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopInferenceRecommendationsJob", + Dict{String,Any}("JobName" => JobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StopInferenceRecommendationsJob", - Dict{String,Any}("JobName" => JobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_inference_recommendations_job( JobName, params::AbstractDict{String}; @@ -13538,16 +13168,13 @@ obtained before the job is stopped are placed in the Amazon S3 output bucket. - `labeling_job_name`: The name of the labeling job to stop. """ -function stop_labeling_job( - LabelingJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +stop_labeling_job(LabelingJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "StopLabelingJob", Dict{String,Any}("LabelingJobName" => LabelingJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_labeling_job( LabelingJobName, params::AbstractDict{String}; @@ -13575,16 +13202,14 @@ Programmatically stop an MLflow Tracking Server. - `tracking_server_name`: The name of the tracking server to stop. """ -function stop_mlflow_tracking_server( +stop_mlflow_tracking_server( TrackingServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopMlflowTrackingServer", + Dict{String,Any}("TrackingServerName" => TrackingServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StopMlflowTrackingServer", - Dict{String,Any}("TrackingServerName" => TrackingServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_mlflow_tracking_server( TrackingServerName, params::AbstractDict{String}; @@ -13612,16 +13237,14 @@ Stops a previously started monitoring schedule. - `monitoring_schedule_name`: The name of the schedule to stop. """ -function stop_monitoring_schedule( +stop_monitoring_schedule( MonitoringScheduleName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopMonitoringSchedule", + Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "StopMonitoringSchedule", - Dict{String,Any}("MonitoringScheduleName" => MonitoringScheduleName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_monitoring_schedule( MonitoringScheduleName, params::AbstractDict{String}; @@ -13656,27 +13279,62 @@ configures it, and attaches the preserved ML storage volume so you can continue - `notebook_instance_name`: The name of the notebook instance to terminate. """ -function stop_notebook_instance( +stop_notebook_instance( NotebookInstanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopNotebookInstance", + Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function stop_notebook_instance( + NotebookInstanceName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), ) return sagemaker( "StopNotebookInstance", - Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName), + params, + ), + ); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function stop_notebook_instance( - NotebookInstanceName, + +""" + stop_optimization_job(optimization_job_name) + stop_optimization_job(optimization_job_name, params::Dict{String,<:Any}) + +Ends a running inference optimization job. + +# Arguments +- `optimization_job_name`: The name that you assigned to the optimization job. + +""" +stop_optimization_job( + OptimizationJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "StopOptimizationJob", + Dict{String,Any}("OptimizationJobName" => OptimizationJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function stop_optimization_job( + OptimizationJobName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), ) return sagemaker( - "StopNotebookInstance", + "StopOptimizationJob", Dict{String,Any}( mergewith( _merge, - Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName), + Dict{String,Any}("OptimizationJobName" => OptimizationJobName), params, ), ); @@ -13710,21 +13368,19 @@ the pipeline execution status is Failed. - `pipeline_execution_arn`: The Amazon Resource Name (ARN) of the pipeline execution. """ -function stop_pipeline_execution( - ClientRequestToken, - PipelineExecutionArn; - aws_config::AbstractAWSConfig=current_aws_config(), -) - return sagemaker( - "StopPipelineExecution", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "PipelineExecutionArn" => PipelineExecutionArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_pipeline_execution( + ClientRequestToken, + PipelineExecutionArn; + aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "StopPipelineExecution", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "PipelineExecutionArn" => PipelineExecutionArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_pipeline_execution( ClientRequestToken, PipelineExecutionArn, @@ -13758,16 +13414,13 @@ Stops a processing job. - `processing_job_name`: The name of the processing job to stop. """ -function stop_processing_job( - ProcessingJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +stop_processing_job(ProcessingJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "StopProcessingJob", Dict{String,Any}("ProcessingJobName" => ProcessingJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_processing_job( ProcessingJobName, params::AbstractDict{String}; @@ -13799,16 +13452,13 @@ SageMaker stops the job, it sets the status to Stopped. - `training_job_name`: The name of the training job to stop. """ -function stop_training_job( - TrainingJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +stop_training_job(TrainingJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "StopTrainingJob", Dict{String,Any}("TrainingJobName" => TrainingJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_training_job( TrainingJobName, params::AbstractDict{String}; @@ -13839,16 +13489,13 @@ SageMaker doesn't store the job's output in Amazon S3. - `transform_job_name`: The name of the batch transform job to stop. """ -function stop_transform_job( - TransformJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +stop_transform_job(TransformJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "StopTransformJob", Dict{String,Any}("TransformJobName" => TransformJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_transform_job( TransformJobName, params::AbstractDict{String}; @@ -13882,14 +13529,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PropertiesToRemove"`: A list of properties to remove. - `"Status"`: The new status for the action. """ -function update_action(ActionName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "UpdateAction", - Dict{String,Any}("ActionName" => ActionName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_action(ActionName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "UpdateAction", + Dict{String,Any}("ActionName" => ActionName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_action( ActionName, params::AbstractDict{String}; @@ -13920,16 +13565,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"JupyterLabAppImageConfig"`: The JupyterLab app running on the image. - `"KernelGatewayImageConfig"`: The new KernelGateway app to run on the image. """ -function update_app_image_config( +update_app_image_config( AppImageConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateAppImageConfig", + Dict{String,Any}("AppImageConfigName" => AppImageConfigName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateAppImageConfig", - Dict{String,Any}("AppImageConfigName" => AppImageConfigName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_app_image_config( AppImageConfigName, params::AbstractDict{String}; @@ -13962,14 +13605,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Properties"`: The new list of properties. Overwrites the current property list. - `"PropertiesToRemove"`: A list of properties to remove. """ -function update_artifact(ArtifactArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +update_artifact(ArtifactArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateArtifact", Dict{String,Any}("ArtifactArn" => ArtifactArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_artifact( ArtifactArn, params::AbstractDict{String}; @@ -13996,16 +13638,14 @@ Updates a SageMaker HyperPod cluster. - `instance_groups`: Specify the instance groups to update. """ -function update_cluster( +update_cluster( ClusterName, InstanceGroups; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateCluster", + Dict{String,Any}("ClusterName" => ClusterName, "InstanceGroups" => InstanceGroups); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateCluster", - Dict{String,Any}("ClusterName" => ClusterName, "InstanceGroups" => InstanceGroups); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_cluster( ClusterName, InstanceGroups, @@ -14040,16 +13680,13 @@ learn how to use this API, see Update the SageMaker HyperPod platform software o HyperPod cluster you want to update for security patching. """ -function update_cluster_software( - ClusterName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +update_cluster_software(ClusterName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateClusterSoftware", Dict{String,Any}("ClusterName" => ClusterName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_cluster_software( ClusterName, params::AbstractDict{String}; @@ -14082,16 +13719,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys AWSCURRENT and must be in the following format: {\"username\": UserName, \"password\": Password} """ -function update_code_repository( +update_code_repository( CodeRepositoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateCodeRepository", + Dict{String,Any}("CodeRepositoryName" => CodeRepositoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateCodeRepository", - Dict{String,Any}("CodeRepositoryName" => CodeRepositoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_code_repository( CodeRepositoryName, params::AbstractDict{String}; @@ -14124,14 +13759,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Properties"`: The new list of properties. Overwrites the current property list. - `"PropertiesToRemove"`: A list of properties to remove. """ -function update_context(ContextName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "UpdateContext", - Dict{String,Any}("ContextName" => ContextName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_context(ContextName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "UpdateContext", + Dict{String,Any}("ContextName" => ContextName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_context( ContextName, params::AbstractDict{String}; @@ -14166,18 +13799,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"demo-fleet\", the name of the role alias will be \"SageMakerEdge-demo-fleet\". - `"RoleArn"`: The Amazon Resource Name (ARN) of the device. """ -function update_device_fleet( +update_device_fleet( DeviceFleetName, OutputConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateDeviceFleet", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "OutputConfig" => OutputConfig); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateDeviceFleet", - Dict{String,Any}( - "DeviceFleetName" => DeviceFleetName, "OutputConfig" => OutputConfig - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_device_fleet( DeviceFleetName, OutputConfig, @@ -14211,16 +13840,14 @@ Updates one or more devices in a fleet. - `devices`: List of devices to register with Edge Manager agent. """ -function update_devices( +update_devices( DeviceFleetName, Devices; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateDevices", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "Devices" => Devices); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateDevices", - Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "Devices" => Devices); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_devices( DeviceFleetName, Devices, @@ -14274,14 +13901,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubnetIds"`: The VPC subnets that Studio uses for communication. If removing subnets, ensure there are no apps in the InService, Pending, or Deleting state. """ -function update_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "UpdateDomain", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "UpdateDomain", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_domain( DomainId, params::AbstractDict{String}; @@ -14336,18 +13961,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RetainDeploymentConfig"`: Specifies whether to reuse the last deployment configuration. The default value is false (the configuration is not reused). """ -function update_endpoint( +update_endpoint( EndpointConfigName, EndpointName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateEndpoint", + Dict{String,Any}( + "EndpointConfigName" => EndpointConfigName, "EndpointName" => EndpointName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateEndpoint", - Dict{String,Any}( - "EndpointConfigName" => EndpointConfigName, "EndpointName" => EndpointName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_endpoint( EndpointConfigName, EndpointName, @@ -14386,21 +14009,19 @@ status to InService. To check the status of an endpoint, use the DescribeEndpoin - `endpoint_name`: The name of an existing SageMaker endpoint. """ -function update_endpoint_weights_and_capacities( +update_endpoint_weights_and_capacities( DesiredWeightsAndCapacities, EndpointName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "UpdateEndpointWeightsAndCapacities", + Dict{String,Any}( + "DesiredWeightsAndCapacities" => DesiredWeightsAndCapacities, + "EndpointName" => EndpointName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateEndpointWeightsAndCapacities", - Dict{String,Any}( - "DesiredWeightsAndCapacities" => DesiredWeightsAndCapacities, - "EndpointName" => EndpointName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_endpoint_weights_and_capacities( DesiredWeightsAndCapacities, EndpointName, @@ -14440,16 +14061,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DisplayName"`: The name of the experiment as displayed. The name doesn't need to be unique. If DisplayName isn't specified, ExperimentName is displayed. """ -function update_experiment( - ExperimentName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +update_experiment(ExperimentName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateExperiment", Dict{String,Any}("ExperimentName" => ExperimentName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_experiment( ExperimentName, params::AbstractDict{String}; @@ -14493,16 +14111,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OnlineStoreConfig"`: Updates the feature group online store configuration. - `"ThroughputConfig"`: """ -function update_feature_group( - FeatureGroupName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +update_feature_group(FeatureGroupName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateFeatureGroup", Dict{String,Any}("FeatureGroupName" => FeatureGroupName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_feature_group( FeatureGroupName, params::AbstractDict{String}; @@ -14539,18 +14154,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ParameterRemovals"`: A list of parameter keys that you can specify to remove parameters that describe your feature. """ -function update_feature_metadata( +update_feature_metadata( FeatureGroupName, FeatureName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateFeatureMetadata", + Dict{String,Any}("FeatureGroupName" => FeatureGroupName, "FeatureName" => FeatureName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateFeatureMetadata", - Dict{String,Any}( - "FeatureGroupName" => FeatureGroupName, "FeatureName" => FeatureName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_feature_metadata( FeatureGroupName, FeatureName, @@ -14588,14 +14199,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HubDisplayName"`: The display name of the hub. - `"HubSearchKeywords"`: The searchable keywords for the hub. """ -function update_hub(HubName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "UpdateHub", - Dict{String,Any}("HubName" => HubName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_hub(HubName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "UpdateHub", + Dict{String,Any}("HubName" => HubName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_hub( HubName, params::AbstractDict{String}; @@ -14628,14 +14237,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RoleArn"`: The new ARN for the IAM role that enables Amazon SageMaker to perform tasks on your behalf. """ -function update_image(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "UpdateImage", - Dict{String,Any}("ImageName" => ImageName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_image(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "UpdateImage", + Dict{String,Any}("ImageName" => ImageName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_image( ImageName, params::AbstractDict{String}; @@ -14683,14 +14290,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys not searchable and are no longer actively supported. - `"Version"`: The version of the image. """ -function update_image_version(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +update_image_version(ImageName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateImageVersion", Dict{String,Any}("ImageName" => ImageName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_image_version( ImageName, params::AbstractDict{String}; @@ -14722,16 +14328,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Specification"`: Details about the resources to deploy with this inference component, including the model, container, and compute resources. """ -function update_inference_component( +update_inference_component( InferenceComponentName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateInferenceComponent", + Dict{String,Any}("InferenceComponentName" => InferenceComponentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateInferenceComponent", - Dict{String,Any}("InferenceComponentName" => InferenceComponentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_inference_component( InferenceComponentName, params::AbstractDict{String}; @@ -14763,21 +14367,19 @@ Runtime settings for a model that is deployed with an inference component. - `inference_component_name`: The name of the inference component to update. """ -function update_inference_component_runtime_config( +update_inference_component_runtime_config( DesiredRuntimeConfig, InferenceComponentName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "UpdateInferenceComponentRuntimeConfig", + Dict{String,Any}( + "DesiredRuntimeConfig" => DesiredRuntimeConfig, + "InferenceComponentName" => InferenceComponentName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateInferenceComponentRuntimeConfig", - Dict{String,Any}( - "DesiredRuntimeConfig" => DesiredRuntimeConfig, - "InferenceComponentName" => InferenceComponentName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_inference_component_runtime_config( DesiredRuntimeConfig, InferenceComponentName, @@ -14828,16 +14430,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For the shadow variant also specify the percentage of requests that Amazon SageMaker replicates. """ -function update_inference_experiment( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +update_inference_experiment(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateInferenceExperiment", Dict{String,Any}("Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_inference_experiment( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -14871,16 +14470,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys update. The maintenance window day and time should be in Coordinated Universal Time (UTC) 24-hour standard time. For example: TUE:03:30. """ -function update_mlflow_tracking_server( +update_mlflow_tracking_server( TrackingServerName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateMlflowTrackingServer", + Dict{String,Any}("TrackingServerName" => TrackingServerName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateMlflowTrackingServer", - Dict{String,Any}("TrackingServerName" => TrackingServerName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_mlflow_tracking_server( TrackingServerName, params::AbstractDict{String}; @@ -14919,16 +14516,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys review. Approved: The model card is approved. Archived: The model card is archived. No more updates should be made to the model card, but it can still be exported. """ -function update_model_card( - ModelCardName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +update_model_card(ModelCardName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateModelCard", Dict{String,Any}("ModelCardName" => ModelCardName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_model_card( ModelCardName, params::AbstractDict{String}; @@ -14981,16 +14575,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys model card associated with the model package, see View the Details of a Model Version. - `"SourceUri"`: The URI of the source for the model package. """ -function update_model_package( - ModelPackageArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +update_model_package(ModelPackageArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateModelPackage", Dict{String,Any}("ModelPackageArn" => ModelPackageArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_model_package( ModelPackageArn, params::AbstractDict{String}; @@ -15023,25 +14614,23 @@ Update the parameters of a model monitor alert. - `monitoring_schedule_name`: The name of a monitoring schedule. """ -function update_monitoring_alert( +update_monitoring_alert( DatapointsToAlert, EvaluationPeriod, MonitoringAlertName, MonitoringScheduleName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "UpdateMonitoringAlert", + Dict{String,Any}( + "DatapointsToAlert" => DatapointsToAlert, + "EvaluationPeriod" => EvaluationPeriod, + "MonitoringAlertName" => MonitoringAlertName, + "MonitoringScheduleName" => MonitoringScheduleName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateMonitoringAlert", - Dict{String,Any}( - "DatapointsToAlert" => DatapointsToAlert, - "EvaluationPeriod" => EvaluationPeriod, - "MonitoringAlertName" => MonitoringAlertName, - "MonitoringScheduleName" => MonitoringScheduleName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_monitoring_alert( DatapointsToAlert, EvaluationPeriod, @@ -15082,21 +14671,19 @@ Updates a previously created schedule. within an Amazon Web Services Region within an Amazon Web Services account. """ -function update_monitoring_schedule( +update_monitoring_schedule( MonitoringScheduleConfig, MonitoringScheduleName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker( + "UpdateMonitoringSchedule", + Dict{String,Any}( + "MonitoringScheduleConfig" => MonitoringScheduleConfig, + "MonitoringScheduleName" => MonitoringScheduleName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateMonitoringSchedule", - Dict{String,Any}( - "MonitoringScheduleConfig" => MonitoringScheduleConfig, - "MonitoringScheduleName" => MonitoringScheduleName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_monitoring_schedule( MonitoringScheduleConfig, MonitoringScheduleName, @@ -15184,16 +14771,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys volume size. If you want to decrease the size of the ML storage volume in use, create a new notebook instance with the desired size. """ -function update_notebook_instance( +update_notebook_instance( NotebookInstanceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateNotebookInstance", + Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateNotebookInstance", - Dict{String,Any}("NotebookInstanceName" => NotebookInstanceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_notebook_instance( NotebookInstanceName, params::AbstractDict{String}; @@ -15231,18 +14816,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys including when you create the notebook instance. The shell script must be a base64-encoded string. """ -function update_notebook_instance_lifecycle_config( +update_notebook_instance_lifecycle_config( NotebookInstanceLifecycleConfigName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateNotebookInstanceLifecycleConfig", + Dict{String,Any}( + "NotebookInstanceLifecycleConfigName" => NotebookInstanceLifecycleConfigName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateNotebookInstanceLifecycleConfig", - Dict{String,Any}( - "NotebookInstanceLifecycleConfigName" => NotebookInstanceLifecycleConfigName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_notebook_instance_lifecycle_config( NotebookInstanceLifecycleConfigName, params::AbstractDict{String}; @@ -15285,14 +14868,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PipelineDisplayName"`: The display name of the pipeline. - `"RoleArn"`: The Amazon Resource Name (ARN) that the pipeline uses to execute. """ -function update_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +update_pipeline(PipelineName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdatePipeline", Dict{String,Any}("PipelineName" => PipelineName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_pipeline( PipelineName, params::AbstractDict{String}; @@ -15324,16 +14906,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PipelineExecutionDescription"`: The description of the pipeline execution. - `"PipelineExecutionDisplayName"`: The display name of the pipeline execution. """ -function update_pipeline_execution( +update_pipeline_execution( PipelineExecutionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdatePipelineExecution", + Dict{String,Any}("PipelineExecutionArn" => PipelineExecutionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdatePipelineExecution", - Dict{String,Any}("PipelineExecutionArn" => PipelineExecutionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_pipeline_execution( PipelineExecutionArn, params::AbstractDict{String}; @@ -15378,14 +14958,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys have tag update constraints set in order to include this parameter in the request. For more information, see Amazon Web Services Service Catalog Tag Update Constraints. """ -function update_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "UpdateProject", - Dict{String,Any}("ProjectName" => ProjectName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_project(ProjectName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "UpdateProject", + Dict{String,Any}("ProjectName" => ProjectName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_project( ProjectName, params::AbstractDict{String}; @@ -15417,16 +14995,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UI. - `"SpaceSettings"`: A collection of space settings. """ -function update_space( - DomainId, SpaceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +update_space(DomainId, SpaceName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateSpace", Dict{String,Any}("DomainId" => DomainId, "SpaceName" => SpaceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_space( DomainId, SpaceName, @@ -15471,16 +15046,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (SSM) for remote debugging. - `"ResourceConfig"`: The training job ResourceConfig to update warm pool retention length. """ -function update_training_job( - TrainingJobName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker( +update_training_job(TrainingJobName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateTrainingJob", Dict{String,Any}("TrainingJobName" => TrainingJobName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_training_job( TrainingJobName, params::AbstractDict{String}; @@ -15512,14 +15084,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DisplayName"`: The name of the trial as displayed. The name doesn't need to be unique. If DisplayName isn't specified, TrialName is displayed. """ -function update_trial(TrialName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( - "UpdateTrial", - Dict{String,Any}("TrialName" => TrialName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_trial(TrialName; aws_config::AbstractAWSConfig=current_aws_config()) = sagemaker( + "UpdateTrial", + Dict{String,Any}("TrialName" => TrialName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_trial( TrialName, params::AbstractDict{String}; @@ -15564,16 +15134,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: When the component started. - `"Status"`: The new status of the component. """ -function update_trial_component( +update_trial_component( TrialComponentName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateTrialComponent", + Dict{String,Any}("TrialComponentName" => TrialComponentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateTrialComponent", - Dict{String,Any}("TrialComponentName" => TrialComponentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_trial_component( TrialComponentName, params::AbstractDict{String}; @@ -15605,16 +15173,14 @@ Updates a user profile. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"UserSettings"`: A collection of settings. """ -function update_user_profile( +update_user_profile( DomainId, UserProfileName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker( + "UpdateUserProfile", + Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker( - "UpdateUserProfile", - Dict{String,Any}("DomainId" => DomainId, "UserProfileName" => UserProfileName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_profile( DomainId, UserProfileName, @@ -15671,14 +15237,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WorkforceVpcConfig"`: Use this parameter to update your VPC configuration for a workforce. """ -function update_workforce(WorkforceName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +update_workforce(WorkforceName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateWorkforce", Dict{String,Any}("WorkforceName" => WorkforceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_workforce( WorkforceName, params::AbstractDict{String}; @@ -15728,14 +15293,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon S3 resource based on the IP address using supported IAM global condition keys. The Amazon S3 resource is accessed in the worker portal using a Amazon S3 presigned URL. """ -function update_workteam(WorkteamName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker( +update_workteam(WorkteamName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker( "UpdateWorkteam", Dict{String,Any}("WorkteamName" => WorkteamName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_workteam( WorkteamName, params::AbstractDict{String}; diff --git a/src/services/sagemaker_a2i_runtime.jl b/src/services/sagemaker_a2i_runtime.jl index 3df0d037e..98db061fd 100644 --- a/src/services/sagemaker_a2i_runtime.jl +++ b/src/services/sagemaker_a2i_runtime.jl @@ -15,16 +15,13 @@ operation will return a ResourceNotFoundException. - `human_loop_name`: The name of the human loop that you want to delete. """ -function delete_human_loop( - HumanLoopName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_a2i_runtime( +delete_human_loop(HumanLoopName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_a2i_runtime( "DELETE", "/human-loops/$(HumanLoopName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_human_loop( HumanLoopName, params::AbstractDict{String}; @@ -50,16 +47,13 @@ operation will return a ResourceNotFoundException error. - `human_loop_name`: The name of the human loop that you want information about. """ -function describe_human_loop( - HumanLoopName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_a2i_runtime( +describe_human_loop(HumanLoopName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_a2i_runtime( "GET", "/human-loops/$(HumanLoopName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_human_loop( HumanLoopName, params::AbstractDict{String}; @@ -97,17 +91,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortOrder"`: Optional. The order for displaying results. Valid values: Ascending and Descending. """ -function list_human_loops( - FlowDefinitionArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_a2i_runtime( +list_human_loops(FlowDefinitionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_a2i_runtime( "GET", "/human-loops", Dict{String,Any}("FlowDefinitionArn" => FlowDefinitionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_human_loops( FlowDefinitionArn, params::AbstractDict{String}; @@ -143,24 +134,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DataAttributes"`: Attributes of the specified data. Use DataAttributes to specify if your data is free of personally identifiable information and/or free of adult content. """ -function start_human_loop( +start_human_loop( FlowDefinitionArn, HumanLoopInput, HumanLoopName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker_a2i_runtime( + "POST", + "/human-loops", + Dict{String,Any}( + "FlowDefinitionArn" => FlowDefinitionArn, + "HumanLoopInput" => HumanLoopInput, + "HumanLoopName" => HumanLoopName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_a2i_runtime( - "POST", - "/human-loops", - Dict{String,Any}( - "FlowDefinitionArn" => FlowDefinitionArn, - "HumanLoopInput" => HumanLoopInput, - "HumanLoopName" => HumanLoopName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_human_loop( FlowDefinitionArn, HumanLoopInput, @@ -197,15 +186,14 @@ Stops the specified human loop. - `human_loop_name`: The name of the human loop that you want to stop. """ -function stop_human_loop(HumanLoopName; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_a2i_runtime( +stop_human_loop(HumanLoopName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_a2i_runtime( "POST", "/human-loops/stop", Dict{String,Any}("HumanLoopName" => HumanLoopName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_human_loop( HumanLoopName, params::AbstractDict{String}; diff --git a/src/services/sagemaker_edge.jl b/src/services/sagemaker_edge.jl index fd7681ff1..c1cdd85a4 100644 --- a/src/services/sagemaker_edge.jl +++ b/src/services/sagemaker_edge.jl @@ -16,17 +16,15 @@ Use to get the active deployments from a device. deployments from. """ -function get_deployments( +get_deployments( DeviceFleetName, DeviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker_edge( + "POST", + "/GetDeployments", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "DeviceName" => DeviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_edge( - "POST", - "/GetDeployments", - Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "DeviceName" => DeviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployments( DeviceFleetName, DeviceName, @@ -61,17 +59,15 @@ Use to check if a device is registered with SageMaker Edge Manager. - `device_name`: The unique name of the device you want to get the registration status from. """ -function get_device_registration( +get_device_registration( DeviceFleetName, DeviceName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker_edge( + "POST", + "/GetDeviceRegistration", + Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "DeviceName" => DeviceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_edge( - "POST", - "/GetDeviceRegistration", - Dict{String,Any}("DeviceFleetName" => DeviceFleetName, "DeviceName" => DeviceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_device_registration( DeviceFleetName, DeviceName, @@ -113,24 +109,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeploymentResult"`: Returns the result of a deployment on the device. - `"Models"`: Returns a list of models deployed on the the device. """ -function send_heartbeat( +send_heartbeat( AgentVersion, DeviceFleetName, DeviceName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker_edge( + "POST", + "/SendHeartbeat", + Dict{String,Any}( + "AgentVersion" => AgentVersion, + "DeviceFleetName" => DeviceFleetName, + "DeviceName" => DeviceName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_edge( - "POST", - "/SendHeartbeat", - Dict{String,Any}( - "AgentVersion" => AgentVersion, - "DeviceFleetName" => DeviceFleetName, - "DeviceName" => DeviceName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_heartbeat( AgentVersion, DeviceFleetName, diff --git a/src/services/sagemaker_featurestore_runtime.jl b/src/services/sagemaker_featurestore_runtime.jl index b07085cb4..773f702f0 100644 --- a/src/services/sagemaker_featurestore_runtime.jl +++ b/src/services/sagemaker_featurestore_runtime.jl @@ -21,15 +21,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys BatchGetRecord will return the value of ExpiresAt, if it is not null. If Disabled and null, BatchGetRecord will return null. """ -function batch_get_record(Identifiers; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_featurestore_runtime( +batch_get_record(Identifiers; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_featurestore_runtime( "POST", "/BatchGetRecord", Dict{String,Any}("Identifiers" => Identifiers); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_get_record( Identifiers, params::AbstractDict{String}; @@ -85,23 +84,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Feature Store deletes the record from all of the stores that you're using for the FeatureGroup. """ -function delete_record( +delete_record( EventTime, FeatureGroupName, RecordIdentifierValueAsString; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker_featurestore_runtime( + "DELETE", + "/FeatureGroup/$(FeatureGroupName)", + Dict{String,Any}( + "EventTime" => EventTime, + "RecordIdentifierValueAsString" => RecordIdentifierValueAsString, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_featurestore_runtime( - "DELETE", - "/FeatureGroup/$(FeatureGroupName)", - Dict{String,Any}( - "EventTime" => EventTime, - "RecordIdentifierValueAsString" => RecordIdentifierValueAsString, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_record( EventTime, FeatureGroupName, @@ -149,19 +146,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FeatureName"`: List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned. """ -function get_record( +get_record( FeatureGroupName, RecordIdentifierValueAsString; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker_featurestore_runtime( + "GET", + "/FeatureGroup/$(FeatureGroupName)", + Dict{String,Any}("RecordIdentifierValueAsString" => RecordIdentifierValueAsString); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_featurestore_runtime( - "GET", - "/FeatureGroup/$(FeatureGroupName)", - Dict{String,Any}("RecordIdentifierValueAsString" => RecordIdentifierValueAsString); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_record( FeatureGroupName, RecordIdentifierValueAsString, @@ -217,17 +212,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys expiration time is reached; ExpiresAt = EventTime + TtlDuration. For information on HardDelete, see the DeleteRecord API in the Amazon SageMaker API Reference guide. """ -function put_record( - FeatureGroupName, Record; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_featurestore_runtime( +put_record(FeatureGroupName, Record; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_featurestore_runtime( "PUT", "/FeatureGroup/$(FeatureGroupName)", Dict{String,Any}("Record" => Record); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_record( FeatureGroupName, Record, diff --git a/src/services/sagemaker_geospatial.jl b/src/services/sagemaker_geospatial.jl index 26d062ac4..23ab112ee 100644 --- a/src/services/sagemaker_geospatial.jl +++ b/src/services/sagemaker_geospatial.jl @@ -14,16 +14,13 @@ Use this operation to delete an Earth Observation job. - `arn`: The Amazon Resource Name (ARN) of the Earth Observation job being deleted. """ -function delete_earth_observation_job( - Arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_geospatial( +delete_earth_observation_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "DELETE", "/earth-observation-jobs/$(Arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_earth_observation_job( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -46,16 +43,13 @@ Use this operation to delete a Vector Enrichment job. - `arn`: The Amazon Resource Name (ARN) of the Vector Enrichment job being deleted. """ -function delete_vector_enrichment_job( - Arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_geospatial( +delete_vector_enrichment_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "DELETE", "/vector-enrichment-jobs/$(Arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vector_enrichment_job( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -87,22 +81,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ExportSourceImages"`: The source images provided to the Earth Observation job being exported. """ -function export_earth_observation_job( +export_earth_observation_job( Arn, ExecutionRoleArn, OutputConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker_geospatial( + "POST", + "/export-earth-observation-job", + Dict{String,Any}( + "Arn" => Arn, + "ExecutionRoleArn" => ExecutionRoleArn, + "OutputConfig" => OutputConfig, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_geospatial( - "POST", - "/export-earth-observation-job", - Dict{String,Any}( - "Arn" => Arn, - "ExecutionRoleArn" => ExecutionRoleArn, - "OutputConfig" => OutputConfig, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_earth_observation_job( Arn, ExecutionRoleArn, @@ -146,22 +138,20 @@ Use this operation to copy results of a Vector Enrichment job to an Amazon S3 lo Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: A unique token that guarantees that the call to this API is idempotent. """ -function export_vector_enrichment_job( +export_vector_enrichment_job( Arn, ExecutionRoleArn, OutputConfig; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker_geospatial( + "POST", + "/export-vector-enrichment-jobs", + Dict{String,Any}( + "Arn" => Arn, + "ExecutionRoleArn" => ExecutionRoleArn, + "OutputConfig" => OutputConfig, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_geospatial( - "POST", - "/export-vector-enrichment-jobs", - Dict{String,Any}( - "Arn" => Arn, - "ExecutionRoleArn" => ExecutionRoleArn, - "OutputConfig" => OutputConfig, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_vector_enrichment_job( Arn, ExecutionRoleArn, @@ -199,14 +189,13 @@ Get the details for a previously initiated Earth Observation job. - `arn`: The Amazon Resource Name (ARN) of the Earth Observation job. """ -function get_earth_observation_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +get_earth_observation_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "GET", "/earth-observation-jobs/$(Arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_earth_observation_job( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -229,14 +218,13 @@ Use this operation to get details of a specific raster data collection. - `arn`: The Amazon Resource Name (ARN) of the raster data collection. """ -function get_raster_data_collection(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +get_raster_data_collection(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "GET", "/raster-data-collection/$(Arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_raster_data_collection( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -274,17 +262,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PropertyFilters"`: Property filters for the imagery to tile. - `"TimeRangeFilter"`: Time range filter applied to imagery to find the images to tile. """ -function get_tile( +get_tile( Arn, ImageAssets, Target, x, y, z; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker_geospatial( + "GET", + "/tile/$(z)/$(x)/$(y)", + Dict{String,Any}("Arn" => Arn, "ImageAssets" => ImageAssets, "Target" => Target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_geospatial( - "GET", - "/tile/$(z)/$(x)/$(y)", - Dict{String,Any}("Arn" => Arn, "ImageAssets" => ImageAssets, "Target" => Target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_tile( Arn, ImageAssets, @@ -322,14 +308,13 @@ Retrieves details of a Vector Enrichment Job for a given job Amazon Resource Nam - `arn`: The Amazon Resource Name (ARN) of the Vector Enrichment job. """ -function get_vector_enrichment_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +get_vector_enrichment_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "GET", "/vector-enrichment-jobs/$(Arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_vector_enrichment_job( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -359,14 +344,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Ascending or Descending order. - `"StatusEquals"`: A filter that retrieves only jobs with a specific status. """ -function list_earth_observation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +list_earth_observation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "POST", "/list-earth-observation-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_earth_observation_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -391,14 +375,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If the previous response was truncated, you receive this token. Use it in your next request to receive the next set of results. """ -function list_raster_data_collections(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +list_raster_data_collections(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "GET", "/raster-data-collections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_raster_data_collections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -421,16 +404,13 @@ Lists the tags attached to the resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource you want to tag. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_geospatial( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -461,14 +441,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Ascending or Descending order. - `"StatusEquals"`: A filter that retrieves only jobs with a specific status. """ -function list_vector_enrichment_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +list_vector_enrichment_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "POST", "/list-vector-enrichment-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_vector_enrichment_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -499,19 +478,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If the previous response was truncated, you receive this token. Use it in your next request to receive the next set of results. """ -function search_raster_data_collection( +search_raster_data_collection( Arn, RasterDataCollectionQuery; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker_geospatial( + "POST", + "/search-raster-data-collection", + Dict{String,Any}( + "Arn" => Arn, "RasterDataCollectionQuery" => RasterDataCollectionQuery + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_geospatial( - "POST", - "/search-raster-data-collection", - Dict{String,Any}( - "Arn" => Arn, "RasterDataCollectionQuery" => RasterDataCollectionQuery - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_raster_data_collection( Arn, RasterDataCollectionQuery, @@ -554,27 +531,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KmsKeyId"`: The Key Management Service key ID for server-side encryption. - `"Tags"`: Each tag consists of a key and a value. """ -function start_earth_observation_job( +start_earth_observation_job( ExecutionRoleArn, InputConfig, JobConfig, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker_geospatial( + "POST", + "/earth-observation-jobs", + Dict{String,Any}( + "ExecutionRoleArn" => ExecutionRoleArn, + "InputConfig" => InputConfig, + "JobConfig" => JobConfig, + "Name" => Name, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_geospatial( - "POST", - "/earth-observation-jobs", - Dict{String,Any}( - "ExecutionRoleArn" => ExecutionRoleArn, - "InputConfig" => InputConfig, - "JobConfig" => JobConfig, - "Name" => Name, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_earth_observation_job( ExecutionRoleArn, InputConfig, @@ -624,27 +599,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KmsKeyId"`: The Key Management Service key ID for server-side encryption. - `"Tags"`: Each tag consists of a key and a value. """ -function start_vector_enrichment_job( +start_vector_enrichment_job( ExecutionRoleArn, InputConfig, JobConfig, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker_geospatial( + "POST", + "/vector-enrichment-jobs", + Dict{String,Any}( + "ExecutionRoleArn" => ExecutionRoleArn, + "InputConfig" => InputConfig, + "JobConfig" => JobConfig, + "Name" => Name, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_geospatial( - "POST", - "/vector-enrichment-jobs", - Dict{String,Any}( - "ExecutionRoleArn" => ExecutionRoleArn, - "InputConfig" => InputConfig, - "JobConfig" => JobConfig, - "Name" => Name, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_vector_enrichment_job( ExecutionRoleArn, InputConfig, @@ -684,15 +657,14 @@ Use this operation to stop an existing earth observation job. - `arn`: The Amazon Resource Name (ARN) of the Earth Observation job being stopped. """ -function stop_earth_observation_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +stop_earth_observation_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "POST", "/earth-observation-jobs/stop", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_earth_observation_job( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -715,15 +687,14 @@ Stops the Vector Enrichment job for a given job ARN. - `arn`: The Amazon Resource Name (ARN) of the Vector Enrichment job. """ -function stop_vector_enrichment_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +stop_vector_enrichment_job(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "POST", "/vector-enrichment-jobs/stop", Dict{String,Any}("Arn" => Arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_vector_enrichment_job( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -747,15 +718,14 @@ The resource you want to tag. - `tags`: Each tag consists of a key and a value. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return sagemaker_geospatial( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "PUT", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -782,17 +752,14 @@ The resource you want to untag. - `tag_keys`: Keys of the tags you want to remove. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_geospatial( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_geospatial( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, diff --git a/src/services/sagemaker_metrics.jl b/src/services/sagemaker_metrics.jl index 17e99ce29..ff6910608 100644 --- a/src/services/sagemaker_metrics.jl +++ b/src/services/sagemaker_metrics.jl @@ -16,19 +16,17 @@ SageMaker Studio and retrieved with the GetMetrics API. - `trial_component_name`: The name of the Trial Component to associate with the metrics. """ -function batch_put_metrics( +batch_put_metrics( MetricData, TrialComponentName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker_metrics( + "PUT", + "/BatchPutMetrics", + Dict{String,Any}( + "MetricData" => MetricData, "TrialComponentName" => TrialComponentName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_metrics( - "PUT", - "/BatchPutMetrics", - Dict{String,Any}( - "MetricData" => MetricData, "TrialComponentName" => TrialComponentName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_metrics( MetricData, TrialComponentName, diff --git a/src/services/sagemaker_runtime.jl b/src/services/sagemaker_runtime.jl index e1be5e447..c4bcabdba 100644 --- a/src/services/sagemaker_runtime.jl +++ b/src/services/sagemaker_runtime.jl @@ -65,17 +65,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys invocation traffic based on the variant weights. For information about how to use variant targeting to perform a/b testing, see Test models in production """ -function invoke_endpoint( - Body, EndpointName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sagemaker_runtime( +invoke_endpoint(Body, EndpointName; aws_config::AbstractAWSConfig=current_aws_config()) = + sagemaker_runtime( "POST", "/endpoints/$(EndpointName)/invocations", Dict{String,Any}("Body" => Body); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invoke_endpoint( Body, EndpointName, @@ -139,23 +136,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"X-Amzn-SageMaker-RequestTTLSeconds"`: Maximum age in seconds a request can be in the queue before it is marked as expired. The default is 6 hours, or 21,600 seconds. """ -function invoke_endpoint_async( +invoke_endpoint_async( EndpointName, X_Amzn_SageMaker_InputLocation; aws_config::AbstractAWSConfig=current_aws_config(), +) = sagemaker_runtime( + "POST", + "/endpoints/$(EndpointName)/async-invocations", + Dict{String,Any}( + "headers" => Dict{String,Any}( + "X-Amzn-SageMaker-InputLocation" => X_Amzn_SageMaker_InputLocation + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_runtime( - "POST", - "/endpoints/$(EndpointName)/async-invocations", - Dict{String,Any}( - "headers" => Dict{String,Any}( - "X-Amzn-SageMaker-InputLocation" => X_Amzn_SageMaker_InputLocation - ), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function invoke_endpoint_async( EndpointName, X_Amzn_SageMaker_InputLocation, @@ -241,17 +236,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys invocation traffic based on the variant weights. For information about how to use variant targeting to perform a/b testing, see Test models in production """ -function invoke_endpoint_with_response_stream( +invoke_endpoint_with_response_stream( Body, EndpointName; aws_config::AbstractAWSConfig=current_aws_config() +) = sagemaker_runtime( + "POST", + "/endpoints/$(EndpointName)/invocations-response-stream", + Dict{String,Any}("Body" => Body); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sagemaker_runtime( - "POST", - "/endpoints/$(EndpointName)/invocations-response-stream", - Dict{String,Any}("Body" => Body); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function invoke_endpoint_with_response_stream( Body, EndpointName, diff --git a/src/services/savingsplans.jl b/src/services/savingsplans.jl index 1c2598b13..8c39bd383 100644 --- a/src/services/savingsplans.jl +++ b/src/services/savingsplans.jl @@ -27,21 +27,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and 99 percent of the total value of the Savings Plan. This parameter is only supported if the payment option is Partial Upfront. """ -function create_savings_plan( +create_savings_plan( commitment, savingsPlanOfferingId; aws_config::AbstractAWSConfig=current_aws_config() +) = savingsplans( + "POST", + "/CreateSavingsPlan", + Dict{String,Any}( + "commitment" => commitment, + "savingsPlanOfferingId" => savingsPlanOfferingId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return savingsplans( - "POST", - "/CreateSavingsPlan", - Dict{String,Any}( - "commitment" => commitment, - "savingsPlanOfferingId" => savingsPlanOfferingId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_savings_plan( commitment, savingsPlanOfferingId, @@ -77,17 +75,15 @@ Deletes the queued purchase for the specified Savings Plan. - `savings_plan_id`: The ID of the Savings Plan. """ -function delete_queued_savings_plan( +delete_queued_savings_plan( savingsPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = savingsplans( + "POST", + "/DeleteQueuedSavingsPlan", + Dict{String,Any}("savingsPlanId" => savingsPlanId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return savingsplans( - "POST", - "/DeleteQueuedSavingsPlan", - Dict{String,Any}("savingsPlanId" => savingsPlanId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_queued_savings_plan( savingsPlanId, params::AbstractDict{String}; @@ -120,17 +116,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys additional results, make another call with the returned token value. - `"nextToken"`: The token for the next page of results. """ -function describe_savings_plan_rates( +describe_savings_plan_rates( savingsPlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = savingsplans( + "POST", + "/DescribeSavingsPlanRates", + Dict{String,Any}("savingsPlanId" => savingsPlanId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return savingsplans( - "POST", - "/DescribeSavingsPlanRates", - Dict{String,Any}("savingsPlanId" => savingsPlanId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_savings_plan_rates( savingsPlanId, params::AbstractDict{String}; @@ -163,14 +157,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"savingsPlanIds"`: The IDs of the Savings Plans. - `"states"`: The current states of the Savings Plans. """ -function describe_savings_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return savingsplans( - "POST", - "/DescribeSavingsPlans"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_savings_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = savingsplans( + "POST", + "/DescribeSavingsPlans"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_savings_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -204,16 +196,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceCodes"`: The services. - `"usageTypes"`: The usage details of the line item in the billing report. """ -function describe_savings_plans_offering_rates(; +describe_savings_plans_offering_rates(; aws_config::AbstractAWSConfig=current_aws_config() +) = savingsplans( + "POST", + "/DescribeSavingsPlansOfferingRates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return savingsplans( - "POST", - "/DescribeSavingsPlansOfferingRates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_savings_plans_offering_rates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -250,16 +240,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceCodes"`: The services. - `"usageTypes"`: The usage details of the line item in the billing report. """ -function describe_savings_plans_offerings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return savingsplans( +describe_savings_plans_offerings(; aws_config::AbstractAWSConfig=current_aws_config()) = + savingsplans( "POST", "/DescribeSavingsPlansOfferings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_savings_plans_offerings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -282,17 +269,14 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return savingsplans( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + savingsplans( "POST", "/ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -323,10 +307,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. """ -function return_savings_plan( - savingsPlanId; aws_config::AbstractAWSConfig=current_aws_config() -) - return savingsplans( +return_savings_plan(savingsPlanId; aws_config::AbstractAWSConfig=current_aws_config()) = + savingsplans( "POST", "/ReturnSavingsPlan", Dict{String,Any}( @@ -335,7 +317,6 @@ function return_savings_plan( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function return_savings_plan( savingsPlanId, params::AbstractDict{String}; @@ -370,15 +351,14 @@ Adds the specified tags to the specified resource. \"key2\":\"value2\"} }. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return savingsplans( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + savingsplans( "POST", "/TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -411,17 +391,14 @@ Removes the specified tags from the specified resource. - `tag_keys`: The tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return savingsplans( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + savingsplans( "POST", "/UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/scheduler.jl b/src/services/scheduler.jl index 4828d4589..172995cd5 100644 --- a/src/services/scheduler.jl +++ b/src/services/scheduler.jl @@ -51,26 +51,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the StartDate you specify. EventBridge Scheduler ignores StartDate for one-time schedules. - `"State"`: Specifies whether the schedule is enabled or disabled. """ -function create_schedule( +create_schedule( FlexibleTimeWindow, Name, ScheduleExpression, Target; aws_config::AbstractAWSConfig=current_aws_config(), +) = scheduler( + "POST", + "/schedules/$(Name)", + Dict{String,Any}( + "FlexibleTimeWindow" => FlexibleTimeWindow, + "ScheduleExpression" => ScheduleExpression, + "Target" => Target, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return scheduler( - "POST", - "/schedules/$(Name)", - Dict{String,Any}( - "FlexibleTimeWindow" => FlexibleTimeWindow, - "ScheduleExpression" => ScheduleExpression, - "Target" => Target, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_schedule( FlexibleTimeWindow, Name, @@ -115,15 +113,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys generated token for the request to ensure idempotency. - `"Tags"`: The list of tags to associate with the schedule group. """ -function create_schedule_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return scheduler( - "POST", - "/schedule-groups/$(Name)", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_schedule_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = scheduler( + "POST", + "/schedule-groups/$(Name)", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_schedule_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -155,15 +151,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"groupName"`: The name of the schedule group associated with this schedule. If you omit this, the default schedule group is used. """ -function delete_schedule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return scheduler( - "DELETE", - "/schedules/$(Name)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_schedule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = scheduler( + "DELETE", + "/schedules/$(Name)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_schedule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -198,15 +192,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of the request. If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency. """ -function delete_schedule_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return scheduler( - "DELETE", - "/schedule-groups/$(Name)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_schedule_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = scheduler( + "DELETE", + "/schedule-groups/$(Name)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_schedule_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -235,11 +227,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"groupName"`: The name of the schedule group associated with this schedule. If you omit this, EventBridge Scheduler assumes that the schedule is associated with the default group. """ -function get_schedule(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return scheduler( - "GET", "/schedules/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_schedule(Name; aws_config::AbstractAWSConfig=current_aws_config()) = scheduler( + "GET", "/schedules/$(Name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_schedule( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -262,14 +252,12 @@ Retrieves the specified schedule group. - `name`: The name of the schedule group to retrieve. """ -function get_schedule_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return scheduler( - "GET", - "/schedule-groups/$(Name)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_schedule_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = scheduler( + "GET", + "/schedule-groups/$(Name)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_schedule_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -297,11 +285,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys schedule groups. - `"NextToken"`: The token returned by a previous call to retrieve the next set of results. """ -function list_schedule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return scheduler( - "GET", "/schedule-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_schedule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = scheduler( + "GET", "/schedule-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_schedule_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -332,11 +318,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"State"`: If specified, only lists the schedules whose current state matches the given filter. """ -function list_schedules(; aws_config::AbstractAWSConfig=current_aws_config()) - return scheduler( - "GET", "/schedules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_schedules(; aws_config::AbstractAWSConfig=current_aws_config()) = + scheduler("GET", "/schedules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_schedules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -356,16 +339,13 @@ Lists the tags associated with the Scheduler resource. tags. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return scheduler( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + scheduler( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -393,15 +373,14 @@ You can only assign tags to schedule groups. - `tags`: The list of tags to associate with the schedule group. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return scheduler( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + scheduler( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -429,17 +408,14 @@ Removes one or more tags from the specified EventBridge Scheduler schedule group - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return scheduler( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + scheduler( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -510,26 +486,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the StartDate you specify. EventBridge Scheduler ignores StartDate for one-time schedules. - `"State"`: Specifies whether the schedule is enabled or disabled. """ -function update_schedule( +update_schedule( FlexibleTimeWindow, Name, ScheduleExpression, Target; aws_config::AbstractAWSConfig=current_aws_config(), +) = scheduler( + "PUT", + "/schedules/$(Name)", + Dict{String,Any}( + "FlexibleTimeWindow" => FlexibleTimeWindow, + "ScheduleExpression" => ScheduleExpression, + "Target" => Target, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return scheduler( - "PUT", - "/schedules/$(Name)", - Dict{String,Any}( - "FlexibleTimeWindow" => FlexibleTimeWindow, - "ScheduleExpression" => ScheduleExpression, - "Target" => Target, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_schedule( FlexibleTimeWindow, Name, diff --git a/src/services/schemas.jl b/src/services/schemas.jl index bb358f80f..a22f435c7 100644 --- a/src/services/schemas.jl +++ b/src/services/schemas.jl @@ -20,15 +20,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description for the discoverer. - `"tags"`: Tags associated with the resource. """ -function create_discoverer(SourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "POST", - "/v1/discoverers", - Dict{String,Any}("SourceArn" => SourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_discoverer(SourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = schemas( + "POST", + "/v1/discoverers", + Dict{String,Any}("SourceArn" => SourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_discoverer( SourceArn, params::AbstractDict{String}; @@ -59,14 +57,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the registry to be created. - `"tags"`: Tags to associate with the registry. """ -function create_registry(registryName; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "POST", - "/v1/registries/name/$(registryName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_registry(registryName; aws_config::AbstractAWSConfig=current_aws_config()) = schemas( + "POST", + "/v1/registries/name/$(registryName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_registry( registryName, params::AbstractDict{String}; @@ -98,21 +94,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the schema. - `"tags"`: Tags associated with the schema. """ -function create_schema( +create_schema( Content, Type, registryName, schemaName; aws_config::AbstractAWSConfig=current_aws_config(), +) = schemas( + "POST", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)", + Dict{String,Any}("Content" => Content, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "POST", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)", - Dict{String,Any}("Content" => Content, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_schema( Content, Type, @@ -144,14 +138,13 @@ Deletes a discoverer. - `discoverer_id`: The ID of the discoverer. """ -function delete_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( +delete_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "DELETE", "/v1/discoverers/id/$(discovererId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_discoverer( discovererId, params::AbstractDict{String}; @@ -176,14 +169,12 @@ Deletes a Registry. - `registry_name`: The name of the registry. """ -function delete_registry(registryName; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "DELETE", - "/v1/registries/name/$(registryName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_registry(registryName; aws_config::AbstractAWSConfig=current_aws_config()) = schemas( + "DELETE", + "/v1/registries/name/$(registryName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_registry( registryName, params::AbstractDict{String}; @@ -208,11 +199,8 @@ Delete the resource-based policy attached to the specified registry. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"registryName"`: The name of the registry. """ -function delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "DELETE", "/v1/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas("DELETE", "/v1/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -236,16 +224,14 @@ Delete a schema definition. - `schema_name`: The name of the schema. """ -function delete_schema( +delete_schema( registryName, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = schemas( + "DELETE", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "DELETE", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_schema( registryName, schemaName, @@ -273,19 +259,17 @@ Delete the schema version definition - `schema_version`: The version number of the schema """ -function delete_schema_version( +delete_schema_version( registryName, schemaName, schemaVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = schemas( + "DELETE", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/version/$(schemaVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "DELETE", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/version/$(schemaVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_schema_version( registryName, schemaName, @@ -317,16 +301,14 @@ Describe the code binding URI. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"schemaVersion"`: Specifying this limits the results to only this schema version. """ -function describe_code_binding( +describe_code_binding( language, registryName, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = schemas( + "GET", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/language/$(language)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "GET", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/language/$(language)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_code_binding( language, registryName, @@ -353,16 +335,13 @@ Describes the discoverer. - `discoverer_id`: The ID of the discoverer. """ -function describe_discoverer( - discovererId; aws_config::AbstractAWSConfig=current_aws_config() -) - return schemas( +describe_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "GET", "/v1/discoverers/id/$(discovererId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_discoverer( discovererId, params::AbstractDict{String}; @@ -387,14 +366,13 @@ Describes the registry. - `registry_name`: The name of the registry. """ -function describe_registry(registryName; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( +describe_registry(registryName; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "GET", "/v1/registries/name/$(registryName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_registry( registryName, params::AbstractDict{String}; @@ -423,16 +401,14 @@ Retrieve the schema definition. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"schemaVersion"`: Specifying this limits the results to only this schema version. """ -function describe_schema( +describe_schema( registryName, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = schemas( + "GET", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "GET", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_schema( registryName, schemaName, @@ -463,17 +439,15 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"schemaVersion"`: Specifying this limits the results to only this schema version. """ -function export_schema( +export_schema( registryName, schemaName, type; aws_config::AbstractAWSConfig=current_aws_config() +) = schemas( + "GET", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/export", + Dict{String,Any}("type" => type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "GET", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/export", - Dict{String,Any}("type" => type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function export_schema( registryName, schemaName, @@ -505,16 +479,14 @@ Get the code binding source URI. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"schemaVersion"`: Specifying this limits the results to only this schema version. """ -function get_code_binding_source( +get_code_binding_source( language, registryName, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = schemas( + "GET", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/language/$(language)/source"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "GET", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/language/$(language)/source"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_code_binding_source( language, registryName, @@ -544,17 +516,14 @@ Get the discovered schema that was generated based on sampled events. - `type`: The type of event. """ -function get_discovered_schema( - Events, Type; aws_config::AbstractAWSConfig=current_aws_config() -) - return schemas( +get_discovered_schema(Events, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "POST", "/v1/discover", Dict{String,Any}("Events" => Events, "Type" => Type); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_discovered_schema( Events, Type, @@ -582,11 +551,8 @@ Retrieves the resource-based policy attached to a given registry. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"registryName"`: The name of the registry. """ -function get_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "GET", "/v1/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_resource_policy(; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas("GET", "/v1/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_resource_policy( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -612,11 +578,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sourceArnPrefix"`: Specifying this limits the results to only those ARNs that start with the specified prefix. """ -function list_discoverers(; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "GET", "/v1/discoverers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_discoverers(; aws_config::AbstractAWSConfig=current_aws_config()) = schemas( + "GET", "/v1/discoverers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_discoverers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -646,11 +610,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"scope"`: Can be set to Local or AWS to limit responses to your custom registries, or the ones provided by AWS. """ -function list_registries(; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "GET", "/v1/registries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_registries(; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas("GET", "/v1/registries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_registries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -680,16 +641,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts. """ -function list_schema_versions( +list_schema_versions( registryName, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = schemas( + "GET", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "GET", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_schema_versions( registryName, schemaName, @@ -723,14 +682,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"schemaNamePrefix"`: Specifying this limits the results to only those schema names that start with the specified prefix. """ -function list_schemas(registryName; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "GET", - "/v1/registries/name/$(registryName)/schemas"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_schemas(registryName; aws_config::AbstractAWSConfig=current_aws_config()) = schemas( + "GET", + "/v1/registries/name/$(registryName)/schemas"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_schemas( registryName, params::AbstractDict{String}; @@ -755,16 +712,13 @@ Get tags for resource. - `resource-arn`: The ARN of the resource. """ -function list_tags_for_resource( - resource_arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return schemas( +list_tags_for_resource(resource_arn; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "GET", "/tags/$(resource-arn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resource_arn, params::AbstractDict{String}; @@ -794,16 +748,14 @@ Put code binding URI Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"schemaVersion"`: Specifying this limits the results to only this schema version. """ -function put_code_binding( +put_code_binding( language, registryName, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = schemas( + "POST", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/language/$(language)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "POST", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)/language/$(language)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_code_binding( language, registryName, @@ -834,15 +786,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RevisionId"`: The revision ID of the policy. - `"registryName"`: The name of the registry. """ -function put_resource_policy(Policy; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "PUT", - "/v1/policy", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_resource_policy(Policy; aws_config::AbstractAWSConfig=current_aws_config()) = schemas( + "PUT", + "/v1/policy", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_resource_policy( Policy, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -873,17 +823,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts. """ -function search_schemas( - keywords, registryName; aws_config::AbstractAWSConfig=current_aws_config() -) - return schemas( +search_schemas(keywords, registryName; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "GET", "/v1/registries/name/$(registryName)/schemas/search", Dict{String,Any}("keywords" => keywords); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function search_schemas( keywords, registryName, @@ -911,14 +858,13 @@ Starts the discoverer - `discoverer_id`: The ID of the discoverer. """ -function start_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( +start_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "POST", "/v1/discoverers/id/$(discovererId)/start"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_discoverer( discovererId, params::AbstractDict{String}; @@ -943,14 +889,12 @@ Stops the discoverer - `discoverer_id`: The ID of the discoverer. """ -function stop_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "POST", - "/v1/discoverers/id/$(discovererId)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) = schemas( + "POST", + "/v1/discoverers/id/$(discovererId)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_discoverer( discovererId, params::AbstractDict{String}; @@ -976,17 +920,14 @@ Add tags to a resource. - `tags`: Tags associated with the resource. """ -function tag_resource( - resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config() -) - return schemas( +tag_resource(resource_arn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "POST", "/tags/$(resource-arn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resource_arn, tags, @@ -1013,17 +954,14 @@ Removes tags from a resource. - `tag_keys`: Keys of key-value pairs. """ -function untag_resource( - resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return schemas( +untag_resource(resource_arn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "DELETE", "/tags/$(resource-arn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resource_arn, tagKeys, @@ -1054,14 +992,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys account. (default: true) - `"Description"`: The description of the discoverer to update. """ -function update_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( +update_discoverer(discovererId; aws_config::AbstractAWSConfig=current_aws_config()) = + schemas( "PUT", "/v1/discoverers/id/$(discovererId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_discoverer( discovererId, params::AbstractDict{String}; @@ -1089,14 +1026,12 @@ Updates a registry. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The description of the registry to update. """ -function update_registry(registryName; aws_config::AbstractAWSConfig=current_aws_config()) - return schemas( - "PUT", - "/v1/registries/name/$(registryName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_registry(registryName; aws_config::AbstractAWSConfig=current_aws_config()) = schemas( + "PUT", + "/v1/registries/name/$(registryName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_registry( registryName, params::AbstractDict{String}; @@ -1128,17 +1063,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the schema. - `"Type"`: The schema type for the events schema. """ -function update_schema( +update_schema( registryName, schemaName; aws_config::AbstractAWSConfig=current_aws_config() +) = schemas( + "PUT", + "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)", + Dict{String,Any}("ClientTokenId" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return schemas( - "PUT", - "/v1/registries/name/$(registryName)/schemas/name/$(schemaName)", - Dict{String,Any}("ClientTokenId" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_schema( registryName, schemaName, diff --git a/src/services/secrets_manager.jl b/src/services/secrets_manager.jl index bf77ecf51..e0646020b 100644 --- a/src/services/secrets_manager.jl +++ b/src/services/secrets_manager.jl @@ -37,11 +37,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SecretIdList"`: The ARN or names of the secrets to retrieve. You must include Filters or SecretIdList, but not both. """ -function batch_get_secret_value(; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +batch_get_secret_value(; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "BatchGetSecretValue"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function batch_get_secret_value( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -76,14 +75,13 @@ access control in Secrets Manager. complete ARN rather than a partial ARN. See Finding a secret from a partial ARN. """ -function cancel_rotate_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +cancel_rotate_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "CancelRotateSecret", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_rotate_secret( SecretId, params::AbstractDict{String}; @@ -133,7 +131,10 @@ secretsmanager:TagResource. To add replica Regions, you must also have secretsmanager:ReplicateSecretToRegions. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager. To encrypt the secret with a KMS key other than aws/secretsmanager, you need kms:GenerateDataKey and -kms:Decrypt permission to the key. +kms:Decrypt permission to the key. When you enter commands in a command shell, there is a +risk of the command history being accessed or utilities having access to your command +parameters. This is a concern if the command includes the value of a secret. Learn how to +Mitigate the risks of using command-line tools to store Secrets Manager secrets. # Arguments - `name`: The name of the new secret. The secret name can contain ASCII letters, numbers, @@ -207,14 +208,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys restrictions, see Service quotas for Tagging in the Amazon Web Services General Reference guide. """ -function create_secret(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( - "CreateSecret", - Dict{String,Any}("Name" => Name, "ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_secret(Name; aws_config::AbstractAWSConfig=current_aws_config()) = secrets_manager( + "CreateSecret", + Dict{String,Any}("Name" => Name, "ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_secret( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -250,16 +249,13 @@ Manager. See Finding a secret from a partial ARN. """ -function delete_resource_policy( - SecretId; aws_config::AbstractAWSConfig=current_aws_config() -) - return secrets_manager( +delete_resource_policy(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "DeleteResourcePolicy", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( SecretId, params::AbstractDict{String}; @@ -327,14 +323,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ForceDeleteWithoutRecovery in the same call. If you don't use either, then by default Secrets Manager uses a 30 day recovery window. """ -function delete_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +delete_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "DeleteSecret", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_secret( SecretId, params::AbstractDict{String}; @@ -367,14 +362,13 @@ control in Secrets Manager. complete ARN rather than a partial ARN. See Finding a secret from a partial ARN. """ -function describe_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +describe_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "DescribeSecret", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_secret( SecretId, params::AbstractDict{String}; @@ -422,11 +416,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys lowercase letter, one number, and one punctuation. If you don't include this switch, the password contains at least one of every character type. """ -function get_random_password(; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( - "GetRandomPassword"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_random_password(; aws_config::AbstractAWSConfig=current_aws_config()) = secrets_manager( + "GetRandomPassword"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_random_password( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -453,14 +445,13 @@ actions for Secrets Manager and Authentication and access control in Secrets Man See Finding a secret from a partial ARN. """ -function get_resource_policy(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +get_resource_policy(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "GetResourcePolicy", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( SecretId, params::AbstractDict{String}; @@ -513,14 +504,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the same secret version. If you don't specify either a VersionStage or VersionId, Secrets Manager returns the AWSCURRENT version. """ -function get_secret_value(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +get_secret_value(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "GetSecretValue", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_secret_value( SecretId, params::AbstractDict{String}; @@ -567,16 +557,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call did not show all results. To get the next results, call ListSecretVersionIds again with this value. """ -function list_secret_version_ids( - SecretId; aws_config::AbstractAWSConfig=current_aws_config() -) - return secrets_manager( +list_secret_version_ids(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "ListSecretVersionIds", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_secret_version_ids( SecretId, params::AbstractDict{String}; @@ -623,11 +610,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys with this value. - `"SortOrder"`: Secrets are listed by CreatedDate. """ -function list_secrets(; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( - "ListSecrets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_secrets(; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager("ListSecrets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_secrets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -669,16 +653,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associated Amazon Web Services resources (for example, Key Management Service (KMS) keys) To review permissions to your secrets, see Determine who has permissions to your secrets. """ -function put_resource_policy( +put_resource_policy( ResourcePolicy, SecretId; aws_config::AbstractAWSConfig=current_aws_config() +) = secrets_manager( + "PutResourcePolicy", + Dict{String,Any}("ResourcePolicy" => ResourcePolicy, "SecretId" => SecretId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return secrets_manager( - "PutResourcePolicy", - Dict{String,Any}("ResourcePolicy" => ResourcePolicy, "SecretId" => SecretId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( ResourcePolicy, SecretId, @@ -727,7 +709,11 @@ log entry when you call this action. Do not include sensitive information in req parameters except SecretBinary, SecretString, or RotationToken because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail. Required permissions: secretsmanager:PutSecretValue. For more information, see IAM policy actions -for Secrets Manager and Authentication and access control in Secrets Manager. +for Secrets Manager and Authentication and access control in Secrets Manager. When you +enter commands in a command shell, there is a risk of the command history being accessed or +utilities having access to your command parameters. This is a concern if the command +includes the value of a secret. Learn how to Mitigate the risks of using command-line tools +to store Secrets Manager secrets. # Arguments - `secret_id`: The ARN or name of the secret to add a new version to. For an ARN, we @@ -781,14 +767,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys version that AWSCURRENT was removed from. If you don't include VersionStages, then Secrets Manager automatically moves the staging label AWSCURRENT to this version. """ -function put_secret_value(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +put_secret_value(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "PutSecretValue", Dict{String,Any}("SecretId" => SecretId, "ClientRequestToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_secret_value( SecretId, params::AbstractDict{String}; @@ -827,18 +812,16 @@ Manager. - `secret_id`: The ARN or name of the secret. """ -function remove_regions_from_replication( +remove_regions_from_replication( RemoveReplicaRegions, SecretId; aws_config::AbstractAWSConfig=current_aws_config() +) = secrets_manager( + "RemoveRegionsFromReplication", + Dict{String,Any}( + "RemoveReplicaRegions" => RemoveReplicaRegions, "SecretId" => SecretId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return secrets_manager( - "RemoveRegionsFromReplication", - Dict{String,Any}( - "RemoveReplicaRegions" => RemoveReplicaRegions, "SecretId" => SecretId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_regions_from_replication( RemoveReplicaRegions, SecretId, @@ -884,16 +867,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ForceOverwriteReplicaSecret"`: Specifies whether to overwrite a secret with the same name in the destination Region. By default, secrets aren't overwritten. """ -function replicate_secret_to_regions( +replicate_secret_to_regions( AddReplicaRegions, SecretId; aws_config::AbstractAWSConfig=current_aws_config() +) = secrets_manager( + "ReplicateSecretToRegions", + Dict{String,Any}("AddReplicaRegions" => AddReplicaRegions, "SecretId" => SecretId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return secrets_manager( - "ReplicateSecretToRegions", - Dict{String,Any}("AddReplicaRegions" => AddReplicaRegions, "SecretId" => SecretId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function replicate_secret_to_regions( AddReplicaRegions, SecretId, @@ -933,14 +914,13 @@ control in Secrets Manager. specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN. """ -function restore_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +restore_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "RestoreSecret", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_secret( SecretId, params::AbstractDict{String}; @@ -1008,14 +988,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For more information, see Managed rotation in the Secrets Manager User Guide. - `"RotationRules"`: A structure that defines the rotation configuration for this secret. """ -function rotate_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +rotate_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "RotateSecret", Dict{String,Any}("SecretId" => SecretId, "ClientRequestToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function rotate_secret( SecretId, params::AbstractDict{String}; @@ -1054,16 +1033,13 @@ Secrets Manager and Authentication and access control in Secrets Manager. - `secret_id`: The ARN of the primary secret. """ -function stop_replication_to_replica( - SecretId; aws_config::AbstractAWSConfig=current_aws_config() -) - return secrets_manager( +stop_replication_to_replica(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "StopReplicationToReplica", Dict{String,Any}("SecretId" => SecretId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_replication_to_replica( SecretId, params::AbstractDict{String}; @@ -1108,14 +1084,13 @@ Secrets Manager and Authentication and access control in Secrets Manager. User Guide. """ -function tag_resource(SecretId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +tag_resource(SecretId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "TagResource", Dict{String,Any}("SecretId" => SecretId, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( SecretId, Tags, @@ -1159,16 +1134,13 @@ Manager and Authentication and access control in Secrets Manager. values for the Amazon Web Services CLI in the Amazon Web Services CLI User Guide. """ -function untag_resource( - SecretId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return secrets_manager( +untag_resource(SecretId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "UntagResource", Dict{String,Any}("SecretId" => SecretId, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( SecretId, TagKeys, @@ -1217,8 +1189,12 @@ secretsmanager:UpdateSecret. For more information, see IAM policy actions for S Manager and Authentication and access control in Secrets Manager. If you use a customer managed key, you must also have kms:GenerateDataKey, kms:Encrypt, and kms:Decrypt permissions on the key. If you change the KMS key and you don't have kms:Encrypt permission -to the new key, Secrets Manager does not re-ecrypt existing secret versions with the new -key. For more information, see Secret encryption and decryption. +to the new key, Secrets Manager does not re-encrypt existing secret versions with the new +key. For more information, see Secret encryption and decryption. When you enter commands +in a command shell, there is a risk of the command history being accessed or utilities +having access to your command parameters. This is a concern if the command includes the +value of a secret. Learn how to Mitigate the risks of using command-line tools to store +Secrets Manager secrets. # Arguments - `secret_id`: The ARN or name of the secret. For an ARN, we recommend that you specify a @@ -1241,13 +1217,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KmsKeyId"`: The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt new secret versions as well as any existing versions with the staging labels AWSCURRENT, AWSPENDING, or AWSPREVIOUS. If you don't have kms:Encrypt permission to the new - key, Secrets Manager does not re-ecrypt existing secret versions with the new key. For more - information about versions and staging labels, see Concepts: Version. A key alias is always - prefixed by alias/, for example alias/aws/secretsmanager. For more information, see About - aliases. If you set this to an empty string, Secrets Manager uses the Amazon Web Services - managed key aws/secretsmanager. If this key doesn't already exist in your account, then - Secrets Manager creates it for you automatically. All users and roles in the Amazon Web - Services account automatically have access to use aws/secretsmanager. Creating + key, Secrets Manager does not re-encrypt existing secret versions with the new key. For + more information about versions and staging labels, see Concepts: Version. A key alias is + always prefixed by alias/, for example alias/aws/secretsmanager. For more information, see + About aliases. If you set this to an empty string, Secrets Manager uses the Amazon Web + Services managed key aws/secretsmanager. If this key doesn't already exist in your account, + then Secrets Manager creates it for you automatically. All users and roles in the Amazon + Web Services account automatically have access to use aws/secretsmanager. Creating aws/secretsmanager can result in a one-time significant delay in returning the result. You can only use the Amazon Web Services managed key aws/secretsmanager if you call this operation using credentials from the same Amazon Web Services account that owns the secret. @@ -1268,14 +1244,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys entries. If you create your own log entries, you must also avoid logging the information in this field. """ -function update_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) - return secrets_manager( +update_secret(SecretId; aws_config::AbstractAWSConfig=current_aws_config()) = + secrets_manager( "UpdateSecret", Dict{String,Any}("SecretId" => SecretId, "ClientRequestToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_secret( SecretId, params::AbstractDict{String}; @@ -1337,16 +1312,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys label is to be removed from. If the label is attached and you either do not specify this parameter, or the version ID does not match, then the operation fails. """ -function update_secret_version_stage( +update_secret_version_stage( SecretId, VersionStage; aws_config::AbstractAWSConfig=current_aws_config() +) = secrets_manager( + "UpdateSecretVersionStage", + Dict{String,Any}("SecretId" => SecretId, "VersionStage" => VersionStage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return secrets_manager( - "UpdateSecretVersionStage", - Dict{String,Any}("SecretId" => SecretId, "VersionStage" => VersionStage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_secret_version_stage( SecretId, VersionStage, @@ -1393,16 +1366,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SecretId"`: The ARN or name of the secret with the resource-based policy you want to validate. """ -function validate_resource_policy( +validate_resource_policy( ResourcePolicy; aws_config::AbstractAWSConfig=current_aws_config() +) = secrets_manager( + "ValidateResourcePolicy", + Dict{String,Any}("ResourcePolicy" => ResourcePolicy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return secrets_manager( - "ValidateResourcePolicy", - Dict{String,Any}("ResourcePolicy" => ResourcePolicy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_resource_policy( ResourcePolicy, params::AbstractDict{String}; diff --git a/src/services/securityhub.jl b/src/services/securityhub.jl index b7611eea1..50de86a5f 100644 --- a/src/services/securityhub.jl +++ b/src/services/securityhub.jl @@ -21,19 +21,15 @@ generated in the member account. administrator account. """ -function accept_administrator_invitation( +accept_administrator_invitation( AdministratorId, InvitationId; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/administrator", + Dict{String,Any}("AdministratorId" => AdministratorId, "InvitationId" => InvitationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/administrator", - Dict{String,Any}( - "AdministratorId" => AdministratorId, "InvitationId" => InvitationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_administrator_invitation( AdministratorId, InvitationId, @@ -80,17 +76,15 @@ account. invitation. """ -function accept_invitation( +accept_invitation( InvitationId, MasterId; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/master", + Dict{String,Any}("InvitationId" => InvitationId, "MasterId" => MasterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/master", - Dict{String,Any}("InvitationId" => InvitationId, "MasterId" => MasterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_invitation( InvitationId, MasterId, @@ -123,17 +117,15 @@ end to be deleted. """ -function batch_delete_automation_rules( +batch_delete_automation_rules( AutomationRulesArns; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/automationrules/delete", + Dict{String,Any}("AutomationRulesArns" => AutomationRulesArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/automationrules/delete", - Dict{String,Any}("AutomationRulesArns" => AutomationRulesArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_automation_rules( AutomationRulesArns, params::AbstractDict{String}; @@ -165,17 +157,15 @@ information, see Security Standards section of the Security Hub User Guide. - `standards_subscription_arns`: The ARNs of the standards subscriptions to disable. """ -function batch_disable_standards( +batch_disable_standards( StandardsSubscriptionArns; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/standards/deregister", + Dict{String,Any}("StandardsSubscriptionArns" => StandardsSubscriptionArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/standards/deregister", - Dict{String,Any}("StandardsSubscriptionArns" => StandardsSubscriptionArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disable_standards( StandardsSubscriptionArns, params::AbstractDict{String}; @@ -208,17 +198,15 @@ Standards section of the Security Hub User Guide. - `standards_subscription_requests`: The list of standards checks to enable. """ -function batch_enable_standards( +batch_enable_standards( StandardsSubscriptionRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/standards/register", + Dict{String,Any}("StandardsSubscriptionRequests" => StandardsSubscriptionRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/standards/register", - Dict{String,Any}("StandardsSubscriptionRequests" => StandardsSubscriptionRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_enable_standards( StandardsSubscriptionRequests, params::AbstractDict{String}; @@ -252,17 +240,15 @@ end - `automation_rules_arns`: A list of rule ARNs to get details for. """ -function batch_get_automation_rules( +batch_get_automation_rules( AutomationRulesArns; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/automationrules/get", + Dict{String,Any}("AutomationRulesArns" => AutomationRulesArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/automationrules/get", - Dict{String,Any}("AutomationRulesArns" => AutomationRulesArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_automation_rules( AutomationRulesArns, params::AbstractDict{String}; @@ -297,21 +283,19 @@ to a self-managed configuration. IDs, organizational unit (OU) IDs, or the root ID to retrieve associations for. """ -function batch_get_configuration_policy_associations( +batch_get_configuration_policy_associations( ConfigurationPolicyAssociationIdentifiers; aws_config::AbstractAWSConfig=current_aws_config(), +) = securityhub( + "POST", + "/configurationPolicyAssociation/batchget", + Dict{String,Any}( + "ConfigurationPolicyAssociationIdentifiers" => + ConfigurationPolicyAssociationIdentifiers, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/configurationPolicyAssociation/batchget", - Dict{String,Any}( - "ConfigurationPolicyAssociationIdentifiers" => - ConfigurationPolicyAssociationIdentifiers, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_configuration_policy_associations( ConfigurationPolicyAssociationIdentifiers, params::AbstractDict{String}; @@ -348,17 +332,15 @@ account and Amazon Web Services Region. Resource Name (ARN) is the same across standards. """ -function batch_get_security_controls( +batch_get_security_controls( SecurityControlIds; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/securityControls/batchGet", + Dict{String,Any}("SecurityControlIds" => SecurityControlIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/securityControls/batchGet", - Dict{String,Any}("SecurityControlIds" => SecurityControlIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_security_controls( SecurityControlIds, params::AbstractDict{String}; @@ -392,19 +374,15 @@ currently enabled or disabled in a standard. is the same across standards. """ -function batch_get_standards_control_associations( +batch_get_standards_control_associations( StandardsControlAssociationIds; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/associations/batchGet", + Dict{String,Any}("StandardsControlAssociationIds" => StandardsControlAssociationIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/associations/batchGet", - Dict{String,Any}( - "StandardsControlAssociationIds" => StandardsControlAssociationIds - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_standards_control_associations( StandardsControlAssociationIds, params::AbstractDict{String}; @@ -454,15 +432,14 @@ FindingProviderFields to provide values for these attributes. follow the Amazon Web Services Security Finding Format. Maximum of 100 findings per request. """ -function batch_import_findings(Findings; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +batch_import_findings(Findings; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/findings/import", Dict{String,Any}("Findings" => Findings); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_import_findings( Findings, params::AbstractDict{String}; @@ -491,19 +468,17 @@ parameters. updated. Optionally, you can also include RuleStatus and RuleOrder. """ -function batch_update_automation_rules( +batch_update_automation_rules( UpdateAutomationRulesRequestItems; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "PATCH", + "/automationrules/update", + Dict{String,Any}( + "UpdateAutomationRulesRequestItems" => UpdateAutomationRulesRequestItems + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "PATCH", - "/automationrules/update", - Dict{String,Any}( - "UpdateAutomationRulesRequestItems" => UpdateAutomationRulesRequestItems - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_automation_rules( UpdateAutomationRulesRequestItems, params::AbstractDict{String}; @@ -572,17 +547,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Workflow"`: Used to update the workflow status of a finding. The workflow status indicates the progress of the investigation into the finding. """ -function batch_update_findings( +batch_update_findings( FindingIdentifiers; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "PATCH", + "/findings/batchupdate", + Dict{String,Any}("FindingIdentifiers" => FindingIdentifiers); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "PATCH", - "/findings/batchupdate", - Dict{String,Any}("FindingIdentifiers" => FindingIdentifiers); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_findings( FindingIdentifiers, params::AbstractDict{String}; @@ -613,19 +586,17 @@ status of a control in a standard. control in a specified standard. """ -function batch_update_standards_control_associations( +batch_update_standards_control_associations( StandardsControlAssociationUpdates; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "PATCH", + "/associations", + Dict{String,Any}( + "StandardsControlAssociationUpdates" => StandardsControlAssociationUpdates + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "PATCH", - "/associations", - Dict{String,Any}( - "StandardsControlAssociationUpdates" => StandardsControlAssociationUpdates - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_standards_control_associations( StandardsControlAssociationUpdates, params::AbstractDict{String}; @@ -662,17 +633,15 @@ insights in Security Hub to trigger target actions in Amazon CloudWatch Events. - `name`: The name of the custom action target. Can contain up to 20 characters. """ -function create_action_target( +create_action_target( Description, Id, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/actionTargets", + Dict{String,Any}("Description" => Description, "Id" => Id, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/actionTargets", - Dict{String,Any}("Description" => Description, "Id" => Id, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_action_target( Description, Id, @@ -727,28 +696,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys BatchUpdateAutomationRules . - `"Tags"`: User-defined tags associated with an automation rule. """ -function create_automation_rule( +create_automation_rule( Actions, Criteria, Description, RuleName, RuleOrder; aws_config::AbstractAWSConfig=current_aws_config(), +) = securityhub( + "POST", + "/automationrules/create", + Dict{String,Any}( + "Actions" => Actions, + "Criteria" => Criteria, + "Description" => Description, + "RuleName" => RuleName, + "RuleOrder" => RuleOrder, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/automationrules/create", - Dict{String,Any}( - "Actions" => Actions, - "Criteria" => Criteria, - "Description" => Description, - "RuleName" => RuleName, - "RuleOrder" => RuleOrder, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_automation_rule( Actions, Criteria, @@ -804,17 +771,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: User-defined tags associated with a configuration policy. For more information, see Tagging Security Hub resources in the Security Hub user guide. """ -function create_configuration_policy( +create_configuration_policy( ConfigurationPolicy, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/configurationPolicy/create", + Dict{String,Any}("ConfigurationPolicy" => ConfigurationPolicy, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/configurationPolicy/create", - Dict{String,Any}("ConfigurationPolicy" => ConfigurationPolicy, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_policy( ConfigurationPolicy, Name, @@ -851,34 +816,34 @@ Hub User Guide. Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them. The selected option also determines how to use the Regions provided in the Regions list. The options are - as follows: ALL_REGIONS - Indicates to aggregate findings from all of the Regions where - Security Hub is enabled. When you choose this option, Security Hub also automatically - aggregates findings from new Regions as Security Hub supports them and you opt into them. - ALL_REGIONS_EXCEPT_SPECIFIED - Indicates to aggregate findings from all of the Regions - where Security Hub is enabled, except for the Regions listed in the Regions parameter. When - you choose this option, Security Hub also automatically aggregates findings from new - Regions as Security Hub supports them and you opt into them. SPECIFIED_REGIONS - - Indicates to aggregate findings only from the Regions listed in the Regions parameter. - Security Hub does not automatically aggregate findings from new Regions. + as follows: ALL_REGIONS - Aggregates findings from all of the Regions where Security Hub + is enabled. When you choose this option, Security Hub also automatically aggregates + findings from new Regions as Security Hub supports them and you opt into them. + ALL_REGIONS_EXCEPT_SPECIFIED - Aggregates findings from all of the Regions where Security + Hub is enabled, except for the Regions listed in the Regions parameter. When you choose + this option, Security Hub also automatically aggregates findings from new Regions as + Security Hub supports them and you opt into them. SPECIFIED_REGIONS - Aggregates + findings only from the Regions listed in the Regions parameter. Security Hub does not + automatically aggregate findings from new Regions. NO_REGIONS - Aggregates no data + because no Regions are selected as linked Regions. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Regions"`: If RegionLinkingMode is ALL_REGIONS_EXCEPT_SPECIFIED, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region. If RegionLinkingMode is SPECIFIED_REGIONS, then this is a space-separated list of Regions - that do aggregate findings to the aggregation Region. + that do aggregate findings to the aggregation Region. An InvalidInputException error + results if you populate this field while RegionLinkingMode is NO_REGIONS. """ -function create_finding_aggregator( +create_finding_aggregator( RegionLinkingMode; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/findingAggregator/create", + Dict{String,Any}("RegionLinkingMode" => RegionLinkingMode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/findingAggregator/create", - Dict{String,Any}("RegionLinkingMode" => RegionLinkingMode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_finding_aggregator( RegionLinkingMode, params::AbstractDict{String}; @@ -915,19 +880,17 @@ findings in the insight, use the GroupByAttribute. - `name`: The name of the custom insight to create. """ -function create_insight( +create_insight( Filters, GroupByAttribute, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/insights", + Dict{String,Any}( + "Filters" => Filters, "GroupByAttribute" => GroupByAttribute, "Name" => Name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/insights", - Dict{String,Any}( - "Filters" => Filters, "GroupByAttribute" => GroupByAttribute, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_insight( Filters, GroupByAttribute, @@ -988,15 +951,14 @@ DisassociateFromMasterAccount or DisassociateMembers operation. address. """ -function create_members(AccountDetails; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +create_members(AccountDetails; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/members", Dict{String,Any}("AccountDetails" => AccountDetails); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_members( AccountDetails, params::AbstractDict{String}; @@ -1027,15 +989,14 @@ invitations. invitation. """ -function decline_invitations(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +decline_invitations(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/invitations/decline", Dict{String,Any}("AccountIds" => AccountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function decline_invitations( AccountIds, params::AbstractDict{String}; @@ -1064,16 +1025,13 @@ the custom action. - `action_target_arn`: The Amazon Resource Name (ARN) of the custom action target to delete. """ -function delete_action_target( - ActionTargetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +delete_action_target(ActionTargetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "DELETE", "/actionTargets/$(ActionTargetArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_action_target( ActionTargetArn, params::AbstractDict{String}; @@ -1102,16 +1060,14 @@ by invoking the StartConfigurationPolicyDisassociation operation. the configuration policy. """ -function delete_configuration_policy( +delete_configuration_policy( Identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "DELETE", + "/configurationPolicy/$(Identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "DELETE", - "/configurationPolicy/$(Identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_policy( Identifier, params::AbstractDict{String}; @@ -1140,16 +1096,14 @@ finding updates are not aggregated. use ListFindingAggregators. """ -function delete_finding_aggregator( +delete_finding_aggregator( FindingAggregatorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "DELETE", + "/findingAggregator/delete/$(FindingAggregatorArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "DELETE", - "/findingAggregator/delete/$(FindingAggregatorArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_finding_aggregator( FindingAggregatorArn, params::AbstractDict{String}; @@ -1174,14 +1128,13 @@ Deletes the insight specified by the InsightArn. - `insight_arn`: The ARN of the insight to delete. """ -function delete_insight(InsightArn; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +delete_insight(InsightArn; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "DELETE", "/insights/$(InsightArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_insight( InsightArn, params::AbstractDict{String}; @@ -1211,15 +1164,14 @@ receive invitations. delete. """ -function delete_invitations(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +delete_invitations(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/invitations/delete", Dict{String,Any}("AccountIds" => AccountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_invitations( AccountIds, params::AbstractDict{String}; @@ -1248,15 +1200,14 @@ accounts that belong to an Organizations organization. - `account_ids`: The list of account IDs for the member accounts to delete. """ -function delete_members(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +delete_members(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/members/delete", Dict{String,Any}("AccountIds" => AccountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_members( AccountIds, params::AbstractDict{String}; @@ -1289,11 +1240,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response. """ -function describe_action_targets(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "POST", "/actionTargets/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_action_targets(; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "POST", "/actionTargets/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_action_targets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1317,11 +1266,8 @@ when you enabled Security Hub. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"HubArn"`: The ARN of the Hub resource to retrieve. """ -function describe_hub(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "GET", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_hub(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub("GET", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_hub( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1338,16 +1284,13 @@ Returns information about the way your organization is configured in Security Hu Security Hub administrator account can invoke this operation. """ -function describe_organization_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +describe_organization_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/organization/configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_organization_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1378,11 +1321,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned from the previous response. - `"ProductArn"`: The ARN of the integration to return. """ -function describe_products(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "GET", "/products"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_products(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub("GET", "/products"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_products( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1406,11 +1346,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response. """ -function describe_standards(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "GET", "/standards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_standards(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub("GET", "/standards"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_standards( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1440,16 +1377,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response. """ -function describe_standards_controls( +describe_standards_controls( StandardsSubscriptionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "GET", + "/standards/controls/$(StandardsSubscriptionArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "GET", - "/standards/controls/$(StandardsSubscriptionArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_standards_controls( StandardsSubscriptionArn, params::AbstractDict{String}; @@ -1476,16 +1411,14 @@ is disabled, findings from that product are no longer sent to Security Hub. for. """ -function disable_import_findings_for_product( +disable_import_findings_for_product( ProductSubscriptionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "DELETE", + "/productSubscriptions/$(ProductSubscriptionArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "DELETE", - "/productSubscriptions/$(ProductSubscriptionArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_import_findings_for_product( ProductSubscriptionArn, params::AbstractDict{String}; @@ -1512,17 +1445,15 @@ management account. administrator account. """ -function disable_organization_admin_account( +disable_organization_admin_account( AdminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/organization/admin/disable", + Dict{String,Any}("AdminAccountId" => AdminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/organization/admin/disable", - Dict{String,Any}("AdminAccountId" => AdminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_organization_admin_account( AdminAccountId, params::AbstractDict{String}; @@ -1553,11 +1484,9 @@ member account associations are removed. If you want to save your existing findi must export them before you disable Security Hub. """ -function disable_security_hub(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "DELETE", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +disable_security_hub(; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "DELETE", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function disable_security_hub( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1579,16 +1508,14 @@ account. This operation is only used by accounts that are not part of an organiz organization accounts, only the administrator account can disassociate a member account. """ -function disassociate_from_administrator_account(; +disassociate_from_administrator_account(; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/administrator/disassociate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/administrator/disassociate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_from_administrator_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1617,16 +1544,13 @@ not part of an organization. For organization accounts, only the administrator a disassociate a member account. """ -function disassociate_from_master_account(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +disassociate_from_master_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/master/disassociate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_from_master_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1652,17 +1576,14 @@ that were invited manually. administrator account. """ -function disassociate_members( - AccountIds; aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +disassociate_members(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/members/disassociate", Dict{String,Any}("AccountIds" => AccountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_members( AccountIds, params::AbstractDict{String}; @@ -1691,17 +1612,15 @@ grants permission for the product to send findings to Security Hub is applied. - `product_arn`: The ARN of the product to enable the integration for. """ -function enable_import_findings_for_product( +enable_import_findings_for_product( ProductArn; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/productSubscriptions", + Dict{String,Any}("ProductArn" => ProductArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/productSubscriptions", - Dict{String,Any}("ProductArn" => ProductArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_import_findings_for_product( ProductArn, params::AbstractDict{String}; @@ -1730,17 +1649,15 @@ by the organization management account. designate as the Security Hub administrator account. """ -function enable_organization_admin_account( +enable_organization_admin_account( AdminAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/organization/admin/enable", + Dict{String,Any}("AdminAccountId" => AdminAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/organization/admin/enable", - Dict{String,Any}("AdminAccountId" => AdminAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_organization_admin_account( AdminAccountId, params::AbstractDict{String}; @@ -1790,11 +1707,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys standards, set EnableDefaultStandards to false. - `"Tags"`: The tags to add to the hub resource when you enable Security Hub. """ -function enable_security_hub(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "POST", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +enable_security_hub(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub("POST", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function enable_security_hub( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1812,11 +1726,10 @@ account. Can be used by both member accounts that are managed using Organization accounts that were invited manually. """ -function get_administrator_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +get_administrator_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/administrator"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_administrator_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1841,16 +1754,13 @@ administrator can invoke this operation from the home Region. the configuration policy. """ -function get_configuration_policy( - Identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +get_configuration_policy(Identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/configurationPolicy/get/$(Identifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_configuration_policy( Identifier, params::AbstractDict{String}; @@ -1878,17 +1788,15 @@ the Security Hub delegated administrator can invoke this operation from the home association for. """ -function get_configuration_policy_association( +get_configuration_policy_association( Target; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/configurationPolicyAssociation/get", + Dict{String,Any}("Target" => Target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/configurationPolicyAssociation/get", - Dict{String,Any}("Target" => Target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configuration_policy_association( Target, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1917,11 +1825,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StandardsSubscriptionArns"`: The list of the standards subscription ARNs for the standards to retrieve. """ -function get_enabled_standards(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "POST", "/standards/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_enabled_standards(; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "POST", "/standards/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_enabled_standards( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1945,16 +1851,14 @@ Returns the current finding aggregation configuration. obtain the ARN, use ListFindingAggregators. """ -function get_finding_aggregator( +get_finding_aggregator( FindingAggregatorArn; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "GET", + "/findingAggregator/get/$(FindingAggregatorArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "GET", - "/findingAggregator/get/$(FindingAggregatorArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_finding_aggregator( FindingAggregatorArn, params::AbstractDict{String}; @@ -2023,17 +1927,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) """ -function get_finding_history( - FindingIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +get_finding_history(FindingIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/findingHistory/get", Dict{String,Any}("FindingIdentifier" => FindingIdentifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_finding_history( FindingIdentifier, params::AbstractDict{String}; @@ -2073,11 +1974,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from the previous response. - `"SortCriteria"`: The finding attributes used to sort the list of returned findings. """ -function get_findings(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "POST", "/findings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_findings(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub("POST", "/findings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_findings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2096,14 +1994,13 @@ Lists the results of the Security Hub insight specified by the insight ARN. - `insight_arn`: The ARN of the insight for which to return results. """ -function get_insight_results(InsightArn; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +get_insight_results(InsightArn; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/insights/results/$(InsightArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_insight_results( InsightArn, params::AbstractDict{String}; @@ -2135,11 +2032,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation, to continue listing data, set the value of this parameter to the value returned from the previous response. """ -function get_insights(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "POST", "/insights/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_insights(; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "POST", "/insights/get"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_insights( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2160,11 +2055,9 @@ Returns the count of all Security Hub membership invitations that were sent to t member account, not including the currently accepted invitation. """ -function get_invitations_count(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "GET", "/invitations/count"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_invitations_count(; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "GET", "/invitations/count"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_invitations_count( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2191,11 +2084,8 @@ account for the current member account. Can be used by both member accounts that managed using Organizations and accounts that were invited manually. """ -function get_master_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "GET", "/master"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_master_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub("GET", "/master"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_master_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2219,15 +2109,13 @@ invited manually. details for. """ -function get_members(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "POST", - "/members/get", - Dict{String,Any}("AccountIds" => AccountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_members(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "POST", + "/members/get", + Dict{String,Any}("AccountIds" => AccountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_members( AccountIds, params::AbstractDict{String}; @@ -2256,17 +2144,15 @@ description, Region availability, parameter definitions, and other details. This field doesn’t accept an Amazon Resource Name (ARN). """ -function get_security_control_definition( +get_security_control_definition( SecurityControlId; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "GET", + "/securityControl/definition", + Dict{String,Any}("SecurityControlId" => SecurityControlId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "GET", - "/securityControl/definition", - Dict{String,Any}("SecurityControlId" => SecurityControlId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_security_control_definition( SecurityControlId, params::AbstractDict{String}; @@ -2302,15 +2188,14 @@ administrator account can view the findings generated from the member account. Security Hub as members. """ -function invite_members(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +invite_members(AccountIds; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/members/invite", Dict{String,Any}("AccountIds" => AccountIds); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function invite_members( AccountIds, params::AbstractDict{String}; @@ -2341,14 +2226,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken from a previously truncated response. On your first call to the ListAutomationRules API, set the value of this parameter to NULL. """ -function list_automation_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "GET", - "/automationrules/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_automation_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "GET", + "/automationrules/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_automation_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2384,14 +2267,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response that returned the NextToken value. This value is null when there are no more results to return. """ -function list_configuration_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +list_configuration_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/configurationPolicy/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_configuration_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2429,16 +2311,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response that returned the NextToken value. This value is null when there are no more results to return. """ -function list_configuration_policy_associations(; +list_configuration_policy_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/configurationPolicyAssociation/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/configurationPolicyAssociation/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_configuration_policy_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2466,16 +2346,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response. """ -function list_enabled_products_for_import(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +list_enabled_products_for_import(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/productSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_enabled_products_for_import( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2502,14 +2379,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token returned with the previous set of results. Identifies the next set of results to return. """ -function list_finding_aggregators(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +list_finding_aggregators(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/findingAggregator/list"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_finding_aggregators( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2539,11 +2415,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the operation, to continue listing data, set the value of this parameter to the value returned from the previous response. """ -function list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "GET", "/invitations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "GET", "/invitations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_invitations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2577,11 +2451,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys status with the administrator account is set to ENABLED. If OnlyAssociated is set to FALSE, the response includes all existing member accounts. """ -function list_members(; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "GET", "/members"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_members(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub("GET", "/members"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_members( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2605,13 +2476,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response. """ -function list_organization_admin_accounts(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +list_organization_admin_accounts(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/organization/admin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_organization_admin_accounts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2641,16 +2509,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StandardsArn"`: The Amazon Resource Name (ARN) of the standard that you want to view controls for. """ -function list_security_control_definitions(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +list_security_control_definitions(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/securityControls/definitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_security_control_definitions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2686,17 +2551,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you've enabled in the calling account. - `"NextToken"`: Optional pagination parameter. """ -function list_standards_control_associations( +list_standards_control_associations( SecurityControlId; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "GET", + "/associations", + Dict{String,Any}("SecurityControlId" => SecurityControlId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "GET", - "/associations", - Dict{String,Any}("SecurityControlId" => SecurityControlId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_standards_control_associations( SecurityControlId, params::AbstractDict{String}; @@ -2725,16 +2588,13 @@ Returns a list of tags associated with a resource. - `resource_arn`: The ARN of the resource to retrieve tags for. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2766,22 +2626,20 @@ home Region. associate with the specified configuration. """ -function start_configuration_policy_association( +start_configuration_policy_association( ConfigurationPolicyIdentifier, Target; aws_config::AbstractAWSConfig=current_aws_config(), +) = securityhub( + "POST", + "/configurationPolicyAssociation/associate", + Dict{String,Any}( + "ConfigurationPolicyIdentifier" => ConfigurationPolicyIdentifier, + "Target" => Target, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/configurationPolicyAssociation/associate", - Dict{String,Any}( - "ConfigurationPolicyIdentifier" => ConfigurationPolicyIdentifier, - "Target" => Target, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_configuration_policy_association( ConfigurationPolicyIdentifier, Target, @@ -2827,17 +2685,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Target"`: The identifier of the target account, organizational unit, or the root to disassociate from the specified configuration. """ -function start_configuration_policy_disassociation( +start_configuration_policy_disassociation( ConfigurationPolicyIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/configurationPolicyAssociation/disassociate", + Dict{String,Any}("ConfigurationPolicyIdentifier" => ConfigurationPolicyIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/configurationPolicyAssociation/disassociate", - Dict{String,Any}("ConfigurationPolicyIdentifier" => ConfigurationPolicyIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_configuration_policy_disassociation( ConfigurationPolicyIdentifier, params::AbstractDict{String}; @@ -2873,15 +2729,14 @@ Adds one or more tags to a resource. characters. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2909,17 +2764,14 @@ Removes one or more tags from a resource. remove up to 50 tags at a time. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -2949,16 +2801,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The updated description for the custom action target. - `"Name"`: The updated name of the custom action target. """ -function update_action_target( - ActionTargetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +update_action_target(ActionTargetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "PATCH", "/actionTargets/$(ActionTargetArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_action_target( ActionTargetArn, params::AbstractDict{String}; @@ -3001,16 +2850,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys following ASCII characters are permitted: -, ., !, *, /. - `"UpdatedReason"`: The reason for updating the configuration policy. """ -function update_configuration_policy( +update_configuration_policy( Identifier; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "PATCH", + "/configurationPolicy/$(Identifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "PATCH", - "/configurationPolicy/$(Identifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_policy( Identifier, params::AbstractDict{String}; @@ -3041,39 +2888,39 @@ Region. Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them. The selected option also determines how to use the Regions provided in the Regions list. The options are - as follows: ALL_REGIONS - Indicates to aggregate findings from all of the Regions where - Security Hub is enabled. When you choose this option, Security Hub also automatically - aggregates findings from new Regions as Security Hub supports them and you opt into them. - ALL_REGIONS_EXCEPT_SPECIFIED - Indicates to aggregate findings from all of the Regions - where Security Hub is enabled, except for the Regions listed in the Regions parameter. When - you choose this option, Security Hub also automatically aggregates findings from new - Regions as Security Hub supports them and you opt into them. SPECIFIED_REGIONS - - Indicates to aggregate findings only from the Regions listed in the Regions parameter. - Security Hub does not automatically aggregate findings from new Regions. + as follows: ALL_REGIONS - Aggregates findings from all of the Regions where Security Hub + is enabled. When you choose this option, Security Hub also automatically aggregates + findings from new Regions as Security Hub supports them and you opt into them. + ALL_REGIONS_EXCEPT_SPECIFIED - Aggregates findings from all of the Regions where Security + Hub is enabled, except for the Regions listed in the Regions parameter. When you choose + this option, Security Hub also automatically aggregates findings from new Regions as + Security Hub supports them and you opt into them. SPECIFIED_REGIONS - Aggregates + findings only from the Regions listed in the Regions parameter. Security Hub does not + automatically aggregate findings from new Regions. NO_REGIONS - Aggregates no data + because no Regions are selected as linked Regions. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Regions"`: If RegionLinkingMode is ALL_REGIONS_EXCEPT_SPECIFIED, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region. If RegionLinkingMode is SPECIFIED_REGIONS, then this is a space-separated list of Regions - that do aggregate findings to the aggregation Region. + that do aggregate findings to the aggregation Region. An InvalidInputException error + results if you populate this field while RegionLinkingMode is NO_REGIONS. """ -function update_finding_aggregator( +update_finding_aggregator( FindingAggregatorArn, RegionLinkingMode; aws_config::AbstractAWSConfig=current_aws_config(), +) = securityhub( + "PATCH", + "/findingAggregator/update", + Dict{String,Any}( + "FindingAggregatorArn" => FindingAggregatorArn, + "RegionLinkingMode" => RegionLinkingMode, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "PATCH", - "/findingAggregator/update", - Dict{String,Any}( - "FindingAggregatorArn" => FindingAggregatorArn, - "RegionLinkingMode" => RegionLinkingMode, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_finding_aggregator( FindingAggregatorArn, RegionLinkingMode, @@ -3103,11 +2950,12 @@ end update_findings(filters, params::Dict{String,<:Any}) UpdateFindings is a deprecated operation. Instead of UpdateFindings, use the -BatchUpdateFindings operation. Updates the Note and RecordState of the Security -Hub-aggregated findings that the filter attributes specify. Any member account that can -view the finding also sees the update to the finding. Finding updates made with -UpdateFindings might not be persisted if the same finding is later updated by the finding -provider through the BatchImportFindings operation. +BatchUpdateFindings operation. The UpdateFindings operation updates the Note and +RecordState of the Security Hub aggregated findings that the filter attributes specify. Any +member account that can view the finding can also see the update to the finding. Finding +updates made with UpdateFindings aren't persisted if the same finding is later updated by +the finding provider through the BatchImportFindings operation. In addition, Security Hub +doesn't record updates made with UpdateFindings in the finding history. # Arguments - `filters`: A collection of attributes that specify which findings you want to update. @@ -3117,15 +2965,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Note"`: The updated note for the finding. - `"RecordState"`: The updated record state for the finding. """ -function update_findings(Filters; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( - "PATCH", - "/findings", - Dict{String,Any}("Filters" => Filters); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_findings(Filters; aws_config::AbstractAWSConfig=current_aws_config()) = securityhub( + "PATCH", + "/findings", + Dict{String,Any}("Filters" => Filters); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_findings( Filters, params::AbstractDict{String}; @@ -3155,14 +3001,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GroupByAttribute"`: The updated GroupBy attribute that defines this insight. - `"Name"`: The updated name for the insight. """ -function update_insight(InsightArn; aws_config::AbstractAWSConfig=current_aws_config()) - return securityhub( +update_insight(InsightArn; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "PATCH", "/insights/$(InsightArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_insight( InsightArn, params::AbstractDict{String}; @@ -3207,17 +3052,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys associate the policy with new organization accounts. - `"OrganizationConfiguration"`: """ -function update_organization_configuration( +update_organization_configuration( AutoEnable; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "POST", + "/organization/configuration", + Dict{String,Any}("AutoEnable" => AutoEnable); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "POST", - "/organization/configuration", - Dict{String,Any}("AutoEnable" => AutoEnable); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_organization_configuration( AutoEnable, params::AbstractDict{String}; @@ -3250,19 +3093,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores. """ -function update_security_control( +update_security_control( Parameters, SecurityControlId; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "PATCH", + "/securityControl/update", + Dict{String,Any}("Parameters" => Parameters, "SecurityControlId" => SecurityControlId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "PATCH", - "/securityControl/update", - Dict{String,Any}( - "Parameters" => Parameters, "SecurityControlId" => SecurityControlId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_security_control( Parameters, SecurityControlId, @@ -3305,13 +3144,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys standards. For accounts that are part of an organization, this value can only be updated in the administrator account. """ -function update_security_hub_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return securityhub( +update_security_hub_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + securityhub( "PATCH", "/accounts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_security_hub_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3335,16 +3171,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DisabledReason"`: A description of the reason why you are disabling a security standard control. If you are disabling a control, then this is required. """ -function update_standards_control( +update_standards_control( StandardsControlArn; aws_config::AbstractAWSConfig=current_aws_config() +) = securityhub( + "PATCH", + "/standards/control/$(StandardsControlArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securityhub( - "PATCH", - "/standards/control/$(StandardsControlArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_standards_control( StandardsControlArn, params::AbstractDict{String}; diff --git a/src/services/securitylake.jl b/src/services/securitylake.jl index 245055634..6cb2011c5 100644 --- a/src/services/securitylake.jl +++ b/src/services/securitylake.jl @@ -21,15 +21,14 @@ CreateCustomLogSource to enable data collection from a custom source. in Security Lake. """ -function create_aws_log_source(sources; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( +create_aws_log_source(sources; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "POST", "/v1/datalake/logsources/aws", Dict{String,Any}("sources" => sources); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_aws_log_source( sources, params::AbstractDict{String}; @@ -76,17 +75,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sourceVersion"`: Specify the source version for the third-party custom source, to limit log collection to a specific version of custom data source. """ -function create_custom_log_source( +create_custom_log_source( configuration, sourceName; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "POST", + "/v1/datalake/logsources/custom", + Dict{String,Any}("configuration" => configuration, "sourceName" => sourceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "POST", - "/v1/datalake/logsources/custom", - Dict{String,Any}("configuration" => configuration, "sourceName" => sourceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_log_source( configuration, sourceName, @@ -141,22 +138,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration. For each tag, you must specify both a tag key and a tag value. A tag value cannot be null, but it can be an empty string. """ -function create_data_lake( +create_data_lake( configurations, metaStoreManagerRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = securitylake( + "POST", + "/v1/datalake", + Dict{String,Any}( + "configurations" => configurations, + "metaStoreManagerRoleArn" => metaStoreManagerRoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "POST", - "/v1/datalake", - Dict{String,Any}( - "configurations" => configurations, - "metaStoreManagerRoleArn" => metaStoreManagerRoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_lake( configurations, metaStoreManagerRoleArn, @@ -198,22 +193,20 @@ organization you specify. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"exceptionTimeToLive"`: The expiration period and time-to-live (TTL). """ -function create_data_lake_exception_subscription( +create_data_lake_exception_subscription( notificationEndpoint, subscriptionProtocol; aws_config::AbstractAWSConfig=current_aws_config(), +) = securitylake( + "POST", + "/v1/datalake/exceptions/subscription", + Dict{String,Any}( + "notificationEndpoint" => notificationEndpoint, + "subscriptionProtocol" => subscriptionProtocol, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "POST", - "/v1/datalake/exceptions/subscription", - Dict{String,Any}( - "notificationEndpoint" => notificationEndpoint, - "subscriptionProtocol" => subscriptionProtocol, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_lake_exception_subscription( notificationEndpoint, subscriptionProtocol, @@ -251,16 +244,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"autoEnableNewAccount"`: Enable Security Lake with the specified configuration settings, to begin collecting security data for new accounts in your organization. """ -function create_data_lake_organization_configuration(; +create_data_lake_organization_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "POST", + "/v1/datalake/organization/configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "POST", - "/v1/datalake/organization/configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_data_lake_organization_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -295,24 +286,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys each tag, you must specify both a tag key and a tag value. A tag value cannot be null, but it can be an empty string. """ -function create_subscriber( +create_subscriber( sources, subscriberIdentity, subscriberName; aws_config::AbstractAWSConfig=current_aws_config(), +) = securitylake( + "POST", + "/v1/subscribers", + Dict{String,Any}( + "sources" => sources, + "subscriberIdentity" => subscriberIdentity, + "subscriberName" => subscriberName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "POST", - "/v1/subscribers", - Dict{String,Any}( - "sources" => sources, - "subscriberIdentity" => subscriberIdentity, - "subscriberName" => subscriberName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subscriber( sources, subscriberIdentity, @@ -353,17 +342,15 @@ subscriber. - `subscriber_id`: The subscriber ID for the notification subscription. """ -function create_subscriber_notification( +create_subscriber_notification( configuration, subscriberId; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "POST", + "/v1/subscribers/$(subscriberId)/notification", + Dict{String,Any}("configuration" => configuration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "POST", - "/v1/subscribers/$(subscriberId)/notification", - Dict{String,Any}("configuration" => configuration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_subscriber_notification( configuration, subscriberId, @@ -398,15 +385,14 @@ organization or standalone accounts. source in Security Lake. """ -function delete_aws_log_source(sources; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( +delete_aws_log_source(sources; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "POST", "/v1/datalake/logsources/aws/delete", Dict{String,Any}("sources" => sources); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_aws_log_source( sources, params::AbstractDict{String}; @@ -436,16 +422,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sourceVersion"`: The source version for the third-party custom source. You can limit the custom source removal to the specified source version. """ -function delete_custom_log_source( - sourceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return securitylake( +delete_custom_log_source(sourceName; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "DELETE", "/v1/datalake/logsources/custom/$(sourceName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_custom_log_source( sourceName, params::AbstractDict{String}; @@ -476,15 +459,14 @@ Amazon Web Services account. For more information, see the Amazon Security Lake - `regions`: The list of Regions where Security Lake is enabled. """ -function delete_data_lake(regions; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( +delete_data_lake(regions; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "POST", "/v1/datalake/delete", Dict{String,Any}("regions" => regions); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_data_lake( regions, params::AbstractDict{String}; @@ -507,16 +489,14 @@ Deletes the specified notification subscription in Amazon Security Lake for the organization you specify. """ -function delete_data_lake_exception_subscription(; +delete_data_lake_exception_subscription(; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "DELETE", + "/v1/datalake/exceptions/subscription"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "DELETE", - "/v1/datalake/exceptions/subscription"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_lake_exception_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -544,16 +524,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"autoEnableNewAccount"`: Turns off automatic enablement of Security Lake for member accounts that are added to an organization. """ -function delete_data_lake_organization_configuration(; +delete_data_lake_organization_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "POST", + "/v1/datalake/organization/configuration/delete"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "POST", - "/v1/datalake/organization/configuration/delete"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_data_lake_organization_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -580,14 +558,13 @@ deletes the subscriber and removes access to data in the current Amazon Web Serv DeleteSubscriber API request. """ -function delete_subscriber(subscriberId; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( +delete_subscriber(subscriberId; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "DELETE", "/v1/subscribers/$(subscriberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_subscriber( subscriberId, params::AbstractDict{String}; @@ -613,16 +590,14 @@ organization you specify. - `subscriber_id`: The ID of the Security Lake subscriber account. """ -function delete_subscriber_notification( +delete_subscriber_notification( subscriberId; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "DELETE", + "/v1/subscribers/$(subscriberId)/notification"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "DELETE", - "/v1/subscribers/$(subscriberId)/notification"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_subscriber_notification( subscriberId, params::AbstractDict{String}; @@ -646,16 +621,14 @@ API can only be called by the organization management account. The organization account cannot be the delegated administrator account. """ -function deregister_data_lake_delegated_administrator(; +deregister_data_lake_delegated_administrator(; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "DELETE", + "/v1/datalake/delegate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "DELETE", - "/v1/datalake/delegate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_data_lake_delegated_administrator( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -675,16 +648,13 @@ end Retrieves the details of exception notifications for the account in Amazon Security Lake. """ -function get_data_lake_exception_subscription(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return securitylake( +get_data_lake_exception_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "GET", "/v1/datalake/exceptions/subscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_data_lake_exception_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -706,16 +676,14 @@ organization after the organization has onboarded to Amazon Security Lake. This not take input parameters. """ -function get_data_lake_organization_configuration(; +get_data_lake_organization_configuration(; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "GET", + "/v1/datalake/organization/configuration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "GET", - "/v1/datalake/organization/configuration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_lake_organization_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -747,14 +715,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function get_data_lake_sources(; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( - "POST", - "/v1/datalake/sources"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_data_lake_sources(; aws_config::AbstractAWSConfig=current_aws_config()) = securitylake( + "POST", + "/v1/datalake/sources"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_data_lake_sources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -779,14 +745,13 @@ information about a specific subscriber. GetSubscriber API request. """ -function get_subscriber(subscriberId; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( +get_subscriber(subscriberId; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "GET", "/v1/subscribers/$(subscriberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_subscriber( subscriberId, params::AbstractDict{String}; @@ -817,14 +782,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. - `"regions"`: The Amazon Web Services Regions from which exceptions are retrieved. """ -function list_data_lake_exceptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( +list_data_lake_exceptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "POST", "/v1/datalake/exceptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_data_lake_exceptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -849,11 +813,9 @@ for a Region. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"regions"`: The list of Regions where Security Lake is enabled. """ -function list_data_lakes(; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( - "GET", "/v1/datalakes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_data_lakes(; aws_config::AbstractAWSConfig=current_aws_config()) = securitylake( + "GET", "/v1/datalakes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_data_lakes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -882,14 +844,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"regions"`: The list of Regions for which log sources are displayed. - `"sources"`: The list of sources for which log sources are displayed. """ -function list_log_sources(; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( - "POST", - "/v1/datalake/logsources/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_log_sources(; aws_config::AbstractAWSConfig=current_aws_config()) = securitylake( + "POST", + "/v1/datalake/logsources/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_log_sources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -916,11 +876,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: If nextToken is returned, there are more results available. You can repeat the call using the returned token to retrieve the next page. """ -function list_subscribers(; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( - "GET", "/v1/subscribers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_subscribers(; aws_config::AbstractAWSConfig=current_aws_config()) = securitylake( + "GET", "/v1/subscribers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_subscribers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -946,16 +904,13 @@ in a particular Amazon Web Services Region. which you want to retrieve the tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return securitylake( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "GET", "/v1/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -983,17 +938,15 @@ management account cannot be the delegated administrator account. administrator. """ -function register_data_lake_delegated_administrator( +register_data_lake_delegated_administrator( accountId; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "POST", + "/v1/datalake/delegate", + Dict{String,Any}("accountId" => accountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "POST", - "/v1/datalake/delegate", - Dict{String,Any}("accountId" => accountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_data_lake_delegated_administrator( accountId, params::AbstractDict{String}; @@ -1032,15 +985,14 @@ resources in the Amazon Security Lake User Guide. value. A tag value cannot be null, but it can be an empty string. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "POST", "/v1/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1071,17 +1023,14 @@ particular Amazon Web Services Region. key for a tag to remove from the Amazon Security Lake resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return securitylake( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "DELETE", "/v1/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1114,17 +1063,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Glue table. This table contains partitions generated by the ingestion and normalization of Amazon Web Services log sources and custom sources. """ -function update_data_lake( - configurations; aws_config::AbstractAWSConfig=current_aws_config() -) - return securitylake( +update_data_lake(configurations; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "PUT", "/v1/datalake", Dict{String,Any}("configurations" => configurations); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_data_lake( configurations, params::AbstractDict{String}; @@ -1157,22 +1103,20 @@ organization you specify. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"exceptionTimeToLive"`: The time-to-live (TTL) for the exception message to remain. """ -function update_data_lake_exception_subscription( +update_data_lake_exception_subscription( notificationEndpoint, subscriptionProtocol; aws_config::AbstractAWSConfig=current_aws_config(), +) = securitylake( + "PUT", + "/v1/datalake/exceptions/subscription", + Dict{String,Any}( + "notificationEndpoint" => notificationEndpoint, + "subscriptionProtocol" => subscriptionProtocol, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "PUT", - "/v1/datalake/exceptions/subscription", - Dict{String,Any}( - "notificationEndpoint" => notificationEndpoint, - "subscriptionProtocol" => subscriptionProtocol, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_data_lake_exception_subscription( notificationEndpoint, subscriptionProtocol, @@ -1216,14 +1160,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"subscriberIdentity"`: The AWS identity used to access your data. - `"subscriberName"`: The name of the Security Lake account subscriber. """ -function update_subscriber(subscriberId; aws_config::AbstractAWSConfig=current_aws_config()) - return securitylake( +update_subscriber(subscriberId; aws_config::AbstractAWSConfig=current_aws_config()) = + securitylake( "PUT", "/v1/subscribers/$(subscriberId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_subscriber( subscriberId, params::AbstractDict{String}; @@ -1250,17 +1193,15 @@ switches the notification subscription endpoint for a subscriber. - `subscriber_id`: The subscription ID for which the subscription notification is specified. """ -function update_subscriber_notification( +update_subscriber_notification( configuration, subscriberId; aws_config::AbstractAWSConfig=current_aws_config() +) = securitylake( + "PUT", + "/v1/subscribers/$(subscriberId)/notification", + Dict{String,Any}("configuration" => configuration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return securitylake( - "PUT", - "/v1/subscribers/$(subscriberId)/notification", - Dict{String,Any}("configuration" => configuration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_subscriber_notification( configuration, subscriberId, diff --git a/src/services/serverlessapplicationrepository.jl b/src/services/serverlessapplicationrepository.jl index 6672812ca..94267925a 100644 --- a/src/services/serverlessapplicationrepository.jl +++ b/src/services/serverlessapplicationrepository.jl @@ -55,17 +55,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys application.You can specify only one of templateBody and templateUrl; otherwise an error results. """ -function create_application( +create_application( author, description, name; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "POST", + "/applications", + Dict{String,Any}("author" => author, "description" => description, "name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "POST", - "/applications", - Dict{String,Any}("author" => author, "description" => description, "name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( author, description, @@ -109,16 +107,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateBody"`: The raw packaged AWS SAM template of your application. - `"templateUrl"`: A link to the packaged AWS SAM template of your application. """ -function create_application_version( +create_application_version( applicationId, semanticVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "PUT", + "/applications/$(applicationId)/versions/$(semanticVersion)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "PUT", - "/applications/$(applicationId)/versions/$(semanticVersion)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application_version( applicationId, semanticVersion, @@ -211,17 +207,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"templateId"`: The UUID returned by CreateCloudFormationTemplate.Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12} """ -function create_cloud_formation_change_set( +create_cloud_formation_change_set( applicationId, stackName; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "POST", + "/applications/$(applicationId)/changesets", + Dict{String,Any}("stackName" => stackName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "POST", - "/applications/$(applicationId)/changesets", - Dict{String,Any}("stackName" => stackName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cloud_formation_change_set( applicationId, stackName, @@ -253,16 +247,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"semanticVersion"`: The semantic version of the application: https://semver.org/ """ -function create_cloud_formation_template( +create_cloud_formation_template( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "POST", + "/applications/$(applicationId)/templates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "POST", - "/applications/$(applicationId)/templates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cloud_formation_template( applicationId, params::AbstractDict{String}; @@ -287,16 +279,13 @@ Deletes the specified application. - `application_id`: The Amazon Resource Name (ARN) of the application. """ -function delete_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return serverlessapplicationrepository( +delete_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + serverlessapplicationrepository( "DELETE", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( applicationId, params::AbstractDict{String}; @@ -324,14 +313,13 @@ Gets the specified application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"semanticVersion"`: The semantic version of the application to get. """ -function get_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return serverlessapplicationrepository( +get_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + serverlessapplicationrepository( "GET", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_application( applicationId, params::AbstractDict{String}; @@ -356,16 +344,13 @@ Retrieves the policy for the application. - `application_id`: The Amazon Resource Name (ARN) of the application. """ -function get_application_policy( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return serverlessapplicationrepository( +get_application_policy(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + serverlessapplicationrepository( "GET", "/applications/$(applicationId)/policy"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_application_policy( applicationId, params::AbstractDict{String}; @@ -392,16 +377,14 @@ Gets the specified AWS CloudFormation template. [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12} """ -function get_cloud_formation_template( +get_cloud_formation_template( applicationId, templateId; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "GET", + "/applications/$(applicationId)/templates/$(templateId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "GET", - "/applications/$(applicationId)/templates/$(templateId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_cloud_formation_template( applicationId, templateId, @@ -432,16 +415,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A token to specify where to start paginating. - `"semanticVersion"`: The semantic version of the application to get. """ -function list_application_dependencies( +list_application_dependencies( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "GET", + "/applications/$(applicationId)/dependencies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "GET", - "/applications/$(applicationId)/dependencies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_dependencies( applicationId, params::AbstractDict{String}; @@ -470,16 +451,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxItems"`: The total number of items to return. - `"nextToken"`: A token to specify where to start paginating. """ -function list_application_versions( +list_application_versions( applicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "GET", + "/applications/$(applicationId)/versions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "GET", - "/applications/$(applicationId)/versions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_versions( applicationId, params::AbstractDict{String}; @@ -505,11 +484,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxItems"`: The total number of items to return. - `"nextToken"`: A token to specify where to start paginating. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return serverlessapplicationrepository( +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + serverlessapplicationrepository( "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -537,17 +515,15 @@ operation, see - `statements`: An array of policy statements applied to the application. """ -function put_application_policy( +put_application_policy( applicationId, statements; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "PUT", + "/applications/$(applicationId)/policy", + Dict{String,Any}("statements" => statements); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "PUT", - "/applications/$(applicationId)/policy", - Dict{String,Any}("statements" => statements); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_application_policy( applicationId, statements, @@ -577,17 +553,15 @@ organization's master account. - `organization_id`: The AWS Organization ID to unshare the application from. """ -function unshare_application( +unshare_application( applicationId, organizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = serverlessapplicationrepository( + "POST", + "/applications/$(applicationId)/unshare", + Dict{String,Any}("organizationId" => organizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return serverlessapplicationrepository( - "POST", - "/applications/$(applicationId)/unshare", - Dict{String,Any}("organizationId" => organizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unshare_application( applicationId, organizationId, @@ -628,16 +602,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"readmeUrl"`: A link to the readme file in Markdown language that contains a more detailed description of the application and how it works.Maximum size 5 MB """ -function update_application( - applicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return serverlessapplicationrepository( +update_application(applicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + serverlessapplicationrepository( "PATCH", "/applications/$(applicationId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( applicationId, params::AbstractDict{String}; diff --git a/src/services/service_catalog.jl b/src/services/service_catalog.jl index 6e8e8dacc..fe5980628 100644 --- a/src/services/service_catalog.jl +++ b/src/services/service_catalog.jl @@ -23,16 +23,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys servicecatalog accept-portfolio-share --portfolio-id \"port-2qwzkwxt3y5fk\" --portfolio-share-type AWS_ORGANIZATIONS """ -function accept_portfolio_share( - PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +accept_portfolio_share(PortfolioId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "AcceptPortfolioShare", Dict{String,Any}("PortfolioId" => PortfolioId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function accept_portfolio_share( PortfolioId, params::AbstractDict{String}; @@ -59,16 +56,14 @@ Associates the specified budget with the specified resource. - `resource_id`: The resource identifier. Either a portfolio-id or a product-id. """ -function associate_budget_with_resource( +associate_budget_with_resource( BudgetName, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "AssociateBudgetWithResource", + Dict{String,Any}("BudgetName" => BudgetName, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "AssociateBudgetWithResource", - Dict{String,Any}("BudgetName" => BudgetName, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_budget_with_resource( BudgetName, ResourceId, @@ -141,23 +136,21 @@ recipient account before it can be associated. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function associate_principal_with_portfolio( +associate_principal_with_portfolio( PortfolioId, PrincipalARN, PrincipalType; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "AssociatePrincipalWithPortfolio", + Dict{String,Any}( + "PortfolioId" => PortfolioId, + "PrincipalARN" => PrincipalARN, + "PrincipalType" => PrincipalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "AssociatePrincipalWithPortfolio", - Dict{String,Any}( - "PortfolioId" => PortfolioId, - "PrincipalARN" => PrincipalARN, - "PrincipalType" => PrincipalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_principal_with_portfolio( PortfolioId, PrincipalARN, @@ -199,16 +192,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese - `"SourcePortfolioId"`: The identifier of the source portfolio. """ -function associate_product_with_portfolio( +associate_product_with_portfolio( PortfolioId, ProductId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "AssociateProductWithPortfolio", + Dict{String,Any}("PortfolioId" => PortfolioId, "ProductId" => ProductId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "AssociateProductWithPortfolio", - Dict{String,Any}("PortfolioId" => PortfolioId, "ProductId" => ProductId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_product_with_portfolio( PortfolioId, ProductId, @@ -248,24 +239,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys multiple requests from the same Amazon Web Services account use the same idempotency token, the same response is returned for each repeated request. """ -function associate_service_action_with_provisioning_artifact( +associate_service_action_with_provisioning_artifact( ProductId, ProvisioningArtifactId, ServiceActionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "AssociateServiceActionWithProvisioningArtifact", + Dict{String,Any}( + "ProductId" => ProductId, + "ProvisioningArtifactId" => ProvisioningArtifactId, + "ServiceActionId" => ServiceActionId, + "IdempotencyToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "AssociateServiceActionWithProvisioningArtifact", - Dict{String,Any}( - "ProductId" => ProductId, - "ProvisioningArtifactId" => ProvisioningArtifactId, - "ServiceActionId" => ServiceActionId, - "IdempotencyToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_service_action_with_provisioning_artifact( ProductId, ProvisioningArtifactId, @@ -303,16 +292,14 @@ Associate the specified TagOption with the specified portfolio or product. - `tag_option_id`: The TagOption identifier. """ -function associate_tag_option_with_resource( +associate_tag_option_with_resource( ResourceId, TagOptionId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "AssociateTagOptionWithResource", + Dict{String,Any}("ResourceId" => ResourceId, "TagOptionId" => TagOptionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "AssociateTagOptionWithResource", - Dict{String,Any}("ResourceId" => ResourceId, "TagOptionId" => TagOptionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_tag_option_with_resource( ResourceId, TagOptionId, @@ -347,16 +334,14 @@ Associates multiple self-service actions with provisioning artifacts. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function batch_associate_service_action_with_provisioning_artifact( +batch_associate_service_action_with_provisioning_artifact( ServiceActionAssociations; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "BatchAssociateServiceActionWithProvisioningArtifact", + Dict{String,Any}("ServiceActionAssociations" => ServiceActionAssociations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "BatchAssociateServiceActionWithProvisioningArtifact", - Dict{String,Any}("ServiceActionAssociations" => ServiceActionAssociations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_associate_service_action_with_provisioning_artifact( ServiceActionAssociations, params::AbstractDict{String}; @@ -390,16 +375,14 @@ Disassociates a batch of self-service actions from the specified provisioning ar Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function batch_disassociate_service_action_from_provisioning_artifact( +batch_disassociate_service_action_from_provisioning_artifact( ServiceActionAssociations; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "BatchDisassociateServiceActionFromProvisioningArtifact", + Dict{String,Any}("ServiceActionAssociations" => ServiceActionAssociations); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "BatchDisassociateServiceActionFromProvisioningArtifact", - Dict{String,Any}("ServiceActionAssociations" => ServiceActionAssociations); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_disassociate_service_action_from_provisioning_artifact( ServiceActionAssociations, params::AbstractDict{String}; @@ -448,18 +431,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetProductName"`: A name for the target product. The default is the name of the source product. """ -function copy_product( +copy_product( IdempotencyToken, SourceProductArn; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "CopyProduct", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, "SourceProductArn" => SourceProductArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "CopyProduct", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, "SourceProductArn" => SourceProductArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_product( IdempotencyToken, SourceProductArn, @@ -526,27 +507,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese - `"Description"`: The description of the constraint. """ -function create_constraint( +create_constraint( IdempotencyToken, Parameters, PortfolioId, ProductId, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "CreateConstraint", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "Parameters" => Parameters, + "PortfolioId" => PortfolioId, + "ProductId" => ProductId, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "CreateConstraint", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "Parameters" => Parameters, - "PortfolioId" => PortfolioId, - "ProductId" => ProductId, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_constraint( IdempotencyToken, Parameters, @@ -595,23 +574,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the portfolio. - `"Tags"`: One or more tags. """ -function create_portfolio( +create_portfolio( DisplayName, IdempotencyToken, ProviderName; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "CreatePortfolio", + Dict{String,Any}( + "DisplayName" => DisplayName, + "IdempotencyToken" => IdempotencyToken, + "ProviderName" => ProviderName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "CreatePortfolio", - Dict{String,Any}( - "DisplayName" => DisplayName, - "IdempotencyToken" => IdempotencyToken, - "ProviderName" => ProviderName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_portfolio( DisplayName, IdempotencyToken, @@ -683,16 +660,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ShareTagOptions"`: Enables or disables TagOptions sharing when creating the portfolio share. If this flag is not provided, TagOptions sharing is disabled. """ -function create_portfolio_share( - PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +create_portfolio_share(PortfolioId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "CreatePortfolioShare", Dict{String,Any}("PortfolioId" => PortfolioId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_portfolio_share( PortfolioId, params::AbstractDict{String}; @@ -741,25 +715,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to validate SupportUrl. - `"Tags"`: One or more tags. """ -function create_product( +create_product( IdempotencyToken, Name, Owner, ProductType; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "CreateProduct", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "Name" => Name, + "Owner" => Owner, + "ProductType" => ProductType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "CreateProduct", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "Name" => Name, - "Owner" => Owner, - "ProductType" => ProductType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_product( IdempotencyToken, Name, @@ -824,7 +796,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys product must have a RESOURCE_UPDATE constraint with TagUpdatesOnProvisionedProduct set to ALLOWED to allow tag updates. """ -function create_provisioned_product_plan( +create_provisioned_product_plan( IdempotencyToken, PlanName, PlanType, @@ -832,21 +804,19 @@ function create_provisioned_product_plan( ProvisionedProductName, ProvisioningArtifactId; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "CreateProvisionedProductPlan", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "PlanName" => PlanName, + "PlanType" => PlanType, + "ProductId" => ProductId, + "ProvisionedProductName" => ProvisionedProductName, + "ProvisioningArtifactId" => ProvisioningArtifactId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "CreateProvisionedProductPlan", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "PlanName" => PlanName, - "PlanType" => PlanType, - "ProductId" => ProductId, - "ProvisionedProductName" => ProvisionedProductName, - "ProvisioningArtifactId" => ProvisioningArtifactId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_provisioned_product_plan( IdempotencyToken, PlanName, @@ -899,23 +869,21 @@ source in the information data section. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function create_provisioning_artifact( +create_provisioning_artifact( IdempotencyToken, Parameters, ProductId; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "CreateProvisioningArtifact", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "Parameters" => Parameters, + "ProductId" => ProductId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "CreateProvisioningArtifact", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "Parameters" => Parameters, - "ProductId" => ProductId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_provisioning_artifact( IdempotencyToken, Parameters, @@ -969,25 +937,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese - `"Description"`: The self-service action description. """ -function create_service_action( +create_service_action( Definition, DefinitionType, IdempotencyToken, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "CreateServiceAction", + Dict{String,Any}( + "Definition" => Definition, + "DefinitionType" => DefinitionType, + "IdempotencyToken" => IdempotencyToken, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "CreateServiceAction", - Dict{String,Any}( - "Definition" => Definition, - "DefinitionType" => DefinitionType, - "IdempotencyToken" => IdempotencyToken, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_action( Definition, DefinitionType, @@ -1026,14 +992,13 @@ Creates a TagOption. - `value`: The TagOption value. """ -function create_tag_option(Key, Value; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +create_tag_option(Key, Value; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "CreateTagOption", Dict{String,Any}("Key" => Key, "Value" => Value); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_tag_option( Key, Value, @@ -1063,14 +1028,12 @@ Deletes the specified constraint. A delegated admin is authorized to invoke this Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function delete_constraint(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "DeleteConstraint", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_constraint(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "DeleteConstraint", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_constraint( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1097,14 +1060,12 @@ authorized to invoke this command. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function delete_portfolio(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "DeletePortfolio", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_portfolio(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "DeletePortfolio", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_portfolio( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1134,16 +1095,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AccountId"`: The Amazon Web Services account ID. - `"OrganizationNode"`: The organization node to whom you are going to stop sharing. """ -function delete_portfolio_share( - PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +delete_portfolio_share(PortfolioId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DeletePortfolioShare", Dict{String,Any}("PortfolioId" => PortfolioId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_portfolio_share( PortfolioId, params::AbstractDict{String}; @@ -1173,14 +1131,12 @@ associated with a portfolio. A delegated admin is authorized to invoke this comm Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function delete_product(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "DeleteProduct", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_product(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "DeleteProduct", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_product( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1207,16 +1163,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IgnoreErrors"`: If set to true, Service Catalog stops managing the specified provisioned product even if it cannot delete the underlying resources. """ -function delete_provisioned_product_plan( +delete_provisioned_product_plan( PlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DeleteProvisionedProductPlan", + Dict{String,Any}("PlanId" => PlanId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DeleteProvisionedProductPlan", - Dict{String,Any}("PlanId" => PlanId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_provisioned_product_plan( PlanId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1245,18 +1199,16 @@ product must have at least one provisioning artifact. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function delete_provisioning_artifact( +delete_provisioning_artifact( ProductId, ProvisioningArtifactId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DeleteProvisioningArtifact", + Dict{String,Any}( + "ProductId" => ProductId, "ProvisioningArtifactId" => ProvisioningArtifactId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DeleteProvisioningArtifact", - Dict{String,Any}( - "ProductId" => ProductId, "ProvisioningArtifactId" => ProvisioningArtifactId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_provisioning_artifact( ProductId, ProvisioningArtifactId, @@ -1296,14 +1248,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys multiple requests from the same Amazon Web Services account use the same idempotency token, the same response is returned for each repeated request. """ -function delete_service_action(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +delete_service_action(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DeleteServiceAction", Dict{String,Any}("Id" => Id, "IdempotencyToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_service_action( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1332,14 +1283,12 @@ product or portfolio. - `id`: The TagOption identifier. """ -function delete_tag_option(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "DeleteTagOption", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_tag_option(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "DeleteTagOption", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_tag_option( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1364,14 +1313,13 @@ Gets information about the specified constraint. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function describe_constraint(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +describe_constraint(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribeConstraint", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_constraint( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1397,16 +1345,14 @@ Gets the status of the specified copy product operation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function describe_copy_product_status( +describe_copy_product_status( CopyProductToken; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DescribeCopyProductStatus", + Dict{String,Any}("CopyProductToken" => CopyProductToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DescribeCopyProductStatus", - Dict{String,Any}("CopyProductToken" => CopyProductToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_copy_product_status( CopyProductToken, params::AbstractDict{String}; @@ -1438,14 +1384,13 @@ this command. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function describe_portfolio(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +describe_portfolio(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribePortfolio", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_portfolio( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1469,16 +1414,14 @@ the management account in the organization or by a delegated admin. returned either by CreatePortfolioShare or by DeletePortfolioShare. """ -function describe_portfolio_share_status( +describe_portfolio_share_status( PortfolioShareToken; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DescribePortfolioShareStatus", + Dict{String,Any}("PortfolioShareToken" => PortfolioShareToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DescribePortfolioShareStatus", - Dict{String,Any}("PortfolioShareToken" => PortfolioShareToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_portfolio_share_status( PortfolioShareToken, params::AbstractDict{String}; @@ -1523,16 +1466,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function describe_portfolio_shares( +describe_portfolio_shares( PortfolioId, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DescribePortfolioShares", + Dict{String,Any}("PortfolioId" => PortfolioId, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DescribePortfolioShares", - Dict{String,Any}("PortfolioId" => PortfolioId, "Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_portfolio_shares( PortfolioId, Type, @@ -1566,11 +1507,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Id"`: The product identifier. - `"Name"`: The product name. """ -function describe_product(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "DescribeProduct"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_product(; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "DescribeProduct"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_product( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1597,11 +1536,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys sharing is enabled in the portfolio share, the API returns both local and shared TagOptions associated with the product. Otherwise only local TagOptions will be returned. """ -function describe_product_as_admin(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +describe_product_as_admin(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribeProductAsAdmin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_product_as_admin( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1626,14 +1564,13 @@ Gets information about the specified product. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function describe_product_view(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +describe_product_view(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribeProductView", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_product_view( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1661,11 +1598,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys both. If you do not provide a name or ID, or you provide both name and ID, an InvalidParametersException will occur. """ -function describe_provisioned_product(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +describe_provisioned_product(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribeProvisionedProduct"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_provisioned_product( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1693,16 +1629,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function describe_provisioned_product_plan( +describe_provisioned_product_plan( PlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DescribeProvisionedProductPlan", + Dict{String,Any}("PlanId" => PlanId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DescribeProvisionedProductPlan", - Dict{String,Any}("PlanId" => PlanId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_provisioned_product_plan( PlanId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1732,15 +1666,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProvisioningArtifactName"`: The provisioning artifact name. - `"Verbose"`: Indicates whether a verbose level of detail is enabled. """ -function describe_provisioning_artifact(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +describe_provisioning_artifact(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribeProvisioningArtifact"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_provisioning_artifact( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1779,15 +1710,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProvisioningArtifactName"`: The name of the provisioning artifact. You must provide the name or ID, but not both. """ -function describe_provisioning_parameters(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +describe_provisioning_parameters(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribeProvisioningParameters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_provisioning_parameters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1822,14 +1750,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function describe_record(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "DescribeRecord", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_record(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "DescribeRecord", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_record( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1854,14 +1780,13 @@ Describes a self-service action. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function describe_service_action(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +describe_service_action(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribeServiceAction", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_service_action( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1888,21 +1813,19 @@ product and returns a map of the results to the user. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function describe_service_action_execution_parameters( +describe_service_action_execution_parameters( ProvisionedProductId, ServiceActionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "DescribeServiceActionExecutionParameters", + Dict{String,Any}( + "ProvisionedProductId" => ProvisionedProductId, + "ServiceActionId" => ServiceActionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DescribeServiceActionExecutionParameters", - Dict{String,Any}( - "ProvisionedProductId" => ProvisionedProductId, - "ServiceActionId" => ServiceActionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_service_action_execution_parameters( ProvisionedProductId, ServiceActionId, @@ -1936,14 +1859,13 @@ Gets information about the specified TagOption. - `id`: The TagOption identifier. """ -function describe_tag_option(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +describe_tag_option(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DescribeTagOption", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_tag_option( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1972,15 +1894,12 @@ organization structure. Specifically, accounts that you removed from the organiz disabling Service Catalog access will retain access to the previously shared portfolio. """ -function disable_awsorganizations_access(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +disable_awsorganizations_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "DisableAWSOrganizationsAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_awsorganizations_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2004,16 +1923,14 @@ Disassociates the specified budget from the specified resource. portfolio-id or a product-id. """ -function disassociate_budget_from_resource( +disassociate_budget_from_resource( BudgetName, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DisassociateBudgetFromResource", + Dict{String,Any}("BudgetName" => BudgetName, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DisassociateBudgetFromResource", - Dict{String,Any}("BudgetName" => BudgetName, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_budget_from_resource( BudgetName, ResourceId, @@ -2065,16 +1982,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IAM_PATTERN if you specify an IAM ARN with no AccountId, with or without wildcard characters. """ -function disassociate_principal_from_portfolio( +disassociate_principal_from_portfolio( PortfolioId, PrincipalARN; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DisassociatePrincipalFromPortfolio", + Dict{String,Any}("PortfolioId" => PortfolioId, "PrincipalARN" => PrincipalARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DisassociatePrincipalFromPortfolio", - Dict{String,Any}("PortfolioId" => PortfolioId, "PrincipalARN" => PrincipalARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_principal_from_portfolio( PortfolioId, PrincipalARN, @@ -2112,16 +2027,14 @@ authorized to invoke this command. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function disassociate_product_from_portfolio( +disassociate_product_from_portfolio( PortfolioId, ProductId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DisassociateProductFromPortfolio", + Dict{String,Any}("PortfolioId" => PortfolioId, "ProductId" => ProductId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DisassociateProductFromPortfolio", - Dict{String,Any}("PortfolioId" => PortfolioId, "ProductId" => ProductId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_product_from_portfolio( PortfolioId, ProductId, @@ -2162,24 +2075,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys multiple requests from the same Amazon Web Services account use the same idempotency token, the same response is returned for each repeated request. """ -function disassociate_service_action_from_provisioning_artifact( +disassociate_service_action_from_provisioning_artifact( ProductId, ProvisioningArtifactId, ServiceActionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "DisassociateServiceActionFromProvisioningArtifact", + Dict{String,Any}( + "ProductId" => ProductId, + "ProvisioningArtifactId" => ProvisioningArtifactId, + "ServiceActionId" => ServiceActionId, + "IdempotencyToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DisassociateServiceActionFromProvisioningArtifact", - Dict{String,Any}( - "ProductId" => ProductId, - "ProvisioningArtifactId" => ProvisioningArtifactId, - "ServiceActionId" => ServiceActionId, - "IdempotencyToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_service_action_from_provisioning_artifact( ProductId, ProvisioningArtifactId, @@ -2217,16 +2128,14 @@ Disassociates the specified TagOption from the specified resource. - `tag_option_id`: The TagOption identifier. """ -function disassociate_tag_option_from_resource( +disassociate_tag_option_from_resource( ResourceId, TagOptionId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "DisassociateTagOptionFromResource", + Dict{String,Any}("ResourceId" => ResourceId, "TagOptionId" => TagOptionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "DisassociateTagOptionFromResource", - Dict{String,Any}("ResourceId" => ResourceId, "TagOptionId" => TagOptionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_tag_option_from_resource( ResourceId, TagOptionId, @@ -2267,15 +2176,12 @@ Amazon Web Services resources when it is no longer authorized to do so. Amazon W is working to resolve this issue. """ -function enable_awsorganizations_access(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +enable_awsorganizations_access(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "EnableAWSOrganizationsAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function enable_awsorganizations_access( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2303,16 +2209,14 @@ Provisions or modifies a product based on the resource changes for the specified Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function execute_provisioned_product_plan( +execute_provisioned_product_plan( IdempotencyToken, PlanId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "ExecuteProvisionedProductPlan", + Dict{String,Any}("IdempotencyToken" => IdempotencyToken, "PlanId" => PlanId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ExecuteProvisionedProductPlan", - Dict{String,Any}("IdempotencyToken" => IdempotencyToken, "PlanId" => PlanId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_provisioned_product_plan( IdempotencyToken, PlanId, @@ -2355,23 +2259,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys additional parameters are passed and default values will be used for any special parameters such as TARGET. """ -function execute_provisioned_product_service_action( +execute_provisioned_product_service_action( ExecuteToken, ProvisionedProductId, ServiceActionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "ExecuteProvisionedProductServiceAction", + Dict{String,Any}( + "ExecuteToken" => ExecuteToken, + "ProvisionedProductId" => ProvisionedProductId, + "ServiceActionId" => ServiceActionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ExecuteProvisionedProductServiceAction", - Dict{String,Any}( - "ExecuteToken" => ExecuteToken, - "ProvisionedProductId" => ProvisionedProductId, - "ServiceActionId" => ServiceActionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_provisioned_product_service_action( ExecuteToken, ProvisionedProductId, @@ -2405,15 +2307,12 @@ Get the Access Status for Organizations portfolio share feature. This API can on called by the management account in the organization or by a delegated admin. """ -function get_awsorganizations_access_status(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +get_awsorganizations_access_status(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "GetAWSOrganizationsAccessStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_awsorganizations_access_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2445,15 +2344,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProvisionedProductName"`: The name of the provisioned product that you want the outputs from. """ -function get_provisioned_product_outputs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +get_provisioned_product_outputs(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "GetProvisionedProductOutputs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_provisioned_product_outputs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2501,27 +2397,25 @@ have the IMPORT_COMPLETE status before you import another. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function import_as_provisioned_product( +import_as_provisioned_product( IdempotencyToken, PhysicalId, ProductId, ProvisionedProductName, ProvisioningArtifactId; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "ImportAsProvisionedProduct", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "PhysicalId" => PhysicalId, + "ProductId" => ProductId, + "ProvisionedProductName" => ProvisionedProductName, + "ProvisioningArtifactId" => ProvisioningArtifactId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ImportAsProvisionedProduct", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "PhysicalId" => PhysicalId, - "ProductId" => ProductId, - "ProvisionedProductName" => ProvisionedProductName, - "ProvisioningArtifactId" => ProvisioningArtifactId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_as_provisioned_product( IdempotencyToken, PhysicalId, @@ -2571,15 +2465,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organization. AWS_SERVICECATALOG - Deprecated type. IMPORTED - List imported portfolios that have been accepted and shared through account-to-account sharing. """ -function list_accepted_portfolio_shares(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +list_accepted_portfolio_shares(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ListAcceptedPortfolioShares"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_accepted_portfolio_shares( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2607,16 +2498,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_budgets_for_resource( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +list_budgets_for_resource(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ListBudgetsForResource", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_budgets_for_resource( ResourceId, params::AbstractDict{String}; @@ -2649,16 +2537,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results, use null. - `"ProductId"`: The product identifier. """ -function list_constraints_for_portfolio( +list_constraints_for_portfolio( PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "ListConstraintsForPortfolio", + Dict{String,Any}("PortfolioId" => PortfolioId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ListConstraintsForPortfolio", - Dict{String,Any}("PortfolioId" => PortfolioId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_constraints_for_portfolio( PortfolioId, params::AbstractDict{String}; @@ -2695,14 +2581,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_launch_paths(ProductId; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +list_launch_paths(ProductId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ListLaunchPaths", Dict{String,Any}("ProductId" => ProductId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_launch_paths( ProductId, params::AbstractDict{String}; @@ -2740,18 +2625,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_organization_portfolio_access( +list_organization_portfolio_access( OrganizationNodeType, PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "ListOrganizationPortfolioAccess", + Dict{String,Any}( + "OrganizationNodeType" => OrganizationNodeType, "PortfolioId" => PortfolioId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ListOrganizationPortfolioAccess", - Dict{String,Any}( - "OrganizationNodeType" => OrganizationNodeType, "PortfolioId" => PortfolioId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_organization_portfolio_access( OrganizationNodeType, PortfolioId, @@ -2795,16 +2678,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_portfolio_access( - PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +list_portfolio_access(PortfolioId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ListPortfolioAccess", Dict{String,Any}("PortfolioId" => PortfolioId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_portfolio_access( PortfolioId, params::AbstractDict{String}; @@ -2833,11 +2713,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_portfolios(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "ListPortfolios"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_portfolios(; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "ListPortfolios"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_portfolios( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2862,16 +2740,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_portfolios_for_product( - ProductId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +list_portfolios_for_product(ProductId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ListPortfoliosForProduct", Dict{String,Any}("ProductId" => ProductId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_portfolios_for_product( ProductId, params::AbstractDict{String}; @@ -2904,16 +2779,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_principals_for_portfolio( +list_principals_for_portfolio( PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "ListPrincipalsForPortfolio", + Dict{String,Any}("PortfolioId" => PortfolioId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ListPrincipalsForPortfolio", - Dict{String,Any}("PortfolioId" => PortfolioId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_principals_for_portfolio( PortfolioId, params::AbstractDict{String}; @@ -2945,15 +2818,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results, use null. - `"ProvisionProductId"`: The product identifier. """ -function list_provisioned_product_plans(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +list_provisioned_product_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ListProvisionedProductPlans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_provisioned_product_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2978,16 +2848,13 @@ Lists all provisioning artifacts (also known as versions) for the specified prod Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function list_provisioning_artifacts( - ProductId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +list_provisioning_artifacts(ProductId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ListProvisioningArtifacts", Dict{String,Any}("ProductId" => ProductId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_provisioning_artifacts( ProductId, params::AbstractDict{String}; @@ -3020,16 +2887,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_provisioning_artifacts_for_service_action( +list_provisioning_artifacts_for_service_action( ServiceActionId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "ListProvisioningArtifactsForServiceAction", + Dict{String,Any}("ServiceActionId" => ServiceActionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ListProvisioningArtifactsForServiceAction", - Dict{String,Any}("ServiceActionId" => ServiceActionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_provisioning_artifacts_for_service_action( ServiceActionId, params::AbstractDict{String}; @@ -3062,11 +2927,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results, use null. - `"SearchFilter"`: The search filter to scope the results. """ -function list_record_history(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "ListRecordHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_record_history(; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "ListRecordHistory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_record_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3091,16 +2954,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results, use null. - `"ResourceType"`: The resource type. Portfolio Product """ -function list_resources_for_tag_option( +list_resources_for_tag_option( TagOptionId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "ListResourcesForTagOption", + Dict{String,Any}("TagOptionId" => TagOptionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ListResourcesForTagOption", - Dict{String,Any}("TagOptionId" => TagOptionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resources_for_tag_option( TagOptionId, params::AbstractDict{String}; @@ -3129,11 +2990,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_service_actions(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +list_service_actions(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ListServiceActions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_service_actions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3161,18 +3021,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_service_actions_for_provisioning_artifact( +list_service_actions_for_provisioning_artifact( ProductId, ProvisioningArtifactId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "ListServiceActionsForProvisioningArtifact", + Dict{String,Any}( + "ProductId" => ProductId, "ProvisioningArtifactId" => ProvisioningArtifactId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ListServiceActionsForProvisioningArtifact", - Dict{String,Any}( - "ProductId" => ProductId, "ProvisioningArtifactId" => ProvisioningArtifactId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_actions_for_provisioning_artifact( ProductId, ProvisioningArtifactId, @@ -3214,16 +3072,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_stack_instances_for_provisioned_product( +list_stack_instances_for_provisioned_product( ProvisionedProductId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "ListStackInstancesForProvisionedProduct", + Dict{String,Any}("ProvisionedProductId" => ProvisionedProductId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ListStackInstancesForProvisionedProduct", - Dict{String,Any}("ProvisionedProductId" => ProvisionedProductId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_stack_instances_for_provisioned_product( ProvisionedProductId, params::AbstractDict{String}; @@ -3257,11 +3113,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function list_tag_options(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "ListTagOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tag_options(; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "ListTagOptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_tag_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3291,25 +3145,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceIdentifier"`: The ID for the provisioned product resources that are part of a resource group. """ -function notify_provision_product_engine_workflow_result( +notify_provision_product_engine_workflow_result( IdempotencyToken, RecordId, Status, WorkflowToken; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "NotifyProvisionProductEngineWorkflowResult", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "RecordId" => RecordId, + "Status" => Status, + "WorkflowToken" => WorkflowToken, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "NotifyProvisionProductEngineWorkflowResult", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "RecordId" => RecordId, - "Status" => Status, - "WorkflowToken" => WorkflowToken, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_provision_product_engine_workflow_result( IdempotencyToken, RecordId, @@ -3355,25 +3207,23 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"FailureReason"`: The reason why the terminate engine execution failed. """ -function notify_terminate_provisioned_product_engine_workflow_result( +notify_terminate_provisioned_product_engine_workflow_result( IdempotencyToken, RecordId, Status, WorkflowToken; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "NotifyTerminateProvisionedProductEngineWorkflowResult", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "RecordId" => RecordId, + "Status" => Status, + "WorkflowToken" => WorkflowToken, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "NotifyTerminateProvisionedProductEngineWorkflowResult", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "RecordId" => RecordId, - "Status" => Status, - "WorkflowToken" => WorkflowToken, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_terminate_provisioned_product_engine_workflow_result( IdempotencyToken, RecordId, @@ -3419,25 +3269,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"FailureReason"`: The reason why the update engine execution failed. - `"Outputs"`: The output of the update engine execution. """ -function notify_update_provisioned_product_engine_workflow_result( +notify_update_provisioned_product_engine_workflow_result( IdempotencyToken, RecordId, Status, WorkflowToken; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "NotifyUpdateProvisionedProductEngineWorkflowResult", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "RecordId" => RecordId, + "Status" => Status, + "WorkflowToken" => WorkflowToken, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "NotifyUpdateProvisionedProductEngineWorkflowResult", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "RecordId" => RecordId, - "Status" => Status, - "WorkflowToken" => WorkflowToken, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_update_provisioned_product_engine_workflow_result( IdempotencyToken, RecordId, @@ -3506,21 +3354,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys preferences for a stack set. - `"Tags"`: One or more tags. """ -function provision_product( +provision_product( ProvisionToken, ProvisionedProductName; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "ProvisionProduct", + Dict{String,Any}( + "ProvisionToken" => ProvisionToken, + "ProvisionedProductName" => ProvisionedProductName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "ProvisionProduct", - Dict{String,Any}( - "ProvisionToken" => ProvisionToken, - "ProvisionedProductName" => ProvisionedProductName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function provision_product( ProvisionToken, ProvisionedProductName, @@ -3563,16 +3409,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys servicecatalog reject-portfolio-share --portfolio-id \"port-2qwzkwxt3y5fk\" --portfolio-share-type AWS_ORGANIZATIONS """ -function reject_portfolio_share( - PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +reject_portfolio_share(PortfolioId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "RejectPortfolioShare", Dict{String,Any}("PortfolioId" => PortfolioId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reject_portfolio_share( PortfolioId, params::AbstractDict{String}; @@ -3603,11 +3446,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PageToken"`: The page token for the next set of results. To retrieve the first set of results, use null. """ -function scan_provisioned_products(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +scan_provisioned_products(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "ScanProvisionedProducts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function scan_provisioned_products( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3636,11 +3478,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The sort field. If no value is specified, the results are not sorted. - `"SortOrder"`: The sort order. If no value is specified, the results are not sorted. """ -function search_products(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "SearchProducts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +search_products(; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "SearchProducts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function search_products( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3668,11 +3508,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SortBy"`: The sort field. If no value is specified, the results are not sorted. - `"SortOrder"`: The sort order. If no value is specified, the results are not sorted. """ -function search_products_as_admin(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +search_products_as_admin(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "SearchProductsAsAdmin"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function search_products_as_admin( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3706,11 +3545,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys valid values are arn, id, name, and lastRecordId. - `"SortOrder"`: The sort order. If no value is specified, the results are not sorted. """ -function search_provisioned_products(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +search_provisioned_products(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "SearchProvisionedProducts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function search_provisioned_products( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3750,16 +3588,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys it does not remove the CloudFormation stack, stack set, or the underlying resources of the deleted provisioned product. The default value is false. """ -function terminate_provisioned_product( +terminate_provisioned_product( TerminateToken; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "TerminateProvisionedProduct", + Dict{String,Any}("TerminateToken" => TerminateToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "TerminateProvisionedProduct", - Dict{String,Any}("TerminateToken" => TerminateToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function terminate_provisioned_product( TerminateToken, params::AbstractDict{String}; @@ -3812,14 +3648,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys stack set. TEMPLATE Specify the Rules property. For more information, see Template Constraint Rules. """ -function update_constraint(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "UpdateConstraint", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_constraint(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "UpdateConstraint", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_constraint( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3849,14 +3683,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProviderName"`: The updated name of the portfolio provider. - `"RemoveTags"`: The tags to remove. """ -function update_portfolio(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "UpdatePortfolio", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_portfolio(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "UpdatePortfolio", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_portfolio( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3907,16 +3739,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this field is not provided, the current state of TagOptions sharing on the portfolio share will not be modified. """ -function update_portfolio_share( - PortfolioId; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog( +update_portfolio_share(PortfolioId; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "UpdatePortfolioShare", Dict{String,Any}("PortfolioId" => PortfolioId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_portfolio_share( PortfolioId, params::AbstractDict{String}; @@ -3958,14 +3787,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SupportEmail"`: The updated support email for the product. - `"SupportUrl"`: The updated support URL for the product. """ -function update_product(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "UpdateProduct", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_product(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "UpdateProduct", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_product( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4014,16 +3841,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: One or more tags. Requires the product to have RESOURCE_UPDATE constraint with TagUpdatesOnProvisionedProduct set to ALLOWED to allow tag updates. """ -function update_provisioned_product( +update_provisioned_product( UpdateToken; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "UpdateProvisionedProduct", + Dict{String,Any}("UpdateToken" => UpdateToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "UpdateProvisionedProduct", - Dict{String,Any}("UpdateToken" => UpdateToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_provisioned_product( UpdateToken, params::AbstractDict{String}; @@ -4073,23 +3898,21 @@ Requests updates to the properties of the specified provisioned product. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AcceptLanguage"`: The language code. jp - Japanese zh - Chinese """ -function update_provisioned_product_properties( +update_provisioned_product_properties( IdempotencyToken, ProvisionedProductId, ProvisionedProductProperties; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_catalog( + "UpdateProvisionedProductProperties", + Dict{String,Any}( + "IdempotencyToken" => IdempotencyToken, + "ProvisionedProductId" => ProvisionedProductId, + "ProvisionedProductProperties" => ProvisionedProductProperties, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "UpdateProvisionedProductProperties", - Dict{String,Any}( - "IdempotencyToken" => IdempotencyToken, - "ProvisionedProductId" => ProvisionedProductId, - "ProvisionedProductProperties" => ProvisionedProductProperties, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_provisioned_product_properties( IdempotencyToken, ProvisionedProductId, @@ -4140,18 +3963,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys deprecated version but cannot launch new provisioned products using a deprecated version. - `"Name"`: The updated name of the provisioning artifact. """ -function update_provisioning_artifact( +update_provisioning_artifact( ProductId, ProvisioningArtifactId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog( + "UpdateProvisioningArtifact", + Dict{String,Any}( + "ProductId" => ProductId, "ProvisioningArtifactId" => ProvisioningArtifactId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog( - "UpdateProvisioningArtifact", - Dict{String,Any}( - "ProductId" => ProductId, "ProvisioningArtifactId" => ProvisioningArtifactId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_provisioning_artifact( ProductId, ProvisioningArtifactId, @@ -4191,14 +4012,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The self-service action description. - `"Name"`: The self-service action name. """ -function update_service_action(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( +update_service_action(Id; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog( "UpdateServiceAction", Dict{String,Any}("Id" => Id); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_service_action( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4224,14 +4044,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Active"`: The updated active state. - `"Value"`: The updated value. """ -function update_tag_option(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog( - "UpdateTagOption", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_tag_option(Id; aws_config::AbstractAWSConfig=current_aws_config()) = service_catalog( + "UpdateTagOption", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_tag_option( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/service_catalog_appregistry.jl b/src/services/service_catalog_appregistry.jl index 706a77fd8..e479e0de4 100644 --- a/src/services/service_catalog_appregistry.jl +++ b/src/services/service_catalog_appregistry.jl @@ -18,16 +18,14 @@ user-defined details that are machine-readable, such as third-party integrations to describe the application. """ -function associate_attribute_group( +associate_attribute_group( application, attributeGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog_appregistry( + "PUT", + "/applications/$(application)/attribute-groups/$(attributeGroup)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog_appregistry( - "PUT", - "/applications/$(application)/attribute-groups/$(attributeGroup)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_attribute_group( application, attributeGroup, @@ -67,16 +65,14 @@ see TagResources in the Resource Groups Tagging API Reference. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"options"`: Determines whether an application tag is applied or skipped. """ -function associate_resource( +associate_resource( application, resource, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog_appregistry( + "PUT", + "/applications/$(application)/resources/$(resourceType)/$(resource)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog_appregistry( - "PUT", - "/applications/$(application)/resources/$(resourceType)/$(resource)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_resource( application, resource, @@ -114,17 +110,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the application. - `"tags"`: Key-value pairs you can use to associate with the application. """ -function create_application( - clientToken, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +create_application(clientToken, name; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "POST", "/applications", Dict{String,Any}("clientToken" => clientToken, "name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_application( clientToken, name, @@ -170,19 +163,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description of the attribute group that the user provides. - `"tags"`: Key-value pairs you can use to associate with the attribute group. """ -function create_attribute_group( +create_attribute_group( attributes, clientToken, name; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog_appregistry( + "POST", + "/attribute-groups", + Dict{String,Any}( + "attributes" => attributes, "clientToken" => clientToken, "name" => name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog_appregistry( - "POST", - "/attribute-groups", - Dict{String,Any}( - "attributes" => attributes, "clientToken" => clientToken, "name" => name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_attribute_group( attributes, clientToken, @@ -219,14 +210,13 @@ application. - `application`: The name, ID, or ARN of the application. """ -function delete_application(application; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog_appregistry( +delete_application(application; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "DELETE", "/applications/$(application)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( application, params::AbstractDict{String}; @@ -252,16 +242,13 @@ Deletes an attribute group, specified either by its attribute group ID, name, or to describe the application. """ -function delete_attribute_group( - attributeGroup; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +delete_attribute_group(attributeGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "DELETE", "/attribute-groups/$(attributeGroup)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_attribute_group( attributeGroup, params::AbstractDict{String}; @@ -290,16 +277,14 @@ AssociateAttributeGroup. to describe the application. """ -function disassociate_attribute_group( +disassociate_attribute_group( application, attributeGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog_appregistry( + "DELETE", + "/applications/$(application)/attribute-groups/$(attributeGroup)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog_appregistry( - "DELETE", - "/applications/$(application)/attribute-groups/$(attributeGroup)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_attribute_group( application, attributeGroup, @@ -337,16 +322,14 @@ see UntagResources in the Resource Groups Tagging API Reference. - `resource_type`: The type of the resource that is being disassociated. """ -function disassociate_resource( +disassociate_resource( application, resource, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog_appregistry( + "DELETE", + "/applications/$(application)/resources/$(resourceType)/$(resource)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog_appregistry( - "DELETE", - "/applications/$(application)/resources/$(resourceType)/$(resource)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_resource( application, resource, @@ -377,14 +360,13 @@ avoiding the ABA addressing problem. - `application`: The name, ID, or ARN of the application. """ -function get_application(application; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog_appregistry( +get_application(application; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "GET", "/applications/$(application)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_application( application, params::AbstractDict{String}; @@ -419,16 +401,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resourceTagStatus"`: States whether an application tag is applied, not applied, in the process of being applied, or skipped. """ -function get_associated_resource( +get_associated_resource( application, resource, resourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog_appregistry( + "GET", + "/applications/$(application)/resources/$(resourceType)/$(resource)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog_appregistry( - "GET", - "/applications/$(application)/resources/$(resourceType)/$(resource)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_associated_resource( application, resource, @@ -457,16 +437,13 @@ by its ARN, ID, or name. to describe the application. """ -function get_attribute_group( - attributeGroup; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +get_attribute_group(attributeGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "GET", "/attribute-groups/$(attributeGroup)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_attribute_group( attributeGroup, params::AbstractDict{String}; @@ -488,11 +465,10 @@ end Retrieves a TagKey configuration from an account. """ -function get_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog_appregistry( +get_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "GET", "/configuration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -518,11 +494,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to use to get the next page of results after a previous API call. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog_appregistry( +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "GET", "/applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -552,16 +527,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to use to get the next page of results after a previous API call. """ -function list_associated_attribute_groups( +list_associated_attribute_groups( application; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog_appregistry( + "GET", + "/applications/$(application)/attribute-groups"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog_appregistry( - "GET", - "/applications/$(application)/attribute-groups"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_associated_attribute_groups( application, params::AbstractDict{String}; @@ -595,16 +568,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to use to get the next page of results after a previous API call. """ -function list_associated_resources( - application; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +list_associated_resources(application; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "GET", "/applications/$(application)/resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_associated_resources( application, params::AbstractDict{String}; @@ -632,11 +602,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token to use to get the next page of results after a previous API call. """ -function list_attribute_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog_appregistry( +list_attribute_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "GET", "/attribute-groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_attribute_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -665,16 +634,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exceed 25. If you omit this parameter, it defaults to 25. This value is optional. - `"nextToken"`: This token retrieves the next page of results after a previous API call. """ -function list_attribute_groups_for_application( +list_attribute_groups_for_application( application; aws_config::AbstractAWSConfig=current_aws_config() +) = service_catalog_appregistry( + "GET", + "/applications/$(application)/attribute-group-details"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_catalog_appregistry( - "GET", - "/applications/$(application)/attribute-group-details"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_attribute_groups_for_application( application, params::AbstractDict{String}; @@ -699,16 +666,13 @@ Lists all of the tags on the resource. - `resource_arn`: The Amazon resource name (ARN) that specifies the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -733,17 +697,14 @@ end - `configuration`: Associates a TagKey configuration to an account. """ -function put_configuration( - configuration; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +put_configuration(configuration; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "PUT", "/configuration", Dict{String,Any}("configuration" => configuration); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_configuration( configuration, params::AbstractDict{String}; @@ -775,16 +736,13 @@ permissions to read and update the resource. - `resource_type`: The type of resource of which the application will be associated. """ -function sync_resource( - resource, resourceType; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +sync_resource(resource, resourceType; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "POST", "/sync/$(resourceType)/$(resource)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function sync_resource( resource, resourceType, @@ -814,15 +772,14 @@ call was successful. - `tags`: The new or modified tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog_appregistry( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -850,17 +807,14 @@ successful. - `tag_keys`: A list of the tag keys to remove from the specified resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -892,14 +846,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys region in which you are updating the application. Please do not use this field as we have stopped supporting name updates. """ -function update_application(application; aws_config::AbstractAWSConfig=current_aws_config()) - return service_catalog_appregistry( +update_application(application; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "PATCH", "/applications/$(application)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( application, params::AbstractDict{String}; @@ -933,16 +886,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys region in which you are updating the attribute group. Please do not use this field as we have stopped supporting name updates. """ -function update_attribute_group( - attributeGroup; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_catalog_appregistry( +update_attribute_group(attributeGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + service_catalog_appregistry( "PATCH", "/attribute-groups/$(attributeGroup)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_attribute_group( attributeGroup, params::AbstractDict{String}; diff --git a/src/services/service_quotas.jl b/src/services/service_quotas.jl index eea22d6bb..7985695ce 100644 --- a/src/services/service_quotas.jl +++ b/src/services/service_quotas.jl @@ -14,15 +14,12 @@ template are automatically applied to the account. You can add a quota increase any adjustable quota to your template. """ -function associate_service_quota_template(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_quotas( +associate_service_quota_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_quotas( "AssociateServiceQuotaTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_service_quota_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -49,18 +46,16 @@ Deletes the quota increase request for the specified quota from your quota reque Amazon Web Services service, use the ListServices operation. """ -function delete_service_quota_increase_request_from_template( +delete_service_quota_increase_request_from_template( AwsRegion, QuotaCode, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "DeleteServiceQuotaIncreaseRequestFromTemplate", + Dict{String,Any}( + "AwsRegion" => AwsRegion, "QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "DeleteServiceQuotaIncreaseRequestFromTemplate", - Dict{String,Any}( - "AwsRegion" => AwsRegion, "QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service_quota_increase_request_from_template( AwsRegion, QuotaCode, @@ -95,15 +90,12 @@ requests in the template are not applied to new Amazon Web Services accounts in organization. Disabling a quota request template does not apply its quota increase requests. """ -function disassociate_service_quota_template(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return service_quotas( +disassociate_service_quota_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_quotas( "DisassociateServiceQuotaTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_service_quota_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -122,15 +114,13 @@ end Retrieves the status of the association for the quota request template. """ -function get_association_for_service_quota_template(; +get_association_for_service_quota_template(; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "GetAssociationForServiceQuotaTemplate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "GetAssociationForServiceQuotaTemplate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_association_for_service_quota_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -157,16 +147,14 @@ quota increases. Amazon Web Services service, use the ListServices operation. """ -function get_awsdefault_service_quota( +get_awsdefault_service_quota( QuotaCode, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "GetAWSDefaultServiceQuota", + Dict{String,Any}("QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "GetAWSDefaultServiceQuota", - Dict{String,Any}("QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_awsdefault_service_quota( QuotaCode, ServiceCode, @@ -197,16 +185,14 @@ Retrieves information about the specified quota increase request. - `request_id`: Specifies the ID of the quota increase request. """ -function get_requested_service_quota_change( +get_requested_service_quota_change( RequestId; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "GetRequestedServiceQuotaChange", + Dict{String,Any}("RequestId" => RequestId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "GetRequestedServiceQuotaChange", - Dict{String,Any}("RequestId" => RequestId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_requested_service_quota_change( RequestId, params::AbstractDict{String}; @@ -243,16 +229,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys applies. The value in this field depends on the context scope associated with the specified service quota. """ -function get_service_quota( +get_service_quota( QuotaCode, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "GetServiceQuota", + Dict{String,Any}("QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "GetServiceQuota", - Dict{String,Any}("QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_quota( QuotaCode, ServiceCode, @@ -289,18 +273,16 @@ template. Amazon Web Services service, use the ListServices operation. """ -function get_service_quota_increase_request_from_template( +get_service_quota_increase_request_from_template( AwsRegion, QuotaCode, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "GetServiceQuotaIncreaseRequestFromTemplate", + Dict{String,Any}( + "AwsRegion" => AwsRegion, "QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "GetServiceQuotaIncreaseRequestFromTemplate", - Dict{String,Any}( - "AwsRegion" => AwsRegion, "QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_quota_increase_request_from_template( AwsRegion, QuotaCode, @@ -352,16 +334,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_awsdefault_service_quotas( +list_awsdefault_service_quotas( ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "ListAWSDefaultServiceQuotas", + Dict{String,Any}("ServiceCode" => ServiceCode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "ListAWSDefaultServiceQuotas", - Dict{String,Any}("ServiceCode" => ServiceCode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_awsdefault_service_quotas( ServiceCode, params::AbstractDict{String}; @@ -404,15 +384,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: Specifies that you want to filter the results to only the requests with the matching status. """ -function list_requested_service_quota_change_history(; +list_requested_service_quota_change_history(; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "ListRequestedServiceQuotaChangeHistory"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "ListRequestedServiceQuotaChangeHistory"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_requested_service_quota_change_history( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -456,16 +434,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: Specifies that you want to filter the results to only the requests with the matching status. """ -function list_requested_service_quota_change_history_by_quota( +list_requested_service_quota_change_history_by_quota( QuotaCode, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "ListRequestedServiceQuotaChangeHistoryByQuota", + Dict{String,Any}("QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "ListRequestedServiceQuotaChangeHistoryByQuota", - Dict{String,Any}("QuotaCode" => QuotaCode, "ServiceCode" => ServiceCode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_requested_service_quota_change_history_by_quota( QuotaCode, ServiceCode, @@ -510,15 +486,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ServiceCode"`: Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation. """ -function list_service_quota_increase_requests_in_template(; +list_service_quota_increase_requests_in_template(; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "ListServiceQuotaIncreaseRequestsInTemplate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "ListServiceQuotaIncreaseRequestsInTemplate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_quota_increase_requests_in_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -562,16 +536,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys quota, use the ListServiceQuotas operation, and look for the QuotaCode response in the output for the quota you want. """ -function list_service_quotas( - ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_quotas( +list_service_quotas(ServiceCode; aws_config::AbstractAWSConfig=current_aws_config()) = + service_quotas( "ListServiceQuotas", Dict{String,Any}("ServiceCode" => ServiceCode); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_service_quotas( ServiceCode, params::AbstractDict{String}; @@ -608,11 +579,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from. """ -function list_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return service_quotas( - "ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + service_quotas("ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -634,16 +602,13 @@ Returns a list of the tags assigned to the specified applied quota. Amazon Web Services API operation. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_quotas( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + service_quotas( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -675,25 +640,23 @@ Adds a quota increase request to your quota request template. Amazon Web Services service, use the ListServices operation. """ -function put_service_quota_increase_request_into_template( +put_service_quota_increase_request_into_template( AwsRegion, DesiredValue, QuotaCode, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config(), +) = service_quotas( + "PutServiceQuotaIncreaseRequestIntoTemplate", + Dict{String,Any}( + "AwsRegion" => AwsRegion, + "DesiredValue" => DesiredValue, + "QuotaCode" => QuotaCode, + "ServiceCode" => ServiceCode, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "PutServiceQuotaIncreaseRequestIntoTemplate", - Dict{String,Any}( - "AwsRegion" => AwsRegion, - "DesiredValue" => DesiredValue, - "QuotaCode" => QuotaCode, - "ServiceCode" => ServiceCode, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_service_quota_increase_request_into_template( AwsRegion, DesiredValue, @@ -741,20 +704,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys applies. The value in this field depends on the context scope associated with the specified service quota. """ -function request_service_quota_increase( +request_service_quota_increase( DesiredValue, QuotaCode, ServiceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = service_quotas( + "RequestServiceQuotaIncrease", + Dict{String,Any}( + "DesiredValue" => DesiredValue, + "QuotaCode" => QuotaCode, + "ServiceCode" => ServiceCode, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return service_quotas( - "RequestServiceQuotaIncrease", - Dict{String,Any}( - "DesiredValue" => DesiredValue, - "QuotaCode" => QuotaCode, - "ServiceCode" => ServiceCode, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function request_service_quota_increase( DesiredValue, QuotaCode, @@ -794,14 +755,13 @@ quota. - `tags`: The tags that you want to add to the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return service_quotas( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + service_quotas( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -836,16 +796,13 @@ Removes tags from the specified applied quota. You can specify one or more tags - `tag_keys`: The keys of the tags that you want to remove from the resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return service_quotas( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + service_quotas( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, diff --git a/src/services/servicediscovery.jl b/src/services/servicediscovery.jl index 3b4c6a7a8..ce9497362 100644 --- a/src/services/servicediscovery.jl +++ b/src/services/servicediscovery.jl @@ -26,14 +26,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length. """ -function create_http_namespace(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( +create_http_namespace(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "CreateHttpNamespace", Dict{String,Any}("Name" => Name, "CreatorRequestId" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_http_namespace( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -80,18 +79,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length. """ -function create_private_dns_namespace( +create_private_dns_namespace( Name, Vpc; aws_config::AbstractAWSConfig=current_aws_config() +) = servicediscovery( + "CreatePrivateDnsNamespace", + Dict{String,Any}("Name" => Name, "Vpc" => Vpc, "CreatorRequestId" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return servicediscovery( - "CreatePrivateDnsNamespace", - Dict{String,Any}( - "Name" => Name, "Vpc" => Vpc, "CreatorRequestId" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_private_dns_namespace( Name, Vpc, @@ -142,16 +137,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length. """ -function create_public_dns_namespace( - Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return servicediscovery( +create_public_dns_namespace(Name; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "CreatePublicDnsNamespace", Dict{String,Any}("Name" => Name, "CreatorRequestId" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_public_dns_namespace( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -223,14 +215,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the DiscoverInstances API operation. No DNS records is registered for the service instances. The only valid value is HTTP. """ -function create_service(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( - "CreateService", - Dict{String,Any}("Name" => Name, "CreatorRequestId" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_service(Name; aws_config::AbstractAWSConfig=current_aws_config()) = servicediscovery( + "CreateService", + Dict{String,Any}("Name" => Name, "CreatorRequestId" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_service( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -259,14 +249,12 @@ services, the request fails. - `id`: The ID of the namespace that you want to delete. """ -function delete_namespace(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( - "DeleteNamespace", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_namespace(Id; aws_config::AbstractAWSConfig=current_aws_config()) = servicediscovery( + "DeleteNamespace", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_namespace( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -289,14 +277,12 @@ instances, the request fails. - `id`: The ID of the service that you want to delete. """ -function delete_service(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( - "DeleteService", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_service(Id; aws_config::AbstractAWSConfig=current_aws_config()) = servicediscovery( + "DeleteService", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_service( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -320,16 +306,14 @@ for the specified instance. - `service_id`: The ID of the service that the instance is associated with. """ -function deregister_instance( +deregister_instance( InstanceId, ServiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = servicediscovery( + "DeregisterInstance", + Dict{String,Any}("InstanceId" => InstanceId, "ServiceId" => ServiceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return servicediscovery( - "DeregisterInstance", - Dict{String,Any}("InstanceId" => InstanceId, "ServiceId" => ServiceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_instance( InstanceId, ServiceId, @@ -388,16 +372,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys instance (for example, {version=v1, az=1a}). Only instances that match all the specified key-value pairs are returned. """ -function discover_instances( +discover_instances( NamespaceName, ServiceName; aws_config::AbstractAWSConfig=current_aws_config() +) = servicediscovery( + "DiscoverInstances", + Dict{String,Any}("NamespaceName" => NamespaceName, "ServiceName" => ServiceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return servicediscovery( - "DiscoverInstances", - Dict{String,Any}("NamespaceName" => NamespaceName, "ServiceName" => ServiceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function discover_instances( NamespaceName, ServiceName, @@ -433,16 +415,14 @@ Discovers the increasing revision associated with an instance. instance. """ -function discover_instances_revision( +discover_instances_revision( NamespaceName, ServiceName; aws_config::AbstractAWSConfig=current_aws_config() +) = servicediscovery( + "DiscoverInstancesRevision", + Dict{String,Any}("NamespaceName" => NamespaceName, "ServiceName" => ServiceName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return servicediscovery( - "DiscoverInstancesRevision", - Dict{String,Any}("NamespaceName" => NamespaceName, "ServiceName" => ServiceName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function discover_instances_revision( NamespaceName, ServiceName, @@ -476,16 +456,13 @@ Gets information about a specified instance. - `service_id`: The ID of the service that the instance is associated with. """ -function get_instance( - InstanceId, ServiceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return servicediscovery( +get_instance(InstanceId, ServiceId; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "GetInstance", Dict{String,Any}("InstanceId" => InstanceId, "ServiceId" => ServiceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_instance( InstanceId, ServiceId, @@ -532,16 +509,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys GetInstancesHealthStatus request to get the next group of results. Specify the value of NextToken from the previous response in the next request. """ -function get_instances_health_status( - ServiceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return servicediscovery( +get_instances_health_status(ServiceId; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "GetInstancesHealthStatus", Dict{String,Any}("ServiceId" => ServiceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_instances_health_status( ServiceId, params::AbstractDict{String}; @@ -567,14 +541,12 @@ Gets information about a namespace. - `id`: The ID of the namespace that you want to get information about. """ -function get_namespace(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( - "GetNamespace", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_namespace(Id; aws_config::AbstractAWSConfig=current_aws_config()) = servicediscovery( + "GetNamespace", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_namespace( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -598,14 +570,13 @@ see ListOperations. - `operation_id`: The ID of the operation that you want to get more information about. """ -function get_operation(OperationId; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( +get_operation(OperationId; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "GetOperation", Dict{String,Any}("OperationId" => OperationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_operation( OperationId, params::AbstractDict{String}; @@ -631,14 +602,12 @@ Gets the settings for a specified service. - `id`: The ID of the service that you want to get settings for. """ -function get_service(Id; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( - "GetService", - Dict{String,Any}("Id" => Id); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_service(Id; aws_config::AbstractAWSConfig=current_aws_config()) = servicediscovery( + "GetService", + Dict{String,Any}("Id" => Id); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_service( Id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -670,14 +639,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request to get the next group of results. Specify the value of NextToken from the previous response in the next request. """ -function list_instances(ServiceId; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( +list_instances(ServiceId; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "ListInstances", Dict{String,Any}("ServiceId" => ServiceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_instances( ServiceId, params::AbstractDict{String}; @@ -716,11 +684,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys criteria but that subsequent groups of MaxResults namespaces do contain namespaces that match the criteria. """ -function list_namespaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( - "ListNamespaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_namespaces(; aws_config::AbstractAWSConfig=current_aws_config()) = servicediscovery( + "ListNamespaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_namespaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -752,11 +718,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys criteria but that subsequent groups of MaxResults operations do contain operations that match the criteria. """ -function list_operations(; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( - "ListOperations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_operations(; aws_config::AbstractAWSConfig=current_aws_config()) = servicediscovery( + "ListOperations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_operations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -788,11 +752,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys but that subsequent groups of MaxResults services do contain services that match the criteria. """ -function list_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( - "ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery("ListServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -812,16 +773,13 @@ Lists tags for the specified resource. tags for. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return servicediscovery( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -927,21 +885,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys request if you're registering additional instances for the same namespace and service. CreatorRequestId can be any unique string (for example, a date/time stamp). """ -function register_instance( +register_instance( Attributes, InstanceId, ServiceId; aws_config::AbstractAWSConfig=current_aws_config() +) = servicediscovery( + "RegisterInstance", + Dict{String,Any}( + "Attributes" => Attributes, + "InstanceId" => InstanceId, + "ServiceId" => ServiceId, + "CreatorRequestId" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return servicediscovery( - "RegisterInstance", - Dict{String,Any}( - "Attributes" => Attributes, - "InstanceId" => InstanceId, - "ServiceId" => ServiceId, - "CreatorRequestId" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_instance( Attributes, InstanceId, @@ -982,14 +938,13 @@ Adds one or more tags to the specified resource. null. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1022,16 +977,13 @@ Removes one or more tags from the specified resource. - `tag_keys`: The tag keys to remove from the specified resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return servicediscovery( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1068,10 +1020,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UpdateHttpNamespace requests to be retried without the risk of running the operation twice. UpdaterRequestId can be any unique string (for example, a date/timestamp). """ -function update_http_namespace( - Id, Namespace; aws_config::AbstractAWSConfig=current_aws_config() -) - return servicediscovery( +update_http_namespace(Id, Namespace; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "UpdateHttpNamespace", Dict{String,Any}( "Id" => Id, "Namespace" => Namespace, "UpdaterRequestId" => string(uuid4()) @@ -1079,7 +1029,6 @@ function update_http_namespace( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_http_namespace( Id, Namespace, @@ -1121,18 +1070,16 @@ define using HealthCheckConfig. For more information, see HealthCheckCustomConfi - `status`: The new status of the instance, HEALTHY or UNHEALTHY. """ -function update_instance_custom_health_status( +update_instance_custom_health_status( InstanceId, ServiceId, Status; aws_config::AbstractAWSConfig=current_aws_config() +) = servicediscovery( + "UpdateInstanceCustomHealthStatus", + Dict{String,Any}( + "InstanceId" => InstanceId, "ServiceId" => ServiceId, "Status" => Status + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return servicediscovery( - "UpdateInstanceCustomHealthStatus", - Dict{String,Any}( - "InstanceId" => InstanceId, "ServiceId" => ServiceId, "Status" => Status - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_instance_custom_health_status( InstanceId, ServiceId, @@ -1172,18 +1119,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UpdatePrivateDnsNamespace requests to be retried without the risk of running the operation twice. UpdaterRequestId can be any unique string (for example, a date/timestamp). """ -function update_private_dns_namespace( +update_private_dns_namespace( Id, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = servicediscovery( + "UpdatePrivateDnsNamespace", + Dict{String,Any}( + "Id" => Id, "Namespace" => Namespace, "UpdaterRequestId" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return servicediscovery( - "UpdatePrivateDnsNamespace", - Dict{String,Any}( - "Id" => Id, "Namespace" => Namespace, "UpdaterRequestId" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_private_dns_namespace( Id, Namespace, @@ -1224,18 +1169,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys UpdatePublicDnsNamespace requests to be retried without the risk of running the operation twice. UpdaterRequestId can be any unique string (for example, a date/timestamp). """ -function update_public_dns_namespace( +update_public_dns_namespace( Id, Namespace; aws_config::AbstractAWSConfig=current_aws_config() +) = servicediscovery( + "UpdatePublicDnsNamespace", + Dict{String,Any}( + "Id" => Id, "Namespace" => Namespace, "UpdaterRequestId" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return servicediscovery( - "UpdatePublicDnsNamespace", - Dict{String,Any}( - "Id" => Id, "Namespace" => Namespace, "UpdaterRequestId" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_public_dns_namespace( Id, Namespace, @@ -1280,14 +1223,13 @@ by using the specified service. - `service`: A complex type that contains the new settings for the service. """ -function update_service(Id, Service; aws_config::AbstractAWSConfig=current_aws_config()) - return servicediscovery( +update_service(Id, Service; aws_config::AbstractAWSConfig=current_aws_config()) = + servicediscovery( "UpdateService", Dict{String,Any}("Id" => Id, "Service" => Service); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_service( Id, Service, diff --git a/src/services/ses.jl b/src/services/ses.jl index 32ab030b9..1f31a3539 100644 --- a/src/services/ses.jl +++ b/src/services/ses.jl @@ -20,18 +20,16 @@ can execute this operation no more than once per second. dashes (-). Start and end with a letter or number. Contain 64 characters or fewer. """ -function clone_receipt_rule_set( +clone_receipt_rule_set( OriginalRuleSetName, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "CloneReceiptRuleSet", + Dict{String,Any}( + "OriginalRuleSetName" => OriginalRuleSetName, "RuleSetName" => RuleSetName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "CloneReceiptRuleSet", - Dict{String,Any}( - "OriginalRuleSetName" => OriginalRuleSetName, "RuleSetName" => RuleSetName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function clone_receipt_rule_set( OriginalRuleSetName, RuleSetName, @@ -67,16 +65,14 @@ execute this operation no more than once per second. - `configuration_set`: A data structure that contains the name of the configuration set. """ -function create_configuration_set( +create_configuration_set( ConfigurationSet; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "CreateConfigurationSet", + Dict{String,Any}("ConfigurationSet" => ConfigurationSet); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "CreateConfigurationSet", - Dict{String,Any}("ConfigurationSet" => ConfigurationSet); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set( ConfigurationSet, params::AbstractDict{String}; @@ -113,21 +109,19 @@ more than once per second. sending event where information is published. """ -function create_configuration_set_event_destination( +create_configuration_set_event_destination( ConfigurationSetName, EventDestination; aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "CreateConfigurationSetEventDestination", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "EventDestination" => EventDestination, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "CreateConfigurationSetEventDestination", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "EventDestination" => EventDestination, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set_event_destination( ConfigurationSetName, EventDestination, @@ -167,21 +161,19 @@ Developer Guide. - `tracking_options`: """ -function create_configuration_set_tracking_options( +create_configuration_set_tracking_options( ConfigurationSetName, TrackingOptions; aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "CreateConfigurationSetTrackingOptions", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "TrackingOptions" => TrackingOptions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "CreateConfigurationSetTrackingOptions", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "TrackingOptions" => TrackingOptions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set_tracking_options( ConfigurationSetName, TrackingOptions, @@ -227,7 +219,7 @@ SES Developer Guide. You can execute this operation no more than once per second - `template_subject`: The subject line of the custom verification email. """ -function create_custom_verification_email_template( +create_custom_verification_email_template( FailureRedirectionURL, FromEmailAddress, SuccessRedirectionURL, @@ -235,21 +227,19 @@ function create_custom_verification_email_template( TemplateName, TemplateSubject; aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "CreateCustomVerificationEmailTemplate", + Dict{String,Any}( + "FailureRedirectionURL" => FailureRedirectionURL, + "FromEmailAddress" => FromEmailAddress, + "SuccessRedirectionURL" => SuccessRedirectionURL, + "TemplateContent" => TemplateContent, + "TemplateName" => TemplateName, + "TemplateSubject" => TemplateSubject, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "CreateCustomVerificationEmailTemplate", - Dict{String,Any}( - "FailureRedirectionURL" => FailureRedirectionURL, - "FromEmailAddress" => FromEmailAddress, - "SuccessRedirectionURL" => SuccessRedirectionURL, - "TemplateContent" => TemplateContent, - "TemplateName" => TemplateName, - "TemplateSubject" => TemplateSubject, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_verification_email_template( FailureRedirectionURL, FromEmailAddress, @@ -293,14 +283,12 @@ the Amazon SES Developer Guide. You can execute this operation no more than once of a name, an IP address range, and whether to allow or block mail from it. """ -function create_receipt_filter(Filter; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "CreateReceiptFilter", - Dict{String,Any}("Filter" => Filter); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_receipt_filter(Filter; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "CreateReceiptFilter", + Dict{String,Any}("Filter" => Filter); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_receipt_filter( Filter, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -329,16 +317,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"After"`: The name of an existing rule after which the new rule is placed. If this parameter is null, the new rule is inserted at the beginning of the rule list. """ -function create_receipt_rule( - Rule, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ses( +create_receipt_rule(Rule, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + ses( "CreateReceiptRule", Dict{String,Any}("Rule" => Rule, "RuleSetName" => RuleSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_receipt_rule( Rule, RuleSetName, @@ -372,16 +357,13 @@ the Amazon SES Developer Guide. You can execute this operation no more than once dashes (-). Start and end with a letter or number. Contain 64 characters or fewer. """ -function create_receipt_rule_set( - RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ses( +create_receipt_rule_set(RuleSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + ses( "CreateReceiptRuleSet", Dict{String,Any}("RuleSetName" => RuleSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_receipt_rule_set( RuleSetName, params::AbstractDict{String}; @@ -410,14 +392,12 @@ Guide. You can execute this operation no more than once per second. or a text-only part. """ -function create_template(Template; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "CreateTemplate", - Dict{String,Any}("Template" => Template); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_template(Template; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "CreateTemplate", + Dict{String,Any}("Template" => Template); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_template( Template, params::AbstractDict{String}; @@ -445,16 +425,14 @@ execute this operation no more than once per second. - `configuration_set_name`: The name of the configuration set to delete. """ -function delete_configuration_set( +delete_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "DeleteConfigurationSet", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DeleteConfigurationSet", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -489,21 +467,19 @@ execute this operation no more than once per second. - `event_destination_name`: The name of the event destination to delete. """ -function delete_configuration_set_event_destination( +delete_configuration_set_event_destination( ConfigurationSetName, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "DeleteConfigurationSetEventDestination", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "EventDestinationName" => EventDestinationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DeleteConfigurationSetEventDestination", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "EventDestinationName" => EventDestinationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set_event_destination( ConfigurationSetName, EventDestinationName, @@ -543,16 +519,14 @@ SES-operated domains. - `configuration_set_name`: The name of the configuration set. """ -function delete_configuration_set_tracking_options( +delete_configuration_set_tracking_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "DeleteConfigurationSetTrackingOptions", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DeleteConfigurationSetTrackingOptions", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set_tracking_options( ConfigurationSetName, params::AbstractDict{String}; @@ -584,16 +558,14 @@ SES Developer Guide. You can execute this operation no more than once per second - `template_name`: The name of the custom verification email template to delete. """ -function delete_custom_verification_email_template( +delete_custom_verification_email_template( TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "DeleteCustomVerificationEmailTemplate", + Dict{String,Any}("TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DeleteCustomVerificationEmailTemplate", - Dict{String,Any}("TemplateName" => TemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_verification_email_template( TemplateName, params::AbstractDict{String}; @@ -621,14 +593,12 @@ identities. You can execute this operation no more than once per second. Services account. """ -function delete_identity(Identity; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "DeleteIdentity", - Dict{String,Any}("Identity" => Identity); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_identity(Identity; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "DeleteIdentity", + Dict{String,Any}("Identity" => Identity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_identity( Identity, params::AbstractDict{String}; @@ -664,16 +634,14 @@ operation no more than once per second. - `policy_name`: The name of the policy to be deleted. """ -function delete_identity_policy( +delete_identity_policy( Identity, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "DeleteIdentityPolicy", + Dict{String,Any}("Identity" => Identity, "PolicyName" => PolicyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DeleteIdentityPolicy", - Dict{String,Any}("Identity" => Identity, "PolicyName" => PolicyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_identity_policy( Identity, PolicyName, @@ -706,16 +674,12 @@ second. - `filter_name`: The name of the IP address filter to delete. """ -function delete_receipt_filter( - FilterName; aws_config::AbstractAWSConfig=current_aws_config() +delete_receipt_filter(FilterName; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "DeleteReceiptFilter", + Dict{String,Any}("FilterName" => FilterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DeleteReceiptFilter", - Dict{String,Any}("FilterName" => FilterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_receipt_filter( FilterName, params::AbstractDict{String}; @@ -744,16 +708,14 @@ Amazon SES Developer Guide. You can execute this operation no more than once per delete. """ -function delete_receipt_rule( +delete_receipt_rule( RuleName, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "DeleteReceiptRule", + Dict{String,Any}("RuleName" => RuleName, "RuleSetName" => RuleSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DeleteReceiptRule", - Dict{String,Any}("RuleName" => RuleName, "RuleSetName" => RuleSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_receipt_rule( RuleName, RuleSetName, @@ -787,16 +749,13 @@ per second. - `rule_set_name`: The name of the receipt rule set to delete. """ -function delete_receipt_rule_set( - RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ses( +delete_receipt_rule_set(RuleSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + ses( "DeleteReceiptRuleSet", Dict{String,Any}("RuleSetName" => RuleSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_receipt_rule_set( RuleSetName, params::AbstractDict{String}; @@ -822,14 +781,12 @@ Deletes an email template. You can execute this operation no more than once per - `template_name`: The name of the template to be deleted. """ -function delete_template(TemplateName; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "DeleteTemplate", - Dict{String,Any}("TemplateName" => TemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_template(TemplateName; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "DeleteTemplate", + Dict{String,Any}("TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_template( TemplateName, params::AbstractDict{String}; @@ -855,16 +812,14 @@ Deprecated. Use the DeleteIdentity operation to delete email addresses and domai - `email_address`: An email address to be removed from the list of verified addresses. """ -function delete_verified_email_address( +delete_verified_email_address( EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "DeleteVerifiedEmailAddress", + Dict{String,Any}("EmailAddress" => EmailAddress); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DeleteVerifiedEmailAddress", - Dict{String,Any}("EmailAddress" => EmailAddress); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_verified_email_address( EmailAddress, params::AbstractDict{String}; @@ -889,15 +844,12 @@ For information about setting up receipt rule sets, see the Amazon SES Developer can execute this operation no more than once per second. """ -function describe_active_receipt_rule_set(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ses( +describe_active_receipt_rule_set(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses( "DescribeActiveReceiptRuleSet"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_active_receipt_rule_set( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -924,16 +876,14 @@ more than once per second. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ConfigurationSetAttributeNames"`: A list of configuration set attributes to return. """ -function describe_configuration_set( +describe_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "DescribeConfigurationSet", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DescribeConfigurationSet", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -966,16 +916,14 @@ per second. - `rule_set_name`: The name of the receipt rule set that the receipt rule belongs to. """ -function describe_receipt_rule( +describe_receipt_rule( RuleName, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "DescribeReceiptRule", + Dict{String,Any}("RuleName" => RuleName, "RuleSetName" => RuleSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "DescribeReceiptRule", - Dict{String,Any}("RuleName" => RuleName, "RuleSetName" => RuleSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_receipt_rule( RuleName, RuleSetName, @@ -1008,16 +956,13 @@ more than once per second. - `rule_set_name`: The name of the receipt rule set to describe. """ -function describe_receipt_rule_set( - RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ses( +describe_receipt_rule_set(RuleSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + ses( "DescribeReceiptRuleSet", Dict{String,Any}("RuleSetName" => RuleSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_receipt_rule_set( RuleSetName, params::AbstractDict{String}; @@ -1041,11 +986,8 @@ Returns the email sending status of the Amazon SES account for the current Regio execute this operation no more than once per second. """ -function get_account_sending_enabled(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "GetAccountSendingEnabled"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account_sending_enabled(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("GetAccountSendingEnabled"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_account_sending_enabled( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1070,16 +1012,14 @@ once per second. - `template_name`: The name of the custom verification email template to retrieve. """ -function get_custom_verification_email_template( +get_custom_verification_email_template( TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "GetCustomVerificationEmailTemplate", + Dict{String,Any}("TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "GetCustomVerificationEmailTemplate", - Dict{String,Any}("TemplateName" => TemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_custom_verification_email_template( TemplateName, params::AbstractDict{String}; @@ -1117,16 +1057,14 @@ Guide. both. """ -function get_identity_dkim_attributes( +get_identity_dkim_attributes( Identities; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "GetIdentityDkimAttributes", + Dict{String,Any}("Identities" => Identities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "GetIdentityDkimAttributes", - Dict{String,Any}("Identities" => Identities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_dkim_attributes( Identities, params::AbstractDict{String}; @@ -1154,16 +1092,14 @@ MAIL FROM attributes for up to 100 identities at a time. - `identities`: A list of one or more identities. """ -function get_identity_mail_from_domain_attributes( +get_identity_mail_from_domain_attributes( Identities; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "GetIdentityMailFromDomainAttributes", + Dict{String,Any}("Identities" => Identities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "GetIdentityMailFromDomainAttributes", - Dict{String,Any}("Identities" => Identities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_mail_from_domain_attributes( Identities, params::AbstractDict{String}; @@ -1195,16 +1131,14 @@ Guide. arn:aws:ses:us-east-1:123456789012:identity/example.com. """ -function get_identity_notification_attributes( +get_identity_notification_attributes( Identities; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "GetIdentityNotificationAttributes", + Dict{String,Any}("Identities" => Identities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "GetIdentityNotificationAttributes", - Dict{String,Any}("Identities" => Identities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_notification_attributes( Identities, params::AbstractDict{String}; @@ -1242,16 +1176,14 @@ Developer Guide. You can execute this operation no more than once per second. attached to the identity, you can use ListIdentityPolicies. """ -function get_identity_policies( +get_identity_policies( Identity, PolicyNames; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "GetIdentityPolicies", + Dict{String,Any}("Identity" => Identity, "PolicyNames" => PolicyNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "GetIdentityPolicies", - Dict{String,Any}("Identity" => Identity, "PolicyNames" => PolicyNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_policies( Identity, PolicyNames, @@ -1296,16 +1228,14 @@ identities at a time. - `identities`: A list of identities. """ -function get_identity_verification_attributes( +get_identity_verification_attributes( Identities; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "GetIdentityVerificationAttributes", + Dict{String,Any}("Identities" => Identities); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "GetIdentityVerificationAttributes", - Dict{String,Any}("Identities" => Identities); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_verification_attributes( Identities, params::AbstractDict{String}; @@ -1329,9 +1259,8 @@ Provides the sending limits for the Amazon SES account. You can execute this op more than once per second. """ -function get_send_quota(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses("GetSendQuota"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_send_quota(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("GetSendQuota"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_send_quota( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1350,9 +1279,8 @@ in the list contains statistics for a 15-minute period of time. You can execute operation no more than once per second. """ -function get_send_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses("GetSendStatistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_send_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("GetSendStatistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_send_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1372,14 +1300,12 @@ the template you specify. You can execute this operation no more than once per s - `template_name`: The name of the template to retrieve. """ -function get_template(TemplateName; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "GetTemplate", - Dict{String,Any}("TemplateName" => TemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_template(TemplateName; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "GetTemplate", + Dict{String,Any}("TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_template( TemplateName, params::AbstractDict{String}; @@ -1414,11 +1340,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token returned from a previous call to ListConfigurationSets to indicate the position of the configuration set in the configuration set list. """ -function list_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "ListConfigurationSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("ListConfigurationSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_configuration_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1447,15 +1370,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: An array the contains the name and creation time stamp for each template in your Amazon SES account. """ -function list_custom_verification_email_templates(; +list_custom_verification_email_templates(; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "ListCustomVerificationEmailTemplates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "ListCustomVerificationEmailTemplates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_custom_verification_email_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1491,9 +1412,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys inclusive. - `"NextToken"`: The token to use for pagination. """ -function list_identities(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses("ListIdentities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_identities(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("ListIdentities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_identities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1522,16 +1442,12 @@ can execute this operation no more than once per second. operation, you must own the identity. """ -function list_identity_policies( - Identity; aws_config::AbstractAWSConfig=current_aws_config() +list_identity_policies(Identity; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "ListIdentityPolicies", + Dict{String,Any}("Identity" => Identity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "ListIdentityPolicies", - Dict{String,Any}("Identity" => Identity); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_identity_policies( Identity, params::AbstractDict{String}; @@ -1556,9 +1472,8 @@ current Amazon Web Services Region. For information about managing IP address fi the Amazon SES Developer Guide. You can execute this operation no more than once per second. """ -function list_receipt_filters(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses("ListReceiptFilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_receipt_filters(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("ListReceiptFilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_receipt_filters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1583,11 +1498,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token returned from a previous call to ListReceiptRuleSets to indicate the position in the receipt rule set list. """ -function list_receipt_rule_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "ListReceiptRuleSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_receipt_rule_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("ListReceiptRuleSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_receipt_rule_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1614,9 +1526,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token returned from a previous call to ListTemplates to indicate the position in the list of email templates. """ -function list_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses("ListTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("ListTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1633,11 +1544,9 @@ Deprecated. Use the ListIdentities operation to list the email addresses and dom associated with your account. """ -function list_verified_email_addresses(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "ListVerifiedEmailAddresses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_verified_email_addresses(; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "ListVerifiedEmailAddresses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_verified_email_addresses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1663,16 +1572,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeliveryOptions"`: Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). """ -function put_configuration_set_delivery_options( +put_configuration_set_delivery_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "PutConfigurationSetDeliveryOptions", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "PutConfigurationSetDeliveryOptions", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_delivery_options( ConfigurationSetName, params::AbstractDict{String}; @@ -1715,18 +1622,16 @@ than once per second. can only include alphanumeric characters, dashes, and underscores. """ -function put_identity_policy( +put_identity_policy( Identity, Policy, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "PutIdentityPolicy", + Dict{String,Any}( + "Identity" => Identity, "Policy" => Policy, "PolicyName" => PolicyName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "PutIdentityPolicy", - Dict{String,Any}( - "Identity" => Identity, "Policy" => Policy, "PolicyName" => PolicyName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_identity_policy( Identity, Policy, @@ -1765,16 +1670,14 @@ second. - `rule_set_name`: The name of the receipt rule set to reorder. """ -function reorder_receipt_rule_set( +reorder_receipt_rule_set( RuleNames, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "ReorderReceiptRuleSet", + Dict{String,Any}("RuleNames" => RuleNames, "RuleSetName" => RuleSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "ReorderReceiptRuleSet", - Dict{String,Any}("RuleNames" => RuleNames, "RuleSetName" => RuleSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reorder_receipt_rule_set( RuleNames, RuleSetName, @@ -1824,23 +1727,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MessageDsn"`: Message-related DSN fields. If not specified, Amazon SES chooses the values. """ -function send_bounce( +send_bounce( BounceSender, BouncedRecipientInfoList, OriginalMessageId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "SendBounce", + Dict{String,Any}( + "BounceSender" => BounceSender, + "BouncedRecipientInfoList" => BouncedRecipientInfoList, + "OriginalMessageId" => OriginalMessageId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SendBounce", - Dict{String,Any}( - "BounceSender" => BounceSender, - "BouncedRecipientInfoList" => BouncedRecipientInfoList, - "OriginalMessageId" => OriginalMessageId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_bounce( BounceSender, BouncedRecipientInfoList, @@ -1867,8 +1768,8 @@ function send_bounce( end """ - send_bulk_templated_email(destinations, source, template) - send_bulk_templated_email(destinations, source, template, params::Dict{String,<:Any}) + send_bulk_templated_email(default_template_data, destinations, source, template) + send_bulk_templated_email(default_template_data, destinations, source, template, params::Dict{String,<:Any}) Composes an email message to multiple destinations. The message body is created using an email template. To send email using this operation, your call must meet the following @@ -1889,6 +1790,11 @@ send the message to each group. The number of destinations you can contact in call can be limited by your account's maximum sending rate. # Arguments +- `default_template_data`: A list of replacement values to apply to the template when + replacement data is not specified in a Destination object. These values act as a default or + fallback option when no other data is available. The template data is a JSON object, + typically consisting of key-value pairs in which the keys correspond to replacement tags in + the email template. - `destinations`: One or more Destination objects. All of the recipients in a Destination receive the same version of the email. You can specify up to 50 Destination objects within a Destinations array. @@ -1914,11 +1820,6 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys using SendBulkTemplatedEmail. - `"DefaultTags"`: A list of tags, in the form of name/value pairs, to apply to an email that you send to a destination using SendBulkTemplatedEmail. -- `"DefaultTemplateData"`: A list of replacement values to apply to the template when - replacement data is not specified in a Destination object. These values act as a default or - fallback option when no other data is available. The template data is a JSON object, - typically consisting of key-value pairs in which the keys correspond to replacement tags in - the email template. - `"ReplyToAddresses"`: The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply. - `"ReturnPath"`: The email address that bounces and complaints are forwarded to when @@ -1945,19 +1846,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the Amazon SES Developer Guide. - `"TemplateArn"`: The ARN of the template to use when sending this email. """ -function send_bulk_templated_email( - Destinations, Source, Template; aws_config::AbstractAWSConfig=current_aws_config() +send_bulk_templated_email( + DefaultTemplateData, + Destinations, + Source, + Template; + aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "SendBulkTemplatedEmail", + Dict{String,Any}( + "DefaultTemplateData" => DefaultTemplateData, + "Destinations" => Destinations, + "Source" => Source, + "Template" => Template, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SendBulkTemplatedEmail", - Dict{String,Any}( - "Destinations" => Destinations, "Source" => Source, "Template" => Template - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_bulk_templated_email( + DefaultTemplateData, Destinations, Source, Template, @@ -1970,6 +1877,7 @@ function send_bulk_templated_email( mergewith( _merge, Dict{String,Any}( + "DefaultTemplateData" => DefaultTemplateData, "Destinations" => Destinations, "Source" => Source, "Template" => Template, @@ -2004,16 +1912,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ConfigurationSetName"`: Name of a configuration set to use when sending the verification email. """ -function send_custom_verification_email( +send_custom_verification_email( EmailAddress, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "SendCustomVerificationEmail", + Dict{String,Any}("EmailAddress" => EmailAddress, "TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SendCustomVerificationEmail", - Dict{String,Any}("EmailAddress" => EmailAddress, "TemplateName" => TemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_custom_verification_email( EmailAddress, TemplateName, @@ -2110,18 +2016,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys send using SendEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events. """ -function send_email( +send_email( Destination, Message, Source; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "SendEmail", + Dict{String,Any}( + "Destination" => Destination, "Message" => Message, "Source" => Source + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SendEmail", - Dict{String,Any}( - "Destination" => Destination, "Message" => Message, "Source" => Source - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_email( Destination, Message, @@ -2256,14 +2160,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys send using SendRawEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events. """ -function send_raw_email(RawMessage; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "SendRawEmail", - Dict{String,Any}("RawMessage" => RawMessage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +send_raw_email(RawMessage; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "SendRawEmail", + Dict{String,Any}("RawMessage" => RawMessage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function send_raw_email( RawMessage, params::AbstractDict{String}; @@ -2362,25 +2264,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys define, so that you can publish email sending events. - `"TemplateArn"`: The ARN of the template to use when sending this email. """ -function send_templated_email( +send_templated_email( Destination, Source, Template, TemplateData; aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "SendTemplatedEmail", + Dict{String,Any}( + "Destination" => Destination, + "Source" => Source, + "Template" => Template, + "TemplateData" => TemplateData, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SendTemplatedEmail", - Dict{String,Any}( - "Destination" => Destination, - "Source" => Source, - "Template" => Template, - "TemplateData" => TemplateData, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_templated_email( Destination, Source, @@ -2422,11 +2322,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RuleSetName"`: The name of the receipt rule set to make active. Setting this value to null disables all email receiving. """ -function set_active_receipt_rule_set(; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "SetActiveReceiptRuleSet"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +set_active_receipt_rule_set(; aws_config::AbstractAWSConfig=current_aws_config()) = + ses("SetActiveReceiptRuleSet"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function set_active_receipt_rule_set( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2459,16 +2356,14 @@ Developer Guide. - `identity`: The identity for which DKIM signing should be enabled or disabled. """ -function set_identity_dkim_enabled( +set_identity_dkim_enabled( DkimEnabled, Identity; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "SetIdentityDkimEnabled", + Dict{String,Any}("DkimEnabled" => DkimEnabled, "Identity" => Identity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SetIdentityDkimEnabled", - Dict{String,Any}("DkimEnabled" => DkimEnabled, "Identity" => Identity); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_identity_dkim_enabled( DkimEnabled, Identity, @@ -2512,16 +2407,14 @@ Amazon SES, see the Amazon SES Developer Guide. Examples: user@example.com, example.com. """ -function set_identity_feedback_forwarding_enabled( +set_identity_feedback_forwarding_enabled( ForwardingEnabled, Identity; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "SetIdentityFeedbackForwardingEnabled", + Dict{String,Any}("ForwardingEnabled" => ForwardingEnabled, "Identity" => Identity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SetIdentityFeedbackForwardingEnabled", - Dict{String,Any}("ForwardingEnabled" => ForwardingEnabled, "Identity" => Identity); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_identity_feedback_forwarding_enabled( ForwardingEnabled, Identity, @@ -2565,20 +2458,18 @@ information about using notifications with Amazon SES, see the Amazon SES Develo notifications. """ -function set_identity_headers_in_notifications_enabled( +set_identity_headers_in_notifications_enabled( Enabled, Identity, NotificationType; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "SetIdentityHeadersInNotificationsEnabled", + Dict{String,Any}( + "Enabled" => Enabled, + "Identity" => Identity, + "NotificationType" => NotificationType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SetIdentityHeadersInNotificationsEnabled", - Dict{String,Any}( - "Enabled" => Enabled, - "Identity" => Identity, - "NotificationType" => NotificationType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_identity_headers_in_notifications_enabled( Enabled, Identity, @@ -2632,16 +2523,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (for more information, see the Amazon SES Developer Guide), and 3) not be used to receive emails. A value of null disables the custom MAIL FROM setting for the identity. """ -function set_identity_mail_from_domain( +set_identity_mail_from_domain( Identity; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "SetIdentityMailFromDomain", + Dict{String,Any}("Identity" => Identity); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SetIdentityMailFromDomain", - Dict{String,Any}("Identity" => Identity); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_identity_mail_from_domain( Identity, params::AbstractDict{String}; @@ -2684,16 +2573,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys omitted from the request or a null value is passed, SnsTopic is cleared and publishing is disabled. """ -function set_identity_notification_topic( +set_identity_notification_topic( Identity, NotificationType; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "SetIdentityNotificationTopic", + Dict{String,Any}("Identity" => Identity, "NotificationType" => NotificationType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SetIdentityNotificationTopic", - Dict{String,Any}("Identity" => Identity, "NotificationType" => NotificationType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_identity_notification_topic( Identity, NotificationType, @@ -2733,16 +2620,14 @@ operation no more than once per second. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"After"`: The name of the receipt rule after which to place the specified receipt rule. """ -function set_receipt_rule_position( +set_receipt_rule_position( RuleName, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "SetReceiptRulePosition", + Dict{String,Any}("RuleName" => RuleName, "RuleSetName" => RuleSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "SetReceiptRulePosition", - Dict{String,Any}("RuleName" => RuleName, "RuleSetName" => RuleSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_receipt_rule_position( RuleName, RuleSetName, @@ -2777,16 +2662,14 @@ of replacement data. You can execute this operation no more than once per second - `template_name`: The name of the template to render. """ -function test_render_template( +test_render_template( TemplateData, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "TestRenderTemplate", + Dict{String,Any}("TemplateData" => TemplateData, "TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "TestRenderTemplate", - Dict{String,Any}("TemplateData" => TemplateData, "TemplateName" => TemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_render_template( TemplateData, TemplateName, @@ -2825,15 +2708,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Enabled"`: Describes whether email sending is enabled or disabled for your Amazon SES account in the current Amazon Web Services Region. """ -function update_account_sending_enabled(; - aws_config::AbstractAWSConfig=current_aws_config() +update_account_sending_enabled(; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "UpdateAccountSendingEnabled"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "UpdateAccountSendingEnabled"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_account_sending_enabled( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2864,21 +2743,19 @@ You can execute this operation no more than once per second. - `event_destination`: The event destination object. """ -function update_configuration_set_event_destination( +update_configuration_set_event_destination( ConfigurationSetName, EventDestination; aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "UpdateConfigurationSetEventDestination", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "EventDestination" => EventDestination, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "UpdateConfigurationSetEventDestination", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "EventDestination" => EventDestination, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_set_event_destination( ConfigurationSetName, EventDestination, @@ -2918,18 +2795,14 @@ execute this operation no more than once per second. configuration set, such as bounce and complaint rates, to Amazon CloudWatch. """ -function update_configuration_set_reputation_metrics_enabled( +update_configuration_set_reputation_metrics_enabled( ConfigurationSetName, Enabled; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "UpdateConfigurationSetReputationMetricsEnabled", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName, "Enabled" => Enabled); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "UpdateConfigurationSetReputationMetricsEnabled", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, "Enabled" => Enabled - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_set_reputation_metrics_enabled( ConfigurationSetName, Enabled, @@ -2968,18 +2841,14 @@ exceed certain thresholds. You can execute this operation no more than once per set. """ -function update_configuration_set_sending_enabled( +update_configuration_set_sending_enabled( ConfigurationSetName, Enabled; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "UpdateConfigurationSetSendingEnabled", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName, "Enabled" => Enabled); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "UpdateConfigurationSetSendingEnabled", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, "Enabled" => Enabled - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_set_sending_enabled( ConfigurationSetName, Enabled, @@ -3017,21 +2886,19 @@ Developer Guide. - `tracking_options`: """ -function update_configuration_set_tracking_options( +update_configuration_set_tracking_options( ConfigurationSetName, TrackingOptions; aws_config::AbstractAWSConfig=current_aws_config(), +) = ses( + "UpdateConfigurationSetTrackingOptions", + Dict{String,Any}( + "ConfigurationSetName" => ConfigurationSetName, + "TrackingOptions" => TrackingOptions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "UpdateConfigurationSetTrackingOptions", - Dict{String,Any}( - "ConfigurationSetName" => ConfigurationSetName, - "TrackingOptions" => TrackingOptions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_set_tracking_options( ConfigurationSetName, TrackingOptions, @@ -3079,16 +2946,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon SES Developer Guide. - `"TemplateSubject"`: The subject line of the custom verification email. """ -function update_custom_verification_email_template( +update_custom_verification_email_template( TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = ses( + "UpdateCustomVerificationEmailTemplate", + Dict{String,Any}("TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ses( - "UpdateCustomVerificationEmailTemplate", - Dict{String,Any}("TemplateName" => TemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_custom_verification_email_template( TemplateName, params::AbstractDict{String}; @@ -3116,16 +2981,13 @@ Developer Guide. You can execute this operation no more than once per second. - `rule_set_name`: The name of the receipt rule set that the receipt rule belongs to. """ -function update_receipt_rule( - Rule, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ses( +update_receipt_rule(Rule, RuleSetName; aws_config::AbstractAWSConfig=current_aws_config()) = + ses( "UpdateReceiptRule", Dict{String,Any}("Rule" => Rule, "RuleSetName" => RuleSetName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_receipt_rule( Rule, RuleSetName, @@ -3158,14 +3020,12 @@ Guide. You can execute this operation no more than once per second. - `template`: """ -function update_template(Template; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "UpdateTemplate", - Dict{String,Any}("Template" => Template); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_template(Template; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "UpdateTemplate", + Dict{String,Any}("Template" => Template); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_template( Template, params::AbstractDict{String}; @@ -3206,14 +3066,12 @@ operation no more than once per second. - `domain`: The name of the domain to be verified for Easy DKIM signing. """ -function verify_domain_dkim(Domain; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "VerifyDomainDkim", - Dict{String,Any}("Domain" => Domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +verify_domain_dkim(Domain; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "VerifyDomainDkim", + Dict{String,Any}("Domain" => Domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function verify_domain_dkim( Domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3238,14 +3096,12 @@ can execute this operation no more than once per second. - `domain`: The domain to be verified. """ -function verify_domain_identity(Domain; aws_config::AbstractAWSConfig=current_aws_config()) - return ses( - "VerifyDomainIdentity", - Dict{String,Any}("Domain" => Domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +verify_domain_identity(Domain; aws_config::AbstractAWSConfig=current_aws_config()) = ses( + "VerifyDomainIdentity", + Dict{String,Any}("Domain" => Domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function verify_domain_identity( Domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3267,16 +3123,13 @@ Deprecated. Use the VerifyEmailIdentity operation to verify a new email address. - `email_address`: The email address to be verified. """ -function verify_email_address( - EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() -) - return ses( +verify_email_address(EmailAddress; aws_config::AbstractAWSConfig=current_aws_config()) = + ses( "VerifyEmailAddress", Dict{String,Any}("EmailAddress" => EmailAddress); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function verify_email_address( EmailAddress, params::AbstractDict{String}; @@ -3305,16 +3158,13 @@ operation no more than once per second. - `email_address`: The email address to be verified. """ -function verify_email_identity( - EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() -) - return ses( +verify_email_identity(EmailAddress; aws_config::AbstractAWSConfig=current_aws_config()) = + ses( "VerifyEmailIdentity", Dict{String,Any}("EmailAddress" => EmailAddress); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function verify_email_identity( EmailAddress, params::AbstractDict{String}; diff --git a/src/services/sesv2.jl b/src/services/sesv2.jl index 9f14cc99e..0f9c388d8 100644 --- a/src/services/sesv2.jl +++ b/src/services/sesv2.jl @@ -16,15 +16,13 @@ batches per second (cumulative). - `queries`: A list of queries for metrics to be retrieved. """ -function batch_get_metric_data(Queries; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "POST", - "/v2/email/metrics/batch", - Dict{String,Any}("Queries" => Queries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_metric_data(Queries; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "POST", + "/v2/email/metrics/batch", + Dict{String,Any}("Queries" => Queries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_metric_data( Queries, params::AbstractDict{String}; @@ -49,14 +47,12 @@ Cancels an export job. - `job_id`: The export job ID. """ -function cancel_export_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "PUT", - "/v2/email/export-jobs/$(JobId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_export_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "PUT", + "/v2/email/export-jobs/$(JobId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_export_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -100,17 +96,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VdmOptions"`: An object that defines the VDM options for emails that you send using the configuration set. """ -function create_configuration_set( +create_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/configuration-sets", + Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/configuration-sets", - Dict{String,Any}("ConfigurationSetName" => ConfigurationSetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -148,23 +142,21 @@ than one event destination. configuration set. """ -function create_configuration_set_event_destination( +create_configuration_set_event_destination( ConfigurationSetName, EventDestination, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sesv2( + "POST", + "/v2/email/configuration-sets/$(ConfigurationSetName)/event-destinations", + Dict{String,Any}( + "EventDestination" => EventDestination, + "EventDestinationName" => EventDestinationName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/configuration-sets/$(ConfigurationSetName)/event-destinations", - Dict{String,Any}( - "EventDestination" => EventDestination, - "EventDestinationName" => EventDestinationName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_configuration_set_event_destination( ConfigurationSetName, EventDestination, @@ -209,17 +201,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UnsubscribeAll"`: A boolean value status noting if the contact is unsubscribed from all contact list topics. """ -function create_contact( +create_contact( ContactListName, EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/contact-lists/$(ContactListName)/contacts", + Dict{String,Any}("EmailAddress" => EmailAddress); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/contact-lists/$(ContactListName)/contacts", - Dict{String,Any}("EmailAddress" => EmailAddress); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_contact( ContactListName, EmailAddress, @@ -253,17 +243,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Topics"`: An interest group, theme, or label within a list. A contact list can have multiple topics. """ -function create_contact_list( - ContactListName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +create_contact_list(ContactListName; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "POST", "/v2/email/contact-lists", Dict{String,Any}("ContactListName" => ContactListName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_contact_list( ContactListName, params::AbstractDict{String}; @@ -304,7 +291,7 @@ SES Developer Guide. You can execute this operation no more than once per second - `template_subject`: The subject line of the custom verification email. """ -function create_custom_verification_email_template( +create_custom_verification_email_template( FailureRedirectionURL, FromEmailAddress, SuccessRedirectionURL, @@ -312,22 +299,20 @@ function create_custom_verification_email_template( TemplateName, TemplateSubject; aws_config::AbstractAWSConfig=current_aws_config(), +) = sesv2( + "POST", + "/v2/email/custom-verification-email-templates", + Dict{String,Any}( + "FailureRedirectionURL" => FailureRedirectionURL, + "FromEmailAddress" => FromEmailAddress, + "SuccessRedirectionURL" => SuccessRedirectionURL, + "TemplateContent" => TemplateContent, + "TemplateName" => TemplateName, + "TemplateSubject" => TemplateSubject, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/custom-verification-email-templates", - Dict{String,Any}( - "FailureRedirectionURL" => FailureRedirectionURL, - "FromEmailAddress" => FromEmailAddress, - "SuccessRedirectionURL" => SuccessRedirectionURL, - "TemplateContent" => TemplateContent, - "TemplateName" => TemplateName, - "TemplateSubject" => TemplateSubject, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_verification_email_template( FailureRedirectionURL, FromEmailAddress, @@ -378,17 +363,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An object that defines the tags (keys and values) that you want to associate with the pool. """ -function create_dedicated_ip_pool( - PoolName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +create_dedicated_ip_pool(PoolName; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "POST", "/v2/email/dedicated-ip-pools", Dict{String,Any}("PoolName" => PoolName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_dedicated_ip_pool( PoolName, params::AbstractDict{String}; @@ -430,17 +412,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An array of objects that define the tags (keys and values) that you want to associate with the predictive inbox placement test. """ -function create_deliverability_test_report( +create_deliverability_test_report( Content, FromEmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/deliverability-dashboard/test", + Dict{String,Any}("Content" => Content, "FromEmailAddress" => FromEmailAddress); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/deliverability-dashboard/test", - Dict{String,Any}("Content" => Content, "FromEmailAddress" => FromEmailAddress); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_deliverability_test_report( Content, FromEmailAddress, @@ -505,17 +485,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: An array of objects that define the tags (keys and values) to associate with the email identity. """ -function create_email_identity( - EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +create_email_identity(EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "POST", "/v2/email/identities", Dict{String,Any}("EmailIdentity" => EmailIdentity); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_email_identity( EmailIdentity, params::AbstractDict{String}; @@ -552,17 +529,15 @@ operation no more than once per second. can only include alphanumeric characters, dashes, and underscores. """ -function create_email_identity_policy( +create_email_identity_policy( EmailIdentity, Policy, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/identities/$(EmailIdentity)/policies/$(PolicyName)", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/identities/$(EmailIdentity)/policies/$(PolicyName)", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_email_identity_policy( EmailIdentity, Policy, @@ -593,19 +568,15 @@ Developer Guide. You can execute this operation no more than once per second. - `template_name`: The name of the template. """ -function create_email_template( +create_email_template( TemplateContent, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/templates", + Dict{String,Any}("TemplateContent" => TemplateContent, "TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/templates", - Dict{String,Any}( - "TemplateContent" => TemplateContent, "TemplateName" => TemplateName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_email_template( TemplateContent, TemplateName, @@ -641,19 +612,17 @@ more than once per second. - `export_destination`: The destination for the export job. """ -function create_export_job( +create_export_job( ExportDataSource, ExportDestination; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/export-jobs", + Dict{String,Any}( + "ExportDataSource" => ExportDataSource, "ExportDestination" => ExportDestination + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/export-jobs", - Dict{String,Any}( - "ExportDataSource" => ExportDataSource, "ExportDestination" => ExportDestination - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_export_job( ExportDataSource, ExportDestination, @@ -689,19 +658,17 @@ Creates an import job for a data destination. - `import_destination`: The destination for the import job. """ -function create_import_job( +create_import_job( ImportDataSource, ImportDestination; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/import-jobs", + Dict{String,Any}( + "ImportDataSource" => ImportDataSource, "ImportDestination" => ImportDestination + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/import-jobs", - Dict{String,Any}( - "ImportDataSource" => ImportDataSource, "ImportDestination" => ImportDestination - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_import_job( ImportDataSource, ImportDestination, @@ -740,16 +707,14 @@ the email. - `configuration_set_name`: The name of the configuration set. """ -function delete_configuration_set( +delete_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "DELETE", + "/v2/email/configuration-sets/$(ConfigurationSetName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "DELETE", - "/v2/email/configuration-sets/$(ConfigurationSetName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -779,18 +744,16 @@ rule to send the event to the specified target. - `event_destination_name`: The name of the event destination to delete. """ -function delete_configuration_set_event_destination( +delete_configuration_set_event_destination( ConfigurationSetName, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sesv2( + "DELETE", + "/v2/email/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "DELETE", - "/v2/email/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_configuration_set_event_destination( ConfigurationSetName, EventDestinationName, @@ -818,16 +781,14 @@ Removes a contact from a contact list. - `email_address`: The contact's email address. """ -function delete_contact( +delete_contact( ContactListName, EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "DELETE", + "/v2/email/contact-lists/$(ContactListName)/contacts/$(EmailAddress)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "DELETE", - "/v2/email/contact-lists/$(ContactListName)/contacts/$(EmailAddress)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_contact( ContactListName, EmailAddress, @@ -853,16 +814,13 @@ Deletes a contact list and all of the contacts on that list. - `contact_list_name`: The name of the contact list. """ -function delete_contact_list( - ContactListName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +delete_contact_list(ContactListName; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "DELETE", "/v2/email/contact-lists/$(ContactListName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_contact_list( ContactListName, params::AbstractDict{String}; @@ -890,16 +848,14 @@ SES Developer Guide. You can execute this operation no more than once per second delete. """ -function delete_custom_verification_email_template( +delete_custom_verification_email_template( TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "DELETE", + "/v2/email/custom-verification-email-templates/$(TemplateName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "DELETE", - "/v2/email/custom-verification-email-templates/$(TemplateName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_custom_verification_email_template( TemplateName, params::AbstractDict{String}; @@ -924,16 +880,13 @@ Delete a dedicated IP pool. - `pool_name`: The name of the dedicated IP pool that you want to delete. """ -function delete_dedicated_ip_pool( - PoolName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +delete_dedicated_ip_pool(PoolName; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "DELETE", "/v2/email/dedicated-ip-pools/$(PoolName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_dedicated_ip_pool( PoolName, params::AbstractDict{String}; @@ -958,16 +911,13 @@ Deletes an email identity. An identity can be either an email address or a domai - `email_identity`: The identity (that is, the email address or domain) to delete. """ -function delete_email_identity( - EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +delete_email_identity(EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "DELETE", "/v2/email/identities/$(EmailIdentity)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_email_identity( EmailIdentity, params::AbstractDict{String}; @@ -1000,16 +950,14 @@ than once per second. can only include alphanumeric characters, dashes, and underscores. """ -function delete_email_identity_policy( +delete_email_identity_policy( EmailIdentity, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "DELETE", + "/v2/email/identities/$(EmailIdentity)/policies/$(PolicyName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "DELETE", - "/v2/email/identities/$(EmailIdentity)/policies/$(PolicyName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_email_identity_policy( EmailIdentity, PolicyName, @@ -1035,16 +983,13 @@ Deletes an email template. You can execute this operation no more than once per - `template_name`: The name of the template to be deleted. """ -function delete_email_template( - TemplateName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +delete_email_template(TemplateName; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "DELETE", "/v2/email/templates/$(TemplateName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_email_template( TemplateName, params::AbstractDict{String}; @@ -1070,16 +1015,14 @@ Removes an email address from the suppression list for your account. list. """ -function delete_suppressed_destination( +delete_suppressed_destination( EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "DELETE", + "/v2/email/suppression/addresses/$(EmailAddress)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "DELETE", - "/v2/email/suppression/addresses/$(EmailAddress)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_suppressed_destination( EmailAddress, params::AbstractDict{String}; @@ -1102,11 +1045,9 @@ Obtain information about the email-sending status and capabilities of your Amazo account in the current Amazon Web Services Region. """ -function get_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", "/v2/email/account"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", "/v2/email/account"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1131,17 +1072,15 @@ Retrieve a list of the blacklists that your dedicated IP addresses appear on. email using Amazon SES or Amazon Pinpoint. """ -function get_blacklist_reports( +get_blacklist_reports( BlacklistItemNames; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/deliverability-dashboard/blacklist-report", + Dict{String,Any}("BlacklistItemNames" => BlacklistItemNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/deliverability-dashboard/blacklist-report", - Dict{String,Any}("BlacklistItemNames" => BlacklistItemNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_blacklist_reports( BlacklistItemNames, params::AbstractDict{String}; @@ -1175,16 +1114,14 @@ that configuration set are applied to the email. - `configuration_set_name`: The name of the configuration set. """ -function get_configuration_set( +get_configuration_set( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/configuration-sets/$(ConfigurationSetName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/configuration-sets/$(ConfigurationSetName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configuration_set( ConfigurationSetName, params::AbstractDict{String}; @@ -1214,16 +1151,14 @@ specified target. destination. """ -function get_configuration_set_event_destinations( +get_configuration_set_event_destinations( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/configuration-sets/$(ConfigurationSetName)/event-destinations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/configuration-sets/$(ConfigurationSetName)/event-destinations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_configuration_set_event_destinations( ConfigurationSetName, params::AbstractDict{String}; @@ -1249,16 +1184,14 @@ Returns a contact from a contact list. - `email_address`: The contact's email address. """ -function get_contact( +get_contact( ContactListName, EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/contact-lists/$(ContactListName)/contacts/$(EmailAddress)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/contact-lists/$(ContactListName)/contacts/$(EmailAddress)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_contact( ContactListName, EmailAddress, @@ -1285,16 +1218,13 @@ present in the list. - `contact_list_name`: The name of the contact list. """ -function get_contact_list( - ContactListName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +get_contact_list(ContactListName; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "GET", "/v2/email/contact-lists/$(ContactListName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_contact_list( ContactListName, params::AbstractDict{String}; @@ -1323,16 +1253,14 @@ once per second. retrieve. """ -function get_custom_verification_email_template( +get_custom_verification_email_template( TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/custom-verification-email-templates/$(TemplateName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/custom-verification-email-templates/$(TemplateName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_custom_verification_email_template( TemplateName, params::AbstractDict{String}; @@ -1361,14 +1289,12 @@ address. account. """ -function get_dedicated_ip(IP; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/dedicated-ips/$(IP)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_dedicated_ip(IP; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/dedicated-ips/$(IP)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_dedicated_ip( IP, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1391,14 +1317,12 @@ Retrieve information about the dedicated pool. - `pool_name`: The name of the dedicated IP pool to retrieve. """ -function get_dedicated_ip_pool(PoolName; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/dedicated-ip-pools/$(PoolName)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_dedicated_ip_pool(PoolName; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/dedicated-ip-pools/$(PoolName)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_dedicated_ip_pool( PoolName, params::AbstractDict{String}; @@ -1428,14 +1352,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the response includes a NextToken element, which you can use to obtain additional results. - `"PoolName"`: The name of the IP pool that the dedicated IP address is associated with. """ -function get_dedicated_ips(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/dedicated-ips"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_dedicated_ips(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/dedicated-ips"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_dedicated_ips( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1462,16 +1384,13 @@ about the features and cost of a Deliverability dashboard subscription, see Amaz Pricing. """ -function get_deliverability_dashboard_options(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +get_deliverability_dashboard_options(; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "GET", "/v2/email/deliverability-dashboard"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_deliverability_dashboard_options( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1494,16 +1413,14 @@ Retrieve the results of a predictive inbox placement test. - `report_id`: A unique string that identifies the predictive inbox placement test. """ -function get_deliverability_test_report( +get_deliverability_test_report( ReportId; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/deliverability-dashboard/test-reports/$(ReportId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/deliverability-dashboard/test-reports/$(ReportId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deliverability_test_report( ReportId, params::AbstractDict{String}; @@ -1531,16 +1448,14 @@ dashboard is enabled for. automatically generates and assigns this identifier to a campaign. """ -function get_domain_deliverability_campaign( +get_domain_deliverability_campaign( CampaignId; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/deliverability-dashboard/campaigns/$(CampaignId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/deliverability-dashboard/campaigns/$(CampaignId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_domain_deliverability_campaign( CampaignId, params::AbstractDict{String}; @@ -1570,17 +1485,15 @@ Retrieve inbox placement and engagement rates for the domains that you use to se metrics for. """ -function get_domain_statistics_report( +get_domain_statistics_report( Domain, EndDate, StartDate; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/deliverability-dashboard/statistics-report/$(Domain)", + Dict{String,Any}("EndDate" => EndDate, "StartDate" => StartDate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/deliverability-dashboard/statistics-report/$(Domain)", - Dict{String,Any}("EndDate" => EndDate, "StartDate" => StartDate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_domain_statistics_report( Domain, EndDate, @@ -1615,16 +1528,13 @@ Mail-From settings. - `email_identity`: The email identity. """ -function get_email_identity( - EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +get_email_identity(EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "GET", "/v2/email/identities/$(EmailIdentity)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_email_identity( EmailIdentity, params::AbstractDict{String}; @@ -1655,16 +1565,14 @@ Amazon SES Developer Guide. You can execute this operation no more than once per - `email_identity`: The email identity. """ -function get_email_identity_policies( +get_email_identity_policies( EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/identities/$(EmailIdentity)/policies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/identities/$(EmailIdentity)/policies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_email_identity_policies( EmailIdentity, params::AbstractDict{String}; @@ -1690,16 +1598,13 @@ the template you specify. You can execute this operation no more than once per s - `template_name`: The name of the template. """ -function get_email_template( - TemplateName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +get_email_template(TemplateName; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "GET", "/v2/email/templates/$(TemplateName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_email_template( TemplateName, params::AbstractDict{String}; @@ -1724,14 +1629,12 @@ Provides information about an export job. - `job_id`: The export job ID. """ -function get_export_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/export-jobs/$(JobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_export_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/export-jobs/$(JobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_export_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1754,14 +1657,12 @@ Provides information about an import job. - `job_id`: The ID of the import job. """ -function get_import_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/import-jobs/$(JobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_import_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/import-jobs/$(JobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_import_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1787,14 +1688,12 @@ execute this operation no more than once per second. sending emails through Amazon SES. """ -function get_message_insights(MessageId; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/insights/$(MessageId)/"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_message_insights(MessageId; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/insights/$(MessageId)/"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_message_insights( MessageId, params::AbstractDict{String}; @@ -1820,16 +1719,14 @@ your account. - `email_address`: The email address that's on the account suppression list. """ -function get_suppressed_destination( +get_suppressed_destination( EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/suppression/addresses/$(EmailAddress)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/suppression/addresses/$(EmailAddress)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_suppressed_destination( EmailAddress, params::AbstractDict{String}; @@ -1862,14 +1759,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results. """ -function list_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/configuration-sets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_configuration_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/configuration-sets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_configuration_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1899,14 +1794,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional lists. """ -function list_contact_lists(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/contact-lists"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_contact_lists(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/contact-lists"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_contact_lists( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1940,14 +1833,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional contacts. """ -function list_contacts(ContactListName; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "POST", - "/v2/email/contact-lists/$(ContactListName)/contacts/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_contacts(ContactListName; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "POST", + "/v2/email/contact-lists/$(ContactListName)/contacts/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_contacts( ContactListName, params::AbstractDict{String}; @@ -1982,16 +1873,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can use to obtain additional results. The value you specify has to be at least 1, and can be no more than 50. """ -function list_custom_verification_email_templates(; +list_custom_verification_email_templates(; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/custom-verification-email-templates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/custom-verification-email-templates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_custom_verification_email_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2019,14 +1908,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results. """ -function list_dedicated_ip_pools(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/dedicated-ip-pools"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_dedicated_ip_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/dedicated-ip-pools"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_dedicated_ip_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2057,16 +1944,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys use to obtain additional results. The value you specify has to be at least 0, and can be no more than 1000. """ -function list_deliverability_test_reports(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +list_deliverability_test_reports(; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "GET", "/v2/email/deliverability-dashboard/test-reports"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_deliverability_test_reports( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2103,17 +1987,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the number that you specify in this parameter, the response includes a NextToken element, which you can use to obtain additional results. """ -function list_domain_deliverability_campaigns( +list_domain_deliverability_campaigns( EndDate, StartDate, SubscribedDomain; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "GET", + "/v2/email/deliverability-dashboard/domains/$(SubscribedDomain)/campaigns", + Dict{String,Any}("EndDate" => EndDate, "StartDate" => StartDate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "GET", - "/v2/email/deliverability-dashboard/domains/$(SubscribedDomain)/campaigns", - Dict{String,Any}("EndDate" => EndDate, "StartDate" => StartDate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_domain_deliverability_campaigns( EndDate, StartDate, @@ -2154,14 +2036,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response includes a NextToken element, which you can use to obtain additional results. The value you specify has to be at least 0, and can be no more than 1000. """ -function list_email_identities(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/identities"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_email_identities(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/identities"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_email_identities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2190,11 +2070,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response includes a NextToken element, which you can use to obtain additional results. The value you specify has to be at least 1, and can be no more than 100. """ -function list_email_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", "/v2/email/templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_email_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", "/v2/email/templates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_email_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2225,14 +2103,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys element is sent in the response. Use the NextToken value in subsequent calls to ListExportJobs to retrieve additional export jobs. """ -function list_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "POST", - "/v2/email/list-export-jobs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_export_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "POST", + "/v2/email/list-export-jobs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_export_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2263,14 +2139,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional addresses. """ -function list_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "POST", - "/v2/email/import-jobs/list"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_import_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "POST", + "/v2/email/import-jobs/list"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_import_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2301,14 +2175,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response includes a NextToken element, which you can use to obtain additional results. The value you specify has to be at least 1, and can be no more than 100. """ -function list_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "POST", - "/v2/email/vdm/recommendations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "POST", + "/v2/email/vdm/recommendations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2341,14 +2213,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartDate"`: Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list after a specific date. """ -function list_suppressed_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "GET", - "/v2/email/suppression/addresses"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_suppressed_destinations(; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "GET", + "/v2/email/suppression/addresses"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_suppressed_destinations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2376,17 +2246,14 @@ descriptor within a tag key. tag information for. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "GET", "/v2/email/tags", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2416,16 +2283,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services Region. Set to true to enable the automatic warm-up feature, or set to false to disable it. """ -function put_account_dedicated_ip_warmup_attributes(; +put_account_dedicated_ip_warmup_attributes(; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/account/dedicated-ips/warmup"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/account/dedicated-ips/warmup"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_dedicated_ip_warmup_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2439,14 +2304,13 @@ function put_account_dedicated_ip_warmup_attributes( end """ - put_account_details(mail_type, use_case_description, website_url) - put_account_details(mail_type, use_case_description, website_url, params::Dict{String,<:Any}) + put_account_details(mail_type, website_url) + put_account_details(mail_type, website_url, params::Dict{String,<:Any}) Update your Amazon SES account details. # Arguments - `mail_type`: The type of email your account will send. -- `use_case_description`: A description of the types of email that you plan to send. - `website_url`: The URL of your website. This information helps us better understand the type of content that you plan to send. @@ -2461,28 +2325,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys identities. If the value is true, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case. +- `"UseCaseDescription"`: A description of the types of email that you plan to send. """ -function put_account_details( - MailType, - UseCaseDescription, - WebsiteURL; - aws_config::AbstractAWSConfig=current_aws_config(), +put_account_details( + MailType, WebsiteURL; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/account/details", + Dict{String,Any}("MailType" => MailType, "WebsiteURL" => WebsiteURL); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/account/details", - Dict{String,Any}( - "MailType" => MailType, - "UseCaseDescription" => UseCaseDescription, - "WebsiteURL" => WebsiteURL, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_details( MailType, - UseCaseDescription, WebsiteURL, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config(), @@ -2493,11 +2348,7 @@ function put_account_details( Dict{String,Any}( mergewith( _merge, - Dict{String,Any}( - "MailType" => MailType, - "UseCaseDescription" => UseCaseDescription, - "WebsiteURL" => WebsiteURL, - ), + Dict{String,Any}("MailType" => MailType, "WebsiteURL" => WebsiteURL), params, ), ); @@ -2519,16 +2370,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys paused your account's ability to send email, you can't use this operation to resume your account's ability to send email. """ -function put_account_sending_attributes(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +put_account_sending_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "PUT", "/v2/email/account/sending"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_account_sending_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2556,16 +2404,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce. """ -function put_account_suppression_attributes(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +put_account_suppression_attributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "PUT", "/v2/email/account/suppression"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_account_suppression_attributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2589,17 +2434,15 @@ once per second. - `vdm_attributes`: The VDM attributes that you wish to apply to your Amazon SES account. """ -function put_account_vdm_attributes( +put_account_vdm_attributes( VdmAttributes; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/account/vdm", + Dict{String,Any}("VdmAttributes" => VdmAttributes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/account/vdm", - Dict{String,Any}("VdmAttributes" => VdmAttributes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_account_vdm_attributes( VdmAttributes, params::AbstractDict{String}; @@ -2636,16 +2479,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established. """ -function put_configuration_set_delivery_options( +put_configuration_set_delivery_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/configuration-sets/$(ConfigurationSetName)/delivery-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/configuration-sets/$(ConfigurationSetName)/delivery-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_delivery_options( ConfigurationSetName, params::AbstractDict{String}; @@ -2676,16 +2517,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys configuration set. If false, tracking of reputation metrics is disabled for the configuration set. """ -function put_configuration_set_reputation_options( +put_configuration_set_reputation_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/configuration-sets/$(ConfigurationSetName)/reputation-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/configuration-sets/$(ConfigurationSetName)/reputation-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_reputation_options( ConfigurationSetName, params::AbstractDict{String}; @@ -2716,16 +2555,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SendingEnabled"`: If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set. """ -function put_configuration_set_sending_options( +put_configuration_set_sending_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/configuration-sets/$(ConfigurationSetName)/sending"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/configuration-sets/$(ConfigurationSetName)/sending"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_sending_options( ConfigurationSetName, params::AbstractDict{String}; @@ -2759,16 +2596,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce. """ -function put_configuration_set_suppression_options( +put_configuration_set_suppression_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/configuration-sets/$(ConfigurationSetName)/suppression-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/configuration-sets/$(ConfigurationSetName)/suppression-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_suppression_options( ConfigurationSetName, params::AbstractDict{String}; @@ -2796,16 +2631,14 @@ Specify a custom domain to use for open and click tracking elements in email tha Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"CustomRedirectDomain"`: The domain to use to track open and click events. """ -function put_configuration_set_tracking_options( +put_configuration_set_tracking_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/configuration-sets/$(ConfigurationSetName)/tracking-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/configuration-sets/$(ConfigurationSetName)/tracking-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_tracking_options( ConfigurationSetName, params::AbstractDict{String}; @@ -2834,16 +2667,14 @@ execute this operation no more than once per second. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"VdmOptions"`: The VDM options to apply to the configuration set. """ -function put_configuration_set_vdm_options( +put_configuration_set_vdm_options( ConfigurationSetName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/configuration-sets/$(ConfigurationSetName)/vdm-options"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/configuration-sets/$(ConfigurationSetName)/vdm-options"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_configuration_set_vdm_options( ConfigurationSetName, params::AbstractDict{String}; @@ -2875,17 +2706,15 @@ by using the CreateDedicatedIpPool operation. account. """ -function put_dedicated_ip_in_pool( +put_dedicated_ip_in_pool( DestinationPoolName, IP; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/dedicated-ips/$(IP)/pool", + Dict{String,Any}("DestinationPoolName" => DestinationPoolName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/dedicated-ips/$(IP)/pool", - Dict{String,Any}("DestinationPoolName" => DestinationPoolName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_dedicated_ip_in_pool( DestinationPoolName, IP, @@ -2920,17 +2749,15 @@ converted to STANDARD scaling mode. mode from MANAGED to STANDARD is not supported. """ -function put_dedicated_ip_pool_scaling_attributes( +put_dedicated_ip_pool_scaling_attributes( PoolName, ScalingMode; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/dedicated-ip-pools/$(PoolName)/scaling", + Dict{String,Any}("ScalingMode" => ScalingMode); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/dedicated-ip-pools/$(PoolName)/scaling", - Dict{String,Any}("ScalingMode" => ScalingMode); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_dedicated_ip_pool_scaling_attributes( PoolName, ScalingMode, @@ -2960,17 +2787,15 @@ end IP address. """ -function put_dedicated_ip_warmup_attributes( +put_dedicated_ip_warmup_attributes( IP, WarmupPercentage; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/dedicated-ips/$(IP)/warmup", + Dict{String,Any}("WarmupPercentage" => WarmupPercentage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/dedicated-ips/$(IP)/warmup", - Dict{String,Any}("WarmupPercentage" => WarmupPercentage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_dedicated_ip_warmup_attributes( IP, WarmupPercentage, @@ -3011,17 +2836,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubscribedDomains"`: An array of objects, one for each verified domain that you use to send email and enabled the Deliverability dashboard for. """ -function put_deliverability_dashboard_option( +put_deliverability_dashboard_option( DashboardEnabled; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/deliverability-dashboard", + Dict{String,Any}("DashboardEnabled" => DashboardEnabled); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/deliverability-dashboard", - Dict{String,Any}("DashboardEnabled" => DashboardEnabled); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_deliverability_dashboard_option( DashboardEnabled, params::AbstractDict{String}; @@ -3053,16 +2876,14 @@ Used to associate a configuration set with an email identity. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ConfigurationSetName"`: The configuration set to associate with an email identity. """ -function put_email_identity_configuration_set_attributes( +put_email_identity_configuration_set_attributes( EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/identities/$(EmailIdentity)/configuration-set"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/identities/$(EmailIdentity)/configuration-set"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_identity_configuration_set_attributes( EmailIdentity, params::AbstractDict{String}; @@ -3092,16 +2913,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this value true, then the messages that are sent from the identity are signed using DKIM. If you set this value to false, your messages are sent without DKIM signing. """ -function put_email_identity_dkim_attributes( +put_email_identity_dkim_attributes( EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/identities/$(EmailIdentity)/dkim"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/identities/$(EmailIdentity)/dkim"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_identity_dkim_attributes( EmailIdentity, params::AbstractDict{String}; @@ -3140,19 +2959,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM. """ -function put_email_identity_dkim_signing_attributes( +put_email_identity_dkim_signing_attributes( EmailIdentity, SigningAttributesOrigin; aws_config::AbstractAWSConfig=current_aws_config(), +) = sesv2( + "PUT", + "/v1/email/identities/$(EmailIdentity)/dkim/signing", + Dict{String,Any}("SigningAttributesOrigin" => SigningAttributesOrigin); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v1/email/identities/$(EmailIdentity)/dkim/signing", - Dict{String,Any}("SigningAttributesOrigin" => SigningAttributesOrigin); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_identity_dkim_signing_attributes( EmailIdentity, SigningAttributesOrigin, @@ -3200,16 +3017,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys notifications (for example, by setting up an event destination), you receive an email notification when these events occur (even if this setting is disabled). """ -function put_email_identity_feedback_attributes( +put_email_identity_feedback_attributes( EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/identities/$(EmailIdentity)/feedback"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/identities/$(EmailIdentity)/feedback"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_identity_feedback_attributes( EmailIdentity, params::AbstractDict{String}; @@ -3246,16 +3061,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the verified identity. It can't be used to receive email. It can't be used in a \"From\" address if the MAIL FROM domain is a destination for feedback forwarding emails. """ -function put_email_identity_mail_from_attributes( +put_email_identity_mail_from_attributes( EmailIdentity; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/identities/$(EmailIdentity)/mail-from"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/identities/$(EmailIdentity)/mail-from"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_identity_mail_from_attributes( EmailIdentity, params::AbstractDict{String}; @@ -3283,17 +3096,15 @@ Adds an email address to the suppression list for your account. list for your account. """ -function put_suppressed_destination( +put_suppressed_destination( EmailAddress, Reason; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/suppression/addresses", + Dict{String,Any}("EmailAddress" => EmailAddress, "Reason" => Reason); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/suppression/addresses", - Dict{String,Any}("EmailAddress" => EmailAddress, "Reason" => Reason); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_suppressed_destination( EmailAddress, Reason, @@ -3358,19 +3169,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReplyToAddresses"`: The \"Reply-to\" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply. """ -function send_bulk_email( +send_bulk_email( BulkEmailEntries, DefaultContent; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/outbound-bulk-emails", + Dict{String,Any}( + "BulkEmailEntries" => BulkEmailEntries, "DefaultContent" => DefaultContent + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/outbound-bulk-emails", - Dict{String,Any}( - "BulkEmailEntries" => BulkEmailEntries, "DefaultContent" => DefaultContent - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_bulk_email( BulkEmailEntries, DefaultContent, @@ -3417,17 +3226,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ConfigurationSetName"`: Name of a configuration set to use when sending the verification email. """ -function send_custom_verification_email( +send_custom_verification_email( EmailAddress, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/outbound-custom-verification-emails", + Dict{String,Any}("EmailAddress" => EmailAddress, "TemplateName" => TemplateName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/outbound-custom-verification-emails", - Dict{String,Any}("EmailAddress" => EmailAddress, "TemplateName" => TemplateName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_custom_verification_email( EmailAddress, TemplateName, @@ -3506,15 +3313,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReplyToAddresses"`: The \"Reply-to\" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply. """ -function send_email(Content; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "POST", - "/v2/email/outbound-emails", - Dict{String,Any}("Content" => Content); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +send_email(Content; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "POST", + "/v2/email/outbound-emails", + Dict{String,Any}("Content" => Content); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function send_email( Content, params::AbstractDict{String}; @@ -3548,15 +3353,13 @@ a category for more specific tag values. A tag value acts as a descriptor within is 128 characters. The maximum length of a tag value is 256 characters. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return sesv2( - "POST", - "/v2/email/tags", - Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = sesv2( + "POST", + "/v2/email/tags", + Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceArn, Tags, @@ -3592,17 +3395,15 @@ of replacement data. You can execute this operation no more than once per second - `template_name`: The name of the template. """ -function test_render_email_template( +test_render_email_template( TemplateData, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "POST", + "/v2/email/templates/$(TemplateName)/render", + Dict{String,Any}("TemplateData" => TemplateData); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "POST", - "/v2/email/templates/$(TemplateName)/render", - Dict{String,Any}("TemplateData" => TemplateData); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_render_email_template( TemplateData, TemplateName, @@ -3636,17 +3437,14 @@ Remove one or more tags (keys and values) from a specified resource. /v2/email/tags?ResourceArn=ResourceArn&TagKeys=Key1&TagKeys=Key2 """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "DELETE", "/v2/email/tags", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -3684,20 +3482,18 @@ data to Amazon EventBridge and associate a rule to send the event to the specifi - `event_destination_name`: The name of the event destination. """ -function update_configuration_set_event_destination( +update_configuration_set_event_destination( ConfigurationSetName, EventDestination, EventDestinationName; aws_config::AbstractAWSConfig=current_aws_config(), +) = sesv2( + "PUT", + "/v2/email/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)", + Dict{String,Any}("EventDestination" => EventDestination); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/configuration-sets/$(ConfigurationSetName)/event-destinations/$(EventDestinationName)", - Dict{String,Any}("EventDestination" => EventDestination); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_configuration_set_event_destination( ConfigurationSetName, EventDestination, @@ -3738,16 +3534,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"UnsubscribeAll"`: A boolean value status noting if the contact is unsubscribed from all contact list topics. """ -function update_contact( +update_contact( ContactListName, EmailAddress; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/contact-lists/$(ContactListName)/contacts/$(EmailAddress)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/contact-lists/$(ContactListName)/contacts/$(EmailAddress)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact( ContactListName, EmailAddress, @@ -3778,16 +3572,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Topics"`: An interest group, theme, or label within a list. A contact list can have multiple topics. """ -function update_contact_list( - ContactListName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sesv2( +update_contact_list(ContactListName; aws_config::AbstractAWSConfig=current_aws_config()) = + sesv2( "PUT", "/v2/email/contact-lists/$(ContactListName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_contact_list( ContactListName, params::AbstractDict{String}; @@ -3825,7 +3616,7 @@ SES Developer Guide. You can execute this operation no more than once per second - `template_subject`: The subject line of the custom verification email. """ -function update_custom_verification_email_template( +update_custom_verification_email_template( FailureRedirectionURL, FromEmailAddress, SuccessRedirectionURL, @@ -3833,21 +3624,19 @@ function update_custom_verification_email_template( TemplateName, TemplateSubject; aws_config::AbstractAWSConfig=current_aws_config(), +) = sesv2( + "PUT", + "/v2/email/custom-verification-email-templates/$(TemplateName)", + Dict{String,Any}( + "FailureRedirectionURL" => FailureRedirectionURL, + "FromEmailAddress" => FromEmailAddress, + "SuccessRedirectionURL" => SuccessRedirectionURL, + "TemplateContent" => TemplateContent, + "TemplateSubject" => TemplateSubject, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/custom-verification-email-templates/$(TemplateName)", - Dict{String,Any}( - "FailureRedirectionURL" => FailureRedirectionURL, - "FromEmailAddress" => FromEmailAddress, - "SuccessRedirectionURL" => SuccessRedirectionURL, - "TemplateContent" => TemplateContent, - "TemplateSubject" => TemplateSubject, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_custom_verification_email_template( FailureRedirectionURL, FromEmailAddress, @@ -3900,17 +3689,15 @@ than once per second. can only include alphanumeric characters, dashes, and underscores. """ -function update_email_identity_policy( +update_email_identity_policy( EmailIdentity, Policy, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/identities/$(EmailIdentity)/policies/$(PolicyName)", + Dict{String,Any}("Policy" => Policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/identities/$(EmailIdentity)/policies/$(PolicyName)", - Dict{String,Any}("Policy" => Policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_email_identity_policy( EmailIdentity, Policy, @@ -3941,17 +3728,15 @@ Developer Guide. You can execute this operation no more than once per second. - `template_name`: The name of the template. """ -function update_email_template( +update_email_template( TemplateContent, TemplateName; aws_config::AbstractAWSConfig=current_aws_config() +) = sesv2( + "PUT", + "/v2/email/templates/$(TemplateName)", + Dict{String,Any}("TemplateContent" => TemplateContent); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sesv2( - "PUT", - "/v2/email/templates/$(TemplateName)", - Dict{String,Any}("TemplateContent" => TemplateContent); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_email_template( TemplateContent, TemplateName, diff --git a/src/services/sfn.jl b/src/services/sfn.jl index 42343450f..461f89ab8 100644 --- a/src/services/sfn.jl +++ b/src/services/sfn.jl @@ -30,19 +30,18 @@ case, tags will not be updated, even if they are different. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"encryptionConfiguration"`: Settings to configure server-side encryption. - `"tags"`: The list of tags to add to a resource. An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @. """ -function create_activity(name; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "CreateActivity", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_activity(name; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "CreateActivity", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_activity( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -63,15 +62,19 @@ work (Task states), determine to which states to transition next (Choice states) execution with an error (Fail states), and so on. State machines are specified using a JSON-based, structured language. For more information, see Amazon States Language in the Step Functions User Guide. If you set the publish parameter of this API action to true, it -publishes version 1 as the first revision of the state machine. This operation is -eventually consistent. The results are best effort and may not reflect very recent updates -and changes. CreateStateMachine is an idempotent API. Subsequent requests won’t create -a duplicate resource if it was already created. CreateStateMachine's idempotency check is -based on the state machine name, definition, type, LoggingConfiguration, and -TracingConfiguration. The check is also based on the publish and versionDescription -parameters. If a following request has a different roleArn or tags, Step Functions will -ignore these differences and treat it as an idempotent request of the previous. In this -case, roleArn and tags will not be updated, even if they are different. +publishes version 1 as the first revision of the state machine. For additional control +over security, you can encrypt your data using a customer-managed key for Step Functions +state machines. You can configure a symmetric KMS key and data key reuse period when +creating or updating a State Machine. The execution history and state machine definition +will be encrypted with the key applied to the State Machine. This operation is eventually +consistent. The results are best effort and may not reflect very recent updates and +changes. CreateStateMachine is an idempotent API. Subsequent requests won’t create a +duplicate resource if it was already created. CreateStateMachine's idempotency check is +based on the state machine name, definition, type, LoggingConfiguration, +TracingConfiguration, and EncryptionConfiguration The check is also based on the publish +and versionDescription parameters. If a following request has a different roleArn or tags, +Step Functions will ignore these differences and treat it as an idempotent request of the +previous. In this case, roleArn and tags will not be updated, even if they are different. # Arguments - `definition`: The Amazon States Language definition of the state machine. See Amazon @@ -84,6 +87,7 @@ case, roleArn and tags will not be updated, even if they are different. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"encryptionConfiguration"`: Settings to configure server-side encryption. - `"loggingConfiguration"`: Defines what execution history events are logged and where they are logged. By default, the level is set to OFF. For more information see Log Levels in the Step Functions User Guide. @@ -100,16 +104,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys set the description if the publish parameter is set to true. Otherwise, if you set versionDescription, but publish to false, this API action throws ValidationException. """ -function create_state_machine( +create_state_machine( definition, name, roleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "CreateStateMachine", + Dict{String,Any}("definition" => definition, "name" => name, "roleArn" => roleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "CreateStateMachine", - Dict{String,Any}("definition" => definition, "name" => name, "roleArn" => roleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_state_machine( definition, name, @@ -167,16 +169,14 @@ DeleteStateMachineAlias Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: A description for the state machine alias. """ -function create_state_machine_alias( +create_state_machine_alias( name, routingConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "CreateStateMachineAlias", + Dict{String,Any}("name" => name, "routingConfiguration" => routingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "CreateStateMachineAlias", - Dict{String,Any}("name" => name, "routingConfiguration" => routingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_state_machine_alias( name, routingConfiguration, @@ -209,14 +209,12 @@ Deletes an activity. - `activity_arn`: The Amazon Resource Name (ARN) of the activity to delete. """ -function delete_activity(activityArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "DeleteActivity", - Dict{String,Any}("activityArn" => activityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_activity(activityArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "DeleteActivity", + Dict{String,Any}("activityArn" => activityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_activity( activityArn, params::AbstractDict{String}; @@ -257,16 +255,13 @@ executions may emit logs after DeleteStateMachine API is called. - `state_machine_arn`: The Amazon Resource Name (ARN) of the state machine to delete. """ -function delete_state_machine( - stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sfn( +delete_state_machine(stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn( "DeleteStateMachine", Dict{String,Any}("stateMachineArn" => stateMachineArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_state_machine( stateMachineArn, params::AbstractDict{String}; @@ -299,16 +294,14 @@ UpdateStateMachineAlias delete. """ -function delete_state_machine_alias( +delete_state_machine_alias( stateMachineAliasArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "DeleteStateMachineAlias", + Dict{String,Any}("stateMachineAliasArn" => stateMachineAliasArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "DeleteStateMachineAlias", - Dict{String,Any}("stateMachineAliasArn" => stateMachineAliasArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_state_machine_alias( stateMachineAliasArn, params::AbstractDict{String}; @@ -345,16 +338,14 @@ version. Related operations: PublishStateMachineVersion ListStateMachi to delete. """ -function delete_state_machine_version( +delete_state_machine_version( stateMachineVersionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "DeleteStateMachineVersion", + Dict{String,Any}("stateMachineVersionArn" => stateMachineVersionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "DeleteStateMachineVersion", - Dict{String,Any}("stateMachineVersionArn" => stateMachineVersionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_state_machine_version( stateMachineVersionArn, params::AbstractDict{String}; @@ -385,14 +376,12 @@ effort and may not reflect very recent updates and changes. - `activity_arn`: The Amazon Resource Name (ARN) of the activity to describe. """ -function describe_activity(activityArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "DescribeActivity", - Dict{String,Any}("activityArn" => activityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_activity(activityArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "DescribeActivity", + Dict{String,Any}("activityArn" => activityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_activity( activityArn, params::AbstractDict{String}; @@ -425,17 +414,19 @@ supported by DescribeExecution unless a Map Run dispatched them. # Arguments - `execution_arn`: The Amazon Resource Name (ARN) of the execution to describe. -""" -function describe_execution( - executionArn; aws_config::AbstractAWSConfig=current_aws_config() +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"includedData"`: If your state machine definition is encrypted with a KMS key, callers + must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call + DescribeStateMachine API with includedData = METADATA_ONLY to get a successful response + without the encrypted definition. +""" +describe_execution(executionArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "DescribeExecution", + Dict{String,Any}("executionArn" => executionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "DescribeExecution", - Dict{String,Any}("executionArn" => executionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_execution( executionArn, params::AbstractDict{String}; @@ -463,14 +454,12 @@ Run. For more information, see Examining Map Run in the Step Functions Developer - `map_run_arn`: The Amazon Resource Name (ARN) that identifies a Map Run. """ -function describe_map_run(mapRunArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "DescribeMapRun", - Dict{String,Any}("mapRunArn" => mapRunArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_map_run(mapRunArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "DescribeMapRun", + Dict{String,Any}("mapRunArn" => mapRunArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_map_run( mapRunArn, params::AbstractDict{String}; @@ -516,17 +505,24 @@ changes. about that version. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example, stateMachineARN:1. -""" -function describe_state_machine( +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"includedData"`: If your state machine definition is encrypted with a KMS key, callers + must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call the + API with includedData = METADATA_ONLY to get a successful response without the encrypted + definition. When calling a labelled ARN for an encrypted state machine, the includedData + = METADATA_ONLY parameter will not apply because Step Functions needs to decrypt the entire + state machine definition to get the Distributed Map state’s definition. In this case, the + API caller needs to have kms:Decrypt permission. +""" +describe_state_machine( stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "DescribeStateMachine", + Dict{String,Any}("stateMachineArn" => stateMachineArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "DescribeStateMachine", - Dict{String,Any}("stateMachineArn" => stateMachineArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_state_machine( stateMachineArn, params::AbstractDict{String}; @@ -556,16 +552,14 @@ DeleteStateMachineAlias - `state_machine_alias_arn`: The Amazon Resource Name (ARN) of the state machine alias. """ -function describe_state_machine_alias( +describe_state_machine_alias( stateMachineAliasArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "DescribeStateMachineAlias", + Dict{String,Any}("stateMachineAliasArn" => stateMachineAliasArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "DescribeStateMachineAlias", - Dict{String,Any}("stateMachineAliasArn" => stateMachineAliasArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_state_machine_alias( stateMachineAliasArn, params::AbstractDict{String}; @@ -600,17 +594,21 @@ supported by EXPRESS state machines. - `execution_arn`: The Amazon Resource Name (ARN) of the execution you want state machine information for. +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"includedData"`: If your state machine definition is encrypted with a KMS key, callers + must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call the + API with includedData = METADATA_ONLY to get a successful response without the encrypted + definition. """ -function describe_state_machine_for_execution( +describe_state_machine_for_execution( executionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "DescribeStateMachineForExecution", + Dict{String,Any}("executionArn" => executionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "DescribeStateMachineForExecution", - Dict{String,Any}("executionArn" => executionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_state_machine_for_execution( executionArn, params::AbstractDict{String}; @@ -650,14 +648,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"workerName"`: You can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is used when it is logged in the execution history. """ -function get_activity_task(activityArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "GetActivityTask", - Dict{String,Any}("activityArn" => activityArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_activity_task(activityArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "GetActivityTask", + Dict{String,Any}("activityArn" => activityArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_activity_task( activityArn, params::AbstractDict{String}; @@ -704,16 +700,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys HTTP 400 InvalidToken error. - `"reverseOrder"`: Lists events in descending order of their timeStamp. """ -function get_execution_history( - executionArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sfn( +get_execution_history(executionArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn( "GetExecutionHistory", Dict{String,Any}("executionArn" => executionArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_execution_history( executionArn, params::AbstractDict{String}; @@ -752,9 +745,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_activities(; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn("ListActivities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_activities(; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn("ListActivities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_activities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -808,9 +800,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"statusFilter"`: If specified, only list the executions whose current execution status matches the given filter. """ -function list_executions(; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn("ListExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_executions(; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn("ListExecutions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_executions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -843,14 +834,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_map_runs(executionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "ListMapRuns", - Dict{String,Any}("executionArn" => executionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_map_runs(executionArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "ListMapRuns", + Dict{String,Any}("executionArn" => executionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_map_runs( executionArn, params::AbstractDict{String}; @@ -897,16 +886,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_state_machine_aliases( +list_state_machine_aliases( stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "ListStateMachineAliases", + Dict{String,Any}("stateMachineArn" => stateMachineArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "ListStateMachineAliases", - Dict{String,Any}("stateMachineArn" => stateMachineArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_state_machine_aliases( stateMachineArn, params::AbstractDict{String}; @@ -951,16 +938,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_state_machine_versions( +list_state_machine_versions( stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "ListStateMachineVersions", + Dict{String,Any}("stateMachineArn" => stateMachineArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "ListStateMachineVersions", - Dict{String,Any}("stateMachineArn" => stateMachineArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_state_machine_versions( stateMachineArn, params::AbstractDict{String}; @@ -1001,9 +986,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_state_machines(; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn("ListStateMachines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_state_machines(; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn("ListStateMachines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_state_machines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1024,16 +1008,13 @@ or these symbols: _ . : / = + - @. activity. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sfn( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1079,16 +1060,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys INITIAL for the revisionId parameter. For example, you can specify a revisionID of INITIAL when you create a state machine using the CreateStateMachine API action. """ -function publish_state_machine_version( +publish_state_machine_version( stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "PublishStateMachineVersion", + Dict{String,Any}("stateMachineArn" => stateMachineArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "PublishStateMachineVersion", - Dict{String,Any}("stateMachineArn" => stateMachineArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function publish_state_machine_version( stateMachineArn, params::AbstractDict{String}; @@ -1148,14 +1127,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used. """ -function redrive_execution(executionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "RedriveExecution", - Dict{String,Any}("executionArn" => executionArn, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +redrive_execution(executionArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "RedriveExecution", + Dict{String,Any}("executionArn" => executionArn, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function redrive_execution( executionArn, params::AbstractDict{String}; @@ -1182,7 +1159,11 @@ end send_task_failure(task_token, params::Dict{String,<:Any}) Used by activity workers, Task states using the callback pattern, and optionally Task -states using the job run pattern to report that the task identified by the taskToken failed. +states using the job run pattern to report that the task identified by the taskToken +failed. For an execution with encryption enabled, Step Functions will encrypt the error and +cause fields using the KMS key for the execution role. A caller can mark a task as fail +without using any KMS permissions in the execution role if the caller provides a null value +for both error and cause fields because no data needs to be encrypted. # Arguments - `task_token`: The token that represents this task. Task tokens are generated by Step @@ -1194,14 +1175,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"cause"`: A more detailed explanation of the cause of the failure. - `"error"`: The error code of the failure. """ -function send_task_failure(taskToken; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "SendTaskFailure", - Dict{String,Any}("taskToken" => taskToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +send_task_failure(taskToken; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "SendTaskFailure", + Dict{String,Any}("taskToken" => taskToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function send_task_failure( taskToken, params::AbstractDict{String}; @@ -1239,14 +1218,12 @@ for heartbeats. enters a task state. See GetActivityTaskOutputtaskToken. """ -function send_task_heartbeat(taskToken; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "SendTaskHeartbeat", - Dict{String,Any}("taskToken" => taskToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +send_task_heartbeat(taskToken; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "SendTaskHeartbeat", + Dict{String,Any}("taskToken" => taskToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function send_task_heartbeat( taskToken, params::AbstractDict{String}; @@ -1278,16 +1255,13 @@ completed successfully. enters a task state. See GetActivityTaskOutputtaskToken. """ -function send_task_success( - output, taskToken; aws_config::AbstractAWSConfig=current_aws_config() -) - return sfn( +send_task_success(output, taskToken; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn( "SendTaskSuccess", Dict{String,Any}("output" => output, "taskToken" => taskToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_task_success( output, taskToken, @@ -1373,16 +1347,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"traceHeader"`: Passes the X-Ray trace header. The trace header can also be passed in the request payload. """ -function start_execution( - stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config() +start_execution(stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "StartExecution", + Dict{String,Any}("stateMachineArn" => stateMachineArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "StartExecution", - Dict{String,Any}("stateMachineArn" => stateMachineArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_execution( stateMachineArn, params::AbstractDict{String}; @@ -1416,6 +1386,10 @@ configuration. This API action isn't logged in CloudTrail. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"includedData"`: If your state machine definition is encrypted with a KMS key, callers + must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call the + API with includedData = METADATA_ONLY to get a successful response without the encrypted + definition. - `"input"`: The string that contains the JSON input data for the execution, for example: \"input\": \"{\"first_name\" : \"test\"}\" If you don't include any JSON input data, you still must include the two braces, for example: \"input\": \"{}\" Length constraints @@ -1424,16 +1398,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"traceHeader"`: Passes the X-Ray trace header. The trace header can also be passed in the request payload. """ -function start_sync_execution( - stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sfn( +start_sync_execution(stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn( "StartSyncExecution", Dict{String,Any}("stateMachineArn" => stateMachineArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_sync_execution( stateMachineArn, params::AbstractDict{String}; @@ -1455,7 +1426,11 @@ end stop_execution(execution_arn) stop_execution(execution_arn, params::Dict{String,<:Any}) -Stops an execution. This API action is not supported by EXPRESS state machines. +Stops an execution. This API action is not supported by EXPRESS state machines. For an +execution with encryption enabled, Step Functions will encrypt the error and cause fields +using the KMS key for the execution role. A caller can stop an execution without using any +KMS permissions in the execution role if the caller provides a null value for both error +and cause fields because no data needs to be encrypted. # Arguments - `execution_arn`: The Amazon Resource Name (ARN) of the execution to stop. @@ -1465,14 +1440,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"cause"`: A more detailed explanation of the cause of the failure. - `"error"`: The error code of the failure. """ -function stop_execution(executionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "StopExecution", - Dict{String,Any}("executionArn" => executionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_execution(executionArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "StopExecution", + Dict{String,Any}("executionArn" => executionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_execution( executionArn, params::AbstractDict{String}; @@ -1504,14 +1477,12 @@ digits, white space, or these symbols: _ . : / = + - @. digits, white space, or these symbols: _ . : / = + - @. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "TagResource", - Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "TagResource", + Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -1575,14 +1546,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permission, Step Functions throws an access denied error. By default, revealSecrets is set to false. """ -function test_state(definition, roleArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "TestState", - Dict{String,Any}("definition" => definition, "roleArn" => roleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +test_state(definition, roleArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "TestState", + Dict{String,Any}("definition" => definition, "roleArn" => roleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function test_state( definition, roleArn, @@ -1615,16 +1584,13 @@ Remove a tag from a Step Functions resource - `tag_keys`: The list of tags to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return sfn( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1663,14 +1629,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"toleratedFailurePercentage"`: The maximum percentage of failed items before the Map Run fails. """ -function update_map_run(mapRunArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sfn( - "UpdateMapRun", - Dict{String,Any}("mapRunArn" => mapRunArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_map_run(mapRunArn; aws_config::AbstractAWSConfig=current_aws_config()) = sfn( + "UpdateMapRun", + Dict{String,Any}("mapRunArn" => mapRunArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_map_run( mapRunArn, params::AbstractDict{String}; @@ -1690,11 +1654,12 @@ end update_state_machine(state_machine_arn) update_state_machine(state_machine_arn, params::Dict{String,<:Any}) -Updates an existing state machine by modifying its definition, roleArn, or -loggingConfiguration. Running executions will continue to use the previous definition and -roleArn. You must include at least one of definition or roleArn or you will receive a -MissingRequiredParameter error. A qualified state machine ARN refers to a Distributed Map -state defined within a state machine. For example, the qualified state machine ARN +Updates an existing state machine by modifying its definition, roleArn, +loggingConfiguration, or EncryptionConfiguration. Running executions will continue to use +the previous definition and roleArn. You must include at least one of definition or roleArn +or you will receive a MissingRequiredParameter error. A qualified state machine ARN refers +to a Distributed Map state defined within a state machine. For example, the qualified state +machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel refers to a Distributed Map state with a label mapStateLabel in the state machine named stateMachineName. A qualified state machine ARN can either refer to a Distributed Map state @@ -1725,6 +1690,7 @@ call UpdateStateMachine may use the previous state machine definition and roleAr Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"definition"`: The Amazon States Language definition of the state machine. See Amazon States Language. +- `"encryptionConfiguration"`: Settings to configure server-side encryption. - `"loggingConfiguration"`: Use the LoggingConfiguration data type to set CloudWatch Logs options. - `"publish"`: Specifies whether the state machine version is published. The default is @@ -1734,16 +1700,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versionDescription"`: An optional description of the state machine version to publish. You can only specify the versionDescription parameter if you've set publish to true. """ -function update_state_machine( - stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sfn( +update_state_machine(stateMachineArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sfn( "UpdateStateMachine", Dict{String,Any}("stateMachineArn" => stateMachineArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_state_machine( stateMachineArn, params::AbstractDict{String}; @@ -1786,16 +1749,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys of RoutingConfig objects that specifies up to two state machine versions that the alias starts executions for. """ -function update_state_machine_alias( +update_state_machine_alias( stateMachineAliasArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "UpdateStateMachineAlias", + Dict{String,Any}("stateMachineAliasArn" => stateMachineAliasArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "UpdateStateMachineAlias", - Dict{String,Any}("stateMachineAliasArn" => stateMachineAliasArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_state_machine_alias( stateMachineAliasArn, params::AbstractDict{String}; @@ -1837,18 +1798,23 @@ elements, rather than raise an exception. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"maxResults"`: The maximum number of diagnostics that are returned per call. The default + and maximum value is 100. Setting the value to 0 will also use the default of 100. If the + number of diagnostics returned in the response exceeds maxResults, the value of the + truncated field in the response will be set to true. +- `"severity"`: Minimum level of diagnostics to return. ERROR returns only ERROR + diagnostics, whereas WARNING returns both WARNING and ERROR diagnostics. The default is + ERROR. - `"type"`: The target type of state machine for this definition. The default is STANDARD. """ -function validate_state_machine_definition( +validate_state_machine_definition( definition; aws_config::AbstractAWSConfig=current_aws_config() +) = sfn( + "ValidateStateMachineDefinition", + Dict{String,Any}("definition" => definition); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sfn( - "ValidateStateMachineDefinition", - Dict{String,Any}("definition" => definition); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_state_machine_definition( definition, params::AbstractDict{String}; diff --git a/src/services/shield.jl b/src/services/shield.jl index 96b6153d7..6a4fd537f 100644 --- a/src/services/shield.jl +++ b/src/services/shield.jl @@ -18,16 +18,13 @@ must be subscribed to the Business Support plan or the Enterprise Support plan. - `log_bucket`: The Amazon S3 bucket that contains the logs that you want to share. """ -function associate_drtlog_bucket( - LogBucket; aws_config::AbstractAWSConfig=current_aws_config() -) - return shield( +associate_drtlog_bucket(LogBucket; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "AssociateDRTLogBucket", Dict{String,Any}("LogBucket" => LogBucket); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function associate_drtlog_bucket( LogBucket, params::AbstractDict{String}; @@ -73,14 +70,12 @@ plan or the Enterprise Support plan. Attaching and Detaching IAM Policies. """ -function associate_drtrole(RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "AssociateDRTRole", - Dict{String,Any}("RoleArn" => RoleArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +associate_drtrole(RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) = shield( + "AssociateDRTRole", + Dict{String,Any}("RoleArn" => RoleArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function associate_drtrole( RoleArn, params::AbstractDict{String}; @@ -111,18 +106,14 @@ more information, see Shield Advanced Health-Based Detection in the WAF Develope check association to. """ -function associate_health_check( +associate_health_check( HealthCheckArn, ProtectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "AssociateHealthCheck", + Dict{String,Any}("HealthCheckArn" => HealthCheckArn, "ProtectionId" => ProtectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "AssociateHealthCheck", - Dict{String,Any}( - "HealthCheckArn" => HealthCheckArn, "ProtectionId" => ProtectionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_health_check( HealthCheckArn, ProtectionId, @@ -169,16 +160,14 @@ call. the list using DescribeEmergencyContactSettings and then provide it here. """ -function associate_proactive_engagement_details( +associate_proactive_engagement_details( EmergencyContactList; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "AssociateProactiveEngagementDetails", + Dict{String,Any}("EmergencyContactList" => EmergencyContactList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "AssociateProactiveEngagementDetails", - Dict{String,Any}("EmergencyContactList" => EmergencyContactList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_proactive_engagement_details( EmergencyContactList, params::AbstractDict{String}; @@ -229,16 +218,13 @@ to Amazon Web Services resources. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: One or more tag key-value pairs for the Protection object that is created. """ -function create_protection( - Name, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return shield( +create_protection(Name, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "CreateProtection", Dict{String,Any}("Name" => Name, "ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_protection( Name, ResourceArn, @@ -294,23 +280,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys BY_RESOURCE_TYPE and you must not set it for any other Pattern setting. - `"Tags"`: One or more tag key-value pairs for the protection group. """ -function create_protection_group( +create_protection_group( Aggregation, Pattern, ProtectionGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = shield( + "CreateProtectionGroup", + Dict{String,Any}( + "Aggregation" => Aggregation, + "Pattern" => Pattern, + "ProtectionGroupId" => ProtectionGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "CreateProtectionGroup", - Dict{String,Any}( - "Aggregation" => Aggregation, - "Pattern" => Pattern, - "ProtectionGroupId" => ProtectionGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_protection_group( Aggregation, Pattern, @@ -348,11 +332,8 @@ renewed at the end of the existing subscription period. You can change this by s an UpdateSubscription request. """ -function create_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "CreateSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +create_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("CreateSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -371,14 +352,13 @@ Deletes an Shield Advanced Protection. - `protection_id`: The unique identifier (ID) for the Protection object to be deleted. """ -function delete_protection(ProtectionId; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( +delete_protection(ProtectionId; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "DeleteProtection", Dict{String,Any}("ProtectionId" => ProtectionId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_protection( ProtectionId, params::AbstractDict{String}; @@ -406,16 +386,14 @@ Removes the specified protection group. delete, or describe it. """ -function delete_protection_group( +delete_protection_group( ProtectionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "DeleteProtectionGroup", + Dict{String,Any}("ProtectionGroupId" => ProtectionGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "DeleteProtectionGroup", - Dict{String,Any}("ProtectionGroupId" => ProtectionGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_protection_group( ProtectionGroupId, params::AbstractDict{String}; @@ -441,11 +419,8 @@ Removes Shield Advanced from an account. Shield Advanced requires a 1-year subsc commitment. You cannot delete a subscription prior to the completion of that commitment. """ -function delete_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "DeleteSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("DeleteSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -464,14 +439,12 @@ Describes the details of a DDoS attack. - `attack_id`: The unique identifier (ID) for the attack. """ -function describe_attack(AttackId; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "DescribeAttack", - Dict{String,Any}("AttackId" => AttackId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_attack(AttackId; aws_config::AbstractAWSConfig=current_aws_config()) = shield( + "DescribeAttack", + Dict{String,Any}("AttackId" => AttackId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_attack( AttackId, params::AbstractDict{String}; @@ -501,11 +474,9 @@ returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC. The time r indicates the period covered by the attack statistics data items. """ -function describe_attack_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "DescribeAttackStatistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_attack_statistics(; aws_config::AbstractAWSConfig=current_aws_config()) = shield( + "DescribeAttackStatistics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_attack_statistics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -525,11 +496,8 @@ Returns the current role and list of Amazon S3 log buckets used by the Shield Re (SRT) to access your Amazon Web Services account while assisting with attack mitigation. """ -function describe_drtaccess(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "DescribeDRTAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_drtaccess(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("DescribeDRTAccess"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_drtaccess( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -547,15 +515,12 @@ contact you if you have proactive engagement enabled, for escalations to the SRT initiate proactive customer support. """ -function describe_emergency_contact_settings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return shield( +describe_emergency_contact_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "DescribeEmergencyContactSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_emergency_contact_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -582,11 +547,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both. """ -function describe_protection(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "DescribeProtection"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_protection(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("DescribeProtection"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_protection( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -607,16 +569,14 @@ Returns the specification for the specified protection group. delete, or describe it. """ -function describe_protection_group( +describe_protection_group( ProtectionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "DescribeProtectionGroup", + Dict{String,Any}("ProtectionGroupId" => ProtectionGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "DescribeProtectionGroup", - Dict{String,Any}("ProtectionGroupId" => ProtectionGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_protection_group( ProtectionGroupId, params::AbstractDict{String}; @@ -641,11 +601,8 @@ end Provides details about the Shield Advanced subscription for an account. """ -function describe_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "DescribeSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("DescribeSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -669,16 +626,14 @@ rules for attacks that it detects for the resource. - `resource_arn`: The ARN (Amazon Resource Name) of the protected resource. """ -function disable_application_layer_automatic_response( +disable_application_layer_automatic_response( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "DisableApplicationLayerAutomaticResponse", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "DisableApplicationLayerAutomaticResponse", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disable_application_layer_automatic_response( ResourceArn, params::AbstractDict{String}; @@ -702,11 +657,9 @@ Removes authorization from the Shield Response Team (SRT) to notify contacts abo escalations to the SRT and to initiate proactive customer support. """ -function disable_proactive_engagement(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "DisableProactiveEngagement"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +disable_proactive_engagement(; aws_config::AbstractAWSConfig=current_aws_config()) = shield( + "DisableProactiveEngagement"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function disable_proactive_engagement( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -729,16 +682,13 @@ containing the logs that you shared previously. - `log_bucket`: The Amazon S3 bucket that contains the logs that you want to share. """ -function disassociate_drtlog_bucket( - LogBucket; aws_config::AbstractAWSConfig=current_aws_config() -) - return shield( +disassociate_drtlog_bucket(LogBucket; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "DisassociateDRTLogBucket", Dict{String,Any}("LogBucket" => LogBucket); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_drtlog_bucket( LogBucket, params::AbstractDict{String}; @@ -761,11 +711,8 @@ end Removes the Shield Response Team's (SRT) access to your Amazon Web Services account. """ -function disassociate_drtrole(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "DisassociateDRTRole"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +disassociate_drtrole(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("DisassociateDRTRole"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function disassociate_drtrole( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -795,18 +742,14 @@ Developer Guide. health check association from. """ -function disassociate_health_check( +disassociate_health_check( HealthCheckArn, ProtectionId; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "DisassociateHealthCheck", + Dict{String,Any}("HealthCheckArn" => HealthCheckArn, "ProtectionId" => ProtectionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "DisassociateHealthCheck", - Dict{String,Any}( - "HealthCheckArn" => HealthCheckArn, "ProtectionId" => ProtectionId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_health_check( HealthCheckArn, ProtectionId, @@ -859,16 +802,14 @@ Shield Advanced. For information about WAF, see WAF Developer Guide. - `resource_arn`: The ARN (Amazon Resource Name) of the protected resource. """ -function enable_application_layer_automatic_response( +enable_application_layer_automatic_response( Action, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "EnableApplicationLayerAutomaticResponse", + Dict{String,Any}("Action" => Action, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "EnableApplicationLayerAutomaticResponse", - Dict{String,Any}("Action" => Action, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function enable_application_layer_automatic_response( Action, ResourceArn, @@ -897,11 +838,9 @@ Authorizes the Shield Response Team (SRT) to use email and phone to notify conta escalations to the SRT and to initiate proactive customer support. """ -function enable_proactive_engagement(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "EnableProactiveEngagement"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +enable_proactive_engagement(; aws_config::AbstractAWSConfig=current_aws_config()) = shield( + "EnableProactiveEngagement"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function enable_proactive_engagement( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -920,11 +859,8 @@ end Returns the SubscriptionState, either Active or Inactive. """ -function get_subscription_state(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "GetSubscriptionState"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_subscription_state(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("GetSubscriptionState"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_subscription_state( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -968,9 +904,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The request syntax listing for this call indicates a number type, but you can provide the time in any valid timestamp format setting. """ -function list_attacks(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield("ListAttacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_attacks(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("ListAttacks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_attacks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1010,11 +945,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will include a NextToken value. On your first call to a list operation, leave this setting empty. """ -function list_protection_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "ListProtectionGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_protection_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("ListProtectionGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_protection_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1057,9 +989,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will include a NextToken value. On your first call to a list operation, leave this setting empty. """ -function list_protections(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield("ListProtections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_protections(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("ListProtections"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_protections( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1097,16 +1028,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will include a NextToken value. On your first call to a list operation, leave this setting empty. """ -function list_resources_in_protection_group( +list_resources_in_protection_group( ProtectionGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "ListResourcesInProtectionGroup", + Dict{String,Any}("ProtectionGroupId" => ProtectionGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "ListResourcesInProtectionGroup", - Dict{String,Any}("ProtectionGroupId" => ProtectionGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resources_in_protection_group( ProtectionGroupId, params::AbstractDict{String}; @@ -1135,16 +1064,13 @@ in Shield. - `resource_arn`: The Amazon Resource Name (ARN) of the resource to get tags for. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return shield( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1172,14 +1098,13 @@ Adds or updates tags for a resource in Shield. - `tags`: The tags that you want to modify or add to the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1212,16 +1137,13 @@ Removes tags from a resource in Shield. - `tag_keys`: The tag key for each tag that you want to remove from the resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return shield( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1259,16 +1181,14 @@ configuration for the specified resource. - `resource_arn`: The ARN (Amazon Resource Name) of the resource. """ -function update_application_layer_automatic_response( +update_application_layer_automatic_response( Action, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = shield( + "UpdateApplicationLayerAutomaticResponse", + Dict{String,Any}("Action" => Action, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "UpdateApplicationLayerAutomaticResponse", - Dict{String,Any}("Action" => Action, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application_layer_automatic_response( Action, ResourceArn, @@ -1304,15 +1224,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys escalations to the SRT and to initiate proactive customer support. If you have proactive engagement enabled, the contact list must include at least one phone number. """ -function update_emergency_contact_settings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return shield( +update_emergency_contact_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield( "UpdateEmergencyContactSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_emergency_contact_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1358,23 +1275,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resources of this type are included in the protection group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting. """ -function update_protection_group( +update_protection_group( Aggregation, Pattern, ProtectionGroupId; aws_config::AbstractAWSConfig=current_aws_config(), +) = shield( + "UpdateProtectionGroup", + Dict{String,Any}( + "Aggregation" => Aggregation, + "Pattern" => Pattern, + "ProtectionGroupId" => ProtectionGroupId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return shield( - "UpdateProtectionGroup", - Dict{String,Any}( - "Aggregation" => Aggregation, - "Pattern" => Pattern, - "ProtectionGroupId" => ProtectionGroupId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_protection_group( Aggregation, Pattern, @@ -1418,11 +1333,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged. """ -function update_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) - return shield( - "UpdateSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_subscription(; aws_config::AbstractAWSConfig=current_aws_config()) = + shield("UpdateSubscription"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_subscription( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/signer.jl b/src/services/signer.jl index 765138d5c..ea33f293d 100644 --- a/src/services/signer.jl +++ b/src/services/signer.jl @@ -30,23 +30,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"profileVersion"`: The version of the signing profile. - `"revisionId"`: A unique identifier for the current profile revision. """ -function add_profile_permission( +add_profile_permission( action, principal, profileName, statementId; aws_config::AbstractAWSConfig=current_aws_config(), +) = signer( + "POST", + "/signing-profiles/$(profileName)/permissions", + Dict{String,Any}( + "action" => action, "principal" => principal, "statementId" => statementId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return signer( - "POST", - "/signing-profiles/$(profileName)/permissions", - Dict{String,Any}( - "action" => action, "principal" => principal, "statementId" => statementId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_profile_permission( action, principal, @@ -86,16 +84,13 @@ and is deleted two years after cancelation. - `profile_name`: The name of the signing profile to be canceled. """ -function cancel_signing_profile( - profileName; aws_config::AbstractAWSConfig=current_aws_config() -) - return signer( +cancel_signing_profile(profileName; aws_config::AbstractAWSConfig=current_aws_config()) = + signer( "DELETE", "/signing-profiles/$(profileName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_signing_profile( profileName, params::AbstractDict{String}; @@ -121,14 +116,12 @@ jobId value that is returned by the StartSigningJob operation. - `job_id`: The ID of the signing job on input. """ -function describe_signing_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) - return signer( - "GET", - "/signing-jobs/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_signing_job(jobId; aws_config::AbstractAWSConfig=current_aws_config()) = signer( + "GET", + "/signing-jobs/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_signing_job( jobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -165,28 +158,26 @@ signing certificate. - `signature_timestamp`: The timestamp of the signature that validates the profile or job. """ -function get_revocation_status( +get_revocation_status( certificateHashes, jobArn, platformId, profileVersionArn, signatureTimestamp; aws_config::AbstractAWSConfig=current_aws_config(), +) = signer( + "GET", + "/revocations", + Dict{String,Any}( + "certificateHashes" => certificateHashes, + "jobArn" => jobArn, + "platformId" => platformId, + "profileVersionArn" => profileVersionArn, + "signatureTimestamp" => signatureTimestamp, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return signer( - "GET", - "/revocations", - Dict{String,Any}( - "certificateHashes" => certificateHashes, - "jobArn" => jobArn, - "platformId" => platformId, - "profileVersionArn" => profileVersionArn, - "signatureTimestamp" => signatureTimestamp, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_revocation_status( certificateHashes, jobArn, @@ -227,16 +218,13 @@ Returns information on a specific signing platform. - `platform_id`: The ID of the target signing platform. """ -function get_signing_platform( - platformId; aws_config::AbstractAWSConfig=current_aws_config() -) - return signer( +get_signing_platform(platformId; aws_config::AbstractAWSConfig=current_aws_config()) = + signer( "GET", "/signing-platforms/$(platformId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_signing_platform( platformId, params::AbstractDict{String}; @@ -264,16 +252,13 @@ Returns information on a specific signing profile. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"profileOwner"`: The AWS account ID of the profile owner. """ -function get_signing_profile( - profileName; aws_config::AbstractAWSConfig=current_aws_config() -) - return signer( +get_signing_profile(profileName; aws_config::AbstractAWSConfig=current_aws_config()) = + signer( "GET", "/signing-profiles/$(profileName)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_signing_profile( profileName, params::AbstractDict{String}; @@ -301,16 +286,13 @@ Lists the cross-account permissions associated with a signing profile. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"nextToken"`: String for specifying the next set of paginated results. """ -function list_profile_permissions( - profileName; aws_config::AbstractAWSConfig=current_aws_config() -) - return signer( +list_profile_permissions(profileName; aws_config::AbstractAWSConfig=current_aws_config()) = + signer( "GET", "/signing-profiles/$(profileName)/permissions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_profile_permissions( profileName, params::AbstractDict{String}; @@ -357,11 +339,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys expiring before a specified timestamp. - `"status"`: A status value with which to filter your results. """ -function list_signing_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return signer( - "GET", "/signing-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_signing_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + signer("GET", "/signing-jobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_signing_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -394,11 +373,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"partner"`: Any partner entities connected to a signing platform. - `"target"`: The validation template that is used by the target signing platform. """ -function list_signing_platforms(; aws_config::AbstractAWSConfig=current_aws_config()) - return signer( - "GET", "/signing-platforms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_signing_platforms(; aws_config::AbstractAWSConfig=current_aws_config()) = signer( + "GET", "/signing-platforms"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_signing_platforms( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -434,11 +411,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"statuses"`: Filters results to return only signing jobs with statuses in the specified list. """ -function list_signing_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return signer( - "GET", "/signing-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_signing_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = signer( + "GET", "/signing-profiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_signing_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -461,16 +436,13 @@ Returns a list of the tags associated with a signing profile resource. - `resource_arn`: The Amazon Resource Name (ARN) for the signing profile. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return signer( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + signer( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -509,17 +481,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information that you want to use during signing. - `"tags"`: Tags to be associated with the signing profile that is being created. """ -function put_signing_profile( +put_signing_profile( platformId, profileName; aws_config::AbstractAWSConfig=current_aws_config() +) = signer( + "PUT", + "/signing-profiles/$(profileName)", + Dict{String,Any}("platformId" => platformId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return signer( - "PUT", - "/signing-profiles/$(profileName)", - Dict{String,Any}("platformId" => platformId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_signing_profile( platformId, profileName, @@ -550,17 +520,15 @@ Removes cross-account permissions from a signing profile. - `statement_id`: A unique identifier for the cross-account permissions statement. """ -function remove_profile_permission( +remove_profile_permission( profileName, revisionId, statementId; aws_config::AbstractAWSConfig=current_aws_config() +) = signer( + "DELETE", + "/signing-profiles/$(profileName)/permissions/$(statementId)", + Dict{String,Any}("revisionId" => revisionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return signer( - "DELETE", - "/signing-profiles/$(profileName)/permissions/$(statementId)", - Dict{String,Any}("revisionId" => revisionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_profile_permission( profileName, revisionId, @@ -594,15 +562,14 @@ longer valid. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"jobOwner"`: AWS account ID of the job owner. """ -function revoke_signature(jobId, reason; aws_config::AbstractAWSConfig=current_aws_config()) - return signer( +revoke_signature(jobId, reason; aws_config::AbstractAWSConfig=current_aws_config()) = + signer( "PUT", "/signing-jobs/$(jobId)/revoke", Dict{String,Any}("reason" => reason); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function revoke_signature( jobId, reason, @@ -634,25 +601,23 @@ using the signing profile after an effective start date are no longer valid. - `reason`: The reason for revoking a signing profile. """ -function revoke_signing_profile( +revoke_signing_profile( effectiveTime, profileName, profileVersion, reason; aws_config::AbstractAWSConfig=current_aws_config(), +) = signer( + "PUT", + "/signing-profiles/$(profileName)/revoke", + Dict{String,Any}( + "effectiveTime" => effectiveTime, + "profileVersion" => profileVersion, + "reason" => reason, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return signer( - "PUT", - "/signing-profiles/$(profileName)/revoke", - Dict{String,Any}( - "effectiveTime" => effectiveTime, - "profileVersion" => profileVersion, - "reason" => reason, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_signing_profile( effectiveTime, profileName, @@ -696,21 +661,19 @@ Signs a binary payload and returns a signature envelope. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"profileOwner"`: The AWS account ID of the profile owner. """ -function sign_payload( +sign_payload( payload, payloadFormat, profileName; aws_config::AbstractAWSConfig=current_aws_config() +) = signer( + "POST", + "/signing-jobs/with-payload", + Dict{String,Any}( + "payload" => payload, + "payloadFormat" => payloadFormat, + "profileName" => profileName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return signer( - "POST", - "/signing-jobs/with-payload", - Dict{String,Any}( - "payload" => payload, - "payloadFormat" => payloadFormat, - "profileName" => profileName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function sign_payload( payload, payloadFormat, @@ -766,26 +729,24 @@ StartSigningJob. For a Java example that shows how to use this action, see Start Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"profileOwner"`: The AWS account ID of the signing profile owner. """ -function start_signing_job( +start_signing_job( clientRequestToken, destination, profileName, source; aws_config::AbstractAWSConfig=current_aws_config(), +) = signer( + "POST", + "/signing-jobs", + Dict{String,Any}( + "clientRequestToken" => clientRequestToken, + "destination" => destination, + "profileName" => profileName, + "source" => source, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return signer( - "POST", - "/signing-jobs", - Dict{String,Any}( - "clientRequestToken" => clientRequestToken, - "destination" => destination, - "profileName" => profileName, - "source" => source, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_signing_job( clientRequestToken, destination, @@ -828,15 +789,14 @@ key-value pair. - `tags`: One or more tags to be associated with the signing profile. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return signer( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + signer( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -864,17 +824,14 @@ keys. - `tag_keys`: A list of tag keys to be removed from the signing profile. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return signer( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + signer( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/simpledb.jl b/src/services/simpledb.jl index 33eb20e2c..df4fb362a 100644 --- a/src/services/simpledb.jl +++ b/src/services/simpledb.jl @@ -30,16 +30,14 @@ request size 25 item limit per BatchDeleteAttributes operation Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Items"`: A list of items on which to perform the operation. """ -function batch_delete_attributes( +batch_delete_attributes( DomainName, Item; aws_config::AbstractAWSConfig=current_aws_config() +) = simpledb( + "BatchDeleteAttributes", + Dict{String,Any}("DomainName" => DomainName, "Item" => Item); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return simpledb( - "BatchDeleteAttributes", - Dict{String,Any}("DomainName" => DomainName, "Item" => Item); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_attributes( DomainName, Item, @@ -100,16 +98,13 @@ user data storage per domain 25 item limit per BatchPutAttributes operation Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Items"`: A list of items on which to perform the operation. """ -function batch_put_attributes( - DomainName, Item; aws_config::AbstractAWSConfig=current_aws_config() -) - return simpledb( +batch_put_attributes(DomainName, Item; aws_config::AbstractAWSConfig=current_aws_config()) = + simpledb( "BatchPutAttributes", Dict{String,Any}("DomainName" => DomainName, "Item" => Item); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function batch_put_attributes( DomainName, Item, @@ -144,14 +139,12 @@ additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-reque characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'. """ -function create_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return simpledb( - "CreateDomain", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = simpledb( + "CreateDomain", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_domain( DomainName, params::AbstractDict{String}; @@ -193,16 +186,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys attributes will be deleted or not. The update condition must be satisfied in order for this request to be processed and the attributes to be deleted. """ -function delete_attributes( +delete_attributes( DomainName, ItemName; aws_config::AbstractAWSConfig=current_aws_config() +) = simpledb( + "DeleteAttributes", + Dict{String,Any}("DomainName" => DomainName, "ItemName" => ItemName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return simpledb( - "DeleteAttributes", - Dict{String,Any}("DomainName" => DomainName, "ItemName" => ItemName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_attributes( DomainName, ItemName, @@ -236,14 +227,12 @@ multiple times using the same domain name will not result in an error response. - `domain_name`: The name of the domain to delete. """ -function delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return simpledb( - "DeleteDomain", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_domain(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = simpledb( + "DeleteDomain", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_domain( DomainName, params::AbstractDict{String}; @@ -270,14 +259,12 @@ items and attributes in the domain, and the size of the attribute names and valu - `domain_name`: The name of the domain for which to display the metadata of. """ -function domain_metadata(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) - return simpledb( - "DomainMetadata", - Dict{String,Any}("DomainName" => DomainName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +domain_metadata(DomainName; aws_config::AbstractAWSConfig=current_aws_config()) = simpledb( + "DomainMetadata", + Dict{String,Any}("DomainName" => DomainName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function domain_metadata( DomainName, params::AbstractDict{String}; @@ -316,16 +303,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read. """ -function get_attributes( - DomainName, ItemName; aws_config::AbstractAWSConfig=current_aws_config() -) - return simpledb( +get_attributes(DomainName, ItemName; aws_config::AbstractAWSConfig=current_aws_config()) = + simpledb( "GetAttributes", Dict{String,Any}("DomainName" => DomainName, "ItemName" => ItemName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_attributes( DomainName, ItemName, @@ -363,9 +347,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A string informing Amazon SimpleDB where to start the next list of domain names. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return simpledb("ListDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = + simpledb("ListDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -413,18 +396,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys attributes will be updated or not. The update condition must be satisfied in order for this request to be processed and the attributes to be updated. """ -function put_attributes( +put_attributes( Attribute, DomainName, ItemName; aws_config::AbstractAWSConfig=current_aws_config() +) = simpledb( + "PutAttributes", + Dict{String,Any}( + "Attribute" => Attribute, "DomainName" => DomainName, "ItemName" => ItemName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return simpledb( - "PutAttributes", - Dict{String,Any}( - "Attribute" => Attribute, "DomainName" => DomainName, "ItemName" => ItemName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_attributes( Attribute, DomainName, @@ -475,14 +456,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A string informing Amazon SimpleDB where to start the next list of ItemNames. """ -function select(SelectExpression; aws_config::AbstractAWSConfig=current_aws_config()) - return simpledb( - "Select", - Dict{String,Any}("SelectExpression" => SelectExpression); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +select(SelectExpression; aws_config::AbstractAWSConfig=current_aws_config()) = simpledb( + "Select", + Dict{String,Any}("SelectExpression" => SelectExpression); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function select( SelectExpression, params::AbstractDict{String}; diff --git a/src/services/simspaceweaver.jl b/src/services/simspaceweaver.jl index e9c96d8f3..6f2992d98 100644 --- a/src/services/simspaceweaver.jl +++ b/src/services/simspaceweaver.jl @@ -29,17 +29,15 @@ the 2-digit seconds - `simulation`: The name of the simulation. """ -function create_snapshot( +create_snapshot( Destination, Simulation; aws_config::AbstractAWSConfig=current_aws_config() +) = simspaceweaver( + "POST", + "/createsnapshot", + Dict{String,Any}("Destination" => Destination, "Simulation" => Simulation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return simspaceweaver( - "POST", - "/createsnapshot", - Dict{String,Any}("Destination" => Destination, "Simulation" => Simulation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_snapshot( Destination, Simulation, @@ -73,17 +71,14 @@ Deletes the instance of the given custom app. - `simulation`: The name of the simulation of the app. """ -function delete_app( - app, domain, simulation; aws_config::AbstractAWSConfig=current_aws_config() -) - return simspaceweaver( +delete_app(app, domain, simulation; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "DELETE", "/deleteapp", Dict{String,Any}("app" => app, "domain" => domain, "simulation" => simulation); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app( app, domain, @@ -120,15 +115,14 @@ other Amazon Web Services. - `simulation`: The name of the simulation. """ -function delete_simulation(simulation; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( +delete_simulation(simulation; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "DELETE", "/deletesimulation", Dict{String,Any}("simulation" => simulation); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_simulation( simulation, params::AbstractDict{String}; @@ -157,17 +151,14 @@ Returns the state of the given custom app. - `simulation`: The name of the simulation of the app. """ -function describe_app( - app, domain, simulation; aws_config::AbstractAWSConfig=current_aws_config() -) - return simspaceweaver( +describe_app(app, domain, simulation; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "GET", "/describeapp", Dict{String,Any}("app" => app, "domain" => domain, "simulation" => simulation); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_app( app, domain, @@ -202,15 +193,14 @@ Returns the current state of the given simulation. - `simulation`: The name of the simulation. """ -function describe_simulation(simulation; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( +describe_simulation(simulation; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "GET", "/describesimulation", Dict{String,Any}("simulation" => simulation); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_simulation( simulation, params::AbstractDict{String}; @@ -247,15 +237,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error. """ -function list_apps(simulation; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( - "GET", - "/listapps", - Dict{String,Any}("simulation" => simulation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_apps(simulation; aws_config::AbstractAWSConfig=current_aws_config()) = simspaceweaver( + "GET", + "/listapps", + Dict{String,Any}("simulation" => simulation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_apps( simulation, params::AbstractDict{String}; @@ -289,11 +277,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error. """ -function list_simulations(; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( - "GET", "/listsimulations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_simulations(; aws_config::AbstractAWSConfig=current_aws_config()) = simspaceweaver( + "GET", "/listsimulations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_simulations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -317,16 +303,13 @@ Lists all tags on a SimSpace Weaver resource. about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return simspaceweaver( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -360,10 +343,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description of the app. - `"LaunchOverrides"`: """ -function start_app( - Domain, Name, Simulation; aws_config::AbstractAWSConfig=current_aws_config() -) - return simspaceweaver( +start_app(Domain, Name, Simulation; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "POST", "/startapp", Dict{String,Any}( @@ -375,7 +356,6 @@ function start_app( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_app( Domain, Name, @@ -413,15 +393,14 @@ Starts the simulation clock. - `simulation`: The name of the simulation. """ -function start_clock(Simulation; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( +start_clock(Simulation; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "POST", "/startclock", Dict{String,Any}("Simulation" => Simulation); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_clock( Simulation, params::AbstractDict{String}; @@ -477,8 +456,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. """ -function start_simulation(Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( +start_simulation(Name, RoleArn; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "POST", "/startsimulation", Dict{String,Any}( @@ -487,7 +466,6 @@ function start_simulation(Name, RoleArn; aws_config::AbstractAWSConfig=current_a aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_simulation( Name, RoleArn, @@ -523,17 +501,14 @@ Stops the given custom app and shuts down all of its allocated compute resources - `simulation`: The name of the simulation of the app. """ -function stop_app( - App, Domain, Simulation; aws_config::AbstractAWSConfig=current_aws_config() -) - return simspaceweaver( +stop_app(App, Domain, Simulation; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "POST", "/stopapp", Dict{String,Any}("App" => App, "Domain" => Domain, "Simulation" => Simulation); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_app( App, Domain, @@ -568,15 +543,13 @@ Stops the simulation clock. - `simulation`: The name of the simulation. """ -function stop_clock(Simulation; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( - "POST", - "/stopclock", - Dict{String,Any}("Simulation" => Simulation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_clock(Simulation; aws_config::AbstractAWSConfig=current_aws_config()) = simspaceweaver( + "POST", + "/stopclock", + Dict{String,Any}("Simulation" => Simulation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_clock( Simulation, params::AbstractDict{String}; @@ -604,15 +577,14 @@ to restart a simulation, then you must stop it, delete it, and start a new insta - `simulation`: The name of the simulation. """ -function stop_simulation(Simulation; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( +stop_simulation(Simulation; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "POST", "/stopsimulation", Dict{String,Any}("Simulation" => Simulation); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_simulation( Simulation, params::AbstractDict{String}; @@ -643,15 +615,14 @@ Amazon Web Services resources in the Amazon Web Services General Reference. - `tags`: A list of tags to apply to the resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return simspaceweaver( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -681,17 +652,14 @@ Amazon Web Services resources in the Amazon Web Services General Reference. - `tag_keys`: A list of tag keys to remove from the resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return simspaceweaver( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + simspaceweaver( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, diff --git a/src/services/sms.jl b/src/services/sms.jl index 941164f9d..062e9e60e 100644 --- a/src/services/sms.jl +++ b/src/services/sms.jl @@ -22,9 +22,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serverGroups"`: The server groups to include in the application. - `"tags"`: The tags to be associated with the application. """ -function create_app(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("CreateApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_app(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("CreateApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_app( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -59,18 +58,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"roleName"`: The name of the IAM role to be used by the Server Migration Service. - `"runOnce"`: Indicates whether to run the replication job one time. """ -function create_replication_job( +create_replication_job( seedReplicationTime, serverId; aws_config::AbstractAWSConfig=current_aws_config() +) = sms( + "CreateReplicationJob", + Dict{String,Any}("seedReplicationTime" => seedReplicationTime, "serverId" => serverId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "CreateReplicationJob", - Dict{String,Any}( - "seedReplicationTime" => seedReplicationTime, "serverId" => serverId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_replication_job( seedReplicationTime, serverId, @@ -109,9 +104,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"forceTerminateApp"`: Indicates whether to terminate the stack corresponding to the application while deleting the application. """ -function delete_app(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("DeleteApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +delete_app(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("DeleteApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_app( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -128,15 +122,11 @@ Deletes the launch configuration for the specified application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function delete_app_launch_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() +delete_app_launch_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = sms( + "DeleteAppLaunchConfiguration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "DeleteAppLaunchConfiguration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_launch_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -158,15 +148,12 @@ Deletes the replication configuration for the specified application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function delete_app_replication_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sms( +delete_app_replication_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms( "DeleteAppReplicationConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_app_replication_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -188,16 +175,14 @@ Deletes the validation configuration for the specified application. - `app_id`: The ID of the application. """ -function delete_app_validation_configuration( +delete_app_validation_configuration( appId; aws_config::AbstractAWSConfig=current_aws_config() +) = sms( + "DeleteAppValidationConfiguration", + Dict{String,Any}("appId" => appId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "DeleteAppValidationConfiguration", - Dict{String,Any}("appId" => appId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_app_validation_configuration( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -222,16 +207,14 @@ are not deleted. - `replication_job_id`: The ID of the replication job. """ -function delete_replication_job( +delete_replication_job( replicationJobId; aws_config::AbstractAWSConfig=current_aws_config() +) = sms( + "DeleteReplicationJob", + Dict{String,Any}("replicationJobId" => replicationJobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "DeleteReplicationJob", - Dict{String,Any}("replicationJobId" => replicationJobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_replication_job( replicationJobId, params::AbstractDict{String}; @@ -256,11 +239,8 @@ end Deletes all servers from your server catalog. """ -function delete_server_catalog(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms( - "DeleteServerCatalog"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_server_catalog(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("DeleteServerCatalog"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_server_catalog( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -283,16 +263,13 @@ a connector, it is no longer available to support replication jobs. - `connector_id`: The ID of the connector. """ -function disassociate_connector( - connectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return sms( +disassociate_connector(connectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + sms( "DisassociateConnector", Dict{String,Any}("connectorId" => connectorId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_connector( connectorId, params::AbstractDict{String}; @@ -320,9 +297,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"appId"`: The ID of the application associated with the change set. - `"changesetFormat"`: The format for the change set. """ -function generate_change_set(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("GenerateChangeSet"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +generate_change_set(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("GenerateChangeSet"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function generate_change_set( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -343,9 +319,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"appId"`: The ID of the application associated with the CloudFormation template. - `"templateFormat"`: The format for generating the CloudFormation template. """ -function generate_template(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("GenerateTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +generate_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("GenerateTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function generate_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -364,9 +339,8 @@ Retrieve information about the specified application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function get_app(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("GetApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_app(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("GetApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_app( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -383,11 +357,8 @@ Retrieves the application launch configuration associated with the specified app Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function get_app_launch_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms( - "GetAppLaunchConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_app_launch_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("GetAppLaunchConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_app_launch_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -410,15 +381,12 @@ application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function get_app_replication_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sms( +get_app_replication_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms( "GetAppReplicationConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_app_replication_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -440,16 +408,14 @@ Retrieves information about a configuration for validating an application. - `app_id`: The ID of the application. """ -function get_app_validation_configuration( +get_app_validation_configuration( appId; aws_config::AbstractAWSConfig=current_aws_config() +) = sms( + "GetAppValidationConfiguration", + Dict{String,Any}("appId" => appId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "GetAppValidationConfiguration", - Dict{String,Any}("appId" => appId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_app_validation_configuration( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -471,16 +437,12 @@ Retrieves output from validating an application. - `app_id`: The ID of the application. """ -function get_app_validation_output( - appId; aws_config::AbstractAWSConfig=current_aws_config() +get_app_validation_output(appId; aws_config::AbstractAWSConfig=current_aws_config()) = sms( + "GetAppValidationOutput", + Dict{String,Any}("appId" => appId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "GetAppValidationOutput", - Dict{String,Any}("appId" => appId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_app_validation_output( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -505,9 +467,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken value. - `"nextToken"`: The token for the next set of results. """ -function get_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("GetConnectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("GetConnectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -530,9 +491,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. - `"replicationJobId"`: The ID of the replication job. """ -function get_replication_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("GetReplicationJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_replication_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("GetReplicationJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_replication_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -557,16 +517,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken value. - `"nextToken"`: The token for the next set of results. """ -function get_replication_runs( - replicationJobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return sms( +get_replication_runs(replicationJobId; aws_config::AbstractAWSConfig=current_aws_config()) = + sms( "GetReplicationRuns", Dict{String,Any}("replicationJobId" => replicationJobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_replication_runs( replicationJobId, params::AbstractDict{String}; @@ -599,9 +556,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. - `"vmServerAddressList"`: The server addresses. """ -function get_servers(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("GetServers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_servers(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("GetServers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_servers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -620,9 +576,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys service-linked role for Migration Hub in your account. Otherwise, the role that you provide must have the policy and trust policy described in the Migration Hub User Guide. """ -function import_app_catalog(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("ImportAppCatalog"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +import_app_catalog(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("ImportAppCatalog"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function import_app_catalog( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -640,11 +595,8 @@ all servers to import. This call returns immediately, but might take additional retrieve all the servers. """ -function import_server_catalog(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms( - "ImportServerCatalog"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +import_server_catalog(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("ImportServerCatalog"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function import_server_catalog( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -666,9 +618,8 @@ Launches the specified application as a stack in CloudFormation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function launch_app(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("LaunchApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +launch_app(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("LaunchApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function launch_app( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -689,9 +640,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken value. - `"nextToken"`: The token for the next set of results. """ -function list_apps(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("ListApps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_apps(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("ListApps"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_apps( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -712,16 +662,13 @@ successful. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"notificationContext"`: The notification information. """ -function notify_app_validation_output( - appId; aws_config::AbstractAWSConfig=current_aws_config() -) - return sms( +notify_app_validation_output(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + sms( "NotifyAppValidationOutput", Dict{String,Any}("appId" => appId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function notify_app_validation_output( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -749,11 +696,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serverGroupLaunchConfigurations"`: Information about the launch configurations for server groups in the application. """ -function put_app_launch_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms( - "PutAppLaunchConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +put_app_launch_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("PutAppLaunchConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function put_app_launch_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -777,15 +721,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serverGroupReplicationConfigurations"`: Information about the replication configurations for server groups in the application. """ -function put_app_replication_configuration(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return sms( +put_app_replication_configuration(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms( "PutAppReplicationConfiguration"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_app_replication_configuration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -811,16 +752,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"appValidationConfigurations"`: The configuration for application validation. - `"serverGroupValidationConfigurations"`: The configuration for instance validation. """ -function put_app_validation_configuration( +put_app_validation_configuration( appId; aws_config::AbstractAWSConfig=current_aws_config() +) = sms( + "PutAppValidationConfiguration", + Dict{String,Any}("appId" => appId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "PutAppValidationConfiguration", - Dict{String,Any}("appId" => appId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_app_validation_configuration( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -843,11 +782,8 @@ in the application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function start_app_replication(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms( - "StartAppReplication"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +start_app_replication(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("StartAppReplication"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function start_app_replication( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -872,16 +808,13 @@ Starts an on-demand replication run for the specified application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the replication run. """ -function start_on_demand_app_replication( - appId; aws_config::AbstractAWSConfig=current_aws_config() -) - return sms( +start_on_demand_app_replication(appId; aws_config::AbstractAWSConfig=current_aws_config()) = + sms( "StartOnDemandAppReplication", Dict{String,Any}("appId" => appId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_on_demand_app_replication( appId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -909,16 +842,14 @@ There is a limit on the number of on-demand replications runs that you can reque Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: The description of the replication run. """ -function start_on_demand_replication_run( +start_on_demand_replication_run( replicationJobId; aws_config::AbstractAWSConfig=current_aws_config() +) = sms( + "StartOnDemandReplicationRun", + Dict{String,Any}("replicationJobId" => replicationJobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "StartOnDemandReplicationRun", - Dict{String,Any}("replicationJobId" => replicationJobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_on_demand_replication_run( replicationJobId, params::AbstractDict{String}; @@ -947,9 +878,8 @@ in the application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function stop_app_replication(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("StopAppReplication"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +stop_app_replication(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("StopAppReplication"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function stop_app_replication( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -968,9 +898,8 @@ Terminates the stack for the specified application. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"appId"`: The ID of the application. """ -function terminate_app(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("TerminateApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +terminate_app(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("TerminateApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function terminate_app( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -995,9 +924,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serverGroups"`: The server groups in the application to update. - `"tags"`: The tags to associate with the application. """ -function update_app(; aws_config::AbstractAWSConfig=current_aws_config()) - return sms("UpdateApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +update_app(; aws_config::AbstractAWSConfig=current_aws_config()) = + sms("UpdateApp"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_app( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1030,16 +958,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys oldest is deleted after the maximum number is reached and a new AMI is created. - `"roleName"`: The name of the IAM role to be used by Server Migration Service. """ -function update_replication_job( +update_replication_job( replicationJobId; aws_config::AbstractAWSConfig=current_aws_config() +) = sms( + "UpdateReplicationJob", + Dict{String,Any}("replicationJobId" => replicationJobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sms( - "UpdateReplicationJob", - Dict{String,Any}("replicationJobId" => replicationJobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_replication_job( replicationJobId, params::AbstractDict{String}; diff --git a/src/services/snow_device_management.jl b/src/services/snow_device_management.jl index 802e484ae..ddbc7976f 100644 --- a/src/services/snow_device_management.jl +++ b/src/services/snow_device_management.jl @@ -17,14 +17,13 @@ it's processed from the queue before the CancelTask operation changes the task's ID by using the ListTasks operation. """ -function cancel_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) - return snow_device_management( +cancel_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "POST", "/task/$(taskId)/cancel"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -55,8 +54,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment. """ -function create_task(command, targets; aws_config::AbstractAWSConfig=current_aws_config()) - return snow_device_management( +create_task(command, targets; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "POST", "/task", Dict{String,Any}( @@ -65,7 +64,6 @@ function create_task(command, targets; aws_config::AbstractAWSConfig=current_aws aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_task( command, targets, @@ -102,16 +100,13 @@ addresses, and lock status. - `managed_device_id`: The ID of the device that you are checking the information of. """ -function describe_device( - managedDeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return snow_device_management( +describe_device(managedDeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "POST", "/managed-device/$(managedDeviceId)/describe"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_device( managedDeviceId, params::AbstractDict{String}; @@ -139,17 +134,15 @@ Services Cloud and include a subset of the available fields. - `managed_device_id`: The ID of the managed device. """ -function describe_device_ec2_instances( +describe_device_ec2_instances( instanceIds, managedDeviceId; aws_config::AbstractAWSConfig=current_aws_config() +) = snow_device_management( + "POST", + "/managed-device/$(managedDeviceId)/resources/ec2/describe", + Dict{String,Any}("instanceIds" => instanceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return snow_device_management( - "POST", - "/managed-device/$(managedDeviceId)/resources/ec2/describe", - Dict{String,Any}("instanceIds" => instanceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_device_ec2_instances( instanceIds, managedDeviceId, @@ -178,16 +171,14 @@ Checks the status of a remote task running on one or more target devices. - `task_id`: The ID of the task that the action is describing. """ -function describe_execution( +describe_execution( managedDeviceId, taskId; aws_config::AbstractAWSConfig=current_aws_config() +) = snow_device_management( + "POST", + "/task/$(taskId)/execution/$(managedDeviceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return snow_device_management( - "POST", - "/task/$(taskId)/execution/$(managedDeviceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_execution( managedDeviceId, taskId, @@ -213,11 +204,10 @@ Checks the metadata for a given task on a device. - `task_id`: The ID of the task to be described. """ -function describe_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) - return snow_device_management( +describe_task(taskId; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "POST", "/task/$(taskId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_task( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -246,16 +236,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A pagination token to continue to the next page of results. - `"type"`: A structure used to filter the results by type of resource. """ -function list_device_resources( - managedDeviceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return snow_device_management( +list_device_resources(managedDeviceId; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "GET", "/managed-device/$(managedDeviceId)/resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_device_resources( managedDeviceId, params::AbstractDict{String}; @@ -284,11 +271,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of devices to list per page. - `"nextToken"`: A pagination token to continue to the next page of results. """ -function list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return snow_device_management( - "GET", "/managed-devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = snow_device_management( + "GET", "/managed-devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -316,15 +301,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A pagination token to continue to the next page of tasks. - `"state"`: A structure used to filter the tasks by their current state. """ -function list_executions(taskId; aws_config::AbstractAWSConfig=current_aws_config()) - return snow_device_management( +list_executions(taskId; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "GET", "/executions", Dict{String,Any}("taskId" => taskId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_executions( taskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -347,16 +331,13 @@ Returns a list of tags for a managed device or task. - `resource_arn`: The Amazon Resource Name (ARN) of the device or task. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return snow_device_management( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -383,11 +364,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A pagination token to continue to the next page of tasks. - `"state"`: A structure used to filter the list of tasks. """ -function list_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return snow_device_management( - "GET", "/tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = snow_device_management( + "GET", "/tasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -408,15 +387,14 @@ Adds or replaces tags on a device or task. resource in different ways, such as by purpose, owner, or environment. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return snow_device_management( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -444,17 +422,14 @@ Removes a tag from a device or task. categorize a resource in different ways, such as by purpose, owner, or environment. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return snow_device_management( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + snow_device_management( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/snowball.jl b/src/services/snowball.jl index b953217e5..12517921d 100644 --- a/src/services/snowball.jl +++ b/src/services/snowball.jl @@ -16,14 +16,12 @@ status. You'll have at least an hour after creating a cluster job to cancel it. CID123e4567-e89b-12d3-a456-426655440000. """ -function cancel_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "CancelCluster", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "CancelCluster", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_cluster( ClusterId, params::AbstractDict{String}; @@ -52,14 +50,12 @@ as part of the response element data returned. JID123e4567-e89b-12d3-a456-426655440000. """ -function cancel_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "CancelJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "CancelJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -86,14 +82,12 @@ file://create-address.json. - `address`: The address that you want the Snow device shipped to. """ -function create_address(Address; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "CreateAddress", - Dict{String,Any}("Address" => Address); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_address(Address; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "CreateAddress", + Dict{String,Any}("Address" => Address); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_address( Address, params::AbstractDict{String}; @@ -185,25 +179,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (Snow Family Devices and Capacity) in the Snowcone User Guide. - `"TaxDocuments"`: The tax documents required in your Amazon Web Services Region. """ -function create_cluster( +create_cluster( AddressId, JobType, ShippingOption, SnowballType; aws_config::AbstractAWSConfig=current_aws_config(), +) = snowball( + "CreateCluster", + Dict{String,Any}( + "AddressId" => AddressId, + "JobType" => JobType, + "ShippingOption" => ShippingOption, + "SnowballType" => SnowballType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return snowball( - "CreateCluster", - Dict{String,Any}( - "AddressId" => AddressId, - "JobType" => JobType, - "ShippingOption" => ShippingOption, - "SnowballType" => SnowballType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cluster( AddressId, JobType, @@ -326,9 +318,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (Snow Family Devices and Capacity) in the Snowcone User Guide. - `"TaxDocuments"`: The tax documents required in your Amazon Web Services Region. """ -function create_job(; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball("CreateJob"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_job(; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball("CreateJob"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_job( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -355,18 +346,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IsLongTermPricingAutoRenew"`: Specifies whether the current long-term pricing type for the device should be renewed. """ -function create_long_term_pricing( +create_long_term_pricing( LongTermPricingType, SnowballType; aws_config::AbstractAWSConfig=current_aws_config() +) = snowball( + "CreateLongTermPricing", + Dict{String,Any}( + "LongTermPricingType" => LongTermPricingType, "SnowballType" => SnowballType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return snowball( - "CreateLongTermPricing", - Dict{String,Any}( - "LongTermPricingType" => LongTermPricingType, "SnowballType" => SnowballType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_long_term_pricing( LongTermPricingType, SnowballType, @@ -406,16 +395,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys how soon the device is returned to Amazon Web Services. This speed represents how quickly it moves to its destination while in transit. Regional shipping speeds are as follows: """ -function create_return_shipping_label( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return snowball( +create_return_shipping_label(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball( "CreateReturnShippingLabel", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_return_shipping_label( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -438,14 +424,12 @@ Address object. - `address_id`: The automatically generated ID for a specific address. """ -function describe_address(AddressId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "DescribeAddress", - Dict{String,Any}("AddressId" => AddressId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_address(AddressId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "DescribeAddress", + Dict{String,Any}("AddressId" => AddressId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_address( AddressId, params::AbstractDict{String}; @@ -476,11 +460,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys list of ADDRESS objects, you have the option of specifying a value for NextToken as the starting point for your list of returned addresses. """ -function describe_addresses(; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "DescribeAddresses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_addresses(; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball("DescribeAddresses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_addresses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -500,14 +481,12 @@ status, and other important metadata. - `cluster_id`: The automatically generated ID for a cluster. """ -function describe_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "DescribeCluster", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "DescribeCluster", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_cluster( ClusterId, params::AbstractDict{String}; @@ -535,14 +514,12 @@ other important metadata. JID123e4567-e89b-12d3-a456-426655440000. """ -function describe_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "DescribeJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "DescribeJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -566,16 +543,13 @@ Services. JID123e4567-e89b-12d3-a456-426655440000. """ -function describe_return_shipping_label( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return snowball( +describe_return_shipping_label(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball( "DescribeReturnShippingLabel", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_return_shipping_label( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -610,14 +584,12 @@ including its manifest file and unlock code, expire 360 days after the job is cr JID123e4567-e89b-12d3-a456-426655440000. """ -function get_job_manifest(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "GetJobManifest", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job_manifest(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "GetJobManifest", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job_manifest( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -649,14 +621,12 @@ unauthorized parties from gaining access to the Snow device associated with that JID123e4567-e89b-12d3-a456-426655440000. """ -function get_job_unlock_code(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "GetJobUnlockCode", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_job_unlock_code(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "GetJobUnlockCode", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_job_unlock_code( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -678,11 +648,8 @@ Snow devices that you can have at one time is 1. If you want to increase your se limit, contact Amazon Web Services Support. """ -function get_snowball_usage(; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "GetSnowballUsage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_snowball_usage(; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball("GetSnowballUsage"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_snowball_usage( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -702,14 +669,12 @@ Returns an Amazon S3 presigned URL for an update file associated with a specifie JID123e4567-e89b-12d3-a456-426655440000. """ -function get_software_updates(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "GetSoftwareUpdates", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_software_updates(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "GetSoftwareUpdates", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_software_updates( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -740,14 +705,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list. """ -function list_cluster_jobs(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "ListClusterJobs", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_cluster_jobs(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "ListClusterJobs", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_cluster_jobs( ClusterId, params::AbstractDict{String}; @@ -777,9 +740,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys list of ClusterListEntry objects, you have the option of specifying NextToken as the starting point for your returned list. """ -function list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_clusters(; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball("ListClusters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_clusters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -808,11 +770,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys list of compatible images, you can specify a value for NextToken as the starting point for your list of returned images. """ -function list_compatible_images(; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "ListCompatibleImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_compatible_images(; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball("ListCompatibleImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_compatible_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -840,9 +799,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list. """ -function list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball("ListJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball("ListJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -863,11 +821,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Because HTTP requests are stateless, this is the starting point for your next list of ListLongTermPricing to return. """ -function list_long_term_pricing(; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "ListLongTermPricing"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_long_term_pricing(; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball("ListLongTermPricing"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_long_term_pricing( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -892,11 +847,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys list of ListPickupLocationsRequest objects, you have the option of specifying NextToken as the starting point for your returned list. """ -function list_pickup_locations(; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "ListPickupLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_pickup_locations(; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball("ListPickupLocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_pickup_locations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -926,16 +878,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Because HTTP requests are stateless, this is the starting point for the next list of returned ListServiceVersionsRequest versions. """ -function list_service_versions( - ServiceName; aws_config::AbstractAWSConfig=current_aws_config() -) - return snowball( +list_service_versions(ServiceName; aws_config::AbstractAWSConfig=current_aws_config()) = + snowball( "ListServiceVersions", Dict{String,Any}("ServiceName" => ServiceName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_service_versions( ServiceName, params::AbstractDict{String}; @@ -982,14 +931,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ShippingOption"`: The updated shipping option value of this cluster's ShippingDetails object. """ -function update_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "UpdateCluster", - Dict{String,Any}("ClusterId" => ClusterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_cluster(ClusterId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "UpdateCluster", + Dict{String,Any}("ClusterId" => ClusterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_cluster( ClusterId, params::AbstractDict{String}; @@ -1043,14 +990,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide. """ -function update_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return snowball( - "UpdateJob", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = snowball( + "UpdateJob", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1076,16 +1021,14 @@ Updates the state when a shipment state changes to a different state. Amazon Web Services. """ -function update_job_shipment_state( +update_job_shipment_state( JobId, ShipmentState; aws_config::AbstractAWSConfig=current_aws_config() +) = snowball( + "UpdateJobShipmentState", + Dict{String,Any}("JobId" => JobId, "ShipmentState" => ShipmentState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return snowball( - "UpdateJobShipmentState", - Dict{String,Any}("JobId" => JobId, "ShipmentState" => ShipmentState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_job_shipment_state( JobId, ShipmentState, @@ -1123,16 +1066,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReplacementJob"`: Specifies that a device that is ordered with long-term pricing should be replaced with a new device. """ -function update_long_term_pricing( +update_long_term_pricing( LongTermPricingId; aws_config::AbstractAWSConfig=current_aws_config() +) = snowball( + "UpdateLongTermPricing", + Dict{String,Any}("LongTermPricingId" => LongTermPricingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return snowball( - "UpdateLongTermPricing", - Dict{String,Any}("LongTermPricingId" => LongTermPricingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_long_term_pricing( LongTermPricingId, params::AbstractDict{String}; diff --git a/src/services/sns.jl b/src/services/sns.jl index 70e8434b9..e04765bfb 100644 --- a/src/services/sns.jl +++ b/src/services/sns.jl @@ -23,25 +23,23 @@ SetTopicAttributes actions in your IAM policy. - `topic_arn`: The ARN of the topic whose access control policy you wish to modify. """ -function add_permission( +add_permission( AWSAccountId, ActionName, Label, TopicArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sns( + "AddPermission", + Dict{String,Any}( + "AWSAccountId" => AWSAccountId, + "ActionName" => ActionName, + "Label" => Label, + "TopicArn" => TopicArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "AddPermission", - Dict{String,Any}( - "AWSAccountId" => AWSAccountId, - "ActionName" => ActionName, - "Label" => Label, - "TopicArn" => TopicArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_permission( AWSAccountId, ActionName, @@ -82,16 +80,14 @@ the OptInPhoneNumber action. - `phone_number`: The phone number for which you want to check the opt out status. """ -function check_if_phone_number_is_opted_out( +check_if_phone_number_is_opted_out( phoneNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "CheckIfPhoneNumberIsOptedOut", + Dict{String,Any}("phoneNumber" => phoneNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "CheckIfPhoneNumberIsOptedOut", - Dict{String,Any}("phoneNumber" => phoneNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function check_if_phone_number_is_opted_out( phoneNumber, params::AbstractDict{String}; @@ -127,16 +123,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires Amazon Web Services authentication. """ -function confirm_subscription( - Token, TopicArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sns( +confirm_subscription(Token, TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sns( "ConfirmSubscription", Dict{String,Any}("Token" => Token, "TopicArn" => TopicArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function confirm_subscription( Token, TopicArn, @@ -187,18 +180,14 @@ PlatformApplicationArn as an attribute for the CreatePlatformEndpoint action. (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging). """ -function create_platform_application( +create_platform_application( Attributes, Name, Platform; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "CreatePlatformApplication", + Dict{String,Any}("Attributes" => Attributes, "Name" => Name, "Platform" => Platform); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "CreatePlatformApplication", - Dict{String,Any}( - "Attributes" => Attributes, "Name" => Name, "Platform" => Platform - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_platform_application( Attributes, Name, @@ -252,18 +241,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CustomUserData"`: Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB. """ -function create_platform_endpoint( +create_platform_endpoint( PlatformApplicationArn, Token; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "CreatePlatformEndpoint", + Dict{String,Any}("PlatformApplicationArn" => PlatformApplicationArn, "Token" => Token); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "CreatePlatformEndpoint", - Dict{String,Any}( - "PlatformApplicationArn" => PlatformApplicationArn, "Token" => Token - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_platform_endpoint( PlatformApplicationArn, Token, @@ -308,16 +293,14 @@ Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LanguageCode"`: The language to use for sending the OTP. The default value is en-US. """ -function create_smssandbox_phone_number( +create_smssandbox_phone_number( PhoneNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "CreateSMSSandboxPhoneNumber", + Dict{String,Any}("PhoneNumber" => PhoneNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "CreateSMSSandboxPhoneNumber", - Dict{String,Any}("PhoneNumber" => PhoneNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_smssandbox_phone_number( PhoneNumber, params::AbstractDict{String}; @@ -386,14 +369,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The list of tags to add to a new topic. To be able to tag a topic on creation, you must have the sns:CreateTopic and sns:TagResource permissions. """ -function create_topic(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "CreateTopic", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_topic(Name; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "CreateTopic", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_topic( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -418,14 +399,12 @@ endpoint from the topic. - `endpoint_arn`: EndpointArn of endpoint to delete. """ -function delete_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "DeleteEndpoint", - Dict{String,Any}("EndpointArn" => EndpointArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_endpoint(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "DeleteEndpoint", + Dict{String,Any}("EndpointArn" => EndpointArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_endpoint( EndpointArn, params::AbstractDict{String}; @@ -454,16 +433,14 @@ Mobile Push Notifications. delete. """ -function delete_platform_application( +delete_platform_application( PlatformApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "DeletePlatformApplication", + Dict{String,Any}("PlatformApplicationArn" => PlatformApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "DeletePlatformApplication", - Dict{String,Any}("PlatformApplicationArn" => PlatformApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_platform_application( PlatformApplicationArn, params::AbstractDict{String}; @@ -500,16 +477,14 @@ restrictions, see SMS sandbox in the Amazon SNS Developer Guide. - `phone_number`: The destination phone number to delete. """ -function delete_smssandbox_phone_number( +delete_smssandbox_phone_number( PhoneNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "DeleteSMSSandboxPhoneNumber", + Dict{String,Any}("PhoneNumber" => PhoneNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "DeleteSMSSandboxPhoneNumber", - Dict{String,Any}("PhoneNumber" => PhoneNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_smssandbox_phone_number( PhoneNumber, params::AbstractDict{String}; @@ -537,14 +512,12 @@ idempotent, so deleting a topic that does not exist does not result in an error. - `topic_arn`: The ARN of the topic you want to delete. """ -function delete_topic(TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "DeleteTopic", - Dict{String,Any}("TopicArn" => TopicArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_topic(TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "DeleteTopic", + Dict{String,Any}("TopicArn" => TopicArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_topic( TopicArn, params::AbstractDict{String}; @@ -573,16 +546,14 @@ specified Amazon SNS topic. Reference. """ -function get_data_protection_policy( +get_data_protection_policy( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "GetDataProtectionPolicy", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "GetDataProtectionPolicy", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_data_protection_policy( ResourceArn, params::AbstractDict{String}; @@ -610,16 +581,13 @@ Amazon SNS Mobile Push Notifications. - `endpoint_arn`: EndpointArn for GetEndpointAttributes input. """ -function get_endpoint_attributes( - EndpointArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sns( +get_endpoint_attributes(EndpointArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sns( "GetEndpointAttributes", Dict{String,Any}("EndpointArn" => EndpointArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_endpoint_attributes( EndpointArn, params::AbstractDict{String}; @@ -648,16 +616,14 @@ information, see Using Amazon SNS Mobile Push Notifications. GetPlatformApplicationAttributesInput. """ -function get_platform_application_attributes( +get_platform_application_attributes( PlatformApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "GetPlatformApplicationAttributes", + Dict{String,Any}("PlatformApplicationArn" => PlatformApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "GetPlatformApplicationAttributes", - Dict{String,Any}("PlatformApplicationArn" => PlatformApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_platform_application_attributes( PlatformApplicationArn, params::AbstractDict{String}; @@ -690,9 +656,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys which you want values. For all attribute names, see SetSMSAttributes. If you don't use this parameter, Amazon SNS returns all SMS attributes. """ -function get_smsattributes(; aws_config::AbstractAWSConfig=current_aws_config()) - return sns("GetSMSAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_smsattributes(; aws_config::AbstractAWSConfig=current_aws_config()) = + sns("GetSMSAttributes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_smsattributes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -715,11 +680,9 @@ phone numbers. For more information, including how to move out of the sandbox to messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide. """ -function get_smssandbox_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "GetSMSSandboxAccountStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_smssandbox_account_status(; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "GetSMSSandboxAccountStatus"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_smssandbox_account_status( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -741,16 +704,14 @@ Returns all of the properties of a subscription. - `subscription_arn`: The ARN of the subscription whose properties you want to get. """ -function get_subscription_attributes( +get_subscription_attributes( SubscriptionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "GetSubscriptionAttributes", + Dict{String,Any}("SubscriptionArn" => SubscriptionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "GetSubscriptionAttributes", - Dict{String,Any}("SubscriptionArn" => SubscriptionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_subscription_attributes( SubscriptionArn, params::AbstractDict{String}; @@ -779,14 +740,12 @@ the authorization of the user. - `topic_arn`: The ARN of the topic whose properties you want to get. """ -function get_topic_attributes(TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "GetTopicAttributes", - Dict{String,Any}("TopicArn" => TopicArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_topic_attributes(TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "GetTopicAttributes", + Dict{String,Any}("TopicArn" => TopicArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_topic_attributes( TopicArn, params::AbstractDict{String}; @@ -825,16 +784,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: NextToken string is used when calling ListEndpointsByPlatformApplication action to retrieve additional records that are available after the first page results. """ -function list_endpoints_by_platform_application( +list_endpoints_by_platform_application( PlatformApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "ListEndpointsByPlatformApplication", + Dict{String,Any}("PlatformApplicationArn" => PlatformApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "ListEndpointsByPlatformApplication", - Dict{String,Any}("PlatformApplicationArn" => PlatformApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_endpoints_by_platform_application( PlatformApplicationArn, params::AbstractDict{String}; @@ -867,11 +824,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of origination numbers to return. - `"NextToken"`: Token that the previous ListOriginationNumbers request returns. """ -function list_origination_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "ListOriginationNumbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_origination_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) = + sns("ListOriginationNumbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_origination_numbers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -899,11 +853,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results. """ -function list_phone_numbers_opted_out(; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "ListPhoneNumbersOptedOut"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_phone_numbers_opted_out(; aws_config::AbstractAWSConfig=current_aws_config()) = + sns("ListPhoneNumbersOptedOut"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_phone_numbers_opted_out( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -933,11 +884,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: NextToken string is used when calling ListPlatformApplications action to retrieve additional records that are available after the first page results. """ -function list_platform_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "ListPlatformApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_platform_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = + sns("ListPlatformApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_platform_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -967,11 +915,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of phone numbers to return. - `"NextToken"`: Token that the previous ListSMSSandboxPhoneNumbersInput request returns. """ -function list_smssandbox_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "ListSMSSandboxPhoneNumbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_smssandbox_phone_numbers(; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "ListSMSSandboxPhoneNumbers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_smssandbox_phone_numbers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -996,9 +942,8 @@ action is throttled at 30 transactions per second (TPS). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Token returned by the previous ListSubscriptions request. """ -function list_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) - return sns("ListSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_subscriptions(; aws_config::AbstractAWSConfig=current_aws_config()) = + sns("ListSubscriptions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_subscriptions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1023,16 +968,13 @@ This action is throttled at 30 transactions per second (TPS). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Token returned by the previous ListSubscriptionsByTopic request. """ -function list_subscriptions_by_topic( - TopicArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sns( +list_subscriptions_by_topic(TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sns( "ListSubscriptionsByTopic", Dict{String,Any}("TopicArn" => TopicArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_subscriptions_by_topic( TopicArn, params::AbstractDict{String}; @@ -1059,16 +1001,13 @@ in the Amazon Simple Notification Service Developer Guide. - `resource_arn`: The ARN of the topic for which to list tags. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sns( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sns( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1097,9 +1036,8 @@ per second (TPS). Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Token returned by the previous ListTopics request. """ -function list_topics(; aws_config::AbstractAWSConfig=current_aws_config()) - return sns("ListTopics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_topics(; aws_config::AbstractAWSConfig=current_aws_config()) = + sns("ListTopics"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_topics( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1117,16 +1055,12 @@ sending SMS messages to the number. You can opt in a phone number only once ever - `phone_number`: The phone number to opt in. Use E.164 format. """ -function opt_in_phone_number( - phoneNumber; aws_config::AbstractAWSConfig=current_aws_config() +opt_in_phone_number(phoneNumber; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "OptInPhoneNumber", + Dict{String,Any}("phoneNumber" => phoneNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "OptInPhoneNumber", - Dict{String,Any}("phoneNumber" => phoneNumber); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function opt_in_phone_number( phoneNumber, params::AbstractDict{String}; @@ -1218,14 +1152,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TopicArn"`: The topic you want to publish to. If you don't specify a value for the TopicArn parameter, you must specify a value for the PhoneNumber or TargetArn parameters. """ -function publish(Message; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "Publish", - Dict{String,Any}("Message" => Message); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +publish(Message; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "Publish", + Dict{String,Any}("Message" => Message); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function publish( Message, params::AbstractDict{String}; @@ -1265,19 +1197,17 @@ saved and Amazon SNS immediately delivers the message to subscribers. - `topic_arn`: The Amazon resource name (ARN) of the topic you want to batch publish to. """ -function publish_batch( +publish_batch( PublishBatchRequestEntries, TopicArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "PublishBatch", + Dict{String,Any}( + "PublishBatchRequestEntries" => PublishBatchRequestEntries, + "TopicArn" => TopicArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "PublishBatch", - Dict{String,Any}( - "PublishBatchRequestEntries" => PublishBatchRequestEntries, - "TopicArn" => TopicArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function publish_batch( PublishBatchRequestEntries, TopicArn, @@ -1316,18 +1246,16 @@ Adds or updates an inline policy document that is stored in the specified Amazon Services General Reference. """ -function put_data_protection_policy( +put_data_protection_policy( DataProtectionPolicy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "PutDataProtectionPolicy", + Dict{String,Any}( + "DataProtectionPolicy" => DataProtectionPolicy, "ResourceArn" => ResourceArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "PutDataProtectionPolicy", - Dict{String,Any}( - "DataProtectionPolicy" => DataProtectionPolicy, "ResourceArn" => ResourceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_data_protection_policy( DataProtectionPolicy, ResourceArn, @@ -1364,16 +1292,13 @@ SetTopicAttributes actions in your IAM policy. - `topic_arn`: The ARN of the topic whose access control policy you wish to modify. """ -function remove_permission( - Label, TopicArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sns( +remove_permission(Label, TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sns( "RemovePermission", Dict{String,Any}("Label" => Label, "TopicArn" => TopicArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_permission( Label, TopicArn, @@ -1413,16 +1338,14 @@ Amazon SNS Mobile Push Notifications. - `endpoint_arn`: EndpointArn used for SetEndpointAttributes action. """ -function set_endpoint_attributes( +set_endpoint_attributes( Attributes, EndpointArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "SetEndpointAttributes", + Dict{String,Any}("Attributes" => Attributes, "EndpointArn" => EndpointArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "SetEndpointAttributes", - Dict{String,Any}("Attributes" => Attributes, "EndpointArn" => EndpointArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_endpoint_attributes( Attributes, EndpointArn, @@ -1484,18 +1407,16 @@ delivery status, see Using Amazon SNS Application Attributes for Message Deliver action. """ -function set_platform_application_attributes( +set_platform_application_attributes( Attributes, PlatformApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "SetPlatformApplicationAttributes", + Dict{String,Any}( + "Attributes" => Attributes, "PlatformApplicationArn" => PlatformApplicationArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "SetPlatformApplicationAttributes", - Dict{String,Any}( - "Attributes" => Attributes, "PlatformApplicationArn" => PlatformApplicationArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_platform_application_attributes( Attributes, PlatformApplicationArn, @@ -1569,14 +1490,12 @@ the s3:ListBucket action. Amazon SNS Developer Guide. """ -function set_smsattributes(attributes; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "SetSMSAttributes", - Dict{String,Any}("attributes" => attributes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +set_smsattributes(attributes; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "SetSMSAttributes", + Dict{String,Any}("attributes" => attributes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function set_smsattributes( attributes, params::AbstractDict{String}; @@ -1626,18 +1545,16 @@ Allows a subscription owner to set an attribute of the subscription to a new val Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AttributeValue"`: The new value for the attribute in JSON format. """ -function set_subscription_attributes( +set_subscription_attributes( AttributeName, SubscriptionArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "SetSubscriptionAttributes", + Dict{String,Any}( + "AttributeName" => AttributeName, "SubscriptionArn" => SubscriptionArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "SetSubscriptionAttributes", - Dict{String,Any}( - "AttributeName" => AttributeName, "SubscriptionArn" => SubscriptionArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_subscription_attributes( AttributeName, SubscriptionArn, @@ -1740,16 +1657,14 @@ RemovePermission, and SetTopicAttributes actions in your IAM policy. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"AttributeValue"`: The new value for the attribute. """ -function set_topic_attributes( +set_topic_attributes( AttributeName, TopicArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "SetTopicAttributes", + Dict{String,Any}("AttributeName" => AttributeName, "TopicArn" => TopicArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "SetTopicAttributes", - Dict{String,Any}("AttributeName" => AttributeName, "TopicArn" => TopicArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_topic_attributes( AttributeName, TopicArn, @@ -1842,14 +1757,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys subscription becomes confirmed when the subscriber calls the ConfirmSubscription action with a confirmation token. The default value is false. """ -function subscribe(Protocol, TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "Subscribe", - Dict{String,Any}("Protocol" => Protocol, "TopicArn" => TopicArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +subscribe(Protocol, TopicArn; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "Subscribe", + Dict{String,Any}("Protocol" => Protocol, "TopicArn" => TopicArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function subscribe( Protocol, TopicArn, @@ -1889,14 +1802,12 @@ request. an optional value. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "TagResource", - Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "TagResource", + Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceArn, Tags, @@ -1935,14 +1846,12 @@ transactions per second (TPS). - `subscription_arn`: The ARN of the subscription to be deleted. """ -function unsubscribe(SubscriptionArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sns( - "Unsubscribe", - Dict{String,Any}("SubscriptionArn" => SubscriptionArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +unsubscribe(SubscriptionArn; aws_config::AbstractAWSConfig=current_aws_config()) = sns( + "Unsubscribe", + Dict{String,Any}("SubscriptionArn" => SubscriptionArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function unsubscribe( SubscriptionArn, params::AbstractDict{String}; @@ -1972,16 +1881,13 @@ the Amazon SNS Developer Guide. - `tag_keys`: The list of tag keys to remove from the specified topic. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return sns( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + sns( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2021,18 +1927,14 @@ restrictions, see SMS sandbox in the Amazon SNS Developer Guide. - `phone_number`: The destination phone number to verify. """ -function verify_smssandbox_phone_number( +verify_smssandbox_phone_number( OneTimePassword, PhoneNumber; aws_config::AbstractAWSConfig=current_aws_config() +) = sns( + "VerifySMSSandboxPhoneNumber", + Dict{String,Any}("OneTimePassword" => OneTimePassword, "PhoneNumber" => PhoneNumber); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sns( - "VerifySMSSandboxPhoneNumber", - Dict{String,Any}( - "OneTimePassword" => OneTimePassword, "PhoneNumber" => PhoneNumber - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function verify_smssandbox_phone_number( OneTimePassword, PhoneNumber, diff --git a/src/services/sqs.jl b/src/services/sqs.jl index 111538ed7..2da18e2ab 100644 --- a/src/services/sqs.jl +++ b/src/services/sqs.jl @@ -39,25 +39,23 @@ permissions to a role and a username in the Amazon SQS Developer Guide. and names are case-sensitive. """ -function add_permission( +add_permission( AWSAccountIds, Actions, Label, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config(), +) = sqs( + "AddPermission", + Dict{String,Any}( + "AWSAccountIds" => AWSAccountIds, + "Actions" => Actions, + "Label" => Label, + "QueueUrl" => QueueUrl, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sqs( - "AddPermission", - Dict{String,Any}( - "AWSAccountIds" => AWSAccountIds, - "Actions" => Actions, - "Label" => Label, - "QueueUrl" => QueueUrl, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_permission( AWSAccountIds, Actions, @@ -102,16 +100,13 @@ active message movement task is supported per queue at any given time. - `task_handle`: An identifier associated with a message movement task. """ -function cancel_message_move_task( - TaskHandle; aws_config::AbstractAWSConfig=current_aws_config() -) - return sqs( +cancel_message_move_task(TaskHandle; aws_config::AbstractAWSConfig=current_aws_config()) = + sqs( "CancelMessageMoveTask", Dict{String,Any}("TaskHandle" => TaskHandle); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_message_move_task( TaskHandle, params::AbstractDict{String}; @@ -173,23 +168,21 @@ message is received. Values range: 0 to 43200. Maximum: 12 hours. """ -function change_message_visibility( +change_message_visibility( QueueUrl, ReceiptHandle, VisibilityTimeout; aws_config::AbstractAWSConfig=current_aws_config(), +) = sqs( + "ChangeMessageVisibility", + Dict{String,Any}( + "QueueUrl" => QueueUrl, + "ReceiptHandle" => ReceiptHandle, + "VisibilityTimeout" => VisibilityTimeout, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sqs( - "ChangeMessageVisibility", - Dict{String,Any}( - "QueueUrl" => QueueUrl, - "ReceiptHandle" => ReceiptHandle, - "VisibilityTimeout" => VisibilityTimeout, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function change_message_visibility( QueueUrl, ReceiptHandle, @@ -233,16 +226,14 @@ call returns an HTTP status code of 200. URLs and names are case-sensitive. """ -function change_message_visibility_batch( +change_message_visibility_batch( Entries, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config() +) = sqs( + "ChangeMessageVisibilityBatch", + Dict{String,Any}("Entries" => Entries, "QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sqs( - "ChangeMessageVisibilityBatch", - Dict{String,Any}("Entries" => Entries, "QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function change_message_visibility_batch( Entries, QueueUrl, @@ -395,14 +386,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide. """ -function create_queue(QueueName; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "CreateQueue", - Dict{String,Any}("QueueName" => QueueName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_queue(QueueName; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "CreateQueue", + Dict{String,Any}("QueueName" => QueueName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_queue( QueueName, params::AbstractDict{String}; @@ -444,16 +433,14 @@ not cause issues. - `receipt_handle`: The receipt handle associated with the message to delete. """ -function delete_message( +delete_message( QueueUrl, ReceiptHandle; aws_config::AbstractAWSConfig=current_aws_config() +) = sqs( + "DeleteMessage", + Dict{String,Any}("QueueUrl" => QueueUrl, "ReceiptHandle" => ReceiptHandle); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sqs( - "DeleteMessage", - Dict{String,Any}("QueueUrl" => QueueUrl, "ReceiptHandle" => ReceiptHandle); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_message( QueueUrl, ReceiptHandle, @@ -490,16 +477,14 @@ status code of 200. and names are case-sensitive. """ -function delete_message_batch( +delete_message_batch( Entries, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config() +) = sqs( + "DeleteMessageBatch", + Dict{String,Any}("Entries" => Entries, "QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sqs( - "DeleteMessageBatch", - Dict{String,Any}("Entries" => Entries, "QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_message_batch( Entries, QueueUrl, @@ -539,14 +524,12 @@ username in the Amazon SQS Developer Guide. The delete operation uses the HTTP G case-sensitive. """ -function delete_queue(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "DeleteQueue", - Dict{String,Any}("QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_queue(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "DeleteQueue", + Dict{String,Any}("QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_queue( QueueUrl, params::AbstractDict{String}; @@ -655,14 +638,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and deduplication occurs as specified. For information on throughput quotas, see Quotas related to messages in the Amazon SQS Developer Guide. """ -function get_queue_attributes(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "GetQueueAttributes", - Dict{String,Any}("QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_queue_attributes(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "GetQueueAttributes", + Dict{String,Any}("QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_queue_attributes( QueueUrl, params::AbstractDict{String}; @@ -698,14 +679,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"QueueOwnerAWSAccountId"`: The Amazon Web Services account ID of the account that created the queue. """ -function get_queue_url(QueueName; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "GetQueueUrl", - Dict{String,Any}("QueueName" => QueueName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_queue_url(QueueName; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "GetQueueUrl", + Dict{String,Any}("QueueName" => QueueName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_queue_url( QueueName, params::AbstractDict{String}; @@ -744,16 +723,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 1000. You must set MaxResults to receive a value for NextToken in the response. - `"NextToken"`: Pagination token to request the next set of results. """ -function list_dead_letter_source_queues( +list_dead_letter_source_queues( QueueUrl; aws_config::AbstractAWSConfig=current_aws_config() +) = sqs( + "ListDeadLetterSourceQueues", + Dict{String,Any}("QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sqs( - "ListDeadLetterSourceQueues", - Dict{String,Any}("QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_dead_letter_source_queues( QueueUrl, params::AbstractDict{String}; @@ -788,16 +765,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to include in the response. The default is 1, which provides the most recent message movement task. The upper limit is 10. """ -function list_message_move_tasks( - SourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sqs( +list_message_move_tasks(SourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sqs( "ListMessageMoveTasks", Dict{String,Any}("SourceArn" => SourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_message_move_tasks( SourceArn, params::AbstractDict{String}; @@ -826,14 +800,12 @@ permissions to a role and a username in the Amazon SQS Developer Guide. - `queue_url`: The URL of the queue. """ -function list_queue_tags(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "ListQueueTags", - Dict{String,Any}("QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_queue_tags(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "ListQueueTags", + Dict{String,Any}("QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_queue_tags( QueueUrl, params::AbstractDict{String}; @@ -873,9 +845,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys whose name begins with the specified string are returned. Queue URLs and names are case-sensitive. """ -function list_queues(; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs("ListQueues"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_queues(; aws_config::AbstractAWSConfig=current_aws_config()) = + sqs("ListQueues"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_queues( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -898,14 +869,12 @@ to the queue after you call PurgeQueue might be deleted while the queue is being Queue URLs and names are case-sensitive. """ -function purge_queue(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "PurgeQueue", - Dict{String,Any}("QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +purge_queue(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "PurgeQueue", + Dict{String,Any}("QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function purge_queue( QueueUrl, params::AbstractDict{String}; @@ -1038,14 +1007,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Java SDK, you can set HTTP transport settings using the NettyNioAsyncHttpClient for asynchronous clients, or the ApacheHttpClient for synchronous clients. """ -function receive_message(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "ReceiveMessage", - Dict{String,Any}("QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +receive_message(QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "ReceiveMessage", + Dict{String,Any}("QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function receive_message( QueueUrl, params::AbstractDict{String}; @@ -1079,16 +1046,13 @@ SetQueueAttributes actions in your IAM policy. URLs and names are case-sensitive. """ -function remove_permission( - Label, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config() -) - return sqs( +remove_permission(Label, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) = + sqs( "RemovePermission", Dict{String,Any}("Label" => Label, "QueueUrl" => QueueUrl); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function remove_permission( Label, QueueUrl, @@ -1187,16 +1151,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys correctly formatted X-Ray trace header string. The size of a message system attribute doesn't count towards the total size of a message. """ -function send_message( - MessageBody, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config() -) - return sqs( +send_message(MessageBody, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) = + sqs( "SendMessage", Dict{String,Any}("MessageBody" => MessageBody, "QueueUrl" => QueueUrl); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_message( MessageBody, QueueUrl, @@ -1244,16 +1205,13 @@ an entry, Amazon SQS uses the default value for the queue. URLs and names are case-sensitive. """ -function send_message_batch( - Entries, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config() -) - return sqs( +send_message_batch(Entries, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config()) = + sqs( "SendMessageBatch", Dict{String,Any}("Entries" => Entries, "QueueUrl" => QueueUrl); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_message_batch( Entries, QueueUrl, @@ -1380,16 +1338,14 @@ IAM policy. names are case-sensitive. """ -function set_queue_attributes( +set_queue_attributes( Attributes, QueueUrl; aws_config::AbstractAWSConfig=current_aws_config() +) = sqs( + "SetQueueAttributes", + Dict{String,Any}("Attributes" => Attributes, "QueueUrl" => QueueUrl); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sqs( - "SetQueueAttributes", - Dict{String,Any}("Attributes" => Attributes, "QueueUrl" => QueueUrl); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_queue_attributes( Attributes, QueueUrl, @@ -1441,16 +1397,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys optimize the rate based on the queue message backlog size, which may vary throughout the duration of the message movement task. """ -function start_message_move_task( - SourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sqs( +start_message_move_task(SourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sqs( "StartMessageMoveTask", Dict{String,Any}("SourceArn" => SourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_message_move_task( SourceArn, params::AbstractDict{String}; @@ -1485,14 +1438,12 @@ in the Amazon SQS Developer Guide. - `tags`: The list of tags to be added to the specified queue. """ -function tag_queue(QueueUrl, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "TagQueue", - Dict{String,Any}("QueueUrl" => QueueUrl, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_queue(QueueUrl, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "TagQueue", + Dict{String,Any}("QueueUrl" => QueueUrl, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_queue( QueueUrl, Tags, @@ -1525,14 +1476,12 @@ permissions to a role and a username in the Amazon SQS Developer Guide. - `tag_keys`: The list of tags to be removed from the specified queue. """ -function untag_queue(QueueUrl, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return sqs( - "UntagQueue", - Dict{String,Any}("QueueUrl" => QueueUrl, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_queue(QueueUrl, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = sqs( + "UntagQueue", + Dict{String,Any}("QueueUrl" => QueueUrl, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_queue( QueueUrl, TagKeys, diff --git a/src/services/ssm.jl b/src/services/ssm.jl index 36919d947..d13ebdc36 100644 --- a/src/services/ssm.jl +++ b/src/services/ssm.jl @@ -45,18 +45,16 @@ EC2) instances, see Tag your Amazon EC2 resources in the Amazon EC2 User Guide. identifiable information in this field. """ -function add_tags_to_resource( +add_tags_to_resource( ResourceId, ResourceType, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "AddTagsToResource", + Dict{String,Any}( + "ResourceId" => ResourceId, "ResourceType" => ResourceType, "Tags" => Tags + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "AddTagsToResource", - Dict{String,Any}( - "ResourceId" => ResourceId, "ResourceType" => ResourceType, "Tags" => Tags - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_resource( ResourceId, ResourceType, @@ -102,25 +100,23 @@ OpsCenter are capabilities of Amazon Web Services Systems Manager. you want to associate with the OpsItem. """ -function associate_ops_item_related_item( +associate_ops_item_related_item( AssociationType, OpsItemId, ResourceType, ResourceUri; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm( + "AssociateOpsItemRelatedItem", + Dict{String,Any}( + "AssociationType" => AssociationType, + "OpsItemId" => OpsItemId, + "ResourceType" => ResourceType, + "ResourceUri" => ResourceUri, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "AssociateOpsItemRelatedItem", - Dict{String,Any}( - "AssociationType" => AssociationType, - "OpsItemId" => OpsItemId, - "ResourceType" => ResourceType, - "ResourceUri" => ResourceUri, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_ops_item_related_item( AssociationType, OpsItemId, @@ -163,14 +159,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InstanceIds"`: (Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested. """ -function cancel_command(CommandId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "CancelCommand", - Dict{String,Any}("CommandId" => CommandId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +cancel_command(CommandId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "CancelCommand", + Dict{String,Any}("CommandId" => CommandId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function cancel_command( CommandId, params::AbstractDict{String}; @@ -198,16 +192,14 @@ to completion. - `window_execution_id`: The ID of the maintenance window execution to stop. """ -function cancel_maintenance_window_execution( +cancel_maintenance_window_execution( WindowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "CancelMaintenanceWindowExecution", + Dict{String,Any}("WindowExecutionId" => WindowExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "CancelMaintenanceWindowExecution", - Dict{String,Any}("WindowExecutionId" => WindowExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_maintenance_window_execution( WindowExecutionId, params::AbstractDict{String}; @@ -277,14 +269,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys your managed nodes, see AddTagsToResource. For information about how to remove tags from your managed nodes, see RemoveTagsFromResource. """ -function create_activation(IamRole; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "CreateActivation", - Dict{String,Any}("IamRole" => IamRole); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_activation(IamRole; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "CreateActivation", + Dict{String,Any}("IamRole" => IamRole); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_activation( IamRole, params::AbstractDict{String}; @@ -419,14 +409,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide. """ -function create_association(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "CreateAssociation", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_association(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "CreateAssociation", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_association( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -453,16 +441,12 @@ system returns the AssociationAlreadyExists exception. - `entries`: One or more associations. """ -function create_association_batch( - Entries; aws_config::AbstractAWSConfig=current_aws_config() +create_association_batch(Entries; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "CreateAssociationBatch", + Dict{String,Any}("Entries" => Entries); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "CreateAssociationBatch", - Dict{String,Any}("Entries" => Entries); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_association_batch( Entries, params::AbstractDict{String}; @@ -531,14 +515,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys creating with the document. For example, Release12.1. This value is unique across all versions of a document, and can't be changed. """ -function create_document(Content, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "CreateDocument", - Dict{String,Any}("Content" => Content, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_document(Content, Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "CreateDocument", + Dict{String,Any}("Content" => Content, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_document( Content, Name, @@ -611,28 +593,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Key=Environment,Value=Production To add tags to an existing maintenance window, use the AddTagsToResource operation. """ -function create_maintenance_window( +create_maintenance_window( AllowUnassociatedTargets, Cutoff, Duration, Name, Schedule; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm( + "CreateMaintenanceWindow", + Dict{String,Any}( + "AllowUnassociatedTargets" => AllowUnassociatedTargets, + "Cutoff" => Cutoff, + "Duration" => Duration, + "Name" => Name, + "Schedule" => Schedule, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "CreateMaintenanceWindow", - Dict{String,Any}( - "AllowUnassociatedTargets" => AllowUnassociatedTargets, - "Cutoff" => Cutoff, - "Duration" => Duration, - "Name" => Name, - "Schedule" => Schedule, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_maintenance_window( AllowUnassociatedTargets, Cutoff, @@ -730,18 +710,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys permissions for both the ssm:CreateOpsItems operation and the ssm:AddTagsToResource operation. To add tags to an existing OpsItem, use the AddTagsToResource operation. """ -function create_ops_item( +create_ops_item( Description, Source, Title; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "CreateOpsItem", + Dict{String,Any}("Description" => Description, "Source" => Source, "Title" => Title); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "CreateOpsItem", - Dict{String,Any}( - "Description" => Description, "Source" => Source, "Title" => Title - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ops_item( Description, Source, @@ -786,14 +762,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys case, you could specify the following key-value pairs: Key=Environment,Value=Production Key=Region,Value=us-east-2 """ -function create_ops_metadata(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "CreateOpsMetadata", - Dict{String,Any}("ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_ops_metadata(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "CreateOpsMetadata", + Dict{String,Any}("ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_ops_metadata( ResourceId, params::AbstractDict{String}; @@ -842,14 +816,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide. - `"RejectedPatchesAction"`: The action for Patch Manager to take on patches included in - the RejectedPackages list. ALLOW_AS_DEPENDENCY : A package in the Rejected patches list - is installed only if it is a dependency of another package. It is considered compliant with - the patch baseline, and its status is reported as InstalledOther. This is the default - action if no option is specified. BLOCK: Packages in the Rejected patches list, and - packages that include them as dependencies, aren't installed by Patch Manager under any - circumstances. If a package was installed before it was added to the Rejected patches list, - or is installed outside of Patch Manager afterward, it's considered noncompliant with the - patch baseline and its status is reported as InstalledRejected. + the RejectedPackages list. ALLOW_AS_DEPENDENCY Linux and macOS: A package in the + rejected patches list is installed only if it is a dependency of another package. It is + considered compliant with the patch baseline, and its status is reported as + INSTALLED_OTHER. This is the default action if no option is specified. Windows Server: + Windows Server doesn't support the concept of package dependencies. If a package in the + rejected patches list and already installed on the node, its status is reported as + INSTALLED_OTHER. Any package not already installed on the node is skipped. This is the + default action if no option is specified. BLOCK All OSs: Packages in the rejected + patches list, and packages that include them as dependencies, aren't installed by Patch + Manager under any circumstances. If a package was installed before it was added to the + rejected patches list, or is installed outside of Patch Manager afterward, it's considered + noncompliant with the patch baseline and its status is reported as INSTALLED_REJECTED. - `"Sources"`: Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only. - `"Tags"`: Optional metadata that you assign to a resource. Tags enable you to categorize @@ -859,14 +837,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys following key-value pairs: Key=PatchSeverity,Value=Critical Key=OS,Value=Windows To add tags to an existing patch baseline, use the AddTagsToResource operation. """ -function create_patch_baseline(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "CreatePatchBaseline", - Dict{String,Any}("Name" => Name, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_patch_baseline(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "CreatePatchBaseline", + Dict{String,Any}("Name" => Name, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_patch_baseline( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -923,16 +899,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Regions, as listed in Organizations for Explorer. If you specify SyncFromSource, you must provide a value for SyncSource. The default value is SyncToDestination. """ -function create_resource_data_sync( - SyncName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +create_resource_data_sync(SyncName; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "CreateResourceDataSync", Dict{String,Any}("SyncName" => SyncName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_resource_data_sync( SyncName, params::AbstractDict{String}; @@ -960,14 +933,12 @@ activation doesn't de-register managed nodes. You must manually de-register mana - `activation_id`: The ID of the activation that you want to delete. """ -function delete_activation(ActivationId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DeleteActivation", - Dict{String,Any}("ActivationId" => ActivationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_activation(ActivationId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DeleteActivation", + Dict{String,Any}("ActivationId" => ActivationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_activation( ActivationId, params::AbstractDict{String}; @@ -1006,9 +977,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ScheduleExpression. To use these parameters, you must use the Targets parameter. - `"Name"`: The name of the SSM document. """ -function delete_association(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("DeleteAssociation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +delete_association(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("DeleteAssociation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_association( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1040,14 +1010,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionName"`: The version name of the document that you want to delete. If not provided, all versions of the document are deleted. """ -function delete_document(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DeleteDocument", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_document(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DeleteDocument", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_document( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1086,14 +1054,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys option deletes the specified custom type from the Inventory service. You can recreate the schema later, if you want. """ -function delete_inventory(TypeName; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DeleteInventory", - Dict{String,Any}("TypeName" => TypeName, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_inventory(TypeName; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DeleteInventory", + Dict{String,Any}("TypeName" => TypeName, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_inventory( TypeName, params::AbstractDict{String}; @@ -1123,16 +1089,13 @@ Deletes a maintenance window. - `window_id`: The ID of the maintenance window to delete. """ -function delete_maintenance_window( - WindowId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +delete_maintenance_window(WindowId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "DeleteMaintenanceWindow", Dict{String,Any}("WindowId" => WindowId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_maintenance_window( WindowId, params::AbstractDict{String}; @@ -1170,14 +1133,12 @@ manage OpsItems across accounts in the Systems Manager User Guide. - `ops_item_id`: The ID of the OpsItem that you want to delete. """ -function delete_ops_item(OpsItemId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DeleteOpsItem", - Dict{String,Any}("OpsItemId" => OpsItemId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_ops_item(OpsItemId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DeleteOpsItem", + Dict{String,Any}("OpsItemId" => OpsItemId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_ops_item( OpsItemId, params::AbstractDict{String}; @@ -1203,16 +1164,13 @@ Delete OpsMetadata related to an application. - `ops_metadata_arn`: The Amazon Resource Name (ARN) of an OpsMetadata Object to delete. """ -function delete_ops_metadata( - OpsMetadataArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +delete_ops_metadata(OpsMetadataArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "DeleteOpsMetadata", Dict{String,Any}("OpsMetadataArn" => OpsMetadataArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_ops_metadata( OpsMetadataArn, params::AbstractDict{String}; @@ -1240,14 +1198,12 @@ seconds to create a parameter with the same name. (ARN) for a parameter, only the parameter name itself. """ -function delete_parameter(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DeleteParameter", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_parameter(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DeleteParameter", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_parameter( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1272,14 +1228,12 @@ create a parameter with the same name. Resource Name (ARN) for a parameter, only the parameter name itself. """ -function delete_parameters(Names; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DeleteParameters", - Dict{String,Any}("Names" => Names); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_parameters(Names; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DeleteParameters", + Dict{String,Any}("Names" => Names); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_parameters( Names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1301,16 +1255,12 @@ Deletes a patch baseline. - `baseline_id`: The ID of the patch baseline to delete. """ -function delete_patch_baseline( - BaselineId; aws_config::AbstractAWSConfig=current_aws_config() +delete_patch_baseline(BaselineId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DeletePatchBaseline", + Dict{String,Any}("BaselineId" => BaselineId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DeletePatchBaseline", - Dict{String,Any}("BaselineId" => BaselineId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_patch_baseline( BaselineId, params::AbstractDict{String}; @@ -1341,16 +1291,13 @@ configuration doesn't delete data. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"SyncType"`: Specify the type of resource data sync to delete. """ -function delete_resource_data_sync( - SyncName; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +delete_resource_data_sync(SyncName; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "DeleteResourceDataSync", Dict{String,Any}("SyncName" => SyncName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_data_sync( SyncName, params::AbstractDict{String}; @@ -1387,18 +1334,16 @@ with shared parameters in the Amazon Web Services Systems Manager User Guide. attached. """ -function delete_resource_policy( +delete_resource_policy( PolicyHash, PolicyId, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DeleteResourcePolicy", + Dict{String,Any}( + "PolicyHash" => PolicyHash, "PolicyId" => PolicyId, "ResourceArn" => ResourceArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DeleteResourcePolicy", - Dict{String,Any}( - "PolicyHash" => PolicyHash, "PolicyId" => PolicyId, "ResourceArn" => ResourceArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource_policy( PolicyHash, PolicyId, @@ -1437,16 +1382,14 @@ we suggest uninstalling SSM Agent first. activation process. """ -function deregister_managed_instance( +deregister_managed_instance( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DeregisterManagedInstance", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DeregisterManagedInstance", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_managed_instance( InstanceId, params::AbstractDict{String}; @@ -1474,16 +1417,14 @@ Removes a patch group from a patch baseline. baseline. """ -function deregister_patch_baseline_for_patch_group( +deregister_patch_baseline_for_patch_group( BaselineId, PatchGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DeregisterPatchBaselineForPatchGroup", + Dict{String,Any}("BaselineId" => BaselineId, "PatchGroup" => PatchGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DeregisterPatchBaselineForPatchGroup", - Dict{String,Any}("BaselineId" => BaselineId, "PatchGroup" => PatchGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_patch_baseline_for_patch_group( BaselineId, PatchGroup, @@ -1520,16 +1461,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys being referenced, the system returns an error and doesn't deregister the target from the maintenance window. """ -function deregister_target_from_maintenance_window( +deregister_target_from_maintenance_window( WindowId, WindowTargetId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DeregisterTargetFromMaintenanceWindow", + Dict{String,Any}("WindowId" => WindowId, "WindowTargetId" => WindowTargetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DeregisterTargetFromMaintenanceWindow", - Dict{String,Any}("WindowId" => WindowId, "WindowTargetId" => WindowTargetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_target_from_maintenance_window( WindowId, WindowTargetId, @@ -1563,16 +1502,14 @@ Removes a task from a maintenance window. - `window_task_id`: The ID of the task to remove from the maintenance window. """ -function deregister_task_from_maintenance_window( +deregister_task_from_maintenance_window( WindowId, WindowTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DeregisterTaskFromMaintenanceWindow", + Dict{String,Any}("WindowId" => WindowId, "WindowTaskId" => WindowTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DeregisterTaskFromMaintenanceWindow", - Dict{String,Any}("WindowId" => WindowId, "WindowTaskId" => WindowTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_task_from_maintenance_window( WindowId, WindowTaskId, @@ -1609,11 +1546,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function describe_activations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeActivations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_activations(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("DescribeActivations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_activations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1643,11 +1577,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"InstanceId"`: The managed node ID. - `"Name"`: The name of the SSM document. """ -function describe_association(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeAssociation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_association(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("DescribeAssociation"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_association( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1678,16 +1609,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function describe_association_execution_targets( +describe_association_execution_targets( AssociationId, ExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeAssociationExecutionTargets", + Dict{String,Any}("AssociationId" => AssociationId, "ExecutionId" => ExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeAssociationExecutionTargets", - Dict{String,Any}("AssociationId" => AssociationId, "ExecutionId" => ExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_association_execution_targets( AssociationId, ExecutionId, @@ -1727,16 +1656,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function describe_association_executions( +describe_association_executions( AssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeAssociationExecutions", + Dict{String,Any}("AssociationId" => AssociationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeAssociationExecutions", - Dict{String,Any}("AssociationId" => AssociationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_association_executions( AssociationId, params::AbstractDict{String}; @@ -1766,15 +1693,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_automation_executions(; - aws_config::AbstractAWSConfig=current_aws_config() +describe_automation_executions(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DescribeAutomationExecutions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeAutomationExecutions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_automation_executions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1807,16 +1730,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReverseOrder"`: Indicates whether to list step executions in reverse order by start time. The default value is 'false'. """ -function describe_automation_step_executions( +describe_automation_step_executions( AutomationExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeAutomationStepExecutions", + Dict{String,Any}("AutomationExecutionId" => AutomationExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeAutomationStepExecutions", - Dict{String,Any}("AutomationExecutionId" => AutomationExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_automation_step_executions( AutomationExecutionId, params::AbstractDict{String}; @@ -1870,11 +1791,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_available_patches(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeAvailablePatches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_available_patches(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("DescribeAvailablePatches"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_available_patches( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1903,14 +1821,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed. """ -function describe_document(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeDocument", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_document(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DescribeDocument", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_document( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1942,16 +1858,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_document_permission( +describe_document_permission( Name, PermissionType; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeDocumentPermission", + Dict{String,Any}("Name" => Name, "PermissionType" => PermissionType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeDocumentPermission", - Dict{String,Any}("Name" => Name, "PermissionType" => PermissionType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_document_permission( Name, PermissionType, @@ -1988,16 +1902,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_effective_instance_associations( +describe_effective_instance_associations( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeEffectiveInstanceAssociations", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeEffectiveInstanceAssociations", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_effective_instance_associations( InstanceId, params::AbstractDict{String}; @@ -2029,16 +1941,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_effective_patches_for_patch_baseline( +describe_effective_patches_for_patch_baseline( BaselineId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeEffectivePatchesForPatchBaseline", + Dict{String,Any}("BaselineId" => BaselineId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeEffectivePatchesForPatchBaseline", - Dict{String,Any}("BaselineId" => BaselineId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_effective_patches_for_patch_baseline( BaselineId, params::AbstractDict{String}; @@ -2070,16 +1980,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_instance_associations_status( +describe_instance_associations_status( InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeInstanceAssociationsStatus", + Dict{String,Any}("InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeInstanceAssociationsStatus", - Dict{String,Any}("InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_associations_status( InstanceId, params::AbstractDict{String}; @@ -2105,9 +2013,9 @@ not return information for nodes that are either Stopped or Terminated. If you s or more node IDs, the operation returns information for those managed nodes. If you don't specify node IDs, it returns information for all your managed nodes. If you specify a node ID that isn't valid or a node that you don't own, you receive an error. The IamRole field -returned for this API operation is the Identity and Access Management (IAM) role assigned -to on-premises managed nodes. This operation does not return the IAM role for EC2 -instances. +returned for this API operation is the role assigned to an Amazon EC2 instance configured +with a Systems Manager Quick Setup host management configuration or the role assigned to an +on-premises managed node. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: @@ -2125,13 +2033,11 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_instance_information(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeInstanceInformation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_instance_information(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DescribeInstanceInformation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_instance_information( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2159,16 +2065,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_instance_patch_states( +describe_instance_patch_states( InstanceIds; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeInstancePatchStates", + Dict{String,Any}("InstanceIds" => InstanceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeInstancePatchStates", - Dict{String,Any}("InstanceIds" => InstanceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_patch_states( InstanceIds, params::AbstractDict{String}; @@ -2203,16 +2107,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_instance_patch_states_for_patch_group( +describe_instance_patch_states_for_patch_group( PatchGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeInstancePatchStatesForPatchGroup", + Dict{String,Any}("PatchGroup" => PatchGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeInstancePatchStatesForPatchGroup", - Dict{String,Any}("PatchGroup" => PatchGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_patch_states_for_patch_group( PatchGroup, params::AbstractDict{String}; @@ -2252,16 +2154,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_instance_patches( - InstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +describe_instance_patches(InstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "DescribeInstancePatches", Dict{String,Any}("InstanceId" => InstanceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_instance_patches( InstanceId, params::AbstractDict{String}; @@ -2293,11 +2192,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token provided by a previous request to use to return the next set of properties. """ -function describe_instance_properties(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeInstanceProperties"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_instance_properties(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DescribeInstanceProperties"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_instance_properties( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2323,11 +2220,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function describe_inventory_deletions(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeInventoryDeletions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_inventory_deletions(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DescribeInventoryDeletions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_inventory_deletions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2361,16 +2256,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_maintenance_window_execution_task_invocations( +describe_maintenance_window_execution_task_invocations( TaskId, WindowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeMaintenanceWindowExecutionTaskInvocations", + Dict{String,Any}("TaskId" => TaskId, "WindowExecutionId" => WindowExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeMaintenanceWindowExecutionTaskInvocations", - Dict{String,Any}("TaskId" => TaskId, "WindowExecutionId" => WindowExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_maintenance_window_execution_task_invocations( TaskId, WindowExecutionId, @@ -2413,16 +2306,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_maintenance_window_execution_tasks( +describe_maintenance_window_execution_tasks( WindowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeMaintenanceWindowExecutionTasks", + Dict{String,Any}("WindowExecutionId" => WindowExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeMaintenanceWindowExecutionTasks", - Dict{String,Any}("WindowExecutionId" => WindowExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_maintenance_window_execution_tasks( WindowExecutionId, params::AbstractDict{String}; @@ -2462,16 +2353,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_maintenance_window_executions( +describe_maintenance_window_executions( WindowId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeMaintenanceWindowExecutions", + Dict{String,Any}("WindowId" => WindowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeMaintenanceWindowExecutions", - Dict{String,Any}("WindowId" => WindowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_maintenance_window_executions( WindowId, params::AbstractDict{String}; @@ -2507,15 +2396,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Targets"`: The managed node ID or key-value pair to retrieve information about. - `"WindowId"`: The ID of the maintenance window to retrieve information about. """ -function describe_maintenance_window_schedule(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +describe_maintenance_window_schedule(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "DescribeMaintenanceWindowSchedule"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_maintenance_window_schedule( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2545,16 +2431,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_maintenance_window_targets( +describe_maintenance_window_targets( WindowId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeMaintenanceWindowTargets", + Dict{String,Any}("WindowId" => WindowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeMaintenanceWindowTargets", - Dict{String,Any}("WindowId" => WindowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_maintenance_window_targets( WindowId, params::AbstractDict{String}; @@ -2591,16 +2475,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_maintenance_window_tasks( +describe_maintenance_window_tasks( WindowId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeMaintenanceWindowTasks", + Dict{String,Any}("WindowId" => WindowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeMaintenanceWindowTasks", - Dict{String,Any}("WindowId" => WindowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_maintenance_window_tasks( WindowId, params::AbstractDict{String}; @@ -2632,11 +2514,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_maintenance_windows(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeMaintenanceWindows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_maintenance_windows(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DescribeMaintenanceWindows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_maintenance_windows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2667,16 +2547,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_maintenance_windows_for_target( +describe_maintenance_windows_for_target( ResourceType, Targets; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribeMaintenanceWindowsForTarget", + Dict{String,Any}("ResourceType" => ResourceType, "Targets" => Targets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribeMaintenanceWindowsForTarget", - Dict{String,Any}("ResourceType" => ResourceType, "Targets" => Targets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_maintenance_windows_for_target( ResourceType, Targets, @@ -2727,9 +2605,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {\"key\":\"key_name\",\"value\":\"a_value\"} """ -function describe_ops_items(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("DescribeOpsItems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_ops_items(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("DescribeOpsItems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ops_items( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2770,9 +2647,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide. """ -function describe_parameters(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("DescribeParameters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_parameters(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("DescribeParameters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_parameters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2797,11 +2673,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_patch_baselines(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribePatchBaselines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_patch_baselines(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("DescribePatchBaselines"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_patch_baselines( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2823,16 +2696,13 @@ Returns high-level aggregated patch compliance state information for a patch gro - `patch_group`: The name of the patch group whose patch snapshot should be retrieved. """ -function describe_patch_group_state( - PatchGroup; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +describe_patch_group_state(PatchGroup; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "DescribePatchGroupState", Dict{String,Any}("PatchGroup" => PatchGroup); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_patch_group_state( PatchGroup, params::AbstractDict{String}; @@ -2863,11 +2733,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_patch_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribePatchGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_patch_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("DescribePatchGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_patch_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2890,13 +2757,13 @@ CreatePatchBaseline, UpdatePatchBaseline, DescribeAvailablePatches, and DescribePatchBaselines. The following section lists the properties that can be used in filters for each major operating system type: AMAZON_LINUX Valid properties: PRODUCT | CLASSIFICATION | SEVERITY AMAZON_LINUX_2 Valid properties: PRODUCT | CLASSIFICATION | -SEVERITY CENTOS Valid properties: PRODUCT | CLASSIFICATION | SEVERITY DEBIAN Valid -properties: PRODUCT | PRIORITY MACOS Valid properties: PRODUCT | CLASSIFICATION -ORACLE_LINUX Valid properties: PRODUCT | CLASSIFICATION | SEVERITY -REDHAT_ENTERPRISE_LINUX Valid properties: PRODUCT | CLASSIFICATION | SEVERITY SUSE -Valid properties: PRODUCT | CLASSIFICATION | SEVERITY UBUNTU Valid properties: PRODUCT | -PRIORITY WINDOWS Valid properties: PRODUCT | PRODUCT_FAMILY | CLASSIFICATION | -MSRC_SEVERITY +SEVERITY AMAZON_LINUX_2023 Valid properties: PRODUCT | CLASSIFICATION | SEVERITY +CENTOS Valid properties: PRODUCT | CLASSIFICATION | SEVERITY DEBIAN Valid properties: +PRODUCT | PRIORITY MACOS Valid properties: PRODUCT | CLASSIFICATION ORACLE_LINUX +Valid properties: PRODUCT | CLASSIFICATION | SEVERITY REDHAT_ENTERPRISE_LINUX Valid +properties: PRODUCT | CLASSIFICATION | SEVERITY SUSE Valid properties: PRODUCT | +CLASSIFICATION | SEVERITY UBUNTU Valid properties: PRODUCT | PRIORITY WINDOWS Valid +properties: PRODUCT | PRODUCT_FAMILY | CLASSIFICATION | MSRC_SEVERITY # Arguments - `operating_system`: The operating system type for which to list patches. @@ -2911,16 +2778,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PatchSet"`: Indicates whether to list patches for the Windows operating system or for applications released by Microsoft. Not applicable for the Linux or macOS operating systems. """ -function describe_patch_properties( +describe_patch_properties( OperatingSystem, Property; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DescribePatchProperties", + Dict{String,Any}("OperatingSystem" => OperatingSystem, "Property" => Property); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DescribePatchProperties", - Dict{String,Any}("OperatingSystem" => OperatingSystem, "Property" => Property); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_patch_properties( OperatingSystem, Property, @@ -2961,14 +2826,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function describe_sessions(State; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "DescribeSessions", - Dict{String,Any}("State" => State); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_sessions(State; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "DescribeSessions", + Dict{String,Any}("State" => State); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_sessions( State, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2995,16 +2858,14 @@ capability of Amazon Web Services Systems Manager. the OpsItem and a related item. """ -function disassociate_ops_item_related_item( +disassociate_ops_item_related_item( AssociationId, OpsItemId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "DisassociateOpsItemRelatedItem", + Dict{String,Any}("AssociationId" => AssociationId, "OpsItemId" => OpsItemId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "DisassociateOpsItemRelatedItem", - Dict{String,Any}("AssociationId" => AssociationId, "OpsItemId" => OpsItemId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_ops_item_related_item( AssociationId, OpsItemId, @@ -3039,16 +2900,14 @@ Get detailed information about a particular Automation execution. Automation runbook is initiated. """ -function get_automation_execution( +get_automation_execution( AutomationExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "GetAutomationExecution", + Dict{String,Any}("AutomationExecutionId" => AutomationExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetAutomationExecution", - Dict{String,Any}("AutomationExecutionId" => AutomationExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_automation_execution( AutomationExecutionId, params::AbstractDict{String}; @@ -3094,16 +2953,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, in ISO 8601 format. If you don't specify a value or AtTime, the current time is used. """ -function get_calendar_state( - CalendarNames; aws_config::AbstractAWSConfig=current_aws_config() +get_calendar_state(CalendarNames; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetCalendarState", + Dict{String,Any}("CalendarNames" => CalendarNames); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetCalendarState", - Dict{String,Any}("CalendarNames" => CalendarNames); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_calendar_state( CalendarNames, params::AbstractDict{String}; @@ -3123,10 +2978,15 @@ end get_command_invocation(command_id, instance_id) get_command_invocation(command_id, instance_id, params::Dict{String,<:Any}) -Returns detailed information about command execution for an invocation or plugin. -GetCommandInvocation only gives the execution status of a plugin in a document. To get the -command execution status on a specific managed node, use ListCommandInvocations. To get the -command execution status across managed nodes, use ListCommands. +Returns detailed information about command execution for an invocation or plugin. The Run +Command API follows an eventual consistency model, due to the distributed nature of the +system supporting the API. This means that the result of an API command you run that +affects your resources might not be immediately visible to all subsequent commands you run. +You should keep this in mind when you carry out an API command that immediately follows a +previous API command. GetCommandInvocation only gives the execution status of a plugin in +a document. To get the command execution status on a specific managed node, use +ListCommandInvocations. To get the command execution status across managed nodes, use +ListCommands. # Arguments - `command_id`: (Required) The parent command ID of the invocation plugin. @@ -3146,16 +3006,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and Details parameters. The PluginName is the Name attribute of the CommandPlugin object in the CommandPlugins list. """ -function get_command_invocation( +get_command_invocation( CommandId, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "GetCommandInvocation", + Dict{String,Any}("CommandId" => CommandId, "InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetCommandInvocation", - Dict{String,Any}("CommandId" => CommandId, "InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_command_invocation( CommandId, InstanceId, @@ -3187,14 +3045,12 @@ is running and ready to receive Session Manager connections. - `target`: The managed node ID. """ -function get_connection_status(Target; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetConnectionStatus", - Dict{String,Any}("Target" => Target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_connection_status(Target; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetConnectionStatus", + Dict{String,Any}("Target" => Target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_connection_status( Target, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3220,11 +3076,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OperatingSystem"`: Returns the default patch baseline for the specified operating system. """ -function get_default_patch_baseline(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetDefaultPatchBaseline"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_default_patch_baseline(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("GetDefaultPatchBaseline"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_default_patch_baseline( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3258,16 +3111,14 @@ using the AWS-RunShellScript document or the AWS-RunPowerShellScript document. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"BaselineOverride"`: Defines the basic information about a patch baseline override. """ -function get_deployable_patch_snapshot_for_instance( +get_deployable_patch_snapshot_for_instance( InstanceId, SnapshotId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "GetDeployablePatchSnapshotForInstance", + Dict{String,Any}("InstanceId" => InstanceId, "SnapshotId" => SnapshotId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetDeployablePatchSnapshotForInstance", - Dict{String,Any}("InstanceId" => InstanceId, "SnapshotId" => SnapshotId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_deployable_patch_snapshot_for_instance( InstanceId, SnapshotId, @@ -3307,14 +3158,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the document. For example, 12.6. This value is unique across all versions of a document and can't be changed. """ -function get_document(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetDocument", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_document(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetDocument", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_document( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3346,9 +3195,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys from a previous call.) - `"ResultAttributes"`: The list of inventory item types to return. """ -function get_inventory(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("GetInventory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_inventory(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("GetInventory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_inventory( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3376,9 +3224,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SubType"`: Returns the sub-type schema for a specified inventory type. - `"TypeName"`: The type of inventory item to return. """ -function get_inventory_schema(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("GetInventorySchema"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_inventory_schema(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("GetInventorySchema"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_inventory_schema( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3397,16 +3244,12 @@ Retrieves a maintenance window. - `window_id`: The ID of the maintenance window for which you want to retrieve information. """ -function get_maintenance_window( - WindowId; aws_config::AbstractAWSConfig=current_aws_config() +get_maintenance_window(WindowId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetMaintenanceWindow", + Dict{String,Any}("WindowId" => WindowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetMaintenanceWindow", - Dict{String,Any}("WindowId" => WindowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_maintenance_window( WindowId, params::AbstractDict{String}; @@ -3432,16 +3275,14 @@ Retrieves details about a specific a maintenance window execution. - `window_execution_id`: The ID of the maintenance window execution that includes the task. """ -function get_maintenance_window_execution( +get_maintenance_window_execution( WindowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "GetMaintenanceWindowExecution", + Dict{String,Any}("WindowExecutionId" => WindowExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetMaintenanceWindowExecution", - Dict{String,Any}("WindowExecutionId" => WindowExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_maintenance_window_execution( WindowExecutionId, params::AbstractDict{String}; @@ -3471,16 +3312,14 @@ Retrieves the details about a specific task run as part of a maintenance window - `window_execution_id`: The ID of the maintenance window execution that includes the task. """ -function get_maintenance_window_execution_task( +get_maintenance_window_execution_task( TaskId, WindowExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "GetMaintenanceWindowExecutionTask", + Dict{String,Any}("TaskId" => TaskId, "WindowExecutionId" => WindowExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetMaintenanceWindowExecutionTask", - Dict{String,Any}("TaskId" => TaskId, "WindowExecutionId" => WindowExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_maintenance_window_execution_task( TaskId, WindowExecutionId, @@ -3517,23 +3356,21 @@ Retrieves information about a specific task running on a specific target. part. """ -function get_maintenance_window_execution_task_invocation( +get_maintenance_window_execution_task_invocation( InvocationId, TaskId, WindowExecutionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm( + "GetMaintenanceWindowExecutionTaskInvocation", + Dict{String,Any}( + "InvocationId" => InvocationId, + "TaskId" => TaskId, + "WindowExecutionId" => WindowExecutionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetMaintenanceWindowExecutionTaskInvocation", - Dict{String,Any}( - "InvocationId" => InvocationId, - "TaskId" => TaskId, - "WindowExecutionId" => WindowExecutionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_maintenance_window_execution_task_invocation( InvocationId, TaskId, @@ -3575,16 +3412,14 @@ DescribeMaintenanceWindowTasks command. - `window_task_id`: The maintenance window task ID to retrieve. """ -function get_maintenance_window_task( +get_maintenance_window_task( WindowId, WindowTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "GetMaintenanceWindowTask", + Dict{String,Any}("WindowId" => WindowId, "WindowTaskId" => WindowTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetMaintenanceWindowTask", - Dict{String,Any}("WindowId" => WindowId, "WindowTaskId" => WindowTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_maintenance_window_task( WindowId, WindowTaskId, @@ -3624,14 +3459,12 @@ Manager OpsCenter in the Amazon Web Services Systems Manager User Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"OpsItemArn"`: The OpsItem Amazon Resource Name (ARN). """ -function get_ops_item(OpsItemId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetOpsItem", - Dict{String,Any}("OpsItemId" => OpsItemId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_ops_item(OpsItemId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetOpsItem", + Dict{String,Any}("OpsItemId" => OpsItemId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_ops_item( OpsItemId, params::AbstractDict{String}; @@ -3662,16 +3495,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function get_ops_metadata( - OpsMetadataArn; aws_config::AbstractAWSConfig=current_aws_config() +get_ops_metadata(OpsMetadataArn; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetOpsMetadata", + Dict{String,Any}("OpsMetadataArn" => OpsMetadataArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetOpsMetadata", - Dict{String,Any}("OpsMetadataArn" => OpsMetadataArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ops_metadata( OpsMetadataArn, params::AbstractDict{String}; @@ -3708,9 +3537,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResultAttributes"`: The OpsData data type to return. - `"SyncName"`: Specify the name of a resource data sync to get. """ -function get_ops_summary(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("GetOpsSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_ops_summary(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("GetOpsSummary"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_ops_summary( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3738,14 +3566,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WithDecryption"`: Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types. """ -function get_parameter(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetParameter", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_parameter(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetParameter", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_parameter( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3780,14 +3606,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WithDecryption"`: Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types. """ -function get_parameter_history(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetParameterHistory", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_parameter_history(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetParameterHistory", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_parameter_history( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3819,14 +3643,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WithDecryption"`: Return decrypted secure string value. Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types. """ -function get_parameters(Names; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetParameters", - Dict{String,Any}("Names" => Names); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_parameters(Names; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetParameters", + Dict{String,Any}("Names" => Names); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_parameters( Names, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3872,14 +3694,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys GetParametersByPath API operation recursively for /a and view /a/b. - `"WithDecryption"`: Retrieve all parameters in a hierarchy with their value decrypted. """ -function get_parameters_by_path(Path; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetParametersByPath", - Dict{String,Any}("Path" => Path); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_parameters_by_path(Path; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetParametersByPath", + Dict{String,Any}("Path" => Path); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_parameters_by_path( Path, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3905,14 +3725,12 @@ Retrieves information about a patch baseline. pb-0e392de35e7c563b7. """ -function get_patch_baseline(BaselineId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetPatchBaseline", - Dict{String,Any}("BaselineId" => BaselineId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_patch_baseline(BaselineId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetPatchBaseline", + Dict{String,Any}("BaselineId" => BaselineId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_patch_baseline( BaselineId, params::AbstractDict{String}; @@ -3942,16 +3760,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OperatingSystem"`: Returns the operating system rule specified for patch groups using the patch baseline. """ -function get_patch_baseline_for_patch_group( +get_patch_baseline_for_patch_group( PatchGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "GetPatchBaselineForPatchGroup", + Dict{String,Any}("PatchGroup" => PatchGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "GetPatchBaselineForPatchGroup", - Dict{String,Any}("PatchGroup" => PatchGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_patch_baseline_for_patch_group( PatchGroup, params::AbstractDict{String}; @@ -3983,16 +3799,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function get_resource_policies( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +get_resource_policies(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "GetResourcePolicies", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policies( ResourceArn, params::AbstractDict{String}; @@ -4035,14 +3848,12 @@ current service setting for the Amazon Web Services account. /ssm/parameter-store/high-throughput-enabled """ -function get_service_setting(SettingId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "GetServiceSetting", - Dict{String,Any}("SettingId" => SettingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_service_setting(SettingId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "GetServiceSetting", + Dict{String,Any}("SettingId" => SettingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_service_setting( SettingId, params::AbstractDict{String}; @@ -4089,16 +3900,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys one or more labels. If no version is specified, the system attaches the label to the latest version. """ -function label_parameter_version( - Labels, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +label_parameter_version(Labels, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "LabelParameterVersion", Dict{String,Any}("Labels" => Labels, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function label_parameter_version( Labels, Name, @@ -4130,16 +3938,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function list_association_versions( +list_association_versions( AssociationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "ListAssociationVersions", + Dict{String,Any}("AssociationId" => AssociationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "ListAssociationVersions", - Dict{String,Any}("AssociationId" => AssociationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_association_versions( AssociationId, params::AbstractDict{String}; @@ -4175,9 +3981,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function list_associations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("ListAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4210,11 +4015,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: (Optional) The token for the next set of items to return. (You received this token from a previous call.) """ -function list_command_invocations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "ListCommandInvocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_command_invocations(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListCommandInvocations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_command_invocations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4246,9 +4048,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: (Optional) The token for the next set of items to return. (You received this token from a previous call.) """ -function list_commands(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("ListCommands"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_commands(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListCommands"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_commands( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4277,11 +4078,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceTypes"`: The type of resource from which to get compliance information. Currently, the only supported resource type is ManagedInstance. """ -function list_compliance_items(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "ListComplianceItems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_compliance_items(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListComplianceItems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_compliance_items( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4310,11 +4108,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function list_compliance_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "ListComplianceSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_compliance_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListComplianceSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_compliance_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4345,16 +4140,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function list_document_metadata_history( +list_document_metadata_history( Metadata, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "ListDocumentMetadataHistory", + Dict{String,Any}("Metadata" => Metadata, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "ListDocumentMetadataHistory", - Dict{String,Any}("Metadata" => Metadata, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_document_metadata_history( Metadata, Name, @@ -4389,14 +4182,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function list_document_versions(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "ListDocumentVersions", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_document_versions(Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "ListDocumentVersions", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_document_versions( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4431,9 +4222,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function list_documents(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("ListDocuments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_documents(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListDocuments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_documents( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4460,16 +4250,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token for the next set of items to return. (You received this token from a previous call.) """ -function list_inventory_entries( +list_inventory_entries( InstanceId, TypeName; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "ListInventoryEntries", + Dict{String,Any}("InstanceId" => InstanceId, "TypeName" => TypeName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "ListInventoryEntries", - Dict{String,Any}("InstanceId" => InstanceId, "TypeName" => TypeName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_inventory_entries( InstanceId, TypeName, @@ -4506,9 +4294,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function list_ops_item_events(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("ListOpsItemEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_ops_item_events(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListOpsItemEvents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_ops_item_events( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4535,11 +4322,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OpsItemId"`: The ID of the OpsItem for which you want to list all related-item resources. """ -function list_ops_item_related_items(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "ListOpsItemRelatedItems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_ops_item_related_items(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListOpsItemRelatedItems"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_ops_item_related_items( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4566,9 +4350,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function list_ops_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm("ListOpsMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_ops_metadata(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListOpsMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_ops_metadata( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4592,15 +4375,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function list_resource_compliance_summaries(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +list_resource_compliance_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "ListResourceComplianceSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resource_compliance_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4635,11 +4415,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Specify SyncFromSource to view resource data syncs from Organizations or from multiple Amazon Web Services Regions. """ -function list_resource_data_sync(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "ListResourceDataSync"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_resource_data_sync(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm("ListResourceDataSync"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_resource_data_sync( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -4663,16 +4440,14 @@ format for each supported resource type, see AddTagsToResource. - `resource_type`: Returns a list of tags for a specific resource type. """ -function list_tags_for_resource( +list_tags_for_resource( ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "ListTagsForResource", + Dict{String,Any}("ResourceId" => ResourceId, "ResourceType" => ResourceType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "ListTagsForResource", - Dict{String,Any}("ResourceId" => ResourceId, "ResourceType" => ResourceType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_tags_for_resource( ResourceId, ResourceType, @@ -4716,19 +4491,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to the document. The Amazon Web Services user can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an ID to add and the same ID to remove, the system removes access to the document. -- `"SharedDocumentVersion"`: (Optional) The version of the document to share. If it isn't - specified, the system choose the Default version to share. -""" -function modify_document_permission( - Name, PermissionType; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( - "ModifyDocumentPermission", - Dict{String,Any}("Name" => Name, "PermissionType" => PermissionType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +- `"SharedDocumentVersion"`: (Optional) The version of the document to share. If it isn't + specified, the system choose the Default version to share. +""" +modify_document_permission( + Name, PermissionType; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "ModifyDocumentPermission", + Dict{String,Any}("Name" => Name, "PermissionType" => PermissionType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function modify_document_permission( Name, PermissionType, @@ -4797,27 +4570,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default, all requests use COMPLETE mode. This attribute is only valid for association compliance. """ -function put_compliance_items( +put_compliance_items( ComplianceType, ExecutionSummary, Items, ResourceId, ResourceType; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm( + "PutComplianceItems", + Dict{String,Any}( + "ComplianceType" => ComplianceType, + "ExecutionSummary" => ExecutionSummary, + "Items" => Items, + "ResourceId" => ResourceId, + "ResourceType" => ResourceType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "PutComplianceItems", - Dict{String,Any}( - "ComplianceType" => ComplianceType, - "ExecutionSummary" => ExecutionSummary, - "Items" => Items, - "ResourceId" => ResourceId, - "ResourceType" => ResourceType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_compliance_items( ComplianceType, ExecutionSummary, @@ -4859,16 +4630,12 @@ inventory item, if it doesn't already exist, or updates an inventory item, if it - `items`: The inventory items that you want to add or update on managed nodes. """ -function put_inventory( - InstanceId, Items; aws_config::AbstractAWSConfig=current_aws_config() +put_inventory(InstanceId, Items; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "PutInventory", + Dict{String,Any}("InstanceId" => InstanceId, "Items" => Items); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "PutInventory", - Dict{String,Any}("InstanceId" => InstanceId, "Items" => Items); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_inventory( InstanceId, Items, @@ -5011,14 +4778,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Specifying a parameter type isn't required when updating a parameter. You must specify a parameter type when creating a parameter. """ -function put_parameter(Name, Value; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "PutParameter", - Dict{String,Any}("Name" => Name, "Value" => Value); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_parameter(Name, Value; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "PutParameter", + Dict{String,Any}("Name" => Name, "Value" => Value); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_parameter( Name, Value, @@ -5073,16 +4838,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys updating or deleting a policy. - `"PolicyId"`: The policy ID. """ -function put_resource_policy( +put_resource_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "PutResourcePolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "PutResourcePolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( Policy, ResourceArn, @@ -5117,16 +4880,14 @@ pb-0574b43a65ea646ed. - `baseline_id`: The ID of the patch baseline that should be the default patch baseline. """ -function register_default_patch_baseline( +register_default_patch_baseline( BaselineId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "RegisterDefaultPatchBaseline", + Dict{String,Any}("BaselineId" => BaselineId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "RegisterDefaultPatchBaseline", - Dict{String,Any}("BaselineId" => BaselineId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_default_patch_baseline( BaselineId, params::AbstractDict{String}; @@ -5153,16 +4914,14 @@ Registers a patch baseline for a patch group. - `patch_group`: The name of the patch group to be registered with the patch baseline. """ -function register_patch_baseline_for_patch_group( +register_patch_baseline_for_patch_group( BaselineId, PatchGroup; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "RegisterPatchBaselineForPatchGroup", + Dict{String,Any}("BaselineId" => BaselineId, "PatchGroup" => PatchGroup); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "RegisterPatchBaselineForPatchGroup", - Dict{String,Any}("BaselineId" => BaselineId, "PatchGroup" => PatchGroup); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_patch_baseline_for_patch_group( BaselineId, PatchGroup, @@ -5221,21 +4980,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OwnerInformation"`: User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window. """ -function register_target_with_maintenance_window( +register_target_with_maintenance_window( ResourceType, Targets, WindowId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "RegisterTargetWithMaintenanceWindow", + Dict{String,Any}( + "ResourceType" => ResourceType, + "Targets" => Targets, + "WindowId" => WindowId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "RegisterTargetWithMaintenanceWindow", - Dict{String,Any}( - "ResourceType" => ResourceType, - "Targets" => Targets, - "WindowId" => WindowId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_target_with_maintenance_window( ResourceType, Targets, @@ -5337,21 +5094,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters. """ -function register_task_with_maintenance_window( +register_task_with_maintenance_window( TaskArn, TaskType, WindowId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "RegisterTaskWithMaintenanceWindow", + Dict{String,Any}( + "TaskArn" => TaskArn, + "TaskType" => TaskType, + "WindowId" => WindowId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "RegisterTaskWithMaintenanceWindow", - Dict{String,Any}( - "TaskArn" => TaskArn, - "TaskType" => TaskType, - "WindowId" => WindowId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_task_with_maintenance_window( TaskArn, TaskType, @@ -5403,18 +5158,16 @@ Removes tag keys from the specified resource. - `tag_keys`: Tag keys that you want to remove from the specified resource. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceId, ResourceType, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "RemoveTagsFromResource", + Dict{String,Any}( + "ResourceId" => ResourceId, "ResourceType" => ResourceType, "TagKeys" => TagKeys + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "RemoveTagsFromResource", - Dict{String,Any}( - "ResourceId" => ResourceId, "ResourceType" => ResourceType, "TagKeys" => TagKeys - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceId, ResourceType, @@ -5468,16 +5221,12 @@ provisioned by the Amazon Web Services service team. /ssm/parameter-store/high-throughput-enabled """ -function reset_service_setting( - SettingId; aws_config::AbstractAWSConfig=current_aws_config() +reset_service_setting(SettingId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "ResetServiceSetting", + Dict{String,Any}("SettingId" => SettingId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "ResetServiceSetting", - Dict{String,Any}("SettingId" => SettingId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_service_setting( SettingId, params::AbstractDict{String}; @@ -5506,14 +5255,12 @@ It isn't intended for any other use. - `session_id`: The ID of the disconnected session to resume. """ -function resume_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "ResumeSession", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +resume_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "ResumeSession", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function resume_session( SessionId, params::AbstractDict{String}; @@ -5551,18 +5298,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you must send the step execution ID as the payload. For example: StepExecutionId=\"97fff367-fc5a-4299-aed8-0123456789ab\" """ -function send_automation_signal( +send_automation_signal( AutomationExecutionId, SignalType; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "SendAutomationSignal", + Dict{String,Any}( + "AutomationExecutionId" => AutomationExecutionId, "SignalType" => SignalType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "SendAutomationSignal", - Dict{String,Any}( - "AutomationExecutionId" => AutomationExecutionId, "SignalType" => SignalType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_automation_signal( AutomationExecutionId, SignalType, @@ -5659,14 +5404,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimeoutSeconds"`: If this time is reached and the command hasn't already started running, it won't run. """ -function send_command(DocumentName; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "SendCommand", - Dict{String,Any}("DocumentName" => DocumentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +send_command(DocumentName; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "SendCommand", + Dict{String,Any}("DocumentName" => DocumentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function send_command( DocumentName, params::AbstractDict{String}; @@ -5693,16 +5436,14 @@ troubleshooting associations. - `association_ids`: The association IDs that you want to run immediately and only one time. """ -function start_associations_once( +start_associations_once( AssociationIds; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "StartAssociationsOnce", + Dict{String,Any}("AssociationIds" => AssociationIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "StartAssociationsOnce", - Dict{String,Any}("AssociationIds" => AssociationIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_associations_once( AssociationIds, params::AbstractDict{String}; @@ -5772,16 +5513,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Targets"`: A key-value mapping to target resources. Required if you specify TargetParameterName. """ -function start_automation_execution( +start_automation_execution( DocumentName; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "StartAutomationExecution", + Dict{String,Any}("DocumentName" => DocumentName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "StartAutomationExecution", - Dict{String,Any}("DocumentName" => DocumentName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_automation_execution( DocumentName, params::AbstractDict{String}; @@ -5845,16 +5584,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys could specify the following key-value pairs: Key=Environment,Value=Production Key=Region,Value=us-east-2 """ -function start_change_request_execution( +start_change_request_execution( DocumentName, Runbooks; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "StartChangeRequestExecution", + Dict{String,Any}("DocumentName" => DocumentName, "Runbooks" => Runbooks); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "StartChangeRequestExecution", - Dict{String,Any}("DocumentName" => DocumentName, "Runbooks" => Runbooks); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_change_request_execution( DocumentName, Runbooks, @@ -5904,14 +5641,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Reason"`: The reason for connecting to the instance. This value is included in the details for the Amazon CloudWatch Events event created when you start the session. """ -function start_session(Target; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "StartSession", - Dict{String,Any}("Target" => Target); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_session(Target; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "StartSession", + Dict{String,Any}("Target" => Target); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_session( Target, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -5937,16 +5672,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: The stop request type. Valid types include the following: Cancel and Complete. The default type is Cancel. """ -function stop_automation_execution( +stop_automation_execution( AutomationExecutionId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "StopAutomationExecution", + Dict{String,Any}("AutomationExecutionId" => AutomationExecutionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "StopAutomationExecution", - Dict{String,Any}("AutomationExecutionId" => AutomationExecutionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function stop_automation_execution( AutomationExecutionId, params::AbstractDict{String}; @@ -5977,14 +5710,12 @@ client and SSM Agent on the managed node. A terminated session can't be resumed. - `session_id`: The ID of the session to terminate. """ -function terminate_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "TerminateSession", - Dict{String,Any}("SessionId" => SessionId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +terminate_session(SessionId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "TerminateSession", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function terminate_session( SessionId, params::AbstractDict{String}; @@ -6014,18 +5745,16 @@ Remove a label or labels from a parameter. or more labels from. If it isn't present, the call will fail. """ -function unlabel_parameter_version( +unlabel_parameter_version( Labels, Name, ParameterVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UnlabelParameterVersion", + Dict{String,Any}( + "Labels" => Labels, "Name" => Name, "ParameterVersion" => ParameterVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UnlabelParameterVersion", - Dict{String,Any}( - "Labels" => Labels, "Name" => Name, "ParameterVersion" => ParameterVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function unlabel_parameter_version( Labels, Name, @@ -6176,16 +5905,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Targets and TargetMaps can't be specified together. - `"Targets"`: The targets of the association. """ -function update_association( - AssociationId; aws_config::AbstractAWSConfig=current_aws_config() +update_association(AssociationId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "UpdateAssociation", + Dict{String,Any}("AssociationId" => AssociationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateAssociation", - Dict{String,Any}("AssociationId" => AssociationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_association( AssociationId, params::AbstractDict{String}; @@ -6217,20 +5942,18 @@ parameter. - `name`: The name of the SSM document. """ -function update_association_status( +update_association_status( AssociationStatus, InstanceId, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UpdateAssociationStatus", + Dict{String,Any}( + "AssociationStatus" => AssociationStatus, + "InstanceId" => InstanceId, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateAssociationStatus", - Dict{String,Any}( - "AssociationStatus" => AssociationStatus, - "InstanceId" => InstanceId, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_association_status( AssociationStatus, InstanceId, @@ -6285,14 +6008,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed. """ -function update_document(Content, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "UpdateDocument", - Dict{String,Any}("Content" => Content, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_document(Content, Name; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "UpdateDocument", + Dict{String,Any}("Content" => Content, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_document( Content, Name, @@ -6325,16 +6046,14 @@ specifed the apply-only-at-cron-interval parameter. - `name`: The name of a custom document that you want to set as the default version. """ -function update_document_default_version( +update_document_default_version( DocumentVersion, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UpdateDocumentDefaultVersion", + Dict{String,Any}("DocumentVersion" => DocumentVersion, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateDocumentDefaultVersion", - Dict{String,Any}("DocumentVersion" => DocumentVersion, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_document_default_version( DocumentVersion, Name, @@ -6371,16 +6090,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DocumentVersion"`: The version of a change template in which to update approval metadata. """ -function update_document_metadata( +update_document_metadata( DocumentReviews, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UpdateDocumentMetadata", + Dict{String,Any}("DocumentReviews" => DocumentReviews, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateDocumentMetadata", - Dict{String,Any}("DocumentReviews" => DocumentReviews, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_document_metadata( DocumentReviews, Name, @@ -6448,16 +6165,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provide a start date that occurs in the past, the current date and time are used as the start date. """ -function update_maintenance_window( - WindowId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +update_maintenance_window(WindowId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "UpdateMaintenanceWindow", Dict{String,Any}("WindowId" => WindowId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_maintenance_window( WindowId, params::AbstractDict{String}; @@ -6498,16 +6212,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Optional fields that aren't specified are set to null. - `"Targets"`: The targets to add or replace. """ -function update_maintenance_window_target( +update_maintenance_window_target( WindowId, WindowTargetId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UpdateMaintenanceWindowTarget", + Dict{String,Any}("WindowId" => WindowId, "WindowTargetId" => WindowTargetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateMaintenanceWindowTarget", - Dict{String,Any}("WindowId" => WindowId, "WindowTargetId" => WindowTargetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_maintenance_window_target( WindowId, WindowTargetId, @@ -6632,16 +6344,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys between 1 and 255 characters Value: an array of strings, each string is between 1 and 255 characters """ -function update_maintenance_window_task( +update_maintenance_window_task( WindowId, WindowTaskId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UpdateMaintenanceWindowTask", + Dict{String,Any}("WindowId" => WindowId, "WindowTaskId" => WindowTaskId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateMaintenanceWindowTask", - Dict{String,Any}("WindowId" => WindowId, "WindowTaskId" => WindowTaskId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_maintenance_window_task( WindowId, WindowTaskId, @@ -6680,16 +6390,14 @@ nodes during the activation process. For more information, see CreateActivation. - `instance_id`: The ID of the managed node where you want to update the role. """ -function update_managed_instance_role( +update_managed_instance_role( IamRole, InstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UpdateManagedInstanceRole", + Dict{String,Any}("IamRole" => IamRole, "InstanceId" => InstanceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateManagedInstanceRole", - Dict{String,Any}("IamRole" => IamRole, "InstanceId" => InstanceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_managed_instance_role( IamRole, InstanceId, @@ -6768,14 +6476,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Title"`: A short heading that describes the nature of the OpsItem and the impacted resource. """ -function update_ops_item(OpsItemId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm( - "UpdateOpsItem", - Dict{String,Any}("OpsItemId" => OpsItemId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_ops_item(OpsItemId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "UpdateOpsItem", + Dict{String,Any}("OpsItemId" => OpsItemId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_ops_item( OpsItemId, params::AbstractDict{String}; @@ -6806,16 +6512,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"KeysToDelete"`: The metadata keys to delete from the OpsMetadata object. - `"MetadataToUpdate"`: Metadata to add to an OpsMetadata object. """ -function update_ops_metadata( - OpsMetadataArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm( +update_ops_metadata(OpsMetadataArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm( "UpdateOpsMetadata", Dict{String,Any}("OpsMetadataArn" => OpsMetadataArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_ops_metadata( OpsMetadataArn, params::AbstractDict{String}; @@ -6862,30 +6565,30 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide. - `"RejectedPatchesAction"`: The action for Patch Manager to take on patches included in - the RejectedPackages list. ALLOW_AS_DEPENDENCY : A package in the Rejected patches list - is installed only if it is a dependency of another package. It is considered compliant with - the patch baseline, and its status is reported as InstalledOther. This is the default - action if no option is specified. BLOCK: Packages in the Rejected patches list, and - packages that include them as dependencies, aren't installed by Patch Manager under any - circumstances. If a package was installed before it was added to the Rejected patches list, - or is installed outside of Patch Manager afterward, it's considered noncompliant with the - patch baseline and its status is reported as InstalledRejected. + the RejectedPackages list. ALLOW_AS_DEPENDENCY Linux and macOS: A package in the + rejected patches list is installed only if it is a dependency of another package. It is + considered compliant with the patch baseline, and its status is reported as + INSTALLED_OTHER. This is the default action if no option is specified. Windows Server: + Windows Server doesn't support the concept of package dependencies. If a package in the + rejected patches list and already installed on the node, its status is reported as + INSTALLED_OTHER. Any package not already installed on the node is skipped. This is the + default action if no option is specified. BLOCK All OSs: Packages in the rejected + patches list, and packages that include them as dependencies, aren't installed by Patch + Manager under any circumstances. If a package was installed before it was added to the + rejected patches list, or is installed outside of Patch Manager afterward, it's considered + noncompliant with the patch baseline and its status is reported as INSTALLED_REJECTED. - `"Replace"`: If True, then all fields that are required by the CreatePatchBaseline operation are also required for this API request. Optional fields that aren't specified are set to null. - `"Sources"`: Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only. """ -function update_patch_baseline( - BaselineId; aws_config::AbstractAWSConfig=current_aws_config() +update_patch_baseline(BaselineId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm( + "UpdatePatchBaseline", + Dict{String,Any}("BaselineId" => BaselineId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdatePatchBaseline", - Dict{String,Any}("BaselineId" => BaselineId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_patch_baseline( BaselineId, params::AbstractDict{String}; @@ -6919,18 +6622,16 @@ SyncFromSource SyncType. - `sync_type`: The type of resource data sync. The supported SyncType is SyncFromSource. """ -function update_resource_data_sync( +update_resource_data_sync( SyncName, SyncSource, SyncType; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UpdateResourceDataSync", + Dict{String,Any}( + "SyncName" => SyncName, "SyncSource" => SyncSource, "SyncType" => SyncType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateResourceDataSync", - Dict{String,Any}( - "SyncName" => SyncName, "SyncSource" => SyncSource, "SyncType" => SyncType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource_data_sync( SyncName, SyncSource, @@ -7000,16 +6701,14 @@ service setting for the account. false. """ -function update_service_setting( +update_service_setting( SettingId, SettingValue; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm( + "UpdateServiceSetting", + Dict{String,Any}("SettingId" => SettingId, "SettingValue" => SettingValue); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm( - "UpdateServiceSetting", - Dict{String,Any}("SettingId" => SettingId, "SettingValue" => SettingValue); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_setting( SettingId, SettingValue, diff --git a/src/services/ssm_contacts.jl b/src/services/ssm_contacts.jl index b059cf57d..1240789de 100644 --- a/src/services/ssm_contacts.jl +++ b/src/services/ssm_contacts.jl @@ -27,18 +27,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ContactChannelId"`: The ARN of the contact channel. - `"Note"`: Information provided by the user when the user acknowledges the page. """ -function accept_page( +accept_page( AcceptCode, AcceptType, PageId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "AcceptPage", + Dict{String,Any}( + "AcceptCode" => AcceptCode, "AcceptType" => AcceptType, "PageId" => PageId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "AcceptPage", - Dict{String,Any}( - "AcceptCode" => AcceptCode, "AcceptType" => AcceptType, "PageId" => PageId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function accept_page( AcceptCode, AcceptType, @@ -77,18 +75,16 @@ contact channel has been activated. - `contact_channel_id`: The Amazon Resource Name (ARN) of the contact channel. """ -function activate_contact_channel( +activate_contact_channel( ActivationCode, ContactChannelId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "ActivateContactChannel", + Dict{String,Any}( + "ActivationCode" => ActivationCode, "ContactChannelId" => ContactChannelId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "ActivateContactChannel", - Dict{String,Any}( - "ActivationCode" => ActivationCode, "ContactChannelId" => ContactChannelId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function activate_contact_channel( ActivationCode, ContactChannelId, @@ -134,10 +130,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Adds a tag to the target. You can only tag resources created in the first Region of your replication set. """ -function create_contact( - Alias, Plan, Type; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +create_contact(Alias, Plan, Type; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "CreateContact", Dict{String,Any}( "Alias" => Alias, @@ -148,7 +142,6 @@ function create_contact( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_contact( Alias, Plan, @@ -200,26 +193,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IdempotencyToken"`: A token ensuring that the operation is called only once with the specified details. """ -function create_contact_channel( +create_contact_channel( ContactId, DeliveryAddress, Name, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm_contacts( + "CreateContactChannel", + Dict{String,Any}( + "ContactId" => ContactId, + "DeliveryAddress" => DeliveryAddress, + "Name" => Name, + "Type" => Type, + "IdempotencyToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "CreateContactChannel", - Dict{String,Any}( - "ContactId" => ContactId, - "DeliveryAddress" => DeliveryAddress, - "Name" => Name, - "Type" => Type, - "IdempotencyToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_contact_channel( ContactId, DeliveryAddress, @@ -276,25 +267,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys resource in different ways, such as by purpose, owner, or environment. For more information, see Tagging Incident Manager resources in the Incident Manager User Guide. """ -function create_rotation( +create_rotation( ContactIds, Name, Recurrence, TimeZoneId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm_contacts( + "CreateRotation", + Dict{String,Any}( + "ContactIds" => ContactIds, + "Name" => Name, + "Recurrence" => Recurrence, + "TimeZoneId" => TimeZoneId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "CreateRotation", - Dict{String,Any}( - "ContactIds" => ContactIds, - "Name" => Name, - "Recurrence" => Recurrence, - "TimeZoneId" => TimeZoneId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rotation( ContactIds, Name, @@ -341,25 +330,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IdempotencyToken"`: A token that ensures that the operation is called only once with the specified details. """ -function create_rotation_override( +create_rotation_override( EndTime, NewContactIds, RotationId, StartTime; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm_contacts( + "CreateRotationOverride", + Dict{String,Any}( + "EndTime" => EndTime, + "NewContactIds" => NewContactIds, + "RotationId" => RotationId, + "StartTime" => StartTime, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "CreateRotationOverride", - Dict{String,Any}( - "EndTime" => EndTime, - "NewContactIds" => NewContactIds, - "RotationId" => RotationId, - "StartTime" => StartTime, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rotation_override( EndTime, NewContactIds, @@ -399,16 +386,14 @@ the channel. deactivating. """ -function deactivate_contact_channel( +deactivate_contact_channel( ContactChannelId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "DeactivateContactChannel", + Dict{String,Any}("ContactChannelId" => ContactChannelId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "DeactivateContactChannel", - Dict{String,Any}("ContactChannelId" => ContactChannelId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deactivate_contact_channel( ContactChannelId, params::AbstractDict{String}; @@ -439,14 +424,13 @@ its contact channels before you can use it again. - `contact_id`: The Amazon Resource Name (ARN) of the contact that you're deleting. """ -function delete_contact(ContactId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( +delete_contact(ContactId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "DeleteContact", Dict{String,Any}("ContactId" => ContactId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_contact( ContactId, params::AbstractDict{String}; @@ -475,16 +459,14 @@ during an incident. - `contact_channel_id`: The Amazon Resource Name (ARN) of the contact channel. """ -function delete_contact_channel( +delete_contact_channel( ContactChannelId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "DeleteContactChannel", + Dict{String,Any}("ContactChannelId" => ContactChannelId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "DeleteContactChannel", - Dict{String,Any}("ContactChannelId" => ContactChannelId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_contact_channel( ContactChannelId, params::AbstractDict{String}; @@ -513,14 +495,13 @@ schedule, this operation deletes it from all of them. - `rotation_id`: The Amazon Resource Name (ARN) of the on-call rotation to delete. """ -function delete_rotation(RotationId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( +delete_rotation(RotationId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "DeleteRotation", Dict{String,Any}("RotationId" => RotationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_rotation( RotationId, params::AbstractDict{String}; @@ -548,18 +529,16 @@ Deletes an existing override for an on-call rotation. to delete. """ -function delete_rotation_override( +delete_rotation_override( RotationId, RotationOverrideId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "DeleteRotationOverride", + Dict{String,Any}( + "RotationId" => RotationId, "RotationOverrideId" => RotationOverrideId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "DeleteRotationOverride", - Dict{String,Any}( - "RotationId" => RotationId, "RotationOverrideId" => RotationOverrideId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rotation_override( RotationId, RotationOverrideId, @@ -593,16 +572,13 @@ incident. Use this command to describe the engagement that occurred during an in - `engagement_id`: The Amazon Resource Name (ARN) of the engagement you want the details of. """ -function describe_engagement( - EngagementId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +describe_engagement(EngagementId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "DescribeEngagement", Dict{String,Any}("EngagementId" => EngagementId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_engagement( EngagementId, params::AbstractDict{String}; @@ -628,14 +604,12 @@ Lists details of the engagement to a contact channel. - `page_id`: The ID of the engagement to a contact channel. """ -function describe_page(PageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( - "DescribePage", - Dict{String,Any}("PageId" => PageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_page(PageId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_contacts( + "DescribePage", + Dict{String,Any}("PageId" => PageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_page( PageId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -657,14 +631,12 @@ Retrieves information about the specified contact or escalation plan. - `contact_id`: The Amazon Resource Name (ARN) of the contact or escalation plan. """ -function get_contact(ContactId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( - "GetContact", - Dict{String,Any}("ContactId" => ContactId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_contact(ContactId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_contacts( + "GetContact", + Dict{String,Any}("ContactId" => ContactId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_contact( ContactId, params::AbstractDict{String}; @@ -691,16 +663,13 @@ List details about a specific contact channel. information about. """ -function get_contact_channel( - ContactChannelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +get_contact_channel(ContactChannelId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "GetContactChannel", Dict{String,Any}("ContactChannelId" => ContactChannelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_contact_channel( ContactChannelId, params::AbstractDict{String}; @@ -728,14 +697,13 @@ Retrieves the resource policies attached to the specified contact or escalation - `contact_arn`: The Amazon Resource Name (ARN) of the contact or escalation plan. """ -function get_contact_policy(ContactArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( +get_contact_policy(ContactArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "GetContactPolicy", Dict{String,Any}("ContactArn" => ContactArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_contact_policy( ContactArn, params::AbstractDict{String}; @@ -762,14 +730,12 @@ Retrieves information about an on-call rotation. information about. """ -function get_rotation(RotationId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( - "GetRotation", - Dict{String,Any}("RotationId" => RotationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rotation(RotationId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_contacts( + "GetRotation", + Dict{String,Any}("RotationId" => RotationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rotation( RotationId, params::AbstractDict{String}; @@ -798,18 +764,16 @@ Retrieves information about an override to an on-call rotation. to retrieve information about. """ -function get_rotation_override( +get_rotation_override( RotationId, RotationOverrideId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "GetRotationOverride", + Dict{String,Any}( + "RotationId" => RotationId, "RotationOverrideId" => RotationOverrideId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "GetRotationOverride", - Dict{String,Any}( - "RotationId" => RotationId, "RotationOverrideId" => RotationOverrideId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_rotation_override( RotationId, RotationOverrideId, @@ -846,16 +810,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of contact channels per page. - `"NextToken"`: The pagination token to continue to the next page of results. """ -function list_contact_channels( - ContactId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +list_contact_channels(ContactId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "ListContactChannels", Dict{String,Any}("ContactId" => ContactId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_contact_channels( ContactId, params::AbstractDict{String}; @@ -885,11 +846,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Type"`: The type of contact. A contact is type PERSONAL and an escalation plan is type ESCALATION. """ -function list_contacts(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( - "ListContacts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_contacts(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts("ListContacts"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_contacts( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -912,11 +870,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to continue to the next page of results. - `"TimeRangeValue"`: The time range to lists engagements for an incident. """ -function list_engagements(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( - "ListEngagements"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_engagements(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts("ListEngagements"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_engagements( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -939,14 +894,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of acknowledgements per page of results. - `"NextToken"`: The pagination token to continue to the next page of results. """ -function list_page_receipts(PageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( +list_page_receipts(PageId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "ListPageReceipts", Dict{String,Any}("PageId" => PageId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_page_receipts( PageId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -974,14 +928,13 @@ hierarchy of escalation plan > on-call schedule > contact. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function list_page_resolutions(PageId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( +list_page_resolutions(PageId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "ListPageResolutions", Dict{String,Any}("PageId" => PageId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_page_resolutions( PageId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1009,16 +962,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"NextToken"`: The pagination token to continue to the next page of results. """ -function list_pages_by_contact( - ContactId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +list_pages_by_contact(ContactId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "ListPagesByContact", Dict{String,Any}("ContactId" => ContactId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_pages_by_contact( ContactId, params::AbstractDict{String}; @@ -1049,16 +999,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys results. - `"NextToken"`: The pagination token to continue to the next page of results. """ -function list_pages_by_engagement( - EngagementId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +list_pages_by_engagement(EngagementId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "ListPagesByEngagement", Dict{String,Any}("EngagementId" => EngagementId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_pages_by_engagement( EngagementId, params::AbstractDict{String}; @@ -1103,25 +1050,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StartTime"`: Used to filter the range of calculated shifts before sending the response back to the user. """ -function list_preview_rotation_shifts( +list_preview_rotation_shifts( EndTime, Members, Recurrence, TimeZoneId; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm_contacts( + "ListPreviewRotationShifts", + Dict{String,Any}( + "EndTime" => EndTime, + "Members" => Members, + "Recurrence" => Recurrence, + "TimeZoneId" => TimeZoneId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "ListPreviewRotationShifts", - Dict{String,Any}( - "EndTime" => EndTime, - "Members" => Members, - "Recurrence" => Recurrence, - "TimeZoneId" => TimeZoneId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_preview_rotation_shifts( EndTime, Members, @@ -1167,18 +1112,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returns a token that you can specify in a subsequent call to get the next set of results. - `"NextToken"`: A token to start the list. Use this token to get the next set of results. """ -function list_rotation_overrides( +list_rotation_overrides( EndTime, RotationId, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "ListRotationOverrides", + Dict{String,Any}( + "EndTime" => EndTime, "RotationId" => RotationId, "StartTime" => StartTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "ListRotationOverrides", - Dict{String,Any}( - "EndTime" => EndTime, "RotationId" => RotationId, "StartTime" => StartTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_rotation_overrides( EndTime, RotationId, @@ -1222,16 +1165,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token to start the list. Use this token to get the next set of results. - `"StartTime"`: The date and time for the beginning of the time range to list shifts for. """ -function list_rotation_shifts( +list_rotation_shifts( EndTime, RotationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "ListRotationShifts", + Dict{String,Any}("EndTime" => EndTime, "RotationId" => RotationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "ListRotationShifts", - Dict{String,Any}("EndTime" => EndTime, "RotationId" => RotationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_rotation_shifts( EndTime, RotationId, @@ -1267,11 +1208,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys common prefix. For example, entering prod returns a list of all rotation names that begin with prod, such as production and prod-1. """ -function list_rotations(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( - "ListRotations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rotations(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts("ListRotations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rotations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1290,16 +1228,13 @@ Lists the tags of an escalation plan or contact. - `resource_arn`: The Amazon Resource Name (ARN) of the contact or escalation plan. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -1328,16 +1263,13 @@ information about cross-account sharing, see Setting up cross-account functional - `policy`: Details of the resource policy. """ -function put_contact_policy( - ContactArn, Policy; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +put_contact_policy(ContactArn, Policy; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "PutContactPolicy", Dict{String,Any}("ContactArn" => ContactArn, "Policy" => Policy); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_contact_policy( ContactArn, Policy, @@ -1370,16 +1302,13 @@ can't engage a contact channel until it has been activated. - `contact_channel_id`: The Amazon Resource Name (ARN) of the contact channel. """ -function send_activation_code( - ContactChannelId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +send_activation_code(ContactChannelId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "SendActivationCode", Dict{String,Any}("ContactChannelId" => ContactChannelId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function send_activation_code( ContactChannelId, params::AbstractDict{String}; @@ -1422,22 +1351,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PublicSubject"`: The insecure subject of the message that was sent to the contact. Use this field for engagements to SMS. """ -function start_engagement( +start_engagement( ContactId, Content, Sender, Subject; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "StartEngagement", + Dict{String,Any}( + "ContactId" => ContactId, + "Content" => Content, + "Sender" => Sender, + "Subject" => Subject, + "IdempotencyToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "StartEngagement", - Dict{String,Any}( - "ContactId" => ContactId, - "Content" => Content, - "Sender" => Sender, - "Subject" => Subject, - "IdempotencyToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_engagement( ContactId, Content, @@ -1480,14 +1407,13 @@ plan. Further contacts aren't engaged. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Reason"`: The reason that you're stopping the engagement. """ -function stop_engagement(EngagementId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( +stop_engagement(EngagementId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "StopEngagement", Dict{String,Any}("EngagementId" => EngagementId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_engagement( EngagementId, params::AbstractDict{String}; @@ -1515,14 +1441,13 @@ first region of your replication set. - `tags`: A list of tags that you are adding to the contact or escalation plan. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1554,16 +1479,13 @@ Removes tags from the specified resource. - `tag_keys`: The key of the tag that you want to remove. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_contacts( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1600,14 +1522,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Plan"`: A list of stages. A contact has an engagement plan with stages for specified contact channels. An escalation plan uses these stages to contact specified contacts. """ -function update_contact(ContactId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_contacts( +update_contact(ContactId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_contacts( "UpdateContact", Dict{String,Any}("ContactId" => ContactId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_contact( ContactId, params::AbstractDict{String}; @@ -1639,16 +1560,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys contact channel. - `"Name"`: The name of the contact channel. """ -function update_contact_channel( +update_contact_channel( ContactChannelId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "UpdateContactChannel", + Dict{String,Any}("ContactChannelId" => ContactChannelId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "UpdateContactChannel", - Dict{String,Any}("ContactChannelId" => ContactChannelId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_contact_channel( ContactChannelId, params::AbstractDict{String}; @@ -1689,16 +1608,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Designators for time zones that don’t support Daylight Savings Time Rules, such as Pacific Standard Time (PST) and Pacific Daylight Time (PDT), aren't supported. """ -function update_rotation( +update_rotation( Recurrence, RotationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_contacts( + "UpdateRotation", + Dict{String,Any}("Recurrence" => Recurrence, "RotationId" => RotationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_contacts( - "UpdateRotation", - Dict{String,Any}("Recurrence" => Recurrence, "RotationId" => RotationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rotation( Recurrence, RotationId, diff --git a/src/services/ssm_incidents.jl b/src/services/ssm_incidents.jl index 1d9faa24a..10ae97d60 100644 --- a/src/services/ssm_incidents.jl +++ b/src/services/ssm_incidents.jl @@ -19,19 +19,15 @@ investigated as a potential cause of the incident. to view finding details. """ -function batch_get_incident_findings( +batch_get_incident_findings( findingIds, incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/batchGetIncidentFindings", + Dict{String,Any}("findingIds" => findingIds, "incidentRecordArn" => incidentRecordArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/batchGetIncidentFindings", - Dict{String,Any}( - "findingIds" => findingIds, "incidentRecordArn" => incidentRecordArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_get_incident_findings( findingIds, incidentRecordArn, @@ -72,15 +68,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified details. - `"tags"`: A list of tags to add to the replication set. """ -function create_replication_set(regions; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +create_replication_set(regions; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/createReplicationSet", Dict{String,Any}("regions" => regions, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_replication_set( regions, params::AbstractDict{String}; @@ -126,21 +121,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys plan. - `"tags"`: A list of tags that you are adding to the response plan. """ -function create_response_plan( +create_response_plan( incidentTemplate, name; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/createResponsePlan", + Dict{String,Any}( + "incidentTemplate" => incidentTemplate, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/createResponsePlan", - Dict{String,Any}( - "incidentTemplate" => incidentTemplate, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_response_plan( incidentTemplate, name, @@ -196,27 +189,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys a resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item. """ -function create_timeline_event( +create_timeline_event( eventData, eventTime, eventType, incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm_incidents( + "POST", + "/createTimelineEvent", + Dict{String,Any}( + "eventData" => eventData, + "eventTime" => eventTime, + "eventType" => eventType, + "incidentRecordArn" => incidentRecordArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/createTimelineEvent", - Dict{String,Any}( - "eventData" => eventData, - "eventTime" => eventTime, - "eventType" => eventType, - "incidentRecordArn" => incidentRecordArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_timeline_event( eventData, eventTime, @@ -256,15 +247,14 @@ Delete an incident record from Incident Manager. - `arn`: The Amazon Resource Name (ARN) of the incident record you are deleting. """ -function delete_incident_record(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +delete_incident_record(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/deleteIncidentRecord", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_incident_record( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -288,15 +278,14 @@ Incident Manager data. - `arn`: The Amazon Resource Name (ARN) of the replication set you're deleting. """ -function delete_replication_set(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +delete_replication_set(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/deleteReplicationSet", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_replication_set( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -322,17 +311,15 @@ Manager resource. from. """ -function delete_resource_policy( +delete_resource_policy( policyId, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/deleteResourcePolicy", + Dict{String,Any}("policyId" => policyId, "resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/deleteResourcePolicy", - Dict{String,Any}("policyId" => policyId, "resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource_policy( policyId, resourceArn, @@ -365,15 +352,14 @@ alarms and EventBridge events from creating an incident with this response plan. - `arn`: The Amazon Resource Name (ARN) of the response plan. """ -function delete_response_plan(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +delete_response_plan(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/deleteResponsePlan", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_response_plan( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -399,17 +385,15 @@ Deletes a timeline event from an incident. timeline event. """ -function delete_timeline_event( +delete_timeline_event( eventId, incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/deleteTimelineEvent", + Dict{String,Any}("eventId" => eventId, "incidentRecordArn" => incidentRecordArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/deleteTimelineEvent", - Dict{String,Any}("eventId" => eventId, "incidentRecordArn" => incidentRecordArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_timeline_event( eventId, incidentRecordArn, @@ -443,15 +427,14 @@ Returns the details for the specified incident record. - `arn`: The Amazon Resource Name (ARN) of the incident record. """ -function get_incident_record(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +get_incident_record(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "GET", "/getIncidentRecord", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_incident_record( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -474,15 +457,14 @@ Retrieve your Incident Manager replication set. - `arn`: The Amazon Resource Name (ARN) of the replication set you want to retrieve. """ -function get_replication_set(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +get_replication_set(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "GET", "/getReplicationSet", Dict{String,Any}("arn" => arn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_replication_set( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -512,17 +494,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token for the next set of items to return. (You received this token from a previous call.) """ -function get_resource_policies( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_incidents( +get_resource_policies(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/getResourcePolicies", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policies( resourceArn, params::AbstractDict{String}; @@ -549,15 +528,13 @@ Retrieves the details of the specified response plan. - `arn`: The Amazon Resource Name (ARN) of the response plan. """ -function get_response_plan(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( - "GET", - "/getResponsePlan", - Dict{String,Any}("arn" => arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_response_plan(arn; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_incidents( + "GET", + "/getResponsePlan", + Dict{String,Any}("arn" => arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_response_plan( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -583,17 +560,15 @@ Retrieves a timeline event based on its ID and incident record. timeline event. """ -function get_timeline_event( +get_timeline_event( eventId, incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "GET", + "/getTimelineEvent", + Dict{String,Any}("eventId" => eventId, "incidentRecordArn" => incidentRecordArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "GET", - "/getTimelineEvent", - Dict{String,Any}("eventId" => eventId, "incidentRecordArn" => incidentRecordArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_timeline_event( eventId, incidentRecordArn, @@ -636,17 +611,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token for the next set of items to return. (You received this token from a previous call.) """ -function list_incident_findings( +list_incident_findings( incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/listIncidentFindings", + Dict{String,Any}("incidentRecordArn" => incidentRecordArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/listIncidentFindings", - Dict{String,Any}("incidentRecordArn" => incidentRecordArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_incident_findings( incidentRecordArn, params::AbstractDict{String}; @@ -685,14 +658,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token for the next set of items to return. (You received this token from a previous call.) """ -function list_incident_records(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( - "POST", - "/listIncidentRecords"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_incident_records(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_incidents( + "POST", + "/listIncidentRecords"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_incident_records( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -721,17 +692,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token for the next set of items to return. (You received this token from a previous call.) """ -function list_related_items( - incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_incidents( +list_related_items(incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/listRelatedItems", Dict{String,Any}("incidentRecordArn" => incidentRecordArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_related_items( incidentRecordArn, params::AbstractDict{String}; @@ -762,14 +730,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token for the next set of items to return. (You received this token from a previous call.) """ -function list_replication_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( - "POST", - "/listReplicationSets"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_replication_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_incidents( + "POST", + "/listReplicationSets"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_replication_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -794,11 +760,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token for the next set of items to return. (You received this token from a previous call.) """ -function list_response_plans(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( - "POST", "/listResponsePlans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_response_plans(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_incidents( + "POST", "/listResponsePlans"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_response_plans( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -821,16 +785,13 @@ Lists the tags that are attached to the specified response plan or incident. - `resource_arn`: The Amazon Resource Name (ARN) of the response plan or incident. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_incidents( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -871,17 +832,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sortOrder"`: Sorts the order of timeline events by the value specified in the sortBy field. """ -function list_timeline_events( +list_timeline_events( incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/listTimelineEvents", + Dict{String,Any}("incidentRecordArn" => incidentRecordArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/listTimelineEvents", - Dict{String,Any}("incidentRecordArn" => incidentRecordArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_timeline_events( incidentRecordArn, params::AbstractDict{String}; @@ -914,17 +873,15 @@ cross-account sharing, see Cross-Region and cross-account incident management. policy to. """ -function put_resource_policy( +put_resource_policy( policy, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/putResourcePolicy", + Dict{String,Any}("policy" => policy, "resourceArn" => resourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/putResourcePolicy", - Dict{String,Any}("policy" => policy, "resourceArn" => resourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( policy, resourceArn, @@ -970,8 +927,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provided by the response plan. - `"triggerDetails"`: Details of what created the incident record in Incident Manager. """ -function start_incident(responsePlanArn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +start_incident(responsePlanArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/startIncident", Dict{String,Any}( @@ -980,7 +937,6 @@ function start_incident(responsePlanArn; aws_config::AbstractAWSConfig=current_a aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_incident( responsePlanArn, params::AbstractDict{String}; @@ -1015,15 +971,14 @@ Adds a tag to a response plan. - `tags`: A list of tags to add to the response plan. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1051,17 +1006,14 @@ Removes a tag from a resource. - `tag_keys`: The name of the tag to remove from the response plan. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_incidents( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1094,21 +1046,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A token that ensures that the operation is called only once with the specified details. """ -function update_deletion_protection( +update_deletion_protection( arn, deletionProtected; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/updateDeletionProtection", + Dict{String,Any}( + "arn" => arn, + "deletionProtected" => deletionProtected, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/updateDeletionProtection", - Dict{String,Any}( - "arn" => arn, - "deletionProtected" => deletionProtected, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_deletion_protection( arn, deletionProtected, @@ -1161,15 +1111,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"summary"`: A longer description of what occurred during the incident. - `"title"`: A brief description of the incident. """ -function update_incident_record(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +update_incident_record(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/updateIncidentRecord", Dict{String,Any}("arn" => arn, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_incident_record( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1205,23 +1154,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A token that ensures that a client calls the operation only once with the specified details. """ -function update_related_items( +update_related_items( incidentRecordArn, relatedItemsUpdate; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm_incidents( + "POST", + "/updateRelatedItems", + Dict{String,Any}( + "incidentRecordArn" => incidentRecordArn, + "relatedItemsUpdate" => relatedItemsUpdate, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/updateRelatedItems", - Dict{String,Any}( - "incidentRecordArn" => incidentRecordArn, - "relatedItemsUpdate" => relatedItemsUpdate, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_related_items( incidentRecordArn, relatedItemsUpdate, @@ -1262,10 +1209,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: A token that ensures that the operation is called only once with the specified details. """ -function update_replication_set( - actions, arn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_incidents( +update_replication_set(actions, arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/updateReplicationSet", Dict{String,Any}( @@ -1274,7 +1219,6 @@ function update_replication_set( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_replication_set( actions, arn, @@ -1336,15 +1280,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"integrations"`: Information about third-party services integrated into the response plan. """ -function update_response_plan(arn; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_incidents( +update_response_plan(arn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_incidents( "POST", "/updateResponsePlan", Dict{String,Any}("arn" => arn, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_response_plan( arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1391,21 +1334,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"eventTime"`: The timestamp for when the event occurred. - `"eventType"`: The type of event. You can update events of type Custom Event and Note. """ -function update_timeline_event( +update_timeline_event( eventId, incidentRecordArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_incidents( + "POST", + "/updateTimelineEvent", + Dict{String,Any}( + "eventId" => eventId, + "incidentRecordArn" => incidentRecordArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_incidents( - "POST", - "/updateTimelineEvent", - Dict{String,Any}( - "eventId" => eventId, - "incidentRecordArn" => incidentRecordArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_timeline_event( eventId, incidentRecordArn, diff --git a/src/services/ssm_quicksetup.jl b/src/services/ssm_quicksetup.jl new file mode 100644 index 000000000..be91346f2 --- /dev/null +++ b/src/services/ssm_quicksetup.jl @@ -0,0 +1,400 @@ +# This file is auto-generated by AWSMetadata.jl +using AWS +using AWS.AWSServices: ssm_quicksetup +using AWS.Compat +using AWS.UUIDs + +""" + create_configuration_manager(configuration_definitions) + create_configuration_manager(configuration_definitions, params::Dict{String,<:Any}) + +Creates a Quick Setup configuration manager resource. This object is a collection of +desired state configurations for multiple configuration definitions and summaries +describing the deployments of those definitions. + +# Arguments +- `configuration_definitions`: The definition of the Quick Setup configuration that the + configuration manager deploys. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"Description"`: A description of the configuration manager. +- `"Name"`: A name for the configuration manager. +- `"Tags"`: Key-value pairs of metadata to assign to the configuration manager. +""" +create_configuration_manager( + ConfigurationDefinitions; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_quicksetup( + "POST", + "/configurationManager", + Dict{String,Any}("ConfigurationDefinitions" => ConfigurationDefinitions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_configuration_manager( + ConfigurationDefinitions, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ssm_quicksetup( + "POST", + "/configurationManager", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}("ConfigurationDefinitions" => ConfigurationDefinitions), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + delete_configuration_manager(manager_arn) + delete_configuration_manager(manager_arn, params::Dict{String,<:Any}) + +Deletes a configuration manager. + +# Arguments +- `manager_arn`: The ID of the configuration manager. + +""" +delete_configuration_manager( + ManagerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_quicksetup( + "DELETE", + "/configurationManager/$(ManagerArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function delete_configuration_manager( + ManagerArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ssm_quicksetup( + "DELETE", + "/configurationManager/$(ManagerArn)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_configuration_manager(manager_arn) + get_configuration_manager(manager_arn, params::Dict{String,<:Any}) + +Returns a configuration manager. + +# Arguments +- `manager_arn`: The ARN of the configuration manager. + +""" +get_configuration_manager(ManagerArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_quicksetup( + "GET", + "/configurationManager/$(ManagerArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function get_configuration_manager( + ManagerArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ssm_quicksetup( + "GET", + "/configurationManager/$(ManagerArn)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + get_service_settings() + get_service_settings(params::Dict{String,<:Any}) + +Returns settings configured for Quick Setup in the requesting Amazon Web Services account +and Amazon Web Services Region. + +""" +get_service_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_quicksetup( + "GET", "/serviceSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) +function get_service_settings( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ssm_quicksetup( + "GET", + "/serviceSettings", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_configuration_managers() + list_configuration_managers(params::Dict{String,<:Any}) + +Returns Quick Setup configuration managers. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"Filters"`: Filters the results returned by the request. +- `"MaxItems"`: Specifies the maximum number of configuration managers that are returned by + the request. +- `"StartingToken"`: The token to use when requesting a specific set of items from a list. +""" +list_configuration_managers(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_quicksetup( + "POST", + "/listConfigurationManagers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_configuration_managers( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ssm_quicksetup( + "POST", + "/listConfigurationManagers", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_quick_setup_types() + list_quick_setup_types(params::Dict{String,<:Any}) + +Returns the available Quick Setup types. + +""" +list_quick_setup_types(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_quicksetup( + "GET", + "/listQuickSetupTypes"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_quick_setup_types( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ssm_quicksetup( + "GET", + "/listQuickSetupTypes", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + list_tags_for_resource(resource_arn) + list_tags_for_resource(resource_arn, params::Dict{String,<:Any}) + +Returns tags assigned to the resource. + +# Arguments +- `resource_arn`: The ARN of the resource the tag is assigned to. + +""" +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_quicksetup( + "GET", + "/tags/$(ResourceArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function list_tags_for_resource( + ResourceArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ssm_quicksetup( + "GET", + "/tags/$(ResourceArn)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + tag_resource(resource_arn, tags) + tag_resource(resource_arn, tags, params::Dict{String,<:Any}) + +Assigns key-value pairs of metadata to Amazon Web Services resources. + +# Arguments +- `resource_arn`: The ARN of the resource to tag. +- `tags`: Key-value pairs of metadata to assign to the resource. + +""" +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_quicksetup( + "PUT", + "/tags/$(ResourceArn)", + Dict{String,Any}("Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function tag_resource( + ResourceArn, + Tags, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ssm_quicksetup( + "PUT", + "/tags/$(ResourceArn)", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Tags" => Tags), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + untag_resource(resource_arn, tag_keys) + untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any}) + +Removes tags from the specified resource. + +# Arguments +- `resource_arn`: The ARN of the resource to remove tags from. +- `tag_keys`: The keys of the tags to remove from the resource. + +""" +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_quicksetup( + "DELETE", + "/tags/$(ResourceArn)", + Dict{String,Any}("tagKeys" => tagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function untag_resource( + ResourceArn, + tagKeys, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ssm_quicksetup( + "DELETE", + "/tags/$(ResourceArn)", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("tagKeys" => tagKeys), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_configuration_definition(id, manager_arn) + update_configuration_definition(id, manager_arn, params::Dict{String,<:Any}) + +Updates a Quick Setup configuration definition. + +# Arguments +- `id`: The ID of the configuration definition you want to update. +- `manager_arn`: The ARN of the configuration manager associated with the definition to + update. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"LocalDeploymentAdministrationRoleArn"`: The ARN of the IAM role used to administrate + local configuration deployments. +- `"LocalDeploymentExecutionRoleName"`: The name of the IAM role used to deploy local + configurations. +- `"Parameters"`: The parameters for the configuration definition type. +- `"TypeVersion"`: The version of the Quick Setup type to use. +""" +update_configuration_definition( + Id, ManagerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_quicksetup( + "PUT", + "/configurationDefinition/$(ManagerArn)/$(Id)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_configuration_definition( + Id, + ManagerArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ssm_quicksetup( + "PUT", + "/configurationDefinition/$(ManagerArn)/$(Id)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_configuration_manager(manager_arn) + update_configuration_manager(manager_arn, params::Dict{String,<:Any}) + +Updates a Quick Setup configuration manager. + +# Arguments +- `manager_arn`: The ARN of the configuration manager. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"Description"`: A description of the configuration manager. +- `"Name"`: A name for the configuration manager. +""" +update_configuration_manager( + ManagerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_quicksetup( + "PUT", + "/configurationManager/$(ManagerArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function update_configuration_manager( + ManagerArn, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return ssm_quicksetup( + "PUT", + "/configurationManager/$(ManagerArn)", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + update_service_settings() + update_service_settings(params::Dict{String,<:Any}) + +Updates settings configured for Quick Setup. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ExplorerEnablingRoleArn"`: The IAM role used to enable Explorer. +""" +update_service_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_quicksetup( + "PUT", "/serviceSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + ) +function update_service_settings( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return ssm_quicksetup( + "PUT", + "/serviceSettings", + params; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end diff --git a/src/services/ssm_sap.jl b/src/services/ssm_sap.jl index 1a4110cc9..2483254bd 100644 --- a/src/services/ssm_sap.jl +++ b/src/services/ssm_sap.jl @@ -18,17 +18,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ActionType"`: Delete or restore the permissions on the target database. - `"SourceResourceArn"`: The Amazon Resource Name (ARN) of the source resource. """ -function delete_resource_permission( +delete_resource_permission( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_sap( + "POST", + "/delete-resource-permission", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_sap( - "POST", - "/delete-resource-permission", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource_permission( ResourceArn, params::AbstractDict{String}; @@ -56,17 +54,14 @@ affect the existing setup of your SAP workloads on Amazon EC2. - `application_id`: The ID of the application. """ -function deregister_application( - ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_sap( +deregister_application(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "POST", "/deregister-application", Dict{String,Any}("ApplicationId" => ApplicationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_application( ApplicationId, params::AbstractDict{String}; @@ -96,11 +91,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ApplicationArn"`: The Amazon Resource Name (ARN) of the application. - `"ApplicationId"`: The ID of the application. """ -function get_application(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( - "POST", "/get-application"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_application(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_sap( + "POST", "/get-application"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_application( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -124,17 +117,15 @@ Gets the component of an application registered with AWS Systems Manager for SAP - `component_id`: The ID of the component. """ -function get_component( +get_component( ApplicationId, ComponentId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_sap( + "POST", + "/get-component", + Dict{String,Any}("ApplicationId" => ApplicationId, "ComponentId" => ComponentId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_sap( - "POST", - "/get-component", - Dict{String,Any}("ApplicationId" => ApplicationId, "ComponentId" => ComponentId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_component( ApplicationId, ComponentId, @@ -171,11 +162,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DatabaseArn"`: The Amazon Resource Name (ARN) of the database. - `"DatabaseId"`: The ID of the database. """ -function get_database(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( - "POST", "/get-database"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_database(; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap("POST", "/get-database"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_database( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -198,15 +186,13 @@ Gets the details of an operation by specifying the operation ID. - `operation_id`: The ID of the operation. """ -function get_operation(OperationId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( - "POST", - "/get-operation", - Dict{String,Any}("OperationId" => OperationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_operation(OperationId; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_sap( + "POST", + "/get-operation", + Dict{String,Any}("OperationId" => OperationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_operation( OperationId, params::AbstractDict{String}; @@ -236,17 +222,14 @@ Gets permissions associated with the target database. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ActionType"`: """ -function get_resource_permission( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_sap( +get_resource_permission(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "POST", "/get-resource-permission", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_permission( ResourceArn, params::AbstractDict{String}; @@ -276,11 +259,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the remaining results, make another call with the returned nextToken value. - `"NextToken"`: The token for the next page of results. """ -function list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( - "POST", "/list-applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_sap( + "POST", "/list-applications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -307,11 +288,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify a value for MaxResults, the request returns 50 items per page by default. - `"NextToken"`: The token for the next page of results. """ -function list_components(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( - "POST", "/list-components"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_components(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_sap( + "POST", "/list-components"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_components( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -339,11 +318,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify a value for MaxResults, the request returns 50 items per page by default. - `"NextToken"`: The token for the next page of results. """ -function list_databases(; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( - "POST", "/list-databases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_databases(; aws_config::AbstractAWSConfig=current_aws_config()) = ssm_sap( + "POST", "/list-databases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_databases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -377,17 +354,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. This value is null when there are no more results to return. """ -function list_operation_events( - OperationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_sap( +list_operation_events(OperationId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "POST", "/list-operation-events", Dict{String,Any}("OperationId" => OperationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_operation_events( OperationId, params::AbstractDict{String}; @@ -421,15 +395,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify a value for MaxResults, the request returns 50 items per page by default. - `"NextToken"`: The token for the next page of results. """ -function list_operations(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( +list_operations(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "POST", "/list-operations", Dict{String,Any}("ApplicationId" => ApplicationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_operations( ApplicationId, params::AbstractDict{String}; @@ -457,16 +430,13 @@ Manager for SAP. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_sap( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -493,24 +463,22 @@ Adds permissions to the target database. - `source_resource_arn`: """ -function put_resource_permission( +put_resource_permission( ActionType, ResourceArn, SourceResourceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm_sap( + "POST", + "/put-resource-permission", + Dict{String,Any}( + "ActionType" => ActionType, + "ResourceArn" => ResourceArn, + "SourceResourceArn" => SourceResourceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_sap( - "POST", - "/put-resource-permission", - Dict{String,Any}( - "ActionType" => ActionType, - "ResourceArn" => ResourceArn, - "SourceResourceArn" => SourceResourceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_permission( ActionType, ResourceArn, @@ -561,24 +529,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Sid"`: The System ID of the application. - `"Tags"`: The tags to be attached to the SAP application. """ -function register_application( +register_application( ApplicationId, ApplicationType, Instances; aws_config::AbstractAWSConfig=current_aws_config(), +) = ssm_sap( + "POST", + "/register-application", + Dict{String,Any}( + "ApplicationId" => ApplicationId, + "ApplicationType" => ApplicationType, + "Instances" => Instances, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_sap( - "POST", - "/register-application", - Dict{String,Any}( - "ApplicationId" => ApplicationId, - "ApplicationType" => ApplicationType, - "Instances" => Instances, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_application( ApplicationId, ApplicationType, @@ -615,17 +581,14 @@ Request is an operation which starts an application. Parameter ApplicationId is - `application_id`: The ID of the application. """ -function start_application( - ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_sap( +start_application(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "POST", "/start-application", Dict{String,Any}("ApplicationId" => ApplicationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_application( ApplicationId, params::AbstractDict{String}; @@ -652,17 +615,15 @@ Refreshes a registered application. - `application_id`: The ID of the application. """ -function start_application_refresh( +start_application_refresh( ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_sap( + "POST", + "/start-application-refresh", + Dict{String,Any}("ApplicationId" => ApplicationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_sap( - "POST", - "/start-application-refresh", - Dict{String,Any}("ApplicationId" => ApplicationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_application_refresh( ApplicationId, params::AbstractDict{String}; @@ -697,15 +658,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StopConnectedEntity"`: Specify the ConnectedEntityType. Accepted type is DBMS. If this parameter is included, the connected DBMS (Database Management System) will be stopped. """ -function stop_application(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( +stop_application(ApplicationId; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "POST", "/stop-application", Dict{String,Any}("ApplicationId" => ApplicationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_application( ApplicationId, params::AbstractDict{String}; @@ -733,15 +693,14 @@ Creates tag for a resource by specifying the ARN. - `tags`: The tags on a resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return ssm_sap( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -769,17 +728,14 @@ Delete the tags for a resource. Systems Manager for SAP. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return ssm_sap( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + ssm_sap( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -812,17 +768,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DatabaseArn"`: The Amazon Resource Name of the SAP HANA database that replaces the current SAP HANA connection with the SAP_ABAP application. """ -function update_application_settings( +update_application_settings( ApplicationId; aws_config::AbstractAWSConfig=current_aws_config() +) = ssm_sap( + "POST", + "/update-application-settings", + Dict{String,Any}("ApplicationId" => ApplicationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return ssm_sap( - "POST", - "/update-application-settings", - Dict{String,Any}("ApplicationId" => ApplicationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_application_settings( ApplicationId, params::AbstractDict{String}; diff --git a/src/services/sso.jl b/src/services/sso.jl index 6de5de39c..572b8994b 100644 --- a/src/services/sso.jl +++ b/src/services/sso.jl @@ -17,25 +17,23 @@ Returns the STS short-term credentials for a given role name that is assigned to information, see CreateToken in the IAM Identity Center OIDC API Reference Guide. """ -function get_role_credentials( +get_role_credentials( account_id, role_name, x_amz_sso_bearer_token; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso( + "GET", + "/federation/credentials", + Dict{String,Any}( + "account_id" => account_id, + "role_name" => role_name, + "headers" => + Dict{String,Any}("x-amz-sso_bearer_token" => x_amz_sso_bearer_token), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso( - "GET", - "/federation/credentials", - Dict{String,Any}( - "account_id" => account_id, - "role_name" => role_name, - "headers" => - Dict{String,Any}("x-amz-sso_bearer_token" => x_amz_sso_bearer_token), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_role_credentials( account_id, role_name, @@ -81,21 +79,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next_token"`: The page token from the previous response output when you request subsequent pages. """ -function list_account_roles( +list_account_roles( account_id, x_amz_sso_bearer_token; aws_config::AbstractAWSConfig=current_aws_config() +) = sso( + "GET", + "/assignment/roles", + Dict{String,Any}( + "account_id" => account_id, + "headers" => + Dict{String,Any}("x-amz-sso_bearer_token" => x_amz_sso_bearer_token), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso( - "GET", - "/assignment/roles", - Dict{String,Any}( - "account_id" => account_id, - "headers" => - Dict{String,Any}("x-amz-sso_bearer_token" => x_amz_sso_bearer_token), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_account_roles( account_id, x_amz_sso_bearer_token, @@ -140,10 +136,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"next_token"`: (Optional) When requesting subsequent pages, this is the page token from the previous response output. """ -function list_accounts( - x_amz_sso_bearer_token; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso( +list_accounts(x_amz_sso_bearer_token; aws_config::AbstractAWSConfig=current_aws_config()) = + sso( "GET", "/assignment/accounts", Dict{String,Any}( @@ -153,7 +147,6 @@ function list_accounts( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_accounts( x_amz_sso_bearer_token, params::AbstractDict{String}; @@ -198,18 +191,16 @@ User authentications in the IAM Identity Center User Guide. information, see CreateToken in the IAM Identity Center OIDC API Reference Guide. """ -function logout(x_amz_sso_bearer_token; aws_config::AbstractAWSConfig=current_aws_config()) - return sso( - "POST", - "/logout", - Dict{String,Any}( - "headers" => - Dict{String,Any}("x-amz-sso_bearer_token" => x_amz_sso_bearer_token), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +logout(x_amz_sso_bearer_token; aws_config::AbstractAWSConfig=current_aws_config()) = sso( + "POST", + "/logout", + Dict{String,Any}( + "headers" => + Dict{String,Any}("x-amz-sso_bearer_token" => x_amz_sso_bearer_token), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function logout( x_amz_sso_bearer_token, params::AbstractDict{String}; diff --git a/src/services/sso_admin.jl b/src/services/sso_admin.jl index 8f0021451..7b0d461c3 100644 --- a/src/services/sso_admin.jl +++ b/src/services/sso_admin.jl @@ -19,23 +19,21 @@ Attaches the specified customer managed policy to the specified PermissionSet. - `permission_set_arn`: The ARN of the PermissionSet. """ -function attach_customer_managed_policy_reference_to_permission_set( +attach_customer_managed_policy_reference_to_permission_set( CustomerManagedPolicyReference, InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "AttachCustomerManagedPolicyReferenceToPermissionSet", + Dict{String,Any}( + "CustomerManagedPolicyReference" => CustomerManagedPolicyReference, + "InstanceArn" => InstanceArn, + "PermissionSetArn" => PermissionSetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "AttachCustomerManagedPolicyReferenceToPermissionSet", - Dict{String,Any}( - "CustomerManagedPolicyReference" => CustomerManagedPolicyReference, - "InstanceArn" => InstanceArn, - "PermissionSetArn" => PermissionSetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_customer_managed_policy_reference_to_permission_set( CustomerManagedPolicyReference, InstanceArn, @@ -80,23 +78,21 @@ corresponding IAM policy updates to all assigned accounts. attached to. """ -function attach_managed_policy_to_permission_set( +attach_managed_policy_to_permission_set( InstanceArn, ManagedPolicyArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "AttachManagedPolicyToPermissionSet", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "ManagedPolicyArn" => ManagedPolicyArn, + "PermissionSetArn" => PermissionSetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "AttachManagedPolicyToPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "ManagedPolicyArn" => ManagedPolicyArn, - "PermissionSetArn" => PermissionSetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_managed_policy_to_permission_set( InstanceArn, ManagedPolicyArn, @@ -153,7 +149,7 @@ request. - `target_type`: The entity type for which the assignment will be created. """ -function create_account_assignment( +create_account_assignment( InstanceArn, PermissionSetArn, PrincipalId, @@ -161,21 +157,19 @@ function create_account_assignment( TargetId, TargetType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "CreateAccountAssignment", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "PermissionSetArn" => PermissionSetArn, + "PrincipalId" => PrincipalId, + "PrincipalType" => PrincipalType, + "TargetId" => TargetId, + "TargetType" => TargetType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "CreateAccountAssignment", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "PermissionSetArn" => PermissionSetArn, - "PrincipalId" => PrincipalId, - "PrincipalType" => PrincipalType, - "TargetId" => TargetId, - "TargetType" => TargetType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_account_assignment( InstanceArn, PermissionSetArn, @@ -237,24 +231,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: Specifies whether the application is enabled or disabled. - `"Tags"`: Specifies tags to be attached to the application. """ -function create_application( +create_application( ApplicationProviderArn, InstanceArn, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "CreateApplication", + Dict{String,Any}( + "ApplicationProviderArn" => ApplicationProviderArn, + "InstanceArn" => InstanceArn, + "Name" => Name, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "CreateApplication", - Dict{String,Any}( - "ApplicationProviderArn" => ApplicationProviderArn, - "InstanceArn" => InstanceArn, - "Name" => Name, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application( ApplicationProviderArn, InstanceArn, @@ -296,23 +288,21 @@ Grant application access to a user or group. - `principal_type`: The entity type for which the assignment will be created. """ -function create_application_assignment( +create_application_assignment( ApplicationArn, PrincipalId, PrincipalType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "CreateApplicationAssignment", + Dict{String,Any}( + "ApplicationArn" => ApplicationArn, + "PrincipalId" => PrincipalId, + "PrincipalType" => PrincipalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "CreateApplicationAssignment", - Dict{String,Any}( - "ApplicationArn" => ApplicationArn, - "PrincipalId" => PrincipalId, - "PrincipalType" => PrincipalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_application_assignment( ApplicationArn, PrincipalId, @@ -362,14 +352,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name of the instance of IAM Identity Center. - `"Tags"`: Specifies tags to be attached to the instance of IAM Identity Center. """ -function create_instance(; aws_config::AbstractAWSConfig=current_aws_config()) - return sso_admin( - "CreateInstance", - Dict{String,Any}("ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_instance(; aws_config::AbstractAWSConfig=current_aws_config()) = sso_admin( + "CreateInstance", + Dict{String,Any}("ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_instance( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -406,22 +394,20 @@ InstanceAccessControlAttributeConfiguration was created. will be executed. """ -function create_instance_access_control_attribute_configuration( +create_instance_access_control_attribute_configuration( InstanceAccessControlAttributeConfiguration, InstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "CreateInstanceAccessControlAttributeConfiguration", + Dict{String,Any}( + "InstanceAccessControlAttributeConfiguration" => + InstanceAccessControlAttributeConfiguration, + "InstanceArn" => InstanceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "CreateInstanceAccessControlAttributeConfiguration", - Dict{String,Any}( - "InstanceAccessControlAttributeConfiguration" => - InstanceAccessControlAttributeConfiguration, - "InstanceArn" => InstanceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_instance_access_control_attribute_configuration( InstanceAccessControlAttributeConfiguration, InstanceArn, @@ -468,16 +454,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the ISO-8601 standard. - `"Tags"`: The tags to attach to the new PermissionSet. """ -function create_permission_set( +create_permission_set( InstanceArn, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "CreatePermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "CreatePermissionSet", - Dict{String,Any}("InstanceArn" => InstanceArn, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_permission_set( InstanceArn, Name, @@ -530,26 +514,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IdempotentParameterMismatch error. - `"Tags"`: Specifies tags to be attached to the new trusted token issuer configuration. """ -function create_trusted_token_issuer( +create_trusted_token_issuer( InstanceArn, Name, TrustedTokenIssuerConfiguration, TrustedTokenIssuerType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "CreateTrustedTokenIssuer", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "Name" => Name, + "TrustedTokenIssuerConfiguration" => TrustedTokenIssuerConfiguration, + "TrustedTokenIssuerType" => TrustedTokenIssuerType, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "CreateTrustedTokenIssuer", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "Name" => Name, - "TrustedTokenIssuerConfiguration" => TrustedTokenIssuerConfiguration, - "TrustedTokenIssuerType" => TrustedTokenIssuerType, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_trusted_token_issuer( InstanceArn, Name, @@ -601,7 +583,7 @@ to describe the status of an assignment deletion request. - `target_type`: The entity type for which the assignment will be deleted. """ -function delete_account_assignment( +delete_account_assignment( InstanceArn, PermissionSetArn, PrincipalId, @@ -609,21 +591,19 @@ function delete_account_assignment( TargetId, TargetType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DeleteAccountAssignment", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "PermissionSetArn" => PermissionSetArn, + "PrincipalId" => PrincipalId, + "PrincipalType" => PrincipalType, + "TargetId" => TargetId, + "TargetType" => TargetType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeleteAccountAssignment", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "PermissionSetArn" => PermissionSetArn, - "PrincipalId" => PrincipalId, - "PrincipalType" => PrincipalType, - "TargetId" => TargetId, - "TargetType" => TargetType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_account_assignment( InstanceArn, PermissionSetArn, @@ -667,16 +647,13 @@ Deletes the association with the application. The connected service resource sti Web Services General Reference. """ -function delete_application( - ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso_admin( +delete_application(ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "DeleteApplication", Dict{String,Any}("ApplicationArn" => ApplicationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_application( ApplicationArn, params::AbstractDict{String}; @@ -703,16 +680,14 @@ Deletes an IAM Identity Center access scope from an application. - `scope`: Specifies the name of the access scope to remove from the application. """ -function delete_application_access_scope( +delete_application_access_scope( ApplicationArn, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DeleteApplicationAccessScope", + Dict{String,Any}("ApplicationArn" => ApplicationArn, "Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeleteApplicationAccessScope", - Dict{String,Any}("ApplicationArn" => ApplicationArn, "Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_access_scope( ApplicationArn, Scope, @@ -749,23 +724,21 @@ or group. - `principal_type`: The entity type for which the assignment will be deleted. """ -function delete_application_assignment( +delete_application_assignment( ApplicationArn, PrincipalId, PrincipalType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DeleteApplicationAssignment", + Dict{String,Any}( + "ApplicationArn" => ApplicationArn, + "PrincipalId" => PrincipalId, + "PrincipalType" => PrincipalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeleteApplicationAssignment", - Dict{String,Any}( - "ApplicationArn" => ApplicationArn, - "PrincipalId" => PrincipalId, - "PrincipalType" => PrincipalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_assignment( ApplicationArn, PrincipalId, @@ -804,21 +777,19 @@ Deletes an authentication method from an application. application. """ -function delete_application_authentication_method( +delete_application_authentication_method( ApplicationArn, AuthenticationMethodType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DeleteApplicationAuthenticationMethod", + Dict{String,Any}( + "ApplicationArn" => ApplicationArn, + "AuthenticationMethodType" => AuthenticationMethodType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeleteApplicationAuthenticationMethod", - Dict{String,Any}( - "ApplicationArn" => ApplicationArn, - "AuthenticationMethodType" => AuthenticationMethodType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_authentication_method( ApplicationArn, AuthenticationMethodType, @@ -853,16 +824,14 @@ Deletes a grant from an application. - `grant_type`: Specifies the type of grant to delete from the application. """ -function delete_application_grant( +delete_application_grant( ApplicationArn, GrantType; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DeleteApplicationGrant", + Dict{String,Any}("ApplicationArn" => ApplicationArn, "GrantType" => GrantType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeleteApplicationGrant", - Dict{String,Any}("ApplicationArn" => ApplicationArn, "GrantType" => GrantType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_application_grant( ApplicationArn, GrantType, @@ -898,18 +867,14 @@ Deletes the inline policy from a specified permission set. - `permission_set_arn`: The ARN of the permission set that will be used to remove access. """ -function delete_inline_policy_from_permission_set( +delete_inline_policy_from_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DeleteInlinePolicyFromPermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeleteInlinePolicyFromPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_inline_policy_from_permission_set( InstanceArn, PermissionSetArn, @@ -945,14 +910,13 @@ organization instance, but those roles can delete their own instance. will run. """ -function delete_instance(InstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sso_admin( +delete_instance(InstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "DeleteInstance", Dict{String,Any}("InstanceArn" => InstanceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_instance( InstanceArn, params::AbstractDict{String}; @@ -983,16 +947,14 @@ Attribute-Based Access Control in the IAM Identity Center User Guide. will be executed. """ -function delete_instance_access_control_attribute_configuration( +delete_instance_access_control_attribute_configuration( InstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DeleteInstanceAccessControlAttributeConfiguration", + Dict{String,Any}("InstanceArn" => InstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeleteInstanceAccessControlAttributeConfiguration", - Dict{String,Any}("InstanceArn" => InstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_instance_access_control_attribute_configuration( InstanceArn, params::AbstractDict{String}; @@ -1021,18 +983,14 @@ Deletes the specified permission set. - `permission_set_arn`: The ARN of the permission set that should be deleted. """ -function delete_permission_set( +delete_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DeletePermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeletePermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_permission_set( InstanceArn, PermissionSetArn, @@ -1067,18 +1025,14 @@ Deletes the permissions boundary from a specified PermissionSet. - `permission_set_arn`: The ARN of the PermissionSet. """ -function delete_permissions_boundary_from_permission_set( +delete_permissions_boundary_from_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DeletePermissionsBoundaryFromPermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeletePermissionsBoundaryFromPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_permissions_boundary_from_permission_set( InstanceArn, PermissionSetArn, @@ -1114,16 +1068,14 @@ applications that are configured to use the trusted token issuer. to delete. """ -function delete_trusted_token_issuer( +delete_trusted_token_issuer( TrustedTokenIssuerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DeleteTrustedTokenIssuer", + Dict{String,Any}("TrustedTokenIssuerArn" => TrustedTokenIssuerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DeleteTrustedTokenIssuer", - Dict{String,Any}("TrustedTokenIssuerArn" => TrustedTokenIssuerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_trusted_token_issuer( TrustedTokenIssuerArn, params::AbstractDict{String}; @@ -1157,21 +1109,19 @@ Describes the status of the assignment creation request. Amazon Web Services Service Namespaces in the Amazon Web Services General Reference. """ -function describe_account_assignment_creation_status( +describe_account_assignment_creation_status( AccountAssignmentCreationRequestId, InstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DescribeAccountAssignmentCreationStatus", + Dict{String,Any}( + "AccountAssignmentCreationRequestId" => AccountAssignmentCreationRequestId, + "InstanceArn" => InstanceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DescribeAccountAssignmentCreationStatus", - Dict{String,Any}( - "AccountAssignmentCreationRequestId" => AccountAssignmentCreationRequestId, - "InstanceArn" => InstanceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_account_assignment_creation_status( AccountAssignmentCreationRequestId, InstanceArn, @@ -1210,21 +1160,19 @@ Describes the status of the assignment deletion request. Amazon Web Services Service Namespaces in the Amazon Web Services General Reference. """ -function describe_account_assignment_deletion_status( +describe_account_assignment_deletion_status( AccountAssignmentDeletionRequestId, InstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DescribeAccountAssignmentDeletionStatus", + Dict{String,Any}( + "AccountAssignmentDeletionRequestId" => AccountAssignmentDeletionRequestId, + "InstanceArn" => InstanceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DescribeAccountAssignmentDeletionStatus", - Dict{String,Any}( - "AccountAssignmentDeletionRequestId" => AccountAssignmentDeletionRequestId, - "InstanceArn" => InstanceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_account_assignment_deletion_status( AccountAssignmentDeletionRequestId, InstanceArn, @@ -1261,16 +1209,13 @@ Retrieves the details of an application associated with an instance of IAM Ident Web Services General Reference. """ -function describe_application( - ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso_admin( +describe_application(ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "DescribeApplication", Dict{String,Any}("ApplicationArn" => ApplicationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_application( ApplicationArn, params::AbstractDict{String}; @@ -1306,23 +1251,21 @@ application for a user. Instead use ListApplicationAssignmentsForPrincipal. - `principal_type`: The entity type for which the assignment will be created. """ -function describe_application_assignment( +describe_application_assignment( ApplicationArn, PrincipalId, PrincipalType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DescribeApplicationAssignment", + Dict{String,Any}( + "ApplicationArn" => ApplicationArn, + "PrincipalId" => PrincipalId, + "PrincipalType" => PrincipalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DescribeApplicationAssignment", - Dict{String,Any}( - "ApplicationArn" => ApplicationArn, - "PrincipalId" => PrincipalId, - "PrincipalType" => PrincipalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application_assignment( ApplicationArn, PrincipalId, @@ -1360,16 +1303,14 @@ managed application or customer managed application to IAM Identity Center. want details. """ -function describe_application_provider( +describe_application_provider( ApplicationProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DescribeApplicationProvider", + Dict{String,Any}("ApplicationProviderArn" => ApplicationProviderArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DescribeApplicationProvider", - Dict{String,Any}("ApplicationProviderArn" => ApplicationProviderArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application_provider( ApplicationProviderArn, params::AbstractDict{String}; @@ -1406,14 +1347,13 @@ active. will run. """ -function describe_instance(InstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sso_admin( +describe_instance(InstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "DescribeInstance", Dict{String,Any}("InstanceArn" => InstanceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_instance( InstanceArn, params::AbstractDict{String}; @@ -1444,16 +1384,14 @@ Identity Center User Guide. will be executed. """ -function describe_instance_access_control_attribute_configuration( +describe_instance_access_control_attribute_configuration( InstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DescribeInstanceAccessControlAttributeConfiguration", + Dict{String,Any}("InstanceArn" => InstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DescribeInstanceAccessControlAttributeConfiguration", - Dict{String,Any}("InstanceArn" => InstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_instance_access_control_attribute_configuration( InstanceArn, params::AbstractDict{String}; @@ -1482,18 +1420,14 @@ Gets the details of the permission set. - `permission_set_arn`: The ARN of the permission set. """ -function describe_permission_set( +describe_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DescribePermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DescribePermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_permission_set( InstanceArn, PermissionSetArn, @@ -1530,21 +1464,19 @@ Describes the status for the given permission set provisioning request. ProvisionPermissionSet call to retrieve the current status of the provisioning workflow. """ -function describe_permission_set_provisioning_status( +describe_permission_set_provisioning_status( InstanceArn, ProvisionPermissionSetRequestId; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DescribePermissionSetProvisioningStatus", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "ProvisionPermissionSetRequestId" => ProvisionPermissionSetRequestId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DescribePermissionSetProvisioningStatus", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "ProvisionPermissionSetRequestId" => ProvisionPermissionSetRequestId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_permission_set_provisioning_status( InstanceArn, ProvisionPermissionSetRequestId, @@ -1582,16 +1514,14 @@ configuration. that you want details about. """ -function describe_trusted_token_issuer( +describe_trusted_token_issuer( TrustedTokenIssuerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "DescribeTrustedTokenIssuer", + Dict{String,Any}("TrustedTokenIssuerArn" => TrustedTokenIssuerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DescribeTrustedTokenIssuer", - Dict{String,Any}("TrustedTokenIssuerArn" => TrustedTokenIssuerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trusted_token_issuer( TrustedTokenIssuerArn, params::AbstractDict{String}; @@ -1626,23 +1556,21 @@ Detaches the specified customer managed policy from the specified PermissionSet. - `permission_set_arn`: The ARN of the PermissionSet. """ -function detach_customer_managed_policy_reference_from_permission_set( +detach_customer_managed_policy_reference_from_permission_set( CustomerManagedPolicyReference, InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DetachCustomerManagedPolicyReferenceFromPermissionSet", + Dict{String,Any}( + "CustomerManagedPolicyReference" => CustomerManagedPolicyReference, + "InstanceArn" => InstanceArn, + "PermissionSetArn" => PermissionSetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DetachCustomerManagedPolicyReferenceFromPermissionSet", - Dict{String,Any}( - "CustomerManagedPolicyReference" => CustomerManagedPolicyReference, - "InstanceArn" => InstanceArn, - "PermissionSetArn" => PermissionSetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_customer_managed_policy_reference_from_permission_set( CustomerManagedPolicyReference, InstanceArn, @@ -1685,23 +1613,21 @@ set. detached. """ -function detach_managed_policy_from_permission_set( +detach_managed_policy_from_permission_set( InstanceArn, ManagedPolicyArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "DetachManagedPolicyFromPermissionSet", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "ManagedPolicyArn" => ManagedPolicyArn, + "PermissionSetArn" => PermissionSetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "DetachManagedPolicyFromPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "ManagedPolicyArn" => ManagedPolicyArn, - "PermissionSetArn" => PermissionSetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function detach_managed_policy_from_permission_set( InstanceArn, ManagedPolicyArn, @@ -1739,16 +1665,14 @@ Retrieves the authorized targets for an IAM Identity Center access scope for an - `scope`: Specifies the name of the access scope for which you want the authorized targets. """ -function get_application_access_scope( +get_application_access_scope( ApplicationArn, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "GetApplicationAccessScope", + Dict{String,Any}("ApplicationArn" => ApplicationArn, "Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "GetApplicationAccessScope", - Dict{String,Any}("ApplicationArn" => ApplicationArn, "Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_access_scope( ApplicationArn, Scope, @@ -1781,16 +1705,14 @@ Retrieves the configuration of PutApplicationAssignmentConfiguration. Web Services General Reference. """ -function get_application_assignment_configuration( +get_application_assignment_configuration( ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "GetApplicationAssignmentConfiguration", + Dict{String,Any}("ApplicationArn" => ApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "GetApplicationAssignmentConfiguration", - Dict{String,Any}("ApplicationArn" => ApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_assignment_configuration( ApplicationArn, params::AbstractDict{String}; @@ -1818,21 +1740,19 @@ Retrieves details about an authentication method used by an application. want details. """ -function get_application_authentication_method( +get_application_authentication_method( ApplicationArn, AuthenticationMethodType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "GetApplicationAuthenticationMethod", + Dict{String,Any}( + "ApplicationArn" => ApplicationArn, + "AuthenticationMethodType" => AuthenticationMethodType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "GetApplicationAuthenticationMethod", - Dict{String,Any}( - "ApplicationArn" => ApplicationArn, - "AuthenticationMethodType" => AuthenticationMethodType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_authentication_method( ApplicationArn, AuthenticationMethodType, @@ -1867,16 +1787,14 @@ Retrieves details about an application grant. - `grant_type`: Specifies the type of grant. """ -function get_application_grant( +get_application_grant( ApplicationArn, GrantType; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "GetApplicationGrant", + Dict{String,Any}("ApplicationArn" => ApplicationArn, "GrantType" => GrantType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "GetApplicationGrant", - Dict{String,Any}("ApplicationArn" => ApplicationArn, "GrantType" => GrantType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_application_grant( ApplicationArn, GrantType, @@ -1910,20 +1828,16 @@ Obtains the inline policy assigned to the permission set. will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference. - `permission_set_arn`: The ARN of the permission set. - -""" -function get_inline_policy_for_permission_set( - InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso_admin( - "GetInlinePolicyForPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end + +""" +get_inline_policy_for_permission_set( + InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "GetInlinePolicyForPermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_inline_policy_for_permission_set( InstanceArn, PermissionSetArn, @@ -1958,18 +1872,14 @@ Obtains the permissions boundary for a specified PermissionSet. - `permission_set_arn`: The ARN of the PermissionSet. """ -function get_permissions_boundary_for_permission_set( +get_permissions_boundary_for_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "GetPermissionsBoundaryForPermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "GetPermissionsBoundaryForPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_permissions_boundary_for_permission_set( InstanceArn, PermissionSetArn, @@ -2011,16 +1921,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_account_assignment_creation_status( +list_account_assignment_creation_status( InstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListAccountAssignmentCreationStatus", + Dict{String,Any}("InstanceArn" => InstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListAccountAssignmentCreationStatus", - Dict{String,Any}("InstanceArn" => InstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_account_assignment_creation_status( InstanceArn, params::AbstractDict{String}; @@ -2055,16 +1963,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_account_assignment_deletion_status( +list_account_assignment_deletion_status( InstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListAccountAssignmentDeletionStatus", + Dict{String,Any}("InstanceArn" => InstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListAccountAssignmentDeletionStatus", - Dict{String,Any}("InstanceArn" => InstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_account_assignment_deletion_status( InstanceArn, params::AbstractDict{String}; @@ -2101,23 +2007,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_account_assignments( +list_account_assignments( AccountId, InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "ListAccountAssignments", + Dict{String,Any}( + "AccountId" => AccountId, + "InstanceArn" => InstanceArn, + "PermissionSetArn" => PermissionSetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListAccountAssignments", - Dict{String,Any}( - "AccountId" => AccountId, - "InstanceArn" => InstanceArn, - "PermissionSetArn" => PermissionSetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_account_assignments( AccountId, InstanceArn, @@ -2173,23 +2077,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_account_assignments_for_principal( +list_account_assignments_for_principal( InstanceArn, PrincipalId, PrincipalType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "ListAccountAssignmentsForPrincipal", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "PrincipalId" => PrincipalId, + "PrincipalType" => PrincipalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListAccountAssignmentsForPrincipal", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "PrincipalId" => PrincipalId, - "PrincipalType" => PrincipalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_account_assignments_for_principal( InstanceArn, PrincipalId, @@ -2237,18 +2139,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProvisioningStatus"`: The permission set provisioning status for an Amazon Web Services account. """ -function list_accounts_for_provisioned_permission_set( +list_accounts_for_provisioned_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListAccountsForProvisionedPermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListAccountsForProvisionedPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_accounts_for_provisioned_permission_set( InstanceArn, PermissionSetArn, @@ -2294,16 +2192,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_application_access_scopes( +list_application_access_scopes( ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListApplicationAccessScopes", + Dict{String,Any}("ApplicationArn" => ApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListApplicationAccessScopes", - Dict{String,Any}("ApplicationArn" => ApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_access_scopes( ApplicationArn, params::AbstractDict{String}; @@ -2342,16 +2238,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_application_assignments( +list_application_assignments( ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListApplicationAssignments", + Dict{String,Any}("ApplicationArn" => ApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListApplicationAssignments", - Dict{String,Any}("ApplicationArn" => ApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_assignments( ApplicationArn, params::AbstractDict{String}; @@ -2397,23 +2291,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_application_assignments_for_principal( +list_application_assignments_for_principal( InstanceArn, PrincipalId, PrincipalType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "ListApplicationAssignmentsForPrincipal", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "PrincipalId" => PrincipalId, + "PrincipalType" => PrincipalType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListApplicationAssignmentsForPrincipal", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "PrincipalId" => PrincipalId, - "PrincipalType" => PrincipalType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_assignments_for_principal( InstanceArn, PrincipalId, @@ -2456,16 +2348,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_application_authentication_methods( +list_application_authentication_methods( ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListApplicationAuthenticationMethods", + Dict{String,Any}("ApplicationArn" => ApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListApplicationAuthenticationMethods", - Dict{String,Any}("ApplicationArn" => ApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_authentication_methods( ApplicationArn, params::AbstractDict{String}; @@ -2497,16 +2387,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_application_grants( +list_application_grants( ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListApplicationGrants", + Dict{String,Any}("ApplicationArn" => ApplicationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListApplicationGrants", - Dict{String,Any}("ApplicationArn" => ApplicationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_application_grants( ApplicationArn, params::AbstractDict{String}; @@ -2542,11 +2430,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_application_providers(; aws_config::AbstractAWSConfig=current_aws_config()) - return sso_admin( +list_application_providers(; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "ListApplicationProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_application_providers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2587,14 +2474,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_applications(InstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return sso_admin( +list_applications(InstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "ListApplications", Dict{String,Any}("InstanceArn" => InstanceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_applications( InstanceArn, params::AbstractDict{String}; @@ -2627,18 +2513,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_customer_managed_policy_references_in_permission_set( +list_customer_managed_policy_references_in_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListCustomerManagedPolicyReferencesInPermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListCustomerManagedPolicyReferencesInPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_customer_managed_policy_references_in_permission_set( InstanceArn, PermissionSetArn, @@ -2674,11 +2556,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return sso_admin( - "ListInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin("ListInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2705,18 +2584,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_managed_policies_in_permission_set( +list_managed_policies_in_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListManagedPoliciesInPermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListManagedPoliciesInPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_managed_policies_in_permission_set( InstanceArn, PermissionSetArn, @@ -2758,16 +2633,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_permission_set_provisioning_status( +list_permission_set_provisioning_status( InstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListPermissionSetProvisioningStatus", + Dict{String,Any}("InstanceArn" => InstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListPermissionSetProvisioningStatus", - Dict{String,Any}("InstanceArn" => InstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_permission_set_provisioning_status( InstanceArn, params::AbstractDict{String}; @@ -2800,16 +2673,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_permission_sets( - InstanceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso_admin( +list_permission_sets(InstanceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "ListPermissionSets", Dict{String,Any}("InstanceArn" => InstanceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_permission_sets( InstanceArn, params::AbstractDict{String}; @@ -2846,16 +2716,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the output of previous API calls to make subsequent calls. - `"ProvisioningStatus"`: The status object for the permission set provisioning operation. """ -function list_permission_sets_provisioned_to_account( +list_permission_sets_provisioned_to_account( AccountId, InstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListPermissionSetsProvisionedToAccount", + Dict{String,Any}("AccountId" => AccountId, "InstanceArn" => InstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListPermissionSetsProvisionedToAccount", - Dict{String,Any}("AccountId" => AccountId, "InstanceArn" => InstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_permission_sets_provisioned_to_account( AccountId, InstanceArn, @@ -2893,16 +2761,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso_admin( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -2942,16 +2807,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_trusted_token_issuers( +list_trusted_token_issuers( InstanceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "ListTrustedTokenIssuers", + Dict{String,Any}("InstanceArn" => InstanceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ListTrustedTokenIssuers", - Dict{String,Any}("InstanceArn" => InstanceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_trusted_token_issuers( InstanceArn, params::AbstractDict{String}; @@ -2985,23 +2848,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TargetId"`: TargetID is an Amazon Web Services account identifier, (For example, 123456789012). """ -function provision_permission_set( +provision_permission_set( InstanceArn, PermissionSetArn, TargetType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "ProvisionPermissionSet", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "PermissionSetArn" => PermissionSetArn, + "TargetType" => TargetType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "ProvisionPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "PermissionSetArn" => PermissionSetArn, - "TargetType" => TargetType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function provision_permission_set( InstanceArn, PermissionSetArn, @@ -3045,16 +2906,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AuthorizedTargets"`: Specifies an array list of ARNs that represent the authorized targets for this access scope. """ -function put_application_access_scope( +put_application_access_scope( ApplicationArn, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "PutApplicationAccessScope", + Dict{String,Any}("ApplicationArn" => ApplicationArn, "Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "PutApplicationAccessScope", - Dict{String,Any}("ApplicationArn" => ApplicationArn, "Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_application_access_scope( ApplicationArn, Scope, @@ -3094,18 +2953,16 @@ AssignmentsRequired is set to true. CreateApplicationAssignment API. If false, all users have access to the application. """ -function put_application_assignment_configuration( +put_application_assignment_configuration( ApplicationArn, AssignmentRequired; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "PutApplicationAssignmentConfiguration", + Dict{String,Any}( + "ApplicationArn" => ApplicationArn, "AssignmentRequired" => AssignmentRequired + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "PutApplicationAssignmentConfiguration", - Dict{String,Any}( - "ApplicationArn" => ApplicationArn, "AssignmentRequired" => AssignmentRequired - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_application_assignment_configuration( ApplicationArn, AssignmentRequired, @@ -3145,23 +3002,21 @@ Adds or updates an authentication method for an application. want to add or update. """ -function put_application_authentication_method( +put_application_authentication_method( ApplicationArn, AuthenticationMethod, AuthenticationMethodType; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "PutApplicationAuthenticationMethod", + Dict{String,Any}( + "ApplicationArn" => ApplicationArn, + "AuthenticationMethod" => AuthenticationMethod, + "AuthenticationMethodType" => AuthenticationMethodType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "PutApplicationAuthenticationMethod", - Dict{String,Any}( - "ApplicationArn" => ApplicationArn, - "AuthenticationMethod" => AuthenticationMethod, - "AuthenticationMethodType" => AuthenticationMethodType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_application_authentication_method( ApplicationArn, AuthenticationMethod, @@ -3199,18 +3054,16 @@ Adds a grant to an application. - `grant_type`: Specifies the type of grant to update. """ -function put_application_grant( +put_application_grant( ApplicationArn, Grant, GrantType; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "PutApplicationGrant", + Dict{String,Any}( + "ApplicationArn" => ApplicationArn, "Grant" => Grant, "GrantType" => GrantType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "PutApplicationGrant", - Dict{String,Any}( - "ApplicationArn" => ApplicationArn, "Grant" => Grant, "GrantType" => GrantType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_application_grant( ApplicationArn, Grant, @@ -3252,23 +3105,21 @@ this action to apply the corresponding IAM policy updates to all assigned accoun - `permission_set_arn`: The ARN of the permission set. """ -function put_inline_policy_to_permission_set( +put_inline_policy_to_permission_set( InlinePolicy, InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "PutInlinePolicyToPermissionSet", + Dict{String,Any}( + "InlinePolicy" => InlinePolicy, + "InstanceArn" => InstanceArn, + "PermissionSetArn" => PermissionSetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "PutInlinePolicyToPermissionSet", - Dict{String,Any}( - "InlinePolicy" => InlinePolicy, - "InstanceArn" => InstanceArn, - "PermissionSetArn" => PermissionSetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_inline_policy_to_permission_set( InlinePolicy, InstanceArn, @@ -3309,23 +3160,21 @@ PermissionSet as a permissions boundary. PermissionSet. """ -function put_permissions_boundary_to_permission_set( +put_permissions_boundary_to_permission_set( InstanceArn, PermissionSetArn, PermissionsBoundary; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "PutPermissionsBoundaryToPermissionSet", + Dict{String,Any}( + "InstanceArn" => InstanceArn, + "PermissionSetArn" => PermissionSetArn, + "PermissionsBoundary" => PermissionsBoundary, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "PutPermissionsBoundaryToPermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, - "PermissionSetArn" => PermissionSetArn, - "PermissionsBoundary" => PermissionsBoundary, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_permissions_boundary_to_permission_set( InstanceArn, PermissionSetArn, @@ -3367,14 +3216,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return sso_admin( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -3411,16 +3259,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso_admin( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -3460,16 +3305,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys an application. - `"Status"`: Specifies whether the application is enabled or disabled. """ -function update_application( - ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso_admin( +update_application(ApplicationArn; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "UpdateApplication", Dict{String,Any}("ApplicationArn" => ApplicationArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_application( ApplicationArn, params::AbstractDict{String}; @@ -3499,16 +3341,13 @@ Services account. - `name`: Updates the instance name. """ -function update_instance( - InstanceArn, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return sso_admin( +update_instance(InstanceArn, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + sso_admin( "UpdateInstance", Dict{String,Any}("InstanceArn" => InstanceArn, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_instance( InstanceArn, Name, @@ -3548,22 +3387,20 @@ about ABAC, see Attribute-Based Access Control in the IAM Identity Center User G will be executed. """ -function update_instance_access_control_attribute_configuration( +update_instance_access_control_attribute_configuration( InstanceAccessControlAttributeConfiguration, InstanceArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = sso_admin( + "UpdateInstanceAccessControlAttributeConfiguration", + Dict{String,Any}( + "InstanceAccessControlAttributeConfiguration" => + InstanceAccessControlAttributeConfiguration, + "InstanceArn" => InstanceArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "UpdateInstanceAccessControlAttributeConfiguration", - Dict{String,Any}( - "InstanceAccessControlAttributeConfiguration" => - InstanceAccessControlAttributeConfiguration, - "InstanceArn" => InstanceArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_instance_access_control_attribute_configuration( InstanceAccessControlAttributeConfiguration, InstanceArn, @@ -3608,18 +3445,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SessionDuration"`: The length of time that the application user sessions are valid for in the ISO-8601 standard. """ -function update_permission_set( +update_permission_set( InstanceArn, PermissionSetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "UpdatePermissionSet", + Dict{String,Any}("InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "UpdatePermissionSet", - Dict{String,Any}( - "InstanceArn" => InstanceArn, "PermissionSetArn" => PermissionSetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_permission_set( InstanceArn, PermissionSetArn, @@ -3663,16 +3496,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specified trusted token issuer. The settings that you can provide are determined by the type of the trusted token issuer that you are updating. """ -function update_trusted_token_issuer( +update_trusted_token_issuer( TrustedTokenIssuerArn; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_admin( + "UpdateTrustedTokenIssuer", + Dict{String,Any}("TrustedTokenIssuerArn" => TrustedTokenIssuerArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_admin( - "UpdateTrustedTokenIssuer", - Dict{String,Any}("TrustedTokenIssuerArn" => TrustedTokenIssuerArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_trusted_token_issuer( TrustedTokenIssuerArn, params::AbstractDict{String}; diff --git a/src/services/sso_oidc.jl b/src/services/sso_oidc.jl index 31cf14175..c24505bc3 100644 --- a/src/services/sso_oidc.jl +++ b/src/services/sso_oidc.jl @@ -46,19 +46,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Identity Center authorizes all scopes that are configured for the client during the call to RegisterClient. """ -function create_token( +create_token( clientId, clientSecret, grantType; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_oidc( + "POST", + "/token", + Dict{String,Any}( + "clientId" => clientId, "clientSecret" => clientSecret, "grantType" => grantType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_oidc( - "POST", - "/token", - Dict{String,Any}( - "clientId" => clientId, "clientSecret" => clientSecret, "grantType" => grantType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_token( clientId, clientSecret, @@ -141,17 +139,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys following value is supported: * Access Token - urn:ietf:params:oauth:token-type:access_token """ -function create_token_with_iam( +create_token_with_iam( clientId, grantType; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_oidc( + "POST", + "/token?aws_iam=t", + Dict{String,Any}("clientId" => clientId, "grantType" => grantType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_oidc( - "POST", - "/token?aws_iam=t", - Dict{String,Any}("clientId" => clientId, "grantType" => grantType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_token_with_iam( clientId, grantType, @@ -202,17 +198,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"scopes"`: The list of scopes that are defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token. """ -function register_client( +register_client( clientName, clientType; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_oidc( + "POST", + "/client/register", + Dict{String,Any}("clientName" => clientName, "clientType" => clientType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_oidc( - "POST", - "/client/register", - Dict{String,Any}("clientName" => clientName, "clientType" => clientType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_client( clientName, clientType, @@ -251,19 +245,17 @@ authorization service. Using the Amazon Web Services access portal in the IAM Identity Center User Guide. """ -function start_device_authorization( +start_device_authorization( clientId, clientSecret, startUrl; aws_config::AbstractAWSConfig=current_aws_config() +) = sso_oidc( + "POST", + "/device_authorization", + Dict{String,Any}( + "clientId" => clientId, "clientSecret" => clientSecret, "startUrl" => startUrl + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sso_oidc( - "POST", - "/device_authorization", - Dict{String,Any}( - "clientId" => clientId, "clientSecret" => clientSecret, "startUrl" => startUrl - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_device_authorization( clientId, clientSecret, diff --git a/src/services/storage_gateway.jl b/src/services/storage_gateway.jl index e7397b526..423475cdd 100644 --- a/src/services/storage_gateway.jl +++ b/src/services/storage_gateway.jl @@ -54,25 +54,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TapeDriveType"`: The value that indicates the type of tape drive to use for tape gateway. This field is optional. Valid Values: IBM-ULT3580-TD5 """ -function activate_gateway( +activate_gateway( ActivationKey, GatewayName, GatewayRegion, GatewayTimezone; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "ActivateGateway", + Dict{String,Any}( + "ActivationKey" => ActivationKey, + "GatewayName" => GatewayName, + "GatewayRegion" => GatewayRegion, + "GatewayTimezone" => GatewayTimezone, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "ActivateGateway", - Dict{String,Any}( - "ActivationKey" => ActivationKey, - "GatewayName" => GatewayName, - "GatewayRegion" => GatewayRegion, - "GatewayTimezone" => GatewayTimezone, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function activate_gateway( ActivationKey, GatewayName, @@ -116,14 +114,13 @@ you want to add cache, and one or more disk IDs that you want to configure as ca - `gateway_arn`: """ -function add_cache(DiskIds, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +add_cache(DiskIds, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "AddCache", Dict{String,Any}("DiskIds" => DiskIds, "GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_cache( DiskIds, GatewayARN, @@ -165,16 +162,14 @@ storage volumes that are recovered to a new gateway maintain their tags. value is 256. """ -function add_tags_to_resource( +add_tags_to_resource( ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "AddTagsToResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "AddTagsToResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_tags_to_resource( ResourceARN, Tags, @@ -211,16 +206,13 @@ buffer, and one or more disk IDs that you want to configure as upload buffer. - `gateway_arn`: """ -function add_upload_buffer( - DiskIds, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +add_upload_buffer(DiskIds, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "AddUploadBuffer", Dict{String,Any}("DiskIds" => DiskIds, "GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_upload_buffer( DiskIds, GatewayARN, @@ -260,16 +252,14 @@ configure as working storage. - `gateway_arn`: """ -function add_working_storage( +add_working_storage( DiskIds, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "AddWorkingStorage", + Dict{String,Any}("DiskIds" => DiskIds, "GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "AddWorkingStorage", - Dict{String,Any}("DiskIds" => DiskIds, "GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_working_storage( DiskIds, GatewayARN, @@ -315,16 +305,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console. Valid values: TRUE | FALSE """ -function assign_tape_pool( - PoolId, TapeARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +assign_tape_pool(PoolId, TapeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "AssignTapePool", Dict{String,Any}("PoolId" => PoolId, "TapeARN" => TapeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function assign_tape_pool( PoolId, TapeARN, @@ -373,27 +360,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of up to 50 tags that can be assigned to the file system association. Each tag is a key-value pair. """ -function associate_file_system( +associate_file_system( ClientToken, GatewayARN, LocationARN, Password, UserName; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "AssociateFileSystem", + Dict{String,Any}( + "ClientToken" => ClientToken, + "GatewayARN" => GatewayARN, + "LocationARN" => LocationARN, + "Password" => Password, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "AssociateFileSystem", - Dict{String,Any}( - "ClientToken" => ClientToken, - "GatewayARN" => GatewayARN, - "LocationARN" => LocationARN, - "Password" => Password, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_file_system( ClientToken, GatewayARN, @@ -454,23 +439,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name. """ -function attach_volume( +attach_volume( GatewayARN, NetworkInterfaceId, VolumeARN; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "AttachVolume", + Dict{String,Any}( + "GatewayARN" => GatewayARN, + "NetworkInterfaceId" => NetworkInterfaceId, + "VolumeARN" => VolumeARN, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "AttachVolume", - Dict{String,Any}( - "GatewayARN" => GatewayARN, - "NetworkInterfaceId" => NetworkInterfaceId, - "VolumeARN" => VolumeARN, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function attach_volume( GatewayARN, NetworkInterfaceId, @@ -509,16 +492,13 @@ process is initiated. This operation is only supported in the tape gateway type. archiving for. """ -function cancel_archival( - GatewayARN, TapeARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +cancel_archival(GatewayARN, TapeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "CancelArchival", Dict{String,Any}("GatewayARN" => GatewayARN, "TapeARN" => TapeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_archival( GatewayARN, TapeARN, @@ -553,16 +533,13 @@ is only supported in the tape gateway type. retrieval for. """ -function cancel_retrieval( - GatewayARN, TapeARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +cancel_retrieval(GatewayARN, TapeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "CancelRetrieval", Dict{String,Any}("GatewayARN" => GatewayARN, "TapeARN" => TapeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_retrieval( GatewayARN, TapeARN, @@ -637,27 +614,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256 characters. """ -function create_cachedi_scsivolume( +create_cachedi_scsivolume( ClientToken, GatewayARN, NetworkInterfaceId, TargetName, VolumeSizeInBytes; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "CreateCachediSCSIVolume", + Dict{String,Any}( + "ClientToken" => ClientToken, + "GatewayARN" => GatewayARN, + "NetworkInterfaceId" => NetworkInterfaceId, + "TargetName" => TargetName, + "VolumeSizeInBytes" => VolumeSizeInBytes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateCachediSCSIVolume", - Dict{String,Any}( - "ClientToken" => ClientToken, - "GatewayARN" => GatewayARN, - "NetworkInterfaceId" => NetworkInterfaceId, - "TargetName" => TargetName, - "VolumeSizeInBytes" => VolumeSizeInBytes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_cachedi_scsivolume( ClientToken, GatewayARN, @@ -778,25 +753,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys connect to Amazon S3 through a VPC endpoint, a VPC access point, or an access point alias that points to a VPC access point. """ -function create_nfsfile_share( +create_nfsfile_share( ClientToken, GatewayARN, LocationARN, Role; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "CreateNFSFileShare", + Dict{String,Any}( + "ClientToken" => ClientToken, + "GatewayARN" => GatewayARN, + "LocationARN" => LocationARN, + "Role" => Role, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateNFSFileShare", - Dict{String,Any}( - "ClientToken" => ClientToken, - "GatewayARN" => GatewayARN, - "LocationARN" => LocationARN, - "Role" => Role, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_nfsfile_share( ClientToken, GatewayARN, @@ -936,25 +909,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include: DOMAINUser1, user1, @group1, and @DOMAINgroup1. Can only be set if Authentication is set to ActiveDirectory. """ -function create_smbfile_share( +create_smbfile_share( ClientToken, GatewayARN, LocationARN, Role; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "CreateSMBFileShare", + Dict{String,Any}( + "ClientToken" => ClientToken, + "GatewayARN" => GatewayARN, + "LocationARN" => LocationARN, + "Role" => Role, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateSMBFileShare", - Dict{String,Any}( - "ClientToken" => ClientToken, - "GatewayARN" => GatewayARN, - "LocationARN" => LocationARN, - "Role" => Role, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_smbfile_share( ClientToken, GatewayARN, @@ -1017,18 +988,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256. """ -function create_snapshot( +create_snapshot( SnapshotDescription, VolumeARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "CreateSnapshot", + Dict{String,Any}( + "SnapshotDescription" => SnapshotDescription, "VolumeARN" => VolumeARN + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateSnapshot", - Dict{String,Any}( - "SnapshotDescription" => SnapshotDescription, "VolumeARN" => VolumeARN - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_snapshot( SnapshotDescription, VolumeARN, @@ -1084,18 +1053,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256. """ -function create_snapshot_from_volume_recovery_point( +create_snapshot_from_volume_recovery_point( SnapshotDescription, VolumeARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "CreateSnapshotFromVolumeRecoveryPoint", + Dict{String,Any}( + "SnapshotDescription" => SnapshotDescription, "VolumeARN" => VolumeARN + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateSnapshotFromVolumeRecoveryPoint", - Dict{String,Any}( - "SnapshotDescription" => SnapshotDescription, "VolumeARN" => VolumeARN - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_snapshot_from_volume_recovery_point( SnapshotDescription, VolumeARN, @@ -1165,27 +1132,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256. """ -function create_storedi_scsivolume( +create_storedi_scsivolume( DiskId, GatewayARN, NetworkInterfaceId, PreserveExistingData, TargetName; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "CreateStorediSCSIVolume", + Dict{String,Any}( + "DiskId" => DiskId, + "GatewayARN" => GatewayARN, + "NetworkInterfaceId" => NetworkInterfaceId, + "PreserveExistingData" => PreserveExistingData, + "TargetName" => TargetName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateStorediSCSIVolume", - Dict{String,Any}( - "DiskId" => DiskId, - "GatewayARN" => GatewayARN, - "NetworkInterfaceId" => NetworkInterfaceId, - "PreserveExistingData" => PreserveExistingData, - "TargetName" => TargetName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_storedi_scsivolume( DiskId, GatewayARN, @@ -1243,16 +1208,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256. """ -function create_tape_pool( +create_tape_pool( PoolName, StorageClass; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "CreateTapePool", + Dict{String,Any}("PoolName" => PoolName, "StorageClass" => StorageClass); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateTapePool", - Dict{String,Any}("PoolName" => PoolName, "StorageClass" => StorageClass); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_tape_pool( PoolName, StorageClass, @@ -1311,23 +1274,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Worm"`: Set to TRUE if the tape you are creating is to be configured as a write-once-read-many (WORM) tape. """ -function create_tape_with_barcode( +create_tape_with_barcode( GatewayARN, TapeBarcode, TapeSizeInBytes; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "CreateTapeWithBarcode", + Dict{String,Any}( + "GatewayARN" => GatewayARN, + "TapeBarcode" => TapeBarcode, + "TapeSizeInBytes" => TapeSizeInBytes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateTapeWithBarcode", - Dict{String,Any}( - "GatewayARN" => GatewayARN, - "TapeBarcode" => TapeBarcode, - "TapeSizeInBytes" => TapeSizeInBytes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_tape_with_barcode( GatewayARN, TapeBarcode, @@ -1395,27 +1356,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Worm"`: Set to TRUE if the tape you are creating is to be configured as a write-once-read-many (WORM) tape. """ -function create_tapes( +create_tapes( ClientToken, GatewayARN, NumTapesToCreate, TapeBarcodePrefix, TapeSizeInBytes; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "CreateTapes", + Dict{String,Any}( + "ClientToken" => ClientToken, + "GatewayARN" => GatewayARN, + "NumTapesToCreate" => NumTapesToCreate, + "TapeBarcodePrefix" => TapeBarcodePrefix, + "TapeSizeInBytes" => TapeSizeInBytes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "CreateTapes", - Dict{String,Any}( - "ClientToken" => ClientToken, - "GatewayARN" => GatewayARN, - "NumTapesToCreate" => NumTapesToCreate, - "TapeBarcodePrefix" => TapeBarcodePrefix, - "TapeSizeInBytes" => TapeSizeInBytes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_tapes( ClientToken, GatewayARN, @@ -1457,16 +1416,14 @@ in your request to remove the policy. - `gateway_arn`: """ -function delete_automatic_tape_creation_policy( +delete_automatic_tape_creation_policy( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DeleteAutomaticTapeCreationPolicy", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DeleteAutomaticTapeCreationPolicy", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_automatic_tape_creation_policy( GatewayARN, params::AbstractDict{String}; @@ -1498,16 +1455,14 @@ for the stored volume, cached volume, and tape gateway types. - `gateway_arn`: """ -function delete_bandwidth_rate_limit( +delete_bandwidth_rate_limit( BandwidthType, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DeleteBandwidthRateLimit", + Dict{String,Any}("BandwidthType" => BandwidthType, "GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DeleteBandwidthRateLimit", - Dict{String,Any}("BandwidthType" => BandwidthType, "GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_bandwidth_rate_limit( BandwidthType, GatewayARN, @@ -1545,16 +1500,14 @@ types. VolumeARN. """ -function delete_chap_credentials( +delete_chap_credentials( InitiatorName, TargetARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DeleteChapCredentials", + Dict{String,Any}("InitiatorName" => InitiatorName, "TargetARN" => TargetARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DeleteChapCredentials", - Dict{String,Any}("InitiatorName" => InitiatorName, "TargetARN" => TargetARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_chap_credentials( InitiatorName, TargetARN, @@ -1595,14 +1548,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys data upload process, and the file share enters the FORCE_DELETING status. Valid Values: true | false """ -function delete_file_share(FileShareARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +delete_file_share(FileShareARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DeleteFileShare", Dict{String,Any}("FileShareARN" => FileShareARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_file_share( FileShareARN, params::AbstractDict{String}; @@ -1638,14 +1590,13 @@ Amazon EC2 console. For more information, see the Storage Gateway detail page. - `gateway_arn`: """ -function delete_gateway(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +delete_gateway(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DeleteGateway", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_gateway( GatewayARN, params::AbstractDict{String}; @@ -1677,16 +1628,13 @@ Amazon Elastic Compute Cloud API Reference. - `volume_arn`: The volume which snapshot schedule to delete. """ -function delete_snapshot_schedule( - VolumeARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +delete_snapshot_schedule(VolumeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DeleteSnapshotSchedule", Dict{String,Any}("VolumeARN" => VolumeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_snapshot_schedule( VolumeARN, params::AbstractDict{String}; @@ -1722,16 +1670,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys governance can be deleted. Archived tapes with tape retention lock set to compliance can't be deleted. """ -function delete_tape( - GatewayARN, TapeARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +delete_tape(GatewayARN, TapeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DeleteTape", Dict{String,Any}("GatewayARN" => GatewayARN, "TapeARN" => TapeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tape( GatewayARN, TapeARN, @@ -1770,14 +1715,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys governance can be deleted. Archived tapes with tape retention lock set to compliance can't be deleted. """ -function delete_tape_archive(TapeARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +delete_tape_archive(TapeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DeleteTapeArchive", Dict{String,Any}("TapeARN" => TapeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tape_archive( TapeARN, params::AbstractDict{String}; @@ -1803,14 +1747,13 @@ tape pool. - `pool_arn`: The Amazon Resource Name (ARN) of the custom tape pool to delete. """ -function delete_tape_pool(PoolARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +delete_tape_pool(PoolARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DeleteTapePool", Dict{String,Any}("PoolARN" => PoolARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tape_pool( PoolARN, params::AbstractDict{String}; @@ -1845,14 +1788,13 @@ to delete. to return a list of gateway volumes. """ -function delete_volume(VolumeARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +delete_volume(VolumeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DeleteVolume", Dict{String,Any}("VolumeARN" => VolumeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_volume( VolumeARN, params::AbstractDict{String}; @@ -1880,16 +1822,14 @@ the response would be null. - `gateway_arn`: """ -function describe_availability_monitor_test( +describe_availability_monitor_test( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeAvailabilityMonitorTest", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeAvailabilityMonitorTest", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_availability_monitor_test( GatewayARN, params::AbstractDict{String}; @@ -1921,16 +1861,14 @@ gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your r - `gateway_arn`: """ -function describe_bandwidth_rate_limit( +describe_bandwidth_rate_limit( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeBandwidthRateLimit", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeBandwidthRateLimit", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_bandwidth_rate_limit( GatewayARN, params::AbstractDict{String}; @@ -1968,16 +1906,14 @@ request. - `gateway_arn`: """ -function describe_bandwidth_rate_limit_schedule( +describe_bandwidth_rate_limit_schedule( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeBandwidthRateLimitSchedule", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeBandwidthRateLimitSchedule", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_bandwidth_rate_limit_schedule( GatewayARN, params::AbstractDict{String}; @@ -2005,14 +1941,13 @@ configured as cache, and it includes the amount of cache allocated and used. - `gateway_arn`: """ -function describe_cache(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +describe_cache(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeCache", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_cache( GatewayARN, params::AbstractDict{String}; @@ -2043,16 +1978,14 @@ information sorted by volume Amazon Resource Name (ARN). gateway. Use ListVolumes to get volume ARNs for a gateway. """ -function describe_cachedi_scsivolumes( +describe_cachedi_scsivolumes( VolumeARNs; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeCachediSCSIVolumes", + Dict{String,Any}("VolumeARNs" => VolumeARNs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeCachediSCSIVolumes", - Dict{String,Any}("VolumeARNs" => VolumeARNs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_cachedi_scsivolumes( VolumeARNs, params::AbstractDict{String}; @@ -2082,16 +2015,13 @@ operation is supported in the volume and tape gateway types. VolumeARN. """ -function describe_chap_credentials( - TargetARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +describe_chap_credentials(TargetARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeChapCredentials", Dict{String,Any}("TargetARN" => TargetARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_chap_credentials( TargetARN, params::AbstractDict{String}; @@ -2119,16 +2049,14 @@ Gateways. each file system association to be described. """ -function describe_file_system_associations( +describe_file_system_associations( FileSystemAssociationARNList; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeFileSystemAssociations", + Dict{String,Any}("FileSystemAssociationARNList" => FileSystemAssociationARNList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeFileSystemAssociations", - Dict{String,Any}("FileSystemAssociationARNList" => FileSystemAssociationARNList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_file_system_associations( FileSystemAssociationARNList, params::AbstractDict{String}; @@ -2162,16 +2090,14 @@ and software version. To specify which gateway to describe, use the Amazon Resou - `gateway_arn`: """ -function describe_gateway_information( +describe_gateway_information( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeGatewayInformation", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeGatewayInformation", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_gateway_information( GatewayARN, params::AbstractDict{String}; @@ -2199,16 +2125,14 @@ apply. Time values returned are for the gateway's time zone. - `gateway_arn`: """ -function describe_maintenance_start_time( +describe_maintenance_start_time( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeMaintenanceStartTime", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeMaintenanceStartTime", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_maintenance_start_time( GatewayARN, params::AbstractDict{String}; @@ -2236,16 +2160,14 @@ Gateway. This operation is only supported for S3 File Gateways. share to be described. """ -function describe_nfsfile_shares( +describe_nfsfile_shares( FileShareARNList; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeNFSFileShares", + Dict{String,Any}("FileShareARNList" => FileShareARNList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeNFSFileShares", - Dict{String,Any}("FileShareARNList" => FileShareARNList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_nfsfile_shares( FileShareARNList, params::AbstractDict{String}; @@ -2275,16 +2197,14 @@ Gateway. This operation is only supported for S3 File Gateways. share to be described. """ -function describe_smbfile_shares( +describe_smbfile_shares( FileShareARNList; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeSMBFileShares", + Dict{String,Any}("FileShareARNList" => FileShareARNList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeSMBFileShares", - Dict{String,Any}("FileShareARNList" => FileShareARNList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_smbfile_shares( FileShareARNList, params::AbstractDict{String}; @@ -2313,16 +2233,13 @@ This operation is only supported for file gateways. - `gateway_arn`: """ -function describe_smbsettings( - GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +describe_smbsettings(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeSMBSettings", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_smbsettings( GatewayARN, params::AbstractDict{String}; @@ -2351,16 +2268,13 @@ volume. This operation is only supported in the cached volume and stored volume to return a list of gateway volumes. """ -function describe_snapshot_schedule( - VolumeARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +describe_snapshot_schedule(VolumeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeSnapshotSchedule", Dict{String,Any}("VolumeARN" => VolumeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_snapshot_schedule( VolumeARN, params::AbstractDict{String}; @@ -2391,16 +2305,14 @@ stored volume gateway type. gateway. Use ListVolumes to get volume ARNs for a gateway. """ -function describe_storedi_scsivolumes( +describe_storedi_scsivolumes( VolumeARNs; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeStorediSCSIVolumes", + Dict{String,Any}("VolumeARNs" => VolumeARNs); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeStorediSCSIVolumes", - Dict{String,Any}("VolumeARNs" => VolumeARNs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_storedi_scsivolumes( VolumeARNs, params::AbstractDict{String}; @@ -2434,11 +2346,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TapeARNs"`: Specifies one or more unique Amazon Resource Names (ARNs) that represent the virtual tapes you want to describe. """ -function describe_tape_archives(; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +describe_tape_archives(; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeTapeArchives"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_tape_archives( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2470,16 +2381,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Marker"`: An opaque string that indicates the position at which to begin describing the virtual tape recovery points. """ -function describe_tape_recovery_points( +describe_tape_recovery_points( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DescribeTapeRecoveryPoints", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DescribeTapeRecoveryPoints", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_tape_recovery_points( GatewayARN, params::AbstractDict{String}; @@ -2522,14 +2431,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the virtual tapes you want to describe. If this parameter is not specified, Tape gateway returns a description of all virtual tapes associated with the specified gateway. """ -function describe_tapes(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +describe_tapes(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeTapes", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_tapes( GatewayARN, params::AbstractDict{String}; @@ -2558,16 +2466,13 @@ space allocated and used. - `gateway_arn`: """ -function describe_upload_buffer( - GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +describe_upload_buffer(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeUploadBuffer", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_upload_buffer( GatewayARN, params::AbstractDict{String}; @@ -2605,14 +2510,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys gateway. If no VTL devices are specified, the result will contain all devices on the specified gateway. """ -function describe_vtldevices(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +describe_vtldevices(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeVTLDevices", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_vtldevices( GatewayARN, params::AbstractDict{String}; @@ -2644,16 +2548,13 @@ used. - `gateway_arn`: """ -function describe_working_storage( - GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +describe_working_storage(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DescribeWorkingStorage", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_working_storage( GatewayARN, params::AbstractDict{String}; @@ -2688,14 +2589,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and detach the volume. The default is false. If this value is set to false, you must manually disconnect the iSCSI connection from the target volume. Valid Values: true | false """ -function detach_volume(VolumeARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +detach_volume(VolumeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DetachVolume", Dict{String,Any}("VolumeARN" => VolumeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detach_volume( VolumeARN, params::AbstractDict{String}; @@ -2725,14 +2625,13 @@ enabled. - `gateway_arn`: """ -function disable_gateway(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +disable_gateway(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "DisableGateway", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disable_gateway( GatewayARN, params::AbstractDict{String}; @@ -2767,16 +2666,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys association enters the FORCE_DELETING status. If this value is set to false, the Amazon FSx file system does not disassociate until all data is uploaded. """ -function disassociate_file_system( +disassociate_file_system( FileSystemAssociationARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "DisassociateFileSystem", + Dict{String,Any}("FileSystemAssociationARN" => FileSystemAssociationARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "DisassociateFileSystem", - Dict{String,Any}("FileSystemAssociationARN" => FileSystemAssociationARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_file_system( FileSystemAssociationARN, params::AbstractDict{String}; @@ -2831,25 +2728,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimeoutInSeconds"`: Specifies the time in seconds, in which the JoinDomain operation must complete. The default is 20 seconds. """ -function join_domain( +join_domain( DomainName, GatewayARN, Password, UserName; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "JoinDomain", + Dict{String,Any}( + "DomainName" => DomainName, + "GatewayARN" => GatewayARN, + "Password" => Password, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "JoinDomain", - Dict{String,Any}( - "DomainName" => DomainName, - "GatewayARN" => GatewayARN, - "Password" => Password, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function join_domain( DomainName, GatewayARN, @@ -2889,15 +2784,13 @@ supported for tape gateways. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"GatewayARN"`: """ -function list_automatic_tape_creation_policies(; +list_automatic_tape_creation_policies(; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "ListAutomaticTapeCreationPolicies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "ListAutomaticTapeCreationPolicies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_automatic_tape_creation_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2927,11 +2820,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys present, Marker specifies where to continue the list from after a previous call to ListFileShares. Optional. """ -function list_file_shares(; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( - "ListFileShares"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_file_shares(; aws_config::AbstractAWSConfig=current_aws_config()) = storage_gateway( + "ListFileShares"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_file_shares( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2956,11 +2847,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. If present, Marker specifies where to continue the list from after a previous call to ListFileSystemAssociations. Optional. """ -function list_file_system_associations(; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +list_file_system_associations(; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "ListFileSystemAssociations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_file_system_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2991,11 +2881,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Marker"`: An opaque string that indicates the position at which to begin the returned list of gateways. """ -function list_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( - "ListGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_gateways(; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway("ListGateways"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_gateways( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3020,14 +2907,13 @@ disk that has incorrect metadata or the disk content is corrupted). - `gateway_arn`: """ -function list_local_disks(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +list_local_disks(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "ListLocalDisks", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_local_disks( GatewayARN, params::AbstractDict{String}; @@ -3061,16 +2947,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Marker"`: An opaque string that indicates the position at which to begin returning the list of tags. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -3107,11 +2990,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys list. If you don't specify a custom tape pool ARN, the response lists all custom tape pools. """ -function list_tape_pools(; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( - "ListTapePools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tape_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway("ListTapePools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tape_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3141,11 +3021,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys tapes. - `"TapeARNs"`: """ -function list_tapes(; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( - "ListTapes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tapes(; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway("ListTapes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tapes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3167,16 +3044,13 @@ cached volume and stored volume gateway types. to return a list of gateway volumes for the gateway. """ -function list_volume_initiators( - VolumeARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +list_volume_initiators(VolumeARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "ListVolumeInitiators", Dict{String,Any}("VolumeARN" => VolumeARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_volume_initiators( VolumeARN, params::AbstractDict{String}; @@ -3207,16 +3081,14 @@ operation. - `gateway_arn`: """ -function list_volume_recovery_points( +list_volume_recovery_points( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "ListVolumeRecoveryPoints", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "ListVolumeRecoveryPoints", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_volume_recovery_points( GatewayARN, params::AbstractDict{String}; @@ -3254,11 +3126,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Marker"`: A string that indicates the position at which to begin the returned list of volumes. Obtain the marker from the response of a previous List iSCSI Volumes request. """ -function list_volumes(; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( - "ListVolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_volumes(; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway("ListVolumes"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_volumes( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3285,16 +3154,13 @@ Getting file upload notification in the Amazon S3 File Gateway User Guide. - `file_share_arn`: """ -function notify_when_uploaded( - FileShareARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +notify_when_uploaded(FileShareARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "NotifyWhenUploaded", Dict{String,Any}("FileShareARN" => FileShareARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function notify_when_uploaded( FileShareARN, params::AbstractDict{String}; @@ -3356,14 +3222,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys objects that are in folders listed directly under FolderList are found and used for the update. The default is true. Valid Values: true | false """ -function refresh_cache(FileShareARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +refresh_cache(FileShareARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "RefreshCache", Dict{String,Any}("FileShareARN" => FileShareARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function refresh_cache( FileShareARN, params::AbstractDict{String}; @@ -3393,16 +3258,14 @@ storage gateways of all types. composed of a key-value pair. """ -function remove_tags_from_resource( +remove_tags_from_resource( ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "RemoveTagsFromResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "RemoveTagsFromResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_tags_from_resource( ResourceARN, TagKeys, @@ -3442,14 +3305,13 @@ properly. - `gateway_arn`: """ -function reset_cache(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +reset_cache(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "ResetCache", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reset_cache( GatewayARN, params::AbstractDict{String}; @@ -3486,16 +3348,14 @@ is only supported in the tape gateway type. the virtual tape shelf (VTS). """ -function retrieve_tape_archive( +retrieve_tape_archive( GatewayARN, TapeARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "RetrieveTapeArchive", + Dict{String,Any}("GatewayARN" => GatewayARN, "TapeARN" => TapeARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "RetrieveTapeArchive", - Dict{String,Any}("GatewayARN" => GatewayARN, "TapeARN" => TapeARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function retrieve_tape_archive( GatewayARN, TapeARN, @@ -3533,16 +3393,14 @@ retrieved to only a tape gateway. There is no charge for retrieving recovery poi retrieve the recovery point. """ -function retrieve_tape_recovery_point( +retrieve_tape_recovery_point( GatewayARN, TapeARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "RetrieveTapeRecoveryPoint", + Dict{String,Any}("GatewayARN" => GatewayARN, "TapeARN" => TapeARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "RetrieveTapeRecoveryPoint", - Dict{String,Any}("GatewayARN" => GatewayARN, "TapeARN" => TapeARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function retrieve_tape_recovery_point( GatewayARN, TapeARN, @@ -3576,18 +3434,16 @@ new password. You don't need to know the default password to set a new password. - `local_console_password`: The password you want to set for your VM local console. """ -function set_local_console_password( +set_local_console_password( GatewayARN, LocalConsolePassword; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "SetLocalConsolePassword", + Dict{String,Any}( + "GatewayARN" => GatewayARN, "LocalConsolePassword" => LocalConsolePassword + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "SetLocalConsolePassword", - Dict{String,Any}( - "GatewayARN" => GatewayARN, "LocalConsolePassword" => LocalConsolePassword - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_local_console_password( GatewayARN, LocalConsolePassword, @@ -3625,16 +3481,14 @@ supported for S3 File Gateways - `password`: The password that you want to set for your SMB server. """ -function set_smbguest_password( +set_smbguest_password( GatewayARN, Password; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "SetSMBGuestPassword", + Dict{String,Any}("GatewayARN" => GatewayARN, "Password" => Password); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "SetSMBGuestPassword", - Dict{String,Any}("GatewayARN" => GatewayARN, "Password" => Password); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function set_smbguest_password( GatewayARN, Password, @@ -3678,14 +3532,13 @@ ActivateGateway. If do not intend to use the gateway again, you must delete the - `gateway_arn`: """ -function shutdown_gateway(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +shutdown_gateway(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "ShutdownGateway", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function shutdown_gateway( GatewayARN, params::AbstractDict{String}; @@ -3715,16 +3568,14 @@ Starting this test will cause your gateway to go offline for a brief period. - `gateway_arn`: """ -function start_availability_monitor_test( +start_availability_monitor_test( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "StartAvailabilityMonitorTest", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "StartAvailabilityMonitorTest", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_availability_monitor_test( GatewayARN, params::AbstractDict{String}; @@ -3757,14 +3608,13 @@ your request. - `gateway_arn`: """ -function start_gateway(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) - return storage_gateway( +start_gateway(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "StartGateway", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_gateway( GatewayARN, params::AbstractDict{String}; @@ -3796,21 +3646,19 @@ tape creation policy. - `gateway_arn`: """ -function update_automatic_tape_creation_policy( +update_automatic_tape_creation_policy( AutomaticTapeCreationRules, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "UpdateAutomaticTapeCreationPolicy", + Dict{String,Any}( + "AutomaticTapeCreationRules" => AutomaticTapeCreationRules, + "GatewayARN" => GatewayARN, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateAutomaticTapeCreationPolicy", - Dict{String,Any}( - "AutomaticTapeCreationRules" => AutomaticTapeCreationRules, - "GatewayARN" => GatewayARN, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_automatic_tape_creation_policy( AutomaticTapeCreationRules, GatewayARN, @@ -3858,16 +3706,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AverageUploadRateLimitInBitsPerSec"`: The average upload bandwidth rate limit in bits per second. """ -function update_bandwidth_rate_limit( +update_bandwidth_rate_limit( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "UpdateBandwidthRateLimit", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateBandwidthRateLimit", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bandwidth_rate_limit( GatewayARN, params::AbstractDict{String}; @@ -3901,21 +3747,19 @@ limits. - `gateway_arn`: """ -function update_bandwidth_rate_limit_schedule( +update_bandwidth_rate_limit_schedule( BandwidthRateLimitIntervals, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "UpdateBandwidthRateLimitSchedule", + Dict{String,Any}( + "BandwidthRateLimitIntervals" => BandwidthRateLimitIntervals, + "GatewayARN" => GatewayARN, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateBandwidthRateLimitSchedule", - Dict{String,Any}( - "BandwidthRateLimitIntervals" => BandwidthRateLimitIntervals, - "GatewayARN" => GatewayARN, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_bandwidth_rate_limit_schedule( BandwidthRateLimitIntervals, GatewayARN, @@ -3964,23 +3808,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Minimum bytes of 12. Maximum bytes of 16. The secret key must be between 12 and 16 bytes when encoded in UTF-8. """ -function update_chap_credentials( +update_chap_credentials( InitiatorName, SecretToAuthenticateInitiator, TargetARN; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "UpdateChapCredentials", + Dict{String,Any}( + "InitiatorName" => InitiatorName, + "SecretToAuthenticateInitiator" => SecretToAuthenticateInitiator, + "TargetARN" => TargetARN, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateChapCredentials", - Dict{String,Any}( - "InitiatorName" => InitiatorName, - "SecretToAuthenticateInitiator" => SecretToAuthenticateInitiator, - "TargetARN" => TargetARN, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_chap_credentials( InitiatorName, SecretToAuthenticateInitiator, @@ -4027,16 +3869,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys share D of the Amazon FSx file system. The user account must belong to the Amazon FSx delegated admin user group. """ -function update_file_system_association( +update_file_system_association( FileSystemAssociationARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "UpdateFileSystemAssociation", + Dict{String,Any}("FileSystemAssociationARN" => FileSystemAssociationARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateFileSystemAssociation", - Dict{String,Any}("FileSystemAssociationARN" => FileSystemAssociationARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_file_system_association( FileSystemAssociationARN, params::AbstractDict{String}; @@ -4081,16 +3921,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GatewayName"`: - `"GatewayTimezone"`: A value that indicates the time zone of the gateway. """ -function update_gateway_information( - GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +update_gateway_information(GatewayARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "UpdateGatewayInformation", Dict{String,Any}("GatewayARN" => GatewayARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_gateway_information( GatewayARN, params::AbstractDict{String}; @@ -4124,16 +3961,14 @@ respectively. - `gateway_arn`: """ -function update_gateway_software_now( +update_gateway_software_now( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "UpdateGatewaySoftwareNow", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateGatewaySoftwareNow", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_gateway_software_now( GatewayARN, params::AbstractDict{String}; @@ -4185,16 +4020,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys inputs: ALL_VERSIONS - Enables regular gateway maintenance updates. EMERGENCY_VERSIONS_ONLY - Disables regular gateway maintenance updates. """ -function update_maintenance_start_time( +update_maintenance_start_time( GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "UpdateMaintenanceStartTime", + Dict{String,Any}("GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateMaintenanceStartTime", - Dict{String,Any}("GatewayARN" => GatewayARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_maintenance_start_time( GatewayARN, params::AbstractDict{String}; @@ -4268,16 +4101,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys RootSquash: Only root is mapped to anonymous user. NoSquash: No one is mapped to anonymous user. AllSquash: Everyone is mapped to anonymous user. """ -function update_nfsfile_share( - FileShareARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +update_nfsfile_share(FileShareARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "UpdateNFSFileShare", Dict{String,Any}("FileShareARN" => FileShareARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_nfsfile_share( FileShareARN, params::AbstractDict{String}; @@ -4376,16 +4206,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include: DOMAINUser1, user1, @group1, and @DOMAINgroup1. Can only be set if Authentication is set to ActiveDirectory. """ -function update_smbfile_share( - FileShareARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return storage_gateway( +update_smbfile_share(FileShareARN; aws_config::AbstractAWSConfig=current_aws_config()) = + storage_gateway( "UpdateSMBFileShare", Dict{String,Any}("FileShareARN" => FileShareARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_smbfile_share( FileShareARN, params::AbstractDict{String}; @@ -4413,18 +4240,14 @@ The operation is only supported for S3 File Gateways. - `gateway_arn`: """ -function update_smbfile_share_visibility( +update_smbfile_share_visibility( FileSharesVisible, GatewayARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "UpdateSMBFileShareVisibility", + Dict{String,Any}("FileSharesVisible" => FileSharesVisible, "GatewayARN" => GatewayARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateSMBFileShareVisibility", - Dict{String,Any}( - "FileSharesVisible" => FileSharesVisible, "GatewayARN" => GatewayARN - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_smbfile_share_visibility( FileSharesVisible, GatewayARN, @@ -4460,16 +4283,14 @@ file shares on the gateway. special permissions for SMB file shares on the gateway. """ -function update_smblocal_groups( +update_smblocal_groups( GatewayARN, SMBLocalGroups; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "UpdateSMBLocalGroups", + Dict{String,Any}("GatewayARN" => GatewayARN, "SMBLocalGroups" => SMBLocalGroups); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateSMBLocalGroups", - Dict{String,Any}("GatewayARN" => GatewayARN, "SMBLocalGroups" => SMBLocalGroups); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_smblocal_groups( GatewayARN, SMBLocalGroups, @@ -4520,18 +4341,16 @@ of the gateway. Microsoft Windows 8, Windows Server 2012, or later. """ -function update_smbsecurity_strategy( +update_smbsecurity_strategy( GatewayARN, SMBSecurityStrategy; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "UpdateSMBSecurityStrategy", + Dict{String,Any}( + "GatewayARN" => GatewayARN, "SMBSecurityStrategy" => SMBSecurityStrategy + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateSMBSecurityStrategy", - Dict{String,Any}( - "GatewayARN" => GatewayARN, "SMBSecurityStrategy" => SMBSecurityStrategy - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_smbsecurity_strategy( GatewayARN, SMBSecurityStrategy, @@ -4584,23 +4403,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256. """ -function update_snapshot_schedule( +update_snapshot_schedule( RecurrenceInHours, StartAt, VolumeARN; aws_config::AbstractAWSConfig=current_aws_config(), +) = storage_gateway( + "UpdateSnapshotSchedule", + Dict{String,Any}( + "RecurrenceInHours" => RecurrenceInHours, + "StartAt" => StartAt, + "VolumeARN" => VolumeARN, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateSnapshotSchedule", - Dict{String,Any}( - "RecurrenceInHours" => RecurrenceInHours, - "StartAt" => StartAt, - "VolumeARN" => VolumeARN, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_snapshot_schedule( RecurrenceInHours, StartAt, @@ -4641,16 +4458,14 @@ supported in the tape gateway type. - `vtldevice_arn`: The Amazon Resource Name (ARN) of the medium changer you want to select. """ -function update_vtldevice_type( +update_vtldevice_type( DeviceType, VTLDeviceARN; aws_config::AbstractAWSConfig=current_aws_config() +) = storage_gateway( + "UpdateVTLDeviceType", + Dict{String,Any}("DeviceType" => DeviceType, "VTLDeviceARN" => VTLDeviceARN); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return storage_gateway( - "UpdateVTLDeviceType", - Dict{String,Any}("DeviceType" => DeviceType, "VTLDeviceARN" => VTLDeviceARN); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_vtldevice_type( DeviceType, VTLDeviceARN, diff --git a/src/services/sts.jl b/src/services/sts.jl index 135d76401..423f6d746 100644 --- a/src/services/sts.jl +++ b/src/services/sts.jl @@ -203,16 +203,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys choose not to specify a transitive tag key, then no tags are passed from this session to any subsequent sessions. """ -function assume_role( - RoleArn, RoleSessionName; aws_config::AbstractAWSConfig=current_aws_config() -) - return sts( +assume_role(RoleArn, RoleSessionName; aws_config::AbstractAWSConfig=current_aws_config()) = + sts( "AssumeRole", Dict{String,Any}("RoleArn" => RoleArn, "RoleSessionName" => RoleSessionName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function assume_role( RoleArn, RoleSessionName, @@ -371,20 +368,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys allowed by the identity-based policy of the role that is being assumed. For more information, see Session Policies in the IAM User Guide. """ -function assume_role_with_saml( +assume_role_with_saml( PrincipalArn, RoleArn, SAMLAssertion; aws_config::AbstractAWSConfig=current_aws_config() +) = sts( + "AssumeRoleWithSAML", + Dict{String,Any}( + "PrincipalArn" => PrincipalArn, + "RoleArn" => RoleArn, + "SAMLAssertion" => SAMLAssertion, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sts( - "AssumeRoleWithSAML", - Dict{String,Any}( - "PrincipalArn" => PrincipalArn, - "RoleArn" => RoleArn, - "SAMLAssertion" => SAMLAssertion, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_role_with_saml( PrincipalArn, RoleArn, @@ -564,23 +559,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for OAuth 2.0 access tokens. Do not include URL schemes and port numbers. Do not specify this value for OpenID Connect ID tokens. """ -function assume_role_with_web_identity( +assume_role_with_web_identity( RoleArn, RoleSessionName, WebIdentityToken; aws_config::AbstractAWSConfig=current_aws_config(), +) = sts( + "AssumeRoleWithWebIdentity", + Dict{String,Any}( + "RoleArn" => RoleArn, + "RoleSessionName" => RoleSessionName, + "WebIdentityToken" => WebIdentityToken, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sts( - "AssumeRoleWithWebIdentity", - Dict{String,Any}( - "RoleArn" => RoleArn, - "RoleSessionName" => RoleSessionName, - "WebIdentityToken" => WebIdentityToken, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_role_with_web_identity( RoleArn, RoleSessionName, @@ -632,16 +625,14 @@ condition keys in the context of the user's request. - `encoded_message`: The encoded message that was returned with the response. """ -function decode_authorization_message( +decode_authorization_message( EncodedMessage; aws_config::AbstractAWSConfig=current_aws_config() +) = sts( + "DecodeAuthorizationMessage", + Dict{String,Any}("EncodedMessage" => EncodedMessage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sts( - "DecodeAuthorizationMessage", - Dict{String,Any}("EncodedMessage" => EncodedMessage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function decode_authorization_message( EncodedMessage, params::AbstractDict{String}; @@ -683,16 +674,12 @@ that the key doesn't exist. digit. """ -function get_access_key_info( - AccessKeyId; aws_config::AbstractAWSConfig=current_aws_config() +get_access_key_info(AccessKeyId; aws_config::AbstractAWSConfig=current_aws_config()) = sts( + "GetAccessKeyInfo", + Dict{String,Any}("AccessKeyId" => AccessKeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return sts( - "GetAccessKeyInfo", - Dict{String,Any}("AccessKeyId" => AccessKeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_key_info( AccessKeyId, params::AbstractDict{String}; @@ -721,9 +708,8 @@ response, see I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice in the Guide. """ -function get_caller_identity(; aws_config::AbstractAWSConfig=current_aws_config()) - return sts("GetCallerIdentity"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_caller_identity(; aws_config::AbstractAWSConfig=current_aws_config()) = + sts("GetCallerIdentity"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_caller_identity( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -874,14 +860,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the department=engineering session tag. Department and department are not saved as separate tags, and the session tag passed in the request takes precedence over the role tag. """ -function get_federation_token(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return sts( - "GetFederationToken", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_federation_token(Name; aws_config::AbstractAWSConfig=current_aws_config()) = sts( + "GetFederationToken", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_federation_token( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -955,9 +939,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys when requesting resources that require MFA authentication. The format for this parameter, as described by its regex pattern, is a sequence of six numeric digits. """ -function get_session_token(; aws_config::AbstractAWSConfig=current_aws_config()) - return sts("GetSessionToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_session_token(; aws_config::AbstractAWSConfig=current_aws_config()) = + sts("GetSessionToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_session_token( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/supplychain.jl b/src/services/supplychain.jl index 47a91abb4..c89bfeaba 100644 --- a/src/services/supplychain.jl +++ b/src/services/supplychain.jl @@ -23,17 +23,15 @@ Chain instance creation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"clientToken"`: An idempotency token. """ -function create_bill_of_materials_import_job( +create_bill_of_materials_import_job( instanceId, s3uri; aws_config::AbstractAWSConfig=current_aws_config() +) = supplychain( + "POST", + "/api/configuration/instances/$(instanceId)/bill-of-materials-import-jobs", + Dict{String,Any}("s3uri" => s3uri, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return supplychain( - "POST", - "/api/configuration/instances/$(instanceId)/bill-of-materials-import-jobs", - Dict{String,Any}("s3uri" => s3uri, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_bill_of_materials_import_job( instanceId, s3uri, @@ -66,16 +64,14 @@ Get status and details of a BillOfMaterialsImportJob. - `job_id`: The BillOfMaterialsImportJob identifier. """ -function get_bill_of_materials_import_job( +get_bill_of_materials_import_job( instanceId, jobId; aws_config::AbstractAWSConfig=current_aws_config() +) = supplychain( + "GET", + "/api/configuration/instances/$(instanceId)/bill-of-materials-import-jobs/$(jobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return supplychain( - "GET", - "/api/configuration/instances/$(instanceId)/bill-of-materials-import-jobs/$(jobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_bill_of_materials_import_job( instanceId, jobId, @@ -95,10 +91,14 @@ end send_data_integration_event(data, event_group_id, event_type, instance_id) send_data_integration_event(data, event_group_id, event_type, instance_id, params::Dict{String,<:Any}) -Send transactional data events with real-time data for analysis or monitoring. +Send the transactional data payload for the event with real-time data for analysis or +monitoring. The real-time data events are stored in an Amazon Web Services service before +being processed and stored in data lake. New data events are synced with data lake at 5 PM +GMT everyday. The updated transactional data is available in data lake after ingestion. # Arguments -- `data`: The data payload of the event. +- `data`: The data payload of the event. For more information on the data schema to use, + see Data entities supported in AWS Supply Chain . - `event_group_id`: Event identifier (for example, orderId for InboundOrder) used for data sharing or partitioning. - `event_type`: The data event type. @@ -109,26 +109,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"clientToken"`: The idempotent client token. - `"eventTimestamp"`: The event timestamp (in epoch seconds). """ -function send_data_integration_event( +send_data_integration_event( data, eventGroupId, eventType, instanceId; aws_config::AbstractAWSConfig=current_aws_config(), +) = supplychain( + "POST", + "/api-data/data-integration/instance/$(instanceId)/data-integration-events", + Dict{String,Any}( + "data" => data, + "eventGroupId" => eventGroupId, + "eventType" => eventType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return supplychain( - "POST", - "/api-data/data-integration/instance/$(instanceId)/data-integration-events", - Dict{String,Any}( - "data" => data, - "eventGroupId" => eventGroupId, - "eventType" => eventType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_data_integration_event( data, eventGroupId, diff --git a/src/services/support.jl b/src/services/support.jl index 51e9ba8f4..335b77514 100644 --- a/src/services/support.jl +++ b/src/services/support.jl @@ -31,16 +31,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys response. If an attachmentSetId is specified, the attachments are added to the specified set, if it exists. """ -function add_attachments_to_set( - attachments; aws_config::AbstractAWSConfig=current_aws_config() -) - return support( +add_attachments_to_set(attachments; aws_config::AbstractAWSConfig=current_aws_config()) = + support( "AddAttachmentsToSet", Dict{String,Any}("attachments" => attachments); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function add_attachments_to_set( attachments, params::AbstractDict{String}; @@ -83,16 +80,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ccEmailAddresses"`: The email addresses in the CC line of an email to be added to the support case. """ -function add_communication_to_case( +add_communication_to_case( communicationBody; aws_config::AbstractAWSConfig=current_aws_config() +) = support( + "AddCommunicationToCase", + Dict{String,Any}("communicationBody" => communicationBody); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support( - "AddCommunicationToCase", - Dict{String,Any}("communicationBody" => communicationBody); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_communication_to_case( communicationBody, params::AbstractDict{String}; @@ -163,16 +158,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Web Services Support User Guide. The availability of severity levels depends on the support plan for the Amazon Web Services account. """ -function create_case( +create_case( communicationBody, subject; aws_config::AbstractAWSConfig=current_aws_config() +) = support( + "CreateCase", + Dict{String,Any}("communicationBody" => communicationBody, "subject" => subject); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support( - "CreateCase", - Dict{String,Any}("communicationBody" => communicationBody, "subject" => subject); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_case( communicationBody, subject, @@ -215,16 +208,13 @@ appears. For information about changing your support plan, see Amazon Web Servic DescribeCommunications operation. """ -function describe_attachment( - attachmentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return support( +describe_attachment(attachmentId; aws_config::AbstractAWSConfig=current_aws_config()) = + support( "DescribeAttachment", Dict{String,Any}("attachmentId" => attachmentId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_attachment( attachmentId, params::AbstractDict{String}; @@ -278,9 +268,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return before paginating. - `"nextToken"`: A resumption point for pagination. """ -function describe_cases(; aws_config::AbstractAWSConfig=current_aws_config()) - return support("DescribeCases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +describe_cases(; aws_config::AbstractAWSConfig=current_aws_config()) = + support("DescribeCases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_cases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -320,14 +309,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return before paginating. - `"nextToken"`: A resumption point for pagination. """ -function describe_communications(caseId; aws_config::AbstractAWSConfig=current_aws_config()) - return support( +describe_communications(caseId; aws_config::AbstractAWSConfig=current_aws_config()) = + support( "DescribeCommunications", Dict{String,Any}("caseId" => caseId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_communications( caseId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -366,25 +354,23 @@ appears. For information about changing your support plan, see Amazon Web Servic DescribeServices operation to get the possible serviceCode values. """ -function describe_create_case_options( +describe_create_case_options( categoryCode, issueType, language, serviceCode; aws_config::AbstractAWSConfig=current_aws_config(), +) = support( + "DescribeCreateCaseOptions", + Dict{String,Any}( + "categoryCode" => categoryCode, + "issueType" => issueType, + "language" => language, + "serviceCode" => serviceCode, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support( - "DescribeCreateCaseOptions", - Dict{String,Any}( - "categoryCode" => categoryCode, - "issueType" => issueType, - "language" => language, - "serviceCode" => serviceCode, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_create_case_options( categoryCode, issueType, @@ -439,11 +425,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceCodeList"`: A JSON-formatted list of service codes available for Amazon Web Services services. """ -function describe_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return support( - "DescribeServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + support("DescribeServices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -471,11 +454,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys (\"ja\") and Korean (“ko”). You must specify the ISO 639-1 code for the language parameter if you want support in that language. """ -function describe_severity_levels(; aws_config::AbstractAWSConfig=current_aws_config()) - return support( - "DescribeSeverityLevels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_severity_levels(; aws_config::AbstractAWSConfig=current_aws_config()) = support( + "DescribeSeverityLevels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_severity_levels( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -510,20 +491,18 @@ appears. For information about changing your support plan, see Amazon Web Servic DescribeServices operation to get the possible serviceCode values. """ -function describe_supported_languages( +describe_supported_languages( categoryCode, issueType, serviceCode; aws_config::AbstractAWSConfig=current_aws_config() +) = support( + "DescribeSupportedLanguages", + Dict{String,Any}( + "categoryCode" => categoryCode, + "issueType" => issueType, + "serviceCode" => serviceCode, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support( - "DescribeSupportedLanguages", - Dict{String,Any}( - "categoryCode" => categoryCode, - "issueType" => issueType, - "serviceCode" => serviceCode, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_supported_languages( categoryCode, issueType, @@ -574,16 +553,14 @@ Support User Guide. error. """ -function describe_trusted_advisor_check_refresh_statuses( +describe_trusted_advisor_check_refresh_statuses( checkIds; aws_config::AbstractAWSConfig=current_aws_config() +) = support( + "DescribeTrustedAdvisorCheckRefreshStatuses", + Dict{String,Any}("checkIds" => checkIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support( - "DescribeTrustedAdvisorCheckRefreshStatuses", - Dict{String,Any}("checkIds" => checkIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trusted_advisor_check_refresh_statuses( checkIds, params::AbstractDict{String}; @@ -631,16 +608,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - en French - fr German - de Indonesian - id Italian - it Japanese - ja Korean - ko Portuguese, Brazilian - pt_BR Spanish - es """ -function describe_trusted_advisor_check_result( +describe_trusted_advisor_check_result( checkId; aws_config::AbstractAWSConfig=current_aws_config() +) = support( + "DescribeTrustedAdvisorCheckResult", + Dict{String,Any}("checkId" => checkId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support( - "DescribeTrustedAdvisorCheckResult", - Dict{String,Any}("checkId" => checkId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trusted_advisor_check_result( checkId, params::AbstractDict{String}; @@ -675,16 +650,14 @@ the Amazon Web Services Support User Guide. - `check_ids`: The IDs of the Trusted Advisor checks. """ -function describe_trusted_advisor_check_summaries( +describe_trusted_advisor_check_summaries( checkIds; aws_config::AbstractAWSConfig=current_aws_config() +) = support( + "DescribeTrustedAdvisorCheckSummaries", + Dict{String,Any}("checkIds" => checkIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support( - "DescribeTrustedAdvisorCheckSummaries", - Dict{String,Any}("checkIds" => checkIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trusted_advisor_check_summaries( checkIds, params::AbstractDict{String}; @@ -727,16 +700,14 @@ Web Services Support API in the Amazon Web Services Support User Guide. ko Portuguese, Brazilian - pt_BR Spanish - es """ -function describe_trusted_advisor_checks( +describe_trusted_advisor_checks( language; aws_config::AbstractAWSConfig=current_aws_config() +) = support( + "DescribeTrustedAdvisorChecks", + Dict{String,Any}("language" => language); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support( - "DescribeTrustedAdvisorChecks", - Dict{String,Any}("language" => language); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_trusted_advisor_checks( language, params::AbstractDict{String}; @@ -776,16 +747,13 @@ About the Amazon Web Services Support API in the Amazon Web Services Support Use error. """ -function refresh_trusted_advisor_check( - checkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return support( +refresh_trusted_advisor_check(checkId; aws_config::AbstractAWSConfig=current_aws_config()) = + support( "RefreshTrustedAdvisorCheck", Dict{String,Any}("checkId" => checkId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function refresh_trusted_advisor_check( checkId, params::AbstractDict{String}; @@ -816,9 +784,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 """ -function resolve_case(; aws_config::AbstractAWSConfig=current_aws_config()) - return support("ResolveCase"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +resolve_case(; aws_config::AbstractAWSConfig=current_aws_config()) = + support("ResolveCase"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function resolve_case( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/support_app.jl b/src/services/support_app.jl index bdd8b5c91..217b7b3f6 100644 --- a/src/services/support_app.jl +++ b/src/services/support_app.jl @@ -44,26 +44,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys created or reopened. - `"notifyOnResolveCase"`: Whether you want to get notified when a support case is resolved. """ -function create_slack_channel_configuration( +create_slack_channel_configuration( channelId, channelRoleArn, notifyOnCaseSeverity, teamId; aws_config::AbstractAWSConfig=current_aws_config(), +) = support_app( + "POST", + "/control/create-slack-channel-configuration", + Dict{String,Any}( + "channelId" => channelId, + "channelRoleArn" => channelRoleArn, + "notifyOnCaseSeverity" => notifyOnCaseSeverity, + "teamId" => teamId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support_app( - "POST", - "/control/create-slack-channel-configuration", - Dict{String,Any}( - "channelId" => channelId, - "channelRoleArn" => channelRoleArn, - "notifyOnCaseSeverity" => notifyOnCaseSeverity, - "teamId" => teamId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_slack_channel_configuration( channelId, channelRoleArn, @@ -101,14 +99,12 @@ Services Support App page of the Amazon Web Services Support Center. The alias a in Slack messages from the Amazon Web Services Support App. """ -function delete_account_alias(; aws_config::AbstractAWSConfig=current_aws_config()) - return support_app( - "POST", - "/control/delete-account-alias"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_account_alias(; aws_config::AbstractAWSConfig=current_aws_config()) = support_app( + "POST", + "/control/delete-account-alias"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_account_alias( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -135,17 +131,15 @@ doesn't delete your Slack channel. T012ABCDEFG. """ -function delete_slack_channel_configuration( +delete_slack_channel_configuration( channelId, teamId; aws_config::AbstractAWSConfig=current_aws_config() +) = support_app( + "POST", + "/control/delete-slack-channel-configuration", + Dict{String,Any}("channelId" => channelId, "teamId" => teamId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support_app( - "POST", - "/control/delete-slack-channel-configuration", - Dict{String,Any}("channelId" => channelId, "teamId" => teamId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_slack_channel_configuration( channelId, teamId, @@ -179,17 +173,15 @@ operation doesn't delete your Slack workspace. T012ABCDEFG. """ -function delete_slack_workspace_configuration( +delete_slack_workspace_configuration( teamId; aws_config::AbstractAWSConfig=current_aws_config() +) = support_app( + "POST", + "/control/delete-slack-workspace-configuration", + Dict{String,Any}("teamId" => teamId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support_app( - "POST", - "/control/delete-slack-workspace-configuration", - Dict{String,Any}("teamId" => teamId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_slack_workspace_configuration( teamId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -211,14 +203,12 @@ Web Services Support App page of the Amazon Web Services Support Center. The ali appears in Slack messages from the Amazon Web Services Support App. """ -function get_account_alias(; aws_config::AbstractAWSConfig=current_aws_config()) - return support_app( - "POST", - "/control/get-account-alias"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_account_alias(; aws_config::AbstractAWSConfig=current_aws_config()) = support_app( + "POST", + "/control/get-account-alias"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_account_alias( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -244,16 +234,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys batch of results, reissue the search request and include the returned token. When the API returns the last set of results, the response doesn't include a pagination token value. """ -function list_slack_channel_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return support_app( +list_slack_channel_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + support_app( "POST", "/control/list-slack-channel-configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_slack_channel_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -279,16 +266,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys batch of results, reissue the search request and include the returned token. When the API returns the last set of results, the response doesn't include a pagination token value. """ -function list_slack_workspace_configurations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return support_app( +list_slack_workspace_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + support_app( "POST", "/control/list-slack-workspace-configurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_slack_workspace_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -313,15 +297,14 @@ Center. The alias also appears in Slack messages from the Amazon Web Services Su - `account_alias`: An alias or short name for an Amazon Web Services account. """ -function put_account_alias(accountAlias; aws_config::AbstractAWSConfig=current_aws_config()) - return support_app( +put_account_alias(accountAlias; aws_config::AbstractAWSConfig=current_aws_config()) = + support_app( "POST", "/control/put-account-alias", Dict{String,Any}("accountAlias" => accountAlias); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_account_alias( accountAlias, params::AbstractDict{String}; @@ -364,17 +347,15 @@ Slack channel. T012ABCDEFG. Specify the Slack workspace that you want to use for your organization. """ -function register_slack_workspace_for_organization( +register_slack_workspace_for_organization( teamId; aws_config::AbstractAWSConfig=current_aws_config() +) = support_app( + "POST", + "/control/register-slack-workspace-for-organization", + Dict{String,Any}("teamId" => teamId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support_app( - "POST", - "/control/register-slack-workspace-for-organization", - Dict{String,Any}("teamId" => teamId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_slack_workspace_for_organization( teamId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -419,17 +400,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys created or reopened. - `"notifyOnResolveCase"`: Whether you want to get notified when a support case is resolved. """ -function update_slack_channel_configuration( +update_slack_channel_configuration( channelId, teamId; aws_config::AbstractAWSConfig=current_aws_config() +) = support_app( + "POST", + "/control/update-slack-channel-configuration", + Dict{String,Any}("channelId" => channelId, "teamId" => teamId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return support_app( - "POST", - "/control/update-slack-channel-configuration", - Dict{String,Any}("channelId" => channelId, "teamId" => teamId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_slack_channel_configuration( channelId, teamId, diff --git a/src/services/swf.jl b/src/services/swf.jl index 62709214a..41ea1321e 100644 --- a/src/services/swf.jl +++ b/src/services/swf.jl @@ -48,16 +48,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys counted. closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request. """ -function count_closed_workflow_executions( +count_closed_workflow_executions( domain; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "CountClosedWorkflowExecutions", + Dict{String,Any}("domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "CountClosedWorkflowExecutions", - Dict{String,Any}("domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function count_closed_workflow_executions( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -105,16 +103,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request. """ -function count_open_workflow_executions( +count_open_workflow_executions( domain, startTimeFilter; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "CountOpenWorkflowExecutions", + Dict{String,Any}("domain" => domain, "startTimeFilter" => startTimeFilter); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "CountOpenWorkflowExecutions", - Dict{String,Any}("domain" => domain, "startTimeFilter" => startTimeFilter); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function count_open_workflow_executions( domain, startTimeFilter, @@ -157,16 +153,14 @@ Access to Amazon SWF Workflows in the Amazon SWF Developer Guide. - `task_list`: The name of the task list. """ -function count_pending_activity_tasks( +count_pending_activity_tasks( domain, taskList; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "CountPendingActivityTasks", + Dict{String,Any}("domain" => domain, "taskList" => taskList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "CountPendingActivityTasks", - Dict{String,Any}("domain" => domain, "taskList" => taskList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function count_pending_activity_tasks( domain, taskList, @@ -207,16 +201,14 @@ Access to Amazon SWF Workflows in the Amazon SWF Developer Guide. - `task_list`: The name of the task list. """ -function count_pending_decision_tasks( +count_pending_decision_tasks( domain, taskList; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "CountPendingDecisionTasks", + Dict{String,Any}("domain" => domain, "taskList" => taskList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "CountPendingDecisionTasks", - Dict{String,Any}("domain" => domain, "taskList" => taskList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function count_pending_decision_tasks( domain, taskList, @@ -259,16 +251,14 @@ Workflows in the Amazon SWF Developer Guide. - `domain`: The name of the domain in which the activity type is registered. """ -function delete_activity_type( +delete_activity_type( activityType, domain; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "DeleteActivityType", + Dict{String,Any}("activityType" => activityType, "domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "DeleteActivityType", - Dict{String,Any}("activityType" => activityType, "domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_activity_type( activityType, domain, @@ -313,16 +303,14 @@ Workflows in the Amazon SWF Developer Guide. - `workflow_type`: The workflow type to delete. """ -function delete_workflow_type( +delete_workflow_type( domain, workflowType; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "DeleteWorkflowType", + Dict{String,Any}("domain" => domain, "workflowType" => workflowType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "DeleteWorkflowType", - Dict{String,Any}("domain" => domain, "workflowType" => workflowType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workflow_type( domain, workflowType, @@ -366,16 +354,14 @@ Access to Amazon SWF Workflows in the Amazon SWF Developer Guide. - `domain`: The name of the domain in which the activity type is registered. """ -function deprecate_activity_type( +deprecate_activity_type( activityType, domain; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "DeprecateActivityType", + Dict{String,Any}("activityType" => activityType, "domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "DeprecateActivityType", - Dict{String,Any}("activityType" => activityType, "domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deprecate_activity_type( activityType, domain, @@ -419,14 +405,12 @@ Access to Amazon SWF Workflows in the Amazon SWF Developer Guide. - `name`: The name of the domain to deprecate. """ -function deprecate_domain(name; aws_config::AbstractAWSConfig=current_aws_config()) - return swf( - "DeprecateDomain", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +deprecate_domain(name; aws_config::AbstractAWSConfig=current_aws_config()) = swf( + "DeprecateDomain", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function deprecate_domain( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -463,16 +447,14 @@ see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Develop - `workflow_type`: The workflow type to deprecate. """ -function deprecate_workflow_type( +deprecate_workflow_type( domain, workflowType; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "DeprecateWorkflowType", + Dict{String,Any}("domain" => domain, "workflowType" => workflowType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "DeprecateWorkflowType", - Dict{String,Any}("domain" => domain, "workflowType" => workflowType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deprecate_workflow_type( domain, workflowType, @@ -516,16 +498,14 @@ see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Develop - `domain`: The name of the domain in which the activity type is registered. """ -function describe_activity_type( +describe_activity_type( activityType, domain; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "DescribeActivityType", + Dict{String,Any}("activityType" => activityType, "domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "DescribeActivityType", - Dict{String,Any}("activityType" => activityType, "domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_activity_type( activityType, domain, @@ -564,14 +544,12 @@ Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer G - `name`: The name of the domain to describe. """ -function describe_domain(name; aws_config::AbstractAWSConfig=current_aws_config()) - return swf( - "DescribeDomain", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_domain(name; aws_config::AbstractAWSConfig=current_aws_config()) = swf( + "DescribeDomain", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_domain( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -604,16 +582,14 @@ Access to Amazon SWF Workflows in the Amazon SWF Developer Guide. - `execution`: The workflow execution to describe. """ -function describe_workflow_execution( +describe_workflow_execution( domain, execution; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "DescribeWorkflowExecution", + Dict{String,Any}("domain" => domain, "execution" => execution); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "DescribeWorkflowExecution", - Dict{String,Any}("domain" => domain, "execution" => execution); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_workflow_execution( domain, execution, @@ -657,16 +633,14 @@ Workflows in the Amazon SWF Developer Guide. - `workflow_type`: The workflow type to describe. """ -function describe_workflow_type( +describe_workflow_type( domain, workflowType; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "DescribeWorkflowType", + Dict{String,Any}("domain" => domain, "workflowType" => workflowType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "DescribeWorkflowType", - Dict{String,Any}("domain" => domain, "workflowType" => workflowType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_workflow_type( domain, workflowType, @@ -721,16 +695,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reverseOrder"`: When set to true, returns the events in reverse order. By default the results are returned in ascending order of the eventTimeStamp of the events. """ -function get_workflow_execution_history( +get_workflow_execution_history( domain, execution; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "GetWorkflowExecutionHistory", + Dict{String,Any}("domain" => domain, "execution" => execution); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "GetWorkflowExecutionHistory", - Dict{String,Any}("domain" => domain, "execution" => execution); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_workflow_execution_history( domain, execution, @@ -787,16 +759,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reverseOrder"`: When set to true, returns the results in reverse order. By default, the results are returned in ascending alphabetical order by name of the activity types. """ -function list_activity_types( +list_activity_types( domain, registrationStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "ListActivityTypes", + Dict{String,Any}("domain" => domain, "registrationStatus" => registrationStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "ListActivityTypes", - Dict{String,Any}("domain" => domain, "registrationStatus" => registrationStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_activity_types( domain, registrationStatus, @@ -879,16 +849,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned. closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request. """ -function list_closed_workflow_executions( +list_closed_workflow_executions( domain; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "ListClosedWorkflowExecutions", + Dict{String,Any}("domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "ListClosedWorkflowExecutions", - Dict{String,Any}("domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_closed_workflow_executions( domain, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -934,16 +902,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reverseOrder"`: When set to true, returns the results in reverse order. By default, the results are returned in ascending alphabetical order by name of the domains. """ -function list_domains( - registrationStatus; aws_config::AbstractAWSConfig=current_aws_config() +list_domains(registrationStatus; aws_config::AbstractAWSConfig=current_aws_config()) = swf( + "ListDomains", + Dict{String,Any}("registrationStatus" => registrationStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "ListDomains", - Dict{String,Any}("registrationStatus" => registrationStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_domains( registrationStatus, params::AbstractDict{String}; @@ -1008,16 +972,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned. executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request. """ -function list_open_workflow_executions( +list_open_workflow_executions( domain, startTimeFilter; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "ListOpenWorkflowExecutions", + Dict{String,Any}("domain" => domain, "startTimeFilter" => startTimeFilter); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "ListOpenWorkflowExecutions", - Dict{String,Any}("domain" => domain, "startTimeFilter" => startTimeFilter); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_open_workflow_executions( domain, startTimeFilter, @@ -1048,16 +1010,13 @@ List tags for a given domain. - `resource_arn`: The Amazon Resource Name (ARN) for the Amazon SWF domain. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return swf( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + swf( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1106,16 +1065,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reverseOrder"`: When set to true, returns the results in reverse order. By default the results are returned in ascending alphabetical order of the name of the workflow types. """ -function list_workflow_types( +list_workflow_types( domain, registrationStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "ListWorkflowTypes", + Dict{String,Any}("domain" => domain, "registrationStatus" => registrationStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "ListWorkflowTypes", - Dict{String,Any}("domain" => domain, "registrationStatus" => registrationStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_workflow_types( domain, registrationStatus, @@ -1174,16 +1131,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ActivityTaskStarted event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined. """ -function poll_for_activity_task( +poll_for_activity_task( domain, taskList; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "PollForActivityTask", + Dict{String,Any}("domain" => domain, "taskList" => taskList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "PollForActivityTask", - Dict{String,Any}("domain" => domain, "taskList" => taskList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function poll_for_activity_task( domain, taskList, @@ -1261,16 +1216,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys greater than or equal to eventTimestamp of the most recent DecisionTaskStarted event. By default, this parameter is set to false. """ -function poll_for_decision_task( +poll_for_decision_task( domain, taskList; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "PollForDecisionTask", + Dict{String,Any}("domain" => domain, "taskList" => taskList); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "PollForDecisionTask", - Dict{String,Any}("domain" => domain, "taskList" => taskList); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function poll_for_decision_task( domain, taskList, @@ -1329,16 +1282,14 @@ Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer G Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"details"`: If specified, contains details about the progress of the task. """ -function record_activity_task_heartbeat( +record_activity_task_heartbeat( taskToken; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "RecordActivityTaskHeartbeat", + Dict{String,Any}("taskToken" => taskToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RecordActivityTaskHeartbeat", - Dict{String,Any}("taskToken" => taskToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function record_activity_task_heartbeat( taskToken, params::AbstractDict{String}; @@ -1418,16 +1369,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys unlimited duration. - `"description"`: A textual description of the activity type. """ -function register_activity_type( +register_activity_type( domain, name, version; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "RegisterActivityType", + Dict{String,Any}("domain" => domain, "name" => name, "version" => version); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RegisterActivityType", - Dict{String,Any}("domain" => domain, "name" => name, "version" => version); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_activity_type( domain, name, @@ -1483,22 +1432,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: Tags to be added when registering a domain. Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @. """ -function register_domain( +register_domain( name, workflowExecutionRetentionPeriodInDays; aws_config::AbstractAWSConfig=current_aws_config(), +) = swf( + "RegisterDomain", + Dict{String,Any}( + "name" => name, + "workflowExecutionRetentionPeriodInDays" => + workflowExecutionRetentionPeriodInDays, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RegisterDomain", - Dict{String,Any}( - "name" => name, - "workflowExecutionRetentionPeriodInDays" => - workflowExecutionRetentionPeriodInDays, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_domain( name, workflowExecutionRetentionPeriodInDays, @@ -1596,16 +1543,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys greater than or equal to 0. You can use NONE to specify unlimited duration. - `"description"`: Textual description of the workflow type. """ -function register_workflow_type( +register_workflow_type( domain, name, version; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "RegisterWorkflowType", + Dict{String,Any}("domain" => domain, "name" => name, "version" => version); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RegisterWorkflowType", - Dict{String,Any}("domain" => domain, "name" => name, "version" => version); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_workflow_type( domain, name, @@ -1656,16 +1601,14 @@ Access to Amazon SWF Workflows in the Amazon SWF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"runId"`: The runId of the workflow execution to cancel. """ -function request_cancel_workflow_execution( +request_cancel_workflow_execution( domain, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "RequestCancelWorkflowExecution", + Dict{String,Any}("domain" => domain, "workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RequestCancelWorkflowExecution", - Dict{String,Any}("domain" => domain, "workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function request_cancel_workflow_execution( domain, workflowId, @@ -1718,16 +1661,14 @@ Access to Amazon SWF Workflows in the Amazon SWF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"details"`: Information about the cancellation. """ -function respond_activity_task_canceled( +respond_activity_task_canceled( taskToken; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "RespondActivityTaskCanceled", + Dict{String,Any}("taskToken" => taskToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RespondActivityTaskCanceled", - Dict{String,Any}("taskToken" => taskToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function respond_activity_task_canceled( taskToken, params::AbstractDict{String}; @@ -1777,16 +1718,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"result"`: The result of the activity task. It is a free form string that is implementation specific. """ -function respond_activity_task_completed( +respond_activity_task_completed( taskToken; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "RespondActivityTaskCompleted", + Dict{String,Any}("taskToken" => taskToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RespondActivityTaskCompleted", - Dict{String,Any}("taskToken" => taskToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function respond_activity_task_completed( taskToken, params::AbstractDict{String}; @@ -1833,16 +1772,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"details"`: Detailed information about the failure. - `"reason"`: Description of the error that may assist in diagnostics. """ -function respond_activity_task_failed( +respond_activity_task_failed( taskToken; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "RespondActivityTaskFailed", + Dict{String,Any}("taskToken" => taskToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RespondActivityTaskFailed", - Dict{String,Any}("taskToken" => taskToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function respond_activity_task_failed( taskToken, params::AbstractDict{String}; @@ -1896,16 +1833,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override and schedule a new decision task to the original task list. """ -function respond_decision_task_completed( +respond_decision_task_completed( taskToken; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "RespondDecisionTaskCompleted", + Dict{String,Any}("taskToken" => taskToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "RespondDecisionTaskCompleted", - Dict{String,Any}("taskToken" => taskToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function respond_decision_task_completed( taskToken, params::AbstractDict{String}; @@ -1953,18 +1888,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys execution's history. - `"runId"`: The runId of the workflow execution to signal. """ -function signal_workflow_execution( +signal_workflow_execution( domain, signalName, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "SignalWorkflowExecution", + Dict{String,Any}( + "domain" => domain, "signalName" => signalName, "workflowId" => workflowId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "SignalWorkflowExecution", - Dict{String,Any}( - "domain" => domain, "signalName" => signalName, "workflowId" => workflowId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function signal_workflow_execution( domain, signalName, @@ -2082,18 +2015,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned. """ -function start_workflow_execution( +start_workflow_execution( domain, workflowId, workflowType; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "StartWorkflowExecution", + Dict{String,Any}( + "domain" => domain, "workflowId" => workflowId, "workflowType" => workflowType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "StartWorkflowExecution", - Dict{String,Any}( - "domain" => domain, "workflowId" => workflowId, "workflowType" => workflowType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_workflow_execution( domain, workflowId, @@ -2131,14 +2062,12 @@ Add a tag to a Amazon SWF domain. Amazon SWF supports a maximum of 50 tags per digits, whitespace, or these symbols: _ . : / = + - @. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return swf( - "TagResource", - Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = swf( + "TagResource", + Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -2202,16 +2131,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"reason"`: A descriptive reason for terminating the workflow execution. - `"runId"`: The runId of the workflow execution to terminate. """ -function terminate_workflow_execution( +terminate_workflow_execution( domain, workflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "TerminateWorkflowExecution", + Dict{String,Any}("domain" => domain, "workflowId" => workflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "TerminateWorkflowExecution", - Dict{String,Any}("domain" => domain, "workflowId" => workflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function terminate_workflow_execution( domain, workflowId, @@ -2256,16 +2183,14 @@ Workflows in the Amazon SWF Developer Guide. - `domain`: The name of the domain of the deprecated activity type. """ -function undeprecate_activity_type( +undeprecate_activity_type( activityType, domain; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "UndeprecateActivityType", + Dict{String,Any}("activityType" => activityType, "domain" => domain); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "UndeprecateActivityType", - Dict{String,Any}("activityType" => activityType, "domain" => domain); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function undeprecate_activity_type( activityType, domain, @@ -2307,14 +2232,12 @@ Developer Guide. - `name`: The name of the domain of the deprecated workflow type. """ -function undeprecate_domain(name; aws_config::AbstractAWSConfig=current_aws_config()) - return swf( - "UndeprecateDomain", - Dict{String,Any}("name" => name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +undeprecate_domain(name; aws_config::AbstractAWSConfig=current_aws_config()) = swf( + "UndeprecateDomain", + Dict{String,Any}("name" => name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function undeprecate_domain( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2350,16 +2273,14 @@ Workflows in the Amazon SWF Developer Guide. - `workflow_type`: The name of the domain of the deprecated workflow type. """ -function undeprecate_workflow_type( +undeprecate_workflow_type( domain, workflowType; aws_config::AbstractAWSConfig=current_aws_config() +) = swf( + "UndeprecateWorkflowType", + Dict{String,Any}("domain" => domain, "workflowType" => workflowType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return swf( - "UndeprecateWorkflowType", - Dict{String,Any}("domain" => domain, "workflowType" => workflowType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function undeprecate_workflow_type( domain, workflowType, @@ -2391,16 +2312,13 @@ Remove a tag from a Amazon SWF domain. - `tag_keys`: The list of tags to remove from the Amazon SWF domain. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return swf( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + swf( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, diff --git a/src/services/synthetics.jl b/src/services/synthetics.jl index 4680dcb02..4e829f827 100644 --- a/src/services/synthetics.jl +++ b/src/services/synthetics.jl @@ -18,17 +18,15 @@ in a group. You must run this operation in the Region where the canary exists. group ID as the GroupIdentifier. """ -function associate_resource( +associate_resource( ResourceArn, groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = synthetics( + "PATCH", + "/group/$(groupIdentifier)/associate", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return synthetics( - "PATCH", - "/group/$(groupIdentifier)/associate", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_resource( ResourceArn, groupIdentifier, @@ -108,7 +106,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about the subnet and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC. """ -function create_canary( +create_canary( ArtifactS3Location, Code, ExecutionRoleArn, @@ -116,22 +114,20 @@ function create_canary( RuntimeVersion, Schedule; aws_config::AbstractAWSConfig=current_aws_config(), +) = synthetics( + "POST", + "/canary", + Dict{String,Any}( + "ArtifactS3Location" => ArtifactS3Location, + "Code" => Code, + "ExecutionRoleArn" => ExecutionRoleArn, + "Name" => Name, + "RuntimeVersion" => RuntimeVersion, + "Schedule" => Schedule, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return synthetics( - "POST", - "/canary", - Dict{String,Any}( - "ArtifactS3Location" => ArtifactS3Location, - "Code" => Code, - "ExecutionRoleArn" => ExecutionRoleArn, - "Name" => Name, - "RuntimeVersion" => RuntimeVersion, - "Schedule" => Schedule, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_canary( ArtifactS3Location, Code, @@ -192,15 +188,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values. """ -function create_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "POST", - "/group", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_group(Name; aws_config::AbstractAWSConfig=current_aws_config()) = synthetics( + "POST", + "/group", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_group( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -240,11 +234,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deleteLambda"`: Specifies whether to also delete the Lambda functions and layers used by this canary. The default is false. Type: Boolean """ -function delete_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "DELETE", "/canary/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) = synthetics( + "DELETE", "/canary/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_canary( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -271,14 +263,13 @@ Region. You can find the home Region of a group within its ARN. ARN, or the group ID as the GroupIdentifier. """ -function delete_group(groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( +delete_group(groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics( "DELETE", "/group/$(groupIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_group( groupIdentifier, params::AbstractDict{String}; @@ -321,11 +312,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results. """ -function describe_canaries(; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "POST", "/canaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_canaries(; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics("POST", "/canaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_canaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -362,11 +350,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token that indicates that there is more data available. You can use this token in a subsequent DescribeCanariesLastRun operation to retrieve the next set of results. """ -function describe_canaries_last_run(; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( +describe_canaries_last_run(; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics( "POST", "/canaries/last-run"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_canaries_last_run( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -394,11 +381,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token that indicates that there is more data available. You can use this token in a subsequent DescribeRuntimeVersions operation to retrieve the next set of results. """ -function describe_runtime_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( +describe_runtime_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics( "POST", "/runtime-versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_runtime_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -424,17 +410,15 @@ exists. group ID as the GroupIdentifier. """ -function disassociate_resource( +disassociate_resource( ResourceArn, groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = synthetics( + "PATCH", + "/group/$(groupIdentifier)/disassociate", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return synthetics( - "PATCH", - "/group/$(groupIdentifier)/disassociate", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_resource( ResourceArn, groupIdentifier, @@ -463,11 +447,9 @@ that you want. To get a list of canaries and their names, use DescribeCanaries. - `name`: The name of the canary that you want details for. """ -function get_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "GET", "/canary/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) = synthetics( + "GET", "/canary/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_canary( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -496,14 +478,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token that indicates that there is more data available. You can use this token in a subsequent GetCanaryRuns operation to retrieve the next set of results. """ -function get_canary_runs(name; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "POST", - "/canary/$(name)/runs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_canary_runs(name; aws_config::AbstractAWSConfig=current_aws_config()) = synthetics( + "POST", + "/canary/$(name)/runs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_canary_runs( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -528,14 +508,12 @@ operation from any Region. group name, the ARN, or the group ID as the GroupIdentifier. """ -function get_group(groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "GET", - "/group/$(groupIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_group(groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = synthetics( + "GET", + "/group/$(groupIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_group( groupIdentifier, params::AbstractDict{String}; @@ -568,16 +546,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results. """ -function list_associated_groups( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return synthetics( +list_associated_groups(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics( "POST", "/resource/$(resourceArn)/groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_associated_groups( resourceArn, params::AbstractDict{String}; @@ -611,16 +586,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results. """ -function list_group_resources( - groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return synthetics( +list_group_resources(groupIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics( "POST", "/group/$(groupIdentifier)/resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_group_resources( groupIdentifier, params::AbstractDict{String}; @@ -649,11 +621,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results. """ -function list_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "POST", "/groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics("POST", "/groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -674,16 +643,13 @@ Displays the tags associated with a canary or group. format of a group is arn:aws:synthetics:Region:account-id:group:group-name """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return synthetics( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -711,14 +677,12 @@ schedule, use GetCanary. DescribeCanaries. """ -function start_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "POST", - "/canary/$(name)/start"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) = synthetics( + "POST", + "/canary/$(name)/start"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_canary( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -745,14 +709,12 @@ running again with the canary’s current schedule at any point in the future. use ListCanaries. """ -function stop_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "POST", - "/canary/$(name)/stop"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) = synthetics( + "POST", + "/canary/$(name)/stop"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_canary( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -786,15 +748,14 @@ value for that tag. You can associate as many as 50 tags with a canary or group. a group is arn:aws:synthetics:Region:account-id:group:group-name """ -function tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( +tag_resource(Tags, resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics( "POST", "/tags/$(resourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Tags, resourceArn, @@ -823,17 +784,14 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return synthetics( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + synthetics( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -900,11 +858,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information about the subnet and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC. """ -function update_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) - return synthetics( - "PATCH", "/canary/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_canary(name; aws_config::AbstractAWSConfig=current_aws_config()) = synthetics( + "PATCH", "/canary/$(name)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_canary( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/taxsettings.jl b/src/services/taxsettings.jl index abd4c264a..62b1f9d2f 100644 --- a/src/services/taxsettings.jl +++ b/src/services/taxsettings.jl @@ -17,17 +17,15 @@ Cost Management console instead. - `account_ids`: List of unique account identifiers. """ -function batch_delete_tax_registration( +batch_delete_tax_registration( accountIds; aws_config::AbstractAWSConfig=current_aws_config() +) = taxsettings( + "POST", + "/BatchDeleteTaxRegistration", + Dict{String,Any}("accountIds" => accountIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return taxsettings( - "POST", - "/BatchDeleteTaxRegistration", - Dict{String,Any}("accountIds" => accountIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_delete_tax_registration( accountIds, params::AbstractDict{String}; @@ -103,19 +101,17 @@ The sector valid values are Business and Individual. mentioned in putEntries. """ -function batch_put_tax_registration( +batch_put_tax_registration( accountIds, taxRegistrationEntry; aws_config::AbstractAWSConfig=current_aws_config() +) = taxsettings( + "POST", + "/BatchPutTaxRegistration", + Dict{String,Any}( + "accountIds" => accountIds, "taxRegistrationEntry" => taxRegistrationEntry + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return taxsettings( - "POST", - "/BatchPutTaxRegistration", - Dict{String,Any}( - "accountIds" => accountIds, "taxRegistrationEntry" => taxRegistrationEntry - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_put_tax_registration( accountIds, taxRegistrationEntry, @@ -154,14 +150,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys deleted. If this isn't passed, the account ID corresponding to the credentials of the API caller will be used for this parameter. """ -function delete_tax_registration(; aws_config::AbstractAWSConfig=current_aws_config()) - return taxsettings( - "POST", - "/DeleteTaxRegistration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_tax_registration(; aws_config::AbstractAWSConfig=current_aws_config()) = taxsettings( + "POST", + "/DeleteTaxRegistration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_tax_registration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -184,14 +178,12 @@ Retrieves tax registration for a single account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountId"`: Your unique account identifier. """ -function get_tax_registration(; aws_config::AbstractAWSConfig=current_aws_config()) - return taxsettings( - "POST", - "/GetTaxRegistration"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_tax_registration(; aws_config::AbstractAWSConfig=current_aws_config()) = taxsettings( + "POST", + "/GetTaxRegistration"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_tax_registration( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -216,22 +208,20 @@ Downloads your tax documents to the Amazon S3 bucket that you specify in your re - `tax_document_metadata`: The metadata for your tax document. """ -function get_tax_registration_document( +get_tax_registration_document( destinationS3Location, taxDocumentMetadata; aws_config::AbstractAWSConfig=current_aws_config(), +) = taxsettings( + "POST", + "/GetTaxRegistrationDocument", + Dict{String,Any}( + "destinationS3Location" => destinationS3Location, + "taxDocumentMetadata" => taxDocumentMetadata, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return taxsettings( - "POST", - "/GetTaxRegistrationDocument", - Dict{String,Any}( - "destinationS3Location" => destinationS3Location, - "taxDocumentMetadata" => taxDocumentMetadata, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_tax_registration_document( destinationS3Location, taxDocumentMetadata, @@ -268,14 +258,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: Number of accountDetails results you want in one response. - `"nextToken"`: The token to retrieve the next set of results. """ -function list_tax_registrations(; aws_config::AbstractAWSConfig=current_aws_config()) - return taxsettings( - "POST", - "/ListTaxRegistrations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tax_registrations(; aws_config::AbstractAWSConfig=current_aws_config()) = taxsettings( + "POST", + "/ListTaxRegistrations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tax_registrations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -348,17 +336,15 @@ Individual. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"accountId"`: Your unique account identifier. """ -function put_tax_registration( +put_tax_registration( taxRegistrationEntry; aws_config::AbstractAWSConfig=current_aws_config() +) = taxsettings( + "POST", + "/PutTaxRegistration", + Dict{String,Any}("taxRegistrationEntry" => taxRegistrationEntry); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return taxsettings( - "POST", - "/PutTaxRegistration", - Dict{String,Any}("taxRegistrationEntry" => taxRegistrationEntry); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_tax_registration( taxRegistrationEntry, params::AbstractDict{String}; diff --git a/src/services/textract.jl b/src/services/textract.jl index f3ad940b7..bb5b26522 100644 --- a/src/services/textract.jl +++ b/src/services/textract.jl @@ -51,16 +51,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"QueriesConfig"`: Contains Queries and the alias for those Queries, as determined by the input. """ -function analyze_document( +analyze_document( Document, FeatureTypes; aws_config::AbstractAWSConfig=current_aws_config() +) = textract( + "AnalyzeDocument", + Dict{String,Any}("Document" => Document, "FeatureTypes" => FeatureTypes); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "AnalyzeDocument", - Dict{String,Any}("Document" => Document, "FeatureTypes" => FeatureTypes); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function analyze_document( Document, FeatureTypes, @@ -95,14 +93,12 @@ Contains all other information a receipt, such as header information or the vend - `document`: """ -function analyze_expense(Document; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "AnalyzeExpense", - Dict{String,Any}("Document" => Document); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +analyze_expense(Document; aws_config::AbstractAWSConfig=current_aws_config()) = textract( + "AnalyzeExpense", + Dict{String,Any}("Document" => Document); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function analyze_expense( Document, params::AbstractDict{String}; @@ -131,14 +127,12 @@ Geometry data. - `document_pages`: The document being passed to AnalyzeID. """ -function analyze_id(DocumentPages; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "AnalyzeID", - Dict{String,Any}("DocumentPages" => DocumentPages); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +analyze_id(DocumentPages; aws_config::AbstractAWSConfig=current_aws_config()) = textract( + "AnalyzeID", + Dict{String,Any}("DocumentPages" => DocumentPages); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function analyze_id( DocumentPages, params::AbstractDict{String}; @@ -178,20 +172,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The description to be assigned to the adapter being created. - `"Tags"`: A list of tags to be added to the adapter. """ -function create_adapter( +create_adapter( AdapterName, FeatureTypes; aws_config::AbstractAWSConfig=current_aws_config() +) = textract( + "CreateAdapter", + Dict{String,Any}( + "AdapterName" => AdapterName, + "FeatureTypes" => FeatureTypes, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "CreateAdapter", - Dict{String,Any}( - "AdapterName" => AdapterName, - "FeatureTypes" => FeatureTypes, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_adapter( AdapterName, FeatureTypes, @@ -241,24 +233,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys to encrypt your documents. - `"Tags"`: A set of tags (key-value pairs) that you want to attach to the adapter version. """ -function create_adapter_version( +create_adapter_version( AdapterId, DatasetConfig, OutputConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = textract( + "CreateAdapterVersion", + Dict{String,Any}( + "AdapterId" => AdapterId, + "DatasetConfig" => DatasetConfig, + "OutputConfig" => OutputConfig, + "ClientRequestToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "CreateAdapterVersion", - Dict{String,Any}( - "AdapterId" => AdapterId, - "DatasetConfig" => DatasetConfig, - "OutputConfig" => OutputConfig, - "ClientRequestToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_adapter_version( AdapterId, DatasetConfig, @@ -296,14 +286,12 @@ the ID. - `adapter_id`: A string containing a unique ID for the adapter to be deleted. """ -function delete_adapter(AdapterId; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "DeleteAdapter", - Dict{String,Any}("AdapterId" => AdapterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_adapter(AdapterId; aws_config::AbstractAWSConfig=current_aws_config()) = textract( + "DeleteAdapter", + Dict{String,Any}("AdapterId" => AdapterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_adapter( AdapterId, params::AbstractDict{String}; @@ -333,16 +321,14 @@ AdapterVersion. - `adapter_version`: Specifies the adapter version to be deleted. """ -function delete_adapter_version( +delete_adapter_version( AdapterId, AdapterVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = textract( + "DeleteAdapterVersion", + Dict{String,Any}("AdapterId" => AdapterId, "AdapterVersion" => AdapterVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "DeleteAdapterVersion", - Dict{String,Any}("AdapterId" => AdapterId, "AdapterVersion" => AdapterVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_adapter_version( AdapterId, AdapterVersion, @@ -386,14 +372,13 @@ see Document Text Detection. you might not need to base64-encode image bytes that are passed using the Bytes field. """ -function detect_document_text(Document; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( +detect_document_text(Document; aws_config::AbstractAWSConfig=current_aws_config()) = + textract( "DetectDocumentText", Dict{String,Any}("Document" => Document); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function detect_document_text( Document, params::AbstractDict{String}; @@ -420,14 +405,12 @@ information on AdapterName, Description, CreationTime, AutoUpdate status, and Fe - `adapter_id`: A string containing a unique ID for the adapter. """ -function get_adapter(AdapterId; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "GetAdapter", - Dict{String,Any}("AdapterId" => AdapterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_adapter(AdapterId; aws_config::AbstractAWSConfig=current_aws_config()) = textract( + "GetAdapter", + Dict{String,Any}("AdapterId" => AdapterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_adapter( AdapterId, params::AbstractDict{String}; @@ -458,16 +441,14 @@ Tags and EvaluationMetrics. information for. """ -function get_adapter_version( +get_adapter_version( AdapterId, AdapterVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = textract( + "GetAdapterVersion", + Dict{String,Any}("AdapterId" => AdapterId, "AdapterVersion" => AdapterVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "GetAdapterVersion", - Dict{String,Any}("AdapterId" => AdapterId, "AdapterVersion" => AdapterVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_adapter_version( AdapterId, AdapterVersion, @@ -539,14 +520,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Textract returns a pagination token in the response. You can use this pagination token to retrieve the next set of blocks. """ -function get_document_analysis(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "GetDocumentAnalysis", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_document_analysis(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = textract( + "GetDocumentAnalysis", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_document_analysis( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -595,16 +574,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Textract returns a pagination token in the response. You can use this pagination token to retrieve the next set of blocks. """ -function get_document_text_detection( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return textract( +get_document_text_detection(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + textract( "GetDocumentTextDetection", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_document_text_detection( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -649,14 +625,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys retrieve), Amazon Textract returns a pagination token in the response. You can use this pagination token to retrieve the next set of blocks. """ -function get_expense_analysis(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "GetExpenseAnalysis", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_expense_analysis(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = textract( + "GetExpenseAnalysis", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_expense_analysis( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -694,14 +668,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token in the response. You can use this pagination token to retrieve the next set of lending results. """ -function get_lending_analysis(JobId; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "GetLendingAnalysis", - Dict{String,Any}("JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_lending_analysis(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = textract( + "GetLendingAnalysis", + Dict{String,Any}("JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_lending_analysis( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -734,16 +706,13 @@ the initial call to StartLendingAnalysis. returned from StartLendingAnalysis. A JobId value is only valid for 7 days. """ -function get_lending_analysis_summary( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return textract( +get_lending_analysis_summary(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + textract( "GetLendingAnalysisSummary", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_lending_analysis_summary( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -775,11 +744,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Identifies the next page of results to return when listing adapter versions. """ -function list_adapter_versions(; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "ListAdapterVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_adapter_versions(; aws_config::AbstractAWSConfig=current_aws_config()) = + textract("ListAdapterVersions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_adapter_versions( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -806,9 +772,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return when listing adapters. - `"NextToken"`: Identifies the next page of results to return when listing adapters. """ -function list_adapters(; aws_config::AbstractAWSConfig=current_aws_config()) - return textract("ListAdapters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_adapters(; aws_config::AbstractAWSConfig=current_aws_config()) = + textract("ListAdapters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_adapters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -828,16 +793,13 @@ Lists all tags for an Amazon Textract resource. for. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return textract( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + textract( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -898,18 +860,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation. - `"QueriesConfig"`: """ -function start_document_analysis( +start_document_analysis( DocumentLocation, FeatureTypes; aws_config::AbstractAWSConfig=current_aws_config() +) = textract( + "StartDocumentAnalysis", + Dict{String,Any}( + "DocumentLocation" => DocumentLocation, "FeatureTypes" => FeatureTypes + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "StartDocumentAnalysis", - Dict{String,Any}( - "DocumentLocation" => DocumentLocation, "FeatureTypes" => FeatureTypes - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_document_analysis( DocumentLocation, FeatureTypes, @@ -970,16 +930,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Textract will save the results internally to be accessed with the GetDocumentTextDetection operation. """ -function start_document_text_detection( +start_document_text_detection( DocumentLocation; aws_config::AbstractAWSConfig=current_aws_config() +) = textract( + "StartDocumentTextDetection", + Dict{String,Any}("DocumentLocation" => DocumentLocation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "StartDocumentTextDetection", - Dict{String,Any}("DocumentLocation" => DocumentLocation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_document_text_detection( DocumentLocation, params::AbstractDict{String}; @@ -1036,16 +994,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Amazon Textract will save the results internally to be accessed by the GetExpenseAnalysis operation. """ -function start_expense_analysis( +start_expense_analysis( DocumentLocation; aws_config::AbstractAWSConfig=current_aws_config() +) = textract( + "StartExpenseAnalysis", + Dict{String,Any}("DocumentLocation" => DocumentLocation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "StartExpenseAnalysis", - Dict{String,Any}("DocumentLocation" => DocumentLocation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_expense_analysis( DocumentLocation, params::AbstractDict{String}; @@ -1104,16 +1060,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NotificationChannel"`: - `"OutputConfig"`: """ -function start_lending_analysis( +start_lending_analysis( DocumentLocation; aws_config::AbstractAWSConfig=current_aws_config() +) = textract( + "StartLendingAnalysis", + Dict{String,Any}("DocumentLocation" => DocumentLocation); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return textract( - "StartLendingAnalysis", - Dict{String,Any}("DocumentLocation" => DocumentLocation); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_lending_analysis( DocumentLocation, params::AbstractDict{String}; @@ -1142,14 +1096,13 @@ Adds one or more tags to the specified resource. - `tags`: A set of tags (key-value pairs) that you want to assign to the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + textract( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -1182,16 +1135,13 @@ Removes any tags with the specified keys from the specified resource. ResourceARN. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return textract( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + textract( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1228,14 +1178,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AutoUpdate"`: The new auto-update status to be applied to the adapter. - `"Description"`: The new description to be applied to the adapter. """ -function update_adapter(AdapterId; aws_config::AbstractAWSConfig=current_aws_config()) - return textract( - "UpdateAdapter", - Dict{String,Any}("AdapterId" => AdapterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_adapter(AdapterId; aws_config::AbstractAWSConfig=current_aws_config()) = textract( + "UpdateAdapter", + Dict{String,Any}("AdapterId" => AdapterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_adapter( AdapterId, params::AbstractDict{String}; diff --git a/src/services/timestream_influxdb.jl b/src/services/timestream_influxdb.jl index 38eb13b1f..57281e422 100644 --- a/src/services/timestream_influxdb.jl +++ b/src/services/timestream_influxdb.jl @@ -53,7 +53,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a Secret created in Amazon Secrets Manager in your account. """ -function create_db_instance( +create_db_instance( allocatedStorage, dbInstanceType, name, @@ -61,21 +61,19 @@ function create_db_instance( vpcSecurityGroupIds, vpcSubnetIds; aws_config::AbstractAWSConfig=current_aws_config(), +) = timestream_influxdb( + "CreateDbInstance", + Dict{String,Any}( + "allocatedStorage" => allocatedStorage, + "dbInstanceType" => dbInstanceType, + "name" => name, + "password" => password, + "vpcSecurityGroupIds" => vpcSecurityGroupIds, + "vpcSubnetIds" => vpcSubnetIds, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_influxdb( - "CreateDbInstance", - Dict{String,Any}( - "allocatedStorage" => allocatedStorage, - "dbInstanceType" => dbInstanceType, - "name" => name, - "password" => password, - "vpcSecurityGroupIds" => vpcSecurityGroupIds, - "vpcSubnetIds" => vpcSubnetIds, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_db_instance( allocatedStorage, dbInstanceType, @@ -123,14 +121,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"parameters"`: A list of the parameters that comprise the DB parameter group. - `"tags"`: A list of key-value pairs to associate with the DB parameter group. """ -function create_db_parameter_group(name; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_influxdb( +create_db_parameter_group(name; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "CreateDbParameterGroup", Dict{String,Any}("name" => name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_db_parameter_group( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -152,14 +149,13 @@ Deletes a Timestream for InfluxDB DB instance. - `identifier`: The id of the DB instance. """ -function delete_db_instance(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_influxdb( +delete_db_instance(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "DeleteDbInstance", Dict{String,Any}("identifier" => identifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_db_instance( identifier, params::AbstractDict{String}; @@ -185,14 +181,13 @@ Returns a Timestream for InfluxDB DB instance. - `identifier`: The id of the DB instance. """ -function get_db_instance(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_influxdb( +get_db_instance(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "GetDbInstance", Dict{String,Any}("identifier" => identifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_db_instance( identifier, params::AbstractDict{String}; @@ -218,16 +213,13 @@ Returns a Timestream for InfluxDB DB parameter group. - `identifier`: The id of the DB parameter group. """ -function get_db_parameter_group( - identifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_influxdb( +get_db_parameter_group(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "GetDbParameterGroup", Dict{String,Any}("identifier" => identifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_db_parameter_group( identifier, params::AbstractDict{String}; @@ -258,11 +250,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation. """ -function list_db_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_influxdb( +list_db_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "ListDbInstances"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_db_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -286,11 +277,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation. """ -function list_db_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_influxdb( +list_db_parameter_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "ListDbParameterGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_db_parameter_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -312,16 +302,13 @@ A list of tags applied to the resource. - `resource_arn`: The Amazon Resource Name (ARN) of the tagged resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_influxdb( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "ListTagsForResource", Dict{String,Any}("resourceArn" => resourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -349,14 +336,13 @@ Timestream for InfluxDB resources. - `tags`: A list of tags used to categorize and track resources. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_influxdb( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "TagResource", Dict{String,Any}("resourceArn" => resourceArn, "tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -388,16 +374,13 @@ Removes the tag from the specified resource. - `tag_keys`: The keys used to identify the tags. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_influxdb( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "UntagResource", Dict{String,Any}("resourceArn" => resourceArn, "tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -429,20 +412,22 @@ Updates a Timestream for InfluxDB DB instance. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"dbInstanceType"`: The Timestream for InfluxDB DB instance type to run InfluxDB on. - `"dbParameterGroupIdentifier"`: The id of the DB parameter group to assign to your DB instance. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency. +- `"deploymentType"`: Specifies whether the DB instance will be deployed as a standalone + instance or with a Multi-AZ standby for high availability. - `"logDeliveryConfiguration"`: Configuration for sending InfluxDB engine logs to send to specified S3 bucket. """ -function update_db_instance(identifier; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_influxdb( +update_db_instance(identifier; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_influxdb( "UpdateDbInstance", Dict{String,Any}("identifier" => identifier); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_db_instance( identifier, params::AbstractDict{String}; diff --git a/src/services/timestream_query.jl b/src/services/timestream_query.jl index 786d3caa7..5248223fa 100644 --- a/src/services/timestream_query.jl +++ b/src/services/timestream_query.jl @@ -18,14 +18,13 @@ indicating that the query has already been canceled. See code sample for details of the query result. """ -function cancel_query(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_query( +cancel_query(QueryId; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_query( "CancelQuery", Dict{String,Any}("QueryId" => QueryId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function cancel_query( QueryId, params::AbstractDict{String}; @@ -85,7 +84,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: A list of key-value pairs to label the scheduled query. - `"TargetConfiguration"`: Configuration used for writing the result of a query. """ -function create_scheduled_query( +create_scheduled_query( ErrorReportConfiguration, Name, NotificationConfiguration, @@ -93,22 +92,20 @@ function create_scheduled_query( ScheduleConfiguration, ScheduledQueryExecutionRoleArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = timestream_query( + "CreateScheduledQuery", + Dict{String,Any}( + "ErrorReportConfiguration" => ErrorReportConfiguration, + "Name" => Name, + "NotificationConfiguration" => NotificationConfiguration, + "QueryString" => QueryString, + "ScheduleConfiguration" => ScheduleConfiguration, + "ScheduledQueryExecutionRoleArn" => ScheduledQueryExecutionRoleArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_query( - "CreateScheduledQuery", - Dict{String,Any}( - "ErrorReportConfiguration" => ErrorReportConfiguration, - "Name" => Name, - "NotificationConfiguration" => NotificationConfiguration, - "QueryString" => QueryString, - "ScheduleConfiguration" => ScheduleConfiguration, - "ScheduledQueryExecutionRoleArn" => ScheduledQueryExecutionRoleArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_scheduled_query( ErrorReportConfiguration, Name, @@ -151,16 +148,14 @@ Deletes a given scheduled query. This is an irreversible operation. - `scheduled_query_arn`: The ARN of the scheduled query. """ -function delete_scheduled_query( +delete_scheduled_query( ScheduledQueryArn; aws_config::AbstractAWSConfig=current_aws_config() +) = timestream_query( + "DeleteScheduledQuery", + Dict{String,Any}("ScheduledQueryArn" => ScheduledQueryArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_query( - "DeleteScheduledQuery", - Dict{String,Any}("ScheduledQueryArn" => ScheduledQueryArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_scheduled_query( ScheduledQueryArn, params::AbstractDict{String}; @@ -187,11 +182,10 @@ configured maximum TCUs the service can use for your query workload. You're char for the duration of compute units used for your workloads. """ -function describe_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_query( +describe_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_query( "DescribeAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -217,11 +211,9 @@ require better control over the client-side implementation For detailed inform how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern. """ -function describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_query( - "DescribeEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = timestream_query( + "DescribeEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -240,16 +232,14 @@ Provides detailed information about a scheduled query. - `scheduled_query_arn`: The ARN of the scheduled query. """ -function describe_scheduled_query( +describe_scheduled_query( ScheduledQueryArn; aws_config::AbstractAWSConfig=current_aws_config() +) = timestream_query( + "DescribeScheduledQuery", + Dict{String,Any}("ScheduledQueryArn" => ScheduledQueryArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_query( - "DescribeScheduledQuery", - Dict{String,Any}("ScheduledQueryArn" => ScheduledQueryArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_scheduled_query( ScheduledQueryArn, params::AbstractDict{String}; @@ -282,20 +272,18 @@ end Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: Not used. """ -function execute_scheduled_query( +execute_scheduled_query( InvocationTime, ScheduledQueryArn; aws_config::AbstractAWSConfig=current_aws_config() +) = timestream_query( + "ExecuteScheduledQuery", + Dict{String,Any}( + "InvocationTime" => InvocationTime, + "ScheduledQueryArn" => ScheduledQueryArn, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_query( - "ExecuteScheduledQuery", - Dict{String,Any}( - "InvocationTime" => InvocationTime, - "ScheduledQueryArn" => ScheduledQueryArn, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function execute_scheduled_query( InvocationTime, ScheduledQueryArn, @@ -335,11 +323,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListScheduledQueriesRequest. - `"NextToken"`: A pagination token to resume pagination. """ -function list_scheduled_queries(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_query( +list_scheduled_queries(; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_query( "ListScheduledQueries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_scheduled_queries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -366,16 +353,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of tags to return. - `"NextToken"`: A pagination token to resume pagination. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_query( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_query( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -408,14 +392,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ValidateOnly"`: By setting this value to true, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use. """ -function prepare_query(QueryString; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_query( +prepare_query(QueryString; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_query( "PrepareQuery", Dict{String,Any}("QueryString" => QueryString); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function prepare_query( QueryString, params::AbstractDict{String}; @@ -490,14 +473,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys have the same query string in the query requests, the query will fail with an Invalid pagination token error. """ -function query(QueryString; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_query( - "Query", - Dict{String,Any}("QueryString" => QueryString, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +query(QueryString; aws_config::AbstractAWSConfig=current_aws_config()) = timestream_query( + "Query", + Dict{String,Any}("QueryString" => QueryString, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function query( QueryString, params::AbstractDict{String}; @@ -533,14 +514,13 @@ allocation tracking. - `tags`: The tags to be assigned to the Timestream resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_query( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_query( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -574,16 +554,13 @@ Removes the association of tags from a Timestream query resource. this list will be removed from the Timestream resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_query( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_query( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -622,13 +599,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas. -- `"QueryPricingModel"`: The pricing model for queries in an account. +- `"QueryPricingModel"`: The pricing model for queries in an account. The + QueryPricingModel parameter is used by several Timestream operations; however, the + UpdateAccountSettings API operation doesn't recognize any values other than COMPUTE_UNITS. """ -function update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_query( +update_account_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_query( "UpdateAccountSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_account_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -651,16 +629,14 @@ Update a scheduled query. - `state`: State of the scheduled query. """ -function update_scheduled_query( +update_scheduled_query( ScheduledQueryArn, State; aws_config::AbstractAWSConfig=current_aws_config() +) = timestream_query( + "UpdateScheduledQuery", + Dict{String,Any}("ScheduledQueryArn" => ScheduledQueryArn, "State" => State); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_query( - "UpdateScheduledQuery", - Dict{String,Any}("ScheduledQueryArn" => ScheduledQueryArn, "State" => State); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_scheduled_query( ScheduledQueryArn, State, diff --git a/src/services/timestream_write.jl b/src/services/timestream_write.jl index 8ee0566e8..67ca4728d 100644 --- a/src/services/timestream_write.jl +++ b/src/services/timestream_write.jl @@ -29,26 +29,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DataModelConfiguration"`: - `"RecordVersion"`: """ -function create_batch_load_task( +create_batch_load_task( DataSourceConfiguration, ReportConfiguration, TargetDatabaseName, TargetTableName; aws_config::AbstractAWSConfig=current_aws_config(), +) = timestream_write( + "CreateBatchLoadTask", + Dict{String,Any}( + "DataSourceConfiguration" => DataSourceConfiguration, + "ReportConfiguration" => ReportConfiguration, + "TargetDatabaseName" => TargetDatabaseName, + "TargetTableName" => TargetTableName, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_write( - "CreateBatchLoadTask", - Dict{String,Any}( - "DataSourceConfiguration" => DataSourceConfiguration, - "ReportConfiguration" => ReportConfiguration, - "TargetDatabaseName" => TargetDatabaseName, - "TargetTableName" => TargetTableName, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_batch_load_task( DataSourceConfiguration, ReportConfiguration, @@ -95,14 +93,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information, see Amazon Web Services managed keys. - `"Tags"`: A list of key-value pairs to label the table. """ -function create_database(DatabaseName; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( +create_database(DatabaseName; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "CreateDatabase", Dict{String,Any}("DatabaseName" => DatabaseName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_database( DatabaseName, params::AbstractDict{String}; @@ -141,16 +138,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Schema"`: The schema of the table. - `"Tags"`: A list of key-value pairs to label the table. """ -function create_table( - DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_write( +create_table(DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "CreateTable", Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_table( DatabaseName, TableName, @@ -186,14 +180,13 @@ details. - `database_name`: The name of the Timestream database to be deleted. """ -function delete_database(DatabaseName; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( +delete_database(DatabaseName; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "DeleteDatabase", Dict{String,Any}("DatabaseName" => DatabaseName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_database( DatabaseName, params::AbstractDict{String}; @@ -224,16 +217,13 @@ details. - `table_name`: The name of the Timestream table to be deleted. """ -function delete_table( - DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_write( +delete_table(DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "DeleteTable", Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_table( DatabaseName, TableName, @@ -265,16 +255,13 @@ progress, and other details. Service quotas apply. See code sample for details. - `task_id`: The ID of the batch load task. """ -function describe_batch_load_task( - TaskId; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_write( +describe_batch_load_task(TaskId; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "DescribeBatchLoadTask", Dict{String,Any}("TaskId" => TaskId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_batch_load_task( TaskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -298,14 +285,13 @@ apply. See code sample for details. - `database_name`: The name of the Timestream database. """ -function describe_database(DatabaseName; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( +describe_database(DatabaseName; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "DescribeDatabase", Dict{String,Any}("DatabaseName" => DatabaseName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_database( DatabaseName, params::AbstractDict{String}; @@ -336,11 +322,9 @@ information on how and when to use and implement DescribeEndpoints, see The Endp Discovery Pattern. """ -function describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( - "DescribeEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_endpoints(; aws_config::AbstractAWSConfig=current_aws_config()) = timestream_write( + "DescribeEndpoints"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_endpoints( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -362,16 +346,14 @@ for details. - `table_name`: The name of the Timestream table. """ -function describe_table( +describe_table( DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = timestream_write( + "DescribeTable", + Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_write( - "DescribeTable", - Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_table( DatabaseName, TableName, @@ -408,11 +390,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previously truncated response. - `"TaskStatus"`: Status of the batch load task. """ -function list_batch_load_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( +list_batch_load_tasks(; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "ListBatchLoadTasks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_batch_load_tasks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -436,11 +417,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation. """ -function list_databases(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( - "ListDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_databases(; aws_config::AbstractAWSConfig=current_aws_config()) = timestream_write( + "ListDatabases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_databases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -465,11 +444,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation. """ -function list_tables(; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( - "ListTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_tables(; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write("ListTables"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_tables( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -489,16 +465,13 @@ end Resource Name (ARN). """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_write( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -524,14 +497,13 @@ end - `task_id`: The ID of the batch load task to resume. """ -function resume_batch_load_task(TaskId; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( +resume_batch_load_task(TaskId; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "ResumeBatchLoadTask", Dict{String,Any}("TaskId" => TaskId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function resume_batch_load_task( TaskId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -557,14 +529,13 @@ allocation tracking. - `tags`: The tags to be assigned to the Timestream resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return timestream_write( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -598,16 +569,13 @@ end this list will be removed from the Timestream resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_write( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -648,16 +616,14 @@ details. arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias """ -function update_database( +update_database( DatabaseName, KmsKeyId; aws_config::AbstractAWSConfig=current_aws_config() +) = timestream_write( + "UpdateDatabase", + Dict{String,Any}("DatabaseName" => DatabaseName, "KmsKeyId" => KmsKeyId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_write( - "UpdateDatabase", - Dict{String,Any}("DatabaseName" => DatabaseName, "KmsKeyId" => KmsKeyId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_database( DatabaseName, KmsKeyId, @@ -702,16 +668,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys store. - `"Schema"`: The schema of the table. """ -function update_table( - DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config() -) - return timestream_write( +update_table(DatabaseName, TableName; aws_config::AbstractAWSConfig=current_aws_config()) = + timestream_write( "UpdateTable", Dict{String,Any}("DatabaseName" => DatabaseName, "TableName" => TableName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_table( DatabaseName, TableName, @@ -781,18 +744,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ValidationException will be thrown. In other words, a record must contain dimensions with unique names. """ -function write_records( +write_records( DatabaseName, Records, TableName; aws_config::AbstractAWSConfig=current_aws_config() +) = timestream_write( + "WriteRecords", + Dict{String,Any}( + "DatabaseName" => DatabaseName, "Records" => Records, "TableName" => TableName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return timestream_write( - "WriteRecords", - Dict{String,Any}( - "DatabaseName" => DatabaseName, "Records" => Records, "TableName" => TableName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function write_records( DatabaseName, Records, diff --git a/src/services/tnb.jl b/src/services/tnb.jl index 792c86a3e..30c573bf7 100644 --- a/src/services/tnb.jl +++ b/src/services/tnb.jl @@ -15,16 +15,14 @@ network, such as network instance instantiation or termination. - `ns_lcm_op_occ_id`: The identifier of the network operation. """ -function cancel_sol_network_operation( +cancel_sol_network_operation( nsLcmOpOccId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "POST", + "/sol/nslcm/v1/ns_lcm_op_occs/$(nsLcmOpOccId)/cancel"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "POST", - "/sol/nslcm/v1/ns_lcm_op_occs/$(nsLcmOpOccId)/cancel"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_sol_network_operation( nsLcmOpOccId, params::AbstractDict{String}; @@ -58,14 +56,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs. """ -function create_sol_function_package(; aws_config::AbstractAWSConfig=current_aws_config()) - return tnb( - "POST", - "/sol/vnfpkgm/v1/vnf_packages"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_sol_function_package(; aws_config::AbstractAWSConfig=current_aws_config()) = tnb( + "POST", + "/sol/vnfpkgm/v1/vnf_packages"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_sol_function_package( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -101,17 +97,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs. """ -function create_sol_network_instance( +create_sol_network_instance( nsName, nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "POST", + "/sol/nslcm/v1/ns_instances", + Dict{String,Any}("nsName" => nsName, "nsdInfoId" => nsdInfoId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "POST", - "/sol/nslcm/v1/ns_instances", - Dict{String,Any}("nsName" => nsName, "nsdInfoId" => nsdInfoId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sol_network_instance( nsName, nsdInfoId, @@ -154,14 +148,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs. """ -function create_sol_network_package(; aws_config::AbstractAWSConfig=current_aws_config()) - return tnb( - "POST", - "/sol/nsd/v1/ns_descriptors"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_sol_network_package(; aws_config::AbstractAWSConfig=current_aws_config()) = tnb( + "POST", + "/sol/nsd/v1/ns_descriptors"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_sol_network_package( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -188,16 +180,13 @@ must be in a disabled state. To disable a function package, see UpdateSolFunctio - `vnf_pkg_id`: ID of the function package. """ -function delete_sol_function_package( - vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config() -) - return tnb( +delete_sol_function_package(vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config()) = + tnb( "DELETE", "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_sol_function_package( vnfPkgId, params::AbstractDict{String}; @@ -226,16 +215,14 @@ TerminateSolNetworkInstance. - `ns_instance_id`: Network instance ID. """ -function delete_sol_network_instance( +delete_sol_network_instance( nsInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "DELETE", + "/sol/nslcm/v1/ns_instances/$(nsInstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "DELETE", - "/sol/nslcm/v1/ns_instances/$(nsInstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sol_network_instance( nsInstanceId, params::AbstractDict{String}; @@ -263,16 +250,13 @@ in a disable state. To disable a network package, see UpdateSolNetworkPackage. - `nsd_info_id`: ID of the network service descriptor in the network package. """ -function delete_sol_network_package( - nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config() -) - return tnb( +delete_sol_network_package(nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config()) = + tnb( "DELETE", "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_sol_network_package( nsdInfoId, params::AbstractDict{String}; @@ -291,7 +275,7 @@ end get_sol_function_instance(vnf_instance_id) get_sol_function_instance(vnf_instance_id, params::Dict{String,<:Any}) -Gets the details of a network function instance, including the instantation state and +Gets the details of a network function instance, including the instantiation state and metadata from the function package descriptor in the network function package. A network function instance is a function in a function package . @@ -299,16 +283,14 @@ function instance is a function in a function package . - `vnf_instance_id`: ID of the network function. """ -function get_sol_function_instance( +get_sol_function_instance( vnfInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "GET", + "/sol/vnflcm/v1/vnf_instances/$(vnfInstanceId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "GET", - "/sol/vnflcm/v1/vnf_instances/$(vnfInstanceId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sol_function_instance( vnfInstanceId, params::AbstractDict{String}; @@ -337,16 +319,13 @@ the network functions should run on your network.. - `vnf_pkg_id`: ID of the function package. """ -function get_sol_function_package( - vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config() -) - return tnb( +get_sol_function_package(vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config()) = + tnb( "GET", "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_sol_function_package( vnfPkgId, params::AbstractDict{String}; @@ -375,17 +354,15 @@ to describe how the network functions should run on your network. - `vnf_pkg_id`: ID of the function package. """ -function get_sol_function_package_content( +get_sol_function_package_content( Accept, vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "GET", + "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)/package_content", + Dict{String,Any}("headers" => Dict{String,Any}("Accept" => Accept)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "GET", - "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)/package_content", - Dict{String,Any}("headers" => Dict{String,Any}("Accept" => Accept)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sol_function_package_content( Accept, vnfPkgId, @@ -424,17 +401,15 @@ standard to describe how the network functions should run on your network. - `vnf_pkg_id`: ID of the function package. """ -function get_sol_function_package_descriptor( +get_sol_function_package_descriptor( Accept, vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "GET", + "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)/vnfd", + Dict{String,Any}("headers" => Dict{String,Any}("Accept" => Accept)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "GET", - "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)/vnfd", - Dict{String,Any}("headers" => Dict{String,Any}("Accept" => Accept)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sol_function_package_descriptor( Accept, vnfPkgId, @@ -468,16 +443,13 @@ terminate, update, and delete) can be performed. - `ns_instance_id`: ID of the network instance. """ -function get_sol_network_instance( - nsInstanceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return tnb( +get_sol_network_instance(nsInstanceId; aws_config::AbstractAWSConfig=current_aws_config()) = + tnb( "GET", "/sol/nslcm/v1/ns_instances/$(nsInstanceId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_sol_network_instance( nsInstanceId, params::AbstractDict{String}; @@ -504,16 +476,14 @@ your network, such as network instance instantiation or termination. - `ns_lcm_op_occ_id`: The identifier of the network operation. """ -function get_sol_network_operation( +get_sol_network_operation( nsLcmOpOccId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "GET", + "/sol/nslcm/v1/ns_lcm_op_occs/$(nsLcmOpOccId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "GET", - "/sol/nslcm/v1/ns_lcm_op_occs/$(nsLcmOpOccId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sol_network_operation( nsLcmOpOccId, params::AbstractDict{String}; @@ -540,16 +510,13 @@ Services infrastructure you want to deploy them on. - `nsd_info_id`: ID of the network service descriptor in the network package. """ -function get_sol_network_package( - nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config() -) - return tnb( +get_sol_network_package(nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config()) = + tnb( "GET", "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_sol_network_package( nsdInfoId, params::AbstractDict{String}; @@ -577,17 +544,15 @@ Services infrastructure you want to deploy them on. - `nsd_info_id`: ID of the network service descriptor in the network package. """ -function get_sol_network_package_content( +get_sol_network_package_content( Accept, nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "GET", + "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)/nsd_content", + Dict{String,Any}("headers" => Dict{String,Any}("Accept" => Accept)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "GET", - "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)/nsd_content", - Dict{String,Any}("headers" => Dict{String,Any}("Accept" => Accept)); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sol_network_package_content( Accept, nsdInfoId, @@ -622,16 +587,14 @@ network functions on. - `nsd_info_id`: ID of the network service descriptor in the network package. """ -function get_sol_network_package_descriptor( +get_sol_network_package_descriptor( nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "GET", + "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)/nsd"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "GET", - "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)/nsd"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sol_network_package_descriptor( nsdInfoId, params::AbstractDict{String}; @@ -665,20 +628,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. - `"tags"`: A tag is a label that you assign to an Amazon Web Services resource. Each tag - consists of a key and an optional value. When you use this API, the tags are transferred to - the network operation that is created. Use tags to search and filter your resources or - track your Amazon Web Services costs. + consists of a key and an optional value. When you use this API, the tags are only applied + to the network operation that is created. These tags are not applied to the network + instance. Use tags to search and filter your resources or track your Amazon Web Services + costs. """ -function instantiate_sol_network_instance( +instantiate_sol_network_instance( nsInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "POST", + "/sol/nslcm/v1/ns_instances/$(nsInstanceId)/instantiate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "POST", - "/sol/nslcm/v1/ns_instances/$(nsInstanceId)/instantiate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function instantiate_sol_network_instance( nsInstanceId, params::AbstractDict{String}; @@ -705,14 +667,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max_results"`: The maximum number of results to include in the response. - `"nextpage_opaque_marker"`: The token for the next page of results. """ -function list_sol_function_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return tnb( - "GET", - "/sol/vnflcm/v1/vnf_instances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_sol_function_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = tnb( + "GET", + "/sol/vnflcm/v1/vnf_instances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_sol_function_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -739,14 +699,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max_results"`: The maximum number of results to include in the response. - `"nextpage_opaque_marker"`: The token for the next page of results. """ -function list_sol_function_packages(; aws_config::AbstractAWSConfig=current_aws_config()) - return tnb( - "GET", - "/sol/vnfpkgm/v1/vnf_packages"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_sol_function_packages(; aws_config::AbstractAWSConfig=current_aws_config()) = tnb( + "GET", + "/sol/vnfpkgm/v1/vnf_packages"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_sol_function_packages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -772,14 +730,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max_results"`: The maximum number of results to include in the response. - `"nextpage_opaque_marker"`: The token for the next page of results. """ -function list_sol_network_instances(; aws_config::AbstractAWSConfig=current_aws_config()) - return tnb( - "GET", - "/sol/nslcm/v1/ns_instances"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_sol_network_instances(; aws_config::AbstractAWSConfig=current_aws_config()) = tnb( + "GET", + "/sol/nslcm/v1/ns_instances"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_sol_network_instances( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -804,15 +760,15 @@ as network instance instantiation or termination. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"max_results"`: The maximum number of results to include in the response. - `"nextpage_opaque_marker"`: The token for the next page of results. -""" -function list_sol_network_operations(; aws_config::AbstractAWSConfig=current_aws_config()) - return tnb( - "GET", - "/sol/nslcm/v1/ns_lcm_op_occs"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +- `"nsInstanceId"`: Network instance id filter, to retrieve network operations associated + to a network instance. +""" +list_sol_network_operations(; aws_config::AbstractAWSConfig=current_aws_config()) = tnb( + "GET", + "/sol/nslcm/v1/ns_lcm_op_occs"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_sol_network_operations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -838,14 +794,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"max_results"`: The maximum number of results to include in the response. - `"nextpage_opaque_marker"`: The token for the next page of results. """ -function list_sol_network_packages(; aws_config::AbstractAWSConfig=current_aws_config()) - return tnb( - "GET", - "/sol/nsd/v1/ns_descriptors"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_sol_network_packages(; aws_config::AbstractAWSConfig=current_aws_config()) = tnb( + "GET", + "/sol/nsd/v1/ns_descriptors"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_sol_network_packages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -868,16 +822,13 @@ Lists tags for AWS TNB resources. - `resource_arn`: Resource ARN. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return tnb( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + tnb( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -909,17 +860,15 @@ to describe how the network functions should run on your network. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Content-Type"`: Function package content type. """ -function put_sol_function_package_content( +put_sol_function_package_content( file, vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "PUT", + "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)/package_content", + Dict{String,Any}("file" => file); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "PUT", - "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)/package_content", - Dict{String,Any}("file" => file); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_sol_function_package_content( file, vnfPkgId, @@ -951,17 +900,15 @@ Services infrastructure you want to deploy them on. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Content-Type"`: Network package content type. """ -function put_sol_network_package_content( +put_sol_network_package_content( file, nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "PUT", + "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)/nsd_content", + Dict{String,Any}("file" => file); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "PUT", - "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)/nsd_content", - Dict{String,Any}("file" => file); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_sol_network_package_content( file, nsdInfoId, @@ -992,15 +939,13 @@ filter your resources or track your Amazon Web Services costs. resources or track your Amazon Web Services costs. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return tnb( - "POST", - "/tags/$(resourceArn)", - Dict{String,Any}("tags" => tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = tnb( + "POST", + "/tags/$(resourceArn)", + Dict{String,Any}("tags" => tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( resourceArn, tags, @@ -1031,20 +976,19 @@ delete it. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"tags"`: A tag is a label that you assign to an Amazon Web Services resource. Each tag - consists of a key and an optional value. When you use this API, the tags are transferred to - the network operation that is created. Use tags to search and filter your resources or - track your Amazon Web Services costs. + consists of a key and an optional value. When you use this API, the tags are only applied + to the network operation that is created. These tags are not applied to the network + instance. Use tags to search and filter your resources or track your Amazon Web Services + costs. """ -function terminate_sol_network_instance( +terminate_sol_network_instance( nsInstanceId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "POST", + "/sol/nslcm/v1/ns_instances/$(nsInstanceId)/terminate"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "POST", - "/sol/nslcm/v1/ns_instances/$(nsInstanceId)/terminate"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function terminate_sol_network_instance( nsInstanceId, params::AbstractDict{String}; @@ -1072,17 +1016,14 @@ filter your resources or track your Amazon Web Services costs. - `tag_keys`: Tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return tnb( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + tnb( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1112,17 +1053,15 @@ to describe how the network functions should run on your network. - `vnf_pkg_id`: ID of the function package. """ -function update_sol_function_package( +update_sol_function_package( operationalState, vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "PATCH", + "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)", + Dict{String,Any}("operationalState" => operationalState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "PATCH", - "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)", - Dict{String,Any}("operationalState" => operationalState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sol_function_package( operationalState, vnfPkgId, @@ -1148,32 +1087,38 @@ end Update a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, -update, and delete) can be performed. +update, and delete) can be performed. Choose the updateType parameter to target the +necessary update of the network instance. # Arguments - `ns_instance_id`: ID of the network instance. -- `update_type`: The type of update. +- `update_type`: The type of update. Use the MODIFY_VNF_INFORMATION update type, to + update a specific network function configuration, in the network instance. Use the + UPDATE_NS update type, to update the network instance to a new network service descriptor. # Optional Parameters Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"modifyVnfInfoData"`: Identifies the network function information parameters and/or the - configurable properties of the network function to be modified. + configurable properties of the network function to be modified. Include this property only + if the update type is MODIFY_VNF_INFORMATION. - `"tags"`: A tag is a label that you assign to an Amazon Web Services resource. Each tag - consists of a key and an optional value. When you use this API, the tags are transferred to - the network operation that is created. Use tags to search and filter your resources or - track your Amazon Web Services costs. -""" -function update_sol_network_instance( + consists of a key and an optional value. When you use this API, the tags are only applied + to the network operation that is created. These tags are not applied to the network + instance. Use tags to search and filter your resources or track your Amazon Web Services + costs. +- `"updateNs"`: Identifies the network service descriptor and the configurable properties + of the descriptor, to be used for the update. Include this property only if the update type + is UPDATE_NS. +""" +update_sol_network_instance( nsInstanceId, updateType; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "POST", + "/sol/nslcm/v1/ns_instances/$(nsInstanceId)/update", + Dict{String,Any}("updateType" => updateType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "POST", - "/sol/nslcm/v1/ns_instances/$(nsInstanceId)/update", - Dict{String,Any}("updateType" => updateType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sol_network_instance( nsInstanceId, updateType, @@ -1208,17 +1153,15 @@ want to deploy the network functions on. network package. """ -function update_sol_network_package( +update_sol_network_package( nsdInfoId, nsdOperationalState; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "PATCH", + "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)", + Dict{String,Any}("nsdOperationalState" => nsdOperationalState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "PATCH", - "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)", - Dict{String,Any}("nsdOperationalState" => nsdOperationalState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sol_network_package( nsdInfoId, nsdOperationalState, @@ -1258,17 +1201,15 @@ to describe how the network functions should run on your network. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Content-Type"`: Function package content type. """ -function validate_sol_function_package_content( +validate_sol_function_package_content( file, vnfPkgId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "PUT", + "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)/package_content/validate", + Dict{String,Any}("file" => file); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "PUT", - "/sol/vnfpkgm/v1/vnf_packages/$(vnfPkgId)/package_content/validate", - Dict{String,Any}("file" => file); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_sol_function_package_content( file, vnfPkgId, @@ -1301,17 +1242,15 @@ Amazon Web Services infrastructure you want to deploy them on. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Content-Type"`: Network package content type. """ -function validate_sol_network_package_content( +validate_sol_network_package_content( file, nsdInfoId; aws_config::AbstractAWSConfig=current_aws_config() +) = tnb( + "PUT", + "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)/nsd_content/validate", + Dict{String,Any}("file" => file); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return tnb( - "PUT", - "/sol/nsd/v1/ns_descriptors/$(nsdInfoId)/nsd_content/validate", - Dict{String,Any}("file" => file); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function validate_sol_network_package_content( file, nsdInfoId, diff --git a/src/services/transcribe.jl b/src/services/transcribe.jl index 3fb0b125a..21101619a 100644 --- a/src/services/transcribe.jl +++ b/src/services/transcribe.jl @@ -40,16 +40,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys categories with this input type cannot be applied to post-call transcriptions. If you do not include InputType, your category is created as a post-call category by default. """ -function create_call_analytics_category( +create_call_analytics_category( CategoryName, Rules; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "CreateCallAnalyticsCategory", + Dict{String,Any}("CategoryName" => CategoryName, "Rules" => Rules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "CreateCallAnalyticsCategory", - Dict{String,Any}("CategoryName" => CategoryName, "Rules" => Rules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_call_analytics_category( CategoryName, Rules, @@ -113,25 +111,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys custom language model at the time you create this new model. To learn more about using tags with Amazon Transcribe, refer to Tagging resources. """ -function create_language_model( +create_language_model( BaseModelName, InputDataConfig, LanguageCode, ModelName; aws_config::AbstractAWSConfig=current_aws_config(), +) = transcribe( + "CreateLanguageModel", + Dict{String,Any}( + "BaseModelName" => BaseModelName, + "InputDataConfig" => InputDataConfig, + "LanguageCode" => LanguageCode, + "ModelName" => ModelName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "CreateLanguageModel", - Dict{String,Any}( - "BaseModelName" => BaseModelName, - "InputDataConfig" => InputDataConfig, - "LanguageCode" => LanguageCode, - "ModelName" => ModelName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_language_model( BaseModelName, InputDataConfig, @@ -192,23 +188,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys custom medical vocabulary at the time you create this new custom vocabulary. To learn more about using tags with Amazon Transcribe, refer to Tagging resources. """ -function create_medical_vocabulary( +create_medical_vocabulary( LanguageCode, VocabularyFileUri, VocabularyName; aws_config::AbstractAWSConfig=current_aws_config(), +) = transcribe( + "CreateMedicalVocabulary", + Dict{String,Any}( + "LanguageCode" => LanguageCode, + "VocabularyFileUri" => VocabularyFileUri, + "VocabularyName" => VocabularyName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "CreateMedicalVocabulary", - Dict{String,Any}( - "LanguageCode" => LanguageCode, - "VocabularyFileUri" => VocabularyFileUri, - "VocabularyName" => VocabularyName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_medical_vocabulary( LanguageCode, VocabularyFileUri, @@ -285,18 +279,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that if you include VocabularyFileUri in your request, you cannot use the Phrases flag; you must choose one or the other. """ -function create_vocabulary( +create_vocabulary( LanguageCode, VocabularyName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "CreateVocabulary", + Dict{String,Any}("LanguageCode" => LanguageCode, "VocabularyName" => VocabularyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "CreateVocabulary", - Dict{String,Any}( - "LanguageCode" => LanguageCode, "VocabularyName" => VocabularyName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vocabulary( LanguageCode, VocabularyName, @@ -369,18 +359,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys unsupported characters, your custom vocabulary filter request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language. """ -function create_vocabulary_filter( +create_vocabulary_filter( LanguageCode, VocabularyFilterName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "CreateVocabularyFilter", + Dict{String,Any}( + "LanguageCode" => LanguageCode, "VocabularyFilterName" => VocabularyFilterName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "CreateVocabularyFilter", - Dict{String,Any}( - "LanguageCode" => LanguageCode, "VocabularyFilterName" => VocabularyFilterName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_vocabulary_filter( LanguageCode, VocabularyFilterName, @@ -416,16 +404,14 @@ you want to delete using CategoryName. Category names are case sensitive. names are case sensitive. """ -function delete_call_analytics_category( +delete_call_analytics_category( CategoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "DeleteCallAnalyticsCategory", + Dict{String,Any}("CategoryName" => CategoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "DeleteCallAnalyticsCategory", - Dict{String,Any}("CategoryName" => CategoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_call_analytics_category( CategoryName, params::AbstractDict{String}; @@ -453,16 +439,14 @@ to delete using CallAnalyticsJobName. Job names are case sensitive. names are case sensitive. """ -function delete_call_analytics_job( +delete_call_analytics_job( CallAnalyticsJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "DeleteCallAnalyticsJob", + Dict{String,Any}("CallAnalyticsJobName" => CallAnalyticsJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "DeleteCallAnalyticsJob", - Dict{String,Any}("CallAnalyticsJobName" => CallAnalyticsJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_call_analytics_job( CallAnalyticsJobName, params::AbstractDict{String}; @@ -494,16 +478,13 @@ model you want to delete using ModelName. custom language model names are case s case sensitive. """ -function delete_language_model( - ModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return transcribe( +delete_language_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "DeleteLanguageModel", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_language_model( ModelName, params::AbstractDict{String}; @@ -531,16 +512,14 @@ to delete using MedicalScribeJobName. Job names are case sensitive. names are case sensitive. """ -function delete_medical_scribe_job( +delete_medical_scribe_job( MedicalScribeJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "DeleteMedicalScribeJob", + Dict{String,Any}("MedicalScribeJobName" => MedicalScribeJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "DeleteMedicalScribeJob", - Dict{String,Any}("MedicalScribeJobName" => MedicalScribeJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_medical_scribe_job( MedicalScribeJobName, params::AbstractDict{String}; @@ -572,16 +551,14 @@ want to delete using MedicalTranscriptionJobName. Job names are case sensitive. delete. Job names are case sensitive. """ -function delete_medical_transcription_job( +delete_medical_transcription_job( MedicalTranscriptionJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "DeleteMedicalTranscriptionJob", + Dict{String,Any}("MedicalTranscriptionJobName" => MedicalTranscriptionJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "DeleteMedicalTranscriptionJob", - Dict{String,Any}("MedicalTranscriptionJobName" => MedicalTranscriptionJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_medical_transcription_job( MedicalTranscriptionJobName, params::AbstractDict{String}; @@ -616,16 +593,14 @@ sensitive. medical vocabulary names are case sensitive. """ -function delete_medical_vocabulary( +delete_medical_vocabulary( VocabularyName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "DeleteMedicalVocabulary", + Dict{String,Any}("VocabularyName" => VocabularyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "DeleteMedicalVocabulary", - Dict{String,Any}("VocabularyName" => VocabularyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_medical_vocabulary( VocabularyName, params::AbstractDict{String}; @@ -653,16 +628,14 @@ delete using TranscriptionJobName. Job names are case sensitive. are case sensitive. """ -function delete_transcription_job( +delete_transcription_job( TranscriptionJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "DeleteTranscriptionJob", + Dict{String,Any}("TranscriptionJobName" => TranscriptionJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "DeleteTranscriptionJob", - Dict{String,Any}("TranscriptionJobName" => TranscriptionJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_transcription_job( TranscriptionJobName, params::AbstractDict{String}; @@ -695,16 +668,13 @@ sensitive. vocabulary names are case sensitive. """ -function delete_vocabulary( - VocabularyName; aws_config::AbstractAWSConfig=current_aws_config() -) - return transcribe( +delete_vocabulary(VocabularyName; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "DeleteVocabulary", Dict{String,Any}("VocabularyName" => VocabularyName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_vocabulary( VocabularyName, params::AbstractDict{String}; @@ -733,16 +703,14 @@ names are case sensitive. Custom vocabulary filter names are case sensitive. """ -function delete_vocabulary_filter( +delete_vocabulary_filter( VocabularyFilterName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "DeleteVocabularyFilter", + Dict{String,Any}("VocabularyFilterName" => VocabularyFilterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "DeleteVocabularyFilter", - Dict{String,Any}("VocabularyFilterName" => VocabularyFilterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_vocabulary_filter( VocabularyFilterName, params::AbstractDict{String}; @@ -778,16 +746,13 @@ the reason for this failure. names are case sensitive. """ -function describe_language_model( - ModelName; aws_config::AbstractAWSConfig=current_aws_config() -) - return transcribe( +describe_language_model(ModelName; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "DescribeLanguageModel", Dict{String,Any}("ModelName" => ModelName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_language_model( ModelName, params::AbstractDict{String}; @@ -815,16 +780,14 @@ Call Analytics categories, use the operation. Category names are case sensitive. """ -function get_call_analytics_category( +get_call_analytics_category( CategoryName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "GetCallAnalyticsCategory", + Dict{String,Any}("CategoryName" => CategoryName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "GetCallAnalyticsCategory", - Dict{String,Any}("CategoryName" => CategoryName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_call_analytics_category( CategoryName, params::AbstractDict{String}; @@ -858,16 +821,14 @@ RedactedMediaFileUri. To get a list of your Call Analytics jobs, use the operati Job names are case sensitive. """ -function get_call_analytics_job( +get_call_analytics_job( CallAnalyticsJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "GetCallAnalyticsJob", + Dict{String,Any}("CallAnalyticsJobName" => CallAnalyticsJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "GetCallAnalyticsJob", - Dict{String,Any}("CallAnalyticsJobName" => CallAnalyticsJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_call_analytics_job( CallAnalyticsJobName, params::AbstractDict{String}; @@ -902,16 +863,14 @@ Medical Scribe job failed. To get a list of your Medical Scribe jobs, use the op Job names are case sensitive. """ -function get_medical_scribe_job( +get_medical_scribe_job( MedicalScribeJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "GetMedicalScribeJob", + Dict{String,Any}("MedicalScribeJobName" => MedicalScribeJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "GetMedicalScribeJob", - Dict{String,Any}("MedicalScribeJobName" => MedicalScribeJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_medical_scribe_job( MedicalScribeJobName, params::AbstractDict{String}; @@ -947,16 +906,14 @@ the operation. information about. Job names are case sensitive. """ -function get_medical_transcription_job( +get_medical_transcription_job( MedicalTranscriptionJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "GetMedicalTranscriptionJob", + Dict{String,Any}("MedicalTranscriptionJobName" => MedicalTranscriptionJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "GetMedicalTranscriptionJob", - Dict{String,Any}("MedicalTranscriptionJobName" => MedicalTranscriptionJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_medical_transcription_job( MedicalTranscriptionJobName, params::AbstractDict{String}; @@ -993,16 +950,13 @@ vocabularies, use the operation. Custom medical vocabulary names are case sensitive. """ -function get_medical_vocabulary( - VocabularyName; aws_config::AbstractAWSConfig=current_aws_config() -) - return transcribe( +get_medical_vocabulary(VocabularyName; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "GetMedicalVocabulary", Dict{String,Any}("VocabularyName" => VocabularyName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_medical_vocabulary( VocabularyName, params::AbstractDict{String}; @@ -1035,16 +989,14 @@ transcription jobs, use the operation. Job names are case sensitive. """ -function get_transcription_job( +get_transcription_job( TranscriptionJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "GetTranscriptionJob", + Dict{String,Any}("TranscriptionJobName" => TranscriptionJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "GetTranscriptionJob", - Dict{String,Any}("TranscriptionJobName" => TranscriptionJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_transcription_job( TranscriptionJobName, params::AbstractDict{String}; @@ -1079,14 +1031,13 @@ use the operation. vocabulary names are case sensitive. """ -function get_vocabulary(VocabularyName; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( +get_vocabulary(VocabularyName; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "GetVocabulary", Dict{String,Any}("VocabularyName" => VocabularyName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_vocabulary( VocabularyName, params::AbstractDict{String}; @@ -1114,16 +1065,14 @@ custom vocabulary filters, use the operation. about. Custom vocabulary filter names are case sensitive. """ -function get_vocabulary_filter( +get_vocabulary_filter( VocabularyFilterName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "GetVocabularyFilter", + Dict{String,Any}("VocabularyFilterName" => VocabularyFilterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "GetVocabularyFilter", - Dict{String,Any}("VocabularyFilterName" => VocabularyFilterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_vocabulary_filter( VocabularyFilterName, params::AbstractDict{String}; @@ -1161,15 +1110,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next page of results, copy this string and repeat your request, including NextToken with the value of the copied string. Repeat as needed to view all your results. """ -function list_call_analytics_categories(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return transcribe( +list_call_analytics_categories(; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "ListCallAnalyticsCategories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_call_analytics_categories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1204,11 +1150,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by creation date, with the newest job first. If you do not include Status, all Call Analytics jobs are returned. """ -function list_call_analytics_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( - "ListCallAnalyticsJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_call_analytics_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = transcribe( + "ListCallAnalyticsJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_call_analytics_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1243,11 +1187,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys models are ordered by creation date, with the newest model first. If you do not include StatusEquals, all custom language models are returned. """ -function list_language_models(; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( - "ListLanguageModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_language_models(; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe("ListLanguageModels"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_language_models( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1279,11 +1220,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by creation date, with the newest job first. If you do not include Status, all Medical Scribe jobs are returned. """ -function list_medical_scribe_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( - "ListMedicalScribeJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_medical_scribe_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = transcribe( + "ListMedicalScribeJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_medical_scribe_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1318,15 +1257,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ordered by creation date, with the newest job first. If you do not include Status, all medical transcription jobs are returned. """ -function list_medical_transcription_jobs(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return transcribe( +list_medical_transcription_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "ListMedicalTranscriptionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_medical_transcription_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1361,11 +1297,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Custom vocabularies are ordered by creation date, with the newest vocabulary first. If you do not include StateEquals, all custom medical vocabularies are returned. """ -function list_medical_vocabularies(; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( +list_medical_vocabularies(; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "ListMedicalVocabularies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_medical_vocabularies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1393,16 +1328,13 @@ resource. To learn more about using tags with Amazon Transcribe, refer to Taggin medical-vocabulary, vocabulary-filter, and language-model. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return transcribe( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -1441,11 +1373,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys by creation date, with the newest job first. If you do not include Status, all transcription jobs are returned. """ -function list_transcription_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( - "ListTranscriptionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_transcription_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = transcribe( + "ListTranscriptionJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_transcription_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1480,11 +1410,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are ordered by creation date, with the newest vocabulary first. If you do not include StateEquals, all custom medical vocabularies are returned. """ -function list_vocabularies(; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( - "ListVocabularies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_vocabularies(; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe("ListVocabularies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_vocabularies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1513,11 +1440,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys next page of results, copy this string and repeat your request, including NextToken with the value of the copied string. Repeat as needed to view all your results. """ -function list_vocabulary_filters(; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( - "ListVocabularyFilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_vocabulary_filters(; aws_config::AbstractAWSConfig=current_aws_config()) = transcribe( + "ListVocabularyFilters"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_vocabulary_filters( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1610,16 +1535,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys redaction; allows you to apply custom language models, vocabulary filters, and custom vocabularies to your Call Analytics job. """ -function start_call_analytics_job( +start_call_analytics_job( CallAnalyticsJobName, Media; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "StartCallAnalyticsJob", + Dict{String,Any}("CallAnalyticsJobName" => CallAnalyticsJobName, "Media" => Media); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "StartCallAnalyticsJob", - Dict{String,Any}("CallAnalyticsJobName" => CallAnalyticsJobName, "Media" => Media); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_call_analytics_job( CallAnalyticsJobName, Media, @@ -1721,27 +1644,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Medica Scribe job. To learn more about using tags with Amazon Transcribe, refer to Tagging resources. """ -function start_medical_scribe_job( +start_medical_scribe_job( DataAccessRoleArn, Media, MedicalScribeJobName, OutputBucketName, Settings; aws_config::AbstractAWSConfig=current_aws_config(), +) = transcribe( + "StartMedicalScribeJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "Media" => Media, + "MedicalScribeJobName" => MedicalScribeJobName, + "OutputBucketName" => OutputBucketName, + "Settings" => Settings, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "StartMedicalScribeJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "Media" => Media, - "MedicalScribeJobName" => MedicalScribeJobName, - "OutputBucketName" => OutputBucketName, - "Settings" => Settings, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_medical_scribe_job( DataAccessRoleArn, Media, @@ -1879,7 +1800,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys medical transcription job at the time you start this new job. To learn more about using tags with Amazon Transcribe, refer to Tagging resources. """ -function start_medical_transcription_job( +start_medical_transcription_job( LanguageCode, Media, MedicalTranscriptionJobName, @@ -1887,21 +1808,19 @@ function start_medical_transcription_job( Specialty, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = transcribe( + "StartMedicalTranscriptionJob", + Dict{String,Any}( + "LanguageCode" => LanguageCode, + "Media" => Media, + "MedicalTranscriptionJobName" => MedicalTranscriptionJobName, + "OutputBucketName" => OutputBucketName, + "Specialty" => Specialty, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "StartMedicalTranscriptionJob", - Dict{String,Any}( - "LanguageCode" => LanguageCode, - "Media" => Media, - "MedicalTranscriptionJobName" => MedicalTranscriptionJobName, - "OutputBucketName" => OutputBucketName, - "Specialty" => Specialty, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_medical_transcription_job( LanguageCode, Media, @@ -2112,16 +2031,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys information on the types of toxic speech Amazon Transcribe can detect, see Detecting toxic speech. """ -function start_transcription_job( +start_transcription_job( Media, TranscriptionJobName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "StartTranscriptionJob", + Dict{String,Any}("Media" => Media, "TranscriptionJobName" => TranscriptionJobName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "StartTranscriptionJob", - Dict{String,Any}("Media" => Media, "TranscriptionJobName" => TranscriptionJobName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_transcription_job( Media, TranscriptionJobName, @@ -2162,14 +2079,13 @@ resource. To learn more about using tags with Amazon Transcribe, refer to Taggin resources. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return transcribe( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -2207,16 +2123,13 @@ UntagResource in your request, you must also include ResourceArn and TagKeys. - `tag_keys`: Removes the specified tag keys from the specified Amazon Transcribe resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return transcribe( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + transcribe( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -2259,16 +2172,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys For example, if you created a category with the POST_CALL input type, you must use POST_CALL as the input type when updating this category. """ -function update_call_analytics_category( +update_call_analytics_category( CategoryName, Rules; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "UpdateCallAnalyticsCategory", + Dict{String,Any}("CategoryName" => CategoryName, "Rules" => Rules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "UpdateCallAnalyticsCategory", - Dict{String,Any}("CategoryName" => CategoryName, "Rules" => Rules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_call_analytics_category( CategoryName, Rules, @@ -2309,23 +2220,21 @@ custom vocabulary. medical vocabulary names are case sensitive. """ -function update_medical_vocabulary( +update_medical_vocabulary( LanguageCode, VocabularyFileUri, VocabularyName; aws_config::AbstractAWSConfig=current_aws_config(), +) = transcribe( + "UpdateMedicalVocabulary", + Dict{String,Any}( + "LanguageCode" => LanguageCode, + "VocabularyFileUri" => VocabularyFileUri, + "VocabularyName" => VocabularyName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "UpdateMedicalVocabulary", - Dict{String,Any}( - "LanguageCode" => LanguageCode, - "VocabularyFileUri" => VocabularyFileUri, - "VocabularyName" => VocabularyName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_medical_vocabulary( LanguageCode, VocabularyFileUri, @@ -2393,18 +2302,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that if you include VocabularyFileUri in your request, you cannot use the Phrases flag; you must choose one or the other. """ -function update_vocabulary( +update_vocabulary( LanguageCode, VocabularyName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "UpdateVocabulary", + Dict{String,Any}("LanguageCode" => LanguageCode, "VocabularyName" => VocabularyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "UpdateVocabulary", - Dict{String,Any}( - "LanguageCode" => LanguageCode, "VocabularyName" => VocabularyName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_vocabulary( LanguageCode, VocabularyName, @@ -2463,16 +2368,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys unsupported characters, your custom vocabulary filter request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language. """ -function update_vocabulary_filter( +update_vocabulary_filter( VocabularyFilterName; aws_config::AbstractAWSConfig=current_aws_config() +) = transcribe( + "UpdateVocabularyFilter", + Dict{String,Any}("VocabularyFilterName" => VocabularyFilterName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transcribe( - "UpdateVocabularyFilter", - Dict{String,Any}("VocabularyFilterName" => VocabularyFilterName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_vocabulary_filter( VocabularyFilterName, params::AbstractDict{String}; diff --git a/src/services/transfer.jl b/src/services/transfer.jl index 9ee416192..b2de07957 100644 --- a/src/services/transfer.jl +++ b/src/services/transfer.jl @@ -70,18 +70,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys policy. For more information, see AssumeRole in the Security Token Service API Reference. - `"PosixProfile"`: """ -function create_access( +create_access( ExternalId, Role, ServerId; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "CreateAccess", + Dict{String,Any}("ExternalId" => ExternalId, "Role" => Role, "ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "CreateAccess", - Dict{String,Any}( - "ExternalId" => ExternalId, "Role" => Role, "ServerId" => ServerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access( ExternalId, Role, @@ -148,27 +144,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: The status of the agreement. The agreement can be either ACTIVE or INACTIVE. - `"Tags"`: Key-value pairs that can be used to group and search for agreements. """ -function create_agreement( +create_agreement( AccessRole, BaseDirectory, LocalProfileId, PartnerProfileId, ServerId; aws_config::AbstractAWSConfig=current_aws_config(), +) = transfer( + "CreateAgreement", + Dict{String,Any}( + "AccessRole" => AccessRole, + "BaseDirectory" => BaseDirectory, + "LocalProfileId" => LocalProfileId, + "PartnerProfileId" => PartnerProfileId, + "ServerId" => ServerId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "CreateAgreement", - Dict{String,Any}( - "AccessRole" => AccessRole, - "BaseDirectory" => BaseDirectory, - "LocalProfileId" => LocalProfileId, - "PartnerProfileId" => PartnerProfileId, - "ServerId" => ServerId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_agreement( AccessRole, BaseDirectory, @@ -241,16 +235,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose. """ -function create_connector( - AccessRole, Url; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +create_connector(AccessRole, Url; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "CreateConnector", Dict{String,Any}("AccessRole" => AccessRole, "Url" => Url); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_connector( AccessRole, Url, @@ -291,16 +282,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys identifier for working with profiles and partner profiles. - `"Tags"`: Key-value pairs that can be used to group and search for AS2 profiles. """ -function create_profile( - As2Id, ProfileType; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +create_profile(As2Id, ProfileType; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "CreateProfile", Dict{String,Any}("As2Id" => As2Id, "ProfileType" => ProfileType); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_profile( As2Id, ProfileType, @@ -456,9 +444,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys execution role) for a workflow to execute on partial upload. A partial upload occurs when the server session disconnects while the file is still being uploaded. """ -function create_server(; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer("CreateServer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +create_server(; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer("CreateServer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function create_server( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -544,16 +531,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose. """ -function create_user( - Role, ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +create_user(Role, ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "CreateUser", Dict{String,Any}("Role" => Role, "ServerId" => ServerId, "UserName" => UserName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_user( Role, ServerId, @@ -605,14 +589,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose. """ -function create_workflow(Steps; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "CreateWorkflow", - Dict{String,Any}("Steps" => Steps); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_workflow(Steps; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "CreateWorkflow", + Dict{String,Any}("Steps" => Steps); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_workflow( Steps, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -643,16 +625,13 @@ Allows you to delete the access specified in the ServerID and ExternalID paramet - `server_id`: A system-assigned unique identifier for a server that has this user assigned. """ -function delete_access( - ExternalId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +delete_access(ExternalId, ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DeleteAccess", Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_access( ExternalId, ServerId, @@ -685,16 +664,14 @@ Delete the agreement that's specified in the provided AgreementId. - `server_id`: The server identifier associated with the agreement that you are deleting. """ -function delete_agreement( +delete_agreement( AgreementId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "DeleteAgreement", + Dict{String,Any}("AgreementId" => AgreementId, "ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "DeleteAgreement", - Dict{String,Any}("AgreementId" => AgreementId, "ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_agreement( AgreementId, ServerId, @@ -725,16 +702,13 @@ Deletes the certificate that's specified in the CertificateId parameter. - `certificate_id`: The identifier of the certificate object that you are deleting. """ -function delete_certificate( - CertificateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +delete_certificate(CertificateId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DeleteCertificate", Dict{String,Any}("CertificateId" => CertificateId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_certificate( CertificateId, params::AbstractDict{String}; @@ -760,14 +734,13 @@ Deletes the connector that's specified in the provided ConnectorId. - `connector_id`: The unique identifier for the connector. """ -function delete_connector(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( +delete_connector(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DeleteConnector", Dict{String,Any}("ConnectorId" => ConnectorId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connector( ConnectorId, params::AbstractDict{String}; @@ -795,16 +768,13 @@ Deletes the host key that's specified in the HostKeyId parameter. deleting. """ -function delete_host_key( - HostKeyId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +delete_host_key(HostKeyId, ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DeleteHostKey", Dict{String,Any}("HostKeyId" => HostKeyId, "ServerId" => ServerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_host_key( HostKeyId, ServerId, @@ -835,14 +805,12 @@ Deletes the profile that's specified in the ProfileId parameter. - `profile_id`: The identifier of the profile that you are deleting. """ -function delete_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "DeleteProfile", - Dict{String,Any}("ProfileId" => ProfileId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "DeleteProfile", + Dict{String,Any}("ProfileId" => ProfileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_profile( ProfileId, params::AbstractDict{String}; @@ -869,14 +837,12 @@ from this operation. - `server_id`: A unique system-assigned identifier for a server instance. """ -function delete_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "DeleteServer", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "DeleteServer", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_server( ServerId, params::AbstractDict{String}; @@ -905,20 +871,18 @@ Deletes a user's Secure Shell (SSH) public key. - `user_name`: A unique string that identifies a user whose public key is being deleted. """ -function delete_ssh_public_key( +delete_ssh_public_key( ServerId, SshPublicKeyId, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "DeleteSshPublicKey", + Dict{String,Any}( + "ServerId" => ServerId, + "SshPublicKeyId" => SshPublicKeyId, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "DeleteSshPublicKey", - Dict{String,Any}( - "ServerId" => ServerId, - "SshPublicKeyId" => SshPublicKeyId, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_ssh_public_key( ServerId, SshPublicKeyId, @@ -958,14 +922,13 @@ information is lost. - `user_name`: A unique string that identifies a user that is being deleted from a server. """ -function delete_user(ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( +delete_user(ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DeleteUser", Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user( ServerId, UserName, @@ -996,14 +959,12 @@ Deletes the specified workflow. - `workflow_id`: A unique identifier for the workflow. """ -function delete_workflow(WorkflowId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "DeleteWorkflow", - Dict{String,Any}("WorkflowId" => WorkflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_workflow(WorkflowId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "DeleteWorkflow", + Dict{String,Any}("WorkflowId" => WorkflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_workflow( WorkflowId, params::AbstractDict{String}; @@ -1042,16 +1003,13 @@ was specified. assigned. """ -function describe_access( - ExternalId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +describe_access(ExternalId, ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DescribeAccess", Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_access( ExternalId, ServerId, @@ -1084,16 +1042,14 @@ Describes the agreement that's identified by the AgreementId. - `server_id`: The server identifier that's associated with the agreement. """ -function describe_agreement( +describe_agreement( AgreementId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "DescribeAgreement", + Dict{String,Any}("AgreementId" => AgreementId, "ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "DescribeAgreement", - Dict{String,Any}("AgreementId" => AgreementId, "ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_agreement( AgreementId, ServerId, @@ -1125,16 +1081,13 @@ Describes the certificate that's identified by the CertificateId. identifier for working with profiles and partner profiles. """ -function describe_certificate( - CertificateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +describe_certificate(CertificateId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DescribeCertificate", Dict{String,Any}("CertificateId" => CertificateId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_certificate( CertificateId, params::AbstractDict{String}; @@ -1160,14 +1113,13 @@ Describes the connector that's identified by the ConnectorId. - `connector_id`: The unique identifier for the connector. """ -function describe_connector(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( +describe_connector(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DescribeConnector", Dict{String,Any}("ConnectorId" => ConnectorId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_connector( ConnectorId, params::AbstractDict{String}; @@ -1197,16 +1149,14 @@ specified workflow ID, you receive a ResourceNotFound exception. - `workflow_id`: A unique identifier for the workflow. """ -function describe_execution( +describe_execution( ExecutionId, WorkflowId; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "DescribeExecution", + Dict{String,Any}("ExecutionId" => ExecutionId, "WorkflowId" => WorkflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "DescribeExecution", - Dict{String,Any}("ExecutionId" => ExecutionId, "WorkflowId" => WorkflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_execution( ExecutionId, WorkflowId, @@ -1239,16 +1189,13 @@ Returns the details of the host key that's specified by the HostKeyId and Server described. """ -function describe_host_key( - HostKeyId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +describe_host_key(HostKeyId, ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DescribeHostKey", Dict{String,Any}("HostKeyId" => HostKeyId, "ServerId" => ServerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_host_key( HostKeyId, ServerId, @@ -1279,14 +1226,12 @@ Returns the details of the profile that's specified by the ProfileId. - `profile_id`: The identifier of the profile that you want described. """ -function describe_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "DescribeProfile", - Dict{String,Any}("ProfileId" => ProfileId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "DescribeProfile", + Dict{String,Any}("ProfileId" => ProfileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_profile( ProfileId, params::AbstractDict{String}; @@ -1316,16 +1261,14 @@ security policies for SFTP connectors. the details. """ -function describe_security_policy( +describe_security_policy( SecurityPolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "DescribeSecurityPolicy", + Dict{String,Any}("SecurityPolicyName" => SecurityPolicyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "DescribeSecurityPolicy", - Dict{String,Any}("SecurityPolicyName" => SecurityPolicyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_security_policy( SecurityPolicyName, params::AbstractDict{String}; @@ -1355,14 +1298,12 @@ EndpointType to VPC, the response will contain the EndpointDetails. - `server_id`: A system-assigned unique identifier for a server. """ -function describe_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "DescribeServer", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "DescribeServer", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_server( ServerId, params::AbstractDict{String}; @@ -1392,16 +1333,13 @@ the user associated with the ServerId value that was specified. the sign-in credentials to use the Transfer Family service and perform file transfer tasks. """ -function describe_user( - ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +describe_user(ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DescribeUser", Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_user( ServerId, UserName, @@ -1432,14 +1370,13 @@ Describes the specified workflow. - `workflow_id`: A unique identifier for the workflow. """ -function describe_workflow(WorkflowId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( +describe_workflow(WorkflowId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "DescribeWorkflow", Dict{String,Any}("WorkflowId" => WorkflowId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_workflow( WorkflowId, params::AbstractDict{String}; @@ -1484,16 +1421,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys file. For example, --private-key \"`cat encryption-key.pem`\" - `"Tags"`: Key-value pairs that can be used to group and search for certificates. """ -function import_certificate( - Certificate, Usage; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +import_certificate(Certificate, Usage; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "ImportCertificate", Dict{String,Any}("Certificate" => Certificate, "Usage" => Usage); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function import_certificate( Certificate, Usage, @@ -1531,16 +1465,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The text description that identifies this host key. - `"Tags"`: Key-value pairs that can be used to group and search for host keys. """ -function import_host_key( - HostKeyBody, ServerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +import_host_key(HostKeyBody, ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "ImportHostKey", Dict{String,Any}("HostKeyBody" => HostKeyBody, "ServerId" => ServerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function import_host_key( HostKeyBody, ServerId, @@ -1577,20 +1508,18 @@ SshPublicKeyId. - `user_name`: The name of the Transfer Family user that is assigned to one or more servers. """ -function import_ssh_public_key( +import_ssh_public_key( ServerId, SshPublicKeyBody, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "ImportSshPublicKey", + Dict{String,Any}( + "ServerId" => ServerId, + "SshPublicKeyBody" => SshPublicKeyBody, + "UserName" => UserName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "ImportSshPublicKey", - Dict{String,Any}( - "ServerId" => ServerId, - "SshPublicKeyBody" => SshPublicKeyBody, - "UserName" => UserName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_ssh_public_key( ServerId, SshPublicKeyBody, @@ -1633,14 +1562,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional accesses. """ -function list_accesses(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListAccesses", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_accesses(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "ListAccesses", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_accesses( ServerId, params::AbstractDict{String}; @@ -1675,14 +1602,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional agreements. """ -function list_agreements(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListAgreements", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_agreements(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "ListAgreements", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_agreements( ServerId, params::AbstractDict{String}; @@ -1715,11 +1640,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional certificates. """ -function list_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_certificates(; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer("ListCertificates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_certificates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1741,11 +1663,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional connectors. """ -function list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListConnectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_connectors(; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer("ListConnectors"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_connectors( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1778,14 +1697,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys This call returns the next 10 executions, the 11th through the 20th. You can then repeat the call until the details for all 100 executions have been returned. """ -function list_executions(WorkflowId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListExecutions", - Dict{String,Any}("WorkflowId" => WorkflowId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_executions(WorkflowId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "ListExecutions", + Dict{String,Any}("WorkflowId" => WorkflowId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_executions( WorkflowId, params::AbstractDict{String}; @@ -1818,14 +1735,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is returned. You can use that value for a subsequent call to ListHostKeys to continue listing results. """ -function list_host_keys(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListHostKeys", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_host_keys(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "ListHostKeys", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_host_keys( ServerId, params::AbstractDict{String}; @@ -1859,9 +1774,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProfileType"`: Indicates whether to list only LOCAL type profiles or only PARTNER type profiles. If not supplied in the request, the command lists all types of profiles. """ -function list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer("ListProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer("ListProfiles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1886,11 +1800,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional security policies. """ -function list_security_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListSecurityPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_security_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer("ListSecurityPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_security_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1917,9 +1828,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional servers. """ -function list_servers(; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer("ListServers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_servers(; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer("ListServers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_servers( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1948,14 +1858,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys operation, a NextToken parameter is returned in the input. You can then pass in a subsequent command to the NextToken parameter to continue listing additional tags. """ -function list_tags_for_resource(Arn; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListTagsForResource", - Dict{String,Any}("Arn" => Arn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_tags_for_resource(Arn; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "ListTagsForResource", + Dict{String,Any}("Arn" => Arn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_tags_for_resource( Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1986,14 +1894,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameter is returned in the output. You can then pass the NextToken to a subsequent ListUsers command, to continue listing additional users. """ -function list_users(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "ListUsers", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_users(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "ListUsers", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_users( ServerId, params::AbstractDict{String}; @@ -2023,9 +1929,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pass the NextToken parameter in a subsequent command to continue listing additional workflows. """ -function list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer("ListWorkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_workflows(; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer("ListWorkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_workflows( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2050,25 +1955,23 @@ include those with their callback as well as providing a status. - `workflow_id`: A unique identifier for the workflow. """ -function send_workflow_step_state( +send_workflow_step_state( ExecutionId, Status, Token, WorkflowId; aws_config::AbstractAWSConfig=current_aws_config(), +) = transfer( + "SendWorkflowStepState", + Dict{String,Any}( + "ExecutionId" => ExecutionId, + "Status" => Status, + "Token" => Token, + "WorkflowId" => WorkflowId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "SendWorkflowStepState", - Dict{String,Any}( - "ExecutionId" => ExecutionId, - "Status" => Status, - "Token" => Token, - "WorkflowId" => WorkflowId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function send_workflow_step_state( ExecutionId, Status, @@ -2134,23 +2037,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxItems"`: An optional parameter where you can specify the maximum number of file/directory names to retrieve. The default value is 1,000. """ -function start_directory_listing( +start_directory_listing( ConnectorId, OutputDirectoryPath, RemoteDirectoryPath; aws_config::AbstractAWSConfig=current_aws_config(), +) = transfer( + "StartDirectoryListing", + Dict{String,Any}( + "ConnectorId" => ConnectorId, + "OutputDirectoryPath" => OutputDirectoryPath, + "RemoteDirectoryPath" => RemoteDirectoryPath, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "StartDirectoryListing", - Dict{String,Any}( - "ConnectorId" => ConnectorId, - "OutputDirectoryPath" => OutputDirectoryPath, - "RemoteDirectoryPath" => RemoteDirectoryPath, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_directory_listing( ConnectorId, OutputDirectoryPath, @@ -2209,16 +2110,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DOC-EXAMPLE-BUCKET/myfile.txt . Replace DOC-EXAMPLE-BUCKET with one of your actual buckets. """ -function start_file_transfer( - ConnectorId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +start_file_transfer(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "StartFileTransfer", Dict{String,Any}("ConnectorId" => ConnectorId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function start_file_transfer( ConnectorId, params::AbstractDict{String}; @@ -2248,14 +2146,12 @@ indicate an error condition. No response is returned from this call. - `server_id`: A system-assigned unique identifier for a server that you start. """ -function start_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "StartServer", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +start_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "StartServer", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function start_server( ServerId, params::AbstractDict{String}; @@ -2288,14 +2184,12 @@ this call. - `server_id`: A system-assigned unique identifier for a server that you stopped. """ -function stop_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "StopServer", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +stop_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "StopServer", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function stop_server( ServerId, params::AbstractDict{String}; @@ -2327,14 +2221,12 @@ this call. and so on) for any purpose. """ -function tag_resource(Arn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "TagResource", - Dict{String,Any}("Arn" => Arn, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(Arn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "TagResource", + Dict{String,Any}("Arn" => Arn, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( Arn, Tags, @@ -2363,14 +2255,12 @@ storage and a trading partner's SFTP server. - `connector_id`: The unique identifier for the connector. """ -function test_connection(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "TestConnection", - Dict{String,Any}("ConnectorId" => ConnectorId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +test_connection(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "TestConnection", + Dict{String,Any}("ConnectorId" => ConnectorId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function test_connection( ConnectorId, params::AbstractDict{String}; @@ -2423,16 +2313,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SourceIp"`: The source IP address of the account to be tested. - `"UserPassword"`: The password of the account to be tested. """ -function test_identity_provider( +test_identity_provider( ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "TestIdentityProvider", + Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "TestIdentityProvider", - Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_identity_provider( ServerId, UserName, @@ -2469,14 +2357,12 @@ call. search for resources by type. This metadata can be attached to resources for any purpose. """ -function untag_resource(Arn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "UntagResource", - Dict{String,Any}("Arn" => Arn, "TagKeys" => TagKeys); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +untag_resource(Arn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "UntagResource", + Dict{String,Any}("Arn" => Arn, "TagKeys" => TagKeys); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function untag_resource( Arn, TagKeys, @@ -2557,16 +2443,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests. """ -function update_access( - ExternalId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +update_access(ExternalId, ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "UpdateAccess", Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_access( ExternalId, ServerId, @@ -2633,16 +2516,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Status"`: You can update the status for the agreement, either activating an inactive agreement or the reverse. """ -function update_agreement( +update_agreement( AgreementId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "UpdateAgreement", + Dict{String,Any}("AgreementId" => AgreementId, "ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "UpdateAgreement", - Dict{String,Any}("AgreementId" => AgreementId, "ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_agreement( AgreementId, ServerId, @@ -2678,16 +2559,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A short description to help identify the certificate. - `"InactiveDate"`: An optional date that specifies when the certificate becomes inactive. """ -function update_certificate( - CertificateId; aws_config::AbstractAWSConfig=current_aws_config() -) - return transfer( +update_certificate(CertificateId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "UpdateCertificate", Dict{String,Any}("CertificateId" => CertificateId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_certificate( CertificateId, params::AbstractDict{String}; @@ -2741,14 +2619,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"SftpConfig"`: A structure that contains the parameters for an SFTP connector object. - `"Url"`: The URL of the partner's AS2 or SFTP endpoint. """ -function update_connector(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( +update_connector(ConnectorId; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "UpdateConnector", Dict{String,Any}("ConnectorId" => ConnectorId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_connector( ConnectorId, params::AbstractDict{String}; @@ -2778,18 +2655,16 @@ parameters. updating. """ -function update_host_key( +update_host_key( Description, HostKeyId, ServerId; aws_config::AbstractAWSConfig=current_aws_config() +) = transfer( + "UpdateHostKey", + Dict{String,Any}( + "Description" => Description, "HostKeyId" => HostKeyId, "ServerId" => ServerId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return transfer( - "UpdateHostKey", - Dict{String,Any}( - "Description" => Description, "HostKeyId" => HostKeyId, "ServerId" => ServerId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_host_key( Description, HostKeyId, @@ -2830,14 +2705,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"CertificateIds"`: An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles. """ -function update_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "UpdateProfile", - Dict{String,Any}("ProfileId" => ProfileId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_profile(ProfileId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "UpdateProfile", + Dict{String,Any}("ProfileId" => ProfileId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_profile( ProfileId, params::AbstractDict{String}; @@ -2974,14 +2847,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys following example. aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{\"OnUpload\":[]}' """ -function update_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( - "UpdateServer", - Dict{String,Any}("ServerId" => ServerId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_server(ServerId; aws_config::AbstractAWSConfig=current_aws_config()) = transfer( + "UpdateServer", + Dict{String,Any}("ServerId" => ServerId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_server( ServerId, params::AbstractDict{String}; @@ -3071,14 +2942,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests. """ -function update_user(ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config()) - return transfer( +update_user(ServerId, UserName; aws_config::AbstractAWSConfig=current_aws_config()) = + transfer( "UpdateUser", Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_user( ServerId, UserName, diff --git a/src/services/translate.jl b/src/services/translate.jl index d6f31717f..d5e5c9e1b 100644 --- a/src/services/translate.jl +++ b/src/services/translate.jl @@ -29,23 +29,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys metadata to a resource. Each tag key for the resource must be unique. For more information, see Tagging your resources. """ -function create_parallel_data( +create_parallel_data( ClientToken, Name, ParallelDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = translate( + "CreateParallelData", + Dict{String,Any}( + "ClientToken" => ClientToken, + "Name" => Name, + "ParallelDataConfig" => ParallelDataConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return translate( - "CreateParallelData", - Dict{String,Any}( - "ClientToken" => ClientToken, - "Name" => Name, - "ParallelDataConfig" => ParallelDataConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_parallel_data( ClientToken, Name, @@ -81,14 +79,12 @@ Deletes a parallel data resource in Amazon Translate. - `name`: The name of the parallel data resource that is being deleted. """ -function delete_parallel_data(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( - "DeleteParallelData", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_parallel_data(Name; aws_config::AbstractAWSConfig=current_aws_config()) = translate( + "DeleteParallelData", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_parallel_data( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -110,14 +106,12 @@ A synchronous action that deletes a custom terminology. - `name`: The name of the custom terminology being deleted. """ -function delete_terminology(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( - "DeleteTerminology", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_terminology(Name; aws_config::AbstractAWSConfig=current_aws_config()) = translate( + "DeleteTerminology", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_terminology( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -141,16 +135,13 @@ ID, status, source and target languages, input/output S3 buckets, and so on. StartTextTranslationJob operation returns this identifier in its response. """ -function describe_text_translation_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return translate( +describe_text_translation_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + translate( "DescribeTextTranslationJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_text_translation_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -172,14 +163,12 @@ Provides information about a parallel data resource. - `name`: The name of the parallel data resource that is being retrieved. """ -function get_parallel_data(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( - "GetParallelData", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_parallel_data(Name; aws_config::AbstractAWSConfig=current_aws_config()) = translate( + "GetParallelData", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_parallel_data( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -208,14 +197,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you retrieve a multi-directional terminology resource, you must specify the same format as the input file that was imported to create it. Otherwise, Amazon Translate throws an error. """ -function get_terminology(Name; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( - "GetTerminology", - Dict{String,Any}("Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_terminology(Name; aws_config::AbstractAWSConfig=current_aws_config()) = translate( + "GetTerminology", + Dict{String,Any}("Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_terminology( Name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -254,20 +241,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys metadata to a resource. Each tag key for the resource must be unique. For more information, see Tagging your resources. """ -function import_terminology( +import_terminology( MergeStrategy, Name, TerminologyData; aws_config::AbstractAWSConfig=current_aws_config() +) = translate( + "ImportTerminology", + Dict{String,Any}( + "MergeStrategy" => MergeStrategy, + "Name" => Name, + "TerminologyData" => TerminologyData, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return translate( - "ImportTerminology", - Dict{String,Any}( - "MergeStrategy" => MergeStrategy, - "Name" => Name, - "TerminologyData" => TerminologyData, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_terminology( MergeStrategy, Name, @@ -307,11 +292,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Include the NextToken value to fetch the next group of supported languages. """ -function list_languages(; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( - "ListLanguages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_languages(; aws_config::AbstractAWSConfig=current_aws_config()) = + translate("ListLanguages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_languages( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -332,11 +314,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: A string that specifies the next page of results to return in a paginated response. """ -function list_parallel_data(; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( - "ListParallelData"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_parallel_data(; aws_config::AbstractAWSConfig=current_aws_config()) = + translate("ListParallelData"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_parallel_data( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -357,16 +336,13 @@ Lists all tags associated with a given Amazon Translate resource. For more infor are querying. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return translate( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + translate( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -394,11 +370,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies. """ -function list_terminologies(; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( - "ListTerminologies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_terminologies(; aws_config::AbstractAWSConfig=current_aws_config()) = + translate("ListTerminologies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_terminologies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -421,11 +394,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys is 100. - `"NextToken"`: The token to request the next page of results. """ -function list_text_translation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( +list_text_translation_jobs(; aws_config::AbstractAWSConfig=current_aws_config()) = + translate( "ListTextTranslationJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_text_translation_jobs( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -491,7 +463,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys available custom terminology resources, use the ListTerminologies operation. For more information, see Custom terminology. """ -function start_text_translation_job( +start_text_translation_job( ClientToken, DataAccessRoleArn, InputDataConfig, @@ -499,21 +471,19 @@ function start_text_translation_job( SourceLanguageCode, TargetLanguageCodes; aws_config::AbstractAWSConfig=current_aws_config(), +) = translate( + "StartTextTranslationJob", + Dict{String,Any}( + "ClientToken" => ClientToken, + "DataAccessRoleArn" => DataAccessRoleArn, + "InputDataConfig" => InputDataConfig, + "OutputDataConfig" => OutputDataConfig, + "SourceLanguageCode" => SourceLanguageCode, + "TargetLanguageCodes" => TargetLanguageCodes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return translate( - "StartTextTranslationJob", - Dict{String,Any}( - "ClientToken" => ClientToken, - "DataAccessRoleArn" => DataAccessRoleArn, - "InputDataConfig" => InputDataConfig, - "OutputDataConfig" => OutputDataConfig, - "SourceLanguageCode" => SourceLanguageCode, - "TargetLanguageCodes" => TargetLanguageCodes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_text_translation_job( ClientToken, DataAccessRoleArn, @@ -561,16 +531,13 @@ job's JobId. - `job_id`: The job ID of the job to be stopped. """ -function stop_text_translation_job( - JobId; aws_config::AbstractAWSConfig=current_aws_config() -) - return translate( +stop_text_translation_job(JobId; aws_config::AbstractAWSConfig=current_aws_config()) = + translate( "StopTextTranslationJob", Dict{String,Any}("JobId" => JobId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_text_translation_job( JobId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -596,14 +563,13 @@ metadata to a resource. For more information, see Tagging your resources. maximum of 50 tags (both existing and pending) associated with a specific resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return translate( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + translate( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -661,23 +627,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys terminology lists. For more information about custom terminology lists, see Custom terminology. """ -function translate_document( +translate_document( Document, SourceLanguageCode, TargetLanguageCode; aws_config::AbstractAWSConfig=current_aws_config(), +) = translate( + "TranslateDocument", + Dict{String,Any}( + "Document" => Document, + "SourceLanguageCode" => SourceLanguageCode, + "TargetLanguageCode" => TargetLanguageCode, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return translate( - "TranslateDocument", - Dict{String,Any}( - "Document" => Document, - "SourceLanguageCode" => SourceLanguageCode, - "TargetLanguageCode" => TargetLanguageCode, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function translate_document( Document, SourceLanguageCode, @@ -736,23 +700,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys terminology lists. For more information about custom terminology lists, see Custom terminology. """ -function translate_text( +translate_text( SourceLanguageCode, TargetLanguageCode, Text; aws_config::AbstractAWSConfig=current_aws_config(), +) = translate( + "TranslateText", + Dict{String,Any}( + "SourceLanguageCode" => SourceLanguageCode, + "TargetLanguageCode" => TargetLanguageCode, + "Text" => Text, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return translate( - "TranslateText", - Dict{String,Any}( - "SourceLanguageCode" => SourceLanguageCode, - "TargetLanguageCode" => TargetLanguageCode, - "Text" => Text, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function translate_text( SourceLanguageCode, TargetLanguageCode, @@ -792,16 +754,13 @@ see Tagging your resources. given resource. Keys must be unique and cannot be duplicated for a particular resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return translate( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + translate( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -840,23 +799,21 @@ Amazon S3. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A custom description for the parallel data resource in Amazon Translate. """ -function update_parallel_data( +update_parallel_data( ClientToken, Name, ParallelDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = translate( + "UpdateParallelData", + Dict{String,Any}( + "ClientToken" => ClientToken, + "Name" => Name, + "ParallelDataConfig" => ParallelDataConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return translate( - "UpdateParallelData", - Dict{String,Any}( - "ClientToken" => ClientToken, - "Name" => Name, - "ParallelDataConfig" => ParallelDataConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_parallel_data( ClientToken, Name, diff --git a/src/services/trustedadvisor.jl b/src/services/trustedadvisor.jl index 9cca2d4db..ffe0405cc 100644 --- a/src/services/trustedadvisor.jl +++ b/src/services/trustedadvisor.jl @@ -15,19 +15,17 @@ Update one or more exclusion status for a list of recommendation resources exclusion status to update """ -function batch_update_recommendation_resource_exclusion( +batch_update_recommendation_resource_exclusion( recommendationResourceExclusions; aws_config::AbstractAWSConfig=current_aws_config() +) = trustedadvisor( + "PUT", + "/v1/batch-update-recommendation-resource-exclusion", + Dict{String,Any}( + "recommendationResourceExclusions" => recommendationResourceExclusions + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return trustedadvisor( - "PUT", - "/v1/batch-update-recommendation-resource-exclusion", - Dict{String,Any}( - "recommendationResourceExclusions" => recommendationResourceExclusions - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_recommendation_resource_exclusion( recommendationResourceExclusions, params::AbstractDict{String}; @@ -61,16 +59,14 @@ only prioritized recommendations. - `organization_recommendation_identifier`: The Recommendation identifier """ -function get_organization_recommendation( +get_organization_recommendation( organizationRecommendationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = trustedadvisor( + "GET", + "/v1/organization-recommendations/$(organizationRecommendationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return trustedadvisor( - "GET", - "/v1/organization-recommendations/$(organizationRecommendationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_organization_recommendation( organizationRecommendationIdentifier, params::AbstractDict{String}; @@ -95,16 +91,14 @@ Get a specific Recommendation - `recommendation_identifier`: The Recommendation identifier """ -function get_recommendation( +get_recommendation( recommendationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = trustedadvisor( + "GET", + "/v1/recommendations/$(recommendationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return trustedadvisor( - "GET", - "/v1/recommendations/$(recommendationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recommendation( recommendationIdentifier, params::AbstractDict{String}; @@ -135,11 +129,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"pillar"`: The pillar of the check - `"source"`: The source of the check """ -function list_checks(; aws_config::AbstractAWSConfig=current_aws_config()) - return trustedadvisor( - "GET", "/v1/checks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_checks(; aws_config::AbstractAWSConfig=current_aws_config()) = trustedadvisor( + "GET", "/v1/checks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_checks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -165,16 +157,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_organization_recommendation_accounts( +list_organization_recommendation_accounts( organizationRecommendationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = trustedadvisor( + "GET", + "/v1/organization-recommendations/$(organizationRecommendationIdentifier)/accounts"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return trustedadvisor( - "GET", - "/v1/organization-recommendations/$(organizationRecommendationIdentifier)/accounts"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_organization_recommendation_accounts( organizationRecommendationIdentifier, params::AbstractDict{String}; @@ -210,16 +200,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"regionCode"`: The AWS Region code of the resource - `"status"`: The status of the resource """ -function list_organization_recommendation_resources( +list_organization_recommendation_resources( organizationRecommendationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = trustedadvisor( + "GET", + "/v1/organization-recommendations/$(organizationRecommendationIdentifier)/resources"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return trustedadvisor( - "GET", - "/v1/organization-recommendations/$(organizationRecommendationIdentifier)/resources"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_organization_recommendation_resources( organizationRecommendationIdentifier, params::AbstractDict{String}; @@ -255,16 +243,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the Recommendation - `"type"`: The type of the Recommendation """ -function list_organization_recommendations(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return trustedadvisor( +list_organization_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = + trustedadvisor( "GET", "/v1/organization-recommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_organization_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -295,16 +280,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"regionCode"`: The AWS Region code of the resource - `"status"`: The status of the resource """ -function list_recommendation_resources( +list_recommendation_resources( recommendationIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = trustedadvisor( + "GET", + "/v1/recommendations/$(recommendationIdentifier)/resources"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return trustedadvisor( - "GET", - "/v1/recommendations/$(recommendationIdentifier)/resources"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_recommendation_resources( recommendationIdentifier, params::AbstractDict{String}; @@ -339,11 +322,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"status"`: The status of the Recommendation - `"type"`: The type of the Recommendation """ -function list_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) - return trustedadvisor( - "GET", "/v1/recommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_recommendations(; aws_config::AbstractAWSConfig=current_aws_config()) = trustedadvisor( + "GET", "/v1/recommendations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_recommendations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -373,19 +354,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"updateReason"`: Reason for the lifecycle stage change - `"updateReasonCode"`: Reason code for the lifecycle state change """ -function update_organization_recommendation_lifecycle( +update_organization_recommendation_lifecycle( lifecycleStage, organizationRecommendationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = trustedadvisor( + "PUT", + "/v1/organization-recommendations/$(organizationRecommendationIdentifier)/lifecycle", + Dict{String,Any}("lifecycleStage" => lifecycleStage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return trustedadvisor( - "PUT", - "/v1/organization-recommendations/$(organizationRecommendationIdentifier)/lifecycle", - Dict{String,Any}("lifecycleStage" => lifecycleStage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_organization_recommendation_lifecycle( lifecycleStage, organizationRecommendationIdentifier, @@ -419,19 +398,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"updateReason"`: Reason for the lifecycle stage change - `"updateReasonCode"`: Reason code for the lifecycle state change """ -function update_recommendation_lifecycle( +update_recommendation_lifecycle( lifecycleStage, recommendationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = trustedadvisor( + "PUT", + "/v1/recommendations/$(recommendationIdentifier)/lifecycle", + Dict{String,Any}("lifecycleStage" => lifecycleStage); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return trustedadvisor( - "PUT", - "/v1/recommendations/$(recommendationIdentifier)/lifecycle", - Dict{String,Any}("lifecycleStage" => lifecycleStage); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_recommendation_lifecycle( lifecycleStage, recommendationIdentifier, diff --git a/src/services/verifiedpermissions.jl b/src/services/verifiedpermissions.jl index d95f3f857..e2e767045 100644 --- a/src/services/verifiedpermissions.jl +++ b/src/services/verifiedpermissions.jl @@ -35,16 +35,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema. """ -function batch_is_authorized( +batch_is_authorized( policyStoreId, requests; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "BatchIsAuthorized", + Dict{String,Any}("policyStoreId" => policyStoreId, "requests" => requests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "BatchIsAuthorized", - Dict{String,Any}("policyStoreId" => policyStoreId, "requests" => requests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_is_authorized( policyStoreId, requests, @@ -108,16 +106,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys identityToken, or both. Must be an ID token. Verified Permissions returns an error if the token_use claim in the submitted token isn't id. """ -function batch_is_authorized_with_token( +batch_is_authorized_with_token( policyStoreId, requests; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "BatchIsAuthorizedWithToken", + Dict{String,Any}("policyStoreId" => policyStoreId, "requests" => requests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "BatchIsAuthorizedWithToken", - Dict{String,Any}("policyStoreId" => policyStoreId, "requests" => requests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_is_authorized_with_token( policyStoreId, requests, @@ -184,20 +180,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"principalEntityType"`: Specifies the namespace and data type of the principals generated for identities authenticated by the new identity source. """ -function create_identity_source( +create_identity_source( configuration, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "CreateIdentitySource", + Dict{String,Any}( + "configuration" => configuration, + "policyStoreId" => policyStoreId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "CreateIdentitySource", - Dict{String,Any}( - "configuration" => configuration, - "policyStoreId" => policyStoreId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_identity_source( configuration, policyStoreId, @@ -258,20 +252,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the next request with the same parameters performs the operation again regardless of the value of ClientToken. """ -function create_policy( +create_policy( definition, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "CreatePolicy", + Dict{String,Any}( + "definition" => definition, + "policyStoreId" => policyStoreId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "CreatePolicy", - Dict{String,Any}( - "definition" => definition, - "policyStoreId" => policyStoreId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_policy( definition, policyStoreId, @@ -329,18 +321,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Descriptive text that you can provide to help with identification of the current policy store. """ -function create_policy_store( +create_policy_store( validationSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "CreatePolicyStore", + Dict{String,Any}( + "validationSettings" => validationSettings, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "CreatePolicyStore", - Dict{String,Any}( - "validationSettings" => validationSettings, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_policy_store( validationSettings, params::AbstractDict{String}; @@ -396,20 +386,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value of ClientToken. - `"description"`: Specifies a description for the policy template. """ -function create_policy_template( +create_policy_template( policyStoreId, statement; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "CreatePolicyTemplate", + Dict{String,Any}( + "policyStoreId" => policyStoreId, + "statement" => statement, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "CreatePolicyTemplate", - Dict{String,Any}( - "policyStoreId" => policyStoreId, - "statement" => statement, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_policy_template( policyStoreId, statement, @@ -449,18 +437,16 @@ IsAuthorizedWithToken. operations. that you want to delete. """ -function delete_identity_source( +delete_identity_source( identitySourceId, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "DeleteIdentitySource", + Dict{String,Any}( + "identitySourceId" => identitySourceId, "policyStoreId" => policyStoreId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "DeleteIdentitySource", - Dict{String,Any}( - "identitySourceId" => identitySourceId, "policyStoreId" => policyStoreId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_identity_source( identitySourceId, policyStoreId, @@ -497,16 +483,13 @@ status code. want to delete. """ -function delete_policy( - policyId, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return verifiedpermissions( +delete_policy(policyId, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "DeletePolicy", Dict{String,Any}("policyId" => policyId, "policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_policy( policyId, policyStoreId, @@ -539,16 +522,13 @@ status code. - `policy_store_id`: Specifies the ID of the policy store that you want to delete. """ -function delete_policy_store( - policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return verifiedpermissions( +delete_policy_store(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "DeletePolicyStore", Dict{String,Any}("policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_policy_store( policyStoreId, params::AbstractDict{String}; @@ -579,18 +559,16 @@ policy store. - `policy_template_id`: Specifies the ID of the policy template that you want to delete. """ -function delete_policy_template( +delete_policy_template( policyStoreId, policyTemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "DeletePolicyTemplate", + Dict{String,Any}( + "policyStoreId" => policyStoreId, "policyTemplateId" => policyTemplateId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "DeletePolicyTemplate", - Dict{String,Any}( - "policyStoreId" => policyStoreId, "policyTemplateId" => policyTemplateId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_policy_template( policyStoreId, policyTemplateId, @@ -625,18 +603,16 @@ Retrieves the details about the specified identity source. you want information about. """ -function get_identity_source( +get_identity_source( identitySourceId, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "GetIdentitySource", + Dict{String,Any}( + "identitySourceId" => identitySourceId, "policyStoreId" => policyStoreId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "GetIdentitySource", - Dict{String,Any}( - "identitySourceId" => identitySourceId, "policyStoreId" => policyStoreId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_source( identitySourceId, policyStoreId, @@ -671,16 +647,13 @@ Retrieves information about the specified policy. want information about. """ -function get_policy( - policyId, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return verifiedpermissions( +get_policy(policyId, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "GetPolicy", Dict{String,Any}("policyId" => policyId, "policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_policy( policyId, policyStoreId, @@ -711,14 +684,13 @@ Retrieves details about a policy store. - `policy_store_id`: Specifies the ID of the policy store that you want information about. """ -function get_policy_store(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return verifiedpermissions( +get_policy_store(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "GetPolicyStore", Dict{String,Any}("policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_policy_store( policyStoreId, params::AbstractDict{String}; @@ -747,18 +719,16 @@ Retrieve the details for the specified policy template in the specified policy s about. """ -function get_policy_template( +get_policy_template( policyStoreId, policyTemplateId; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "GetPolicyTemplate", + Dict{String,Any}( + "policyStoreId" => policyStoreId, "policyTemplateId" => policyTemplateId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "GetPolicyTemplate", - Dict{String,Any}( - "policyStoreId" => policyStoreId, "policyTemplateId" => policyTemplateId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_policy_template( policyStoreId, policyTemplateId, @@ -791,14 +761,13 @@ Retrieve the details for the specified schema in the specified policy store. - `policy_store_id`: Specifies the ID of the policy store that contains the schema. """ -function get_schema(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return verifiedpermissions( +get_schema(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "GetSchema", Dict{String,Any}("policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_schema( policyStoreId, params::AbstractDict{String}; @@ -841,14 +810,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"principal"`: Specifies the principal for which the authorization decision is to be made. - `"resource"`: Specifies the resource for which the authorization decision is to be made. """ -function is_authorized(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return verifiedpermissions( +is_authorized(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "IsAuthorized", Dict{String,Any}("policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function is_authorized( policyStoreId, params::AbstractDict{String}; @@ -910,16 +878,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"resource"`: Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource? """ -function is_authorized_with_token( +is_authorized_with_token( policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "IsAuthorizedWithToken", + Dict{String,Any}("policyStoreId" => policyStoreId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "IsAuthorizedWithToken", - Dict{String,Any}("policyStoreId" => policyStoreId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function is_authorized_with_token( policyStoreId, params::AbstractDict{String}; @@ -964,16 +930,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_identity_sources( - policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return verifiedpermissions( +list_identity_sources(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "ListIdentitySources", Dict{String,Any}("policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_identity_sources( policyStoreId, params::AbstractDict{String}; @@ -1016,14 +979,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_policies(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) - return verifiedpermissions( +list_policies(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "ListPolicies", Dict{String,Any}("policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_policies( policyStoreId, params::AbstractDict{String}; @@ -1060,11 +1022,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_policy_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return verifiedpermissions( +list_policy_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "ListPolicyStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_policy_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1099,16 +1060,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results. """ -function list_policy_templates( - policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return verifiedpermissions( +list_policy_templates(policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "ListPolicyTemplates", Dict{String,Any}("policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_policy_templates( policyStoreId, params::AbstractDict{String}; @@ -1143,16 +1101,13 @@ Permissions operations. - `policy_store_id`: Specifies the ID of the policy store in which to place the schema. """ -function put_schema( - definition, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() -) - return verifiedpermissions( +put_schema(definition, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config()) = + verifiedpermissions( "PutSchema", Dict{String,Any}("definition" => definition, "policyStoreId" => policyStoreId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function put_schema( definition, policyStoreId, @@ -1199,23 +1154,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"principalEntityType"`: Specifies the data type of principals generated for identities authenticated by the identity source. """ -function update_identity_source( +update_identity_source( identitySourceId, policyStoreId, updateConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = verifiedpermissions( + "UpdateIdentitySource", + Dict{String,Any}( + "identitySourceId" => identitySourceId, + "policyStoreId" => policyStoreId, + "updateConfiguration" => updateConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "UpdateIdentitySource", - Dict{String,Any}( - "identitySourceId" => identitySourceId, - "policyStoreId" => policyStoreId, - "updateConfiguration" => updateConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_identity_source( identitySourceId, policyStoreId, @@ -1275,20 +1228,18 @@ visible in the results of other Verified Permissions operations. want to update. """ -function update_policy( +update_policy( definition, policyId, policyStoreId; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "UpdatePolicy", + Dict{String,Any}( + "definition" => definition, + "policyId" => policyId, + "policyStoreId" => policyStoreId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "UpdatePolicy", - Dict{String,Any}( - "definition" => definition, - "policyId" => policyId, - "policyStoreId" => policyStoreId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_policy( definition, policyId, @@ -1332,18 +1283,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: Descriptive text that you can provide to help with identification of the current policy store. """ -function update_policy_store( +update_policy_store( policyStoreId, validationSettings; aws_config::AbstractAWSConfig=current_aws_config() +) = verifiedpermissions( + "UpdatePolicyStore", + Dict{String,Any}( + "policyStoreId" => policyStoreId, "validationSettings" => validationSettings + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "UpdatePolicyStore", - Dict{String,Any}( - "policyStoreId" => policyStoreId, "validationSettings" => validationSettings - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_policy_store( policyStoreId, validationSettings, @@ -1394,23 +1343,21 @@ Verified Permissions operations. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"description"`: Specifies a new description to apply to the policy template. """ -function update_policy_template( +update_policy_template( policyStoreId, policyTemplateId, statement; aws_config::AbstractAWSConfig=current_aws_config(), +) = verifiedpermissions( + "UpdatePolicyTemplate", + Dict{String,Any}( + "policyStoreId" => policyStoreId, + "policyTemplateId" => policyTemplateId, + "statement" => statement, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return verifiedpermissions( - "UpdatePolicyTemplate", - Dict{String,Any}( - "policyStoreId" => policyStoreId, - "policyTemplateId" => policyTemplateId, - "statement" => statement, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_policy_template( policyStoreId, policyTemplateId, diff --git a/src/services/voice_id.jl b/src/services/voice_id.jl index 63264f40c..623336715 100644 --- a/src/services/voice_id.jl +++ b/src/services/voice_id.jl @@ -16,20 +16,18 @@ Associates the fraudsters with the watchlist specified in the same domain. - `watchlist_id`: The identifier of the watchlist you want to associate with the fraudster. """ -function associate_fraudster( +associate_fraudster( DomainId, FraudsterId, WatchlistId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "AssociateFraudster", + Dict{String,Any}( + "DomainId" => DomainId, + "FraudsterId" => FraudsterId, + "WatchlistId" => WatchlistId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "AssociateFraudster", - Dict{String,Any}( - "DomainId" => DomainId, - "FraudsterId" => FraudsterId, - "WatchlistId" => WatchlistId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_fraudster( DomainId, FraudsterId, @@ -77,22 +75,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A brief description of this domain. - `"Tags"`: A list of tags you want added to the domain. """ -function create_domain( +create_domain( Name, ServerSideEncryptionConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = voice_id( + "CreateDomain", + Dict{String,Any}( + "Name" => Name, + "ServerSideEncryptionConfiguration" => ServerSideEncryptionConfiguration, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "CreateDomain", - Dict{String,Any}( - "Name" => Name, - "ServerSideEncryptionConfiguration" => ServerSideEncryptionConfiguration, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_domain( Name, ServerSideEncryptionConfiguration, @@ -135,10 +131,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys field. For more information about idempotency, see Making retries safe with idempotent APIs. - `"Description"`: A brief description of this watchlist. """ -function create_watchlist( - DomainId, Name; aws_config::AbstractAWSConfig=current_aws_config() -) - return voice_id( +create_watchlist(DomainId, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id( "CreateWatchlist", Dict{String,Any}( "DomainId" => DomainId, "Name" => Name, "ClientToken" => string(uuid4()) @@ -146,7 +140,6 @@ function create_watchlist( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_watchlist( DomainId, Name, @@ -179,14 +172,12 @@ Deletes the specified domain from Voice ID. - `domain_id`: The identifier of the domain you want to delete. """ -function delete_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) - return voice_id( - "DeleteDomain", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = voice_id( + "DeleteDomain", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_domain( DomainId, params::AbstractDict{String}; @@ -214,16 +205,14 @@ any watchlists it is a part of. - `fraudster_id`: The identifier of the fraudster you want to delete. """ -function delete_fraudster( +delete_fraudster( DomainId, FraudsterId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "DeleteFraudster", + Dict{String,Any}("DomainId" => DomainId, "FraudsterId" => FraudsterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "DeleteFraudster", - Dict{String,Any}("DomainId" => DomainId, "FraudsterId" => FraudsterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_fraudster( DomainId, FraudsterId, @@ -255,16 +244,13 @@ Deletes the specified speaker from Voice ID. - `speaker_id`: The identifier of the speaker you want to delete. """ -function delete_speaker( - DomainId, SpeakerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return voice_id( +delete_speaker(DomainId, SpeakerId; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id( "DeleteSpeaker", Dict{String,Any}("DomainId" => DomainId, "SpeakerId" => SpeakerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_speaker( DomainId, SpeakerId, @@ -299,16 +285,14 @@ deleted. - `watchlist_id`: The identifier of the watchlist to be deleted. """ -function delete_watchlist( +delete_watchlist( DomainId, WatchlistId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "DeleteWatchlist", + Dict{String,Any}("DomainId" => DomainId, "WatchlistId" => WatchlistId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "DeleteWatchlist", - Dict{String,Any}("DomainId" => DomainId, "WatchlistId" => WatchlistId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_watchlist( DomainId, WatchlistId, @@ -339,14 +323,12 @@ Describes the specified domain. - `domain_id`: The identifier of the domain that you are describing. """ -function describe_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) - return voice_id( - "DescribeDomain", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_domain(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = voice_id( + "DescribeDomain", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_domain( DomainId, params::AbstractDict{String}; @@ -373,16 +355,14 @@ Describes the specified fraudster. - `fraudster_id`: The identifier of the fraudster you are describing. """ -function describe_fraudster( +describe_fraudster( DomainId, FraudsterId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "DescribeFraudster", + Dict{String,Any}("DomainId" => DomainId, "FraudsterId" => FraudsterId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "DescribeFraudster", - Dict{String,Any}("DomainId" => DomainId, "FraudsterId" => FraudsterId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fraudster( DomainId, FraudsterId, @@ -414,16 +394,14 @@ Describes the specified fraudster registration job. - `job_id`: The identifier of the fraudster registration job you are describing. """ -function describe_fraudster_registration_job( +describe_fraudster_registration_job( DomainId, JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "DescribeFraudsterRegistrationJob", + Dict{String,Any}("DomainId" => DomainId, "JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "DescribeFraudsterRegistrationJob", - Dict{String,Any}("DomainId" => DomainId, "JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_fraudster_registration_job( DomainId, JobId, @@ -453,16 +431,13 @@ Describes the specified speaker. - `speaker_id`: The identifier of the speaker you are describing. """ -function describe_speaker( - DomainId, SpeakerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return voice_id( +describe_speaker(DomainId, SpeakerId; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id( "DescribeSpeaker", Dict{String,Any}("DomainId" => DomainId, "SpeakerId" => SpeakerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_speaker( DomainId, SpeakerId, @@ -494,16 +469,14 @@ Describes the specified speaker enrollment job. - `job_id`: The identifier of the speaker enrollment job you are describing. """ -function describe_speaker_enrollment_job( +describe_speaker_enrollment_job( DomainId, JobId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "DescribeSpeakerEnrollmentJob", + Dict{String,Any}("DomainId" => DomainId, "JobId" => JobId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "DescribeSpeakerEnrollmentJob", - Dict{String,Any}("DomainId" => DomainId, "JobId" => JobId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_speaker_enrollment_job( DomainId, JobId, @@ -533,16 +506,14 @@ Describes the specified watchlist. - `watchlist_id`: The identifier of the watchlist that you are describing. """ -function describe_watchlist( +describe_watchlist( DomainId, WatchlistId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "DescribeWatchlist", + Dict{String,Any}("DomainId" => DomainId, "WatchlistId" => WatchlistId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "DescribeWatchlist", - Dict{String,Any}("DomainId" => DomainId, "WatchlistId" => WatchlistId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_watchlist( DomainId, WatchlistId, @@ -578,20 +549,18 @@ from its only watchlist, a ValidationException is thrown. fraudster. """ -function disassociate_fraudster( +disassociate_fraudster( DomainId, FraudsterId, WatchlistId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "DisassociateFraudster", + Dict{String,Any}( + "DomainId" => DomainId, + "FraudsterId" => FraudsterId, + "WatchlistId" => WatchlistId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "DisassociateFraudster", - Dict{String,Any}( - "DomainId" => DomainId, - "FraudsterId" => FraudsterId, - "WatchlistId" => WatchlistId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_fraudster( DomainId, FraudsterId, @@ -630,16 +599,14 @@ Connect Voice ID call. evaluate. In Voice ID integration, this is the Contact-Id. """ -function evaluate_session( +evaluate_session( DomainId, SessionNameOrId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "EvaluateSession", + Dict{String,Any}("DomainId" => DomainId, "SessionNameOrId" => SessionNameOrId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "EvaluateSession", - Dict{String,Any}("DomainId" => DomainId, "SessionNameOrId" => SessionNameOrId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function evaluate_session( DomainId, SessionNameOrId, @@ -678,9 +645,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. """ -function list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) - return voice_id("ListDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_domains(; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id("ListDomains"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_domains( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -710,16 +676,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. """ -function list_fraudster_registration_jobs( +list_fraudster_registration_jobs( DomainId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "ListFraudsterRegistrationJobs", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "ListFraudsterRegistrationJobs", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_fraudster_registration_jobs( DomainId, params::AbstractDict{String}; @@ -756,14 +720,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"WatchlistId"`: The identifier of the watchlist. If provided, all fraudsters in the watchlist are listed. If not provided, all fraudsters in the domain are listed. """ -function list_fraudsters(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) - return voice_id( - "ListFraudsters", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_fraudsters(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = voice_id( + "ListFraudsters", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_fraudsters( DomainId, params::AbstractDict{String}; @@ -801,16 +763,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. """ -function list_speaker_enrollment_jobs( - DomainId; aws_config::AbstractAWSConfig=current_aws_config() -) - return voice_id( +list_speaker_enrollment_jobs(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id( "ListSpeakerEnrollmentJobs", Dict{String,Any}("DomainId" => DomainId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_speaker_enrollment_jobs( DomainId, params::AbstractDict{String}; @@ -845,14 +804,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. """ -function list_speakers(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) - return voice_id( - "ListSpeakers", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_speakers(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = voice_id( + "ListSpeakers", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_speakers( DomainId, params::AbstractDict{String}; @@ -879,16 +836,13 @@ Lists all tags associated with a specified Voice ID resource. want to list the tags. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return voice_id( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id( "ListTagsForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -923,14 +877,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. """ -function list_watchlists(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) - return voice_id( - "ListWatchlists", - Dict{String,Any}("DomainId" => DomainId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_watchlists(DomainId; aws_config::AbstractAWSConfig=current_aws_config()) = voice_id( + "ListWatchlists", + Dict{String,Any}("DomainId" => DomainId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_watchlists( DomainId, params::AbstractDict{String}; @@ -961,16 +913,13 @@ speakers, and opted out speakers have no voice embeddings stored in Voice ID. - `speaker_id`: The identifier of the speaker you want opted-out. """ -function opt_out_speaker( - DomainId, SpeakerId; aws_config::AbstractAWSConfig=current_aws_config() -) - return voice_id( +opt_out_speaker(DomainId, SpeakerId; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id( "OptOutSpeaker", Dict{String,Any}("DomainId" => DomainId, "SpeakerId" => SpeakerId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function opt_out_speaker( DomainId, SpeakerId, @@ -1019,26 +968,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys take when a duplicate fraudster is detected, and the similarity threshold to use for detecting a duplicate fraudster. """ -function start_fraudster_registration_job( +start_fraudster_registration_job( DataAccessRoleArn, DomainId, InputDataConfig, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = voice_id( + "StartFraudsterRegistrationJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "DomainId" => DomainId, + "InputDataConfig" => InputDataConfig, + "OutputDataConfig" => OutputDataConfig, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "StartFraudsterRegistrationJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "DomainId" => DomainId, - "InputDataConfig" => InputDataConfig, - "OutputDataConfig" => OutputDataConfig, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_fraudster_registration_job( DataAccessRoleArn, DomainId, @@ -1095,26 +1042,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys fraudster. - `"JobName"`: A name for your speaker enrollment job. """ -function start_speaker_enrollment_job( +start_speaker_enrollment_job( DataAccessRoleArn, DomainId, InputDataConfig, OutputDataConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = voice_id( + "StartSpeakerEnrollmentJob", + Dict{String,Any}( + "DataAccessRoleArn" => DataAccessRoleArn, + "DomainId" => DomainId, + "InputDataConfig" => InputDataConfig, + "OutputDataConfig" => OutputDataConfig, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "StartSpeakerEnrollmentJob", - Dict{String,Any}( - "DataAccessRoleArn" => DataAccessRoleArn, - "DomainId" => DomainId, - "InputDataConfig" => InputDataConfig, - "OutputDataConfig" => OutputDataConfig, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_speaker_enrollment_job( DataAccessRoleArn, DomainId, @@ -1154,14 +1099,13 @@ Tags a Voice ID resource with the provided list of tags. - `tags`: The list of tags to assign to the specified resource. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return voice_id( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id( "TagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1194,16 +1138,13 @@ Removes specified tags from a specified Amazon Connect Voice ID resource. - `tag_keys`: The list of tag keys you want to remove from the specified resource. """ -function untag_resource( - ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return voice_id( +untag_resource(ResourceArn, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + voice_id( "UntagResource", Dict{String,Any}("ResourceArn" => ResourceArn, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, TagKeys, @@ -1246,23 +1187,21 @@ the domain. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A brief description about this domain. """ -function update_domain( +update_domain( DomainId, Name, ServerSideEncryptionConfiguration; aws_config::AbstractAWSConfig=current_aws_config(), +) = voice_id( + "UpdateDomain", + Dict{String,Any}( + "DomainId" => DomainId, + "Name" => Name, + "ServerSideEncryptionConfiguration" => ServerSideEncryptionConfiguration, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "UpdateDomain", - Dict{String,Any}( - "DomainId" => DomainId, - "Name" => Name, - "ServerSideEncryptionConfiguration" => ServerSideEncryptionConfiguration, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_domain( DomainId, Name, @@ -1305,16 +1244,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A brief description about this watchlist. - `"Name"`: The name of the watchlist. """ -function update_watchlist( +update_watchlist( DomainId, WatchlistId; aws_config::AbstractAWSConfig=current_aws_config() +) = voice_id( + "UpdateWatchlist", + Dict{String,Any}("DomainId" => DomainId, "WatchlistId" => WatchlistId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return voice_id( - "UpdateWatchlist", - Dict{String,Any}("DomainId" => DomainId, "WatchlistId" => WatchlistId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_watchlist( DomainId, WatchlistId, diff --git a/src/services/vpc_lattice.jl b/src/services/vpc_lattice.jl index 951c180b4..c9435a51a 100644 --- a/src/services/vpc_lattice.jl +++ b/src/services/vpc_lattice.jl @@ -19,20 +19,18 @@ with IAM in the Amazon VPC Lattice User Guide. - `service_identifier`: The ID or Amazon Resource Name (ARN) of the service. """ -function batch_update_rule( +batch_update_rule( listenerIdentifier, rules, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "PATCH", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules", + Dict{String,Any}("rules" => rules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PATCH", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules", - Dict{String,Any}("rules" => rules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function batch_update_rule( listenerIdentifier, rules, @@ -75,21 +73,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameters aren't identical, the retry fails. - `"tags"`: The tags for the access log subscription. """ -function create_access_log_subscription( +create_access_log_subscription( destinationArn, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "POST", + "/accesslogsubscriptions", + Dict{String,Any}( + "destinationArn" => destinationArn, + "resourceIdentifier" => resourceIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "POST", - "/accesslogsubscriptions", - Dict{String,Any}( - "destinationArn" => destinationArn, - "resourceIdentifier" => resourceIdentifier, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_access_log_subscription( destinationArn, resourceIdentifier, @@ -143,26 +139,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys default is 80. For HTTPS, the default is 443. - `"tags"`: The tags for the listener. """ -function create_listener( +create_listener( defaultAction, name, protocol, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "POST", + "/services/$(serviceIdentifier)/listeners", + Dict{String,Any}( + "defaultAction" => defaultAction, + "name" => name, + "protocol" => protocol, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "POST", - "/services/$(serviceIdentifier)/listeners", - Dict{String,Any}( - "defaultAction" => defaultAction, - "name" => name, - "protocol" => protocol, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_listener( defaultAction, name, @@ -219,7 +213,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameters aren't identical, the retry fails. - `"tags"`: The tags for the rule. """ -function create_rule( +create_rule( action, listenerIdentifier, match, @@ -227,21 +221,19 @@ function create_rule( priority, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "POST", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules", + Dict{String,Any}( + "action" => action, + "match" => match, + "name" => name, + "priority" => priority, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "POST", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules", - Dict{String,Any}( - "action" => action, - "match" => match, - "name" => name, - "priority" => priority, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule( action, listenerIdentifier, @@ -299,15 +291,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"customDomainName"`: The custom domain name of the service. - `"tags"`: The tags for the service. """ -function create_service(name; aws_config::AbstractAWSConfig=current_aws_config()) - return vpc_lattice( - "POST", - "/services", - Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_service(name; aws_config::AbstractAWSConfig=current_aws_config()) = vpc_lattice( + "POST", + "/services", + Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_service( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -350,15 +340,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameters aren't identical, the retry fails. - `"tags"`: The tags for the service network. """ -function create_service_network(name; aws_config::AbstractAWSConfig=current_aws_config()) - return vpc_lattice( +create_service_network(name; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "POST", "/servicenetworks", Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_service_network( name, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -404,23 +393,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys parameters aren't identical, the retry fails. - `"tags"`: The tags for the association. """ -function create_service_network_service_association( +create_service_network_service_association( serviceIdentifier, serviceNetworkIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "POST", + "/servicenetworkserviceassociations", + Dict{String,Any}( + "serviceIdentifier" => serviceIdentifier, + "serviceNetworkIdentifier" => serviceNetworkIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "POST", - "/servicenetworkserviceassociations", - Dict{String,Any}( - "serviceIdentifier" => serviceIdentifier, - "serviceNetworkIdentifier" => serviceNetworkIdentifier, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_network_service_association( serviceIdentifier, serviceNetworkIdentifier, @@ -480,23 +467,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Guide. - `"tags"`: The tags for the association. """ -function create_service_network_vpc_association( +create_service_network_vpc_association( serviceNetworkIdentifier, vpcIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "POST", + "/servicenetworkvpcassociations", + Dict{String,Any}( + "serviceNetworkIdentifier" => serviceNetworkIdentifier, + "vpcIdentifier" => vpcIdentifier, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "POST", - "/servicenetworkvpcassociations", - Dict{String,Any}( - "serviceNetworkIdentifier" => serviceNetworkIdentifier, - "vpcIdentifier" => vpcIdentifier, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_service_network_vpc_association( serviceNetworkIdentifier, vpcIdentifier, @@ -545,15 +530,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"config"`: The target group configuration. - `"tags"`: The tags for the target group. """ -function create_target_group(name, type; aws_config::AbstractAWSConfig=current_aws_config()) - return vpc_lattice( +create_target_group(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "POST", "/targetgroups", Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_target_group( name, type, @@ -588,16 +572,14 @@ Deletes the specified access log subscription. log subscription. """ -function delete_access_log_subscription( +delete_access_log_subscription( accessLogSubscriptionIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "DELETE", + "/accesslogsubscriptions/$(accessLogSubscriptionIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "DELETE", - "/accesslogsubscriptions/$(accessLogSubscriptionIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_log_subscription( accessLogSubscriptionIdentifier, params::AbstractDict{String}; @@ -625,16 +607,13 @@ is set, all requests are denied. - `resource_identifier`: The ID or Amazon Resource Name (ARN) of the resource. """ -function delete_auth_policy( - resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +delete_auth_policy(resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "DELETE", "/authpolicy/$(resourceIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_auth_policy( resourceIdentifier, params::AbstractDict{String}; @@ -660,18 +639,16 @@ Deletes the specified listener. - `service_identifier`: The ID or Amazon Resource Name (ARN) of the service. """ -function delete_listener( +delete_listener( listenerIdentifier, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "DELETE", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "DELETE", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_listener( listenerIdentifier, serviceIdentifier, @@ -697,16 +674,13 @@ Deletes the specified resource policy. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function delete_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +delete_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "DELETE", "/resourcepolicy/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( resourceArn, params::AbstractDict{String}; @@ -737,19 +711,17 @@ Guide. - `service_identifier`: The ID or Amazon Resource Name (ARN) of the service. """ -function delete_rule( +delete_rule( listenerIdentifier, ruleIdentifier, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "DELETE", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules/$(ruleIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "DELETE", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules/$(ruleIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rule( listenerIdentifier, ruleIdentifier, @@ -779,16 +751,13 @@ more information, see Delete a service in the Amazon VPC Lattice User Guide. - `service_identifier`: The ID or Amazon Resource Name (ARN) of the service. """ -function delete_service( - serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +delete_service(serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "DELETE", "/services/$(serviceIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_service( serviceIdentifier, params::AbstractDict{String}; @@ -817,16 +786,14 @@ Lattice User Guide. - `service_network_identifier`: The Amazon Resource Name (ARN) or ID of the service network. """ -function delete_service_network( +delete_service_network( serviceNetworkIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "DELETE", + "/servicenetworks/$(serviceNetworkIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "DELETE", - "/servicenetworks/$(serviceNetworkIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service_network( serviceNetworkIdentifier, params::AbstractDict{String}; @@ -853,17 +820,15 @@ operation fails if an association is still in progress. the association. """ -function delete_service_network_service_association( +delete_service_network_service_association( serviceNetworkServiceAssociationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "DELETE", + "/servicenetworkserviceassociations/$(serviceNetworkServiceAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "DELETE", - "/servicenetworkserviceassociations/$(serviceNetworkServiceAssociationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service_network_service_association( serviceNetworkServiceAssociationIdentifier, params::AbstractDict{String}; @@ -890,17 +855,15 @@ a create or update association in progress. association. """ -function delete_service_network_vpc_association( +delete_service_network_vpc_association( serviceNetworkVpcAssociationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "DELETE", + "/servicenetworkvpcassociations/$(serviceNetworkVpcAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "DELETE", - "/servicenetworkvpcassociations/$(serviceNetworkVpcAssociationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_service_network_vpc_association( serviceNetworkVpcAssociationIdentifier, params::AbstractDict{String}; @@ -926,16 +889,14 @@ if the target group creation is in progress. - `target_group_identifier`: The ID or Amazon Resource Name (ARN) of the target group. """ -function delete_target_group( +delete_target_group( targetGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "DELETE", + "/targetgroups/$(targetGroupIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "DELETE", - "/targetgroups/$(targetGroupIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_target_group( targetGroupIdentifier, params::AbstractDict{String}; @@ -961,17 +922,15 @@ Deregisters the specified targets from the specified target group. - `targets`: The targets to deregister. """ -function deregister_targets( +deregister_targets( targetGroupIdentifier, targets; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "POST", + "/targetgroups/$(targetGroupIdentifier)/deregistertargets", + Dict{String,Any}("targets" => targets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "POST", - "/targetgroups/$(targetGroupIdentifier)/deregistertargets", - Dict{String,Any}("targets" => targets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_targets( targetGroupIdentifier, targets, @@ -998,16 +957,14 @@ Retrieves information about the specified access log subscription. log subscription. """ -function get_access_log_subscription( +get_access_log_subscription( accessLogSubscriptionIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "GET", + "/accesslogsubscriptions/$(accessLogSubscriptionIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/accesslogsubscriptions/$(accessLogSubscriptionIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_log_subscription( accessLogSubscriptionIdentifier, params::AbstractDict{String}; @@ -1033,16 +990,13 @@ Retrieves information about the auth policy for the specified service or service service. """ -function get_auth_policy( - resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +get_auth_policy(resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "GET", "/authpolicy/$(resourceIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_auth_policy( resourceIdentifier, params::AbstractDict{String}; @@ -1068,18 +1022,16 @@ Retrieves information about the specified listener for the specified service. - `service_identifier`: The ID or Amazon Resource Name (ARN) of the service. """ -function get_listener( +get_listener( listenerIdentifier, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "GET", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_listener( listenerIdentifier, serviceIdentifier, @@ -1106,16 +1058,13 @@ created on behalf of the resource owner when they share a resource. - `resource_arn`: The Amazon Resource Name (ARN) of the service network or service. """ -function get_resource_policy( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +get_resource_policy(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "GET", "/resourcepolicy/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_resource_policy( resourceArn, params::AbstractDict{String}; @@ -1144,19 +1093,17 @@ User Guide. - `service_identifier`: The ID or Amazon Resource Name (ARN) of the service. """ -function get_rule( +get_rule( listenerIdentifier, ruleIdentifier, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "GET", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules/$(ruleIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules/$(ruleIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_rule( listenerIdentifier, ruleIdentifier, @@ -1183,14 +1130,13 @@ Retrieves information about the specified service. - `service_identifier`: The ID or Amazon Resource Name (ARN) of the service. """ -function get_service(serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) - return vpc_lattice( +get_service(serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "GET", "/services/$(serviceIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_service( serviceIdentifier, params::AbstractDict{String}; @@ -1215,16 +1161,14 @@ Retrieves information about the specified service network. - `service_network_identifier`: The ID or Amazon Resource Name (ARN) of the service network. """ -function get_service_network( +get_service_network( serviceNetworkIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "GET", + "/servicenetworks/$(serviceNetworkIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/servicenetworks/$(serviceNetworkIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_network( serviceNetworkIdentifier, params::AbstractDict{String}; @@ -1251,17 +1195,15 @@ service. the association. """ -function get_service_network_service_association( +get_service_network_service_association( serviceNetworkServiceAssociationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "GET", + "/servicenetworkserviceassociations/$(serviceNetworkServiceAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/servicenetworkserviceassociations/$(serviceNetworkServiceAssociationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_network_service_association( serviceNetworkServiceAssociationIdentifier, params::AbstractDict{String}; @@ -1287,17 +1229,15 @@ Retrieves information about the association between a service network and a VPC. association. """ -function get_service_network_vpc_association( +get_service_network_vpc_association( serviceNetworkVpcAssociationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "GET", + "/servicenetworkvpcassociations/$(serviceNetworkVpcAssociationIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/servicenetworkvpcassociations/$(serviceNetworkVpcAssociationIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_service_network_vpc_association( serviceNetworkVpcAssociationIdentifier, params::AbstractDict{String}; @@ -1322,16 +1262,14 @@ Retrieves information about the specified target group. - `target_group_identifier`: The ID or Amazon Resource Name (ARN) of the target group. """ -function get_target_group( +get_target_group( targetGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "GET", + "/targetgroups/$(targetGroupIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/targetgroups/$(targetGroupIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_target_group( targetGroupIdentifier, params::AbstractDict{String}; @@ -1361,17 +1299,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: A pagination token for the next page of results. """ -function list_access_log_subscriptions( +list_access_log_subscriptions( resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "GET", + "/accesslogsubscriptions", + Dict{String,Any}("resourceIdentifier" => resourceIdentifier); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/accesslogsubscriptions", - Dict{String,Any}("resourceIdentifier" => resourceIdentifier); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_access_log_subscriptions( resourceIdentifier, params::AbstractDict{String}; @@ -1404,16 +1340,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: A pagination token for the next page of results. """ -function list_listeners( - serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +list_listeners(serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "GET", "/services/$(serviceIdentifier)/listeners"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_listeners( serviceIdentifier, params::AbstractDict{String}; @@ -1443,18 +1376,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: A pagination token for the next page of results. """ -function list_rules( +list_rules( listenerIdentifier, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "GET", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_rules( listenerIdentifier, serviceIdentifier, @@ -1489,16 +1420,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceIdentifier"`: The ID or Amazon Resource Name (ARN) of the service. - `"serviceNetworkIdentifier"`: The ID or Amazon Resource Name (ARN) of the service network. """ -function list_service_network_service_associations(; +list_service_network_service_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "GET", + "/servicenetworkserviceassociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/servicenetworkserviceassociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_network_service_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1526,16 +1455,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"serviceNetworkIdentifier"`: The ID or Amazon Resource Name (ARN) of the service network. - `"vpcIdentifier"`: The ID or Amazon Resource Name (ARN) of the VPC. """ -function list_service_network_vpc_associations(; +list_service_network_vpc_associations(; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "GET", + "/servicenetworkvpcassociations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "GET", - "/servicenetworkvpcassociations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_service_network_vpc_associations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1560,11 +1487,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: A pagination token for the next page of results. """ -function list_service_networks(; aws_config::AbstractAWSConfig=current_aws_config()) - return vpc_lattice( - "GET", "/servicenetworks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_service_networks(; aws_config::AbstractAWSConfig=current_aws_config()) = vpc_lattice( + "GET", "/servicenetworks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_service_networks( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1588,11 +1513,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxResults"`: The maximum number of results to return. - `"nextToken"`: A pagination token for the next page of results. """ -function list_services(; aws_config::AbstractAWSConfig=current_aws_config()) - return vpc_lattice( - "GET", "/services"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_services(; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice("GET", "/services"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_services( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1611,16 +1533,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1649,11 +1568,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"targetGroupType"`: The target group type. - `"vpcIdentifier"`: The ID or Amazon Resource Name (ARN) of the VPC. """ -function list_target_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return vpc_lattice( - "GET", "/targetgroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_target_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = vpc_lattice( + "GET", "/targetgroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_target_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1682,16 +1599,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: A pagination token for the next page of results. - `"targets"`: The targets. """ -function list_targets( - targetGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +list_targets(targetGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "POST", "/targetgroups/$(targetGroupIdentifier)/listtargets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_targets( targetGroupIdentifier, params::AbstractDict{String}; @@ -1720,17 +1634,15 @@ blank lines. For more information, see Auth policies in the Amazon VPC Lattice U service for which the policy is created. """ -function put_auth_policy( +put_auth_policy( policy, resourceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "PUT", + "/authpolicy/$(resourceIdentifier)", + Dict{String,Any}("policy" => policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PUT", - "/authpolicy/$(resourceIdentifier)", - Dict{String,Any}("policy" => policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_auth_policy( policy, resourceIdentifier, @@ -1761,17 +1673,15 @@ Access Manager permission for sharing services and service networks. for which the policy is created. """ -function put_resource_policy( +put_resource_policy( policy, resourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "PUT", + "/resourcepolicy/$(resourceArn)", + Dict{String,Any}("policy" => policy); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PUT", - "/resourcepolicy/$(resourceArn)", - Dict{String,Any}("policy" => policy); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( policy, resourceArn, @@ -1799,17 +1709,15 @@ target in a target group. - `targets`: The targets. """ -function register_targets( +register_targets( targetGroupIdentifier, targets; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "POST", + "/targetgroups/$(targetGroupIdentifier)/registertargets", + Dict{String,Any}("targets" => targets); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "POST", - "/targetgroups/$(targetGroupIdentifier)/registertargets", - Dict{String,Any}("targets" => targets); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_targets( targetGroupIdentifier, targets, @@ -1836,15 +1744,14 @@ Adds the specified tags to the specified resource. - `tags`: The tags for the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return vpc_lattice( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1871,17 +1778,14 @@ Removes the specified tags from the specified resource. - `tag_keys`: The tag keys of the tags to remove. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1909,19 +1813,17 @@ Updates the specified access log subscription. - `destination_arn`: The Amazon Resource Name (ARN) of the access log destination. """ -function update_access_log_subscription( +update_access_log_subscription( accessLogSubscriptionIdentifier, destinationArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "PATCH", + "/accesslogsubscriptions/$(accessLogSubscriptionIdentifier)", + Dict{String,Any}("destinationArn" => destinationArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PATCH", - "/accesslogsubscriptions/$(accessLogSubscriptionIdentifier)", - Dict{String,Any}("destinationArn" => destinationArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_access_log_subscription( accessLogSubscriptionIdentifier, destinationArn, @@ -1951,20 +1853,18 @@ Updates the specified listener for the specified service. - `service_identifier`: The ID or Amazon Resource Name (ARN) of the service. """ -function update_listener( +update_listener( defaultAction, listenerIdentifier, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "PATCH", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)", + Dict{String,Any}("defaultAction" => defaultAction); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PATCH", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)", - Dict{String,Any}("defaultAction" => defaultAction); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_listener( defaultAction, listenerIdentifier, @@ -2002,19 +1902,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"priority"`: The rule priority. A listener can't have multiple rules with the same priority. """ -function update_rule( +update_rule( listenerIdentifier, ruleIdentifier, serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "PATCH", + "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules/$(ruleIdentifier)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PATCH", - "/services/$(serviceIdentifier)/listeners/$(listenerIdentifier)/rules/$(ruleIdentifier)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule( listenerIdentifier, ruleIdentifier, @@ -2047,16 +1945,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys auth is enabled and an auth policy is required. - `"certificateArn"`: The Amazon Resource Name (ARN) of the certificate. """ -function update_service( - serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config() -) - return vpc_lattice( +update_service(serviceIdentifier; aws_config::AbstractAWSConfig=current_aws_config()) = + vpc_lattice( "PATCH", "/services/$(serviceIdentifier)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_service( serviceIdentifier, params::AbstractDict{String}; @@ -2084,17 +1979,15 @@ Updates the specified service network. - `service_network_identifier`: The ID or Amazon Resource Name (ARN) of the service network. """ -function update_service_network( +update_service_network( authType, serviceNetworkIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "PATCH", + "/servicenetworks/$(serviceNetworkIdentifier)", + Dict{String,Any}("authType" => authType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PATCH", - "/servicenetworks/$(serviceNetworkIdentifier)", - Dict{String,Any}("authType" => authType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_network( authType, serviceNetworkIdentifier, @@ -2128,19 +2021,17 @@ groups. association. """ -function update_service_network_vpc_association( +update_service_network_vpc_association( securityGroupIds, serviceNetworkVpcAssociationIdentifier; aws_config::AbstractAWSConfig=current_aws_config(), +) = vpc_lattice( + "PATCH", + "/servicenetworkvpcassociations/$(serviceNetworkVpcAssociationIdentifier)", + Dict{String,Any}("securityGroupIds" => securityGroupIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PATCH", - "/servicenetworkvpcassociations/$(serviceNetworkVpcAssociationIdentifier)", - Dict{String,Any}("securityGroupIds" => securityGroupIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_service_network_vpc_association( securityGroupIds, serviceNetworkVpcAssociationIdentifier, @@ -2171,17 +2062,15 @@ Updates the specified target group. - `target_group_identifier`: The ID or Amazon Resource Name (ARN) of the target group. """ -function update_target_group( +update_target_group( healthCheck, targetGroupIdentifier; aws_config::AbstractAWSConfig=current_aws_config() +) = vpc_lattice( + "PATCH", + "/targetgroups/$(targetGroupIdentifier)", + Dict{String,Any}("healthCheck" => healthCheck); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return vpc_lattice( - "PATCH", - "/targetgroups/$(targetGroupIdentifier)", - Dict{String,Any}("healthCheck" => healthCheck); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_target_group( healthCheck, targetGroupIdentifier, diff --git a/src/services/waf.jl b/src/services/waf.jl index 3bfc6e0b1..4433f34ca 100644 --- a/src/services/waf.jl +++ b/src/services/waf.jl @@ -30,16 +30,14 @@ how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Deve you create a ByteMatchSet. """ -function create_byte_match_set( +create_byte_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateByteMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateByteMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_byte_match_set( ChangeToken, Name, @@ -85,16 +83,14 @@ AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide. you create the GeoMatchSet. """ -function create_geo_match_set( +create_geo_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateGeoMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateGeoMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_geo_match_set( ChangeToken, Name, @@ -140,14 +136,12 @@ how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Deve create the IPSet. """ -function create_ipset(ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "CreateIPSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_ipset(ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "CreateIPSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_ipset( ChangeToken, Name, @@ -230,27 +224,25 @@ allow or block HTTP requests, see the AWS WAF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_rate_based_rule( +create_rate_based_rule( ChangeToken, MetricName, Name, RateKey, RateLimit; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "CreateRateBasedRule", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "MetricName" => MetricName, + "Name" => Name, + "RateKey" => RateKey, + "RateLimit" => RateLimit, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateRateBasedRule", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "MetricName" => MetricName, - "Name" => Name, - "RateKey" => RateKey, - "RateLimit" => RateLimit, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rate_based_rule( ChangeToken, MetricName, @@ -308,16 +300,14 @@ Guide. you create a RegexMatchSet. """ -function create_regex_match_set( +create_regex_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateRegexMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateRegexMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_regex_match_set( ChangeToken, Name, @@ -362,16 +352,14 @@ requests, see the AWS WAF Developer Guide. after you create a RegexPatternSet. """ -function create_regex_pattern_set( +create_regex_pattern_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateRegexPatternSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateRegexPatternSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_regex_pattern_set( ChangeToken, Name, @@ -432,18 +420,16 @@ WAF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_rule( +create_rule( ChangeToken, MetricName, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateRule", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "MetricName" => MetricName, "Name" => Name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateRule", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "MetricName" => MetricName, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule( ChangeToken, MetricName, @@ -495,18 +481,16 @@ allow or block HTTP requests, see the AWS WAF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_rule_group( +create_rule_group( ChangeToken, MetricName, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateRuleGroup", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "MetricName" => MetricName, "Name" => Name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateRuleGroup", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "MetricName" => MetricName, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule_group( ChangeToken, MetricName, @@ -557,16 +541,14 @@ the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide after you create a SizeConstraintSet. """ -function create_size_constraint_set( +create_size_constraint_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateSizeConstraintSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateSizeConstraintSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_size_constraint_set( ChangeToken, Name, @@ -612,16 +594,14 @@ requests, see the AWS WAF Developer Guide. You can't change Name after you create the SqlInjectionMatchSet. """ -function create_sql_injection_match_set( +create_sql_injection_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateSqlInjectionMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateSqlInjectionMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sql_injection_match_set( ChangeToken, Name, @@ -682,25 +662,23 @@ about how to use the AWS WAF API, see the AWS WAF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_web_acl( +create_web_acl( ChangeToken, DefaultAction, MetricName, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "CreateWebACL", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "DefaultAction" => DefaultAction, + "MetricName" => MetricName, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateWebACL", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "DefaultAction" => DefaultAction, - "MetricName" => MetricName, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_web_acl( ChangeToken, DefaultAction, @@ -756,23 +734,21 @@ Guide. - `web_aclid`: The UUID of the WAF Classic web ACL that you want to migrate to WAF v2. """ -function create_web_aclmigration_stack( +create_web_aclmigration_stack( IgnoreUnsupportedType, S3BucketName, WebACLId; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "CreateWebACLMigrationStack", + Dict{String,Any}( + "IgnoreUnsupportedType" => IgnoreUnsupportedType, + "S3BucketName" => S3BucketName, + "WebACLId" => WebACLId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateWebACLMigrationStack", - Dict{String,Any}( - "IgnoreUnsupportedType" => IgnoreUnsupportedType, - "S3BucketName" => S3BucketName, - "WebACLId" => WebACLId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_web_aclmigration_stack( IgnoreUnsupportedType, S3BucketName, @@ -822,16 +798,14 @@ AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide. can't change Name after you create the XssMatchSet. """ -function create_xss_match_set( +create_xss_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "CreateXssMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "CreateXssMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_xss_match_set( ChangeToken, Name, @@ -873,16 +847,14 @@ DeleteByteMatchSet request. Submit a DeleteByteMatchSet request. - `change_token`: The value returned by the most recent call to GetChangeToken. """ -function delete_byte_match_set( +delete_byte_match_set( ByteMatchSetId, ChangeToken; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteByteMatchSet", + Dict{String,Any}("ByteMatchSetId" => ByteMatchSetId, "ChangeToken" => ChangeToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteByteMatchSet", - Dict{String,Any}("ByteMatchSetId" => ByteMatchSetId, "ChangeToken" => ChangeToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_byte_match_set( ByteMatchSetId, ChangeToken, @@ -926,16 +898,14 @@ change token that you provide in the ChangeToken parameter of a DeleteGeoMatchSe GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets. """ -function delete_geo_match_set( +delete_geo_match_set( ChangeToken, GeoMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteGeoMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "GeoMatchSetId" => GeoMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteGeoMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "GeoMatchSetId" => GeoMatchSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_geo_match_set( ChangeToken, GeoMatchSetId, @@ -979,16 +949,13 @@ request. CreateIPSet and by ListIPSets. """ -function delete_ipset( - ChangeToken, IPSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +delete_ipset(ChangeToken, IPSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "DeleteIPSet", Dict{String,Any}("ChangeToken" => ChangeToken, "IPSetId" => IPSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_ipset( ChangeToken, IPSetId, @@ -1024,16 +991,14 @@ web ACL. delete the LoggingConfiguration. """ -function delete_logging_configuration( +delete_logging_configuration( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteLoggingConfiguration", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteLoggingConfiguration", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_logging_configuration( ResourceArn, params::AbstractDict{String}; @@ -1064,16 +1029,13 @@ The user making the request must be the owner of the RuleGroup. delete the policy. The user making the request must be the owner of the RuleGroup. """ -function delete_permission_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +delete_permission_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "DeletePermissionPolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_permission_policy( ResourceArn, params::AbstractDict{String}; @@ -1110,16 +1072,14 @@ of a DeleteRateBasedRule request. Submit a DeleteRateBasedRule request. CreateRateBasedRule and by ListRateBasedRules. """ -function delete_rate_based_rule( +delete_rate_based_rule( ChangeToken, RuleId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteRateBasedRule", + Dict{String,Any}("ChangeToken" => ChangeToken, "RuleId" => RuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteRateBasedRule", - Dict{String,Any}("ChangeToken" => ChangeToken, "RuleId" => RuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rate_based_rule( ChangeToken, RuleId, @@ -1161,18 +1121,14 @@ of a DeleteRegexMatchSet request. Submit a DeleteRegexMatchSet request. RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets. """ -function delete_regex_match_set( +delete_regex_match_set( ChangeToken, RegexMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteRegexMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "RegexMatchSetId" => RegexMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteRegexMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "RegexMatchSetId" => RegexMatchSetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_regex_match_set( ChangeToken, RegexMatchSetId, @@ -1212,18 +1168,16 @@ empty. delete. RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets. """ -function delete_regex_pattern_set( +delete_regex_pattern_set( ChangeToken, RegexPatternSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteRegexPatternSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "RegexPatternSetId" => RegexPatternSetId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteRegexPatternSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "RegexPatternSetId" => RegexPatternSetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_regex_pattern_set( ChangeToken, RegexPatternSetId, @@ -1267,16 +1221,12 @@ get the change token that you provide in the ChangeToken parameter of a DeleteRu CreateRule and by ListRules. """ -function delete_rule( - ChangeToken, RuleId; aws_config::AbstractAWSConfig=current_aws_config() +delete_rule(ChangeToken, RuleId; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "DeleteRule", + Dict{String,Any}("ChangeToken" => ChangeToken, "RuleId" => RuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteRule", - Dict{String,Any}("ChangeToken" => ChangeToken, "RuleId" => RuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rule( ChangeToken, RuleId, @@ -1318,16 +1268,14 @@ DeleteRuleGroup request. returned by CreateRuleGroup and by ListRuleGroups. """ -function delete_rule_group( +delete_rule_group( ChangeToken, RuleGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteRuleGroup", + Dict{String,Any}("ChangeToken" => ChangeToken, "RuleGroupId" => RuleGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteRuleGroup", - Dict{String,Any}("ChangeToken" => ChangeToken, "RuleGroupId" => RuleGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rule_group( ChangeToken, RuleGroupId, @@ -1373,18 +1321,16 @@ DeleteSizeConstraintSet request. ListSizeConstraintSets. """ -function delete_size_constraint_set( +delete_size_constraint_set( ChangeToken, SizeConstraintSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteSizeConstraintSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "SizeConstraintSetId" => SizeConstraintSetId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteSizeConstraintSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "SizeConstraintSetId" => SizeConstraintSetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_size_constraint_set( ChangeToken, SizeConstraintSetId, @@ -1431,18 +1377,16 @@ Submit a DeleteSqlInjectionMatchSet request. ListSqlInjectionMatchSets. """ -function delete_sql_injection_match_set( +delete_sql_injection_match_set( ChangeToken, SqlInjectionMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteSqlInjectionMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "SqlInjectionMatchSetId" => SqlInjectionMatchSetId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteSqlInjectionMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "SqlInjectionMatchSetId" => SqlInjectionMatchSetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sql_injection_match_set( ChangeToken, SqlInjectionMatchSetId, @@ -1485,16 +1429,13 @@ DeleteWebACL request. Submit a DeleteWebACL request. CreateWebACL and by ListWebACLs. """ -function delete_web_acl( - ChangeToken, WebACLId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +delete_web_acl(ChangeToken, WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "DeleteWebACL", Dict{String,Any}("ChangeToken" => ChangeToken, "WebACLId" => WebACLId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_web_acl( ChangeToken, WebACLId, @@ -1536,16 +1477,14 @@ DeleteXssMatchSet request. Submit a DeleteXssMatchSet request. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. """ -function delete_xss_match_set( +delete_xss_match_set( ChangeToken, XssMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "DeleteXssMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "XssMatchSetId" => XssMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "DeleteXssMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "XssMatchSetId" => XssMatchSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_xss_match_set( ChangeToken, XssMatchSetId, @@ -1582,16 +1521,13 @@ regional and global use. Returns the ByteMatchSet specified by ByteMatchSetId. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. """ -function get_byte_match_set( - ByteMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +get_byte_match_set(ByteMatchSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "GetByteMatchSet", Dict{String,Any}("ByteMatchSetId" => ByteMatchSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_byte_match_set( ByteMatchSetId, params::AbstractDict{String}; @@ -1626,9 +1562,8 @@ indicates that AWS WAF is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus to determine the status of your change token. """ -function get_change_token(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("GetChangeToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_change_token(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("GetChangeToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_change_token( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1656,16 +1591,13 @@ complete. was previously returned in the GetChangeToken response. """ -function get_change_token_status( - ChangeToken; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +get_change_token_status(ChangeToken; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "GetChangeTokenStatus", Dict{String,Any}("ChangeToken" => ChangeToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_change_token_status( ChangeToken, params::AbstractDict{String}; @@ -1695,16 +1627,12 @@ regional and global use. Returns the GeoMatchSet that is specified by GeoMatch GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets. """ -function get_geo_match_set( - GeoMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +get_geo_match_set(GeoMatchSetId; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "GetGeoMatchSet", + Dict{String,Any}("GeoMatchSetId" => GeoMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "GetGeoMatchSet", - Dict{String,Any}("GeoMatchSetId" => GeoMatchSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_geo_match_set( GeoMatchSetId, params::AbstractDict{String}; @@ -1734,14 +1662,12 @@ regional and global use. Returns the IPSet that is specified by IPSetId. CreateIPSet and by ListIPSets. """ -function get_ipset(IPSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "GetIPSet", - Dict{String,Any}("IPSetId" => IPSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_ipset(IPSetId; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "GetIPSet", + Dict{String,Any}("IPSetId" => IPSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_ipset( IPSetId, params::AbstractDict{String}; @@ -1769,16 +1695,13 @@ regional and global use. Returns the LoggingConfiguration for the specified we the LoggingConfiguration. """ -function get_logging_configuration( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +get_logging_configuration(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "GetLoggingConfiguration", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_logging_configuration( ResourceArn, params::AbstractDict{String}; @@ -1808,16 +1731,13 @@ regional and global use. Returns the IAM policy attached to the RuleGroup. the policy. """ -function get_permission_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +get_permission_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "GetPermissionPolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_permission_policy( ResourceArn, params::AbstractDict{String}; @@ -1848,14 +1768,12 @@ you included in the GetRateBasedRule request. CreateRateBasedRule and by ListRateBasedRules. """ -function get_rate_based_rule(RuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "GetRateBasedRule", - Dict{String,Any}("RuleId" => RuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rate_based_rule(RuleId; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "GetRateBasedRule", + Dict{String,Any}("RuleId" => RuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rate_based_rule( RuleId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1887,16 +1805,14 @@ addresses with the highest rates will be blocked. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextMarker"`: A null value and not currently used. Do not include this in your request. """ -function get_rate_based_rule_managed_keys( +get_rate_based_rule_managed_keys( RuleId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "GetRateBasedRuleManagedKeys", + Dict{String,Any}("RuleId" => RuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "GetRateBasedRuleManagedKeys", - Dict{String,Any}("RuleId" => RuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_rate_based_rule_managed_keys( RuleId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1922,16 +1838,13 @@ regional and global use. Returns the RegexMatchSet specified by RegexMatchSetI RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets. """ -function get_regex_match_set( - RegexMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +get_regex_match_set(RegexMatchSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "GetRegexMatchSet", Dict{String,Any}("RegexMatchSetId" => RegexMatchSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_regex_match_set( RegexMatchSetId, params::AbstractDict{String}; @@ -1963,16 +1876,14 @@ regional and global use. Returns the RegexPatternSet specified by RegexPattern get. RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets. """ -function get_regex_pattern_set( +get_regex_pattern_set( RegexPatternSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "GetRegexPatternSet", + Dict{String,Any}("RegexPatternSetId" => RegexPatternSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "GetRegexPatternSet", - Dict{String,Any}("RegexPatternSetId" => RegexPatternSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_regex_pattern_set( RegexPatternSetId, params::AbstractDict{String}; @@ -2005,14 +1916,12 @@ included in the GetRule request. and by ListRules. """ -function get_rule(RuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "GetRule", - Dict{String,Any}("RuleId" => RuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rule(RuleId; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "GetRule", + Dict{String,Any}("RuleId" => RuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rule( RuleId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2040,14 +1949,12 @@ ListActivatedRulesInRuleGroup. returned by CreateRuleGroup and by ListRuleGroups. """ -function get_rule_group(RuleGroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "GetRuleGroup", - Dict{String,Any}("RuleGroupId" => RuleGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rule_group(RuleGroupId; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "GetRuleGroup", + Dict{String,Any}("RuleGroupId" => RuleGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rule_group( RuleGroupId, params::AbstractDict{String}; @@ -2097,25 +2004,23 @@ the requests in the sample. a sample of requests. """ -function get_sampled_requests( +get_sampled_requests( MaxItems, RuleId, TimeWindow, WebAclId; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "GetSampledRequests", + Dict{String,Any}( + "MaxItems" => MaxItems, + "RuleId" => RuleId, + "TimeWindow" => TimeWindow, + "WebAclId" => WebAclId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "GetSampledRequests", - Dict{String,Any}( - "MaxItems" => MaxItems, - "RuleId" => RuleId, - "TimeWindow" => TimeWindow, - "WebAclId" => WebAclId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sampled_requests( MaxItems, RuleId, @@ -2158,16 +2063,14 @@ regional and global use. Returns the SizeConstraintSet specified by SizeConstr ListSizeConstraintSets. """ -function get_size_constraint_set( +get_size_constraint_set( SizeConstraintSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "GetSizeConstraintSet", + Dict{String,Any}("SizeConstraintSetId" => SizeConstraintSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "GetSizeConstraintSet", - Dict{String,Any}("SizeConstraintSetId" => SizeConstraintSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_size_constraint_set( SizeConstraintSetId, params::AbstractDict{String}; @@ -2203,16 +2106,14 @@ SqlInjectionMatchSetId. ListSqlInjectionMatchSets. """ -function get_sql_injection_match_set( +get_sql_injection_match_set( SqlInjectionMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "GetSqlInjectionMatchSet", + Dict{String,Any}("SqlInjectionMatchSetId" => SqlInjectionMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "GetSqlInjectionMatchSet", - Dict{String,Any}("SqlInjectionMatchSetId" => SqlInjectionMatchSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sql_injection_match_set( SqlInjectionMatchSetId, params::AbstractDict{String}; @@ -2246,14 +2147,12 @@ regional and global use. Returns the WebACL that is specified by WebACLId. CreateWebACL and by ListWebACLs. """ -function get_web_acl(WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "GetWebACL", - Dict{String,Any}("WebACLId" => WebACLId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_web_acl(WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "GetWebACL", + Dict{String,Any}("WebACLId" => WebACLId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_web_acl( WebACLId, params::AbstractDict{String}; @@ -2283,16 +2182,12 @@ regional and global use. Returns the XssMatchSet that is specified by XssMatch XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. """ -function get_xss_match_set( - XssMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +get_xss_match_set(XssMatchSetId; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "GetXssMatchSet", + Dict{String,Any}("XssMatchSetId" => XssMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "GetXssMatchSet", - Dict{String,Any}("XssMatchSetId" => XssMatchSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_xss_match_set( XssMatchSetId, params::AbstractDict{String}; @@ -2331,15 +2226,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RuleGroupId"`: The RuleGroupId of the RuleGroup for which you want to get a list of ActivatedRule objects. """ -function list_activated_rules_in_rule_group(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +list_activated_rules_in_rule_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "ListActivatedRulesInRuleGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_activated_rules_in_rule_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2372,9 +2264,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify the value of NextMarker from the previous response to get information about another batch of ByteMatchSets. """ -function list_byte_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListByteMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_byte_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListByteMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_byte_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2404,9 +2295,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests, specify the value of NextMarker from the previous response to get information about another batch of GeoMatchSet objects. """ -function list_geo_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListGeoMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_geo_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListGeoMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_geo_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2434,9 +2324,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value of NextMarker from the previous response to get information about another batch of IPSets. """ -function list_ipsets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListIPSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_ipsets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListIPSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_ipsets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2464,11 +2353,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListLoggingConfigurations requests, specify the value of NextMarker from the previous response to get information about another batch of ListLoggingConfigurations. """ -function list_logging_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "ListLoggingConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_logging_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListLoggingConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_logging_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2500,9 +2386,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value of NextMarker from the previous response to get information about another batch of Rules. """ -function list_rate_based_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListRateBasedRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_rate_based_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListRateBasedRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rate_based_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2532,9 +2417,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests, specify the value of NextMarker from the previous response to get information about another batch of RegexMatchSet objects. """ -function list_regex_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListRegexMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_regex_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListRegexMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_regex_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2564,11 +2448,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListRegexPatternSets requests, specify the value of NextMarker from the previous response to get information about another batch of RegexPatternSet objects. """ -function list_regex_pattern_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "ListRegexPatternSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_regex_pattern_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListRegexPatternSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_regex_pattern_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2600,9 +2481,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value of NextMarker from the previous response to get information about another batch of RuleGroups. """ -function list_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rule_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2630,9 +2510,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys another group of Rules. For the second and subsequent ListRules requests, specify the value of NextMarker from the previous response to get information about another batch of Rules. """ -function list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2660,11 +2539,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListSizeConstraintSets requests, specify the value of NextMarker from the previous response to get information about another batch of SizeConstraintSets. """ -function list_size_constraint_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "ListSizeConstraintSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_size_constraint_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListSizeConstraintSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_size_constraint_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2697,11 +2573,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListSqlInjectionMatchSets requests, specify the value of NextMarker from the previous response to get information about another batch of SqlInjectionMatchSets. """ -function list_sql_injection_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "ListSqlInjectionMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_sql_injection_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListSqlInjectionMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_sql_injection_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2734,11 +2607,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextMarker from the previous response to get information about another batch of subscribed rule groups. """ -function list_subscribed_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "ListSubscribedRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_subscribed_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListSubscribedRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_subscribed_rule_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2773,16 +2643,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: - `"NextMarker"`: """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -2819,9 +2686,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListWebACLs requests, specify the value of NextMarker from the previous response to get information about another batch of WebACL objects. """ -function list_web_acls(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListWebACLs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_web_acls(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListWebACLs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_web_acls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2851,9 +2717,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests, specify the value of NextMarker from the previous response to get information about another batch of XssMatchSets. """ -function list_xss_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf("ListXssMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_xss_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf("ListXssMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_xss_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2887,16 +2752,14 @@ information, see Logging Web ACL Traffic Information in the AWS WAF Developer Gu following values: URI, QUERY_STRING, HEADER, or METHOD. """ -function put_logging_configuration( +put_logging_configuration( LoggingConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "PutLoggingConfiguration", + Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "PutLoggingConfiguration", - Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_logging_configuration( LoggingConfiguration, params::AbstractDict{String}; @@ -2942,16 +2805,14 @@ Examples section below. attach the policy. """ -function put_permission_policy( +put_permission_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "PutPermissionPolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "PutPermissionPolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_permission_policy( Policy, ResourceArn, @@ -2992,14 +2853,12 @@ AWS resources that you manage through AWS WAF Classic: web ACLs, rule groups, an - `tags`: """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return waf( - "TagResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = waf( + "TagResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceARN, Tags, @@ -3034,16 +2893,13 @@ regional and global use. - `tag_keys`: """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -3102,20 +2958,18 @@ AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide. Contains Data and Type """ -function update_byte_match_set( +update_byte_match_set( ByteMatchSetId, ChangeToken, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "UpdateByteMatchSet", + Dict{String,Any}( + "ByteMatchSetId" => ByteMatchSetId, + "ChangeToken" => ChangeToken, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateByteMatchSet", - Dict{String,Any}( - "ByteMatchSetId" => ByteMatchSetId, - "ChangeToken" => ChangeToken, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_byte_match_set( ByteMatchSetId, ChangeToken, @@ -3174,20 +3028,18 @@ WAF Developer Guide. multiple countries, include multiple GeoMatchSetUpdate objects in your request. """ -function update_geo_match_set( +update_geo_match_set( ChangeToken, GeoMatchSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "UpdateGeoMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "GeoMatchSetId" => GeoMatchSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateGeoMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "GeoMatchSetId" => GeoMatchSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_geo_match_set( ChangeToken, GeoMatchSetId, @@ -3255,18 +3107,16 @@ HTTP requests, see the AWS WAF Developer Guide. maximum of 1000 addresses in a single request. """ -function update_ipset( +update_ipset( ChangeToken, IPSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "UpdateIPSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "IPSetId" => IPSetId, "Updates" => Updates + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateIPSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "IPSetId" => IPSetId, "Updates" => Updates - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_ipset( ChangeToken, IPSetId, @@ -3328,25 +3178,23 @@ WebACL, you could limit requests to your login page without affecting the rest o RateBasedRule. """ -function update_rate_based_rule( +update_rate_based_rule( ChangeToken, RateLimit, RuleId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "UpdateRateBasedRule", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "RateLimit" => RateLimit, + "RuleId" => RuleId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateRateBasedRule", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "RateLimit" => RateLimit, - "RuleId" => RuleId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rate_based_rule( ChangeToken, RateLimit, @@ -3408,23 +3256,21 @@ the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide from a RegexMatchSet. For more information, see RegexMatchTuple. """ -function update_regex_match_set( +update_regex_match_set( ChangeToken, RegexMatchSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "UpdateRegexMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "RegexMatchSetId" => RegexMatchSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateRegexMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "RegexMatchSetId" => RegexMatchSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_regex_match_set( ChangeToken, RegexMatchSetId, @@ -3478,23 +3324,21 @@ HTTP requests, see the AWS WAF Developer Guide. delete from a RegexPatternSet. """ -function update_regex_pattern_set( +update_regex_pattern_set( ChangeToken, RegexPatternSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "UpdateRegexPatternSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "RegexPatternSetId" => RegexPatternSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateRegexPatternSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "RegexPatternSetId" => RegexPatternSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_regex_pattern_set( ChangeToken, RegexPatternSetId, @@ -3555,18 +3399,16 @@ AWS WAF Developer Guide. Data and Type """ -function update_rule( +update_rule( ChangeToken, RuleId, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "UpdateRule", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "RuleId" => RuleId, "Updates" => Updates + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateRule", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "RuleId" => RuleId, "Updates" => Updates - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule( ChangeToken, RuleId, @@ -3619,18 +3461,16 @@ WAF Developer Guide. ActivatedRule|Action is used instead of ActivatedRule|OverrideAction. """ -function update_rule_group( +update_rule_group( ChangeToken, RuleGroupId, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "UpdateRuleGroup", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "RuleGroupId" => RuleGroupId, "Updates" => Updates + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateRuleGroup", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "RuleGroupId" => RuleGroupId, "Updates" => Updates - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule_group( ChangeToken, RuleGroupId, @@ -3698,23 +3538,21 @@ the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide Data and Type """ -function update_size_constraint_set( +update_size_constraint_set( ChangeToken, SizeConstraintSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "UpdateSizeConstraintSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "SizeConstraintSetId" => SizeConstraintSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateSizeConstraintSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "SizeConstraintSetId" => SizeConstraintSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_size_constraint_set( ChangeToken, SizeConstraintSetId, @@ -3779,23 +3617,21 @@ requests, see the AWS WAF Developer Guide. Contains Data and Type """ -function update_sql_injection_match_set( +update_sql_injection_match_set( ChangeToken, SqlInjectionMatchSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf( + "UpdateSqlInjectionMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "SqlInjectionMatchSetId" => SqlInjectionMatchSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateSqlInjectionMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "SqlInjectionMatchSetId" => SqlInjectionMatchSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sql_injection_match_set( ChangeToken, SqlInjectionMatchSetId, @@ -3880,16 +3716,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ActivatedRule|Action is used instead of ActivatedRule|OverrideAction. WafAction: Contains Type """ -function update_web_acl( - ChangeToken, WebACLId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf( +update_web_acl(ChangeToken, WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf( "UpdateWebACL", Dict{String,Any}("ChangeToken" => ChangeToken, "WebACLId" => WebACLId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_web_acl( ChangeToken, WebACLId, @@ -3946,20 +3779,18 @@ the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. """ -function update_xss_match_set( +update_xss_match_set( ChangeToken, Updates, XssMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf( + "UpdateXssMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "Updates" => Updates, + "XssMatchSetId" => XssMatchSetId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf( - "UpdateXssMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "Updates" => Updates, - "XssMatchSetId" => XssMatchSetId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_xss_match_set( ChangeToken, Updates, diff --git a/src/services/waf_regional.jl b/src/services/waf_regional.jl index 6fe484953..96108e6bd 100644 --- a/src/services/waf_regional.jl +++ b/src/services/waf_regional.jl @@ -24,16 +24,14 @@ load balancer or Amazon API Gateway stage. - `web_aclid`: A unique identifier (ID) for the web ACL. """ -function associate_web_acl( +associate_web_acl( ResourceArn, WebACLId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "AssociateWebACL", + Dict{String,Any}("ResourceArn" => ResourceArn, "WebACLId" => WebACLId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "AssociateWebACL", - Dict{String,Any}("ResourceArn" => ResourceArn, "WebACLId" => WebACLId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_web_acl( ResourceArn, WebACLId, @@ -80,16 +78,14 @@ how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Deve you create a ByteMatchSet. """ -function create_byte_match_set( +create_byte_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateByteMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateByteMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_byte_match_set( ChangeToken, Name, @@ -135,16 +131,14 @@ AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide. you create the GeoMatchSet. """ -function create_geo_match_set( +create_geo_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateGeoMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateGeoMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_geo_match_set( ChangeToken, Name, @@ -190,14 +184,13 @@ how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Deve create the IPSet. """ -function create_ipset(ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +create_ipset(ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "CreateIPSet", Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_ipset( ChangeToken, Name, @@ -280,27 +273,25 @@ allow or block HTTP requests, see the AWS WAF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_rate_based_rule( +create_rate_based_rule( ChangeToken, MetricName, Name, RateKey, RateLimit; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "CreateRateBasedRule", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "MetricName" => MetricName, + "Name" => Name, + "RateKey" => RateKey, + "RateLimit" => RateLimit, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateRateBasedRule", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "MetricName" => MetricName, - "Name" => Name, - "RateKey" => RateKey, - "RateLimit" => RateLimit, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rate_based_rule( ChangeToken, MetricName, @@ -358,16 +349,14 @@ Guide. you create a RegexMatchSet. """ -function create_regex_match_set( +create_regex_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateRegexMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateRegexMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_regex_match_set( ChangeToken, Name, @@ -412,16 +401,14 @@ requests, see the AWS WAF Developer Guide. after you create a RegexPatternSet. """ -function create_regex_pattern_set( +create_regex_pattern_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateRegexPatternSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateRegexPatternSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_regex_pattern_set( ChangeToken, Name, @@ -482,18 +469,16 @@ WAF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_rule( +create_rule( ChangeToken, MetricName, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateRule", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "MetricName" => MetricName, "Name" => Name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateRule", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "MetricName" => MetricName, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule( ChangeToken, MetricName, @@ -545,18 +530,16 @@ allow or block HTTP requests, see the AWS WAF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_rule_group( +create_rule_group( ChangeToken, MetricName, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateRuleGroup", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "MetricName" => MetricName, "Name" => Name + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateRuleGroup", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "MetricName" => MetricName, "Name" => Name - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule_group( ChangeToken, MetricName, @@ -607,16 +590,14 @@ the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide after you create a SizeConstraintSet. """ -function create_size_constraint_set( +create_size_constraint_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateSizeConstraintSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateSizeConstraintSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_size_constraint_set( ChangeToken, Name, @@ -662,16 +643,14 @@ requests, see the AWS WAF Developer Guide. You can't change Name after you create the SqlInjectionMatchSet. """ -function create_sql_injection_match_set( +create_sql_injection_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateSqlInjectionMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateSqlInjectionMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_sql_injection_match_set( ChangeToken, Name, @@ -732,25 +711,23 @@ about how to use the AWS WAF API, see the AWS WAF Developer Guide. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: """ -function create_web_acl( +create_web_acl( ChangeToken, DefaultAction, MetricName, Name; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "CreateWebACL", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "DefaultAction" => DefaultAction, + "MetricName" => MetricName, + "Name" => Name, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateWebACL", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "DefaultAction" => DefaultAction, - "MetricName" => MetricName, - "Name" => Name, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_web_acl( ChangeToken, DefaultAction, @@ -806,23 +783,21 @@ Guide. - `web_aclid`: The UUID of the WAF Classic web ACL that you want to migrate to WAF v2. """ -function create_web_aclmigration_stack( +create_web_aclmigration_stack( IgnoreUnsupportedType, S3BucketName, WebACLId; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "CreateWebACLMigrationStack", + Dict{String,Any}( + "IgnoreUnsupportedType" => IgnoreUnsupportedType, + "S3BucketName" => S3BucketName, + "WebACLId" => WebACLId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateWebACLMigrationStack", - Dict{String,Any}( - "IgnoreUnsupportedType" => IgnoreUnsupportedType, - "S3BucketName" => S3BucketName, - "WebACLId" => WebACLId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_web_aclmigration_stack( IgnoreUnsupportedType, S3BucketName, @@ -872,16 +847,14 @@ AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide. can't change Name after you create the XssMatchSet. """ -function create_xss_match_set( +create_xss_match_set( ChangeToken, Name; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "CreateXssMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "CreateXssMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "Name" => Name); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_xss_match_set( ChangeToken, Name, @@ -923,16 +896,14 @@ DeleteByteMatchSet request. Submit a DeleteByteMatchSet request. - `change_token`: The value returned by the most recent call to GetChangeToken. """ -function delete_byte_match_set( +delete_byte_match_set( ByteMatchSetId, ChangeToken; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteByteMatchSet", + Dict{String,Any}("ByteMatchSetId" => ByteMatchSetId, "ChangeToken" => ChangeToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteByteMatchSet", - Dict{String,Any}("ByteMatchSetId" => ByteMatchSetId, "ChangeToken" => ChangeToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_byte_match_set( ByteMatchSetId, ChangeToken, @@ -976,16 +947,14 @@ change token that you provide in the ChangeToken parameter of a DeleteGeoMatchSe GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets. """ -function delete_geo_match_set( +delete_geo_match_set( ChangeToken, GeoMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteGeoMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "GeoMatchSetId" => GeoMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteGeoMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "GeoMatchSetId" => GeoMatchSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_geo_match_set( ChangeToken, GeoMatchSetId, @@ -1029,16 +998,13 @@ request. CreateIPSet and by ListIPSets. """ -function delete_ipset( - ChangeToken, IPSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +delete_ipset(ChangeToken, IPSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "DeleteIPSet", Dict{String,Any}("ChangeToken" => ChangeToken, "IPSetId" => IPSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_ipset( ChangeToken, IPSetId, @@ -1074,16 +1040,14 @@ web ACL. delete the LoggingConfiguration. """ -function delete_logging_configuration( +delete_logging_configuration( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteLoggingConfiguration", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteLoggingConfiguration", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_logging_configuration( ResourceArn, params::AbstractDict{String}; @@ -1114,16 +1078,13 @@ The user making the request must be the owner of the RuleGroup. delete the policy. The user making the request must be the owner of the RuleGroup. """ -function delete_permission_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +delete_permission_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "DeletePermissionPolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_permission_policy( ResourceArn, params::AbstractDict{String}; @@ -1160,16 +1121,14 @@ of a DeleteRateBasedRule request. Submit a DeleteRateBasedRule request. CreateRateBasedRule and by ListRateBasedRules. """ -function delete_rate_based_rule( +delete_rate_based_rule( ChangeToken, RuleId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteRateBasedRule", + Dict{String,Any}("ChangeToken" => ChangeToken, "RuleId" => RuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteRateBasedRule", - Dict{String,Any}("ChangeToken" => ChangeToken, "RuleId" => RuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rate_based_rule( ChangeToken, RuleId, @@ -1211,18 +1170,14 @@ of a DeleteRegexMatchSet request. Submit a DeleteRegexMatchSet request. RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets. """ -function delete_regex_match_set( +delete_regex_match_set( ChangeToken, RegexMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteRegexMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "RegexMatchSetId" => RegexMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteRegexMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "RegexMatchSetId" => RegexMatchSetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_regex_match_set( ChangeToken, RegexMatchSetId, @@ -1262,18 +1217,16 @@ empty. delete. RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets. """ -function delete_regex_pattern_set( +delete_regex_pattern_set( ChangeToken, RegexPatternSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteRegexPatternSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "RegexPatternSetId" => RegexPatternSetId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteRegexPatternSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "RegexPatternSetId" => RegexPatternSetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_regex_pattern_set( ChangeToken, RegexPatternSetId, @@ -1317,16 +1270,13 @@ get the change token that you provide in the ChangeToken parameter of a DeleteRu CreateRule and by ListRules. """ -function delete_rule( - ChangeToken, RuleId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +delete_rule(ChangeToken, RuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "DeleteRule", Dict{String,Any}("ChangeToken" => ChangeToken, "RuleId" => RuleId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_rule( ChangeToken, RuleId, @@ -1368,16 +1318,14 @@ DeleteRuleGroup request. returned by CreateRuleGroup and by ListRuleGroups. """ -function delete_rule_group( +delete_rule_group( ChangeToken, RuleGroupId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteRuleGroup", + Dict{String,Any}("ChangeToken" => ChangeToken, "RuleGroupId" => RuleGroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteRuleGroup", - Dict{String,Any}("ChangeToken" => ChangeToken, "RuleGroupId" => RuleGroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rule_group( ChangeToken, RuleGroupId, @@ -1423,18 +1371,16 @@ DeleteSizeConstraintSet request. ListSizeConstraintSets. """ -function delete_size_constraint_set( +delete_size_constraint_set( ChangeToken, SizeConstraintSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteSizeConstraintSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "SizeConstraintSetId" => SizeConstraintSetId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteSizeConstraintSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "SizeConstraintSetId" => SizeConstraintSetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_size_constraint_set( ChangeToken, SizeConstraintSetId, @@ -1481,18 +1427,16 @@ Submit a DeleteSqlInjectionMatchSet request. ListSqlInjectionMatchSets. """ -function delete_sql_injection_match_set( +delete_sql_injection_match_set( ChangeToken, SqlInjectionMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteSqlInjectionMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "SqlInjectionMatchSetId" => SqlInjectionMatchSetId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteSqlInjectionMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "SqlInjectionMatchSetId" => SqlInjectionMatchSetId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_sql_injection_match_set( ChangeToken, SqlInjectionMatchSetId, @@ -1535,16 +1479,13 @@ DeleteWebACL request. Submit a DeleteWebACL request. CreateWebACL and by ListWebACLs. """ -function delete_web_acl( - ChangeToken, WebACLId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +delete_web_acl(ChangeToken, WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "DeleteWebACL", Dict{String,Any}("ChangeToken" => ChangeToken, "WebACLId" => WebACLId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_web_acl( ChangeToken, WebACLId, @@ -1586,16 +1527,14 @@ DeleteXssMatchSet request. Submit a DeleteXssMatchSet request. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. """ -function delete_xss_match_set( +delete_xss_match_set( ChangeToken, XssMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "DeleteXssMatchSet", + Dict{String,Any}("ChangeToken" => ChangeToken, "XssMatchSetId" => XssMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "DeleteXssMatchSet", - Dict{String,Any}("ChangeToken" => ChangeToken, "XssMatchSetId" => XssMatchSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_xss_match_set( ChangeToken, XssMatchSetId, @@ -1637,16 +1576,13 @@ application load balancer or Amazon API Gateway stage. arn:aws:apigateway:region::/restapis/api-id/stages/stage-name """ -function disassociate_web_acl( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +disassociate_web_acl(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "DisassociateWebACL", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_web_acl( ResourceArn, params::AbstractDict{String}; @@ -1676,16 +1612,13 @@ regional and global use. Returns the ByteMatchSet specified by ByteMatchSetId. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. """ -function get_byte_match_set( - ByteMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +get_byte_match_set(ByteMatchSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetByteMatchSet", Dict{String,Any}("ByteMatchSetId" => ByteMatchSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_byte_match_set( ByteMatchSetId, params::AbstractDict{String}; @@ -1720,11 +1653,8 @@ indicates that AWS WAF is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus to determine the status of your change token. """ -function get_change_token(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "GetChangeToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_change_token(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional("GetChangeToken"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_change_token( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1752,16 +1682,13 @@ complete. was previously returned in the GetChangeToken response. """ -function get_change_token_status( - ChangeToken; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +get_change_token_status(ChangeToken; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetChangeTokenStatus", Dict{String,Any}("ChangeToken" => ChangeToken); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_change_token_status( ChangeToken, params::AbstractDict{String}; @@ -1791,16 +1718,13 @@ regional and global use. Returns the GeoMatchSet that is specified by GeoMatch GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets. """ -function get_geo_match_set( - GeoMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +get_geo_match_set(GeoMatchSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetGeoMatchSet", Dict{String,Any}("GeoMatchSetId" => GeoMatchSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_geo_match_set( GeoMatchSetId, params::AbstractDict{String}; @@ -1830,14 +1754,12 @@ regional and global use. Returns the IPSet that is specified by IPSetId. CreateIPSet and by ListIPSets. """ -function get_ipset(IPSetId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "GetIPSet", - Dict{String,Any}("IPSetId" => IPSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_ipset(IPSetId; aws_config::AbstractAWSConfig=current_aws_config()) = waf_regional( + "GetIPSet", + Dict{String,Any}("IPSetId" => IPSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_ipset( IPSetId, params::AbstractDict{String}; @@ -1865,16 +1787,13 @@ regional and global use. Returns the LoggingConfiguration for the specified we the LoggingConfiguration. """ -function get_logging_configuration( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +get_logging_configuration(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetLoggingConfiguration", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_logging_configuration( ResourceArn, params::AbstractDict{String}; @@ -1904,16 +1823,13 @@ regional and global use. Returns the IAM policy attached to the RuleGroup. the policy. """ -function get_permission_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +get_permission_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetPermissionPolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_permission_policy( ResourceArn, params::AbstractDict{String}; @@ -1944,14 +1860,13 @@ you included in the GetRateBasedRule request. CreateRateBasedRule and by ListRateBasedRules. """ -function get_rate_based_rule(RuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +get_rate_based_rule(RuleId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetRateBasedRule", Dict{String,Any}("RuleId" => RuleId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_rate_based_rule( RuleId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1983,16 +1898,14 @@ addresses with the highest rates will be blocked. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextMarker"`: A null value and not currently used. Do not include this in your request. """ -function get_rate_based_rule_managed_keys( +get_rate_based_rule_managed_keys( RuleId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "GetRateBasedRuleManagedKeys", + Dict{String,Any}("RuleId" => RuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "GetRateBasedRuleManagedKeys", - Dict{String,Any}("RuleId" => RuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_rate_based_rule_managed_keys( RuleId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2018,16 +1931,13 @@ regional and global use. Returns the RegexMatchSet specified by RegexMatchSetI RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets. """ -function get_regex_match_set( - RegexMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +get_regex_match_set(RegexMatchSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetRegexMatchSet", Dict{String,Any}("RegexMatchSetId" => RegexMatchSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_regex_match_set( RegexMatchSetId, params::AbstractDict{String}; @@ -2059,16 +1969,14 @@ regional and global use. Returns the RegexPatternSet specified by RegexPattern get. RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets. """ -function get_regex_pattern_set( +get_regex_pattern_set( RegexPatternSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "GetRegexPatternSet", + Dict{String,Any}("RegexPatternSetId" => RegexPatternSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "GetRegexPatternSet", - Dict{String,Any}("RegexPatternSetId" => RegexPatternSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_regex_pattern_set( RegexPatternSetId, params::AbstractDict{String}; @@ -2101,14 +2009,12 @@ included in the GetRule request. and by ListRules. """ -function get_rule(RuleId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "GetRule", - Dict{String,Any}("RuleId" => RuleId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_rule(RuleId; aws_config::AbstractAWSConfig=current_aws_config()) = waf_regional( + "GetRule", + Dict{String,Any}("RuleId" => RuleId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_rule( RuleId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2136,14 +2042,13 @@ ListActivatedRulesInRuleGroup. returned by CreateRuleGroup and by ListRuleGroups. """ -function get_rule_group(RuleGroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +get_rule_group(RuleGroupId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetRuleGroup", Dict{String,Any}("RuleGroupId" => RuleGroupId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_rule_group( RuleGroupId, params::AbstractDict{String}; @@ -2193,25 +2098,23 @@ the requests in the sample. a sample of requests. """ -function get_sampled_requests( +get_sampled_requests( MaxItems, RuleId, TimeWindow, WebAclId; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "GetSampledRequests", + Dict{String,Any}( + "MaxItems" => MaxItems, + "RuleId" => RuleId, + "TimeWindow" => TimeWindow, + "WebAclId" => WebAclId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "GetSampledRequests", - Dict{String,Any}( - "MaxItems" => MaxItems, - "RuleId" => RuleId, - "TimeWindow" => TimeWindow, - "WebAclId" => WebAclId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sampled_requests( MaxItems, RuleId, @@ -2254,16 +2157,14 @@ regional and global use. Returns the SizeConstraintSet specified by SizeConstr ListSizeConstraintSets. """ -function get_size_constraint_set( +get_size_constraint_set( SizeConstraintSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "GetSizeConstraintSet", + Dict{String,Any}("SizeConstraintSetId" => SizeConstraintSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "GetSizeConstraintSet", - Dict{String,Any}("SizeConstraintSetId" => SizeConstraintSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_size_constraint_set( SizeConstraintSetId, params::AbstractDict{String}; @@ -2299,16 +2200,14 @@ SqlInjectionMatchSetId. ListSqlInjectionMatchSets. """ -function get_sql_injection_match_set( +get_sql_injection_match_set( SqlInjectionMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "GetSqlInjectionMatchSet", + Dict{String,Any}("SqlInjectionMatchSetId" => SqlInjectionMatchSetId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "GetSqlInjectionMatchSet", - Dict{String,Any}("SqlInjectionMatchSetId" => SqlInjectionMatchSetId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sql_injection_match_set( SqlInjectionMatchSetId, params::AbstractDict{String}; @@ -2342,14 +2241,12 @@ regional and global use. Returns the WebACL that is specified by WebACLId. CreateWebACL and by ListWebACLs. """ -function get_web_acl(WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "GetWebACL", - Dict{String,Any}("WebACLId" => WebACLId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_web_acl(WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) = waf_regional( + "GetWebACL", + Dict{String,Any}("WebACLId" => WebACLId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_web_acl( WebACLId, params::AbstractDict{String}; @@ -2384,16 +2281,13 @@ application load balancer or Amazon API Gateway stage. arn:aws:apigateway:region::/restapis/api-id/stages/stage-name """ -function get_web_aclfor_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +get_web_aclfor_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetWebACLForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_web_aclfor_resource( ResourceArn, params::AbstractDict{String}; @@ -2423,16 +2317,13 @@ regional and global use. Returns the XssMatchSet that is specified by XssMatch XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. """ -function get_xss_match_set( - XssMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +get_xss_match_set(XssMatchSetId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "GetXssMatchSet", Dict{String,Any}("XssMatchSetId" => XssMatchSetId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_xss_match_set( XssMatchSetId, params::AbstractDict{String}; @@ -2471,15 +2362,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RuleGroupId"`: The RuleGroupId of the RuleGroup for which you want to get a list of ActivatedRule objects. """ -function list_activated_rules_in_rule_group(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +list_activated_rules_in_rule_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "ListActivatedRulesInRuleGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_activated_rules_in_rule_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2512,11 +2400,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys specify the value of NextMarker from the previous response to get information about another batch of ByteMatchSets. """ -function list_byte_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "ListByteMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_byte_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = waf_regional( + "ListByteMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_byte_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2546,11 +2432,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests, specify the value of NextMarker from the previous response to get information about another batch of GeoMatchSet objects. """ -function list_geo_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "ListGeoMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_geo_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional("ListGeoMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_geo_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2578,11 +2461,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value of NextMarker from the previous response to get information about another batch of IPSets. """ -function list_ipsets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "ListIPSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_ipsets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional("ListIPSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_ipsets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2612,11 +2492,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListLoggingConfigurations requests, specify the value of NextMarker from the previous response to get information about another batch of ListLoggingConfigurations. """ -function list_logging_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +list_logging_configurations(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "ListLoggingConfigurations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_logging_configurations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2648,11 +2527,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value of NextMarker from the previous response to get information about another batch of Rules. """ -function list_rate_based_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "ListRateBasedRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rate_based_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = waf_regional( + "ListRateBasedRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_rate_based_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2682,11 +2559,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests, specify the value of NextMarker from the previous response to get information about another batch of RegexMatchSet objects. """ -function list_regex_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "ListRegexMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_regex_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = waf_regional( + "ListRegexMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_regex_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2716,11 +2591,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListRegexPatternSets requests, specify the value of NextMarker from the previous response to get information about another batch of RegexPatternSet objects. """ -function list_regex_pattern_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +list_regex_pattern_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "ListRegexPatternSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_regex_pattern_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2751,16 +2625,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceType"`: The type of resource to list, either an application load balancer or Amazon API Gateway. """ -function list_resources_for_web_acl( - WebACLId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +list_resources_for_web_acl(WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "ListResourcesForWebACL", Dict{String,Any}("WebACLId" => WebACLId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resources_for_web_acl( WebACLId, params::AbstractDict{String}; @@ -2796,11 +2667,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the value of NextMarker from the previous response to get information about another batch of RuleGroups. """ -function list_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "ListRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional("ListRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rule_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2828,9 +2696,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys another group of Rules. For the second and subsequent ListRules requests, specify the value of NextMarker from the previous response to get information about another batch of Rules. """ -function list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional("ListRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +list_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional("ListRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2860,11 +2727,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListSizeConstraintSets requests, specify the value of NextMarker from the previous response to get information about another batch of SizeConstraintSets. """ -function list_size_constraint_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +list_size_constraint_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "ListSizeConstraintSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_size_constraint_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2897,11 +2763,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListSqlInjectionMatchSets requests, specify the value of NextMarker from the previous response to get information about another batch of SqlInjectionMatchSets. """ -function list_sql_injection_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +list_sql_injection_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "ListSqlInjectionMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_sql_injection_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2934,11 +2799,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextMarker from the previous response to get information about another batch of subscribed rule groups. """ -function list_subscribed_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +list_subscribed_rule_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "ListSubscribedRuleGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_subscribed_rule_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2973,16 +2837,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Limit"`: - `"NextMarker"`: """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -3019,11 +2880,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ListWebACLs requests, specify the value of NextMarker from the previous response to get information about another batch of WebACL objects. """ -function list_web_acls(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "ListWebACLs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_web_acls(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional("ListWebACLs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_web_acls( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3053,11 +2911,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys requests, specify the value of NextMarker from the previous response to get information about another batch of XssMatchSets. """ -function list_xss_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( - "ListXssMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_xss_match_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional("ListXssMatchSets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_xss_match_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3091,16 +2946,14 @@ information, see Logging Web ACL Traffic Information in the AWS WAF Developer Gu following values: URI, QUERY_STRING, HEADER, or METHOD. """ -function put_logging_configuration( +put_logging_configuration( LoggingConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "PutLoggingConfiguration", + Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "PutLoggingConfiguration", - Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_logging_configuration( LoggingConfiguration, params::AbstractDict{String}; @@ -3146,16 +2999,14 @@ Examples section below. attach the policy. """ -function put_permission_policy( +put_permission_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "PutPermissionPolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "PutPermissionPolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_permission_policy( Policy, ResourceArn, @@ -3196,14 +3047,13 @@ AWS resources that you manage through AWS WAF Classic: web ACLs, rule groups, an - `tags`: """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return waf_regional( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -3238,16 +3088,13 @@ regional and global use. - `tag_keys`: """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -3306,20 +3153,18 @@ AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide. Contains Data and Type """ -function update_byte_match_set( +update_byte_match_set( ByteMatchSetId, ChangeToken, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "UpdateByteMatchSet", + Dict{String,Any}( + "ByteMatchSetId" => ByteMatchSetId, + "ChangeToken" => ChangeToken, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateByteMatchSet", - Dict{String,Any}( - "ByteMatchSetId" => ByteMatchSetId, - "ChangeToken" => ChangeToken, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_byte_match_set( ByteMatchSetId, ChangeToken, @@ -3378,20 +3223,18 @@ WAF Developer Guide. multiple countries, include multiple GeoMatchSetUpdate objects in your request. """ -function update_geo_match_set( +update_geo_match_set( ChangeToken, GeoMatchSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "UpdateGeoMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "GeoMatchSetId" => GeoMatchSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateGeoMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "GeoMatchSetId" => GeoMatchSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_geo_match_set( ChangeToken, GeoMatchSetId, @@ -3459,18 +3302,16 @@ HTTP requests, see the AWS WAF Developer Guide. maximum of 1000 addresses in a single request. """ -function update_ipset( +update_ipset( ChangeToken, IPSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "UpdateIPSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "IPSetId" => IPSetId, "Updates" => Updates + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateIPSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "IPSetId" => IPSetId, "Updates" => Updates - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_ipset( ChangeToken, IPSetId, @@ -3532,25 +3373,23 @@ WebACL, you could limit requests to your login page without affecting the rest o RateBasedRule. """ -function update_rate_based_rule( +update_rate_based_rule( ChangeToken, RateLimit, RuleId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "UpdateRateBasedRule", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "RateLimit" => RateLimit, + "RuleId" => RuleId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateRateBasedRule", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "RateLimit" => RateLimit, - "RuleId" => RuleId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rate_based_rule( ChangeToken, RateLimit, @@ -3612,23 +3451,21 @@ the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide from a RegexMatchSet. For more information, see RegexMatchTuple. """ -function update_regex_match_set( +update_regex_match_set( ChangeToken, RegexMatchSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "UpdateRegexMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "RegexMatchSetId" => RegexMatchSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateRegexMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "RegexMatchSetId" => RegexMatchSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_regex_match_set( ChangeToken, RegexMatchSetId, @@ -3682,23 +3519,21 @@ HTTP requests, see the AWS WAF Developer Guide. delete from a RegexPatternSet. """ -function update_regex_pattern_set( +update_regex_pattern_set( ChangeToken, RegexPatternSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "UpdateRegexPatternSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "RegexPatternSetId" => RegexPatternSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateRegexPatternSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "RegexPatternSetId" => RegexPatternSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_regex_pattern_set( ChangeToken, RegexPatternSetId, @@ -3759,18 +3594,16 @@ AWS WAF Developer Guide. Data and Type """ -function update_rule( +update_rule( ChangeToken, RuleId, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "UpdateRule", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "RuleId" => RuleId, "Updates" => Updates + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateRule", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "RuleId" => RuleId, "Updates" => Updates - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule( ChangeToken, RuleId, @@ -3823,18 +3656,16 @@ WAF Developer Guide. ActivatedRule|Action is used instead of ActivatedRule|OverrideAction. """ -function update_rule_group( +update_rule_group( ChangeToken, RuleGroupId, Updates; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "UpdateRuleGroup", + Dict{String,Any}( + "ChangeToken" => ChangeToken, "RuleGroupId" => RuleGroupId, "Updates" => Updates + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateRuleGroup", - Dict{String,Any}( - "ChangeToken" => ChangeToken, "RuleGroupId" => RuleGroupId, "Updates" => Updates - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule_group( ChangeToken, RuleGroupId, @@ -3902,23 +3733,21 @@ the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide Data and Type """ -function update_size_constraint_set( +update_size_constraint_set( ChangeToken, SizeConstraintSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "UpdateSizeConstraintSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "SizeConstraintSetId" => SizeConstraintSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateSizeConstraintSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "SizeConstraintSetId" => SizeConstraintSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_size_constraint_set( ChangeToken, SizeConstraintSetId, @@ -3983,23 +3812,21 @@ requests, see the AWS WAF Developer Guide. Contains Data and Type """ -function update_sql_injection_match_set( +update_sql_injection_match_set( ChangeToken, SqlInjectionMatchSetId, Updates; aws_config::AbstractAWSConfig=current_aws_config(), +) = waf_regional( + "UpdateSqlInjectionMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "SqlInjectionMatchSetId" => SqlInjectionMatchSetId, + "Updates" => Updates, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateSqlInjectionMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "SqlInjectionMatchSetId" => SqlInjectionMatchSetId, - "Updates" => Updates, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sql_injection_match_set( ChangeToken, SqlInjectionMatchSetId, @@ -4084,16 +3911,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ActivatedRule|Action is used instead of ActivatedRule|OverrideAction. WafAction: Contains Type """ -function update_web_acl( - ChangeToken, WebACLId; aws_config::AbstractAWSConfig=current_aws_config() -) - return waf_regional( +update_web_acl(ChangeToken, WebACLId; aws_config::AbstractAWSConfig=current_aws_config()) = + waf_regional( "UpdateWebACL", Dict{String,Any}("ChangeToken" => ChangeToken, "WebACLId" => WebACLId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_web_acl( ChangeToken, WebACLId, @@ -4150,20 +3974,18 @@ the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. """ -function update_xss_match_set( +update_xss_match_set( ChangeToken, Updates, XssMatchSetId; aws_config::AbstractAWSConfig=current_aws_config() +) = waf_regional( + "UpdateXssMatchSet", + Dict{String,Any}( + "ChangeToken" => ChangeToken, + "Updates" => Updates, + "XssMatchSetId" => XssMatchSetId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return waf_regional( - "UpdateXssMatchSet", - Dict{String,Any}( - "ChangeToken" => ChangeToken, - "Updates" => Updates, - "XssMatchSetId" => XssMatchSetId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_xss_match_set( ChangeToken, Updates, diff --git a/src/services/wafv2.jl b/src/services/wafv2.jl index 9d67bc362..304dca820 100644 --- a/src/services/wafv2.jl +++ b/src/services/wafv2.jl @@ -45,16 +45,14 @@ rule, the new address might be blocked in one area while still allowed in anothe with the resource. """ -function associate_web_acl( +associate_web_acl( ResourceArn, WebACLArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "AssociateWebACL", + Dict{String,Any}("ResourceArn" => ResourceArn, "WebACLArn" => WebACLArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "AssociateWebACL", - Dict{String,Any}("ResourceArn" => ResourceArn, "WebACLArn" => WebACLArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_web_acl( ResourceArn, WebACLArn, @@ -100,14 +98,12 @@ WAF Developer Guide. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function check_capacity(Rules, Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "CheckCapacity", - Dict{String,Any}("Rules" => Rules, "Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +check_capacity(Rules, Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "CheckCapacity", + Dict{String,Any}("Rules" => Rules, "Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function check_capacity( Rules, Scope, @@ -148,16 +144,13 @@ you generate a key, you can copy it for use in your JavaScript integration. allowed. For example, you can't use gov.au or co.uk as token domains. """ -function create_apikey( - Scope, TokenDomains; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +create_apikey(Scope, TokenDomains; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "CreateAPIKey", Dict{String,Any}("Scope" => Scope, "TokenDomains" => TokenDomains); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_apikey( Scope, TokenDomains, @@ -220,25 +213,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the IP set that helps with identification. - `"Tags"`: An array of key:value pairs to associate with the resource. """ -function create_ipset( +create_ipset( Addresses, IPAddressVersion, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "CreateIPSet", + Dict{String,Any}( + "Addresses" => Addresses, + "IPAddressVersion" => IPAddressVersion, + "Name" => Name, + "Scope" => Scope, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "CreateIPSet", - Dict{String,Any}( - "Addresses" => Addresses, - "IPAddressVersion" => IPAddressVersion, - "Name" => Name, - "Scope" => Scope, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_ipset( Addresses, IPAddressVersion, @@ -289,20 +280,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the set that helps with identification. - `"Tags"`: An array of key:value pairs to associate with the resource. """ -function create_regex_pattern_set( +create_regex_pattern_set( Name, RegularExpressionList, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "CreateRegexPatternSet", + Dict{String,Any}( + "Name" => Name, + "RegularExpressionList" => RegularExpressionList, + "Scope" => Scope, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "CreateRegexPatternSet", - Dict{String,Any}( - "Name" => Name, - "RegularExpressionList" => RegularExpressionList, - "Scope" => Scope, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_regex_pattern_set( Name, RegularExpressionList, @@ -376,25 +365,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys and parameters that govern how WAF handles them. - `"Tags"`: An array of key:value pairs to associate with the resource. """ -function create_rule_group( +create_rule_group( Capacity, Name, Scope, VisibilityConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "CreateRuleGroup", + Dict{String,Any}( + "Capacity" => Capacity, + "Name" => Name, + "Scope" => Scope, + "VisibilityConfig" => VisibilityConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "CreateRuleGroup", - Dict{String,Any}( - "Capacity" => Capacity, - "Name" => Name, - "Scope" => Scope, - "VisibilityConfig" => VisibilityConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_rule_group( Capacity, Name, @@ -489,25 +476,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Example JSON: \"TokenDomains\": { \"mywebsite.com\", \"myotherwebsite.com\" } Public suffixes aren't allowed. For example, you can't use gov.au or co.uk as token domains. """ -function create_web_acl( +create_web_acl( DefaultAction, Name, Scope, VisibilityConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "CreateWebACL", + Dict{String,Any}( + "DefaultAction" => DefaultAction, + "Name" => Name, + "Scope" => Scope, + "VisibilityConfig" => VisibilityConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "CreateWebACL", - Dict{String,Any}( - "DefaultAction" => DefaultAction, - "Name" => Name, - "Scope" => Scope, - "VisibilityConfig" => VisibilityConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_web_acl( DefaultAction, Name, @@ -553,14 +538,12 @@ to disallow use of the key in all regions. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function delete_apikey(APIKey, Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "DeleteAPIKey", - Dict{String,Any}("APIKey" => APIKey, "Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_apikey(APIKey, Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "DeleteAPIKey", + Dict{String,Any}("APIKey" => APIKey, "Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_apikey( APIKey, Scope, @@ -597,16 +580,14 @@ You can only use this if ManagedByFirewallManager is false in the specified WebA returned by that operation. """ -function delete_firewall_manager_rule_groups( +delete_firewall_manager_rule_groups( WebACLArn, WebACLLockToken; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "DeleteFirewallManagerRuleGroups", + Dict{String,Any}("WebACLArn" => WebACLArn, "WebACLLockToken" => WebACLLockToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "DeleteFirewallManagerRuleGroups", - Dict{String,Any}("WebACLArn" => WebACLArn, "WebACLLockToken" => WebACLLockToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_firewall_manager_rule_groups( WebACLArn, WebACLLockToken, @@ -656,18 +637,16 @@ Deletes the specified IPSet. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function delete_ipset( +delete_ipset( Id, LockToken, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "DeleteIPSet", + Dict{String,Any}( + "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "DeleteIPSet", - Dict{String,Any}( - "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_ipset( Id, LockToken, @@ -713,16 +692,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LogType"`: Used to distinguish between various logging options. Currently, there is one option. Default: WAF_LOGS """ -function delete_logging_configuration( +delete_logging_configuration( ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "DeleteLoggingConfiguration", + Dict{String,Any}("ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "DeleteLoggingConfiguration", - Dict{String,Any}("ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_logging_configuration( ResourceArn, params::AbstractDict{String}; @@ -750,16 +727,13 @@ the rule group to perform this operation. delete the policy. You must be the owner of the rule group to perform this operation. """ -function delete_permission_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +delete_permission_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "DeletePermissionPolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_permission_policy( ResourceArn, params::AbstractDict{String}; @@ -801,18 +775,16 @@ Deletes the specified RegexPatternSet. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function delete_regex_pattern_set( +delete_regex_pattern_set( Id, LockToken, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "DeleteRegexPatternSet", + Dict{String,Any}( + "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "DeleteRegexPatternSet", - Dict{String,Any}( - "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_regex_pattern_set( Id, LockToken, @@ -864,18 +836,16 @@ Deletes the specified RuleGroup. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function delete_rule_group( +delete_rule_group( Id, LockToken, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "DeleteRuleGroup", + Dict{String,Any}( + "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "DeleteRuleGroup", - Dict{String,Any}( - "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_rule_group( Id, LockToken, @@ -936,18 +906,16 @@ UpdateDistribution in the Amazon CloudFront API Reference. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function delete_web_acl( +delete_web_acl( Id, LockToken, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "DeleteWebACL", + Dict{String,Any}( + "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "DeleteWebACL", - Dict{String,Any}( - "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_web_acl( Id, LockToken, @@ -989,16 +957,13 @@ Amazon Web Services Marketplace managed rule groups. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function describe_all_managed_products( - Scope; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +describe_all_managed_products(Scope; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "DescribeAllManagedProducts", Dict{String,Any}("Scope" => Scope); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_all_managed_products( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1028,16 +993,14 @@ Provides high-level information for the managed rule groups owned by a specific rule group name, to identify a rule group. """ -function describe_managed_products_by_vendor( +describe_managed_products_by_vendor( Scope, VendorName; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "DescribeManagedProductsByVendor", + Dict{String,Any}("Scope" => Scope, "VendorName" => VendorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "DescribeManagedProductsByVendor", - Dict{String,Any}("Scope" => Scope, "VendorName" => VendorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_managed_products_by_vendor( Scope, VendorName, @@ -1083,16 +1046,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionName"`: The version of the rule group. You can only use a version that is not scheduled for expiration. If you don't provide this, WAF uses the vendor's default version. """ -function describe_managed_rule_group( +describe_managed_rule_group( Name, Scope, VendorName; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "DescribeManagedRuleGroup", + Dict{String,Any}("Name" => Name, "Scope" => Scope, "VendorName" => VendorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "DescribeManagedRuleGroup", - Dict{String,Any}("Name" => Name, "Scope" => Scope, "VendorName" => VendorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_managed_rule_group( Name, Scope, @@ -1146,16 +1107,13 @@ For details, see Permissions for DisassociateWebACL in the WAF Developer Guide. arn:partition:ec2:region:account-id:verified-access-instance/instance-id """ -function disassociate_web_acl( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +disassociate_web_acl(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "DisassociateWebACL", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_web_acl( ResourceArn, params::AbstractDict{String}; @@ -1185,16 +1143,14 @@ For more information, see WAF client application integration in the WAF Develope - `release_version`: The release version. For the latest available version, specify LATEST. """ -function generate_mobile_sdk_release_url( +generate_mobile_sdk_release_url( Platform, ReleaseVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "GenerateMobileSdkReleaseUrl", + Dict{String,Any}("Platform" => Platform, "ReleaseVersion" => ReleaseVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "GenerateMobileSdkReleaseUrl", - Dict{String,Any}("Platform" => Platform, "ReleaseVersion" => ReleaseVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function generate_mobile_sdk_release_url( Platform, ReleaseVersion, @@ -1239,16 +1195,13 @@ Guide. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function get_decrypted_apikey( - APIKey, Scope; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +get_decrypted_apikey(APIKey, Scope; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "GetDecryptedAPIKey", Dict{String,Any}("APIKey" => APIKey, "Scope" => Scope); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_decrypted_apikey( APIKey, Scope, @@ -1287,14 +1240,12 @@ Retrieves the specified IPSet. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function get_ipset(Id, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "GetIPSet", - Dict{String,Any}("Id" => Id, "Name" => Name, "Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_ipset(Id, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "GetIPSet", + Dict{String,Any}("Id" => Id, "Name" => Name, "Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_ipset( Id, Name, @@ -1337,16 +1288,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LogType"`: Used to distinguish between various logging options. Currently, there is one option. Default: WAF_LOGS """ -function get_logging_configuration( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +get_logging_configuration(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "GetLoggingConfiguration", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_logging_configuration( ResourceArn, params::AbstractDict{String}; @@ -1388,16 +1336,13 @@ UpdateManagedRuleSetVersionExpiryDate. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function get_managed_rule_set( - Id, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +get_managed_rule_set(Id, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "GetManagedRuleSet", Dict{String,Any}("Id" => Id, "Name" => Name, "Scope" => Scope); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_managed_rule_set( Id, Name, @@ -1434,16 +1379,14 @@ Developer Guide. - `release_version`: The release version. For the latest available version, specify LATEST. """ -function get_mobile_sdk_release( +get_mobile_sdk_release( Platform, ReleaseVersion; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "GetMobileSdkRelease", + Dict{String,Any}("Platform" => Platform, "ReleaseVersion" => ReleaseVersion); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "GetMobileSdkRelease", - Dict{String,Any}("Platform" => Platform, "ReleaseVersion" => ReleaseVersion); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_mobile_sdk_release( Platform, ReleaseVersion, @@ -1478,16 +1421,13 @@ of the rule group to perform this operation. get the policy. """ -function get_permission_policy( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +get_permission_policy(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "GetPermissionPolicy", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_permission_policy( ResourceArn, params::AbstractDict{String}; @@ -1542,25 +1482,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RuleGroupRuleName"`: The name of the rule group reference statement in your web ACL. This is required only when you have the rate-based rule nested inside a rule group. """ -function get_rate_based_statement_managed_keys( +get_rate_based_statement_managed_keys( RuleName, Scope, WebACLId, WebACLName; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "GetRateBasedStatementManagedKeys", + Dict{String,Any}( + "RuleName" => RuleName, + "Scope" => Scope, + "WebACLId" => WebACLId, + "WebACLName" => WebACLName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "GetRateBasedStatementManagedKeys", - Dict{String,Any}( - "RuleName" => RuleName, - "Scope" => Scope, - "WebACLId" => WebACLId, - "WebACLName" => WebACLName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_rate_based_statement_managed_keys( RuleName, Scope, @@ -1607,16 +1545,13 @@ Retrieves the specified RegexPatternSet. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function get_regex_pattern_set( - Id, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +get_regex_pattern_set(Id, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "GetRegexPatternSet", Dict{String,Any}("Id" => Id, "Name" => Name, "Scope" => Scope); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_regex_pattern_set( Id, Name, @@ -1659,9 +1594,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function get_rule_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2("GetRuleGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_rule_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2("GetRuleGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_rule_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1707,27 +1641,25 @@ the actual period during which WAF selected the requests in the sample. of requests. """ -function get_sampled_requests( +get_sampled_requests( MaxItems, RuleMetricName, Scope, TimeWindow, WebAclArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "GetSampledRequests", + Dict{String,Any}( + "MaxItems" => MaxItems, + "RuleMetricName" => RuleMetricName, + "Scope" => Scope, + "TimeWindow" => TimeWindow, + "WebAclArn" => WebAclArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "GetSampledRequests", - Dict{String,Any}( - "MaxItems" => MaxItems, - "RuleMetricName" => RuleMetricName, - "Scope" => Scope, - "TimeWindow" => TimeWindow, - "WebAclArn" => WebAclArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sampled_requests( MaxItems, RuleMetricName, @@ -1777,14 +1709,12 @@ Retrieves the specified WebACL. --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1. """ -function get_web_acl(Id, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "GetWebACL", - Dict{String,Any}("Id" => Id, "Name" => Name, "Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_web_acl(Id, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "GetWebACL", + Dict{String,Any}("Id" => Id, "Name" => Name, "Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_web_acl( Id, Name, @@ -1835,16 +1765,13 @@ GetWebACLForResource in the WAF Developer Guide. arn:partition:ec2:region:account-id:verified-access-instance/instance-id """ -function get_web_aclfor_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +get_web_aclfor_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "GetWebACLForResource", Dict{String,Any}("ResourceArn" => ResourceArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_web_aclfor_resource( ResourceArn, params::AbstractDict{String}; @@ -1889,14 +1816,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_apikeys(Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "ListAPIKeys", - Dict{String,Any}("Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_apikeys(Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "ListAPIKeys", + Dict{String,Any}("Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_apikeys( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1937,16 +1862,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_available_managed_rule_group_versions( +list_available_managed_rule_group_versions( Name, Scope, VendorName; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "ListAvailableManagedRuleGroupVersions", + Dict{String,Any}("Name" => Name, "Scope" => Scope, "VendorName" => VendorName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "ListAvailableManagedRuleGroupVersions", - Dict{String,Any}("Name" => Name, "Scope" => Scope, "VendorName" => VendorName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_available_managed_rule_group_versions( Name, Scope, @@ -1997,16 +1920,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_available_managed_rule_groups( +list_available_managed_rule_groups( Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "ListAvailableManagedRuleGroups", + Dict{String,Any}("Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "ListAvailableManagedRuleGroups", - Dict{String,Any}("Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_available_managed_rule_groups( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2043,14 +1964,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_ipsets(Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "ListIPSets", - Dict{String,Any}("Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_ipsets(Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "ListIPSets", + Dict{String,Any}("Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_ipsets( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2093,16 +2012,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_logging_configurations( - Scope; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +list_logging_configurations(Scope; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "ListLoggingConfigurations", Dict{String,Any}("Scope" => Scope); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_logging_configurations( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2144,14 +2060,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_managed_rule_sets(Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "ListManagedRuleSets", - Dict{String,Any}("Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_managed_rule_sets(Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "ListManagedRuleSets", + Dict{String,Any}("Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_managed_rule_sets( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2186,16 +2100,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_mobile_sdk_releases( - Platform; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +list_mobile_sdk_releases(Platform; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "ListMobileSdkReleases", Dict{String,Any}("Platform" => Platform); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_mobile_sdk_releases( Platform, params::AbstractDict{String}; @@ -2237,14 +2148,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_regex_pattern_sets(Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "ListRegexPatternSets", - Dict{String,Any}("Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_regex_pattern_sets(Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "ListRegexPatternSets", + Dict{String,Any}("Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_regex_pattern_sets( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2279,16 +2188,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services Verified Access instance. If you don't provide a resource type, the call uses the resource type APPLICATION_LOAD_BALANCER. Default: APPLICATION_LOAD_BALANCER """ -function list_resources_for_web_acl( - WebACLArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +list_resources_for_web_acl(WebACLArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "ListResourcesForWebACL", Dict{String,Any}("WebACLArn" => WebACLArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resources_for_web_acl( WebACLArn, params::AbstractDict{String}; @@ -2329,14 +2235,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_rule_groups(Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "ListRuleGroups", - Dict{String,Any}("Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_rule_groups(Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "ListRuleGroups", + Dict{String,Any}("Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_rule_groups( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2373,16 +2277,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -2423,14 +2324,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. """ -function list_web_acls(Scope; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "ListWebACLs", - Dict{String,Any}("Scope" => Scope); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_web_acls(Scope; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "ListWebACLs", + Dict{String,Any}("Scope" => Scope); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_web_acls( Scope, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2471,16 +2370,14 @@ information in the WAF Developer Guide. - `logging_configuration`: """ -function put_logging_configuration( +put_logging_configuration( LoggingConfiguration; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "PutLoggingConfiguration", + Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "PutLoggingConfiguration", - Dict{String,Any}("LoggingConfiguration" => LoggingConfiguration); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_logging_configuration( LoggingConfiguration, params::AbstractDict{String}; @@ -2547,18 +2444,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"VersionsToPublish"`: The versions of the named managed rule group that you want to offer to your customers. """ -function put_managed_rule_set_versions( +put_managed_rule_set_versions( Id, LockToken, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "PutManagedRuleSetVersions", + Dict{String,Any}( + "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "PutManagedRuleSetVersions", - Dict{String,Any}( - "Id" => Id, "LockToken" => LockToken, "Name" => Name, "Scope" => Scope - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_managed_rule_set_versions( Id, LockToken, @@ -2587,12 +2482,15 @@ end put_permission_policy(policy, resource_arn) put_permission_policy(policy, resource_arn, params::Dict{String,<:Any}) -Attaches an IAM policy to the specified resource. Use this to share a rule group across -accounts. You must be the owner of the rule group to perform this operation. This action is -subject to the following restrictions: You can attach only one policy with each -PutPermissionPolicy request. The ARN in the request must be a valid WAF RuleGroup ARN and -the rule group must exist in the same Region. The user making the request must be the -owner of the rule group. +Use this to share a rule group with other accounts. This action attaches an IAM policy to +the specified resource. You must be the owner of the rule group to perform this operation. +This action is subject to the following restrictions: You can attach only one policy with +each PutPermissionPolicy request. The ARN in the request must be a valid WAF RuleGroup +ARN and the rule group must exist in the same Region. The user making the request must be +the owner of the rule group. If a rule group has been shared with your account, you can +access it through the call GetRuleGroup, and you can reference it in CreateWebACL and +UpdateWebACL. Rule groups that are shared with you don't appear in your WAF console rule +groups listing. # Arguments - `policy`: The policy to attach to the specified rule group. The policy specifications @@ -2606,16 +2504,14 @@ owner of the rule group. attach the policy. """ -function put_permission_policy( +put_permission_policy( Policy, ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wafv2( + "PutPermissionPolicy", + Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "PutPermissionPolicy", - Dict{String,Any}("Policy" => Policy, "ResourceArn" => ResourceArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_permission_policy( Policy, ResourceArn, @@ -2653,14 +2549,12 @@ through the WAF console. - `tags`: An array of key:value pairs to associate with the resource. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return wafv2( - "TagResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = wafv2( + "TagResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceARN, Tags, @@ -2695,16 +2589,13 @@ add to each container. You can add up to 50 tags to each Amazon Web Services res - `tag_keys`: An array of keys identifying the tags to disassociate from the resource. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return wafv2( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + wafv2( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -2785,27 +2676,25 @@ in one area while still allowed in another. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description of the IP set that helps with identification. """ -function update_ipset( +update_ipset( Addresses, Id, LockToken, Name, Scope; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "UpdateIPSet", + Dict{String,Any}( + "Addresses" => Addresses, + "Id" => Id, + "LockToken" => LockToken, + "Name" => Name, + "Scope" => Scope, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "UpdateIPSet", - Dict{String,Any}( - "Addresses" => Addresses, - "Id" => Id, - "LockToken" => LockToken, - "Name" => Name, - "Scope" => Scope, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_ipset( Addresses, Id, @@ -2875,7 +2764,7 @@ PutManagedRuleSetVersions, and UpdateManagedRuleSetVersionExpiryDate. the named managed rule group. """ -function update_managed_rule_set_version_expiry_date( +update_managed_rule_set_version_expiry_date( ExpiryTimestamp, Id, LockToken, @@ -2883,21 +2772,19 @@ function update_managed_rule_set_version_expiry_date( Scope, VersionToExpire; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "UpdateManagedRuleSetVersionExpiryDate", + Dict{String,Any}( + "ExpiryTimestamp" => ExpiryTimestamp, + "Id" => Id, + "LockToken" => LockToken, + "Name" => Name, + "Scope" => Scope, + "VersionToExpire" => VersionToExpire, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "UpdateManagedRuleSetVersionExpiryDate", - Dict{String,Any}( - "ExpiryTimestamp" => ExpiryTimestamp, - "Id" => Id, - "LockToken" => LockToken, - "Name" => Name, - "Scope" => Scope, - "VersionToExpire" => VersionToExpire, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_managed_rule_set_version_expiry_date( ExpiryTimestamp, Id, @@ -2973,27 +2860,25 @@ rule, the new address might be blocked in one area while still allowed in anothe Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description of the set that helps with identification. """ -function update_regex_pattern_set( +update_regex_pattern_set( Id, LockToken, Name, RegularExpressionList, Scope; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "UpdateRegexPatternSet", + Dict{String,Any}( + "Id" => Id, + "LockToken" => LockToken, + "Name" => Name, + "RegularExpressionList" => RegularExpressionList, + "Scope" => Scope, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "UpdateRegexPatternSet", - Dict{String,Any}( - "Id" => Id, - "LockToken" => LockToken, - "Name" => Name, - "RegularExpressionList" => RegularExpressionList, - "Scope" => Scope, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_regex_pattern_set( Id, LockToken, @@ -3083,27 +2968,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Each rule includes one top-level statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles them. """ -function update_rule_group( +update_rule_group( Id, LockToken, Name, Scope, VisibilityConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "UpdateRuleGroup", + Dict{String,Any}( + "Id" => Id, + "LockToken" => LockToken, + "Name" => Name, + "Scope" => Scope, + "VisibilityConfig" => VisibilityConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "UpdateRuleGroup", - Dict{String,Any}( - "Id" => Id, - "LockToken" => LockToken, - "Name" => Name, - "Scope" => Scope, - "VisibilityConfig" => VisibilityConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rule_group( Id, LockToken, @@ -3223,7 +3106,7 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Example JSON: \"TokenDomains\": { \"mywebsite.com\", \"myotherwebsite.com\" } Public suffixes aren't allowed. For example, you can't use gov.au or co.uk as token domains. """ -function update_web_acl( +update_web_acl( DefaultAction, Id, LockToken, @@ -3231,21 +3114,19 @@ function update_web_acl( Scope, VisibilityConfig; aws_config::AbstractAWSConfig=current_aws_config(), +) = wafv2( + "UpdateWebACL", + Dict{String,Any}( + "DefaultAction" => DefaultAction, + "Id" => Id, + "LockToken" => LockToken, + "Name" => Name, + "Scope" => Scope, + "VisibilityConfig" => VisibilityConfig, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wafv2( - "UpdateWebACL", - Dict{String,Any}( - "DefaultAction" => DefaultAction, - "Id" => Id, - "LockToken" => LockToken, - "Name" => Name, - "Scope" => Scope, - "VisibilityConfig" => VisibilityConfig, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_web_acl( DefaultAction, Id, diff --git a/src/services/wellarchitected.jl b/src/services/wellarchitected.jl index 11f819969..f56ddcdd6 100644 --- a/src/services/wellarchitected.jl +++ b/src/services/wellarchitected.jl @@ -20,17 +20,15 @@ Agreement. - `workload_id`: """ -function associate_lenses( +associate_lenses( LensAliases, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/workloads/$(WorkloadId)/associateLenses", + Dict{String,Any}("LensAliases" => LensAliases); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/workloads/$(WorkloadId)/associateLenses", - Dict{String,Any}("LensAliases" => LensAliases); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_lenses( LensAliases, WorkloadId, @@ -59,17 +57,15 @@ Associate a profile with a workload. - `workload_id`: """ -function associate_profiles( +associate_profiles( ProfileArns, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/workloads/$(WorkloadId)/associateProfiles", + Dict{String,Any}("ProfileArns" => ProfileArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/workloads/$(WorkloadId)/associateProfiles", - Dict{String,Any}("ProfileArns" => ProfileArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_profiles( ProfileArns, WorkloadId, @@ -109,22 +105,20 @@ from your own Amazon Web Services account or terminate your Amazon Web Services - `shared_with`: """ -function create_lens_share( +create_lens_share( ClientRequestToken, LensAlias, SharedWith; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/lenses/$(LensAlias)/shares", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "SharedWith" => SharedWith + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/lenses/$(LensAlias)/shares", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "SharedWith" => SharedWith - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lens_share( ClientRequestToken, LensAlias, @@ -168,22 +162,20 @@ lens can delete it. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"IsMajorVersion"`: Set to true if this new major lens version. """ -function create_lens_version( +create_lens_version( ClientRequestToken, LensAlias, LensVersion; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/lenses/$(LensAlias)/versions", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "LensVersion" => LensVersion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/lenses/$(LensAlias)/versions", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "LensVersion" => LensVersion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_lens_version( ClientRequestToken, LensAlias, @@ -220,22 +212,20 @@ Create a milestone for an existing workload. - `workload_id`: """ -function create_milestone( +create_milestone( ClientRequestToken, MilestoneName, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/workloads/$(WorkloadId)/milestones", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "MilestoneName" => MilestoneName + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/workloads/$(WorkloadId)/milestones", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "MilestoneName" => MilestoneName - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_milestone( ClientRequestToken, MilestoneName, @@ -277,26 +267,24 @@ Create a profile. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags assigned to the profile. """ -function create_profile( +create_profile( ClientRequestToken, ProfileDescription, ProfileName, ProfileQuestions; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/profiles", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "ProfileDescription" => ProfileDescription, + "ProfileName" => ProfileName, + "ProfileQuestions" => ProfileQuestions, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/profiles", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "ProfileDescription" => ProfileDescription, - "ProfileName" => ProfileName, - "ProfileQuestions" => ProfileQuestions, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_profile( ClientRequestToken, ProfileDescription, @@ -337,22 +325,20 @@ Create a profile share. - `shared_with`: """ -function create_profile_share( +create_profile_share( ClientRequestToken, ProfileArn, SharedWith; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/profiles/$(ProfileArn)/shares", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "SharedWith" => SharedWith + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/profiles/$(ProfileArn)/shares", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "SharedWith" => SharedWith - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_profile_share( ClientRequestToken, ProfileArn, @@ -399,26 +385,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Notes"`: - `"Tags"`: The tags assigned to the review template. """ -function create_review_template( +create_review_template( ClientRequestToken, Description, Lenses, TemplateName; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/reviewTemplates", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "Description" => Description, + "Lenses" => Lenses, + "TemplateName" => TemplateName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/reviewTemplates", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "Description" => Description, - "Lenses" => Lenses, - "TemplateName" => TemplateName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_review_template( ClientRequestToken, Description, @@ -466,22 +450,20 @@ to those other accounts. - `template_arn`: The review template ARN. """ -function create_template_share( +create_template_share( ClientRequestToken, SharedWith, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/templates/shares/$(TemplateArn)", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "SharedWith" => SharedWith + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/templates/shares/$(TemplateArn)", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "SharedWith" => SharedWith - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_template_share( ClientRequestToken, SharedWith, @@ -547,28 +529,26 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReviewTemplateArns"`: The list of review template ARNs to associate with the workload. - `"Tags"`: The tags to be associated with the workload. """ -function create_workload( +create_workload( ClientRequestToken, Description, Environment, Lenses, WorkloadName; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/workloads", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "Description" => Description, + "Environment" => Environment, + "Lenses" => Lenses, + "WorkloadName" => WorkloadName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/workloads", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "Description" => Description, - "Environment" => Environment, - "Lenses" => Lenses, - "WorkloadName" => WorkloadName, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workload( ClientRequestToken, Description, @@ -617,25 +597,23 @@ User Guide. - `workload_id`: """ -function create_workload_share( +create_workload_share( ClientRequestToken, PermissionType, SharedWith, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/workloads/$(WorkloadId)/shares", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "PermissionType" => PermissionType, + "SharedWith" => SharedWith, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/workloads/$(WorkloadId)/shares", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "PermissionType" => PermissionType, - "SharedWith" => SharedWith, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workload_share( ClientRequestToken, PermissionType, @@ -682,22 +660,20 @@ Services account. - `lens_status`: The status of the lens to be deleted. """ -function delete_lens( +delete_lens( ClientRequestToken, LensAlias, LensStatus; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "DELETE", + "/lenses/$(LensAlias)", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "LensStatus" => LensStatus + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "DELETE", - "/lenses/$(LensAlias)", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "LensStatus" => LensStatus - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_lens( ClientRequestToken, LensAlias, @@ -741,20 +717,18 @@ Services account. - `share_id`: """ -function delete_lens_share( +delete_lens_share( ClientRequestToken, LensAlias, ShareId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "DELETE", + "/lenses/$(LensAlias)/shares/$(ShareId)", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "DELETE", - "/lenses/$(LensAlias)/shares/$(ShareId)", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_lens_share( ClientRequestToken, LensAlias, @@ -790,17 +764,15 @@ terminate your Amazon Web Services account. - `profile_arn`: The profile ARN. """ -function delete_profile( +delete_profile( ClientRequestToken, ProfileArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "DELETE", + "/profiles/$(ProfileArn)", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "DELETE", - "/profiles/$(ProfileArn)", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_profile( ClientRequestToken, ProfileArn, @@ -832,20 +804,18 @@ Delete a profile share. - `share_id`: """ -function delete_profile_share( +delete_profile_share( ClientRequestToken, ProfileArn, ShareId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "DELETE", + "/profiles/$(ProfileArn)/shares/$(ShareId)", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "DELETE", - "/profiles/$(ProfileArn)/shares/$(ShareId)", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_profile_share( ClientRequestToken, ProfileArn, @@ -880,17 +850,15 @@ to apply it to new workloads. - `template_arn`: The review template ARN. """ -function delete_review_template( +delete_review_template( ClientRequestToken, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "DELETE", + "/reviewTemplates/$(TemplateArn)", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "DELETE", - "/reviewTemplates/$(TemplateArn)", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_review_template( ClientRequestToken, TemplateArn, @@ -924,20 +892,18 @@ review template with will no longer be able to apply it to new workloads. - `template_arn`: The review template ARN. """ -function delete_template_share( +delete_template_share( ClientRequestToken, ShareId, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "DELETE", + "/templates/shares/$(TemplateArn)/$(ShareId)", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "DELETE", - "/templates/shares/$(TemplateArn)/$(ShareId)", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_template_share( ClientRequestToken, ShareId, @@ -969,17 +935,15 @@ Delete an existing workload. - `workload_id`: """ -function delete_workload( +delete_workload( ClientRequestToken, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "DELETE", + "/workloads/$(WorkloadId)", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "DELETE", - "/workloads/$(WorkloadId)", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workload( ClientRequestToken, WorkloadId, @@ -1011,20 +975,18 @@ Delete a workload share. - `workload_id`: """ -function delete_workload_share( +delete_workload_share( ClientRequestToken, ShareId, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "DELETE", + "/workloads/$(WorkloadId)/shares/$(ShareId)", + Dict{String,Any}("ClientRequestToken" => ClientRequestToken); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "DELETE", - "/workloads/$(WorkloadId)/shares/$(ShareId)", - Dict{String,Any}("ClientRequestToken" => ClientRequestToken); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_workload_share( ClientRequestToken, ShareId, @@ -1058,17 +1020,15 @@ in a single API operation. The Amazon Web Services Well-Architected Framework l - `workload_id`: """ -function disassociate_lenses( +disassociate_lenses( LensAliases, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/workloads/$(WorkloadId)/disassociateLenses", + Dict{String,Any}("LensAliases" => LensAliases); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/workloads/$(WorkloadId)/disassociateLenses", - Dict{String,Any}("LensAliases" => LensAliases); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_lenses( LensAliases, WorkloadId, @@ -1097,17 +1057,15 @@ Disassociate a profile from a workload. - `workload_id`: """ -function disassociate_profiles( +disassociate_profiles( ProfileArns, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/workloads/$(WorkloadId)/disassociateProfiles", + Dict{String,Any}("ProfileArns" => ProfileArns); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/workloads/$(WorkloadId)/disassociateProfiles", - Dict{String,Any}("ProfileArns" => ProfileArns); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_profiles( ProfileArns, WorkloadId, @@ -1146,14 +1104,13 @@ such data. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LensVersion"`: The lens version to be exported. """ -function export_lens(LensAlias; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +export_lens(LensAlias; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/lenses/$(LensAlias)/export"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function export_lens( LensAlias, params::AbstractDict{String}; @@ -1183,16 +1140,14 @@ Get the answer to a specific question in a workload review. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MilestoneNumber"`: """ -function get_answer( +get_answer( LensAlias, QuestionId, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "GET", + "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/answers/$(QuestionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "GET", - "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/answers/$(QuestionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_answer( LensAlias, QuestionId, @@ -1226,15 +1181,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return for this request. - `"NextToken"`: """ -function get_consolidated_report(Format; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +get_consolidated_report(Format; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/consolidatedReport", Dict{String,Any}("Format" => Format); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_consolidated_report( Format, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1254,11 +1208,9 @@ end Global settings for all workloads. """ -function get_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( - "GET", "/global-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = wellarchitected( + "GET", "/global-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_global_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1284,14 +1236,12 @@ Get an existing lens. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"LensVersion"`: The lens version to be retrieved. """ -function get_lens(LensAlias; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( - "GET", - "/lenses/$(LensAlias)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_lens(LensAlias; aws_config::AbstractAWSConfig=current_aws_config()) = wellarchitected( + "GET", + "/lenses/$(LensAlias)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_lens( LensAlias, params::AbstractDict{String}; @@ -1320,16 +1270,13 @@ Get lens review. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MilestoneNumber"`: """ -function get_lens_review( - LensAlias, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +get_lens_review(LensAlias, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_lens_review( LensAlias, WorkloadId, @@ -1359,16 +1306,14 @@ Get lens review report. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"MilestoneNumber"`: """ -function get_lens_review_report( +get_lens_review_report( LensAlias, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "GET", + "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/report"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "GET", - "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/report"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_lens_review_report( LensAlias, WorkloadId, @@ -1398,16 +1343,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"BaseLensVersion"`: The base version of the lens. - `"TargetLensVersion"`: The lens version to target a difference for. """ -function get_lens_version_difference( - LensAlias; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +get_lens_version_difference(LensAlias; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/lenses/$(LensAlias)/versionDifference"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_lens_version_difference( LensAlias, params::AbstractDict{String}; @@ -1433,16 +1375,14 @@ Get a milestone for an existing workload. - `workload_id`: """ -function get_milestone( +get_milestone( MilestoneNumber, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "GET", + "/workloads/$(WorkloadId)/milestones/$(MilestoneNumber)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "GET", - "/workloads/$(WorkloadId)/milestones/$(MilestoneNumber)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_milestone( MilestoneNumber, WorkloadId, @@ -1471,14 +1411,13 @@ Get profile information. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ProfileVersion"`: The profile version. """ -function get_profile(ProfileArn; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +get_profile(ProfileArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/profiles/$(ProfileArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_profile( ProfileArn, params::AbstractDict{String}; @@ -1500,11 +1439,10 @@ end Get profile template. """ -function get_profile_template(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +get_profile_template(; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/profileTemplate"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_profile_template( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1527,16 +1465,13 @@ Get review template. - `template_arn`: The review template ARN. """ -function get_review_template( - TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +get_review_template(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/reviewTemplates/$(TemplateArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_review_template( TemplateArn, params::AbstractDict{String}; @@ -1563,16 +1498,14 @@ Get review template answer. - `template_arn`: The review template ARN. """ -function get_review_template_answer( +get_review_template_answer( LensAlias, QuestionId, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "GET", + "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)/answers/$(QuestionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "GET", - "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)/answers/$(QuestionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_review_template_answer( LensAlias, QuestionId, @@ -1600,16 +1533,14 @@ Get a lens review associated with a review template. - `template_arn`: The review template ARN. """ -function get_review_template_lens_review( +get_review_template_lens_review( LensAlias, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "GET", + "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "GET", - "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_review_template_lens_review( LensAlias, TemplateArn, @@ -1635,14 +1566,13 @@ Get an existing workload. - `workload_id`: """ -function get_workload(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +get_workload(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/workloads/$(WorkloadId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_workload( WorkloadId, params::AbstractDict{String}; @@ -1683,19 +1613,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LensAlias"`: - `"Tags"`: Tags to associate to a lens. """ -function import_lens( +import_lens( ClientRequestToken, JSONString; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PUT", + "/importLens", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, "JSONString" => JSONString + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PUT", - "/importLens", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, "JSONString" => JSONString - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_lens( ClientRequestToken, JSONString, @@ -1737,16 +1665,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PillarId"`: - `"QuestionPriority"`: The priority of the question. """ -function list_answers( - LensAlias, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +list_answers(LensAlias, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/answers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_answers( LensAlias, WorkloadId, @@ -1780,27 +1705,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function list_check_details( +list_check_details( ChoiceId, LensArn, PillarId, QuestionId, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/workloads/$(WorkloadId)/checks", + Dict{String,Any}( + "ChoiceId" => ChoiceId, + "LensArn" => LensArn, + "PillarId" => PillarId, + "QuestionId" => QuestionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/workloads/$(WorkloadId)/checks", - Dict{String,Any}( - "ChoiceId" => ChoiceId, - "LensArn" => LensArn, - "PillarId" => PillarId, - "QuestionId" => QuestionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_check_details( ChoiceId, LensArn, @@ -1848,27 +1771,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function list_check_summaries( +list_check_summaries( ChoiceId, LensArn, PillarId, QuestionId, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/workloads/$(WorkloadId)/checkSummaries", + Dict{String,Any}( + "ChoiceId" => ChoiceId, + "LensArn" => LensArn, + "PillarId" => PillarId, + "QuestionId" => QuestionId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/workloads/$(WorkloadId)/checkSummaries", - Dict{String,Any}( - "ChoiceId" => ChoiceId, - "LensArn" => LensArn, - "PillarId" => PillarId, - "QuestionId" => QuestionId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_check_summaries( ChoiceId, LensArn, @@ -1916,16 +1837,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PillarId"`: - `"QuestionPriority"`: The priority of the question. """ -function list_lens_review_improvements( +list_lens_review_improvements( LensAlias, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "GET", + "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/improvements"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "GET", - "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/improvements"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_lens_review_improvements( LensAlias, WorkloadId, @@ -1956,14 +1875,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MilestoneNumber"`: - `"NextToken"`: """ -function list_lens_reviews(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +list_lens_reviews(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/workloads/$(WorkloadId)/lensReviews"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_lens_reviews( WorkloadId, params::AbstractDict{String}; @@ -1995,14 +1913,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organizational unit (OU) ID with which the lens is shared. - `"Status"`: """ -function list_lens_shares(LensAlias; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +list_lens_shares(LensAlias; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/lenses/$(LensAlias)/shares"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_lens_shares( LensAlias, params::AbstractDict{String}; @@ -2031,11 +1948,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function list_lenses(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( - "GET", "/lenses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_lenses(; aws_config::AbstractAWSConfig=current_aws_config()) = wellarchitected( + "GET", "/lenses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_lenses( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2058,14 +1973,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function list_milestones(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +list_milestones(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "POST", "/workloads/$(WorkloadId)/milestonesSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_milestones( WorkloadId, params::AbstractDict{String}; @@ -2094,11 +2008,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys WorkloadID or ResourceARN should be specified. - `"WorkloadId"`: """ -function list_notifications(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( - "POST", "/notifications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_notifications(; aws_config::AbstractAWSConfig=current_aws_config()) = wellarchitected( + "POST", "/notifications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_notifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2123,14 +2035,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"WorkloadId"`: """ -function list_profile_notifications(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +list_profile_notifications(; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/profileNotifications/"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_profile_notifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2160,14 +2071,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organizational unit (OU) ID with which the profile is shared. - `"Status"`: """ -function list_profile_shares(ProfileArn; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +list_profile_shares(ProfileArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/profiles/$(ProfileArn)/shares"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_profile_shares( ProfileArn, params::AbstractDict{String}; @@ -2196,11 +2106,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys returned in the results. - `"ProfileOwnerType"`: Profile owner type. """ -function list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( - "GET", "/profileSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_profiles(; aws_config::AbstractAWSConfig=current_aws_config()) = wellarchitected( + "GET", "/profileSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_profiles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2229,16 +2137,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"PillarId"`: """ -function list_review_template_answers( +list_review_template_answers( LensAlias, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "GET", + "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)/answers"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "GET", - "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)/answers"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_review_template_answers( LensAlias, TemplateArn, @@ -2265,11 +2171,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: - `"NextToken"`: """ -function list_review_templates(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +list_review_templates(; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/reviewTemplates"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_review_templates( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2303,11 +2208,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys name returned in the results. - `"WorkloadNamePrefix"`: """ -function list_share_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +list_share_invitations(; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/shareInvitations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_share_invitations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2331,16 +2235,13 @@ lens ARN, a profile ARN, or review template ARN. - `workload_arn`: """ -function list_tags_for_resource( - WorkloadArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +list_tags_for_resource(WorkloadArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/tags/$(WorkloadArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( WorkloadArn, params::AbstractDict{String}; @@ -2372,16 +2273,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organizational unit (OU) ID with which the profile is shared. - `"Status"`: """ -function list_template_shares( - TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +list_template_shares(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/templates/shares/$(TemplateArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_template_shares( TemplateArn, params::AbstractDict{String}; @@ -2413,16 +2311,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys organizational unit (OU) ID with which the workload is shared. - `"Status"`: """ -function list_workload_shares( - WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +list_workload_shares(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "GET", "/workloads/$(WorkloadId)/shares"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_workload_shares( WorkloadId, params::AbstractDict{String}; @@ -2449,14 +2344,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: - `"WorkloadNamePrefix"`: """ -function list_workloads(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( - "POST", - "/workloadsSummaries"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_workloads(; aws_config::AbstractAWSConfig=current_aws_config()) = wellarchitected( + "POST", + "/workloadsSummaries"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_workloads( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2481,15 +2374,14 @@ workload ARN, a custom lens ARN, a profile ARN, or review template ARN. - `workload_arn`: """ -function tag_resource(Tags, WorkloadArn; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +tag_resource(Tags, WorkloadArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "POST", "/tags/$(WorkloadArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( Tags, WorkloadArn, @@ -2520,17 +2412,14 @@ separate tagKeys parameters, for example: DELETE this list are removed from the resource. """ -function untag_resource( - WorkloadArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +untag_resource(WorkloadArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "DELETE", "/tags/$(WorkloadArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( WorkloadArn, tagKeys, @@ -2566,16 +2455,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Reason"`: The reason why a question is not applicable to your workload. - `"SelectedChoices"`: """ -function update_answer( +update_answer( LensAlias, QuestionId, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/answers/$(QuestionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/answers/$(QuestionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_answer( LensAlias, QuestionId, @@ -2605,11 +2492,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"JiraConfiguration"`: The status of Jira integration settings. - `"OrganizationSharingStatus"`: The status of organization sharing settings. """ -function update_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +update_global_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "PATCH", "/global-settings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_global_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2634,23 +2520,21 @@ Update integration features. - `workload_id`: """ -function update_integration( +update_integration( ClientRequestToken, IntegratingService, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "POST", + "/workloads/$(WorkloadId)/updateIntegration", + Dict{String,Any}( + "ClientRequestToken" => ClientRequestToken, + "IntegratingService" => IntegratingService, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "POST", - "/workloads/$(WorkloadId)/updateIntegration", - Dict{String,Any}( - "ClientRequestToken" => ClientRequestToken, - "IntegratingService" => IntegratingService, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_integration( ClientRequestToken, IntegratingService, @@ -2692,16 +2576,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LensNotes"`: - `"PillarNotes"`: """ -function update_lens_review( +update_lens_review( LensAlias, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_lens_review( LensAlias, WorkloadId, @@ -2731,14 +2613,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ProfileDescription"`: The profile description. - `"ProfileQuestions"`: Profile questions. """ -function update_profile(ProfileArn; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +update_profile(ProfileArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "PATCH", "/profiles/$(ProfileArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_profile( ProfileArn, params::AbstractDict{String}; @@ -2771,16 +2652,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Notes"`: - `"TemplateName"`: The review template name. """ -function update_review_template( - TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wellarchitected( +update_review_template(TemplateArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "PATCH", "/reviewTemplates/$(TemplateArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_review_template( TemplateArn, params::AbstractDict{String}; @@ -2814,16 +2692,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Reason"`: The update reason. - `"SelectedChoices"`: """ -function update_review_template_answer( +update_review_template_answer( LensAlias, QuestionId, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)/answers/$(QuestionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)/answers/$(QuestionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_review_template_answer( LensAlias, QuestionId, @@ -2855,16 +2731,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LensNotes"`: - `"PillarNotes"`: """ -function update_review_template_lens_review( +update_review_template_lens_review( LensAlias, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_review_template_lens_review( LensAlias, TemplateArn, @@ -2893,19 +2767,17 @@ specified. - `share_invitation_id`: The ID assigned to the share invitation. """ -function update_share_invitation( +update_share_invitation( ShareInvitationAction, ShareInvitationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wellarchitected( + "PATCH", + "/shareInvitations/$(ShareInvitationId)", + Dict{String,Any}("ShareInvitationAction" => ShareInvitationAction); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/shareInvitations/$(ShareInvitationId)", - Dict{String,Any}("ShareInvitationAction" => ShareInvitationAction); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_share_invitation( ShareInvitationAction, ShareInvitationId, @@ -2960,14 +2832,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ReviewOwner"`: - `"WorkloadName"`: """ -function update_workload(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) - return wellarchitected( +update_workload(WorkloadId; aws_config::AbstractAWSConfig=current_aws_config()) = + wellarchitected( "PATCH", "/workloads/$(WorkloadId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_workload( WorkloadId, params::AbstractDict{String}; @@ -2994,17 +2865,15 @@ Update a workload share. - `workload_id`: """ -function update_workload_share( +update_workload_share( PermissionType, ShareId, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PATCH", + "/workloads/$(WorkloadId)/shares/$(ShareId)", + Dict{String,Any}("PermissionType" => PermissionType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PATCH", - "/workloads/$(WorkloadId)/shares/$(ShareId)", - Dict{String,Any}("PermissionType" => PermissionType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_workload_share( PermissionType, ShareId, @@ -3038,17 +2907,15 @@ Upgrade lens review for a particular workload. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function upgrade_lens_review( +upgrade_lens_review( LensAlias, MilestoneName, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PUT", + "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/upgrade", + Dict{String,Any}("MilestoneName" => MilestoneName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PUT", - "/workloads/$(WorkloadId)/lensReviews/$(LensAlias)/upgrade", - Dict{String,Any}("MilestoneName" => MilestoneName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upgrade_lens_review( LensAlias, MilestoneName, @@ -3082,17 +2949,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientRequestToken"`: - `"MilestoneName"`: """ -function upgrade_profile_version( +upgrade_profile_version( ProfileArn, WorkloadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PUT", + "/workloads/$(WorkloadId)/profiles/$(ProfileArn)/upgrade", + Dict{String,Any}("ClientRequestToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PUT", - "/workloads/$(WorkloadId)/profiles/$(ProfileArn)/upgrade", - Dict{String,Any}("ClientRequestToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upgrade_profile_version( ProfileArn, WorkloadId, @@ -3126,16 +2991,14 @@ Upgrade the lens review of a review template. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientRequestToken"`: """ -function upgrade_review_template_lens_review( +upgrade_review_template_lens_review( LensAlias, TemplateArn; aws_config::AbstractAWSConfig=current_aws_config() +) = wellarchitected( + "PUT", + "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)/upgrade"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wellarchitected( - "PUT", - "/reviewTemplates/$(TemplateArn)/lensReviews/$(LensAlias)/upgrade"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function upgrade_review_template_lens_review( LensAlias, TemplateArn, diff --git a/src/services/wisdom.jl b/src/services/wisdom.jl index e42fb6cf1..5c2d20018 100644 --- a/src/services/wisdom.jl +++ b/src/services/wisdom.jl @@ -29,15 +29,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys managed key for Wisdom, see Enable Amazon Connect Wisdom for your instance. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_assistant(name, type; aws_config::AbstractAWSConfig=current_aws_config()) - return wisdom( - "POST", - "/assistants", - Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_assistant(name, type; aws_config::AbstractAWSConfig=current_aws_config()) = wisdom( + "POST", + "/assistants", + Dict{String,Any}("name" => name, "type" => type, "clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_assistant( name, type, @@ -82,24 +80,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys field. For more information about idempotency, see Making retries safe with idempotent APIs. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_assistant_association( +create_assistant_association( assistantId, association, associationType; aws_config::AbstractAWSConfig=current_aws_config(), +) = wisdom( + "POST", + "/assistants/$(assistantId)/associations", + Dict{String,Any}( + "association" => association, + "associationType" => associationType, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/assistants/$(assistantId)/associations", - Dict{String,Any}( - "association" => association, - "associationType" => associationType, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_assistant_association( assistantId, association, @@ -157,19 +153,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"tags"`: The tags used to organize, track, or control access for this resource. - `"title"`: The title of the content. If not set, the title is equal to the name. """ -function create_content( +create_content( knowledgeBaseId, name, uploadId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/contents", + Dict{String,Any}( + "name" => name, "uploadId" => uploadId, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/contents", - Dict{String,Any}( - "name" => name, "uploadId" => uploadId, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_content( knowledgeBaseId, name, @@ -228,21 +222,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys for EXTERNAL knowledge bases. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_knowledge_base( +create_knowledge_base( knowledgeBaseType, name; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases", + Dict{String,Any}( + "knowledgeBaseType" => knowledgeBaseType, + "name" => name, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases", - Dict{String,Any}( - "knowledgeBaseType" => knowledgeBaseType, - "name" => name, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_knowledge_base( knowledgeBaseType, name, @@ -301,19 +293,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys across the knowledge base. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_quick_response( +create_quick_response( content, knowledgeBaseId, name; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/quickResponses", + Dict{String,Any}( + "content" => content, "name" => name, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/quickResponses", - Dict{String,Any}( - "content" => content, "name" => name, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_quick_response( content, knowledgeBaseId, @@ -358,17 +348,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"description"`: The description. - `"tags"`: The tags used to organize, track, or control access for this resource. """ -function create_session( - assistantId, name; aws_config::AbstractAWSConfig=current_aws_config() -) - return wisdom( +create_session(assistantId, name; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "POST", "/assistants/$(assistantId)/sessions", Dict{String,Any}("name" => name, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_session( assistantId, name, @@ -401,14 +388,12 @@ Deletes an assistant. URLs cannot contain the ARN. """ -function delete_assistant(assistantId; aws_config::AbstractAWSConfig=current_aws_config()) - return wisdom( - "DELETE", - "/assistants/$(assistantId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_assistant(assistantId; aws_config::AbstractAWSConfig=current_aws_config()) = wisdom( + "DELETE", + "/assistants/$(assistantId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_assistant( assistantId, params::AbstractDict{String}; @@ -436,16 +421,14 @@ Deletes an assistant association. URLs cannot contain the ARN. """ -function delete_assistant_association( +delete_assistant_association( assistantAssociationId, assistantId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "DELETE", + "/assistants/$(assistantId)/associations/$(assistantAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "DELETE", - "/assistants/$(assistantId)/associations/$(assistantAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_assistant_association( assistantAssociationId, assistantId, @@ -475,16 +458,14 @@ Deletes the content. either the ID or the ARN. URLs cannot contain the ARN. """ -function delete_content( +delete_content( contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_content( contentId, knowledgeBaseId, @@ -512,16 +493,14 @@ Deletes the quick response import job. QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. """ -function delete_import_job( +delete_import_job( importJobId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/importJobs/$(importJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/importJobs/$(importJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_import_job( importJobId, knowledgeBaseId, @@ -553,16 +532,13 @@ Reference. the ARN. URLs cannot contain the ARN. """ -function delete_knowledge_base( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return wisdom( +delete_knowledge_base(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "DELETE", "/knowledgeBases/$(knowledgeBaseId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_knowledge_base( knowledgeBaseId, params::AbstractDict{String}; @@ -590,16 +566,14 @@ Deletes a quick response. - `quick_response_id`: The identifier of the quick response to delete. """ -function delete_quick_response( +delete_quick_response( knowledgeBaseId, quickResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_quick_response( knowledgeBaseId, quickResponseId, @@ -626,14 +600,12 @@ Retrieves information about an assistant. URLs cannot contain the ARN. """ -function get_assistant(assistantId; aws_config::AbstractAWSConfig=current_aws_config()) - return wisdom( - "GET", - "/assistants/$(assistantId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_assistant(assistantId; aws_config::AbstractAWSConfig=current_aws_config()) = wisdom( + "GET", + "/assistants/$(assistantId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_assistant( assistantId, params::AbstractDict{String}; @@ -661,16 +633,14 @@ Retrieves information about an assistant association. URLs cannot contain the ARN. """ -function get_assistant_association( +get_assistant_association( assistantAssociationId, assistantId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "GET", + "/assistants/$(assistantId)/associations/$(assistantAssociationId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "GET", - "/assistants/$(assistantId)/associations/$(assistantAssociationId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_assistant_association( assistantAssociationId, assistantId, @@ -700,16 +670,14 @@ Retrieves content, including a pre-signed URL to download the content. either the ID or the ARN. URLs cannot contain the ARN. """ -function get_content( +get_content( contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "GET", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_content( contentId, knowledgeBaseId, @@ -739,16 +707,14 @@ Retrieves summary information about the content. either the ID or the ARN. URLs cannot contain the ARN. """ -function get_content_summary( +get_content_summary( contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/summary"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "GET", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)/summary"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_content_summary( contentId, knowledgeBaseId, @@ -775,16 +741,14 @@ Retrieves the started import job. - `knowledge_base_id`: The identifier of the knowledge base that the import job belongs to. """ -function get_import_job( +get_import_job( importJobId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/importJobs/$(importJobId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "GET", - "/knowledgeBases/$(knowledgeBaseId)/importJobs/$(importJobId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_import_job( importJobId, knowledgeBaseId, @@ -812,16 +776,13 @@ Retrieves information about the knowledge base. either the ID or the ARN. URLs cannot contain the ARN. """ -function get_knowledge_base( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return wisdom( +get_knowledge_base(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "GET", "/knowledgeBases/$(knowledgeBaseId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_knowledge_base( knowledgeBaseId, params::AbstractDict{String}; @@ -848,16 +809,14 @@ Retrieves the quick response. - `quick_response_id`: The identifier of the quick response. """ -function get_quick_response( +get_quick_response( knowledgeBaseId, quickResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "GET", - "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_quick_response( knowledgeBaseId, quickResponseId, @@ -897,16 +856,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list. """ -function get_recommendations( +get_recommendations( assistantId, sessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "GET", + "/assistants/$(assistantId)/sessions/$(sessionId)/recommendations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "GET", - "/assistants/$(assistantId)/sessions/$(sessionId)/recommendations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_recommendations( assistantId, sessionId, @@ -935,16 +892,13 @@ Retrieves information for a specified session. contain the ARN. """ -function get_session( - assistantId, sessionId; aws_config::AbstractAWSConfig=current_aws_config() -) - return wisdom( +get_session(assistantId, sessionId; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "GET", "/assistants/$(assistantId)/sessions/$(sessionId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_session( assistantId, sessionId, @@ -976,16 +930,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_assistant_associations( +list_assistant_associations( assistantId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "GET", + "/assistants/$(assistantId)/associations"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "GET", - "/assistants/$(assistantId)/associations"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_assistant_associations( assistantId, params::AbstractDict{String}; @@ -1012,11 +964,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_assistants(; aws_config::AbstractAWSConfig=current_aws_config()) - return wisdom( - "GET", "/assistants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_assistants(; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom("GET", "/assistants"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_assistants( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1042,14 +991,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_contents(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) - return wisdom( - "GET", - "/knowledgeBases/$(knowledgeBaseId)/contents"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_contents(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = wisdom( + "GET", + "/knowledgeBases/$(knowledgeBaseId)/contents"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_contents( knowledgeBaseId, params::AbstractDict{String}; @@ -1081,16 +1028,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_import_jobs( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return wisdom( +list_import_jobs(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "GET", "/knowledgeBases/$(knowledgeBaseId)/importJobs"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_import_jobs( knowledgeBaseId, params::AbstractDict{String}; @@ -1117,11 +1061,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_knowledge_bases(; aws_config::AbstractAWSConfig=current_aws_config()) - return wisdom( - "GET", "/knowledgeBases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_knowledge_bases(; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom("GET", "/knowledgeBases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_knowledge_bases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1151,16 +1092,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function list_quick_responses( - knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() -) - return wisdom( +list_quick_responses(knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "GET", "/knowledgeBases/$(knowledgeBaseId)/quickResponses"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_quick_responses( knowledgeBaseId, params::AbstractDict{String}; @@ -1185,16 +1123,13 @@ Lists the tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return wisdom( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1225,20 +1160,18 @@ a waitTimeSeconds input for long-polling behavior and avoiding duplicate recomme contain the ARN. """ -function notify_recommendations_received( +notify_recommendations_received( assistantId, recommendationIds, sessionId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wisdom( + "POST", + "/assistants/$(assistantId)/sessions/$(sessionId)/recommendations/notify", + Dict{String,Any}("recommendationIds" => recommendationIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/assistants/$(assistantId)/sessions/$(sessionId)/recommendations/notify", - Dict{String,Any}("recommendationIds" => recommendationIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function notify_recommendations_received( assistantId, recommendationIds, @@ -1277,17 +1210,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function query_assistant( +query_assistant( assistantId, queryText; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/assistants/$(assistantId)/query", + Dict{String,Any}("queryText" => queryText); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/assistants/$(assistantId)/query", - Dict{String,Any}("queryText" => queryText); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function query_assistant( assistantId, queryText, @@ -1317,16 +1248,14 @@ Removes a URI template from a knowledge base. either the ID or the ARN. URLs cannot contain the ARN. """ -function remove_knowledge_base_template_uri( +remove_knowledge_base_template_uri( knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "DELETE", + "/knowledgeBases/$(knowledgeBaseId)/templateUri"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "DELETE", - "/knowledgeBases/$(knowledgeBaseId)/templateUri"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_knowledge_base_template_uri( knowledgeBaseId, params::AbstractDict{String}; @@ -1360,17 +1289,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function search_content( +search_content( knowledgeBaseId, searchExpression; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/search", + Dict{String,Any}("searchExpression" => searchExpression); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/search", - Dict{String,Any}("searchExpression" => searchExpression); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_content( knowledgeBaseId, searchExpression, @@ -1410,17 +1337,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function search_quick_responses( +search_quick_responses( knowledgeBaseId, searchExpression; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/search/quickResponses", + Dict{String,Any}("searchExpression" => searchExpression); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/search/quickResponses", - Dict{String,Any}("searchExpression" => searchExpression); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_quick_responses( knowledgeBaseId, searchExpression, @@ -1457,17 +1382,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. """ -function search_sessions( +search_sessions( assistantId, searchExpression; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/assistants/$(assistantId)/searchSessions", + Dict{String,Any}("searchExpression" => searchExpression); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/assistants/$(assistantId)/searchSessions", - Dict{String,Any}("searchExpression" => searchExpression); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function search_sessions( assistantId, searchExpression, @@ -1507,17 +1430,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"presignedUrlTimeToLive"`: The expected expiration time of the generated presigned URL, specified in minutes. """ -function start_content_upload( +start_content_upload( contentType, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/upload", + Dict{String,Any}("contentType" => contentType); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/upload", - Dict{String,Any}("contentType" => contentType); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_content_upload( contentType, knowledgeBaseId, @@ -1562,24 +1483,22 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys that the resource data are imported from. - `"metadata"`: The metadata fields of the imported Wisdom resources. """ -function start_import_job( +start_import_job( importJobType, knowledgeBaseId, uploadId; aws_config::AbstractAWSConfig=current_aws_config(), +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/importJobs", + Dict{String,Any}( + "importJobType" => importJobType, + "uploadId" => uploadId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/importJobs", - Dict{String,Any}( - "importJobType" => importJobType, - "uploadId" => uploadId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_import_job( importJobType, knowledgeBaseId, @@ -1617,15 +1536,14 @@ Adds the specified tags to the specified resource. - `tags`: The tags used to organize, track, or control access for this resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return wisdom( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1652,17 +1570,14 @@ Removes the specified tags from the specified resource. - `tag_keys`: The tag keys. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return wisdom( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + wisdom( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -1709,16 +1624,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"uploadId"`: A pointer to the uploaded asset. This value is returned by StartContentUpload. """ -function update_content( +update_content( contentId, knowledgeBaseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/contents/$(contentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_content( contentId, knowledgeBaseId, @@ -1751,17 +1664,15 @@ https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*{Id}*/vie - `template_uri`: The template URI to update. """ -function update_knowledge_base_template_uri( +update_knowledge_base_template_uri( knowledgeBaseId, templateUri; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/templateUri", + Dict{String,Any}("templateUri" => templateUri); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/templateUri", - Dict{String,Any}("templateUri" => templateUri); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_knowledge_base_template_uri( knowledgeBaseId, templateUri, @@ -1813,16 +1724,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"shortcutKey"`: The shortcut key of the quick response. The value should be unique across the knowledge base. """ -function update_quick_response( +update_quick_response( knowledgeBaseId, quickResponseId; aws_config::AbstractAWSConfig=current_aws_config() +) = wisdom( + "POST", + "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return wisdom( - "POST", - "/knowledgeBases/$(knowledgeBaseId)/quickResponses/$(quickResponseId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_quick_response( knowledgeBaseId, quickResponseId, diff --git a/src/services/workdocs.jl b/src/services/workdocs.jl index 475419fa3..83e7466f7 100644 --- a/src/services/workdocs.jl +++ b/src/services/workdocs.jl @@ -21,16 +21,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function abort_document_version_upload( +abort_document_version_upload( DocumentId, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "DELETE", + "/api/v1/documents/$(DocumentId)/versions/$(VersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "DELETE", - "/api/v1/documents/$(DocumentId)/versions/$(VersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function abort_document_version_upload( DocumentId, VersionId, @@ -60,14 +58,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function activate_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "POST", - "/api/v1/users/$(UserId)/activation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +activate_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "POST", + "/api/v1/users/$(UserId)/activation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function activate_user( UserId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -97,17 +93,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services administrator credentials to access the API. - `"NotificationOptions"`: The notification options. """ -function add_resource_permissions( +add_resource_permissions( Principals, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "POST", + "/api/v1/resources/$(ResourceId)/permissions", + Dict{String,Any}("Principals" => Principals); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "POST", - "/api/v1/resources/$(ResourceId)/permissions", - Dict{String,Any}("Principals" => Principals); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function add_resource_permissions( Principals, ResourceId, @@ -148,17 +142,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors. """ -function create_comment( +create_comment( DocumentId, Text, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "POST", + "/api/v1/documents/$(DocumentId)/versions/$(VersionId)/comment", + Dict{String,Any}("Text" => Text); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "POST", - "/api/v1/documents/$(DocumentId)/versions/$(VersionId)/comment", - Dict{String,Any}("Text" => Text); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_comment( DocumentId, Text, @@ -193,17 +185,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versionid"`: The ID of the version, if the custom metadata is being added to a document version. """ -function create_custom_metadata( +create_custom_metadata( CustomMetadata, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "PUT", + "/api/v1/resources/$(ResourceId)/customMetadata", + Dict{String,Any}("CustomMetadata" => CustomMetadata); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "PUT", - "/api/v1/resources/$(ResourceId)/customMetadata", - Dict{String,Any}("CustomMetadata" => CustomMetadata); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_custom_metadata( CustomMetadata, ResourceId, @@ -236,15 +226,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services administrator credentials to access the API. - `"Name"`: The name of the new folder. """ -function create_folder(ParentFolderId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( +create_folder(ParentFolderId; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "POST", "/api/v1/folders", Dict{String,Any}("ParentFolderId" => ParentFolderId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_folder( ParentFolderId, params::AbstractDict{String}; @@ -276,17 +265,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function create_labels( - Labels, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +create_labels(Labels, ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "PUT", "/api/v1/resources/$(ResourceId)/labels", Dict{String,Any}("Labels" => Labels); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_labels( Labels, ResourceId, @@ -319,25 +305,23 @@ up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide. - `subscription_type`: The notification type. """ -function create_notification_subscription( +create_notification_subscription( Endpoint, OrganizationId, Protocol, SubscriptionType; aws_config::AbstractAWSConfig=current_aws_config(), +) = workdocs( + "POST", + "/api/v1/organizations/$(OrganizationId)/subscriptions", + Dict{String,Any}( + "Endpoint" => Endpoint, + "Protocol" => Protocol, + "SubscriptionType" => SubscriptionType, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "POST", - "/api/v1/organizations/$(OrganizationId)/subscriptions", - Dict{String,Any}( - "Endpoint" => Endpoint, - "Protocol" => Protocol, - "SubscriptionType" => SubscriptionType, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_notification_subscription( Endpoint, OrganizationId, @@ -387,26 +371,24 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"StorageRule"`: The amount of storage for the user. - `"TimeZoneId"`: The time zone ID of the user. """ -function create_user( +create_user( GivenName, Password, Surname, Username; aws_config::AbstractAWSConfig=current_aws_config(), +) = workdocs( + "POST", + "/api/v1/users", + Dict{String,Any}( + "GivenName" => GivenName, + "Password" => Password, + "Surname" => Surname, + "Username" => Username, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "POST", - "/api/v1/users", - Dict{String,Any}( - "GivenName" => GivenName, - "Password" => Password, - "Surname" => Surname, - "Username" => Username, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user( GivenName, Password, @@ -449,14 +431,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function deactivate_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "DELETE", - "/api/v1/users/$(UserId)/activation"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +deactivate_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "DELETE", + "/api/v1/users/$(UserId)/activation"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function deactivate_user( UserId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -485,16 +465,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function delete_comment( +delete_comment( CommentId, DocumentId, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "DELETE", + "/api/v1/documents/$(DocumentId)/versions/$(VersionId)/comment/$(CommentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "DELETE", - "/api/v1/documents/$(DocumentId)/versions/$(VersionId)/comment/$(CommentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_comment( CommentId, DocumentId, @@ -530,16 +508,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"versionId"`: The ID of the version, if the custom metadata is being deleted from a document version. """ -function delete_custom_metadata( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +delete_custom_metadata(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "DELETE", "/api/v1/resources/$(ResourceId)/customMetadata"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_custom_metadata( ResourceId, params::AbstractDict{String}; @@ -568,14 +543,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function delete_document(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "DELETE", - "/api/v1/documents/$(DocumentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_document(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "DELETE", + "/api/v1/documents/$(DocumentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_document( DocumentId, params::AbstractDict{String}; @@ -606,20 +579,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function delete_document_version( +delete_document_version( DocumentId, VersionId, deletePriorVersions; aws_config::AbstractAWSConfig=current_aws_config(), +) = workdocs( + "DELETE", + "/api/v1/documentVersions/$(DocumentId)/versions/$(VersionId)", + Dict{String,Any}("deletePriorVersions" => deletePriorVersions); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "DELETE", - "/api/v1/documentVersions/$(DocumentId)/versions/$(VersionId)", - Dict{String,Any}("deletePriorVersions" => deletePriorVersions); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_document_version( DocumentId, VersionId, @@ -656,14 +627,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function delete_folder(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "DELETE", - "/api/v1/folders/$(FolderId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_folder(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "DELETE", + "/api/v1/folders/$(FolderId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_folder( FolderId, params::AbstractDict{String}; @@ -692,16 +661,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function delete_folder_contents( - FolderId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +delete_folder_contents(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "DELETE", "/api/v1/folders/$(FolderId)/contents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_folder_contents( FolderId, params::AbstractDict{String}; @@ -732,14 +698,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"deleteAll"`: Flag to request removal of all labels from the specified resource. - `"labels"`: List of labels to delete from the resource. """ -function delete_labels(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "DELETE", - "/api/v1/resources/$(ResourceId)/labels"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_labels(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "DELETE", + "/api/v1/resources/$(ResourceId)/labels"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_labels( ResourceId, params::AbstractDict{String}; @@ -765,16 +729,14 @@ Deletes the specified subscription from the specified organization. - `subscription_id`: The ID of the subscription. """ -function delete_notification_subscription( +delete_notification_subscription( OrganizationId, SubscriptionId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "DELETE", + "/api/v1/organizations/$(OrganizationId)/subscriptions/$(SubscriptionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "DELETE", - "/api/v1/organizations/$(OrganizationId)/subscriptions/$(SubscriptionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_notification_subscription( OrganizationId, SubscriptionId, @@ -807,14 +769,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys using administrative API actions, as in accessing the API using Amazon Web Services credentials. """ -function delete_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "DELETE", - "/api/v1/users/$(UserId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "DELETE", + "/api/v1/users/$(UserId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_user( UserId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -856,11 +816,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pertaining to this user. This is an optional parameter and is only applicable for administrative API (SigV4) requests. """ -function describe_activities(; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "GET", "/api/v1/activities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_activities(; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "GET", "/api/v1/activities"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_activities( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -891,16 +849,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. This marker was received from a previous call. """ -function describe_comments( +describe_comments( DocumentId, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "GET", + "/api/v1/documents/$(DocumentId)/versions/$(VersionId)/comments"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "GET", - "/api/v1/documents/$(DocumentId)/versions/$(VersionId)/comments"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_comments( DocumentId, VersionId, @@ -938,16 +894,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. (You received this marker from a previous call.) """ -function describe_document_versions( - DocumentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +describe_document_versions(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "GET", "/api/v1/documents/$(DocumentId)/versions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_document_versions( DocumentId, params::AbstractDict{String}; @@ -987,16 +940,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sort"`: The sorting criteria. - `"type"`: The type of items. """ -function describe_folder_contents( - FolderId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +describe_folder_contents(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "GET", "/api/v1/folders/$(FolderId)/contents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_folder_contents( FolderId, params::AbstractDict{String}; @@ -1030,15 +980,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call.) - `"organizationId"`: The ID of the organization. """ -function describe_groups(searchQuery; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "GET", - "/api/v1/groups", - Dict{String,Any}("searchQuery" => searchQuery); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_groups(searchQuery; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "GET", + "/api/v1/groups", + Dict{String,Any}("searchQuery" => searchQuery); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_groups( searchQuery, params::AbstractDict{String}; @@ -1070,16 +1018,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. (You received this marker from a previous call.) """ -function describe_notification_subscriptions( +describe_notification_subscriptions( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "GET", + "/api/v1/organizations/$(OrganizationId)/subscriptions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "GET", - "/api/v1/organizations/$(OrganizationId)/subscriptions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_notification_subscriptions( OrganizationId, params::AbstractDict{String}; @@ -1112,16 +1058,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys previous call) - `"principalId"`: The ID of the principal to filter permissions by. """ -function describe_resource_permissions( +describe_resource_permissions( ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "GET", + "/api/v1/resources/$(ResourceId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "GET", - "/api/v1/resources/$(ResourceId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_resource_permissions( ResourceId, params::AbstractDict{String}; @@ -1156,17 +1100,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"marker"`: The marker for the next set of results. (You received this marker from a previous call.) """ -function describe_root_folders( - Authentication; aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +describe_root_folders(Authentication; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "GET", "/api/v1/me/root", Dict{String,Any}("headers" => Dict{String,Any}("Authentication" => Authentication)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_root_folders( Authentication, params::AbstractDict{String}; @@ -1222,11 +1163,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"sort"`: The sorting criteria. - `"userIds"`: The IDs of the users. """ -function describe_users(; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "GET", "/api/v1/users"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_users(; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs("GET", "/api/v1/users"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_users( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1253,17 +1191,14 @@ in the Amazon WorkDocs Developer Guide. - `authentication`: Amazon WorkDocs authentication token. """ -function get_current_user( - Authentication; aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +get_current_user(Authentication; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "GET", "/api/v1/me", Dict{String,Any}("headers" => Dict{String,Any}("Authentication" => Authentication)); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_current_user( Authentication, params::AbstractDict{String}; @@ -1301,14 +1236,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services administrator credentials to access the API. - `"includeCustomMetadata"`: Set this to TRUE to include custom metadata in the response. """ -function get_document(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "GET", - "/api/v1/documents/$(DocumentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_document(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "GET", + "/api/v1/documents/$(DocumentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_document( DocumentId, params::AbstractDict{String}; @@ -1344,14 +1277,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"limit"`: The maximum number of levels in the hierarchy to return. - `"marker"`: This value is not supported. """ -function get_document_path(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( +get_document_path(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "GET", "/api/v1/documents/$(DocumentId)/path"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_document_path( DocumentId, params::AbstractDict{String}; @@ -1384,16 +1316,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys source document. - `"includeCustomMetadata"`: Set this to TRUE to include custom metadata in the response. """ -function get_document_version( +get_document_version( DocumentId, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "GET", + "/api/v1/documents/$(DocumentId)/versions/$(VersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "GET", - "/api/v1/documents/$(DocumentId)/versions/$(VersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_document_version( DocumentId, VersionId, @@ -1424,14 +1354,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services administrator credentials to access the API. - `"includeCustomMetadata"`: Set to TRUE to include custom metadata in the response. """ -function get_folder(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "GET", - "/api/v1/folders/$(FolderId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_folder(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "GET", + "/api/v1/folders/$(FolderId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_folder( FolderId, params::AbstractDict{String}; @@ -1467,14 +1395,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"limit"`: The maximum number of levels in the hierarchy to return. - `"marker"`: This value is not supported. """ -function get_folder_path(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "GET", - "/api/v1/folders/$(FolderId)/path"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_folder_path(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "GET", + "/api/v1/folders/$(FolderId)/path"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_folder_path( FolderId, params::AbstractDict{String}; @@ -1507,11 +1433,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"userId"`: The user ID for the resource collection. This is a required field for accessing the API operation using IAM credentials. """ -function get_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "GET", "/api/v1/resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "GET", "/api/v1/resources"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1547,13 +1471,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name of the document. - `"ParentFolderId"`: The ID of the parent folder. """ -function initiate_document_version_upload(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +initiate_document_version_upload(; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "POST", "/api/v1/documents"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function initiate_document_version_upload( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1580,16 +1501,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function remove_all_resource_permissions( +remove_all_resource_permissions( ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "DELETE", + "/api/v1/resources/$(ResourceId)/permissions"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "DELETE", - "/api/v1/resources/$(ResourceId)/permissions"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_all_resource_permissions( ResourceId, params::AbstractDict{String}; @@ -1620,16 +1539,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services administrator credentials to access the API. - `"type"`: The principal type of the resource. """ -function remove_resource_permission( +remove_resource_permission( PrincipalId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "DELETE", + "/api/v1/resources/$(ResourceId)/permissions/$(PrincipalId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "DELETE", - "/api/v1/resources/$(ResourceId)/permissions/$(PrincipalId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function remove_resource_permission( PrincipalId, ResourceId, @@ -1659,16 +1576,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Authentication"`: Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API. """ -function restore_document_versions( - DocumentId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workdocs( +restore_document_versions(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) = + workdocs( "POST", "/api/v1/documentVersions/restore/$(DocumentId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_document_versions( DocumentId, params::AbstractDict{String}; @@ -1707,11 +1621,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"QueryText"`: The String to search for. Searches across different text fields based on request parameters. Use double quotes around the query string for exact phrase matches. """ -function search_resources(; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "POST", "/api/v1/search"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +search_resources(; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "POST", "/api/v1/search"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function search_resources( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1743,14 +1655,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceState"`: The resource state of the document. Only ACTIVE and RECYCLED are supported. """ -function update_document(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "PATCH", - "/api/v1/documents/$(DocumentId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_document(DocumentId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "PATCH", + "/api/v1/documents/$(DocumentId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_document( DocumentId, params::AbstractDict{String}; @@ -1783,16 +1693,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services administrator credentials to access the API. - `"VersionStatus"`: The status of the version. """ -function update_document_version( +update_document_version( DocumentId, VersionId; aws_config::AbstractAWSConfig=current_aws_config() +) = workdocs( + "PATCH", + "/api/v1/documents/$(DocumentId)/versions/$(VersionId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workdocs( - "PATCH", - "/api/v1/documents/$(DocumentId)/versions/$(VersionId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_document_version( DocumentId, VersionId, @@ -1827,14 +1735,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ResourceState"`: The resource state of the folder. Only ACTIVE and RECYCLED are accepted values from the API. """ -function update_folder(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "PATCH", - "/api/v1/folders/$(FolderId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_folder(FolderId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "PATCH", + "/api/v1/folders/$(FolderId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_folder( FolderId, params::AbstractDict{String}; @@ -1872,14 +1778,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimeZoneId"`: The time zone ID of the user. - `"Type"`: The type of the user. """ -function update_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) - return workdocs( - "PATCH", - "/api/v1/users/$(UserId)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +update_user(UserId; aws_config::AbstractAWSConfig=current_aws_config()) = workdocs( + "PATCH", + "/api/v1/users/$(UserId)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function update_user( UserId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) diff --git a/src/services/worklink.jl b/src/services/worklink.jl index dcee4dc0c..007e36e78 100644 --- a/src/services/worklink.jl +++ b/src/services/worklink.jl @@ -20,24 +20,22 @@ Specifies a domain to be associated to Amazon WorkLink. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DisplayName"`: The name to display. """ -function associate_domain( +associate_domain( AcmCertificateArn, DomainName, FleetArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = worklink( + "POST", + "/associateDomain", + Dict{String,Any}( + "AcmCertificateArn" => AcmCertificateArn, + "DomainName" => DomainName, + "FleetArn" => FleetArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/associateDomain", - Dict{String,Any}( - "AcmCertificateArn" => AcmCertificateArn, - "DomainName" => DomainName, - "FleetArn" => FleetArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_domain( AcmCertificateArn, DomainName, @@ -80,19 +78,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DomainName"`: The domain name of the authorization provider. This applies only to SAML-based authorization providers. """ -function associate_website_authorization_provider( +associate_website_authorization_provider( AuthorizationProviderType, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/associateWebsiteAuthorizationProvider", + Dict{String,Any}( + "AuthorizationProviderType" => AuthorizationProviderType, "FleetArn" => FleetArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/associateWebsiteAuthorizationProvider", - Dict{String,Any}( - "AuthorizationProviderType" => AuthorizationProviderType, "FleetArn" => FleetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_website_authorization_provider( AuthorizationProviderType, FleetArn, @@ -132,17 +128,15 @@ certificates used by associated websites within the company network. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DisplayName"`: The certificate name to display. """ -function associate_website_certificate_authority( +associate_website_certificate_authority( Certificate, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/associateWebsiteCertificateAuthority", + Dict{String,Any}("Certificate" => Certificate, "FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/associateWebsiteCertificateAuthority", - Dict{String,Any}("Certificate" => Certificate, "FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_website_certificate_authority( Certificate, FleetArn, @@ -181,15 +175,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys traffic through the closest AWS Region to users, which may be outside of your home Region. - `"Tags"`: The tags to add to the resource. A tag is a key-value pair. """ -function create_fleet(FleetName; aws_config::AbstractAWSConfig=current_aws_config()) - return worklink( - "POST", - "/createFleet", - Dict{String,Any}("FleetName" => FleetName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_fleet(FleetName; aws_config::AbstractAWSConfig=current_aws_config()) = worklink( + "POST", + "/createFleet", + Dict{String,Any}("FleetName" => FleetName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_fleet( FleetName, params::AbstractDict{String}; @@ -216,15 +208,13 @@ Deletes a fleet. Prevents users from accessing previously associated websites. - `fleet_arn`: The ARN of the fleet. """ -function delete_fleet(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return worklink( - "POST", - "/deleteFleet", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_fleet(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) = worklink( + "POST", + "/deleteFleet", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_fleet( FleetArn, params::AbstractDict{String}; @@ -251,17 +241,15 @@ Describes the configuration for delivering audit streams to the customer account - `fleet_arn`: The ARN of the fleet. """ -function describe_audit_stream_configuration( +describe_audit_stream_configuration( FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/describeAuditStreamConfiguration", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/describeAuditStreamConfiguration", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_audit_stream_configuration( FleetArn, params::AbstractDict{String}; @@ -289,17 +277,15 @@ specified fleet. - `fleet_arn`: The ARN of the fleet. """ -function describe_company_network_configuration( +describe_company_network_configuration( FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/describeCompanyNetworkConfiguration", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/describeCompanyNetworkConfiguration", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_company_network_configuration( FleetArn, params::AbstractDict{String}; @@ -327,17 +313,14 @@ Provides information about a user's device. - `fleet_arn`: The ARN of the fleet. """ -function describe_device( - DeviceId, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return worklink( +describe_device(DeviceId, FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink( "POST", "/describeDevice", Dict{String,Any}("DeviceId" => DeviceId, "FleetArn" => FleetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_device( DeviceId, FleetArn, @@ -369,17 +352,15 @@ Describes the device policy configuration for the specified fleet. - `fleet_arn`: The ARN of the fleet. """ -function describe_device_policy_configuration( +describe_device_policy_configuration( FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/describeDevicePolicyConfiguration", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/describeDevicePolicyConfiguration", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_device_policy_configuration( FleetArn, params::AbstractDict{String}; @@ -407,17 +388,14 @@ Provides information about the domain. - `fleet_arn`: The ARN of the fleet. """ -function describe_domain( - DomainName, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return worklink( +describe_domain(DomainName, FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink( "POST", "/describeDomain", Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_domain( DomainName, FleetArn, @@ -450,17 +428,14 @@ networking, and device configuration details. - `fleet_arn`: The Amazon Resource Name (ARN) of the fleet. """ -function describe_fleet_metadata( - FleetArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return worklink( +describe_fleet_metadata(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink( "POST", "/describeFleetMetadata", Dict{String,Any}("FleetArn" => FleetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_fleet_metadata( FleetArn, params::AbstractDict{String}; @@ -487,17 +462,15 @@ Describes the identity provider configuration of the specified fleet. - `fleet_arn`: The ARN of the fleet. """ -function describe_identity_provider_configuration( +describe_identity_provider_configuration( FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/describeIdentityProviderConfiguration", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/describeIdentityProviderConfiguration", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_identity_provider_configuration( FleetArn, params::AbstractDict{String}; @@ -525,17 +498,15 @@ Provides information about the certificate authority. - `website_ca_id`: A unique identifier for the certificate authority. """ -function describe_website_certificate_authority( +describe_website_certificate_authority( FleetArn, WebsiteCaId; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/describeWebsiteCertificateAuthority", + Dict{String,Any}("FleetArn" => FleetArn, "WebsiteCaId" => WebsiteCaId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/describeWebsiteCertificateAuthority", - Dict{String,Any}("FleetArn" => FleetArn, "WebsiteCaId" => WebsiteCaId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_website_certificate_authority( FleetArn, WebsiteCaId, @@ -569,17 +540,15 @@ domain with Amazon WorkLink. - `fleet_arn`: The ARN of the fleet. """ -function disassociate_domain( +disassociate_domain( DomainName, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/disassociateDomain", + Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/disassociateDomain", - Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_domain( DomainName, FleetArn, @@ -614,19 +583,17 @@ provider. - `fleet_arn`: The ARN of the fleet. """ -function disassociate_website_authorization_provider( +disassociate_website_authorization_provider( AuthorizationProviderId, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/disassociateWebsiteAuthorizationProvider", + Dict{String,Any}( + "AuthorizationProviderId" => AuthorizationProviderId, "FleetArn" => FleetArn + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/disassociateWebsiteAuthorizationProvider", - Dict{String,Any}( - "AuthorizationProviderId" => AuthorizationProviderId, "FleetArn" => FleetArn - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_website_authorization_provider( AuthorizationProviderId, FleetArn, @@ -662,17 +629,15 @@ Removes a certificate authority (CA). - `website_ca_id`: A unique identifier for the CA. """ -function disassociate_website_certificate_authority( +disassociate_website_certificate_authority( FleetArn, WebsiteCaId; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/disassociateWebsiteCertificateAuthority", + Dict{String,Any}("FleetArn" => FleetArn, "WebsiteCaId" => WebsiteCaId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/disassociateWebsiteCertificateAuthority", - Dict{String,Any}("FleetArn" => FleetArn, "WebsiteCaId" => WebsiteCaId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_website_certificate_authority( FleetArn, WebsiteCaId, @@ -709,15 +674,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_devices(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return worklink( - "POST", - "/listDevices", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_devices(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) = worklink( + "POST", + "/listDevices", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_devices( FleetArn, params::AbstractDict{String}; @@ -749,15 +712,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_domains(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return worklink( - "POST", - "/listDomains", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_domains(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) = worklink( + "POST", + "/listDomains", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_domains( FleetArn, params::AbstractDict{String}; @@ -786,11 +747,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) - return worklink( - "POST", "/listFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_fleets(; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink("POST", "/listFleets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_fleets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -813,16 +771,13 @@ Retrieves a list of tags for the specified resource. - `resource_arn`: The Amazon Resource Name (ARN) of the fleet. """ -function list_tags_for_resource( - ResourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return worklink( +list_tags_for_resource(ResourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink( "GET", "/tags/$(ResourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceArn, params::AbstractDict{String}; @@ -852,17 +807,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_website_authorization_providers( +list_website_authorization_providers( FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/listWebsiteAuthorizationProviders", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/listWebsiteAuthorizationProviders", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_website_authorization_providers( FleetArn, params::AbstractDict{String}; @@ -894,17 +847,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The pagination token used to retrieve the next page of results for this operation. If this value is null, it retrieves the first page. """ -function list_website_certificate_authorities( +list_website_certificate_authorities( FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/listWebsiteCertificateAuthorities", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/listWebsiteCertificateAuthorities", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_website_certificate_authorities( FleetArn, params::AbstractDict{String}; @@ -932,17 +883,15 @@ Moves a domain to ACTIVE status if it was in the INACTIVE status. - `fleet_arn`: The ARN of the fleet. """ -function restore_domain_access( +restore_domain_access( DomainName, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/restoreDomainAccess", + Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/restoreDomainAccess", - Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function restore_domain_access( DomainName, FleetArn, @@ -975,17 +924,15 @@ Moves a domain to INACTIVE status if it was in the ACTIVE status. - `fleet_arn`: The ARN of the fleet. """ -function revoke_domain_access( +revoke_domain_access( DomainName, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/revokeDomainAccess", + Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/revokeDomainAccess", - Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function revoke_domain_access( DomainName, FleetArn, @@ -1019,17 +966,14 @@ credentials. - `username`: The name of the user. """ -function sign_out_user( - FleetArn, Username; aws_config::AbstractAWSConfig=current_aws_config() -) - return worklink( +sign_out_user(FleetArn, Username; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink( "POST", "/signOutUser", Dict{String,Any}("FleetArn" => FleetArn, "Username" => Username); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function sign_out_user( FleetArn, Username, @@ -1064,15 +1008,14 @@ this operation updates its value. - `tags`: The tags to add to the resource. A tag is a key-value pair. """ -function tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return worklink( +tag_resource(ResourceArn, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink( "POST", "/tags/$(ResourceArn)", Dict{String,Any}("Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceArn, Tags, @@ -1099,17 +1042,14 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return worklink( +untag_resource(ResourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink( "DELETE", "/tags/$(ResourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceArn, tagKeys, @@ -1139,17 +1079,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"AuditStreamArn"`: The ARN of the Amazon Kinesis data stream that receives the audit events. """ -function update_audit_stream_configuration( +update_audit_stream_configuration( FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/updateAuditStreamConfiguration", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/updateAuditStreamConfiguration", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_audit_stream_configuration( FleetArn, params::AbstractDict{String}; @@ -1180,26 +1118,24 @@ Updates the company network configuration for the fleet. - `vpc_id`: The VPC with connectivity to associated websites. """ -function update_company_network_configuration( +update_company_network_configuration( FleetArn, SecurityGroupIds, SubnetIds, VpcId; aws_config::AbstractAWSConfig=current_aws_config(), +) = worklink( + "POST", + "/updateCompanyNetworkConfiguration", + Dict{String,Any}( + "FleetArn" => FleetArn, + "SecurityGroupIds" => SecurityGroupIds, + "SubnetIds" => SubnetIds, + "VpcId" => VpcId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/updateCompanyNetworkConfiguration", - Dict{String,Any}( - "FleetArn" => FleetArn, - "SecurityGroupIds" => SecurityGroupIds, - "SubnetIds" => SubnetIds, - "VpcId" => VpcId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_company_network_configuration( FleetArn, SecurityGroupIds, @@ -1242,17 +1178,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeviceCaCertificate"`: The certificate chain, including intermediate certificates and the root certificate authority certificate used to issue device certificates. """ -function update_device_policy_configuration( +update_device_policy_configuration( FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/updateDevicePolicyConfiguration", + Dict{String,Any}("FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/updateDevicePolicyConfiguration", - Dict{String,Any}("FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_device_policy_configuration( FleetArn, params::AbstractDict{String}; @@ -1283,17 +1217,15 @@ Updates domain metadata, such as DisplayName. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DisplayName"`: The name to display. """ -function update_domain_metadata( +update_domain_metadata( DomainName, FleetArn; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/updateDomainMetadata", + Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/updateDomainMetadata", - Dict{String,Any}("DomainName" => DomainName, "FleetArn" => FleetArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_domain_metadata( DomainName, FleetArn, @@ -1331,15 +1263,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OptimizeForEndUserLocation"`: The option to optimize for better performance by routing traffic through the closest AWS Region to users, which may be outside of your home Region. """ -function update_fleet_metadata(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) - return worklink( +update_fleet_metadata(FleetArn; aws_config::AbstractAWSConfig=current_aws_config()) = + worklink( "POST", "/UpdateFleetMetadata", Dict{String,Any}("FleetArn" => FleetArn); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_fleet_metadata( FleetArn, params::AbstractDict{String}; @@ -1371,19 +1302,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"IdentityProviderSamlMetadata"`: The SAML metadata document provided by the customer’s identity provider. The existing IdentityProviderSamlMetadata is unset if null is passed. """ -function update_identity_provider_configuration( +update_identity_provider_configuration( FleetArn, IdentityProviderType; aws_config::AbstractAWSConfig=current_aws_config() +) = worklink( + "POST", + "/updateIdentityProviderConfiguration", + Dict{String,Any}( + "FleetArn" => FleetArn, "IdentityProviderType" => IdentityProviderType + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return worklink( - "POST", - "/updateIdentityProviderConfiguration", - Dict{String,Any}( - "FleetArn" => FleetArn, "IdentityProviderType" => IdentityProviderType - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_identity_provider_configuration( FleetArn, IdentityProviderType, diff --git a/src/services/workmail.jl b/src/services/workmail.jl index c71b9cf95..7a773c088 100644 --- a/src/services/workmail.jl +++ b/src/services/workmail.jl @@ -22,20 +22,18 @@ Adds a member (user or group) to the resource's set of delegates. resource@domain.tld Resource name: resource """ -function associate_delegate_to_resource( +associate_delegate_to_resource( EntityId, OrganizationId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "AssociateDelegateToResource", + Dict{String,Any}( + "EntityId" => EntityId, + "OrganizationId" => OrganizationId, + "ResourceId" => ResourceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "AssociateDelegateToResource", - Dict{String,Any}( - "EntityId" => EntityId, - "OrganizationId" => OrganizationId, - "ResourceId" => ResourceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_delegate_to_resource( EntityId, OrganizationId, @@ -80,18 +78,16 @@ Adds a member (user or group) to the group's set. - `organization_id`: The organization under which the group exists. """ -function associate_member_to_group( +associate_member_to_group( GroupId, MemberId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "AssociateMemberToGroup", + Dict{String,Any}( + "GroupId" => GroupId, "MemberId" => MemberId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "AssociateMemberToGroup", - Dict{String,Any}( - "GroupId" => GroupId, "MemberId" => MemberId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_member_to_group( GroupId, MemberId, @@ -130,18 +126,16 @@ authentication token you can use to make impersonated calls. assumed. """ -function assume_impersonation_role( +assume_impersonation_role( ImpersonationRoleId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "AssumeImpersonationRole", + Dict{String,Any}( + "ImpersonationRoleId" => ImpersonationRoleId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "AssumeImpersonationRole", - Dict{String,Any}( - "ImpersonationRoleId" => ImpersonationRoleId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function assume_impersonation_role( ImpersonationRoleId, OrganizationId, @@ -178,20 +172,18 @@ be possible to cancel it. - `organization_id`: The organization ID. """ -function cancel_mailbox_export_job( +cancel_mailbox_export_job( ClientToken, JobId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "CancelMailboxExportJob", + Dict{String,Any}( + "ClientToken" => ClientToken, + "JobId" => JobId, + "OrganizationId" => OrganizationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "CancelMailboxExportJob", - Dict{String,Any}( - "ClientToken" => ClientToken, - "JobId" => JobId, - "OrganizationId" => OrganizationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function cancel_mailbox_export_job( ClientToken, JobId, @@ -229,18 +221,16 @@ Adds an alias to the set of a given member (user or group) of WorkMail. - `organization_id`: The organization under which the member (user or group) exists. """ -function create_alias( +create_alias( Alias, EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "CreateAlias", + Dict{String,Any}( + "Alias" => Alias, "EntityId" => EntityId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "CreateAlias", - Dict{String,Any}( - "Alias" => Alias, "EntityId" => EntityId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_alias( Alias, EntityId, @@ -286,20 +276,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LambdaProvider"`: Lambda availability provider definition. The request must contain exactly one provider definition, either EwsProvider or LambdaProvider. """ -function create_availability_configuration( +create_availability_configuration( DomainName, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "CreateAvailabilityConfiguration", + Dict{String,Any}( + "DomainName" => DomainName, + "OrganizationId" => OrganizationId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "CreateAvailabilityConfiguration", - Dict{String,Any}( - "DomainName" => DomainName, - "OrganizationId" => OrganizationId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_availability_configuration( DomainName, OrganizationId, @@ -339,16 +327,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HiddenFromGlobalAddressList"`: If this parameter is enabled, the group will be hidden from the address book. """ -function create_group( - Name, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +create_group(Name, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "CreateGroup", Dict{String,Any}("Name" => Name, "OrganizationId" => OrganizationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_group( Name, OrganizationId, @@ -390,22 +375,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: The idempotency token for the client request. - `"Description"`: The description of the new impersonation role. """ -function create_impersonation_role( +create_impersonation_role( Name, OrganizationId, Rules, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "CreateImpersonationRole", + Dict{String,Any}( + "Name" => Name, + "OrganizationId" => OrganizationId, + "Rules" => Rules, + "Type" => Type, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "CreateImpersonationRole", - Dict{String,Any}( - "Name" => Name, - "OrganizationId" => OrganizationId, - "Rules" => Rules, - "Type" => Type, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_impersonation_role( Name, OrganizationId, @@ -462,21 +445,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NotDeviceUserAgents"`: Device user agents that the rule will not match. All other device user agents will match. """ -function create_mobile_device_access_rule( +create_mobile_device_access_rule( Effect, Name, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "CreateMobileDeviceAccessRule", + Dict{String,Any}( + "Effect" => Effect, + "Name" => Name, + "OrganizationId" => OrganizationId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "CreateMobileDeviceAccessRule", - Dict{String,Any}( - "Effect" => Effect, - "Name" => Name, - "OrganizationId" => OrganizationId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_mobile_device_access_rule( Effect, Name, @@ -533,14 +514,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys the request. - `"KmsKeyArn"`: The Amazon Resource Name (ARN) of a customer managed key from AWS KMS. """ -function create_organization(Alias; aws_config::AbstractAWSConfig=current_aws_config()) - return workmail( - "CreateOrganization", - Dict{String,Any}("Alias" => Alias, "ClientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_organization(Alias; aws_config::AbstractAWSConfig=current_aws_config()) = workmail( + "CreateOrganization", + Dict{String,Any}("Alias" => Alias, "ClientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_organization( Alias, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -576,18 +555,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HiddenFromGlobalAddressList"`: If this parameter is enabled, the resource will be hidden from the address book. """ -function create_resource( +create_resource( Name, OrganizationId, Type; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "CreateResource", + Dict{String,Any}("Name" => Name, "OrganizationId" => OrganizationId, "Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "CreateResource", - Dict{String,Any}( - "Name" => Name, "OrganizationId" => OrganizationId, "Type" => Type - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_resource( Name, OrganizationId, @@ -633,18 +608,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Role"`: The role of the new user. You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected. """ -function create_user( +create_user( DisplayName, Name, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "CreateUser", + Dict{String,Any}( + "DisplayName" => DisplayName, "Name" => Name, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "CreateUser", - Dict{String,Any}( - "DisplayName" => DisplayName, "Name" => Name, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user( DisplayName, Name, @@ -683,16 +656,14 @@ back an HTTP 200 response with an empty HTTP body. - `organization_id`: The identifier for the organization. """ -function delete_access_control_rule( +delete_access_control_rule( Name, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteAccessControlRule", + Dict{String,Any}("Name" => Name, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteAccessControlRule", - Dict{String,Any}("Name" => Name, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_access_control_rule( Name, OrganizationId, @@ -727,18 +698,16 @@ Remove one or more specified aliases from a set of aliases for a given user. - `organization_id`: The identifier for the organization under which the user exists. """ -function delete_alias( +delete_alias( Alias, EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteAlias", + Dict{String,Any}( + "Alias" => Alias, "EntityId" => EntityId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteAlias", - Dict{String,Any}( - "Alias" => Alias, "EntityId" => EntityId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_alias( Alias, EntityId, @@ -776,16 +745,14 @@ Deletes the AvailabilityConfiguration for the given WorkMail organization and do be deleted. """ -function delete_availability_configuration( +delete_availability_configuration( DomainName, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteAvailabilityConfiguration", + Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteAvailabilityConfiguration", - Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_availability_configuration( DomainName, OrganizationId, @@ -819,16 +786,14 @@ Deletes the email monitoring configuration for a specified organization. configuration is deleted. """ -function delete_email_monitoring_configuration( +delete_email_monitoring_configuration( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteEmailMonitoringConfiguration", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteEmailMonitoringConfiguration", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_email_monitoring_configuration( OrganizationId, params::AbstractDict{String}; @@ -858,16 +823,13 @@ Deletes a group from WorkMail. - `organization_id`: The organization that contains the group. """ -function delete_group( - GroupId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +delete_group(GroupId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "DeleteGroup", Dict{String,Any}("GroupId" => GroupId, "OrganizationId" => OrganizationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_group( GroupId, OrganizationId, @@ -899,18 +861,16 @@ Deletes an impersonation role for the given WorkMail organization. - `organization_id`: The WorkMail organization from which to delete the impersonation role. """ -function delete_impersonation_role( +delete_impersonation_role( ImpersonationRoleId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteImpersonationRole", + Dict{String,Any}( + "ImpersonationRoleId" => ImpersonationRoleId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteImpersonationRole", - Dict{String,Any}( - "ImpersonationRoleId" => ImpersonationRoleId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_impersonation_role( ImpersonationRoleId, OrganizationId, @@ -955,20 +915,18 @@ Deletes permissions granted to a member (user or group). group) exists. """ -function delete_mailbox_permissions( +delete_mailbox_permissions( EntityId, GranteeId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteMailboxPermissions", + Dict{String,Any}( + "EntityId" => EntityId, + "GranteeId" => GranteeId, + "OrganizationId" => OrganizationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteMailboxPermissions", - Dict{String,Any}( - "EntityId" => EntityId, - "GranteeId" => GranteeId, - "OrganizationId" => OrganizationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_mailbox_permissions( EntityId, GranteeId, @@ -1013,18 +971,16 @@ those cases, the service sends back an HTTP 200 response with an empty HTTP body name: user """ -function delete_mobile_device_access_override( +delete_mobile_device_access_override( DeviceId, OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteMobileDeviceAccessOverride", + Dict{String,Any}( + "DeviceId" => DeviceId, "OrganizationId" => OrganizationId, "UserId" => UserId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteMobileDeviceAccessOverride", - Dict{String,Any}( - "DeviceId" => DeviceId, "OrganizationId" => OrganizationId, "UserId" => UserId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_mobile_device_access_override( DeviceId, OrganizationId, @@ -1063,21 +1019,19 @@ service sends back an HTTP 200 response with an empty HTTP body. - `organization_id`: The WorkMail organization under which the rule will be deleted. """ -function delete_mobile_device_access_rule( +delete_mobile_device_access_rule( MobileDeviceAccessRuleId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "DeleteMobileDeviceAccessRule", + Dict{String,Any}( + "MobileDeviceAccessRuleId" => MobileDeviceAccessRuleId, + "OrganizationId" => OrganizationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteMobileDeviceAccessRule", - Dict{String,Any}( - "MobileDeviceAccessRuleId" => MobileDeviceAccessRuleId, - "OrganizationId" => OrganizationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_mobile_device_access_rule( MobileDeviceAccessRuleId, OrganizationId, @@ -1120,20 +1074,18 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ForceDelete"`: Deletes a WorkMail organization even if the organization has enabled users. """ -function delete_organization( +delete_organization( DeleteDirectory, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteOrganization", + Dict{String,Any}( + "DeleteDirectory" => DeleteDirectory, + "OrganizationId" => OrganizationId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteOrganization", - Dict{String,Any}( - "DeleteDirectory" => DeleteDirectory, - "OrganizationId" => OrganizationId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_organization( DeleteDirectory, OrganizationId, @@ -1172,16 +1124,14 @@ Deletes the specified resource. r-0123456789a0123456789b0123456789 Resource name: resource """ -function delete_resource( +delete_resource( OrganizationId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteResource", + Dict{String,Any}("OrganizationId" => OrganizationId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteResource", - Dict{String,Any}("OrganizationId" => OrganizationId, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_resource( OrganizationId, ResourceId, @@ -1215,16 +1165,14 @@ Deletes the specified retention policy from the specified organization. - `organization_id`: The organization ID. """ -function delete_retention_policy( +delete_retention_policy( Id, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeleteRetentionPolicy", + Dict{String,Any}("Id" => Id, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeleteRetentionPolicy", - Dict{String,Any}("Id" => Id, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_retention_policy( Id, OrganizationId, @@ -1262,16 +1210,13 @@ days before they are permanently removed. name: user """ -function delete_user( - OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +delete_user(OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "DeleteUser", Dict{String,Any}("OrganizationId" => OrganizationId, "UserId" => UserId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user( OrganizationId, UserId, @@ -1310,16 +1255,14 @@ are permanently removed. The functionality in the console is Disable. exists. """ -function deregister_from_work_mail( +deregister_from_work_mail( EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeregisterFromWorkMail", + Dict{String,Any}("EntityId" => EntityId, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeregisterFromWorkMail", - Dict{String,Any}("EntityId" => EntityId, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_from_work_mail( EntityId, OrganizationId, @@ -1356,16 +1299,14 @@ the domain. - `organization_id`: The WorkMail organization for which the domain will be deregistered. """ -function deregister_mail_domain( +deregister_mail_domain( DomainName, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DeregisterMailDomain", + Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DeregisterMailDomain", - Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_mail_domain( DomainName, OrganizationId, @@ -1399,16 +1340,14 @@ Describes the current email monitoring configuration for a specified organizatio configuration is described. """ -function describe_email_monitoring_configuration( +describe_email_monitoring_configuration( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DescribeEmailMonitoringConfiguration", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DescribeEmailMonitoringConfiguration", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_email_monitoring_configuration( OrganizationId, params::AbstractDict{String}; @@ -1435,16 +1374,13 @@ Returns basic details about an entity in WorkMail. - `organization_id`: The identifier for the organization under which the entity exists. """ -function describe_entity( - Email, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +describe_entity(Email, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "DescribeEntity", Dict{String,Any}("Email" => Email, "OrganizationId" => OrganizationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_entity( Email, OrganizationId, @@ -1479,16 +1415,14 @@ Returns the data available for the group. - `organization_id`: The identifier for the organization under which the group exists. """ -function describe_group( +describe_group( GroupId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DescribeGroup", + Dict{String,Any}("GroupId" => GroupId, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DescribeGroup", - Dict{String,Any}("GroupId" => GroupId, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_group( GroupId, OrganizationId, @@ -1519,16 +1453,14 @@ Lists the settings in a DMARC policy for a specified organization. - `organization_id`: Lists the ID of the given organization. """ -function describe_inbound_dmarc_settings( +describe_inbound_dmarc_settings( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DescribeInboundDmarcSettings", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DescribeInboundDmarcSettings", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_inbound_dmarc_settings( OrganizationId, params::AbstractDict{String}; @@ -1555,16 +1487,14 @@ Describes the current status of a mailbox export job. - `organization_id`: The organization ID. """ -function describe_mailbox_export_job( +describe_mailbox_export_job( JobId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DescribeMailboxExportJob", + Dict{String,Any}("JobId" => JobId, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DescribeMailboxExportJob", - Dict{String,Any}("JobId" => JobId, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_mailbox_export_job( JobId, OrganizationId, @@ -1595,16 +1525,13 @@ Provides more information regarding a given organization based on its identifier - `organization_id`: The identifier for the organization to be described. """ -function describe_organization( - OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +describe_organization(OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "DescribeOrganization", Dict{String,Any}("OrganizationId" => OrganizationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_organization( OrganizationId, params::AbstractDict{String}; @@ -1635,16 +1562,14 @@ Returns the data available for the resource. Resource name: resource """ -function describe_resource( +describe_resource( OrganizationId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DescribeResource", + Dict{String,Any}("OrganizationId" => OrganizationId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DescribeResource", - Dict{String,Any}("OrganizationId" => OrganizationId, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_resource( OrganizationId, ResourceId, @@ -1681,16 +1606,13 @@ Provides information regarding the user. Email address: user@domain.tld User name: user """ -function describe_user( - OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +describe_user(OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "DescribeUser", Dict{String,Any}("OrganizationId" => OrganizationId, "UserId" => UserId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_user( OrganizationId, UserId, @@ -1730,20 +1652,18 @@ Removes a member from the resource's set of delegates. address: resource@domain.tld Resource name: resource """ -function disassociate_delegate_from_resource( +disassociate_delegate_from_resource( EntityId, OrganizationId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DisassociateDelegateFromResource", + Dict{String,Any}( + "EntityId" => EntityId, + "OrganizationId" => OrganizationId, + "ResourceId" => ResourceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DisassociateDelegateFromResource", - Dict{String,Any}( - "EntityId" => EntityId, - "OrganizationId" => OrganizationId, - "ResourceId" => ResourceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_delegate_from_resource( EntityId, OrganizationId, @@ -1788,18 +1708,16 @@ Removes a member from a group. - `organization_id`: The identifier for the organization under which the group exists. """ -function disassociate_member_from_group( +disassociate_member_from_group( GroupId, MemberId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "DisassociateMemberFromGroup", + Dict{String,Any}( + "GroupId" => GroupId, "MemberId" => MemberId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "DisassociateMemberFromGroup", - Dict{String,Any}( - "GroupId" => GroupId, "MemberId" => MemberId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_member_from_group( GroupId, MemberId, @@ -1845,18 +1763,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ImpersonationRoleId"`: The impersonation role ID. - `"UserId"`: The user ID. """ -function get_access_control_effect( +get_access_control_effect( Action, IpAddress, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "GetAccessControlEffect", + Dict{String,Any}( + "Action" => Action, "IpAddress" => IpAddress, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "GetAccessControlEffect", - Dict{String,Any}( - "Action" => Action, "IpAddress" => IpAddress, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_access_control_effect( Action, IpAddress, @@ -1892,16 +1808,14 @@ Gets the default retention policy details for the specified organization. - `organization_id`: The organization ID. """ -function get_default_retention_policy( +get_default_retention_policy( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "GetDefaultRetentionPolicy", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "GetDefaultRetentionPolicy", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_default_retention_policy( OrganizationId, params::AbstractDict{String}; @@ -1929,18 +1843,16 @@ Gets the impersonation role details for the given WorkMail organization. role. """ -function get_impersonation_role( +get_impersonation_role( ImpersonationRoleId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "GetImpersonationRole", + Dict{String,Any}( + "ImpersonationRoleId" => ImpersonationRoleId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "GetImpersonationRole", - Dict{String,Any}( - "ImpersonationRoleId" => ImpersonationRoleId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_impersonation_role( ImpersonationRoleId, OrganizationId, @@ -1979,23 +1891,21 @@ Tests whether the given impersonation role can impersonate a target user. name: user """ -function get_impersonation_role_effect( +get_impersonation_role_effect( ImpersonationRoleId, OrganizationId, TargetUser; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "GetImpersonationRoleEffect", + Dict{String,Any}( + "ImpersonationRoleId" => ImpersonationRoleId, + "OrganizationId" => OrganizationId, + "TargetUser" => TargetUser, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "GetImpersonationRoleEffect", - Dict{String,Any}( - "ImpersonationRoleId" => ImpersonationRoleId, - "OrganizationId" => OrganizationId, - "TargetUser" => TargetUser, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_impersonation_role_effect( ImpersonationRoleId, OrganizationId, @@ -2033,16 +1943,14 @@ with recommended security. - `organization_id`: The WorkMail organization for which the domain is retrieved. """ -function get_mail_domain( +get_mail_domain( DomainName, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "GetMailDomain", + Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "GetMailDomain", - Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_mail_domain( DomainName, OrganizationId, @@ -2081,16 +1989,14 @@ Requests a user's mailbox details for a specified organization and user. user """ -function get_mailbox_details( +get_mailbox_details( OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "GetMailboxDetails", + Dict{String,Any}("OrganizationId" => OrganizationId, "UserId" => UserId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "GetMailboxDetails", - Dict{String,Any}("OrganizationId" => OrganizationId, "UserId" => UserId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_mailbox_details( OrganizationId, UserId, @@ -2129,16 +2035,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeviceType"`: Device type the simulated user will report. - `"DeviceUserAgent"`: Device user agent the simulated user will report. """ -function get_mobile_device_access_effect( +get_mobile_device_access_effect( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "GetMobileDeviceAccessEffect", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "GetMobileDeviceAccessEffect", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_mobile_device_access_effect( OrganizationId, params::AbstractDict{String}; @@ -2171,18 +2075,16 @@ device. name: user """ -function get_mobile_device_access_override( +get_mobile_device_access_override( DeviceId, OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "GetMobileDeviceAccessOverride", + Dict{String,Any}( + "DeviceId" => DeviceId, "OrganizationId" => OrganizationId, "UserId" => UserId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "GetMobileDeviceAccessOverride", - Dict{String,Any}( - "DeviceId" => DeviceId, "OrganizationId" => OrganizationId, "UserId" => UserId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_mobile_device_access_override( DeviceId, OrganizationId, @@ -2218,16 +2120,14 @@ Lists the access control rules for the specified organization. - `organization_id`: The identifier for the organization. """ -function list_access_control_rules( +list_access_control_rules( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListAccessControlRules", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListAccessControlRules", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_access_control_rules( OrganizationId, params::AbstractDict{String}; @@ -2259,16 +2159,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not contain any tokens. """ -function list_aliases( - EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +list_aliases(EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "ListAliases", Dict{String,Any}("EntityId" => EntityId, "OrganizationId" => OrganizationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_aliases( EntityId, OrganizationId, @@ -2307,16 +2204,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not require a token. """ -function list_availability_configurations( +list_availability_configurations( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListAvailabilityConfigurations", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListAvailabilityConfigurations", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_availability_configurations( OrganizationId, params::AbstractDict{String}; @@ -2352,16 +2247,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not contain any tokens. """ -function list_group_members( - GroupId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( - "ListGroupMembers", - Dict{String,Any}("GroupId" => GroupId, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_group_members( + GroupId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListGroupMembers", + Dict{String,Any}("GroupId" => GroupId, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_group_members( GroupId, OrganizationId, @@ -2399,14 +2292,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not contain any tokens. """ -function list_groups(OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) - return workmail( - "ListGroups", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_groups(OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = workmail( + "ListGroups", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_groups( OrganizationId, params::AbstractDict{String}; @@ -2442,16 +2333,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not contain any tokens. """ -function list_groups_for_entity( +list_groups_for_entity( EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListGroupsForEntity", + Dict{String,Any}("EntityId" => EntityId, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListGroupsForEntity", - Dict{String,Any}("EntityId" => EntityId, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_groups_for_entity( EntityId, OrganizationId, @@ -2490,16 +2379,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token used to retrieve the next page of results. The first call doesn't require a token. """ -function list_impersonation_roles( +list_impersonation_roles( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListImpersonationRoles", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListImpersonationRoles", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_impersonation_roles( OrganizationId, params::AbstractDict{String}; @@ -2530,16 +2417,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not require a token. """ -function list_mail_domains( - OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +list_mail_domains(OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "ListMailDomains", Dict{String,Any}("OrganizationId" => OrganizationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_mail_domains( OrganizationId, params::AbstractDict{String}; @@ -2570,16 +2454,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"MaxResults"`: The maximum number of results to return in a single call. - `"NextToken"`: The token to use to retrieve the next page of results. """ -function list_mailbox_export_jobs( +list_mailbox_export_jobs( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListMailboxExportJobs", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListMailboxExportJobs", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_mailbox_export_jobs( OrganizationId, params::AbstractDict{String}; @@ -2616,16 +2498,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not contain any tokens. """ -function list_mailbox_permissions( +list_mailbox_permissions( EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListMailboxPermissions", + Dict{String,Any}("EntityId" => EntityId, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListMailboxPermissions", - Dict{String,Any}("EntityId" => EntityId, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_mailbox_permissions( EntityId, OrganizationId, @@ -2670,16 +2550,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234 Email address: user@domain.tld User name: user """ -function list_mobile_device_access_overrides( +list_mobile_device_access_overrides( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListMobileDeviceAccessOverrides", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListMobileDeviceAccessOverrides", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_mobile_device_access_overrides( OrganizationId, params::AbstractDict{String}; @@ -2705,16 +2583,14 @@ Lists the mobile device access rules for the specified WorkMail organization. - `organization_id`: The WorkMail organization for which to list the rules. """ -function list_mobile_device_access_rules( +list_mobile_device_access_rules( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListMobileDeviceAccessRules", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListMobileDeviceAccessRules", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_mobile_device_access_rules( OrganizationId, params::AbstractDict{String}; @@ -2742,11 +2618,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not contain any tokens. """ -function list_organizations(; aws_config::AbstractAWSConfig=current_aws_config()) - return workmail( - "ListOrganizations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_organizations(; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail("ListOrganizations"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_organizations( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2776,16 +2649,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token used to paginate through the delegates associated with a resource. """ -function list_resource_delegates( +list_resource_delegates( OrganizationId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ListResourceDelegates", + Dict{String,Any}("OrganizationId" => OrganizationId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ListResourceDelegates", - Dict{String,Any}("OrganizationId" => OrganizationId, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_resource_delegates( OrganizationId, ResourceId, @@ -2825,14 +2696,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not contain any tokens. """ -function list_resources(OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) - return workmail( +list_resources(OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "ListResources", Dict{String,Any}("OrganizationId" => OrganizationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_resources( OrganizationId, params::AbstractDict{String}; @@ -2858,16 +2728,13 @@ Lists the tags applied to an WorkMail organization resource. - `resource_arn`: The resource ARN. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -2900,14 +2767,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. The first call does not contain any tokens. """ -function list_users(OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) - return workmail( - "ListUsers", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_users(OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = workmail( + "ListUsers", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_users( OrganizationId, params::AbstractDict{String}; @@ -2951,25 +2816,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NotUserIds"`: User IDs to exclude from the rule. - `"UserIds"`: User IDs to include in the rule. """ -function put_access_control_rule( +put_access_control_rule( Description, Effect, Name, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "PutAccessControlRule", + Dict{String,Any}( + "Description" => Description, + "Effect" => Effect, + "Name" => Name, + "OrganizationId" => OrganizationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "PutAccessControlRule", - Dict{String,Any}( - "Description" => Description, - "Effect" => Effect, - "Name" => Name, - "OrganizationId" => OrganizationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_access_control_rule( Description, Effect, @@ -3012,20 +2875,18 @@ Creates or updates the email monitoring configuration for a specified organizati monitoring configuration. """ -function put_email_monitoring_configuration( +put_email_monitoring_configuration( LogGroupArn, OrganizationId, RoleArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "PutEmailMonitoringConfiguration", + Dict{String,Any}( + "LogGroupArn" => LogGroupArn, + "OrganizationId" => OrganizationId, + "RoleArn" => RoleArn, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "PutEmailMonitoringConfiguration", - Dict{String,Any}( - "LogGroupArn" => LogGroupArn, - "OrganizationId" => OrganizationId, - "RoleArn" => RoleArn, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_email_monitoring_configuration( LogGroupArn, OrganizationId, @@ -3062,16 +2923,14 @@ Enables or disables a DMARC policy for a given organization. - `organization_id`: The ID of the organization that you are applying the DMARC policy to. """ -function put_inbound_dmarc_settings( +put_inbound_dmarc_settings( Enforced, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "PutInboundDmarcSettings", + Dict{String,Any}("Enforced" => Enforced, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "PutInboundDmarcSettings", - Dict{String,Any}("Enforced" => Enforced, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_inbound_dmarc_settings( Enforced, OrganizationId, @@ -3121,25 +2980,23 @@ Sets permissions for a user, group, or resource. This replaces any pre-existing the mailbox. """ -function put_mailbox_permissions( +put_mailbox_permissions( EntityId, GranteeId, OrganizationId, PermissionValues; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "PutMailboxPermissions", + Dict{String,Any}( + "EntityId" => EntityId, + "GranteeId" => GranteeId, + "OrganizationId" => OrganizationId, + "PermissionValues" => PermissionValues, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "PutMailboxPermissions", - Dict{String,Any}( - "EntityId" => EntityId, - "GranteeId" => GranteeId, - "OrganizationId" => OrganizationId, - "PermissionValues" => PermissionValues, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_mailbox_permissions( EntityId, GranteeId, @@ -3188,25 +3045,23 @@ user, and device. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: A description of the override. """ -function put_mobile_device_access_override( +put_mobile_device_access_override( DeviceId, Effect, OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "PutMobileDeviceAccessOverride", + Dict{String,Any}( + "DeviceId" => DeviceId, + "Effect" => Effect, + "OrganizationId" => OrganizationId, + "UserId" => UserId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "PutMobileDeviceAccessOverride", - Dict{String,Any}( - "DeviceId" => DeviceId, - "Effect" => Effect, - "OrganizationId" => OrganizationId, - "UserId" => UserId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_mobile_device_access_override( DeviceId, Effect, @@ -3250,23 +3105,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: The retention policy description. - `"Id"`: The retention policy ID. """ -function put_retention_policy( +put_retention_policy( FolderConfigurations, Name, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "PutRetentionPolicy", + Dict{String,Any}( + "FolderConfigurations" => FolderConfigurations, + "Name" => Name, + "OrganizationId" => OrganizationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "PutRetentionPolicy", - Dict{String,Any}( - "FolderConfigurations" => FolderConfigurations, - "Name" => Name, - "OrganizationId" => OrganizationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_retention_policy( FolderConfigurations, Name, @@ -3309,20 +3162,18 @@ emails. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: Idempotency token used when retrying requests. """ -function register_mail_domain( +register_mail_domain( DomainName, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "RegisterMailDomain", + Dict{String,Any}( + "DomainName" => DomainName, + "OrganizationId" => OrganizationId, + "ClientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "RegisterMailDomain", - Dict{String,Any}( - "DomainName" => DomainName, - "OrganizationId" => OrganizationId, - "ClientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_mail_domain( DomainName, OrganizationId, @@ -3370,18 +3221,16 @@ information, see DeregisterFromWorkMail. resource exists. """ -function register_to_work_mail( +register_to_work_mail( Email, EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "RegisterToWorkMail", + Dict{String,Any}( + "Email" => Email, "EntityId" => EntityId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "RegisterToWorkMail", - Dict{String,Any}( - "Email" => Email, "EntityId" => EntityId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function register_to_work_mail( Email, EntityId, @@ -3420,18 +3269,16 @@ Allows the administrator to reset the password for a user. - `user_id`: The identifier of the user for whom the password is reset. """ -function reset_password( +reset_password( OrganizationId, Password, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "ResetPassword", + Dict{String,Any}( + "OrganizationId" => OrganizationId, "Password" => Password, "UserId" => UserId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "ResetPassword", - Dict{String,Any}( - "OrganizationId" => OrganizationId, "Password" => Password, "UserId" => UserId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reset_password( OrganizationId, Password, @@ -3485,7 +3332,7 @@ For more information, see Exporting mailbox content in the WorkMail Administrato Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The mailbox export job description. """ -function start_mailbox_export_job( +start_mailbox_export_job( ClientToken, EntityId, KmsKeyArn, @@ -3494,22 +3341,20 @@ function start_mailbox_export_job( S3BucketName, S3Prefix; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "StartMailboxExportJob", + Dict{String,Any}( + "ClientToken" => ClientToken, + "EntityId" => EntityId, + "KmsKeyArn" => KmsKeyArn, + "OrganizationId" => OrganizationId, + "RoleArn" => RoleArn, + "S3BucketName" => S3BucketName, + "S3Prefix" => S3Prefix, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "StartMailboxExportJob", - Dict{String,Any}( - "ClientToken" => ClientToken, - "EntityId" => EntityId, - "KmsKeyArn" => KmsKeyArn, - "OrganizationId" => OrganizationId, - "RoleArn" => RoleArn, - "S3BucketName" => S3BucketName, - "S3Prefix" => S3Prefix, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_mailbox_export_job( ClientToken, EntityId, @@ -3554,14 +3399,13 @@ Applies the specified tags to the specified WorkMailorganization resource. - `tags`: The tag key-value pairs. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return workmail( +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "TagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( ResourceARN, Tags, @@ -3605,16 +3449,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"EwsProvider"`: - `"LambdaProvider"`: """ -function test_availability_configuration( +test_availability_configuration( OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "TestAvailabilityConfiguration", + Dict{String,Any}("OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "TestAvailabilityConfiguration", - Dict{String,Any}("OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function test_availability_configuration( OrganizationId, params::AbstractDict{String}; @@ -3641,16 +3483,13 @@ Untags the specified tags from the specified WorkMail organization resource. - `tag_keys`: The tag keys. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -3692,16 +3531,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys exactly one provider definition, either EwsProvider or LambdaProvider. The previously stored provider will be overridden by the one provided. """ -function update_availability_configuration( +update_availability_configuration( DomainName, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "UpdateAvailabilityConfiguration", + Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "UpdateAvailabilityConfiguration", - Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_availability_configuration( DomainName, OrganizationId, @@ -3737,16 +3574,14 @@ have one default domain. - `organization_id`: The WorkMail organization for which to list domains. """ -function update_default_mail_domain( +update_default_mail_domain( DomainName, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "UpdateDefaultMailDomain", + Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "UpdateDefaultMailDomain", - Dict{String,Any}("DomainName" => DomainName, "OrganizationId" => OrganizationId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_default_mail_domain( DomainName, OrganizationId, @@ -3787,16 +3622,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"HiddenFromGlobalAddressList"`: If enabled, the group is hidden from the global address list. """ -function update_group( - GroupId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +update_group(GroupId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "UpdateGroup", Dict{String,Any}("GroupId" => GroupId, "OrganizationId" => OrganizationId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_group( GroupId, OrganizationId, @@ -3835,27 +3667,25 @@ Updates an impersonation role for the given WorkMail organization. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Description"`: The updated impersonation role description. """ -function update_impersonation_role( +update_impersonation_role( ImpersonationRoleId, Name, OrganizationId, Rules, Type; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "UpdateImpersonationRole", + Dict{String,Any}( + "ImpersonationRoleId" => ImpersonationRoleId, + "Name" => Name, + "OrganizationId" => OrganizationId, + "Rules" => Rules, + "Type" => Type, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "UpdateImpersonationRole", - Dict{String,Any}( - "ImpersonationRoleId" => ImpersonationRoleId, - "Name" => Name, - "OrganizationId" => OrganizationId, - "Rules" => Rules, - "Type" => Type, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_impersonation_role( ImpersonationRoleId, Name, @@ -3902,20 +3732,18 @@ Updates a user's current mailbox quota for a specified organization and user. user """ -function update_mailbox_quota( +update_mailbox_quota( MailboxQuota, OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "UpdateMailboxQuota", + Dict{String,Any}( + "MailboxQuota" => MailboxQuota, + "OrganizationId" => OrganizationId, + "UserId" => UserId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "UpdateMailboxQuota", - Dict{String,Any}( - "MailboxQuota" => MailboxQuota, - "OrganizationId" => OrganizationId, - "UserId" => UserId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_mailbox_quota( MailboxQuota, OrganizationId, @@ -3969,25 +3797,23 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NotDeviceUserAgents"`: User agents that the updated rule will not match. All other user agents will match. """ -function update_mobile_device_access_rule( +update_mobile_device_access_rule( Effect, MobileDeviceAccessRuleId, Name, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config(), +) = workmail( + "UpdateMobileDeviceAccessRule", + Dict{String,Any}( + "Effect" => Effect, + "MobileDeviceAccessRuleId" => MobileDeviceAccessRuleId, + "Name" => Name, + "OrganizationId" => OrganizationId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "UpdateMobileDeviceAccessRule", - Dict{String,Any}( - "Effect" => Effect, - "MobileDeviceAccessRuleId" => MobileDeviceAccessRuleId, - "Name" => Name, - "OrganizationId" => OrganizationId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_mobile_device_access_rule( Effect, MobileDeviceAccessRuleId, @@ -4033,18 +3859,16 @@ and the email provided in the input is promoted as the primary. - `organization_id`: The organization that contains the user, group, or resource to update. """ -function update_primary_email_address( +update_primary_email_address( Email, EntityId, OrganizationId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "UpdatePrimaryEmailAddress", + Dict{String,Any}( + "Email" => Email, "EntityId" => EntityId, "OrganizationId" => OrganizationId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "UpdatePrimaryEmailAddress", - Dict{String,Any}( - "Email" => Email, "EntityId" => EntityId, "OrganizationId" => OrganizationId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_primary_email_address( Email, EntityId, @@ -4095,16 +3919,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name of the resource to be updated. - `"Type"`: Updates the resource type. """ -function update_resource( +update_resource( OrganizationId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmail( + "UpdateResource", + Dict{String,Any}("OrganizationId" => OrganizationId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmail( - "UpdateResource", - Dict{String,Any}("OrganizationId" => OrganizationId, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_resource( OrganizationId, ResourceId, @@ -4161,16 +3983,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Telephone"`: Updates the user's contact details. - `"ZipCode"`: Updates the user's zipcode. """ -function update_user( - OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmail( +update_user(OrganizationId, UserId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmail( "UpdateUser", Dict{String,Any}("OrganizationId" => OrganizationId, "UserId" => UserId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_user( OrganizationId, UserId, diff --git a/src/services/workmailmessageflow.jl b/src/services/workmailmessageflow.jl index 7e449c9a3..06ec9f101 100644 --- a/src/services/workmailmessageflow.jl +++ b/src/services/workmailmessageflow.jl @@ -14,16 +14,13 @@ Retrieves the raw content of an in-transit email message, in MIME format. - `message_id`: The identifier of the email message to retrieve. """ -function get_raw_message_content( - messageId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workmailmessageflow( +get_raw_message_content(messageId; aws_config::AbstractAWSConfig=current_aws_config()) = + workmailmessageflow( "GET", "/messages/$(messageId)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_raw_message_content( messageId, params::AbstractDict{String}; @@ -55,17 +52,15 @@ returns an updated message. - `message_id`: The identifier of the email message being updated. """ -function put_raw_message_content( +put_raw_message_content( content, messageId; aws_config::AbstractAWSConfig=current_aws_config() +) = workmailmessageflow( + "POST", + "/messages/$(messageId)", + Dict{String,Any}("content" => content); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workmailmessageflow( - "POST", - "/messages/$(messageId)", - Dict{String,Any}("content" => content); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_raw_message_content( content, messageId, diff --git a/src/services/workspaces.jl b/src/services/workspaces.jl index c47388d0f..5728eab0b 100644 --- a/src/services/workspaces.jl +++ b/src/services/workspaces.jl @@ -19,16 +19,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation. """ -function accept_account_link_invitation( - LinkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +accept_account_link_invitation(LinkId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "AcceptAccountLinkInvitation", Dict{String,Any}("LinkId" => LinkId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function accept_account_link_invitation( LinkId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -54,16 +51,14 @@ that the current state of the connection alias is CREATED. - `resource_id`: The identifier of the directory to associate the connection alias with. """ -function associate_connection_alias( +associate_connection_alias( AliasId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "AssociateConnectionAlias", + Dict{String,Any}("AliasId" => AliasId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "AssociateConnectionAlias", - Dict{String,Any}("AliasId" => AliasId, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_connection_alias( AliasId, ResourceId, @@ -95,16 +90,14 @@ Associates the specified IP access control group with the specified directory. - `group_ids`: The identifiers of one or more IP access control groups. """ -function associate_ip_groups( +associate_ip_groups( DirectoryId, GroupIds; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "AssociateIpGroups", + Dict{String,Any}("DirectoryId" => DirectoryId, "GroupIds" => GroupIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "AssociateIpGroups", - Dict{String,Any}("DirectoryId" => DirectoryId, "GroupIds" => GroupIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_ip_groups( DirectoryId, GroupIds, @@ -136,16 +129,14 @@ Associates the specified application to the specified WorkSpace. - `workspace_id`: The identifier of the WorkSpace. """ -function associate_workspace_application( +associate_workspace_application( ApplicationId, WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "AssociateWorkspaceApplication", + Dict{String,Any}("ApplicationId" => ApplicationId, "WorkspaceId" => WorkspaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "AssociateWorkspaceApplication", - Dict{String,Any}("ApplicationId" => ApplicationId, "WorkspaceId" => WorkspaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_workspace_application( ApplicationId, WorkspaceId, @@ -180,16 +171,13 @@ permission to access their WorkSpaces from the CIDR address ranges specified in - `user_rules`: The rules to add to the group. """ -function authorize_ip_rules( - GroupId, UserRules; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +authorize_ip_rules(GroupId, UserRules; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "AuthorizeIpRules", Dict{String,Any}("GroupId" => GroupId, "UserRules" => UserRules); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function authorize_ip_rules( GroupId, UserRules, @@ -233,18 +221,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Description"`: A description of the image. - `"Tags"`: The tags for the image. """ -function copy_workspace_image( +copy_workspace_image( Name, SourceImageId, SourceRegion; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "CopyWorkspaceImage", + Dict{String,Any}( + "Name" => Name, "SourceImageId" => SourceImageId, "SourceRegion" => SourceRegion + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "CopyWorkspaceImage", - Dict{String,Any}( - "Name" => Name, "SourceImageId" => SourceImageId, "SourceRegion" => SourceRegion - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function copy_workspace_image( Name, SourceImageId, @@ -284,16 +270,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation. """ -function create_account_link_invitation( +create_account_link_invitation( TargetAccountId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "CreateAccountLinkInvitation", + Dict{String,Any}("TargetAccountId" => TargetAccountId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "CreateAccountLinkInvitation", - Dict{String,Any}("TargetAccountId" => TargetAccountId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_account_link_invitation( TargetAccountId, params::AbstractDict{String}; @@ -325,16 +309,14 @@ to seamlessly connect to Amazon Connect. - `url`: The endpoint URL of the Amazon Connect client add-in. """ -function create_connect_client_add_in( +create_connect_client_add_in( Name, ResourceId, URL; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "CreateConnectClientAddIn", + Dict{String,Any}("Name" => Name, "ResourceId" => ResourceId, "URL" => URL); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "CreateConnectClientAddIn", - Dict{String,Any}("Name" => Name, "ResourceId" => ResourceId, "URL" => URL); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connect_client_add_in( Name, ResourceId, @@ -374,16 +356,14 @@ information, see Cross-Region Redirection for Amazon WorkSpaces. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"Tags"`: The tags to associate with the connection alias. """ -function create_connection_alias( +create_connection_alias( ConnectionString; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "CreateConnectionAlias", + Dict{String,Any}("ConnectionString" => ConnectionString); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "CreateConnectionAlias", - Dict{String,Any}("ConnectionString" => ConnectionString); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_connection_alias( ConnectionString, params::AbstractDict{String}; @@ -424,14 +404,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Tags"`: The tags. Each WorkSpaces resource can have a maximum of 50 tags. - `"UserRules"`: The rules to add to the group. """ -function create_ip_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "CreateIpGroup", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_ip_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces( + "CreateIpGroup", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_ip_group( GroupName, params::AbstractDict{String}; @@ -458,18 +436,16 @@ Creates a standby WorkSpace in a secondary Region. - `standby_workspaces`: Information about the standby WorkSpace to be created. """ -function create_standby_workspaces( +create_standby_workspaces( PrimaryRegion, StandbyWorkspaces; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "CreateStandbyWorkspaces", + Dict{String,Any}( + "PrimaryRegion" => PrimaryRegion, "StandbyWorkspaces" => StandbyWorkspaces + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "CreateStandbyWorkspaces", - Dict{String,Any}( - "PrimaryRegion" => PrimaryRegion, "StandbyWorkspaces" => StandbyWorkspaces - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_standby_workspaces( PrimaryRegion, StandbyWorkspaces, @@ -506,14 +482,13 @@ Creates the specified tags for the specified WorkSpaces resource. - `tags`: The tags. Each WorkSpaces resource can have a maximum of 50 tags. """ -function create_tags(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( +create_tags(ResourceId, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "CreateTags", Dict{String,Any}("ResourceId" => ResourceId, "Tags" => Tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_tags( ResourceId, Tags, @@ -556,18 +531,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys at the same time when you're creating the updated image, you must create an IAM policy that grants your IAM user permissions to use workspaces:CreateTags. """ -function create_updated_workspace_image( +create_updated_workspace_image( Description, Name, SourceImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "CreateUpdatedWorkspaceImage", + Dict{String,Any}( + "Description" => Description, "Name" => Name, "SourceImageId" => SourceImageId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "CreateUpdatedWorkspaceImage", - Dict{String,Any}( - "Description" => Description, "Name" => Name, "SourceImageId" => SourceImageId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_updated_workspace_image( Description, Name, @@ -614,27 +587,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys creating the bundle, you must create an IAM policy that grants your IAM user permissions to use workspaces:CreateTags. """ -function create_workspace_bundle( +create_workspace_bundle( BundleDescription, BundleName, ComputeType, ImageId, UserStorage; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces( + "CreateWorkspaceBundle", + Dict{String,Any}( + "BundleDescription" => BundleDescription, + "BundleName" => BundleName, + "ComputeType" => ComputeType, + "ImageId" => ImageId, + "UserStorage" => UserStorage, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "CreateWorkspaceBundle", - Dict{String,Any}( - "BundleDescription" => BundleDescription, - "BundleName" => BundleName, - "ComputeType" => ComputeType, - "ImageId" => ImageId, - "UserStorage" => UserStorage, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workspace_bundle( BundleDescription, BundleName, @@ -681,18 +652,16 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys you're creating the image, you must create an IAM policy that grants your IAM user permission to use workspaces:CreateTags. """ -function create_workspace_image( +create_workspace_image( Description, Name, WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "CreateWorkspaceImage", + Dict{String,Any}( + "Description" => Description, "Name" => Name, "WorkspaceId" => WorkspaceId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "CreateWorkspaceImage", - Dict{String,Any}( - "Description" => Description, "Name" => Name, "WorkspaceId" => WorkspaceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_workspace_image( Description, Name, @@ -727,20 +696,21 @@ WorkSpaces are created. The MANUAL running mode value is only supported by Am WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. You don't need to specify the PCOIP protocol for Linux bundles because WSP is the default protocol for those bundles. User-decoupled -WorkSpaces are only supported by Amazon WorkSpaces Core. +WorkSpaces are only supported by Amazon WorkSpaces Core. Review your running mode to +ensure you are using one that is optimal for your needs and budget. For more information on +switching running modes, see Can I switch between hourly and monthly billing? # Arguments - `workspaces`: The WorkSpaces to create. You can specify up to 25 WorkSpaces. """ -function create_workspaces(Workspaces; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( +create_workspaces(Workspaces; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "CreateWorkspaces", Dict{String,Any}("Workspaces" => Workspaces); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_workspaces( Workspaces, params::AbstractDict{String}; @@ -756,6 +726,73 @@ function create_workspaces( ) end +""" + create_workspaces_pool(bundle_id, capacity, description, directory_id, pool_name) + create_workspaces_pool(bundle_id, capacity, description, directory_id, pool_name, params::Dict{String,<:Any}) + +Creates a pool of WorkSpaces. + +# Arguments +- `bundle_id`: The identifier of the bundle for the pool. +- `capacity`: The user capacity of the pool. +- `description`: The pool description. +- `directory_id`: The identifier of the directory for the pool. +- `pool_name`: The name of the pool. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ApplicationSettings"`: Indicates the application settings of the pool. +- `"Tags"`: The tags for the pool. +- `"TimeoutSettings"`: Indicates the timeout settings of the pool. +""" +create_workspaces_pool( + BundleId, + Capacity, + Description, + DirectoryId, + PoolName; + aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces( + "CreateWorkspacesPool", + Dict{String,Any}( + "BundleId" => BundleId, + "Capacity" => Capacity, + "Description" => Description, + "DirectoryId" => DirectoryId, + "PoolName" => PoolName, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function create_workspaces_pool( + BundleId, + Capacity, + Description, + DirectoryId, + PoolName, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return workspaces( + "CreateWorkspacesPool", + Dict{String,Any}( + mergewith( + _merge, + Dict{String,Any}( + "BundleId" => BundleId, + "Capacity" => Capacity, + "Description" => Description, + "DirectoryId" => DirectoryId, + "PoolName" => PoolName, + ), + params, + ), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ delete_account_link_invitation(link_id) delete_account_link_invitation(link_id, params::Dict{String,<:Any}) @@ -770,16 +807,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"ClientToken"`: A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation. """ -function delete_account_link_invitation( - LinkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +delete_account_link_invitation(LinkId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DeleteAccountLinkInvitation", Dict{String,Any}("LinkId" => LinkId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_account_link_invitation( LinkId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -807,16 +841,14 @@ the default client branding. client branding. """ -function delete_client_branding( +delete_client_branding( Platforms, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DeleteClientBranding", + Dict{String,Any}("Platforms" => Platforms, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DeleteClientBranding", - Dict{String,Any}("Platforms" => Platforms, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_client_branding( Platforms, ResourceId, @@ -848,16 +880,14 @@ Deletes a client-add-in for Amazon Connect that is configured within a directory - `resource_id`: The directory identifier for which the client add-in is configured. """ -function delete_connect_client_add_in( +delete_connect_client_add_in( AddInId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DeleteConnectClientAddIn", + Dict{String,Any}("AddInId" => AddInId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DeleteConnectClientAddIn", - Dict{String,Any}("AddInId" => AddInId, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_connect_client_add_in( AddInId, ResourceId, @@ -896,16 +926,13 @@ is no longer shared with any accounts or associated with any directories. - `alias_id`: The identifier of the connection alias to delete. """ -function delete_connection_alias( - AliasId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +delete_connection_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DeleteConnectionAlias", Dict{String,Any}("AliasId" => AliasId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_connection_alias( AliasId, params::AbstractDict{String}; @@ -930,14 +957,12 @@ that is associated with a directory. - `group_id`: The identifier of the IP access control group. """ -function delete_ip_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "DeleteIpGroup", - Dict{String,Any}("GroupId" => GroupId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_ip_group(GroupId; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces( + "DeleteIpGroup", + Dict{String,Any}("GroupId" => GroupId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_ip_group( GroupId, params::AbstractDict{String}; @@ -964,16 +989,13 @@ Deletes the specified tags from the specified WorkSpaces resource. - `tag_keys`: The tag keys. """ -function delete_tags( - ResourceId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +delete_tags(ResourceId, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DeleteTags", Dict{String,Any}("ResourceId" => ResourceId, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_tags( ResourceId, TagKeys, @@ -1005,11 +1027,9 @@ bundles, see Delete a Custom WorkSpaces Bundle or Image. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"BundleId"`: The identifier of the bundle. """ -function delete_workspace_bundle(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "DeleteWorkspaceBundle"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_workspace_bundle(; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces( + "DeleteWorkspaceBundle"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function delete_workspace_bundle( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1033,14 +1053,13 @@ other accounts. - `image_id`: The identifier of the image. """ -function delete_workspace_image(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( +delete_workspace_image(ImageId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DeleteWorkspaceImage", Dict{String,Any}("ImageId" => ImageId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_workspace_image( ImageId, params::AbstractDict{String}; @@ -1068,16 +1087,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Force"`: Indicates whether the force flag is applied for the specified WorkSpace. When the force flag is enabled, it allows previously failed deployments to be retried. """ -function deploy_workspace_applications( +deploy_workspace_applications( WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DeployWorkspaceApplications", + Dict{String,Any}("WorkspaceId" => WorkspaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DeployWorkspaceApplications", - Dict{String,Any}("WorkspaceId" => WorkspaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deploy_workspace_applications( WorkspaceId, params::AbstractDict{String}; @@ -1114,16 +1131,14 @@ WorkSpaces again. OperationNotSupportedException error. """ -function deregister_workspace_directory( +deregister_workspace_directory( DirectoryId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DeregisterWorkspaceDirectory", + Dict{String,Any}("DirectoryId" => DirectoryId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DeregisterWorkspaceDirectory", - Dict{String,Any}("DirectoryId" => DirectoryId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function deregister_workspace_directory( DirectoryId, params::AbstractDict{String}; @@ -1147,11 +1162,8 @@ Retrieves a list that describes the configuration of Bring Your Own License (BYO specified account. """ -function describe_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "DescribeAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces("DescribeAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1172,15 +1184,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. """ -function describe_account_modifications(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +describe_account_modifications(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DescribeAccountModifications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_account_modifications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1208,21 +1217,19 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. """ -function describe_application_associations( +describe_application_associations( ApplicationId, AssociatedResourceTypes; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces( + "DescribeApplicationAssociations", + Dict{String,Any}( + "ApplicationId" => ApplicationId, + "AssociatedResourceTypes" => AssociatedResourceTypes, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeApplicationAssociations", - Dict{String,Any}( - "ApplicationId" => ApplicationId, - "AssociatedResourceTypes" => AssociatedResourceTypes, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_application_associations( ApplicationId, AssociatedResourceTypes, @@ -1264,11 +1271,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"OperatingSystemNames"`: The operating systems supported by the applications. - `"Owner"`: The owner of the applications. """ -function describe_applications(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "DescribeApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_applications(; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces( + "DescribeApplications"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function describe_applications( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1291,18 +1296,16 @@ Describes the associations between the applications and the specified bundle. - `bundle_id`: The identifier of the bundle. """ -function describe_bundle_associations( +describe_bundle_associations( AssociatedResourceTypes, BundleId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeBundleAssociations", + Dict{String,Any}( + "AssociatedResourceTypes" => AssociatedResourceTypes, "BundleId" => BundleId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeBundleAssociations", - Dict{String,Any}( - "AssociatedResourceTypes" => AssociatedResourceTypes, "BundleId" => BundleId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_bundle_associations( AssociatedResourceTypes, BundleId, @@ -1341,16 +1344,13 @@ the response. client branding information. """ -function describe_client_branding( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +describe_client_branding(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DescribeClientBranding", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_client_branding( ResourceId, params::AbstractDict{String}; @@ -1376,16 +1376,14 @@ Retrieves a list that describes one or more specified Amazon WorkSpaces clients. - `resource_ids`: The resource identifier, in the form of directory IDs. """ -function describe_client_properties( +describe_client_properties( ResourceIds; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeClientProperties", + Dict{String,Any}("ResourceIds" => ResourceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeClientProperties", - Dict{String,Any}("ResourceIds" => ResourceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_client_properties( ResourceIds, params::AbstractDict{String}; @@ -1416,16 +1414,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. """ -function describe_connect_client_add_ins( +describe_connect_client_add_ins( ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeConnectClientAddIns", + Dict{String,Any}("ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeConnectClientAddIns", - Dict{String,Any}("ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_connect_client_add_ins( ResourceId, params::AbstractDict{String}; @@ -1458,16 +1454,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. """ -function describe_connection_alias_permissions( +describe_connection_alias_permissions( AliasId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeConnectionAliasPermissions", + Dict{String,Any}("AliasId" => AliasId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeConnectionAliasPermissions", - Dict{String,Any}("AliasId" => AliasId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_connection_alias_permissions( AliasId, params::AbstractDict{String}; @@ -1496,11 +1490,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provide this token to receive the next set of results. - `"ResourceId"`: The identifier of the directory associated with the connection alias. """ -function describe_connection_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( +describe_connection_aliases(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DescribeConnectionAliases"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_connection_aliases( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1523,18 +1516,16 @@ Describes the associations between the applications and the specified image. - `image_id`: The identifier of the image. """ -function describe_image_associations( +describe_image_associations( AssociatedResourceTypes, ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeImageAssociations", + Dict{String,Any}( + "AssociatedResourceTypes" => AssociatedResourceTypes, "ImageId" => ImageId + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeImageAssociations", - Dict{String,Any}( - "AssociatedResourceTypes" => AssociatedResourceTypes, "ImageId" => ImageId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_image_associations( AssociatedResourceTypes, ImageId, @@ -1571,11 +1562,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. """ -function describe_ip_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "DescribeIpGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_ip_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces("DescribeIpGroups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_ip_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1596,14 +1584,12 @@ Describes the specified tags for the specified WorkSpaces resource. and connection aliases. """ -function describe_tags(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "DescribeTags", - Dict{String,Any}("ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +describe_tags(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces( + "DescribeTags", + Dict{String,Any}("ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function describe_tags( ResourceId, params::AbstractDict{String}; @@ -1630,19 +1616,17 @@ Describes the associations betweens applications and the specified WorkSpace. - `workspace_id`: The identifier of the WorkSpace. """ -function describe_workspace_associations( +describe_workspace_associations( AssociatedResourceTypes, WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeWorkspaceAssociations", + Dict{String,Any}( + "AssociatedResourceTypes" => AssociatedResourceTypes, + "WorkspaceId" => WorkspaceId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeWorkspaceAssociations", - Dict{String,Any}( - "AssociatedResourceTypes" => AssociatedResourceTypes, - "WorkspaceId" => WorkspaceId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_workspace_associations( AssociatedResourceTypes, WorkspaceId, @@ -1683,11 +1667,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys filter. To describe the bundles provided by Amazon Web Services, specify AMAZON. To describe the bundles that belong to your account, don't specify a value. """ -function describe_workspace_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( +describe_workspace_bundles(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DescribeWorkspaceBundles"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_workspace_bundles( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1709,19 +1692,18 @@ Describes the available directories that are registered with Amazon WorkSpaces. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"DirectoryIds"`: The identifiers of the directories. If the value is null, all directories are retrieved. +- `"Filters"`: The filter condition for the WorkSpaces. - `"Limit"`: The maximum number of directories to return. - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. +- `"WorkspaceDirectoryNames"`: The names of the WorkSpace directories. """ -function describe_workspace_directories(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +describe_workspace_directories(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DescribeWorkspaceDirectories"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function describe_workspace_directories( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1749,16 +1731,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. """ -function describe_workspace_image_permissions( +describe_workspace_image_permissions( ImageId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeWorkspaceImagePermissions", + Dict{String,Any}("ImageId" => ImageId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeWorkspaceImagePermissions", - Dict{String,Any}("ImageId" => ImageId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_workspace_image_permissions( ImageId, params::AbstractDict{String}; @@ -1787,11 +1767,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. """ -function describe_workspace_images(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( +describe_workspace_images(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DescribeWorkspaceImages"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function describe_workspace_images( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1813,16 +1792,14 @@ Describes the snapshots for the specified WorkSpace. - `workspace_id`: The identifier of the WorkSpace. """ -function describe_workspace_snapshots( +describe_workspace_snapshots( WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeWorkspaceSnapshots", + Dict{String,Any}("WorkspaceId" => WorkspaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DescribeWorkspaceSnapshots", - Dict{String,Any}("WorkspaceId" => WorkspaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function describe_workspace_snapshots( WorkspaceId, params::AbstractDict{String}; @@ -1863,11 +1840,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys DescribeWorkspaces with this identifier, no information is returned. - `"WorkspaceName"`: The name of the user-decoupled WorkSpace. """ -function describe_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "DescribeWorkspaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +describe_workspaces(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces("DescribeWorkspaces"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function describe_workspaces( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1888,20 +1862,82 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys provide this token to receive the next set of results. - `"WorkspaceIds"`: The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces. """ -function describe_workspaces_connection_status(; +describe_workspaces_connection_status(; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeWorkspacesConnectionStatus"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_workspaces_connection_status( + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return workspaces( - "DescribeWorkspacesConnectionStatus"; + "DescribeWorkspacesConnectionStatus", + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) end -function describe_workspaces_connection_status( + +""" + describe_workspaces_pool_sessions(pool_id) + describe_workspaces_pool_sessions(pool_id, params::Dict{String,<:Any}) + +Retrieves a list that describes the streaming sessions for a specified pool. + +# Arguments +- `pool_id`: The identifier of the pool. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"Limit"`: The maximum number of items to return. +- `"NextToken"`: If you received a NextToken from a previous call that was paginated, + provide this token to receive the next set of results. +- `"UserId"`: The identifier of the user. +""" +describe_workspaces_pool_sessions( + PoolId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DescribeWorkspacesPoolSessions", + Dict{String,Any}("PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function describe_workspaces_pool_sessions( + PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return workspaces( + "DescribeWorkspacesPoolSessions", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("PoolId" => PoolId), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + describe_workspaces_pools() + describe_workspaces_pools(params::Dict{String,<:Any}) + +Describes the specified WorkSpaces Pools. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"Filters"`: The filter conditions for the WorkSpaces Pool to return. +- `"Limit"`: The maximum number of items to return. +- `"NextToken"`: If you received a NextToken from a previous call that was paginated, + provide this token to receive the next set of results. +- `"PoolIds"`: The identifier of the WorkSpaces Pools. +""" +describe_workspaces_pools(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( + "DescribeWorkspacesPools"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET + ) +function describe_workspaces_pools( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return workspaces( - "DescribeWorkspacesConnectionStatus", + "DescribeWorkspacesPools", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, @@ -1922,16 +1958,13 @@ connection alias is CREATED. - `alias_id`: The identifier of the connection alias to disassociate. """ -function disassociate_connection_alias( - AliasId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +disassociate_connection_alias(AliasId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "DisassociateConnectionAlias", Dict{String,Any}("AliasId" => AliasId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_connection_alias( AliasId, params::AbstractDict{String}; @@ -1956,16 +1989,14 @@ Disassociates the specified IP access control group from the specified directory - `group_ids`: The identifiers of one or more IP access control groups. """ -function disassociate_ip_groups( +disassociate_ip_groups( DirectoryId, GroupIds; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DisassociateIpGroups", + Dict{String,Any}("DirectoryId" => DirectoryId, "GroupIds" => GroupIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DisassociateIpGroups", - Dict{String,Any}("DirectoryId" => DirectoryId, "GroupIds" => GroupIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_ip_groups( DirectoryId, GroupIds, @@ -1997,16 +2028,14 @@ Disassociates the specified application from a WorkSpace. - `workspace_id`: The identifier of the WorkSpace. """ -function disassociate_workspace_application( +disassociate_workspace_application( ApplicationId, WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "DisassociateWorkspaceApplication", + Dict{String,Any}("ApplicationId" => ApplicationId, "WorkspaceId" => WorkspaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "DisassociateWorkspaceApplication", - Dict{String,Any}("ApplicationId" => ApplicationId, "WorkspaceId" => WorkspaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_workspace_application( ApplicationId, WorkspaceId, @@ -2040,11 +2069,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"LinkId"`: The identifier of the account to link. - `"LinkedAccountId"`: The identifier of the account link """ -function get_account_link(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "GetAccountLink"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_account_link(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces("GetAccountLink"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_account_link( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2082,16 +2108,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DeviceTypeWeb"`: The branding information to import for web access. - `"DeviceTypeWindows"`: The branding information to import for Windows devices. """ -function import_client_branding( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +import_client_branding(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "ImportClientBranding", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function import_client_branding( ResourceId, params::AbstractDict{String}; @@ -2135,29 +2158,28 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Applications"`: If specified, the version of Microsoft Office to subscribe to. Valid only for Windows 10 and 11 BYOL images. For more information about subscribing to Office for BYOL images, see Bring Your Own Windows Desktop Licenses. Although this parameter - is an array, only one item is allowed at this time. Windows 11 only supports - Microsoft_Office_2019. + is an array, only one item is allowed at this time. During the image import process, + non-GPU WSP WorkSpaces with Windows 11 support only Microsoft_Office_2019. GPU WSP + WorkSpaces with Windows 11 do not support Office installation. - `"Tags"`: The tags. Each WorkSpaces resource can have a maximum of 50 tags. """ -function import_workspace_image( +import_workspace_image( Ec2ImageId, ImageDescription, ImageName, IngestionProcess; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces( + "ImportWorkspaceImage", + Dict{String,Any}( + "Ec2ImageId" => Ec2ImageId, + "ImageDescription" => ImageDescription, + "ImageName" => ImageName, + "IngestionProcess" => IngestionProcess, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ImportWorkspaceImage", - Dict{String,Any}( - "Ec2ImageId" => Ec2ImageId, - "ImageDescription" => ImageDescription, - "ImageName" => ImageName, - "IngestionProcess" => IngestionProcess, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function import_workspace_image( Ec2ImageId, ImageDescription, @@ -2198,11 +2220,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: The token to use to retrieve the next page of results. This value is null when there are no more results to return. """ -function list_account_links(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "ListAccountLinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_account_links(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces("ListAccountLinks"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function list_account_links( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2234,16 +2253,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results. """ -function list_available_management_cidr_ranges( +list_available_management_cidr_ranges( ManagementCidrRangeConstraint; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "ListAvailableManagementCidrRanges", + Dict{String,Any}("ManagementCidrRangeConstraint" => ManagementCidrRangeConstraint); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ListAvailableManagementCidrRanges", - Dict{String,Any}("ManagementCidrRangeConstraint" => ManagementCidrRangeConstraint); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_available_management_cidr_ranges( ManagementCidrRangeConstraint, params::AbstractDict{String}; @@ -2283,16 +2300,14 @@ happens during migration, and best practices, see Migrate a WorkSpace. - `source_workspace_id`: The identifier of the WorkSpace to migrate from. """ -function migrate_workspace( +migrate_workspace( BundleId, SourceWorkspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "MigrateWorkspace", + Dict{String,Any}("BundleId" => BundleId, "SourceWorkspaceId" => SourceWorkspaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "MigrateWorkspace", - Dict{String,Any}("BundleId" => BundleId, "SourceWorkspaceId" => SourceWorkspaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function migrate_workspace( BundleId, SourceWorkspaceId, @@ -2330,11 +2345,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys as available by the ListAvailableManagementCidrRanges operation. - `"DedicatedTenancySupport"`: The status of BYOL. """ -function modify_account(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "ModifyAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +modify_account(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces("ModifyAccount"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function modify_account( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2360,16 +2372,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"PropertiesToDelete"`: The properties of the certificate-based authentication you want to delete. """ -function modify_certificate_based_auth_properties( +modify_certificate_based_auth_properties( ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "ModifyCertificateBasedAuthProperties", + Dict{String,Any}("ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ModifyCertificateBasedAuthProperties", - Dict{String,Any}("ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_certificate_based_auth_properties( ResourceId, params::AbstractDict{String}; @@ -2396,18 +2406,14 @@ Modifies the properties of the specified Amazon WorkSpaces clients. - `resource_id`: The resource identifiers, in the form of directory IDs. """ -function modify_client_properties( +modify_client_properties( ClientProperties, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "ModifyClientProperties", + Dict{String,Any}("ClientProperties" => ClientProperties, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ModifyClientProperties", - Dict{String,Any}( - "ClientProperties" => ClientProperties, "ResourceId" => ResourceId - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_client_properties( ClientProperties, ResourceId, @@ -2449,16 +2455,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys name. - `"SamlProperties"`: The properties for configuring SAML 2.0 authentication. """ -function modify_saml_properties( - ResourceId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +modify_saml_properties(ResourceId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "ModifySamlProperties", Dict{String,Any}("ResourceId" => ResourceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function modify_saml_properties( ResourceId, params::AbstractDict{String}; @@ -2486,18 +2489,16 @@ information, see Enable Self-Service WorkSpace Management Capabilities for Your - `selfservice_permissions`: The permissions to enable or disable self-service capabilities. """ -function modify_selfservice_permissions( +modify_selfservice_permissions( ResourceId, SelfservicePermissions; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "ModifySelfservicePermissions", + Dict{String,Any}( + "ResourceId" => ResourceId, "SelfservicePermissions" => SelfservicePermissions + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ModifySelfservicePermissions", - Dict{String,Any}( - "ResourceId" => ResourceId, "SelfservicePermissions" => SelfservicePermissions - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_selfservice_permissions( ResourceId, SelfservicePermissions, @@ -2521,6 +2522,42 @@ function modify_selfservice_permissions( ) end +""" + modify_streaming_properties(resource_id) + modify_streaming_properties(resource_id, params::Dict{String,<:Any}) + +Modifies the specified streaming properties. + +# Arguments +- `resource_id`: The identifier of the resource. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"StreamingProperties"`: The streaming properties to configure. +""" +modify_streaming_properties( + ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "ModifyStreamingProperties", + Dict{String,Any}("ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function modify_streaming_properties( + ResourceId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return workspaces( + "ModifyStreamingProperties", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("ResourceId" => ResourceId), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ modify_workspace_access_properties(resource_id, workspace_access_properties) modify_workspace_access_properties(resource_id, workspace_access_properties, params::Dict{String,<:Any}) @@ -2534,21 +2571,19 @@ more information, see Control Device Access. disable for access. """ -function modify_workspace_access_properties( +modify_workspace_access_properties( ResourceId, WorkspaceAccessProperties; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces( + "ModifyWorkspaceAccessProperties", + Dict{String,Any}( + "ResourceId" => ResourceId, + "WorkspaceAccessProperties" => WorkspaceAccessProperties, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ModifyWorkspaceAccessProperties", - Dict{String,Any}( - "ResourceId" => ResourceId, - "WorkspaceAccessProperties" => WorkspaceAccessProperties, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_workspace_access_properties( ResourceId, WorkspaceAccessProperties, @@ -2583,21 +2618,19 @@ Modify the default properties used to create WorkSpaces. - `workspace_creation_properties`: The default properties for creating WorkSpaces. """ -function modify_workspace_creation_properties( +modify_workspace_creation_properties( ResourceId, WorkspaceCreationProperties; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces( + "ModifyWorkspaceCreationProperties", + Dict{String,Any}( + "ResourceId" => ResourceId, + "WorkspaceCreationProperties" => WorkspaceCreationProperties, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ModifyWorkspaceCreationProperties", - Dict{String,Any}( - "ResourceId" => ResourceId, - "WorkspaceCreationProperties" => WorkspaceCreationProperties, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_workspace_creation_properties( ResourceId, WorkspaceCreationProperties, @@ -2638,16 +2671,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"DataReplication"`: Indicates the data replication status. - `"WorkspaceProperties"`: The properties of the WorkSpace. """ -function modify_workspace_properties( +modify_workspace_properties( WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "ModifyWorkspaceProperties", + Dict{String,Any}("WorkspaceId" => WorkspaceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ModifyWorkspaceProperties", - Dict{String,Any}("WorkspaceId" => WorkspaceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_workspace_properties( WorkspaceId, params::AbstractDict{String}; @@ -2677,16 +2708,14 @@ this state is not stopped. Users cannot log into a WorkSpace in the ADMIN_MAINTE - `workspace_state`: The WorkSpace state. """ -function modify_workspace_state( +modify_workspace_state( WorkspaceId, WorkspaceState; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "ModifyWorkspaceState", + Dict{String,Any}("WorkspaceId" => WorkspaceId, "WorkspaceState" => WorkspaceState); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "ModifyWorkspaceState", - Dict{String,Any}("WorkspaceId" => WorkspaceId, "WorkspaceState" => WorkspaceState); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function modify_workspace_state( WorkspaceId, WorkspaceState, @@ -2723,16 +2752,14 @@ asynchronous and returns before the WorkSpaces have rebooted. WorkSpaces. """ -function reboot_workspaces( +reboot_workspaces( RebootWorkspaceRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "RebootWorkspaces", + Dict{String,Any}("RebootWorkspaceRequests" => RebootWorkspaceRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "RebootWorkspaces", - Dict{String,Any}("RebootWorkspaceRequests" => RebootWorkspaceRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function reboot_workspaces( RebootWorkspaceRequests, params::AbstractDict{String}; @@ -2767,16 +2794,14 @@ completely rebuilt. WorkSpace. """ -function rebuild_workspaces( +rebuild_workspaces( RebuildWorkspaceRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "RebuildWorkspaces", + Dict{String,Any}("RebuildWorkspaceRequests" => RebuildWorkspaceRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "RebuildWorkspaces", - Dict{String,Any}("RebuildWorkspaceRequests" => RebuildWorkspaceRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function rebuild_workspaces( RebuildWorkspaceRequests, params::AbstractDict{String}; @@ -2797,29 +2822,30 @@ function rebuild_workspaces( end """ - register_workspace_directory(directory_id, enable_work_docs) - register_workspace_directory(directory_id, enable_work_docs, params::Dict{String,<:Any}) + register_workspace_directory() + register_workspace_directory(params::Dict{String,<:Any}) Registers the specified directory. This operation is asynchronous and returns before the WorkSpace directory is registered. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role. -# Arguments -- `directory_id`: The identifier of the directory. You cannot register a directory if it +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ActiveDirectoryConfig"`: The active directory config of the directory. +- `"DirectoryId"`: The identifier of the directory. You cannot register a directory if it does not have a status of Active. If the directory does not have a status of Active, you will receive an InvalidResourceStateException error. If you have already registered the maximum number of directories that you can register with Amazon WorkSpaces, you will receive a ResourceLimitExceededException error. Deregister directories that you are not using for WorkSpaces, and try again. -- `enable_work_docs`: Indicates whether Amazon WorkDocs is enabled or disabled. If you have - enabled this parameter and WorkDocs is not available in the Region, you will receive an - OperationNotSupportedException error. Set EnableWorkDocs to disabled, and try again. - -# Optional Parameters -Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"EnableSelfService"`: Indicates whether self-service capabilities are enabled or disabled. +- `"EnableWorkDocs"`: Indicates whether Amazon WorkDocs is enabled or disabled. If you have + enabled this parameter and WorkDocs is not available in the Region, you will receive an + OperationNotSupportedException error. Set EnableWorkDocs to disabled, and try again. +- `"IdcInstanceArn"`: The Amazon Resource Name (ARN) of the identity center instance. +- `"MicrosoftEntraConfig"`: The details about Microsoft Entra config. - `"SubnetIds"`: The identifiers of the subnets for your virtual private cloud (VPC). Make sure that the subnets are in supported Availability Zones. The subnets must also be in separate Availability Zones. If these conditions are not met, you will receive an @@ -2830,34 +2856,21 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Web Services account must be enabled for BYOL. If your account has not been enabled for BYOL, you will receive an InvalidParameterValuesException error. For more information about BYOL images, see Bring Your Own Windows Desktop Images. +- `"UserIdentityType"`: The type of identity management the user is using. +- `"WorkspaceDirectoryDescription"`: Description of the directory to register. +- `"WorkspaceDirectoryName"`: The name of the directory to register. +- `"WorkspaceType"`: Indicates whether the directory's WorkSpace type is personal or pools. """ -function register_workspace_directory( - DirectoryId, EnableWorkDocs; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( - "RegisterWorkspaceDirectory", - Dict{String,Any}("DirectoryId" => DirectoryId, "EnableWorkDocs" => EnableWorkDocs); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, +register_workspace_directory(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( + "RegisterWorkspaceDirectory"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function register_workspace_directory( - DirectoryId, - EnableWorkDocs, - params::AbstractDict{String}; - aws_config::AbstractAWSConfig=current_aws_config(), + params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) return workspaces( "RegisterWorkspaceDirectory", - Dict{String,Any}( - mergewith( - _merge, - Dict{String,Any}( - "DirectoryId" => DirectoryId, "EnableWorkDocs" => EnableWorkDocs - ), - params, - ), - ); + params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) @@ -2876,16 +2889,13 @@ Rejects the account link invitation. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"ClientToken"`: The client token of the account link invitation to reject. """ -function reject_account_link_invitation( - LinkId; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +reject_account_link_invitation(LinkId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "RejectAccountLinkInvitation", Dict{String,Any}("LinkId" => LinkId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function reject_account_link_invitation( LinkId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -2911,14 +2921,13 @@ WorkSpace is completely restored. - `workspace_id`: The identifier of the WorkSpace. """ -function restore_workspace(WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( +restore_workspace(WorkspaceId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "RestoreWorkspace", Dict{String,Any}("WorkspaceId" => WorkspaceId); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function restore_workspace( WorkspaceId, params::AbstractDict{String}; @@ -2945,16 +2954,13 @@ Removes one or more rules from the specified IP access control group. - `user_rules`: The rules to remove from the group. """ -function revoke_ip_rules( - GroupId, UserRules; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +revoke_ip_rules(GroupId, UserRules; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "RevokeIpRules", Dict{String,Any}("GroupId" => GroupId, "UserRules" => UserRules); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function revoke_ip_rules( GroupId, UserRules, @@ -2980,22 +2986,20 @@ end start_workspaces(start_workspace_requests, params::Dict{String,<:Any}) Starts the specified WorkSpaces. You cannot start a WorkSpace unless it has a running mode -of AutoStop and a state of STOPPED. +of AutoStop or Manual and a state of STOPPED. # Arguments - `start_workspace_requests`: The WorkSpaces to start. You can specify up to 25 WorkSpaces. """ -function start_workspaces( +start_workspaces( StartWorkspaceRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "StartWorkspaces", + Dict{String,Any}("StartWorkspaceRequests" => StartWorkspaceRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "StartWorkspaces", - Dict{String,Any}("StartWorkspaceRequests" => StartWorkspaceRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function start_workspaces( StartWorkspaceRequests, params::AbstractDict{String}; @@ -3015,27 +3019,53 @@ function start_workspaces( ) end +""" + start_workspaces_pool(pool_id) + start_workspaces_pool(pool_id, params::Dict{String,<:Any}) + +Starts the specified pool. You cannot start a pool unless it has a running mode of AutoStop +and a state of STOPPED. + +# Arguments +- `pool_id`: The identifier of the pool. + +""" +start_workspaces_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( + "StartWorkspacesPool", + Dict{String,Any}("PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function start_workspaces_pool( + PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return workspaces( + "StartWorkspacesPool", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("PoolId" => PoolId), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ stop_workspaces(stop_workspace_requests) stop_workspaces(stop_workspace_requests, params::Dict{String,<:Any}) - Stops the specified WorkSpaces. You cannot stop a WorkSpace unless it has a running mode -of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR. +Stops the specified WorkSpaces. You cannot stop a WorkSpace unless it has a running mode of +AutoStop or Manual and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR. # Arguments - `stop_workspace_requests`: The WorkSpaces to stop. You can specify up to 25 WorkSpaces. """ -function stop_workspaces( - StopWorkspaceRequests; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces( +stop_workspaces(StopWorkspaceRequests; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( "StopWorkspaces", Dict{String,Any}("StopWorkspaceRequests" => StopWorkspaceRequests); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function stop_workspaces( StopWorkspaceRequests, params::AbstractDict{String}; @@ -3055,6 +3085,35 @@ function stop_workspaces( ) end +""" + stop_workspaces_pool(pool_id) + stop_workspaces_pool(pool_id, params::Dict{String,<:Any}) + +Stops the specified pool. You cannot stop a WorkSpace pool unless it has a running mode of +AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR. + +# Arguments +- `pool_id`: The identifier of the pool. + +""" +stop_workspaces_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( + "StopWorkspacesPool", + Dict{String,Any}("PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function stop_workspaces_pool( + PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return workspaces( + "StopWorkspacesPool", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("PoolId" => PoolId), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ terminate_workspaces(terminate_workspace_requests) terminate_workspaces(terminate_workspace_requests, params::Dict{String,<:Any}) @@ -3081,16 +3140,14 @@ WorkSpaces again. WorkSpaces. """ -function terminate_workspaces( +terminate_workspaces( TerminateWorkspaceRequests; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "TerminateWorkspaces", + Dict{String,Any}("TerminateWorkspaceRequests" => TerminateWorkspaceRequests); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "TerminateWorkspaces", - Dict{String,Any}("TerminateWorkspaceRequests" => TerminateWorkspaceRequests); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function terminate_workspaces( TerminateWorkspaceRequests, params::AbstractDict{String}; @@ -3112,6 +3169,67 @@ function terminate_workspaces( ) end +""" + terminate_workspaces_pool(pool_id) + terminate_workspaces_pool(pool_id, params::Dict{String,<:Any}) + +Terminates the specified pool. + +# Arguments +- `pool_id`: The identifier of the pool. + +""" +terminate_workspaces_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( + "TerminateWorkspacesPool", + Dict{String,Any}("PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function terminate_workspaces_pool( + PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return workspaces( + "TerminateWorkspacesPool", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("PoolId" => PoolId), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + +""" + terminate_workspaces_pool_session(session_id) + terminate_workspaces_pool_session(session_id, params::Dict{String,<:Any}) + +Terminates the pool session. + +# Arguments +- `session_id`: The identifier of the pool session. + +""" +terminate_workspaces_pool_session( + SessionId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "TerminateWorkspacesPoolSession", + Dict{String,Any}("SessionId" => SessionId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) +function terminate_workspaces_pool_session( + SessionId, + params::AbstractDict{String}; + aws_config::AbstractAWSConfig=current_aws_config(), +) + return workspaces( + "TerminateWorkspacesPoolSession", + Dict{String,Any}( + mergewith(_merge, Dict{String,Any}("SessionId" => SessionId), params) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end + """ update_connect_client_add_in(add_in_id, resource_id) update_connect_client_add_in(add_in_id, resource_id, params::Dict{String,<:Any}) @@ -3128,16 +3246,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Name"`: The name of the client add-in. - `"URL"`: The endpoint URL of the Amazon Connect client add-in. """ -function update_connect_client_add_in( +update_connect_client_add_in( AddInId, ResourceId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "UpdateConnectClientAddIn", + Dict{String,Any}("AddInId" => AddInId, "ResourceId" => ResourceId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "UpdateConnectClientAddIn", - Dict{String,Any}("AddInId" => AddInId, "ResourceId" => ResourceId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connect_client_add_in( AddInId, ResourceId, @@ -3181,18 +3297,16 @@ any accounts or associated with any directories. with the specified Amazon Web Services account. """ -function update_connection_alias_permission( +update_connection_alias_permission( AliasId, ConnectionAliasPermission; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "UpdateConnectionAliasPermission", + Dict{String,Any}( + "AliasId" => AliasId, "ConnectionAliasPermission" => ConnectionAliasPermission + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "UpdateConnectionAliasPermission", - Dict{String,Any}( - "AliasId" => AliasId, "ConnectionAliasPermission" => ConnectionAliasPermission - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_connection_alias_permission( AliasId, ConnectionAliasPermission, @@ -3228,16 +3342,14 @@ rules. - `user_rules`: One or more rules. """ -function update_rules_of_ip_group( +update_rules_of_ip_group( GroupId, UserRules; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces( + "UpdateRulesOfIpGroup", + Dict{String,Any}("GroupId" => GroupId, "UserRules" => UserRules); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "UpdateRulesOfIpGroup", - Dict{String,Any}("GroupId" => GroupId, "UserRules" => UserRules); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_rules_of_ip_group( GroupId, UserRules, @@ -3273,11 +3385,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"BundleId"`: The identifier of the bundle. - `"ImageId"`: The identifier of the image. """ -function update_workspace_bundle(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces( - "UpdateWorkspaceBundle"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_workspace_bundle(; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces( + "UpdateWorkspaceBundle"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function update_workspace_bundle( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -3315,23 +3425,21 @@ accounts in Amazon Web Services GovCloud (US), contact Amazon Web Services Suppo correct Amazon Web Services account ID. """ -function update_workspace_image_permission( +update_workspace_image_permission( AllowCopyImage, ImageId, SharedAccountId; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces( + "UpdateWorkspaceImagePermission", + Dict{String,Any}( + "AllowCopyImage" => AllowCopyImage, + "ImageId" => ImageId, + "SharedAccountId" => SharedAccountId, + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces( - "UpdateWorkspaceImagePermission", - Dict{String,Any}( - "AllowCopyImage" => AllowCopyImage, - "ImageId" => ImageId, - "SharedAccountId" => SharedAccountId, - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_workspace_image_permission( AllowCopyImage, ImageId, @@ -3356,3 +3464,39 @@ function update_workspace_image_permission( feature_set=SERVICE_FEATURE_SET, ) end + +""" + update_workspaces_pool(pool_id) + update_workspaces_pool(pool_id, params::Dict{String,<:Any}) + +Updates the specified pool. + +# Arguments +- `pool_id`: The identifier of the specified pool to update. + +# Optional Parameters +Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: +- `"ApplicationSettings"`: The persistent application settings for users in the pool. +- `"BundleId"`: The identifier of the bundle. +- `"Capacity"`: The desired capacity for the pool. +- `"Description"`: Describes the specified pool to update. +- `"DirectoryId"`: The identifier of the directory. +- `"TimeoutSettings"`: Indicates the timeout settings of the specified pool. +""" +update_workspaces_pool(PoolId; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces( + "UpdateWorkspacesPool", + Dict{String,Any}("PoolId" => PoolId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +function update_workspaces_pool( + PoolId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() +) + return workspaces( + "UpdateWorkspacesPool", + Dict{String,Any}(mergewith(_merge, Dict{String,Any}("PoolId" => PoolId), params)); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, + ) +end diff --git a/src/services/workspaces_thin_client.jl b/src/services/workspaces_thin_client.jl index e69561668..a1d8417d0 100644 --- a/src/services/workspaces_thin_client.jl +++ b/src/services/workspaces_thin_client.jl @@ -38,15 +38,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys within a maintenance window. - `"tags"`: A map of the key-value pairs of the tag or tags to assign to the resource. """ -function create_environment(desktopArn; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +create_environment(desktopArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "POST", "/environments", Dict{String,Any}("desktopArn" => desktopArn, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_environment( desktopArn, params::AbstractDict{String}; @@ -89,15 +88,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function delete_device(id; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +delete_device(id; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "DELETE", "/devices/$(id)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_device( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -132,15 +130,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error. """ -function delete_environment(id; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +delete_environment(id; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "DELETE", "/environments/$(id)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_environment( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -176,15 +173,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys IdempotentParameterMismatch error. - `"targetDeviceStatus"`: The desired new status for the device. """ -function deregister_device(id; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +deregister_device(id; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "POST", "/deregister-device/$(id)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function deregister_device( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -209,11 +205,9 @@ Returns information for a thin client device. - `id`: The ID of the device for which to return information. """ -function get_device(id; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( - "GET", "/devices/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_device(id; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces_thin_client( + "GET", "/devices/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_device( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -236,11 +230,10 @@ Returns information for an environment. - `id`: The ID of the environment for which to return information. """ -function get_environment(id; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +get_environment(id; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "GET", "/environments/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_environment( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -263,11 +256,10 @@ Returns information for a software set. - `id`: The ID of the software set for which to return information. """ -function get_software_set(id; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +get_software_set(id; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "GET", "/softwaresets/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function get_software_set( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -297,11 +289,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( - "GET", "/devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_devices(; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces_thin_client( + "GET", "/devices"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_devices( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -327,11 +317,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +list_environments(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "GET", "/environments"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_environments( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -361,11 +350,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. """ -function list_software_sets(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +list_software_sets(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "GET", "/softwaresets"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_software_sets( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -389,16 +377,13 @@ Returns a list of tags for a resource. retrieve tags. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_thin_client( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -424,15 +409,14 @@ Assigns one or more tags (key-value pairs) to the specified resource. - `tags`: A map of the key-value pairs of the tag or tags to assign to the resource. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -460,17 +444,14 @@ Removes a tag or tags from a resource. the specified resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_thin_client( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -502,11 +483,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"softwareSetUpdateSchedule"`: An option to define if software updates should be applied within a maintenance window. """ -function update_device(id; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +update_device(id; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "PATCH", "/devices/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function update_device( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -543,14 +523,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"softwareSetUpdateSchedule"`: An option to define if software updates should be applied within a maintenance window. """ -function update_environment(id; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_thin_client( +update_environment(id; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_thin_client( "PATCH", "/environments/$(id)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_environment( id, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -574,17 +553,15 @@ Updates a software set. - `validation_status`: An option to define if the software set has been validated. """ -function update_software_set( +update_software_set( id, validationStatus; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_thin_client( + "PATCH", + "/softwaresets/$(id)", + Dict{String,Any}("validationStatus" => validationStatus); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_thin_client( - "PATCH", - "/softwaresets/$(id)", - Dict{String,Any}("validationStatus" => validationStatus); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_software_set( id, validationStatus, diff --git a/src/services/workspaces_web.jl b/src/services/workspaces_web.jl index cd5cee2ff..bfb6471d2 100644 --- a/src/services/workspaces_web.jl +++ b/src/services/workspaces_web.jl @@ -15,17 +15,15 @@ Associates a browser settings resource with a web portal. - `portal_arn`: The ARN of the web portal. """ -function associate_browser_settings( +associate_browser_settings( browserSettingsArn, portalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PUT", + "/portals/$(portalArn)/browserSettings", + Dict{String,Any}("browserSettingsArn" => browserSettingsArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PUT", - "/portals/$(portalArn)/browserSettings", - Dict{String,Any}("browserSettingsArn" => browserSettingsArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_browser_settings( browserSettingsArn, portalArn, @@ -56,17 +54,15 @@ Associates an IP access settings resource with a web portal. - `portal_arn`: The ARN of the web portal. """ -function associate_ip_access_settings( +associate_ip_access_settings( ipAccessSettingsArn, portalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PUT", + "/portals/$(portalArn)/ipAccessSettings", + Dict{String,Any}("ipAccessSettingsArn" => ipAccessSettingsArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PUT", - "/portals/$(portalArn)/ipAccessSettings", - Dict{String,Any}("ipAccessSettingsArn" => ipAccessSettingsArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_ip_access_settings( ipAccessSettingsArn, portalArn, @@ -99,17 +95,15 @@ Associates a network settings resource with a web portal. - `portal_arn`: The ARN of the web portal. """ -function associate_network_settings( +associate_network_settings( networkSettingsArn, portalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PUT", + "/portals/$(portalArn)/networkSettings", + Dict{String,Any}("networkSettingsArn" => networkSettingsArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PUT", - "/portals/$(portalArn)/networkSettings", - Dict{String,Any}("networkSettingsArn" => networkSettingsArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_network_settings( networkSettingsArn, portalArn, @@ -140,17 +134,15 @@ Associates a trust store with a web portal. - `trust_store_arn`: The ARN of the trust store. """ -function associate_trust_store( +associate_trust_store( portalArn, trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PUT", + "/portals/$(portalArn)/trustStores", + Dict{String,Any}("trustStoreArn" => trustStoreArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PUT", - "/portals/$(portalArn)/trustStores", - Dict{String,Any}("trustStoreArn" => trustStoreArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_trust_store( portalArn, trustStoreArn, @@ -179,19 +171,17 @@ Associates a user access logging settings resource with a web portal. - `user_access_logging_settings_arn`: The ARN of the user access logging settings. """ -function associate_user_access_logging_settings( +associate_user_access_logging_settings( portalArn, userAccessLoggingSettingsArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces_web( + "PUT", + "/portals/$(portalArn)/userAccessLoggingSettings", + Dict{String,Any}("userAccessLoggingSettingsArn" => userAccessLoggingSettingsArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PUT", - "/portals/$(portalArn)/userAccessLoggingSettings", - Dict{String,Any}("userAccessLoggingSettingsArn" => userAccessLoggingSettingsArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_user_access_logging_settings( portalArn, userAccessLoggingSettingsArn, @@ -226,17 +216,15 @@ Associates a user settings resource with a web portal. - `user_settings_arn`: The ARN of the user settings. """ -function associate_user_settings( +associate_user_settings( portalArn, userSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PUT", + "/portals/$(portalArn)/userSettings", + Dict{String,Any}("userSettingsArn" => userSettingsArn); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PUT", - "/portals/$(portalArn)/userSettings", - Dict{String,Any}("userSettingsArn" => userSettingsArn); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function associate_user_settings( portalArn, userSettingsArn, @@ -280,10 +268,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"customerManagedKey"`: The custom managed key of the browser settings. - `"tags"`: The tags to add to the browser settings resource. A tag is a key-value pair. """ -function create_browser_settings( - browserPolicy; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +create_browser_settings(browserPolicy; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "POST", "/browserSettings", Dict{String,Any}( @@ -292,7 +278,6 @@ function create_browser_settings( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_browser_settings( browserPolicy, params::AbstractDict{String}; @@ -349,27 +334,25 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services SDK. - `"tags"`: The tags to add to the identity provider resource. A tag is a key-value pair. """ -function create_identity_provider( +create_identity_provider( identityProviderDetails, identityProviderName, identityProviderType, portalArn; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces_web( + "POST", + "/identityProviders", + Dict{String,Any}( + "identityProviderDetails" => identityProviderDetails, + "identityProviderName" => identityProviderName, + "identityProviderType" => identityProviderType, + "portalArn" => portalArn, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "POST", - "/identityProviders", - Dict{String,Any}( - "identityProviderDetails" => identityProviderDetails, - "identityProviderName" => identityProviderName, - "identityProviderType" => identityProviderType, - "portalArn" => portalArn, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_identity_provider( identityProviderDetails, identityProviderName, @@ -422,17 +405,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"displayName"`: The display name of the IP access settings. - `"tags"`: The tags to add to the IP access settings resource. A tag is a key-value pair. """ -function create_ip_access_settings( - ipRules; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +create_ip_access_settings(ipRules; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "POST", "/ipAccessSettings", Dict{String,Any}("ipRules" => ipRules, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_ip_access_settings( ipRules, params::AbstractDict{String}; @@ -479,22 +459,20 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services SDK. - `"tags"`: The tags to add to the network settings resource. A tag is a key-value pair. """ -function create_network_settings( +create_network_settings( securityGroupIds, subnetIds, vpcId; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "POST", + "/networkSettings", + Dict{String,Any}( + "securityGroupIds" => securityGroupIds, + "subnetIds" => subnetIds, + "vpcId" => vpcId, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "POST", - "/networkSettings", - Dict{String,Any}( - "securityGroupIds" => securityGroupIds, - "subnetIds" => subnetIds, - "vpcId" => vpcId, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_network_settings( securityGroupIds, subnetIds, @@ -552,15 +530,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"maxConcurrentSessions"`: The maximum number of concurrent sessions for the portal. - `"tags"`: The tags to add to the web portal. A tag is a key-value pair. """ -function create_portal(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( - "POST", - "/portals", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_portal(; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces_web( + "POST", + "/portals", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_portal( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -598,10 +574,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services SDK. - `"tags"`: The tags to add to the trust store. A tag is a key-value pair. """ -function create_trust_store( - certificateList; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +create_trust_store(certificateList; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "POST", "/trustStores", Dict{String,Any}( @@ -610,7 +584,6 @@ function create_trust_store( aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_trust_store( certificateList, params::AbstractDict{String}; @@ -652,19 +625,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services SDK. - `"tags"`: The tags to add to the user settings resource. A tag is a key-value pair. """ -function create_user_access_logging_settings( +create_user_access_logging_settings( kinesisStreamArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "POST", + "/userAccessLoggingSettings", + Dict{String,Any}( + "kinesisStreamArn" => kinesisStreamArn, "clientToken" => string(uuid4()) + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "POST", - "/userAccessLoggingSettings", - Dict{String,Any}( - "kinesisStreamArn" => kinesisStreamArn, "clientToken" => string(uuid4()) - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_access_logging_settings( kinesisStreamArn, params::AbstractDict{String}; @@ -728,29 +699,27 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys interval begins. - `"tags"`: The tags to add to the user settings resource. A tag is a key-value pair. """ -function create_user_settings( +create_user_settings( copyAllowed, downloadAllowed, pasteAllowed, printAllowed, uploadAllowed; aws_config::AbstractAWSConfig=current_aws_config(), +) = workspaces_web( + "POST", + "/userSettings", + Dict{String,Any}( + "copyAllowed" => copyAllowed, + "downloadAllowed" => downloadAllowed, + "pasteAllowed" => pasteAllowed, + "printAllowed" => printAllowed, + "uploadAllowed" => uploadAllowed, + "clientToken" => string(uuid4()), + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "POST", - "/userSettings", - Dict{String,Any}( - "copyAllowed" => copyAllowed, - "downloadAllowed" => downloadAllowed, - "pasteAllowed" => pasteAllowed, - "printAllowed" => printAllowed, - "uploadAllowed" => uploadAllowed, - "clientToken" => string(uuid4()), - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function create_user_settings( copyAllowed, downloadAllowed, @@ -792,16 +761,14 @@ Deletes browser settings. - `browser_settings_arn`: The ARN of the browser settings. """ -function delete_browser_settings( +delete_browser_settings( browserSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/browserSettings/$(browserSettingsArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/browserSettings/$(browserSettingsArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_browser_settings( browserSettingsArn, params::AbstractDict{String}; @@ -826,16 +793,14 @@ Deletes the identity provider. - `identity_provider_arn`: The ARN of the identity provider. """ -function delete_identity_provider( +delete_identity_provider( identityProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/identityProviders/$(identityProviderArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/identityProviders/$(identityProviderArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_identity_provider( identityProviderArn, params::AbstractDict{String}; @@ -860,16 +825,14 @@ Deletes IP access settings. - `ip_access_settings_arn`: The ARN of the IP access settings. """ -function delete_ip_access_settings( +delete_ip_access_settings( ipAccessSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/ipAccessSettings/$(ipAccessSettingsArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/ipAccessSettings/$(ipAccessSettingsArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_ip_access_settings( ipAccessSettingsArn, params::AbstractDict{String}; @@ -894,16 +857,14 @@ Deletes network settings. - `network_settings_arn`: The ARN of the network settings. """ -function delete_network_settings( +delete_network_settings( networkSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/networkSettings/$(networkSettingsArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/networkSettings/$(networkSettingsArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_network_settings( networkSettingsArn, params::AbstractDict{String}; @@ -928,14 +889,13 @@ Deletes a web portal. - `portal_arn`: The ARN of the web portal. """ -function delete_portal(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( +delete_portal(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "DELETE", "/portals/$(portalArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_portal( portalArn, params::AbstractDict{String}; @@ -960,16 +920,13 @@ Deletes the trust store. - `trust_store_arn`: The ARN of the trust store. """ -function delete_trust_store( - trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +delete_trust_store(trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "DELETE", "/trustStores/$(trustStoreArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_trust_store( trustStoreArn, params::AbstractDict{String}; @@ -994,16 +951,14 @@ Deletes user access logging settings. - `user_access_logging_settings_arn`: The ARN of the user access logging settings. """ -function delete_user_access_logging_settings( +delete_user_access_logging_settings( userAccessLoggingSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/userAccessLoggingSettings/$(userAccessLoggingSettingsArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/userAccessLoggingSettings/$(userAccessLoggingSettingsArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function delete_user_access_logging_settings( userAccessLoggingSettingsArn, params::AbstractDict{String}; @@ -1028,16 +983,13 @@ Deletes user settings. - `user_settings_arn`: The ARN of the user settings. """ -function delete_user_settings( - userSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +delete_user_settings(userSettingsArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "DELETE", "/userSettings/$(userSettingsArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_user_settings( userSettingsArn, params::AbstractDict{String}; @@ -1062,16 +1014,14 @@ Disassociates browser settings from a web portal. - `portal_arn`: The ARN of the web portal. """ -function disassociate_browser_settings( +disassociate_browser_settings( portalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/portals/$(portalArn)/browserSettings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/portals/$(portalArn)/browserSettings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_browser_settings( portalArn, params::AbstractDict{String}; @@ -1096,16 +1046,14 @@ Disassociates IP access settings from a web portal. - `portal_arn`: The ARN of the web portal. """ -function disassociate_ip_access_settings( +disassociate_ip_access_settings( portalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/portals/$(portalArn)/ipAccessSettings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/portals/$(portalArn)/ipAccessSettings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_ip_access_settings( portalArn, params::AbstractDict{String}; @@ -1130,16 +1078,14 @@ Disassociates network settings from a web portal. - `portal_arn`: The ARN of the web portal. """ -function disassociate_network_settings( +disassociate_network_settings( portalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/portals/$(portalArn)/networkSettings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/portals/$(portalArn)/networkSettings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_network_settings( portalArn, params::AbstractDict{String}; @@ -1164,16 +1110,13 @@ Disassociates a trust store from a web portal. - `portal_arn`: The ARN of the web portal. """ -function disassociate_trust_store( - portalArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +disassociate_trust_store(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "DELETE", "/portals/$(portalArn)/trustStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_trust_store( portalArn, params::AbstractDict{String}; @@ -1198,16 +1141,14 @@ Disassociates user access logging settings from a web portal. - `portal_arn`: The ARN of the web portal. """ -function disassociate_user_access_logging_settings( +disassociate_user_access_logging_settings( portalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "DELETE", + "/portals/$(portalArn)/userAccessLoggingSettings"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "DELETE", - "/portals/$(portalArn)/userAccessLoggingSettings"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function disassociate_user_access_logging_settings( portalArn, params::AbstractDict{String}; @@ -1232,16 +1173,13 @@ Disassociates user settings from a web portal. - `portal_arn`: The ARN of the web portal. """ -function disassociate_user_settings( - portalArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +disassociate_user_settings(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "DELETE", "/portals/$(portalArn)/userSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function disassociate_user_settings( portalArn, params::AbstractDict{String}; @@ -1266,16 +1204,14 @@ Gets browser settings. - `browser_settings_arn`: The ARN of the browser settings. """ -function get_browser_settings( +get_browser_settings( browserSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "GET", + "/browserSettings/$(browserSettingsArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "GET", - "/browserSettings/$(browserSettingsArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_browser_settings( browserSettingsArn, params::AbstractDict{String}; @@ -1300,16 +1236,14 @@ Gets the identity provider. - `identity_provider_arn`: The ARN of the identity provider. """ -function get_identity_provider( +get_identity_provider( identityProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "GET", + "/identityProviders/$(identityProviderArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "GET", - "/identityProviders/$(identityProviderArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_identity_provider( identityProviderArn, params::AbstractDict{String}; @@ -1334,16 +1268,14 @@ Gets the IP access settings. - `ip_access_settings_arn`: The ARN of the IP access settings. """ -function get_ip_access_settings( +get_ip_access_settings( ipAccessSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "GET", + "/ipAccessSettings/$(ipAccessSettingsArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "GET", - "/ipAccessSettings/$(ipAccessSettingsArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_ip_access_settings( ipAccessSettingsArn, params::AbstractDict{String}; @@ -1368,16 +1300,14 @@ Gets the network settings. - `network_settings_arn`: The ARN of the network settings. """ -function get_network_settings( +get_network_settings( networkSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "GET", + "/networkSettings/$(networkSettingsArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "GET", - "/networkSettings/$(networkSettingsArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_network_settings( networkSettingsArn, params::AbstractDict{String}; @@ -1402,14 +1332,12 @@ Gets the web portal. - `portal_arn`: The ARN of the web portal. """ -function get_portal(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( - "GET", - "/portals/$(portalArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_portal(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces_web( + "GET", + "/portals/$(portalArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_portal( portalArn, params::AbstractDict{String}; @@ -1434,16 +1362,14 @@ Gets the service provider metadata. - `portal_arn`: The ARN of the web portal. """ -function get_portal_service_provider_metadata( +get_portal_service_provider_metadata( portalArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "GET", + "/portalIdp/$(portalArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "GET", - "/portalIdp/$(portalArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_portal_service_provider_metadata( portalArn, params::AbstractDict{String}; @@ -1468,14 +1394,13 @@ Gets the trust store. - `trust_store_arn`: The ARN of the trust store. """ -function get_trust_store(trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( +get_trust_store(trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "GET", "/trustStores/$(trustStoreArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_trust_store( trustStoreArn, params::AbstractDict{String}; @@ -1501,17 +1426,15 @@ Gets the trust store certificate. - `trust_store_arn`: The ARN of the trust store certificate. """ -function get_trust_store_certificate( +get_trust_store_certificate( thumbprint, trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "GET", + "/trustStores/$(trustStoreArn)/certificate", + Dict{String,Any}("thumbprint" => thumbprint); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "GET", - "/trustStores/$(trustStoreArn)/certificate", - Dict{String,Any}("thumbprint" => thumbprint); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_trust_store_certificate( thumbprint, trustStoreArn, @@ -1539,16 +1462,14 @@ Gets user access logging settings. - `user_access_logging_settings_arn`: The ARN of the user access logging settings. """ -function get_user_access_logging_settings( +get_user_access_logging_settings( userAccessLoggingSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "GET", + "/userAccessLoggingSettings/$(userAccessLoggingSettingsArn)"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "GET", - "/userAccessLoggingSettings/$(userAccessLoggingSettingsArn)"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_user_access_logging_settings( userAccessLoggingSettingsArn, params::AbstractDict{String}; @@ -1573,16 +1494,13 @@ Gets user settings. - `user_settings_arn`: The ARN of the user settings. """ -function get_user_settings( - userSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +get_user_settings(userSettingsArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "GET", "/userSettings/$(userSettingsArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_user_settings( userSettingsArn, params::AbstractDict{String}; @@ -1609,11 +1527,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_browser_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( +list_browser_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "GET", "/browserSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_browser_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1641,16 +1558,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_identity_providers( - portalArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +list_identity_providers(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "GET", "/portals/$(portalArn)/identityProviders"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_identity_providers( portalArn, params::AbstractDict{String}; @@ -1677,11 +1591,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_ip_access_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( +list_ip_access_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "GET", "/ipAccessSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_ip_access_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1706,11 +1619,10 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_network_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( +list_network_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "GET", "/networkSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET ) -end function list_network_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1735,11 +1647,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_portals(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( - "GET", "/portals"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_portals(; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces_web( + "GET", "/portals"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_portals( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1758,16 +1668,13 @@ Retrieves a list of tags for a resource. - `resource_arn`: The ARN of the resource. """ -function list_tags_for_resource( - resourceArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +list_tags_for_resource(resourceArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "GET", "/tags/$(resourceArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( resourceArn, params::AbstractDict{String}; @@ -1797,16 +1704,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_trust_store_certificates( +list_trust_store_certificates( trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "GET", + "/trustStores/$(trustStoreArn)/certificates"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "GET", - "/trustStores/$(trustStoreArn)/certificates"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function list_trust_store_certificates( trustStoreArn, params::AbstractDict{String}; @@ -1833,11 +1738,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_trust_stores(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( - "GET", "/trustStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_trust_stores(; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces_web( + "GET", "/trustStores"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_trust_stores( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1862,16 +1765,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_user_access_logging_settings(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +list_user_access_logging_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "GET", "/userAccessLoggingSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_user_access_logging_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1896,11 +1796,9 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"nextToken"`: The pagination token used to retrieve the next page of results for this operation. """ -function list_user_settings(; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( - "GET", "/userSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +list_user_settings(; aws_config::AbstractAWSConfig=current_aws_config()) = workspaces_web( + "GET", "/userSettings"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function list_user_settings( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1932,15 +1830,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK. """ -function tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( +tag_resource(resourceArn, tags; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "POST", "/tags/$(resourceArn)", Dict{String,Any}("tags" => tags, "clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function tag_resource( resourceArn, tags, @@ -1973,17 +1870,14 @@ Removes one or more tags from the specified resource. - `tag_keys`: The list of tag keys to remove from the resource. """ -function untag_resource( - resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +untag_resource(resourceArn, tagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "DELETE", "/tags/$(resourceArn)", Dict{String,Any}("tagKeys" => tagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( resourceArn, tagKeys, @@ -2019,17 +1913,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK. """ -function update_browser_settings( +update_browser_settings( browserSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PATCH", + "/browserSettings/$(browserSettingsArn)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PATCH", - "/browserSettings/$(browserSettingsArn)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_browser_settings( browserSettingsArn, params::AbstractDict{String}; @@ -2079,17 +1971,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"identityProviderName"`: The name of the identity provider. - `"identityProviderType"`: The type of the identity provider. """ -function update_identity_provider( +update_identity_provider( identityProviderArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PATCH", + "/identityProviders/$(identityProviderArn)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PATCH", - "/identityProviders/$(identityProviderArn)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_identity_provider( identityProviderArn, params::AbstractDict{String}; @@ -2127,17 +2017,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"displayName"`: The display name of the IP access settings. - `"ipRules"`: The updated IP rules of the IP access settings. """ -function update_ip_access_settings( +update_ip_access_settings( ipAccessSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PATCH", + "/ipAccessSettings/$(ipAccessSettingsArn)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PATCH", - "/ipAccessSettings/$(ipAccessSettingsArn)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_ip_access_settings( ipAccessSettingsArn, params::AbstractDict{String}; @@ -2178,17 +2066,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys zones. - `"vpcId"`: The VPC that streaming instances will connect to. """ -function update_network_settings( +update_network_settings( networkSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PATCH", + "/networkSettings/$(networkSettingsArn)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PATCH", - "/networkSettings/$(networkSettingsArn)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_network_settings( networkSettingsArn, params::AbstractDict{String}; @@ -2229,14 +2115,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"instanceType"`: The type and resources of the underlying instance. - `"maxConcurrentSessions"`: The maximum number of concurrent sessions for the portal. """ -function update_portal(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) - return workspaces_web( +update_portal(portalArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "PUT", "/portals/$(portalArn)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_portal( portalArn, params::AbstractDict{String}; @@ -2271,17 +2156,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK. """ -function update_trust_store( - trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +update_trust_store(trustStoreArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "PATCH", "/trustStores/$(trustStoreArn)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_trust_store( trustStoreArn, params::AbstractDict{String}; @@ -2317,17 +2199,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Services SDK. - `"kinesisStreamArn"`: The ARN of the Kinesis stream. """ -function update_user_access_logging_settings( +update_user_access_logging_settings( userAccessLoggingSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() +) = workspaces_web( + "PATCH", + "/userAccessLoggingSettings/$(userAccessLoggingSettingsArn)", + Dict{String,Any}("clientToken" => string(uuid4())); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return workspaces_web( - "PATCH", - "/userAccessLoggingSettings/$(userAccessLoggingSettingsArn)", - Dict{String,Any}("clientToken" => string(uuid4())); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_user_access_logging_settings( userAccessLoggingSettingsArn, params::AbstractDict{String}; @@ -2381,17 +2261,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"uploadAllowed"`: Specifies whether the user can upload files from the local device to the streaming session. """ -function update_user_settings( - userSettingsArn; aws_config::AbstractAWSConfig=current_aws_config() -) - return workspaces_web( +update_user_settings(userSettingsArn; aws_config::AbstractAWSConfig=current_aws_config()) = + workspaces_web( "PATCH", "/userSettings/$(userSettingsArn)", Dict{String,Any}("clientToken" => string(uuid4())); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function update_user_settings( userSettingsArn, params::AbstractDict{String}; diff --git a/src/services/xray.jl b/src/services/xray.jl index 17704d5b2..9d8b02cde 100644 --- a/src/services/xray.jl +++ b/src/services/xray.jl @@ -18,15 +18,13 @@ that originates from a single request. Use GetTraceSummaries to get a list of tr Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Pagination token. """ -function batch_get_traces(TraceIds; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/Traces", - Dict{String,Any}("TraceIds" => TraceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +batch_get_traces(TraceIds; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/Traces", + Dict{String,Any}("TraceIds" => TraceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function batch_get_traces( TraceIds, params::AbstractDict{String}; @@ -70,15 +68,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Tag keys and values are case sensitive. Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use. """ -function create_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/CreateGroup", - Dict{String,Any}("GroupName" => GroupName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +create_group(GroupName; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/CreateGroup", + Dict{String,Any}("GroupName" => GroupName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function create_group( GroupName, params::AbstractDict{String}; @@ -120,17 +116,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys Tag keys and values are case sensitive. Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use. """ -function create_sampling_rule( - SamplingRule; aws_config::AbstractAWSConfig=current_aws_config() -) - return xray( +create_sampling_rule(SamplingRule; aws_config::AbstractAWSConfig=current_aws_config()) = + xray( "POST", "/CreateSamplingRule", Dict{String,Any}("SamplingRule" => SamplingRule); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function create_sampling_rule( SamplingRule, params::AbstractDict{String}; @@ -158,11 +151,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GroupARN"`: The ARN of the group that was generated on creation. - `"GroupName"`: The case-sensitive name of the group. """ -function delete_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", "/DeleteGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +delete_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + xray("POST", "/DeleteGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function delete_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -191,17 +181,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys match the latest policy revision id, an InvalidPolicyRevisionIdException exception is returned. """ -function delete_resource_policy( - PolicyName; aws_config::AbstractAWSConfig=current_aws_config() -) - return xray( +delete_resource_policy(PolicyName; aws_config::AbstractAWSConfig=current_aws_config()) = + xray( "POST", "/DeleteResourcePolicy", Dict{String,Any}("PolicyName" => PolicyName); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function delete_resource_policy( PolicyName, params::AbstractDict{String}; @@ -231,14 +218,12 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"RuleName"`: The name of the sampling rule. Specify a rule by either name or ARN, but not both. """ -function delete_sampling_rule(; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/DeleteSamplingRule"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +delete_sampling_rule(; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/DeleteSamplingRule"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function delete_sampling_rule( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -258,11 +243,9 @@ end Retrieves the current encryption configuration for X-Ray data. """ -function get_encryption_config(; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", "/EncryptionConfig"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_encryption_config(; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", "/EncryptionConfig"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_encryption_config( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -286,9 +269,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GroupARN"`: The ARN of the group that was generated on creation. - `"GroupName"`: The case-sensitive name of the group. """ -function get_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return xray("POST", "/GetGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + xray("POST", "/GetGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -307,9 +289,8 @@ Retrieves all active group details. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Pagination token. """ -function get_groups(; aws_config::AbstractAWSConfig=current_aws_config()) - return xray("POST", "/Groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) -end +get_groups(; aws_config::AbstractAWSConfig=current_aws_config()) = + xray("POST", "/Groups"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function get_groups( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -331,15 +312,13 @@ start and end time of the insight. retrieve an InsightId. """ -function get_insight(InsightId; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/Insight", - Dict{String,Any}("InsightId" => InsightId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_insight(InsightId; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/Insight", + Dict{String,Any}("InsightId" => InsightId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_insight( InsightId, params::AbstractDict{String}; @@ -374,15 +353,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token returned by a previous request to retrieve the next page of events. """ -function get_insight_events(InsightId; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/InsightEvents", - Dict{String,Any}("InsightId" => InsightId); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_insight_events(InsightId; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/InsightEvents", + Dict{String,Any}("InsightId" => InsightId); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_insight_events( InsightId, params::AbstractDict{String}; @@ -421,19 +398,17 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Specify the pagination token returned by a previous request to retrieve the next page of results. """ -function get_insight_impact_graph( +get_insight_impact_graph( EndTime, InsightId, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/InsightImpactGraph", + Dict{String,Any}( + "EndTime" => EndTime, "InsightId" => InsightId, "StartTime" => StartTime + ); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/InsightImpactGraph", - Dict{String,Any}( - "EndTime" => EndTime, "InsightId" => InsightId, "StartTime" => StartTime - ); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_insight_impact_graph( EndTime, InsightId, @@ -480,17 +455,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Pagination token. - `"States"`: The list of insight states. """ -function get_insight_summaries( +get_insight_summaries( EndTime, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/InsightSummaries", + Dict{String,Any}("EndTime" => EndTime, "StartTime" => StartTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/InsightSummaries", - Dict{String,Any}("EndTime" => EndTime, "StartTime" => StartTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_insight_summaries( EndTime, StartTime, @@ -522,11 +495,9 @@ Retrieves all sampling rules. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Pagination token. """ -function get_sampling_rules(; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", "/GetSamplingRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +get_sampling_rules(; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", "/GetSamplingRules"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET +) function get_sampling_rules( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -549,16 +520,13 @@ Retrieves information about recent sampling results for all sampling rules. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Pagination token. """ -function get_sampling_statistic_summaries(; - aws_config::AbstractAWSConfig=current_aws_config() -) - return xray( +get_sampling_statistic_summaries(; aws_config::AbstractAWSConfig=current_aws_config()) = + xray( "POST", "/SamplingStatisticSummaries"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_sampling_statistic_summaries( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -582,17 +550,15 @@ Requests a sampling quota for rules that the service is using to sample requests sample requests. """ -function get_sampling_targets( +get_sampling_targets( SamplingStatisticsDocuments; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/SamplingTargets", + Dict{String,Any}("SamplingStatisticsDocuments" => SamplingStatisticsDocuments); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/SamplingTargets", - Dict{String,Any}("SamplingStatisticsDocuments" => SamplingStatisticsDocuments); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_sampling_targets( SamplingStatisticsDocuments, params::AbstractDict{String}; @@ -636,17 +602,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"GroupName"`: The name of a group based on which you want to generate a graph. - `"NextToken"`: Pagination token. """ -function get_service_graph( - EndTime, StartTime; aws_config::AbstractAWSConfig=current_aws_config() -) - return xray( +get_service_graph(EndTime, StartTime; aws_config::AbstractAWSConfig=current_aws_config()) = + xray( "POST", "/ServiceGraph", Dict{String,Any}("EndTime" => EndTime, "StartTime" => StartTime); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function get_service_graph( EndTime, StartTime, @@ -691,17 +654,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"NextToken"`: Pagination token. - `"Period"`: Aggregation period in seconds. """ -function get_time_series_service_statistics( +get_time_series_service_statistics( EndTime, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/TimeSeriesServiceStatistics", + Dict{String,Any}("EndTime" => EndTime, "StartTime" => StartTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/TimeSeriesServiceStatistics", - Dict{String,Any}("EndTime" => EndTime, "StartTime" => StartTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_time_series_service_statistics( EndTime, StartTime, @@ -736,15 +697,13 @@ Retrieves a service graph for one or more specific trace IDs. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Pagination token. """ -function get_trace_graph(TraceIds; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/TraceGraph", - Dict{String,Any}("TraceIds" => TraceIds); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +get_trace_graph(TraceIds; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/TraceGraph", + Dict{String,Any}("TraceIds" => TraceIds); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function get_trace_graph( TraceIds, params::AbstractDict{String}; @@ -791,17 +750,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"TimeRangeType"`: A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time). """ -function get_trace_summaries( +get_trace_summaries( EndTime, StartTime; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/TraceSummaries", + Dict{String,Any}("EndTime" => EndTime, "StartTime" => StartTime); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/TraceSummaries", - Dict{String,Any}("EndTime" => EndTime, "StartTime" => StartTime); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function get_trace_summaries( EndTime, StartTime, @@ -833,14 +790,12 @@ Returns the list of resource policies in the target Amazon Web Services account. Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are: - `"NextToken"`: Not currently supported. """ -function list_resource_policies(; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/ListResourcePolicies"; - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +list_resource_policies(; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/ListResourcePolicies"; + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function list_resource_policies( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -869,17 +824,14 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys NextToken value returned with the current page of results as the value of this parameter to get the next page of results. """ -function list_tags_for_resource( - ResourceARN; aws_config::AbstractAWSConfig=current_aws_config() -) - return xray( +list_tags_for_resource(ResourceARN; aws_config::AbstractAWSConfig=current_aws_config()) = + xray( "POST", "/ListTagsForResource", Dict{String,Any}("ResourceARN" => ResourceARN); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function list_tags_for_resource( ResourceARN, params::AbstractDict{String}; @@ -916,15 +868,13 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys this format to specify a key in a different account. Omit this key if you set Type to NONE. """ -function put_encryption_config(Type; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/PutEncryptionConfig", - Dict{String,Any}("Type" => Type); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +put_encryption_config(Type; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/PutEncryptionConfig", + Dict{String,Any}("Type" => Type); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function put_encryption_config( Type, params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -968,17 +918,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys In this case, the operation will fail with an InvalidPolicyRevisionIdException exception if a resource policy with the same name already exists. """ -function put_resource_policy( +put_resource_policy( PolicyDocument, PolicyName; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/PutResourcePolicy", + Dict{String,Any}("PolicyDocument" => PolicyDocument, "PolicyName" => PolicyName); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/PutResourcePolicy", - Dict{String,Any}("PolicyDocument" => PolicyDocument, "PolicyName" => PolicyName); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_resource_policy( PolicyDocument, PolicyName, @@ -1017,17 +965,15 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys - `"Hostname"`: - `"ResourceARN"`: """ -function put_telemetry_records( +put_telemetry_records( TelemetryRecords; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/TelemetryRecords", + Dict{String,Any}("TelemetryRecords" => TelemetryRecords); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/TelemetryRecords", - Dict{String,Any}("TelemetryRecords" => TelemetryRecords); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_telemetry_records( TelemetryRecords, params::AbstractDict{String}; @@ -1078,17 +1024,15 @@ trace, globally unique, in 24 hexadecimal digits. segments or subsegments. """ -function put_trace_segments( +put_trace_segments( TraceSegmentDocuments; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/TraceSegments", + Dict{String,Any}("TraceSegmentDocuments" => TraceSegmentDocuments); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/TraceSegments", - Dict{String,Any}("TraceSegmentDocuments" => TraceSegmentDocuments); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function put_trace_segments( TraceSegmentDocuments, params::AbstractDict{String}; @@ -1127,15 +1071,13 @@ Applies tags to an existing Amazon Web Services X-Ray group or sampling rule. reserved for Amazon Web Services use. You cannot edit or delete system tags. """ -function tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", - "/TagResource", - Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end +tag_resource(ResourceARN, Tags; aws_config::AbstractAWSConfig=current_aws_config()) = xray( + "POST", + "/TagResource", + Dict{String,Any}("ResourceARN" => ResourceARN, "Tags" => Tags); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, +) function tag_resource( ResourceARN, Tags, @@ -1170,17 +1112,14 @@ delete system tags (those with an aws: prefix). sampling rule. """ -function untag_resource( - ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config() -) - return xray( +untag_resource(ResourceARN, TagKeys; aws_config::AbstractAWSConfig=current_aws_config()) = + xray( "POST", "/UntagResource", Dict{String,Any}("ResourceARN" => ResourceARN, "TagKeys" => TagKeys); aws_config=aws_config, feature_set=SERVICE_FEATURE_SET, ) -end function untag_resource( ResourceARN, TagKeys, @@ -1220,11 +1159,8 @@ Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys enable insights notifications for the group. Notifications can only be enabled on a group with InsightsEnabled set to true. """ -function update_group(; aws_config::AbstractAWSConfig=current_aws_config()) - return xray( - "POST", "/UpdateGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET - ) -end +update_group(; aws_config::AbstractAWSConfig=current_aws_config()) = + xray("POST", "/UpdateGroup"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET) function update_group( params::AbstractDict{String}; aws_config::AbstractAWSConfig=current_aws_config() ) @@ -1247,17 +1183,15 @@ Modifies a sampling rule's configuration. - `sampling_rule_update`: The rule and fields to change. """ -function update_sampling_rule( +update_sampling_rule( SamplingRuleUpdate; aws_config::AbstractAWSConfig=current_aws_config() +) = xray( + "POST", + "/UpdateSamplingRule", + Dict{String,Any}("SamplingRuleUpdate" => SamplingRuleUpdate); + aws_config=aws_config, + feature_set=SERVICE_FEATURE_SET, ) - return xray( - "POST", - "/UpdateSamplingRule", - Dict{String,Any}("SamplingRuleUpdate" => SamplingRuleUpdate); - aws_config=aws_config, - feature_set=SERVICE_FEATURE_SET, - ) -end function update_sampling_rule( SamplingRuleUpdate, params::AbstractDict{String};